gdb/
[external/binutils.git] / gdb / ChangeLog
1 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
2             Yao Qi  <yao@codesourcery.com>
3
4         * ctf.c (ctf_traceframe_info): Push trace state variables
5         present in the trace data into the traceframe info object.
6         * breakpoint.c (DEF_VEC_I): Remove.
7         * common/filestuff.c (DEF_VEC_I): Likewise.
8         * dwarf2loc.c (DEF_VEC_I): Likewise.
9         * mi/mi-main.c (DEF_VEC_I): Likewise.
10         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
11         * features/traceframe-info.dtd: Add tvar element and its
12         attributes.
13         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
14         (build_traceframe_info): Push trace state variables present in
15         the trace data into the traceframe info object.
16         (traceframe_info_start_tvar): New function.
17         (tvar_attributes): New.
18         (traceframe_info_children): Add "tvar" element.
19         * tracepoint.h (struct traceframe_info) <tvars>: New field.
20
21         * NEWS: Mention the change in GDB and GDBserver.
22
23 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
24             Yao Qi  <yao@codesourcery.com>
25
26         * tracepoint.c (trace_dump_command): Move code to ...
27         (get_traceframe_location): ... here.  New.
28
29 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
30             Yao Qi  <yao@codesourcery.com>
31
32         * tracepoint.c (trace_dump_command): GDB emits an error
33          instead of a warning when a traceframe is not selected.
34
35 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
36             Yao Qi  <yao@codesourcery.com>
37
38         * tracepoint.c (tracepoint_list, stepping_list): Remove.
39         (clear_collection_list): Free fields 'aexpre_list' and 'list'
40         in collection_list.
41         (do_clear_collection_list, init_collection_list): New.
42         (encode_actions): Add local variables 'tracepoint_list' and
43         'stepping_list'.  Call init_collection_list and make cleanup
44         which calls do_clear_collection_list.  Don't call
45         clear_collection_list.
46         (_initialize_tracepoint): Delete references to
47         'tracepoint_list' and 'stepping_list'.
48
49 2013-06-25  Tom Tromey  <tromey@redhat.com>
50
51         * common/create-version.sh (date): Use "$", not "$$" in sed
52         expression.
53
54 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
55
56         * NEWS (New targets): Add entry for TI MSP430.
57
58 2013-06-25  Yao Qi  <yao@codesourcery.com>
59
60         * remote.c (remote_start_remote): Move code to upload tsv
61         earlier.
62
63 2013-06-25  Yao Qi  <yao@codesourcery.com>
64             Hui Zhu  <hui@codesourcery.com>
65             Pedro Alves  <palves@redhat.com>
66
67         PR breakpoints/15075
68         PR breakpoints/15434
69         * breakpoint.c (bpstat_stop_status): Call
70         b->ops->after_condition_true.
71         (update_dprintf_command_list): Don't append "continue" command
72         to the command list of dprintf breakpoint.
73         (base_breakpoint_after_condition_true): New function.
74         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
75         (dprintf_after_condition_true): New function.
76         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
77         * breakpoint.h (breakpoint_ops): Add after_condition_true.
78
79 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
80
81         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
82         (ALLDEPFILES): Add msp430-tdep.c.
83         * configure.tgt (msp430*-*-elf): New target.
84         * msp430-tdep.c: New file.
85
86 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
87
88         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
89         microMIPS synthetic symbols.
90
91 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
92
93         * objfiles.h (pc_in_section): New prototype.
94         (in_plt_section): Remove name argument, replace prototype with
95         static inline function.
96         * mips-tdep.h: Include "objfiles.h".
97         (in_mips_stubs_section): New function.
98         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
99         in_solib_call_trampoline member.
100         (hppa_in_solib_call_trampoline): Remove name argument.
101         * objfiles.c (pc_in_section): New function.
102         (in_plt_section): Remove function.
103         * mips-linux-tdep.c: Include "objfiles.h".
104         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
105         name argument.  Return 1 rather than the low 16-bit halfword of
106         any instruction examined.
107         (mips_linux_in_dynsym_resolve_code): Update
108         mips_linux_in_dynsym_stub call accordingly.
109         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
110         rather than an equivalent hand-coded sequence.
111         * hppa-hpux-tdep.c (in_opd_section): Remove function.
112         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
113         (hppa64_hpux_in_solib_call_trampoline): Likewise.
114         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
115         in_opd_section.
116         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
117         on call to tdep->in_solib_call_trampoline.
118         (hppa_in_solib_call_trampoline): Remove name argument, update
119         according to in_plt_section change.
120         (hppa_skip_trampoline_code): Update according to in_plt_section
121         change.
122         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
123         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
124         Likewise.
125         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
126         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
127         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
128         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
129         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
130         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
131         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
132         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
133         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
134         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
135         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
136         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
137         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
138
139 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
140
141         * common/create-version.sh: Fix expansion of $host_alias
142         and $target_alias in generation of HOST_NAME and TARGET_NAME
143         (resp.).
144
145 2013-06-24  Tom Tromey  <tromey@redhat.com>
146
147         * common/create-version.sh: New file.
148         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
149         create-version.sh.
150         (HFILES_NO_SRCDIR): Use common/version.h.
151         * version.in: Move to ...
152         * common/version.in: ... here.  Replace date with "DATE".
153         * version.h: Move to ...
154         * common/version.h: ... here.
155
156 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
157
158         * gdb/gnulib/Makefile.in: Update date in copyright header.
159         * gdb/gnulib/configure.ac: Ditto.
160         * gdb/gnulib/update-gnulib.sh: Ditto.
161
162 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
163
164         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
165         "gdb/gnulib/import".
166
167 2013-06-21  Will Newton  <will.newton@linaro.org>
168
169         * doublest.c (ldfrexp): Remove function.
170         (convert_doublest_to_floatformat): Call frexpl instead of
171         ldfrexp.
172
173 2013-06-21  Will Newton  <will.newton@linaro.org>
174
175         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
176         * gnulib/aclocal.m4: Regenerate.
177         * gnulib/config.in: Regenerate.
178         * gnulib/configure: Regenerate.
179         * gnulib/import/Makefile.am: Update.
180         * gnulib/import/Makefile.in: Update.
181         * gnulib/import/m4/gnulib-cache.m4: Update.
182         * gnulib/import/m4/gnulib-comp.m4: Update.
183         * gnulib/import/float+.h: Import.
184         * gnulib/import/float.c: Import.
185         * gnulib/import/float.in.h: Import.
186         * gnulib/import/fpucw.h: Import.
187         * gnulib/import/frexp.c: Import.
188         * gnulib/import/frexpl.c: Import.
189         * gnulib/import/isnan.c: Import.
190         * gnulib/import/isnand-nolibm.h: Import.
191         * gnulib/import/isnand.c: Import.
192         * gnulib/import/isnanl-nolibm.h: Import.
193         * gnulib/import/isnanl.c: Import.
194         * gnulib/import/itold.c: Import.
195         * gnulib/import/m4/exponentd.m4: Import.
196         * gnulib/import/m4/exponentl.m4: Import.
197         * gnulib/import/m4/float_h.m4: Import.
198         * gnulib/import/m4/fpieee.m4: Import.
199         * gnulib/import/m4/frexp.m4: Import.
200         * gnulib/import/m4/frexpl.m4: Import.
201         * gnulib/import/m4/isnand.m4: Import.
202         * gnulib/import/m4/isnanl.m4: Import.
203         * gnulib/import/m4/math_h.m4: Import.
204         * gnulib/import/math.c: Import.
205         * gnulib/import/math.in.h: Import.
206
207 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
208
209         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
210         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
211         signature_INTEL_edx comparisons.
212
213 2013-06-20  Doug Evans  <dje@google.com>
214
215         symtab/15652
216         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
217         All callers updated.
218         (open_dwp_file): If we can't find the dwp file, search the basename
219         in debug-file-directory.
220
221         * dwarf2read.c (struct dwp_file): Fix comment.
222         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
223
224         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
225         better.
226
227 2013-06-20  Yao Qi  <yao@codesourcery.com>
228
229         * breakpoint.c (create_breakpoint): Fix code indentation.
230
231 2013-06-20  Yao Qi  <yao@codesourcery.com>
232
233         * breakpoint.c (create_breakpoints_sal_default): Remove
234         parameter 'lsal'.  Update declaration.
235         (bkpt_create_breakpoints_sal): Caller update.
236         (tracepoint_create_breakpoints_sal): Likewise.
237
238 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
239             Yao Qi  <yao@codesourcery.com>
240
241         * NEWS: Mention the new option '--skip-unavailable' of command
242         -data-list-register-values.
243         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
244         --skip-unavailable option.  Adjust to use output_register.
245         (output_register): Add new 'skip_unavailable' parameter.
246         Handle it.
247
248 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
249
250         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
251         common/i386-gcc-cpuid.h.
252         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
253         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
254         Copy the latest version from upstream gcc.
255         * common/linux-btrace.c: Include i386-cpuid.h.
256         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
257         call to i386_cpuid.
258         (cpu_supports_btrace): Likewise.
259         * go32-nat.c: Include i386-cpuid.h.
260         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
261
262 2013-06-19  Doug Evans  <dje@google.com>
263
264         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
265         (get_section_index): Ditto.
266
267 2013-06-19  Tom Tromey  <tromey@redhat.com>
268
269         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
270         "dprintf" help.
271
272 2013-06-18  Doug Evans  <dje@google.com>
273
274         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
275         before using it.
276         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
277         Move test of cu_index closer to use.  Print complaint if cu_index
278         is bad.
279
280 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
281
282         * machoread.c (oso_vector): Delete this global.
283         (macho_register_oso): Add new parameter "oso_vector_ptr".
284         Use it instead of the "oso_vector" global.
285         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
286         (macho_symfile_read): Use a local oso_vector, to be free'ed
287         at the end of this function, in place of the old "oso_vector"
288         global.  Update various function calls accordingly.  Use one
289         single cleanup chain for the entire function.
290
291 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
292
293         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
294         DWARF2_PER_OBJFILE by uses of DATA instead.
295
296 2013-06-18  Tom Tromey  <tromey@redhat.com>
297
298         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
299         argument.
300         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
301         Special case signals other than GDB_SIGNAL_TRAP.
302         (explains_signal_watchpoint): New function.
303         (base_breakpoint_explains_signal): Add 'sig' argument.
304         (initialize_breakpoint_ops): Set 'explains_signal' method for
305         watchpoints.
306         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
307         signal argument.
308         (bpstat_explains_signal): Likewise.
309         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
310
311 2013-06-18  Tom Tromey  <tromey@redhat.com>
312
313         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
314
315 2013-06-18  Tom Tromey  <tromey@redhat.com>
316
317         * python/python.c (finish_python_initialization): Decref
318         'pythondir' on failure path as well.
319
320 2013-06-18  Tom Tromey  <tromey@redhat.com>
321
322         PR symtab/15391:
323         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
324         after taking bits_to_skip into account.  Sign extend byte_offset.
325         * utils.h (gdb_sign_extend): Declare.
326         * utils.c (gdb_sign_extend): New function.
327
328 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
329
330         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
331
332 2013-06-17  Pierre Muller  <muller@sourceware.org>
333
334         * corelow.c (core_open): Print GDB signal name instead of target
335         signal number.
336
337 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
338
339         * .gitignore: Add /gcore.
340
341 2013-06-13  Doug Evans  <dje@google.com>
342
343         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
344         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
345
346 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
347
348         * stack.c (backtrace_command_1): Fix indentation.
349
350 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
351
352         * window-nat.c (thread_rec): Add missing empty line after
353         local variable declaration.
354
355 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
356
357         * windows-nat.c (thread_rec): Revert format used to print
358         error code returned by SuspendThread from %d back to %u.
359
360 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
361
362         * windows-nat.c (windows_continue): Add "0x" prefix for thread
363         ID in debug trace.
364         (get_windows_debug_event): Likewise, for all debug traces.
365
366 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
367
368         * window-nat.c (thread_rec): Add thread ID in SuspendThread
369         warning message.
370
371 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
372             Yao Qi  <yao@codesourcery.com>
373
374         * mi/mi-main.c (get_register): Remove declaration.
375         (output_register): Declare.
376         (mi_cmd_data_list_register_values): Remove local variable
377         'tuple_cleanup'.  Move some code into output_register.
378         (get_register): Renamed to ...
379         (output_register): ... this.  Output the register's
380         "number" ui_out tuple here.
381
382 2013-06-07  Pedro Alves  <palves@redhat.com>
383
384         * darwin-nat.c: Fix formating in copyright header.
385         * darwin-nat.h: Likewise.
386         * gnu-nat.c: Likewise.
387         * machoread.c: Likewise.
388
389 2013-06-07  Pedro Alves  <palves@redhat.com>
390
391         PR server/14823
392         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
393         static.  Output a global target description pointer.
394         (init_registers_${name}): Adjust to initialize a
395         target description structure.
396
397 2013-06-07  Will Newton  <will.newton@linaro.org>
398
399         * printcmd.c (build_address_symbolic): Call
400         gdbarch_addr_bits_remove for text minimal symbols.
401
402 2013-06-07  Will Newton  <will.newton@linaro.org>
403
404         * MAINTAINERS: Add myself to Write After Approval.
405
406 2013-06-07  Yao Qi  <yao@codesourcery.com>
407
408         * tracepoint.c (start_tracing): Move code to ...
409         (trace_reset_local_state): ... here.  New.
410         (disconnect_tracing): Don't call set_current_traceframe,
411         set_tracepoint_num, and set_traceframe_context. Call
412         trace_reset_local_state instead.
413         (tfile_close): Call trace_reset_local_state.
414         * ctf.c (ctf_close): Likewise.
415         * remote.c (remote_close): Likewise.
416         * tracepoint.h (trace_reset_local_state): Declare.
417
418 2013-06-06  Doug Evans  <dje@google.com>
419
420         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
421         and fix header docs.
422
423 2013-06-05  Doug Evans  <dje@google.com>
424             Keith Seitz  <keiths@redhat.com>
425
426         PR 15519
427         * cp-namespace.c (find_symbol_in_baseclass): Call
428         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
429         Check result of call to lookup_symbol_static.
430         Call lookup_static_symbol_aux unconditionally.
431         Call check_typedef on base types before accessing them.
432         (cp_lookup_nested_symbol): Fix comment.
433
434 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
435
436         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
437         minimal symbols pointing to function descriptors.
438
439 2013-06-05  Tom Tromey  <tromey@redhat.com>
440
441         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
442
443 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
444             Pedro Alves  <palves@redhat.com>
445
446         * remote.c (remote_wait_as): Restore signal handler before returning
447         when GDB gets a notification.
448
449 2013-06-04  Gary Benson  <gbenson@redhat.com>
450
451         PR 2328
452         * breakpoint.h (handle_solib_event): Moved function declaration
453         to solib.h.
454         * breakpoint.c (handle_solib_event): Moved function to solib.c.
455         (bpstat_stop_status): Pass new argument to handle_solib_event.
456         * solib.h (update_solib_breakpoints): New function declaration.
457         (handle_solib_event): Moved function declaration from
458         breakpoint.h.
459         * solib.c (update_solib_breakpoints): New function.
460         (handle_solib_event): Moved function from breakpoint.c.
461         Updated to call solib_ops->handle_event if not NULL.
462         * solist.h (target_so_ops): New fields "update_breakpoints" and
463         "handle_event".
464         * infrun.c (set_stop_on_solib_events): New function.
465         (_initialize_infrun): Use the above for "set
466         stop-on-solib-events".
467         (handle_inferior_event): Pass new argument to handle_solib_event.
468         * solib-svr4.c (probe.h): New include.
469         (svr4_free_library_list): New forward declaration.
470         (probe_action): New enum.
471         (probe_info): New struct.
472         (probe_info): New static variable.
473         (NUM_PROBES): New definition.
474         (svr4_info): New fields "using_xfer", "probes_table" and
475         "solib_list".
476         (free_probes_table): New function.
477         (free_solib_list): New function.
478         (svr4_pspace_data_cleanup): Free probes table and solib list.
479         (svr4_copy_library_list): New function.
480         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
481         (svr4_read_so_list): New parameter "prev_lm".
482         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
483         (svr4_current_sos): New function.
484         (probe_and_action): New struct.
485         (hash_probe_and_action): New function.
486         (equal_probe_and_action): Likewise.
487         (register_solib_event_probe): Likewise.
488         (solib_event_probe_at): Likewise.
489         (solib_event_probe_action): Likewise.
490         (solist_update_full): Likewise.
491         (solist_update_incremental): Likewise.
492         (disable_probes_interface_cleanup): Likewise.
493         (svr4_handle_solib_event): Likewise.
494         (svr4_update_solib_event_breakpoint): Likewise.
495         (svr4_update_solib_event_breakpoints): Likewise.
496         (svr4_create_solib_event_breakpoints): Likewise.
497         (enable_break): Free probes table before creating breakpoints.
498         Use svr4_create_solib_event_breakpoints to create breakpoints.
499         (svr4_solib_create_inferior_hook): Free the solib list.
500         (_initialize_svr4_solib): Initialise
501         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
502
503 2013-06-04  Gary Benson  <gbenson@redhat.com>
504
505         * target.h (target_ops): New field
506         "to_augmented_libraries_svr4_read".
507         (target_augmented_libraries_svr4_read): New macro.
508         * target.c (update_current_target): Handle
509         to_augmented_libraries_svr4_read.
510         * remote.c (remote_state): New field
511         "augmented_libraries_svr4_read".
512         (remote_augmented_libraries_svr4_read_feature): New function.
513         (remote_protocol_features): Add entry for
514         "augmented-libraries-svr4-read".
515         (remote_augmented_libraries_svr4_read): New function.
516         (init_remote_ops): Initialize
517         remote_ops.to_augmented_libraries_svr4_read.
518
519 2013-06-04  Gary Benson  <gbenson@redhat.com>
520
521         * NEWS: Update.
522
523 2013-06-04  Gary Benson  <gbenson@redhat.com>
524
525         * objfiles.h (inhibit_section_map_updates): New function
526         declaration.
527         (resume_section_map_updates): Likewise.
528         (resume_section_map_updates_cleanup): Likewise.
529         * objfiles.c (objfile_pspace_info): Removed field
530         "objfiles_changed_p".  New fields "new_objfiles_available",
531         "section_map_dirty" and "inhibit_updates".
532         (allocate_objfile): Set new_objfiles_available.
533         (free_objfile): Set section_map_dirty.
534         (objfile_relocate1): Likewise.
535         (in_plt_section): Likewise.
536         (find_pc_section): Update the conditions under which the
537         section map will be updated.
538         (inhibit_section_map_updates): New function.
539         (resume_section_map_updates): Likewise.
540         (resume_section_map_updates_cleanup): Likewise.
541
542 2013-06-04  Gary Benson  <gbenson@redhat.com>
543
544         * probe.h (get_probe_argument_count): New declaration.
545         (evaluate_probe_argument): Likewise.
546         * probe.c (get_probe_argument_count): New function.
547         (evaluate_probe_argument): Likewise.
548         (probe_safe_evaluate_at_pc): Use the above new functions.
549
550 2013-06-04  Alan Modra  <amodra@gmail.com>
551
552         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
553         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
554         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
555         target mem reads on optional insns.
556         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
557         ppc_insns_match_pattern calls.
558         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
559         Add match for power7 thread safety insns, and new order of
560         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
561         invocation in comment, and update rest of comment.
562         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
563         PPC64_STANDARD_LINKAGE3_LEN): Delete.
564         (ppc64_standard_linkage2_target): Update insn offsets.
565         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
566         stubs first.  Update calls.
567
568 2013-06-04  Yao Qi  <yao@codesourcery.com>
569
570         * solib.c (solib_find): Don't need dir separator if path has
571         drive spec.
572
573 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
574
575         Revert (indirectly causes a SIGSEGV):
576         * machoread.c (macho_symfile_read): Assign first cleanup to
577         'back_to'.
578
579 2013-06-03  Yao Qi  <yao@codesourcery.com>
580
581         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
582         mi-parse.c.  Make them static.
583         (mi_all_values): Likewise.
584         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
585         mi_parse_print_values.  Make it external.
586         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
587         Remove the declarations.
588         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
589         * mi/mi-parse.h (mi_parse_print_values): Declare.
590         * mi/mi-cmd-stack.c: Include mi-parse.h.
591         (parse_print_values): Remove
592         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
593         of parse_print_values.
594         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
595
596 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
597             Yao Qi  <yao@codesourcery.com>
598
599         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
600         (encode_actions): Move code to ...
601         (all_tracepoint_actions_and_cleanup): ... here.  New.
602         (trace_dump_command): Likewise.
603
604 2013-05-30  Tom Tromey  <tromey@redhat.com>
605
606         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
607
608 2013-05-30  Tom Tromey  <tromey@redhat.com>
609
610         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
611         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
612         'old_chain' argument.  Add 'parser_result' argument.
613         (gdb_xml_create_parser_and_cleanup): Remove old version.
614         (gdb_xml_parse_quick): Update.
615         (xml_process_xincludes): Update.
616         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
617         declare.
618
619 2013-05-30  Tom Tromey  <tromey@redhat.com>
620
621         * probe.c (collect_probes): Check arguments for NULL before
622         calling compile_rx_or_error.
623         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
624         Remove NULL return.
625
626 2013-05-30  Tom Tromey  <tromey@redhat.com>
627
628         * infrun.c (adjust_pc_after_break): Introduce an outer null
629         cleanup.
630
631 2013-05-30  Tom Tromey  <tromey@redhat.com>
632
633         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
634
635 2013-05-30  Tom Tromey  <tromey@redhat.com>
636
637         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
638         for 'old_chain'.  Do not check 'head' before processing
639         cleanups.
640
641 2013-05-30  Tom Tromey  <tromey@redhat.com>
642
643         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
644         "cleanup_tuple".
645
646 2013-05-30  Tom Tromey  <tromey@redhat.com>
647
648         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
649         inner scope.  Unconditionally call do_cleanups.
650
651 2013-05-30  Tom Tromey  <tromey@redhat.com>
652
653         * source.c (find_and_open_source): Call do_cleanups.
654
655 2013-05-30  Tom Tromey  <tromey@redhat.com>
656
657         * linux-thread-db.c (thread_db_load_search): Unconditionally
658         call do_cleanups.
659
660 2013-05-30  Tom Tromey  <tromey@redhat.com>
661
662         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
663         for 'cleanup'; instead use a later one.
664
665 2013-05-30  Tom Tromey  <tromey@redhat.com>
666
667         * python/py-breakpoint.c (bppy_get_commands): Use
668         explicit, unconditional return.
669         * python/py-frame.c (frapy_read_var): Likewise.
670         * python/python.c (gdbpy_decode_line): Likewise.
671
672 2013-05-30  Tom Tromey  <tromey@redhat.com>
673
674         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
675         do_cleanups on all return paths.
676
677 2013-05-30  Tom Tromey  <tromey@redhat.com>
678
679         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
680
681 2013-05-30  Tom Tromey  <tromey@redhat.com>
682
683         * stabsread.c (read_struct_type): Call do_cleanups along
684         all return paths.
685
686 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
687
688         * mips-linux-tdep.c: Adjust formatting throughout.
689
690 2013-05-30  Tom Tromey  <tromey@redhat.com>
691
692         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
693         along all return paths.
694
695 2013-05-30  Tom Tromey  <tromey@redhat.com>
696
697         * symfile.c (find_separate_debug_file): Call do_cleanups
698         along all return paths.
699
700 2013-05-30  Tom Tromey  <tromey@redhat.com>
701
702         * symtab.c (search_symbols): Introduce a null cleanup for
703         'retval_chain'.
704
705 2013-05-30  Tom Tromey  <tromey@redhat.com>
706
707         * python/py-value.c (valpy_binop): Call do_cleanups before
708         exiting loop.
709
710 2013-05-30  Tom Tromey  <tromey@redhat.com>
711
712         * python/py-prettyprint.c (print_children): Remove extra
713         do_cleanups call.
714
715 2013-05-30  Tom Tromey  <tromey@redhat.com>
716
717         * python/py-frame.c (frapy_read_var): Call do_cleanups along
718         all return paths.
719
720 2013-05-30  Tom Tromey  <tromey@redhat.com>
721
722         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
723         along all return paths.
724
725 2013-05-30  Tom Tromey  <tromey@redhat.com>
726
727         * cli/cli-logging.c (set_logging_redirect): Unconditionally
728         call do_cleanups.
729
730 2013-05-30  Tom Tromey  <tromey@redhat.com>
731
732         * varobj.c (c_value_of_root): Call do_cleanups along all
733         return paths.
734
735 2013-05-30  Tom Tromey  <tromey@redhat.com>
736
737         * tracepoint.c (trace_dump_command): Unconditionally call
738         do_cleanups.
739
740 2013-05-30  Tom Tromey  <tromey@redhat.com>
741
742         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
743         do_cleanups earlier.
744
745 2013-05-30  Tom Tromey  <tromey@redhat.com>
746
747         * machoread.c (macho_symfile_read): Assign first cleanup to
748         'back_to'.
749
750 2013-05-30  Tom Tromey  <tromey@redhat.com>
751
752         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
753
754 2013-05-30  Tom Tromey  <tromey@redhat.com>
755
756         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
757
758 2013-05-30  Tom Tromey  <tromey@redhat.com>
759
760         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
761         call discard_cleanups.
762         (inf_ptrace_attach): Likewise.
763
764 2013-05-30  Tom Tromey  <tromey@redhat.com>
765
766         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
767         return paths.
768         (mips_initialize): Likewise.
769         (common_open): Call do_cleanups.
770
771 2013-05-30  Tom Tromey  <tromey@redhat.com>
772
773         * utils.c (internal_vproblem): Call do_cleanups.
774
775 2013-05-30  Tom Tromey  <tromey@redhat.com>
776
777         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
778
779 2013-05-30  Tom Tromey  <tromey@redhat.com>
780
781         * cli/cli-script.c (setup_user_args): Don't return after error.
782
783 2013-05-30  Tom Tromey  <tromey@redhat.com>
784
785         * somread.c (som_symtab_read): Call do_cleanups.
786
787 2013-05-30  Tom Tromey  <tromey@redhat.com>
788
789         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
790
791 2013-05-30  Tom Tromey  <tromey@redhat.com>
792
793         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
794         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
795         * interps.c (interpreter_exec_cmd): Call do_cleanups.
796         * source.c (show_substitute_path_command): Call do_cleanups.
797         (unset_substitute_path_command, set_substitute_path_command):
798         Likewise.
799         * symfile.c (load_command): Call do_cleanups.
800
801 2013-05-30  Tom Tromey  <tromey@redhat.com>
802
803         * contrib/cleanup_check.py: New file.
804         * contrib/gcc-with-excheck: Add option parsing.
805
806 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
807
808         * windows-nat.c (windows_delete_thread): Add missing space
809         in cast expression.
810
811 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
812
813         * inferior.c (top level): Include tilde.h.
814         (add_inferior_command): Call tilde_expand on the value of 'exec'
815         argument.
816
817 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
818             Yao Qi  <yao@codesourcery.com>
819
820         * tracepoint.c (encode_actions_1): Remove parameter 't'.
821         Caller update.
822         (encode_actions): Likewise.
823         * remote.c (remote_download_tracepoint): Caller update.
824         * tracepoint.h (encode_actions): Update declaration.
825
826 2013-05-30  Pedro Alves  <palves@redhat.com>
827
828         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
829         pointer.
830
831 2013-05-30  Yao Qi  <yao@codesourcery.com>
832
833         * remote.c (remote_check_symbols): Remove unused parameter
834         'objfile'.
835         Declaration update.
836         (remote_start_remote, remote_new_objfile): Caller update.
837
838 2013-05-30  Yao Qi  <yao@codesourcery.com>
839
840         * mi/mi-cmds.c (mi_cmds): Define MI command
841         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
842         DEF_MI_CMD_CLI.
843
844 2013-05-29  Pedro Alves  <palves@redhat.com>
845
846         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
847         (remote_insert_watchpoint, remote_remove_watchpoint)
848         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
849         (remote_verify_memory, compare_sections_command)
850         (remote_search_memory): Set the general process/thread on the
851         remote side.
852
853 2013-05-29  Pedro Alves  <palves@redhat.com>
854
855         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
856         (_initialize_aarch64_tdep): Don't call
857         initialize_tdesc_aarch64_without_fpu.
858         * features/Makefile (WHICH): Remove reference to
859         aarch64-without-fpu.
860         * features/aarch64-without-fpu.c: Delete file.
861         * regformats/aarch64-without-fpu.dat: Delete file.
862
863 2013-05-28  Yao Qi  <yao@codesourcery.com>
864
865         * tracepoint.c (stringify_collection_list): Remove parameter
866         'string'.
867         (encode_actions): Caller update.  Remove local variables.
868
869 2013-05-24  Yao Qi  <yao@codesourcery.com>
870
871         * tracepoint.c (TFILE_PID): Remove.
872         (tfile_open): Don't add thread and inferior.
873         (tfile_close): Don't set 'inferior_ptid'.  Don't call
874         exit_inferior_silent.
875         (tfile_thread_alive): Remove.
876         (init_tfile_ops): Don't set field 'to_thread_alive' of
877         tfile_ops.
878
879 2013-05-23  Doug Evans  <dje@google.com>
880
881         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
882
883 2013-05-23  Pedro Alves  <palves@redhat.com>
884
885         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
886         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
887         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
888         Only define if HAVE_SOCKETS is defined.
889         * configure.ac: Check for sys/socket.h.
890         * config.in, configure: Regenerate.
891
892 2013-05-23  Pedro Alves  <palves@redhat.com>
893
894         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
895         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
896         printing uint32_t variables.
897
898 2013-05-23  Pedro Alves  <palves@redhat.com>
899
900         * NEWS: Mention GDBserver range stepping support.
901
902 2013-05-23  Yao Qi  <yao@codesourcery.com>
903             Pedro Alves  <palves@redhat.com>
904
905         * gdbthread.h (struct thread_control_state) <may_range_step>: New
906         field.
907         * infcmd.c (step_once, until_next_command): Enable range stepping.
908         * infrun.c (displaced_step_prepare): Disable range stepping.
909         (resume): Disable range stepping if stepping over a breakpoint or
910         we have software watchpoints.  If range stepping is enabled,
911         assert the thread is in the stepping range.
912         (clear_proceed_status_thread): Clear may_range_step.
913         (handle_inferior_event): Disable range stepping as soon as we know
914         the thread that hit the event.  Re-enable it whenever we're going
915         to step with a step range.
916         * remote.c (struct vCont_action_support) <r>: New field.
917         (use_range_stepping): New global.
918         (remote_vcont_probe): Handle 'r' action.
919         (append_resumption): Append an 'r' action if the thread may range
920         step.
921         (show_range_stepping): New function.
922         (set_range_stepping): New function.
923         (_initialize_remote): Call add_setshow_boolean_cmd to register the
924         'set range-stepping' and 'show range-stepping' commands.
925         * NEWS: Mention range stepping, the new vCont;r action, and the
926         new "set/show range-stepping" commands.
927
928 2013-05-23  Yao Qi  <yao@codesourcery.com>
929             Pedro Alves  <palves@redhat.com>
930
931         * remote.c (struct vCont_action_support): New struct.
932         (struct remote_state) <support_vCont_t>: Remove field.
933         <vCont_actions_support>: New field.
934         (remote_vcont_probe, remote_stop_ns): Update.
935
936 2013-05-23  Yao Qi  <yao@codesourcery.com>
937             Pedro Alves  <palves@redhat.com>
938
939         * gdbthread.h (pc_in_thread_step_range): New declaration.
940         * thread.c (pc_in_thread_step_range): New function.
941         * infrun.c (handle_inferior_event): Use it.
942
943 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
944
945         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
946         of sprintf.
947
948 2013-05-22  Keith Seitz  <keiths@redhat.com>
949
950         * ada-lang.c (is_known_support_routine): Add explicit free of
951         'func_name' from find_frame_funname.
952         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
953         for func_name from find_frame_funname.
954         * python/py-frame.c (frapy_name): Add explicit free of
955         'name' from find_frame_funname.
956         * stack.c (find_frame_funname): Add comment explaining that
957         funcp must be freed by the caller.
958         Return copy of symbol names instead of pointers.
959         (print_frame): Add a cleanup for 'funname' from
960         find_frame_funname.
961         * stack.h (find_frame_funname): Remove "const" from
962         'funname' parameter.
963
964 2013-05-22  Tom Tromey  <tromey@redhat.com>
965
966         PR c++/15401:
967         * c-valprint.c (c_value_print): Use value_addr for
968         references.  Convert back to reference type with value_ref.
969
970 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
971
972         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
973         unloaded DLL, it will be done by handle_solib_event.  See
974         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
975         details.
976
977 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
978
979         * ui-out.c: Create typedef ui_out_level_p and define vector
980         operations for that type.
981         (struct ui_out): Use a vector instead of an array.
982         (current_level): Return level from a vector.
983         (push_level): Create a level in a vector.
984         (pop_level): Delete a level in a vector.
985         (ui_out_new): Create initial level zero level, and store in a
986         vector.
987         (ui_out_destroy): Add vector cleanup.
988
989 2013-05-22  Pedro Alves  <palves@redhat.com>
990
991         * python/python-internal.h (gdb_Py_DECREF): Tag with
992         "ARI: editCase function".
993
994 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
995
996         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
997
998 2013-05-21  Pedro Alves  <palves@redhat.com>
999
1000         * python/py-prettyprint.c (apply_val_pretty_printer): Check
1001         whether PRINTER is NULL before installing a Py_DECREF cleanup.
1002         * python/py-utils.c (py_decref): Don't check for NULL before
1003         calling Py_DECREF.
1004
1005 2013-05-21  Pedro Alves  <palves@redhat.com>
1006
1007         * python/py-utils.c (py_decref): Remove extra braces.
1008         (gdb_pymodule_addobject): Remove extra braces.
1009         * python-internal.h (gdb_Py_DECREF): New static inline function.
1010         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
1011
1012 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1013
1014         * breakpoints.c (detach_breakpoints): Do not
1015         detach breakpoints locations with loc_type bp_loc_other.
1016
1017 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1018
1019         Workaround Python 2.6.
1020         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
1021         a block.
1022
1023 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1024
1025         Code cleanup: constification.
1026         * solib.c (solib_ops): Make return type and ops variable type const.
1027         (set_solib_ops): Make the new_ops parameter and ops variable const.
1028         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1029         (solib_add, solib_keep_data_in_core, clear_solib)
1030         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1031         (reload_shared_libraries, solib_global_lookup): Make the ops variable
1032         const.
1033         * solib.h (set_solib_ops): Make the new_ops parameter const.
1034
1035 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
1036
1037         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1038         variable.
1039         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1040         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1041         (SYSTEM_GDBINIT_FILES): New variables.
1042         (all): Add stamp-system-gdbinit.
1043         (stamp-system-gdbinit): New rule.
1044         (clean-system-gdbinit, install-system-gdbinit)
1045         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
1046         (install-only): Add dependency on install-system-gdbinit.
1047         (uninstall): Add dependency on uninstall-system-gdbinit.
1048         (clean): Add dependency on clean-system-gdbinit.
1049         * system-gdbinit/elinos.py: New file.
1050         * system-gdbinit/wrs-linux.py: New file.
1051
1052 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
1053
1054         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1055
1056 2013-05-21  Hui Zhu  <hui@codesourcery.com>
1057
1058         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1059         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1060         * mi/mi-cmd-break.c (ctype.h): New include.
1061         (gdb_obstack.h): New include.
1062         (mi_argv_to_format, mi_cmd_break_insert_1): New.
1063         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1064         (mi_cmd_dprintf_insert): New.
1065         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1066         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1067
1068 2013-05-20  Tom Tromey  <tromey@redhat.com>
1069
1070         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1071
1072 2013-05-20  Tom Tromey  <tromey@redhat.com>
1073
1074         * python/py-value.c (valpy_get_dynamic_type): Simplify
1075         dynamic_type assignment.  Use Py_XINCREF.
1076
1077 2013-05-20  Tom Tromey  <tromey@redhat.com>
1078
1079         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1080
1081 2013-05-20  Tom Tromey  <tromey@redhat.com>
1082
1083         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1084         (gdbpy_selected_frame): Move object-construction code
1085         out of TRY_CATCH.
1086
1087 2013-05-20  Tom Tromey  <tromey@redhat.com>
1088
1089         * python/py-arch.c (gdbpy_initialize_arch): Use
1090         gdb_pymodule_addobject.
1091         * python/py-block.c (gdbpy_initialize_blocks): Use
1092         gdb_pymodule_addobject.
1093         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1094         gdb_pymodule_addobject.
1095         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1096         gdb_pymodule_addobject.
1097         * python/py-event.c (gdbpy_initialize_event_generic): Use
1098         gdb_pymodule_addobject.
1099         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1100         gdb_pymodule_addobject.
1101         * python/py-evts.c (add_new_registry): Use
1102         gdb_pymodule_addobject.
1103         (gdbpy_initialize_py_events): Likewise.
1104         * python/py-finishbreakpoint.c
1105         (gdbpy_initialize_finishbreakpoints): Use
1106         gdb_pymodule_addobject.
1107         * python/py-frame.c (gdbpy_initialize_frames): Use
1108         gdb_pymodule_addobject.
1109         * python/py-function.c (gdbpy_initialize_functions): Use
1110         gdb_pymodule_addobject.
1111         * python/py-inferior.c (gdbpy_initialize_inferior): Use
1112         gdb_pymodule_addobject.
1113         * python/py-infthread.c (gdbpy_initialize_thread): Use
1114         gdb_pymodule_addobject.
1115         * python/py-objfile.c (gdbpy_initialize_objfile): Use
1116         gdb_pymodule_addobject.
1117         * python/py-param.c (gdbpy_initialize_parameters): Use
1118         gdb_pymodule_addobject.
1119         * python/py-progspace.c (gdbpy_initialize_pspace): Use
1120         gdb_pymodule_addobject.
1121         * python/py-symbol.c (gdbpy_initialize_symbols): Use
1122         gdb_pymodule_addobject.
1123         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1124         gdb_pymodule_addobject.
1125         * python/py-type.c (gdbpy_initialize_types): Use
1126         gdb_pymodule_addobject.
1127         * python/py-utils.c (gdb_pymodule_addobject): New function.
1128         * python/py-value.c (gdbpy_initialize_values): Use
1129         gdb_pymodule_addobject.
1130         * python/python-internal.h (gdb_pymodule_addobject): Declare.
1131         * python/python.c (_initialize_python): Use
1132         gdb_pymodule_addobject.
1133
1134 2013-05-20  Tom Tromey  <tromey@redhat.com>
1135
1136         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1137         * python/py-param.c (get_set_value, get_show_value): Use
1138         explicit decrefs.
1139         * python/python.c (start_type_printers, apply_type_printers):
1140         Use explicit decrefs.
1141
1142 2013-05-20  Tom Tromey  <tromey@redhat.com>
1143
1144         * python/py-evts.c (gdbpy_initialize_py_events): Don't
1145         incref the module.
1146
1147 2013-05-20  Tom Tromey  <tromey@redhat.com>
1148
1149         * python/python.c (gdbpy_run_events): Decref the result
1150         of PyObject_CallObject.
1151
1152 2013-05-20  Tom Tromey  <tromey@redhat.com>
1153
1154         * python/py-symtab.c (set_sal): Use
1155         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
1156         (symtab_and_line_to_sal_object): Update.
1157
1158 2013-05-20  Tom Tromey  <tromey@redhat.com>
1159
1160         * python/py-param.c (compute_enum_values): Decref 'item'.
1161
1162 2013-05-20  Tom Tromey  <tromey@redhat.com>
1163
1164         * mi/mi-main.c: Include python-internal.h.
1165         (mi_cmd_list_features): Check gdb_python_initialized.
1166         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1167         (python_inferior_exit, python_new_objfile, add_thread_object)
1168         (delete_thread_object, py_free_inferior): Check
1169         gdb_python_initialized.
1170         * python/py-prettyprint.c (apply_val_pretty_printer): Check
1171         gdb_python_initialized.
1172         * python/py-type.c (save_objfile_types): Check
1173         gdb_python_initialized.
1174         * python/python-internal.h (gdb_python_initialized): Declare.
1175         * python/python.c (ensure_python_env): Throw exception if
1176         Python not initialized.
1177         (before_prompt_hook, source_python_script_for_objfile)
1178         (start_type_printers, apply_type_printers,
1179         free_type_printers): Check gdb_python_initialized.
1180         * varobj.c (varobj_get_display_hint)
1181         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1182         (install_new_value_visualizer, varobj_set_visualizer)
1183         (value_get_print_value): Check gdb_python_initialized.
1184
1185 2013-05-20  Tom Tromey  <tromey@redhat.com>
1186
1187         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1188         Check errors.
1189         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1190         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1191         Check errors.
1192         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1193         Check errors.
1194         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1195         Check errors.
1196         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1197         Check errors.
1198         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1199         init function to return 'int'.
1200         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1201         Return 'int'.  Check errors.
1202         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1203         Check errors.
1204         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1205         Return 'int'.  Check errors.
1206         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1207         Check errors.
1208         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1209         Check errors.
1210         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1211         Check errors.
1212         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1213         Check errors.
1214         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1215         Check errors.
1216         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1217         Check errors.
1218         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1219         Check errors.
1220         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1221         Check errors.
1222         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1223         Check errors.
1224         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1225         Check errors.
1226         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1227         Check errors.
1228         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1229         Check errors.
1230         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1231         Check errors.
1232         * python/python-internal.h (gdbpy_initialize_auto_load,
1233         gdbpy_initialize_values, gdbpy_initialize_frames,
1234         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1235         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1236         gdbpy_initialize_blocks, gdbpy_initialize_types,
1237         gdbpy_initialize_functions, gdbpy_initialize_pspace,
1238         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1239         gdbpy_initialize_finishbreakpoints,
1240         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1241         gdbpy_initialize_thread, gdbpy_initialize_inferior,
1242         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1243         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1244         gdbpy_initialize_signal_event,
1245         gdbpy_initialize_breakpoint_event,
1246         gdbpy_initialize_continue_event,
1247         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1248         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1249         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1250         * python/python.c (gdb_python_initialized): New global.
1251         (gdbpy_initialize_events): Return 'int'.  Check errors.
1252         (_initialize_python): Check errors.  Set
1253         gdb_python_initialized.
1254
1255 2013-05-20  Tom Tromey  <tromey@redhat.com>
1256
1257         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1258         Decref the reslut of PyObject_CallMethod.
1259
1260 2013-05-20  Tom Tromey  <tromey@redhat.com>
1261
1262         * python/py-event.c (gdbpy_initialize_event_generic): Return
1263         early if PyType_Ready fails.
1264
1265 2013-05-20  Tom Tromey  <tromey@redhat.com>
1266
1267         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1268         as 'default' in the switch.
1269
1270 2013-05-20  Tom Tromey  <tromey@redhat.com>
1271
1272         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
1273         get_addr_from_python calls out of TRY_CATCH.
1274         (infpy_write_memory, infpy_search_memory): Likewise.
1275         * python/py-utils.c (get_addr_from_python): Return negative
1276         value on error.  Use TRY_CATCH.
1277         * python/python-internal.h (get_addr_from_python): Use
1278         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1279
1280 2013-05-20  Tom Tromey  <tromey@redhat.com>
1281
1282         * python/py-event.c (evpy_emit_event): Decref the
1283         result of PyObject_CallFunctionObjArgs.
1284
1285 2013-05-20  Tom Tromey  <tromey@redhat.com>
1286
1287         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
1288         Correctly decref.
1289
1290 2013-05-20  Tom Tromey  <tromey@redhat.com>
1291
1292         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1293
1294 2013-05-20  Tom Tromey  <tromey@redhat.com>
1295
1296         * python/py-event.h (gdbpy_initialize_event_generic): Use
1297         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1298         * python/py-evts.c (add_new_registry): Use
1299         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1300         * python/python-internal.h
1301         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1302
1303 2013-05-20  Tom Tromey  <tromey@redhat.com>
1304
1305         * python/py-arch.c (archpy_disassemble): Update.
1306         * python/py-type.c (typy_get_composite, typy_lookup_typename)
1307         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1308         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1309         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1310         macro.
1311         (GDB_PY_HANDLE_EXCEPTION): Update.
1312         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
1313
1314 2013-05-20  Tom Tromey  <tromey@redhat.com>
1315
1316         * python/python-internal.h (events_object_type): Remove.
1317
1318 2013-05-20  Tom Tromey  <tromey@redhat.com>
1319
1320         * python/py-event.h (evpy_emit_event): Use
1321         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1322         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1323         New macro.
1324
1325 2013-05-20  Tom Tromey  <tromey@redhat.com>
1326
1327         * py-evtregistry.c (create_event_object): Decref
1328         eventregistry_object if PyList_New fails.
1329
1330 2013-05-20  Tom Tromey  <tromey@redhat.com>
1331
1332         * py-cmd.c (gdbpy_string_to_argv): Check result of
1333         PyList_New.
1334
1335 2013-05-20  Tom Tromey  <tromey@redhat.com>
1336
1337         * python/python.c (before_prompt_hook): Add cleanup to
1338         decref 'hook'.
1339
1340 2013-05-20  Tom Tromey  <tromey@redhat.com>
1341
1342         * python/py-function.c (fnpy_init): Decref result of
1343         PyObject_GetAttrString.
1344
1345 2013-05-20  Tom Tromey  <tromey@redhat.com>
1346
1347         * python/py-threadevent.c (get_event_thread): Use
1348         CPYCHECKER_RETURNS_BORROWED_REF.
1349         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1350         New define.
1351         (pspace_to_pspace_object, objfile_to_objfile_object)
1352         (find_thread_object): Use it.
1353
1354 2013-05-20  Tom Tromey  <tromey@redhat.com>
1355
1356         * python/py-arch.c (arch_object_type): Use
1357         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1358         * python/py-block.c (block_syms_iterator_object_type):
1359         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1360         * python/py-bpevent.c (breakpoint_event_object_type):
1361         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1362         * python/py-cmd.c (cmdpy_object_type): Use
1363         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1364         * python/py-continueevent.c (continue_event_object_type):
1365         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1366         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1367         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1368         * python/py-events.h (thread_event_object_type):
1369         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1370         * python/py-evtregistry.c (eventregistry_object_type): Use
1371         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1372         * python/py-exitedevent.c (exited_event_object_type):
1373         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1374         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1375         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1376         * python/py-function.c (fnpy_object_type): Use
1377         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1378         * python/py-inferior.c (inferior_object_type, membuf_object_type):
1379         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1380         * python/py-infthread.c (thread_object_type): Use
1381         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1382         * python/py-lazy-string.c (lazy_string_object_type):
1383         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1384         * python/py-newobjfileevent.c (new_objfile_event_object_type):
1385         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1386         * python/py-objfile.c (objfile_object_type): Use
1387         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1388         * python/py-param.c (parmpy_object_type):
1389         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1390         * python/py-progspace.c (pspace_object_type):
1391         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1392         * python/py-signalevent.c (signal_event_object_type):
1393         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1394         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1395         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1396         * python/py-type.c (type_object_type, field_object_type)
1397         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1398         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1399         define.
1400         (value_object_type, block_object_type, symbol_object_type)
1401         (event_object_type, stop_event_object_type, breakpoint_object_type)
1402         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1403
1404 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
1405
1406         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1407         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1408
1409 2013-05-20  Doug Evans  <dje@google.com>
1410
1411         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
1412         For Fission.
1413         * dwarf2read.c (struct dwarf2_per_cu_data): New member
1414         reading_dwo_directly.
1415         (struct signatured_type): New member dwo_unit.
1416         (struct die_reader_specs): New member comp_dir.
1417         (create_signatured_type_table_from_index): Use malloc for
1418         all_type_units instead of objfile's obstack.
1419         (create_all_type_units): Ditto.
1420         (fill_in_sig_entry_from_dwo_entry): New function.
1421         (add_type_unit): New function.
1422         (lookup_dwo_signatured_type): New function.
1423         (lookup_dwp_signatured_type): New function.
1424         (lookup_signatured_type): New arg cu.  All callers updated.
1425         (init_cu_die_reader): Initialize comp_dir.
1426         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
1427         Change assert of matching type signatures to call error on mismatch.
1428         (lookup_dwo_unit): Add assert.
1429         (init_tu_and_read_dwo_dies): New function.
1430         (init_cutu_and_read_dies): Call it.
1431         (build_type_unit_groups): Handle case of no type unit groups created.
1432         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1433         (lookup_dwo_cutu): Tweak complaint.
1434         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1435         (dwarf2_per_objfile_free): Free all_type_units.
1436
1437 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1438
1439         * windows-nat.c (handle_unload_dll): Add missing empty line.
1440
1441 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1442
1443         * dwarf2read.c (prototyped_function_p): New function.
1444         (read_subroutine_type): Use it.
1445
1446 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1447
1448         * rs6000-aix-tdep.c: De-indent some example code provided
1449         as a comment.
1450
1451 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1452
1453         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1454         region is ok for a hardware watchpoint using the new ptrace interface
1455         on Power servers.
1456
1457 2013-05-17  Doug Evans  <dje@google.com>
1458
1459         * NEWS: Mention new maintenance commands check-symtabs, and
1460         expand-symtabs, and renamed check-psymtabs.
1461         * psymtab.c (maintenance_check_psymtabs): Renamed from
1462         maintenance_check_symtabs.  Only process already-expanded symbol
1463         tables.
1464         (_initialize_psymtab): Update.
1465         * symmisc.c (maintenance_check_symtabs): New function.
1466         (maintenance_expand_name_matcher): New function
1467         (maintenance_expand_file_matcher): New function
1468         (maintenance_expand_symtabs): New function.
1469         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1470         commands.
1471
1472 2013-05-17  Tom Tromey  <tromey@redhat.com>
1473
1474         * python/py-inferior.c (infpy_read_memory): Don't call
1475         PyErr_SetString if PyObject_New fails.
1476         * python/py-frame.c (frame_info_to_frame_object): Don't call
1477         PyErr_SetString if PyObject_New fails.
1478
1479 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
1480
1481         * acinclude.m4: Add check for dlopen in libdl.
1482         * configure.ac: Ditto.
1483         * configure: Regenerate.
1484
1485 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
1486
1487         * frame.c (frame_stash): Convert to htab.
1488         (frame_addr_hash): New function.
1489         (frame_addr_hash_eq): New function.
1490         (frame_stash_create): Convert function to create
1491         a hash table.
1492         (frame_stash_add): Convert function to add an entry to a hash
1493         table.
1494         (frame_stash_find): Convert function to search the hash table.
1495         (frame_stash_invalidate): Convert function to empty the hash
1496         table.
1497         (get_frame_id): Only add to stash if a frame_id is created.
1498         (_initialize_frame): Call frame_stash_create.
1499
1500 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
1501
1502         * configure.ac: Ensure MIG is available when building for GNU Hurd
1503         hosts.
1504         * configure: Regenerate.
1505
1506 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1507
1508         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1509
1510 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1511
1512         * ada-lang.c (ada_make_symbol_completion_list): Make sure
1513         all cleanups are done before returning from this function.
1514
1515 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1516
1517         * utils.h: #include "exceptions.h".
1518         (enum errors): Remove partial declaration.
1519
1520 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1521
1522         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1523         * gdbarch.h, gdbarch.c: Regenerate.
1524         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1525         handling.
1526
1527         * rs6000-aix-tdep.h: New file.
1528         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1529         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1530         "xml-utils.h".
1531         (struct field_info, struct ld_info_desc): New types.
1532         (ld_info32_desc, ld_info64_desc): New static constants.
1533         (struct ld_info): New type.
1534         (rs6000_aix_extract_ld_info): New function.
1535         (rs6000_aix_shared_library_to_xml): Likewise.
1536         (rs6000_aix_ld_info_to_xml): Likewise.
1537         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1538         (rs6000_aix_init_osabi): Add call to
1539         set_gdbarch_core_xfer_shared_libraries_aix.
1540         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1541         Remove "xml-utils.h" include.
1542         (LdInfo): Delete typedef.
1543         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1544         Delete macros.
1545         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1546         Adjust code accordingly.
1547         (rs6000_core_ldinfo): Delete, folded into
1548         rs6000_aix_core_xfer_shared_libraries_aix.
1549         (rs6000_xfer_shared_library): Delete.
1550         (rs6000_xfer_shared_libraries): Reimplement.
1551
1552 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
1553
1554         * record.c (record_goto_cmdlist): New.
1555         (cmd_record_goto): Split into this ...
1556         (cmd_record_goto_begin): ... this
1557         (cmd_record_goto_end): ... and this.
1558         (_initialize_record): Change "record goto" to prefix command.
1559         Add commands for "record goto begin" and "record goto end".
1560         Add an alias for "record goto start" to "record goto begin".
1561
1562 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1563
1564         * linespec.c (convert_linespec_to_sals): New comment for
1565         SOURCE_FILENAME assignment.
1566
1567 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1568
1569         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1570         internal_warning.
1571
1572 2013-05-14  Tom Tromey  <tromey@redhat.com>
1573
1574         * eval.c (parse_and_eval_long): Make 'exp' const.
1575         * value.h (parse_and_eval_long): Update.
1576
1577 2013-05-14  Tom Tromey  <tromey@redhat.com>
1578
1579         * ui-file.c (gdb_fopen): Make arguments const.
1580         * ui-file.h (gdb_fopen): Make arguments const.
1581
1582 2013-05-14  Tom Tromey  <tromey@redhat.com>
1583
1584         * remote.c (remote_set_trace_notes): Make arguments const.
1585         * target.c (update_current_target): Update cast.
1586         * target.h (to_set_trace_notes): Make arguments const.
1587
1588 2013-05-14  Tom Tromey  <tromey@redhat.com>
1589
1590         * go32-nat.c (go32_terminal_info): Make 'args' const.
1591         * inferior.h (child_terminal_info): Update.
1592         * inflow.c (child_terminal_info): Make 'args' const.
1593         * target.c (default_terminal_info): Make 'args' const.
1594         (debug_to_terminal_save_ours): Likewise.
1595         * target.h (struct target_ops) <to_terminal_info>: Make argument
1596         const.
1597
1598 2013-05-13  Tom Tromey  <tromey@redhat.com>
1599
1600         * gcore.c (create_gcore_bfd): Make 'filename' const.
1601         * gcore.h (create_gcore_bfd): Make 'filename' const.
1602         * record-full.c (record_full_save): Make 'recfilename' const.
1603         * target.c (target_save_record): Make 'filename' const.
1604         * target.h (struct target_ops) <to_save_record>: Make 'filename'
1605         const.
1606         (target_save_record): Likewise.
1607
1608 2013-05-13  Tom Tromey  <tromey@redhat.com>
1609
1610         PR gdb/15338:
1611         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1612         ranges section has been read.
1613
1614 2013-05-13  Tom Tromey  <tromey@redhat.com>
1615
1616         PR exp/15364:
1617         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1618         STRUCTOP_PTR>: Return a not_lval value for
1619         EVAL_AVOID_SIDE_EFFECTS.
1620         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1621         for EVAL_AVOID_SIDE_EFFECTS.
1622
1623 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
1624
1625         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1626         floating point registers to register type before storing
1627         value.
1628         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1629         Likewise.
1630
1631 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1632             Tom Tromey  <tromey@redhat.com>
1633
1634         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1635         New functions.
1636         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1637         Declare.
1638         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1639         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1640         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1641         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1642
1643 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
1644             Tom Tromey  <tromey@redhat.com>
1645
1646         PR build/15414:
1647         * configure: Rebuild.
1648         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1649         with -Wno-format.
1650
1651 2013-05-10  Pedro Alves  <palves@redhat.com>
1652
1653         * remote.c (_initialize_remote): Fix spelling of
1654         qXfer:traceframe-info:read packet in packet config command.
1655
1656 2013-05-10  David Taylor  <dtaylor@emc.com>
1657
1658         PR remote/15455
1659
1660         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1661         "QTro" at start of packet.
1662
1663 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1664
1665         * solib-aix.c (solib_aix_relocate_section_addresses):
1666         For the .bss section action, apply the same offset as
1667         the .data section.
1668
1669 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1670
1671         * solib-aix.c (solib_aix_relocate_section_addresses):
1672         Remove FIXME comment.
1673
1674 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
1675
1676         PR tdep/15420:
1677         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1678         New functions, directly copied from sparc-sol-thread.c.
1679         * sparc-sol-thread.c: Delete.
1680         * configure.ac: Remove code handling sparc-solaris-thread.c.
1681         * configure: Regenerate.
1682
1683 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
1684
1685         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1686         filter logic.
1687         (backtrace_command): Add "no-filters" option parsing.
1688         (_initialize_stack): Alter help to reflect "no-filters" option.
1689         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1690         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1691         (py-frame.o): Add target
1692         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1693         filter files.
1694         * python/python.h: Add new frame filter constants, and flag enum.
1695         (apply_frame_filter): Add definition.
1696         * python/python.c (apply_frame_filter): New non-Python
1697         enabled function.
1698         * python/py-utils.c (py_xdecref): New function.
1699         (make_cleanup_py_xdecref): Ditto.
1700         * python/py-objfile.c: Declare frame_filters dictionary.
1701         (objfpy_dealloc): Add frame_filters dealloc.
1702         (objfpy_new): Initialize frame_filters attribute.
1703         (objfile_to_objfile_object): Ditto.
1704         (objfpy_get_frame_filters): New function.
1705         (objfpy_set_frame_filters): New function.
1706         * python/py-progspace.c: Declare frame_filters dictionary.
1707         (pspy_dealloc): Add frame_filters dealloc.
1708         (pspy_new): Initialize frame_filters attribute.
1709         (pspacee_to_pspace_object): Ditto.
1710         (pspy_get_frame_filters): New function.
1711         (pspy_set_frame_filters): New function.
1712         * python/py-framefilter.c: New file.
1713         * python/lib/gdb/command/frame_filters.py: New file.
1714         * python/lib/gdb/frames.py: New file.
1715         * python/lib/gdb/__init__.py: Initialize global frame_filters
1716         dictionary
1717         * python/lib/gdb/FrameDecorator.py: New file.
1718         * python/lib/gdb/FrameIterator.py: New file.
1719         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1720         * mi/mi-cmds.h: Declare.
1721         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1722         --no-frame-filter logic, and Python frame filter logic.
1723         (stack_enable_frame_filters): New function.
1724         (parse_no_frame_option): Ditto.
1725         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1726         filter logic.
1727         (mi_cmd_stack_list_locals): Ditto.
1728         (mi_cmd_stack_list_args): Ditto.
1729         (mi_cmd_stack_list_variables): Ditto.
1730         * NEWS: Add frame filter note.
1731
1732 2013-05-09  Doug Evans  <dje@google.com>
1733
1734         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1735         All callers updated.
1736         (syms_from_objfile): Ditto.  Make static.
1737         (symbol_file_add_with_addrs): Renamed from
1738         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
1739         num_offsets.  All callers updated.
1740         * symfile.h (syms_from_objfile): Delete.
1741
1742         * symfile.c (decrement_reading_symtab): Add assert.
1743         (increment_reading_symtab): Ditto.
1744
1745 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
1746
1747         * source.c (forward_search_command): Replace call to getc
1748         by call to fgetc.
1749         (reverse_search_command): Likewise.
1750
1751 2013-05-08  Doug Evans  <dje@google.com>
1752
1753         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1754         matching test.
1755
1756 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1757
1758         * sol-thread.c (info_cb): Factorize the code a little.
1759
1760 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1761
1762         * sol-thread.c (info_cb): Rework the output of the "maintenance
1763         info sol-threads" command a bit.
1764
1765 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1766
1767         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1768         Replace ti.ti_startfunc by ti.ti_pc.
1769
1770 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
1771
1772         * solib-aix.c (solib_aix_free_library_list): New function
1773         for the case where HAVE_LIBEXPAT is not defined.
1774
1775 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
1776
1777         PR breakpoints/15413:
1778         * breakpoint.c (condition_completer): Simplify the code to
1779         disconsider multiple locations of breakpoints when completing the
1780         "condition" command.
1781
1782 2013-05-07  Pierre Muller  <muller@sourceware.org>
1783
1784         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1785         instead of <sys/wait.h>.
1786
1787 2013-05-07  Pierre Muller  <muller@sourceware.org>
1788
1789         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1790         trailing new line from warning message.
1791
1792 2013-05-07  Pierre Muller  <muller@sourceware.org>
1793
1794         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1795         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1796
1797 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1798
1799         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1800         error message (ARI fix).
1801
1802 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1803
1804         * features/library-list-aix.dtd: Replace library-list by
1805         library-list-aix.
1806         * rs6000-nat.c: Replace library-list by library-list-aix
1807         throughout.
1808         * solib-aix.c: Likewise.
1809
1810 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
1811
1812         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1813         Renames TARGET_OBJECT_AIX_LIBRARIES.
1814         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1815         TARGET_OBJECT_LIBRARIES_AIX throughout.
1816         * solib-aix.c: Likwise.
1817
1818 2013-05-07  Yao Qi  <yao@codesourcery.com>
1819
1820         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1821         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1822
1823 2013-05-07  Yao Qi  <yao@codesourcery.com>
1824
1825         * solib-dsbt.c (enable_break): Declare.
1826         (dsbt_current_sos): Remove call to enable_break2.
1827         (enable_break2): Rename to enable_break.  Set solib breakpoint
1828         on '_dl_debug_state'.
1829         (enable_break): Remove.
1830
1831 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
1832
1833         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1834         debug state prior to replicating existing hardware watchpoints or
1835         breakpoints.
1836
1837 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1838
1839         * gcore.c (gcore_create_callback): Ignore sections with
1840         separate_debug_objfile_backlink != NULL.
1841
1842 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
1843             Andrew Jenner  <andrew@codesourcery.com>
1844             Chung-Lin Tang  <cltang@codesourcery.com>
1845             Julian Brown  <julian@codesourcery.com>
1846
1847         Based on the nios2-elf port from Altera Corporation.
1848
1849         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1850         nios2-linux-tdep.o.
1851         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1852         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1853         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1854         * nios2-tdep.h: New.
1855         * nios2-tdep.c: New.
1856         * nios2-linux-tdep.c: New.
1857         * features/Makefile (WHICH): Add nios2-linux.
1858         (nios2-linux-expedite): Set.
1859         * features/nios2-cpu.xml: New.
1860         * features/nios2.xml: New.
1861         * features/nios2-linux.xml: New.
1862         * features/nios2.c: New (autogenerated).
1863         * features/nios2-linux.c: New (autogenerated).
1864         * regformats/nios2-linux.dat: New (autogenerated).
1865         * NEWS (Changes since GDB 7.6): Add new Nios II targets
1866         and commands.
1867
1868 2013-05-06  Doug Evans  <dje@google.com>
1869
1870         * symfile.c: Whitespace cleanup.
1871
1872         * solist.h (struct target_so_ops): New member clear_so.
1873         * solib-svr4.c (svr4_clear_so): New function.
1874         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1875         * solib.c (clear_so): Renamed from free_so_symbols.
1876         All callers updated.  Call target clear_so if it exists.
1877
1878 2013-05-06  Tom Tromey  <tromey@redhat.com>
1879
1880         * ada-lang.c (ada_value_primitive_packed_val): Don't
1881         call value_incref.
1882         * value.c (set_value_parent): Incref the new parent and decref
1883         the old parent.
1884         (value_copy, value_primitive_field): Use set_value_parent.
1885
1886 2013-05-06  Tom Tromey  <tromey@redhat.com>
1887
1888         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1889         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1890         if needed.
1891         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1892         * dwarf2read.c (write_constant_as_bytes)
1893         (dwarf2_fetch_constant_bytes): New functions.
1894
1895 2013-05-06  Tom Tromey  <tromey@redhat.com>
1896
1897         * dwarf2read.c (dwarf2_const_value_data): Remove unused
1898         parameters.
1899         (dwarf2_const_value_attr): Update.
1900
1901 2013-05-06  Tom Tromey  <tromey@redhat.com>
1902
1903         * somread.c (som_symfile_offsets): Add 'const' to addrs.
1904         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1905         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1906         Remove declaration.
1907
1908 2013-05-06  Tom Tromey  <tromey@redhat.com>
1909
1910         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1911         objfile's obstack.
1912
1913 2013-05-06  Doug Evans  <dje@google.com>
1914
1915         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1916         * stabsread.h (process_one_symbol): Update declaration.
1917         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1918         * elfread.c (elf_symfile_relocate_probe): Ditto.
1919         * psymtab.c (relocate_psymtabs): Ditto.
1920         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1921         (objfile_relocate): Ditto.
1922         * objfiles.h (objfile_relocate): Update declaration.
1923         * symfile.c (relative_addr_info_to_section_offsets): Constify
1924         addrs parameter.
1925         (default_symfile_offsets): Ditto.
1926         (syms_from_objfile_1): Constify offsets parameter.
1927         (syms_from_objfile): Ditto.
1928         (symbol_file_add_with_addrs_or_offsets): Ditto.
1929         (symfile_map_offsets_to_segments): Constify data parameter.
1930         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1931         delta parameters of member relocate.
1932         (struct sym_probe_fns): Constify new_offsets,
1933         delta parameters of member sym_relocate_probe.
1934         (struct sym_fns): Constify section_addr_info parameter of member
1935         sym_offsets.
1936         (relative_addr_info_to_section_offsets): Update declaration.
1937         (default_symfile_offsets): Ditto.
1938         (syms_from_objfile): Ditto.
1939         (symfile_map_offsets_to_segments): Ditto.
1940
1941         * symfile.c (syms_from_objfile_1): Use correct section count when
1942         objfile->sf == NULL.
1943
1944 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1945
1946         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1947
1948 2013-05-06  Doug Evans  <dje@google.com>
1949
1950         * psympriv.h (struct partial_symtab): Augment comment for member
1951         section_offsets.
1952
1953 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
1954
1955         Reimplement shared library support on ppc-aix...
1956         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1957         * features/library-list-aix.dtd: New file.
1958         * solib-aix.h, solib-aix.c: New file.
1959         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1960         (rs6000_find_toc_address_hook): Delete.
1961         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1962         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1963         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
1964         "xml-utils.h".
1965         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1966         (vmap_symtab, fixup_breakpoints): Delete.
1967         (rs6000_xfer_shared_libraries): New function.
1968         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1969         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1970         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1971         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1972         (rs6000_xfer_shared_library): New function.
1973         (find_toc_address): Delete.
1974         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1975         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1976         * xcoffread.c (record_minimal_symbol): Reloate symbol address
1977         before creating minimal symbol.  Adjust function description
1978         accordingly.
1979         (scan_xcoff_symtab): Replace call to
1980         prim_record_minimal_symbol_and_info by call to
1981         record_minimal_symbol.
1982         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1983         around default_symfile_offsets.
1984         * configure.tgt: Add solib-aix.o to gdb_target_obs for
1985         powerpc-aix targets.
1986         * config/rs6000/nm-rs6000.h: Delete.
1987         * config/powerpc/aix.mh (NAT_FILE): Delete.
1988         (NATDEPFILES): Remove xcoffsolib.o.
1989         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1990         (ALL_TARGET_OBS): Add solib-aix.o.
1991         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1992         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
1993         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
1994         * xcoffsolib.h, xcoffsolib.c: Delete.
1995
1996         * solib.c (reload_shared_libraries): Remove reference to
1997         SOLIB_CREATE_INFERIOR_HOOK.
1998         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1999         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
2000         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
2001         comment.
2002         * corelow.c (deprecated_core_resize_section_table): Delete.
2003         * exec.c: Remove include of xcoffsolib.h".
2004         (map_vmap, vmap): Delete.
2005         (exec_close_1): Remove references to vmap.
2006         (exec_file_attach): Remove vmap handling code, and reference
2007         to DEPRECATED_IBM6000_TARGET.
2008         (bfdsec_to_vmap): Delete.
2009         (exec_files_info): Remove block of code handling VMAP.
2010         * infcmd.c (post_create_inferior): Remove reference to
2011         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
2012         * infrun.c (follow_exec): Remove reference to
2013         SOLIB_CREATE_INFERIOR_HOOK.
2014         * stack.c (print_frame): Remove reference to PC_SOLIB.
2015         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
2016         (dsbt_relocate_main_executable): Likewise.
2017         * solib-frv.c (frv_current_sos): Likewise.
2018
2019 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2020
2021         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2022         to target_write_memory and target_read_memory.
2023
2024 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2025
2026         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2027         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2028
2029 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2030
2031         * darwin-nat.c: Replace all "%x" instances in format strings
2032         into "0x%x" throughout.
2033
2034 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2035
2036         * darwin-nat.c (darwin_mourn_inferior): Replace call to
2037         gdb_assert by call to MACH_CHECK_ERROR.
2038         (darwin_attach_pid): Raise an error rather than a failed
2039         assertion when various system calls failed.  Report a warning
2040         instead of raising a failed assertion when PREV_NOT is not NULL
2041         after call to mach_port_request_notification.
2042         (darwin_ptrace_me): Raise an error rather than a failed
2043         assertion when read returns nonzero.
2044
2045 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2046
2047         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2048
2049 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2050
2051         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2052
2053 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2054
2055         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2056         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2057         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
2058         a stale cleanup.  Fix double free of NAME.
2059
2060 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
2061
2062         * windows-nat.c (windows_delete_thread): Accept an additional
2063         argument, the thread's exit code, and announce thread death when
2064         print_thread_events is non-zero and we are deleting a thread that
2065         is not the main thread.
2066         (get_windows_debug_event): Pass thread exit code to
2067         windows_delete_thread.
2068
2069 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
2070
2071         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2072         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2073         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2074         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2075         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2076         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2077         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2078         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2079         (gdbarch_tdep): New struct.
2080         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2081         E_NUM_REGS.
2082         (v850e3v5_register_name): New function.
2083         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2084         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
2085         code handling the struct return conventions for the RH850 ABI.
2086         Update all callers.
2087         (v850_eight_byte_align_p): New function.
2088         (v850_push_call_dummy): Push structs by value, not by reference
2089         for the RH850 ABI.  Add support for eight byte alignment.
2090         (v850_dbtrap_breakpoint_from_pc): New function.
2091         (v850_gdbarch_init): Add ABI detection code.  Register
2092         v850e3v5_register_name for the v850e3v5 architecture.  Set the
2093         number of registers for v850e3v5.  Register
2094         v850_dbtrap_breakpoint_from_pc as appropriate.
2095         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2096
2097 2013-05-03  Doug Evans  <dje@google.com>
2098
2099         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2100         of bfd_count_sections.
2101         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2102         * symfile.c (default_symfile_offsets): Ditto.
2103         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
2104         one entry, not bfd_count_sections entries.
2105
2106 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
2107
2108         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2109         `save' and `restore' register groups.  Don't include SPL
2110         or SPH in these groups.
2111         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
2112         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
2113         RL78_ES_REGNUM, and RL78_CS_REGNUM.
2114         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
2115         dwarf2_append_unwinders().
2116
2117 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2118
2119         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2120         ignore SIGINT and SIGTRAP in case these internal signals are
2121         caught explicitely.
2122
2123 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2124
2125         * darwin-nat.c (darwin_read_write_inferior): Change types
2126         of parameters rdaddr and wraddr to "gdb_byte *". Change type
2127         of copy_count to "mach_msg_type_number_t".
2128         (darwin_read_dyld_info): Change type of parameter
2129         rdaddr to "gdb_byte *".
2130
2131 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2132
2133         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2134         of &info->load_map from "char *" to "gdb_byte *".
2135
2136 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2137
2138         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2139         from "char *" to "gdb_byte *".
2140         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2141
2142 2013-04-30  Doug Evans  <dje@google.com>
2143
2144         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2145         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2146         DWO stub.  If DWO isn't found, just use stub.
2147         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2148
2149         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2150         calling init_cutu_and_read_dies.
2151
2152 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2153
2154         * target-descriptions.c (maint_print_c_tdesc_cmd):
2155         Add case to parse structures as register types and
2156         bitfields.
2157
2158 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2159
2160         * MAINTAINERS (Write After Approval): Add myself to the list.
2161
2162 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2163
2164         * sol-thread.c (rw_common): Change type of parameter "buf"
2165         to "gdb_byte *".
2166         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2167         rw_common to "gdb_byte *" instead of "char *".
2168
2169 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2170
2171         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2172         of local variable msym to const struct bound_minimal_symbol.
2173         Adjust use accordingly.
2174         [ti.ti_state == TD_THR_SLEEP]: Likewise.
2175
2176 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
2177
2178         * i386gnu-nat.c (CREG_OFFSET): New macro.
2179         (creg_offset): New array.
2180         (CREG_ADDR): Use creg_offset instead of reg_offset.
2181
2182 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2183
2184         * mep-tdep.c (mep_write_pc): Delete.
2185         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2186         Add call to set_gdbarch_pc_regnum.
2187
2188 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2189
2190         * common/filestuff.c: Replace #include <dirent.h> by
2191         #include "gdb_dirent.h".
2192
2193 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2194
2195         * common/filestuff.c: Replace #include <sys/stat.h> by
2196         #include "gdb_stat.h".
2197
2198 2013-04-29  Pierre Muller  <muller@sourceware.org>
2199
2200         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2201         editCase function rule.
2202         (get_DW_AT_signature_type): Likewise.
2203
2204 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
2205
2206         * m32r-tdep.c (m32r_write_pc): Delete.
2207         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2208         Add call to set_gdbarch_pc_regnum.
2209
2210 2013-04-29  Pierre Muller  <muller@sourceware.org>
2211
2212         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2213
2214 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
2215
2216         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2217
2218 2013-04-28  Yao Qi  <yao@codesourcery.com>
2219
2220         * solib-dsbt.c (fetch_loadmap): Re-indent.
2221         (displacement_from_map, enable_break2): Likewise.
2222         (dsbt_relocate_section_addresses): Likewise.
2223
2224 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
2225
2226         GDB 7.6 released.
2227
2228 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
2229
2230         PR corefiles/14983:
2231         * dwarf2read.c (process_full_comp_unit): Always create a static
2232         block.
2233
2234 2013-04-25  Hui Zhu  <hui@codesourcery.com>
2235
2236         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2237         to loc->cmd_bytecode.
2238
2239 2013-04-24  Doug Evans  <dje@google.com>
2240
2241         * dwarf2read.c (setup_type_unit_groups): Fix comment.
2242
2243 2013-04-22  Keith Seitz  <keiths@redhat.com>
2244
2245         * tracepoint.c (trace_save):  Call the writer's start method.
2246
2247 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
2248
2249         PR gdb/10462
2250         * cli/cli-decode.c (lookup_command): Show an error if there is no space
2251         before argument.
2252
2253 2013-04-23  Tom Tromey  <tromey@redhat.com>
2254
2255         * common/filestuff.c: Check USE_WIN32API before including
2256         sys/socket.h.
2257         (HAVE_F_GETFD): New define.
2258         (mark_cloexec): Check HAVE_F_GETFD.
2259         (gdb_open_cloexec): Change 'mode' to unsigned long.
2260         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2261         (gdb_pipe_cloexec): Check HAVE_PIPE.
2262         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2263         long.
2264
2265 2013-04-23  Hui Zhu  <hui@codesourcery.com>
2266
2267         PR gdb/15293
2268         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2269
2270 2013-04-23  Hui Zhu  <hui@codesourcery.com>
2271
2272         PR gdb/15165
2273         * breakpoint.c (dprintf_print_recreate): New.
2274         (save_breakpoints): Let it not save dprintf commands.
2275         (initialize_breakpoint_ops): Set dprintf_print_recreate.
2276
2277 2013-04-22  Tom Tromey  <tromey@redhat.com>
2278
2279         PR gdb/7912:
2280         * Makefile.in (SFILES): Add filestuff.c
2281         (COMMON_OBS): Add filestuff.o.
2282         (filestuff.o): New target.
2283         * auto-load.c (auto_load_objfile_script_1): Use
2284         gdb_fopen_cloexec.
2285         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
2286         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
2287         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
2288         * common/agent.c (gdb_connect_sync_socket): Use
2289         gdb_socket_cloexec.
2290         * common/filestuff.c: New file.
2291         * common/filestuff.h: New file.
2292         * common/linux-osdata.c (linux_common_core_of_thread)
2293         (command_from_pid, commandline_from_pid, print_source_lines)
2294         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2295         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2296         gdb_fopen_cloexec.
2297         * common/linux-procfs.c (linux_proc_get_int)
2298         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2299         * config.in, configure: Rebuild.
2300         * configure.ac: Don't check for sys/socket.h.  Check for
2301         fdwalk, pipe2.
2302         * corelow.c (core_open): Use gdb_open_cloexec.
2303         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2304         * fork-child.c (fork_inferior): Call close_most_fds.
2305         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2306         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2307         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2308         Use gdb_fopen_cloexec.
2309         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2310         gdb_open_cloexec.
2311         (linux_async_pipe): Use gdb_pipe_cloexec.
2312         * remote-fileio.c (remote_fileio_func_open): Use
2313         gdb_open_cloexec.
2314         * remote.c (remote_file_put, remote_file_get): Use
2315         gdb_fopen_cloexec.
2316         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2317         close_most_fds.
2318         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2319         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2320         * solib.c (solib_find): Use gdb_open_cloexec.
2321         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2322         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2323         (tfile_open): Use gdb_open_cloexec.
2324         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2325         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2326         * xml-support.c (xml_fetch_content_from_file): Use
2327         gdb_fopen_cloexec.
2328         * main.c (captured_main): Call notice_open_fds.
2329
2330 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2331
2332         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2333         'char *' to 'gdb_byte *'.
2334         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2335         'gdb_byte'.
2336
2337 2013-04-22  Yao Qi  <yao@codesourcery.com>
2338
2339         * infrun.c: Fix typo in comment.
2340
2341 2013-04-22  Andrew Haley  <aph@redhat.com>
2342
2343         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2344         instead of "long".
2345
2346 2013-04-20  Yao Qi  <yao@codesourcery.com>
2347
2348         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2349         'char *' to 'gdb_byte *'.  Cast the return value of
2350         'bt_ctf_get_char_array' to 'gdb_byte *'.
2351
2352 2013-04-19  Pedro Alves  <palves@redhat.com>
2353
2354         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2355         -Wpointer-sign.
2356         * configure: Regenerate.
2357
2358 2013-04-19  Pedro Alves  <palves@redhat.com>
2359
2360         * ser-tcp.c (net_read_prim): Cast second argument to recv to
2361         'void *'.
2362
2363 2013-04-19  Pedro Alves  <palves@redhat.com>
2364
2365         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2366         Change type of 'myaddr' parameter to gdb_byte pointer.
2367         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
2368         to 'long long' pointer instead of to 'unsigned long long'.
2369         (monitor_write_memory_block, monitor_read_memory_single)
2370         (monitor_read_memory): Change type of 'myaddr' parameter to
2371         gdb_byte pointer.
2372
2373 2013-04-19  Pedro Alves  <palves@redhat.com>
2374
2375         * record.c (validate_history_size): Make parameter 'setting'
2376         unsigned.
2377
2378 2013-04-19  Pedro Alves  <palves@redhat.com>
2379
2380         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2381         to 'gdb_byte *'.
2382
2383 2013-04-19  Pedro Alves  <palves@redhat.com>
2384
2385         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2386         local to int.
2387
2388 2013-04-19  Pedro Alves  <palves@redhat.com>
2389
2390         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2391         * ada-tasks.c (read_fat_string_value): Likewise.
2392
2393 2013-04-19  Pedro Alves  <palves@redhat.com>
2394
2395         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2396         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
2397         'offset', and adjust.
2398
2399 2013-04-19  Pedro Alves  <palves@redhat.com>
2400
2401         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2402         (read_index_from_section): Add cast to 'char *'.
2403
2404 2013-04-19  Pedro Alves  <palves@redhat.com>
2405
2406         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2407
2408 2013-04-19  Pedro Alves  <palves@redhat.com>
2409
2410         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2411
2412 2013-04-19  Pedro Alves  <palves@redhat.com>
2413
2414         * record-full.c (record_full_get_bookmark): Change local 'ret'
2415         type to char * and add cast to gdb_byte *.
2416         (record_full_goto_bookmark): Handle 'bookmark' argument as a
2417         string.
2418         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2419
2420 2013-04-19  Pedro Alves  <palves@redhat.com>
2421
2422         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2423         * python/py-prettyprint.c (print_string_repr): Change type of
2424         'output' local to char *.  Add cast to gdb_byte * in
2425         LA_PRINT_STRING call.
2426         (print_children): Change type of 'output' local to char *.
2427         * python/py-value.c (valpy_string): Add cast to const char * in
2428         PyUnicode_Decode call.
2429
2430 2013-04-19  Pedro Alves  <palves@redhat.com>
2431
2432         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2433         and change its type to 'const char *'.  Adjust.
2434         (mips_send_packet): Add cast to 'char *', and remove cast to
2435         'unsigned char *'.
2436         (mips_receive_packet): Remove cast to 'unsigned char *'.
2437         (mips_load_srec): Use bfd_byte.
2438         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2439         (pmon_checkset): Make 'value' parameter unsigned.
2440
2441 2013-04-19  Pedro Alves  <palves@redhat.com>
2442
2443         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2444
2445 2013-04-19  Pedro Alves  <palves@redhat.com>
2446
2447         * remote.c (remote_write_bytes_aux, compare_sections_command)
2448         (remote_read_qxfer)
2449         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2450         (remote_hostio_readlink, remote_bfd_iovec_pread)
2451         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2452         binary buffer, and char when buffer is used as string.
2453         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2454         (trace_save, tfile_open, traceframe_walk_blocks)
2455         (tfile_fetch_registers): Likewise.
2456
2457 2013-04-19  Pedro Alves  <palves@redhat.com>
2458
2459         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2460         buffer and size_t size.  Adjust.
2461         * ser-base.h (ser_base_write): Adjust.
2462         * ser-go32.c (cnts): Change type to size_t.
2463         (dos_write): Change prototype -- take 'void *'
2464         buffer and size_t size.  Adjust.
2465         (dos_info): Print elements of 'cnts' as unsigned long.
2466         * serial.c (serial_write): Likewise.
2467         * serial.h (serial_write): Adjust.
2468         (struct serial_ops) <write>: Change prototype -- take 'void *'
2469         buffer and size_t size.  Adjust.
2470
2471 2013-04-19  Pedro Alves  <palves@redhat.com>
2472
2473         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2474         gdb_byte *.
2475         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2476
2477 2013-04-19  Pedro Alves  <palves@redhat.com>
2478
2479         * alpha-tdep.c (alpha_extract_return_value): Use
2480         regcache_cooked_read_unsigned to read 'v0'.
2481
2482 2013-04-19  Pedro Alves  <palves@redhat.com>
2483
2484         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2485         parameters 'at', 'as' and 'offset' to uint32_t.
2486
2487 2013-04-19  Pedro Alves  <palves@redhat.com>
2488
2489         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2490         'is64' to signed 'int'.
2491
2492 2013-04-19  Pedro Alves  <palves@redhat.com>
2493
2494         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2495         parameter to int *.
2496
2497 2013-04-19  Pedro Alves  <palves@redhat.com>
2498
2499         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2500         'insnbuf' buffer type to unsigned int[].
2501
2502 2013-04-19  Pedro Alves  <palves@redhat.com>
2503
2504         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2505
2506 2013-04-19  Pedro Alves  <palves@redhat.com>
2507
2508         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2509         unsigned long *.
2510
2511 2013-04-19  Pedro Alves  <palves@redhat.com>
2512
2513         * alpha-tdep.c (heuristic_fence_post): Change type to int.
2514         (alpha_heuristic_proc_start): Adjust to check -1 instead of
2515         UINT_MAX.
2516         * mips-tdep.c (heuristic_fence_post): Change type to int.
2517         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2518
2519 2013-04-19  Pedro Alves  <palves@redhat.com>
2520
2521         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2522         (struct gdbarch_tdep) <cris_version>: Make unsigned.
2523         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2524
2525 2013-04-19  Pedro Alves  <palves@redhat.com>
2526
2527         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
2528         it to get a string view of the byte buffer.
2529         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2530         type to gdb_byte *.  Adjust.
2531         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2532         Change local to char *.
2533         * solib-darwin.c (find_program_interpreter): Change return type to
2534         char *.  Adjust.
2535         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2536         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2537         * solib-frv.c (enable_break2): Change local 'buf' to char *.
2538         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2539         * solib-svr4.c (find_program_interpreter): Change return type to
2540         char *.  Adjust.
2541         (enable_break): Change local 'interp_name' to char *.
2542         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2543         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2544         (spu_pseudo_register_write_spu): Use char for string buffer.
2545         Adjust.
2546         (info_spu_event_command, info_spu_signal_command): Add casts to
2547         'char *'.
2548
2549 2013-04-19  Pedro Alves  <palves@redhat.com>
2550
2551         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2552         gdb_byte[].
2553         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2554         * ada-lang.c (ada_value_assign): Use gdb_byte.
2555         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2556         (alphanbsd_sigtramp_offset): Use gdb_byte.
2557         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2558         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2559         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2560         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2561         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2562         * arm-tdep.c (arm_stub_unwind_sniffer)
2563         (arm_displaced_init_closure): Use gdb_byte.
2564         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2565         (arm_default_thumb_le_breakpoint)
2566         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2567         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2568         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2569         * arm-wince-tdep.c (arm_wince_le_breakpoint)
2570         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2571         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2572         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2573         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2574         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2575         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2576         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2577         (cris_store_return_value, cris_extract_return_value): Use
2578         gdb_byte.
2579         (constraint): Change type of parameter to char * from signed
2580         char*.  Use gdb_byte.
2581         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2582         of local buffer to gdb_byte *.
2583         * dwarf2read.c (read_index_from_section): Use gdb_byte.
2584         (create_dwp_hash_table): Change type of locals to gdb_byte *.
2585         (add_address_entry): Change type of local buffer to gdb_byte[].
2586         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2587         (frv_push_dummy_call): Use gdb_byte.
2588         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2589         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2590         (hppa_hpux_supply_save_state): Use gdb_byte.
2591         * hppa-tdep.c (hppa32_push_dummy_call)
2592         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2593         * ia64-tdep.c (extract_bit_field, replace_bit_field)
2594         (slotN_contents, replace_slotN_contents): Change type of parameter
2595         to gdb_byte *.
2596         (fetch_instruction, ia64_pseudo_register_write)
2597         (ia64_register_to_value, ia64_value_to_register)
2598         (ia64_extract_return_value, ia64_store_return_value)
2599         (ia64_push_dummy_call): Use gdb_byte.
2600         * m32c-tdep.c (m32c_return_value): Remove cast.
2601         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2602         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2603         gdb_byte.
2604         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2605         * mn10300-tdep.c (mn10300_store_return_value)
2606         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2607         gdb_byte.
2608         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2609         (moxie_process_record): Remove casts.
2610         * ppc-ravenscar-thread.c (supply_register_at_address)
2611         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2612         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2613         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2614         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2615         * remote.c (compare_sections_command): Use gdb_byte.
2616         * score-tdep.c (score7_free_memblock): Change type of parameter to
2617         gdb_byte *.
2618         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2619         gdb_byte *.  Use gdb_byte.
2620         (sh_push_dummy_call_fpu): Use gdb_byte.
2621         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2622         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2623         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2624         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
2625         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2626         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2627         (sh64_store_return_value, sh64_register_convert_to_virtual):
2628         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
2629         (sh64_pseudo_register_write): Use gdb_byte.
2630         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2631         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
2632         buffer.
2633         (irix_current_sos): Use gdb_byte.
2634         * solib-som.c (som_current_sos): Use gdb_byte.
2635         * sparc-ravenscar-thread.c (supply_register_at_address)
2636         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2637         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2638         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2639         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2640         'gdb_byte *'.
2641         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2642         'gdb_byte *'.
2643         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2644         * xstormy16-tdep.c (xstormy16_extract_return_value)
2645         (xstormy16_store_return_value): Change parameter type to
2646         'gdb_byte *'.  Adjust.
2647         (xstormy16_push_dummy_call): Use gdb_byte.
2648         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2649         (call0_analyze_prologue, execute_code): Use gdb_byte.
2650
2651 2013-04-19  Vladimir Kargov <kargov@gmail.com>
2652             Pedro Alves  <palves@redhat.com>
2653
2654         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2655         value contents.
2656
2657 2013-04-17  Doug Evans  <dje@google.com>
2658
2659         * dwarf2read.c (struct signatured_type): New member type.
2660         (struct attribute): Replace member signatured_type with signature.
2661         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2662         (read_call_site_scope): Call follow_die_ref instead of
2663         follow_die_ref_or_sig.
2664         (read_structure_type): Rewrite handling of signatured types.
2665         (read_enumeration_type): Ditto.
2666         (read_attribute_value): Update.
2667         (build_error_marker_type): New function.
2668         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
2669         Don't call error for bad types, just build an error marker type.
2670         (dump_die_shallow): Update.
2671         (follow_die_sig_1): Renamed from follow_die_sig.
2672         Don't call error for bad types, instead return NULL.
2673         (follow_die_sig): New function.
2674         (get_signatured_type, get_DW_AT_signature_type): New functions.
2675
2676 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
2677
2678         * aarch64-tdep.c (aarch64_write_pc): Removed.
2679         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2680         function.
2681
2682 2013-04-17  Yao Qi  <yao@codesourcery.com>
2683
2684         * top.c (print_gdb_configuration): Print configure-time
2685         parameter on using libbabeltrace or not.
2686
2687 2013-04-16  Pedro Alves  <palves@redhat.com>
2688
2689         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2690
2691 2013-04-16  Pedro Alves  <palves@redhat.com>
2692
2693         * common/glibc_thread_db.h: Update from upstream glibc
2694         (git 568035b7874a099087b77f7bba3e36a1173787b0).
2695
2696 2013-04-16  Pedro Alves  <palves@redhat.com>
2697
2698         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2699         * common/glibc_thread_db.h: ... this new file ...
2700         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2701
2702 2013-04-16  Will Newton  <will.newton@gmail.com>
2703             Pedro Alves  <palves@redhat.com>
2704
2705         PR build/11881
2706
2707         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2708         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2709         HAVE_THREAD_DB_H.
2710
2711 2013-04-16  Pedro Alves  <palves@redhat.com>
2712             Eli Zaretskii  <eliz@gnu.org>
2713
2714         * NEWS: Mention "set foo unlimited".
2715
2716 2013-04-15  Doug Evans  <dje@google.com>
2717
2718         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2719         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2720         (create_dwo_cu_reader): Renamed from
2721         create_dwo_debug_info_hash_table_reader.
2722         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2723         Remove support for multiple CUs in a DWO file.
2724         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2725
2726         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2727         instead of phex.
2728         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2729         (create_dwo_in_dwp): Ditto.
2730
2731 2013-04-15  Tom Tromey  <tromey@redhat.com>
2732
2733         * NEWS: Move recent entries into "since 7.6" section.
2734
2735 2013-04-15  Tom Tromey  <tromey@redhat.com>
2736
2737         PR c++/13588:
2738         * NEWS: Update.
2739         * break-catch-throw.c (struct exception_catchpoint)
2740         <exception_rx, pattern>: New fields.
2741         (fetch_probe_arguments, dtor_exception_catchpoint)
2742         (check_status_exception_catchpoint)
2743         (print_one_detail_exception_catchpoint): New functions.
2744         (handle_gnu_v3_exceptions): Add "except_rx" argument.
2745         Compile regular expression if needed.
2746         (extract_exception_regexp): New function.
2747         (catch_exception_command_1): Use extract_exception_regexp.
2748         (compute_exception): Use fetch_probe_arguments.
2749         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2750         and check_status fields.
2751         * cp-abi.c (cplus_typename_from_type_info): New function.
2752         * cp-abi.h (cplus_typename_from_type_info): Declare.
2753         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2754         * gdb_regex.h (compile_rx_or_error): Declare.
2755         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2756         comment.
2757         (init_gnuv3_ops): Set get_type_from_type_info field.
2758         * probe.c (compile_rx_or_error): Move...
2759         * utils.c (compile_rx_or_error): ... here.
2760
2761 2013-04-15  Tom Tromey  <tromey@redhat.com>
2762
2763         PR c++/15176:
2764         * NEWS: Update.
2765         * break-catch-throw.c (compute_exception): New function.
2766         (exception_funcs): New global.
2767         (_initialize_break_catch_throw): Create $_exception.
2768         * cp-abi.c (cplus_type_from_type_info): New function.
2769         * cp-abi.h (cplus_type_from_type_info): Declare.
2770         (struct cp_abi_ops) <get_type_from_type_info>: New field.
2771         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2772         (gnuv3_get_type_from_type_info): New functions.
2773         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2774
2775 2013-04-15  Tom Tromey  <tromey@redhat.com>
2776
2777         * break-catch-throw.c (struct exception_names): New.
2778         (exception_functions): Change type.
2779         (re_set_exception_catchpoint): Look for SDT probes.
2780
2781 2013-04-15  Tom Tromey  <tromey@redhat.com>
2782
2783         PR c++/10119:
2784         * break-catch-throw.c (exception_functions): New global.
2785         (gnu_v3_exception_catchpoint_ops): Move earlier.
2786         (struct exception_catchpoint): New.
2787         (classify_exception_breakpoint): Rewrite.
2788         (re_set_exception_catchpoint): New function.
2789         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
2790         Allocate a struct exception_catchpoint.
2791         (catch_exception_command_1): Update.
2792         (initialize_throw_catchpoint_ops): Set 're_set' method.
2793
2794 2013-04-15  Tom Tromey  <tromey@redhat.com>
2795
2796         * Makefile.in (SFILES): Add break-catch-throw.c
2797         (COMMON_OBS): Add break-catch-throw.o.
2798         * break-catch-throw.c: New file.
2799         * breakpoint.c: Move exception-catching code to new file.
2800         (ep_parse_optional_if_clause): No longer static.
2801         * breakpoint.h (ep_parse_optional_if_clause): Declare.
2802
2803 2013-04-15  Tom Tromey  <tromey@redhat.com>
2804
2805         PR c++/9065:
2806         * NEWS: Update.
2807         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2808         * c-exp.y (TYPEID): New token.
2809         (exp): Add new TYPEID productions.
2810         (ident_tokens): Add "typeid".
2811         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2812         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2813         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2814         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2815         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2816         case.
2817         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2818         (build_std_type_info_type, gnuv3_get_typeid_type)
2819         (gnuv3_get_typeid): New functions.
2820         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
2821         new fields on ABI object.
2822         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2823         * std-operator.def (OP_TYPEID): New.
2824
2825 2013-04-15  Tom Tromey  <tromey@redhat.com>
2826
2827         * elfread.c (elf_symtab_read): Install versioned symbol under
2828         unversioned name as well.
2829
2830 2013-04-15  Tom Tromey  <tromey@redhat.com>
2831
2832         PR c++/11990:
2833         * c-lang.c (cplus_language_defn): Use gdb_demangle.
2834         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2835         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2836         (gdb_demangle): New function.
2837         * cp-support.h (gdb_demangle): Declare.
2838         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2839         (dwarf2_name): Use gdb_demangle.
2840         * gdbtypes.c (check_stub_method): Use gdb_demangle.
2841         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2842         suffixes from name.
2843         (gnuv3_print_method_ptr): Use gdb_demangle.
2844         * jv-lang.c (java_demangle): Use gdb_demangle.
2845         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2846         * language.c (unk_lang_demangle): Use gdb_demangle.
2847         * symtab.c (symbol_find_demangled_name)
2848         (demangle_for_lookup): Use gdb_demangle.
2849
2850 2013-04-15  Tom Tromey  <tromey@redhat.com>
2851
2852         PR c++/12824:
2853         * NEWS: Update.
2854         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2855         New constant.
2856         (classify_exception_breakpoint): New function.
2857         (print_it_exception_catchpoint, print_one_exception_catchpoint)
2858         (print_mention_exception_catchpoint)
2859         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2860         (catch_exception_command_1): Handle "rethrow" catchpoint.
2861         (catch_rethrow_command): New function.
2862         (_initialize_breakpoint): Add "catch rethrow" command.
2863
2864 2013-04-15  Pierre Muller  <muller@sourceware.org>
2865
2866         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2867         set_gdbarch_write_pc as deprecated anymore.
2868
2869 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
2870
2871         * spu-tdep.c (spu_write_pc): Add empty line after local variable
2872         declarations.
2873
2874 2013-04-13  Yao Qi  <yao@codesourcery.com>
2875
2876         * ctf.c (_initialize_ctf): Include "completer.h".
2877         Call add_target_with_completer instead of add_target.
2878
2879 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2880
2881         Fix GDB regression related to PR binutils/14813.
2882         * jit.c (mem_bfd_iovec_close): Return 0 for success.
2883         * minidebug.c (lzma_close): Add return value comment.
2884         * remote.c (remote_bfd_iovec_close): Return 0 for success.
2885         * solib-spu.c (spu_bfd_iovec_close): Likewise.
2886         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2887
2888 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2889
2890         * config.in: Regenerate.
2891
2892 2013-04-12  Tom Tromey  <tromey@redhat.com>
2893
2894         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2895         const.
2896         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2897         (struct die_reader_specs) <buffer>: Likewise.
2898         (die_reader_func_ftype): Make 'info_ptr' const.
2899         (struct line_header) <include_dirs, statement_program_start,
2900         statement_program_end>: Now const.
2901         (struct file_entry) <name>: Likewise.
2902         (struct partial_die_info) <sibling>: Likewise.
2903         (struct dwarf_block) <data>: Likewise.
2904         (dwarf2_read_section): Remove cast.
2905         (dwarf2_get_section_info): Make 'bufp' const.
2906         (read_index_from_section): Constify.
2907         (dw2_get_file_names_reader): Make 'info_ptr' const.
2908         (dw2_get_primary_filename_reader): Likewise.
2909         (read_comp_unit_head): Make 'info_ptr' and return type const.
2910         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2911         Likewise.
2912         (read_abbrev_offset): Constify.
2913         (dwarf2_create_include_psymtab): Make 'name' const.
2914         (create_debug_types_hash_table): Update.
2915         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2916         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2917         Constify.
2918         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2919         (load_partial_comp_unit_reader): Make 'info_ptr' const.
2920         (read_comp_units_from_section): Constify.
2921         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2922         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2923         const.
2924         (dwarf2_compute_name, setup_type_unit_groups): Constify.
2925         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2926         (create_dwp_hash_table, dwarf2_ranges_read)
2927         (dwarf2_record_block_ranges): Constify.
2928         (read_die_and_children, read_die_and_siblings_1)
2929         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2930         const.
2931         (read_full_die_1, read_full_die): Make 'info_ptr' const.
2932         (abbrev_table_read_table): Constify.
2933         (load_partial_dies): Make 'info_ptr' const.
2934         (read_partial_die, read_attribute_value, read_attribute): Make
2935         'info_ptr' and return type const.
2936         (read_address, read_initial_length)
2937         (read_checked_initial_length_and_offset, read_offset)
2938         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2939         const.
2940         (read_direct_string): Make 'buf' and return type const.
2941         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2942         (read_indirect_string): Make return type const.
2943         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2944         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2945         'info_ptr' const.
2946         (read_str_index): Make return type const.
2947         (add_include_dir): Make 'include_dir' const.
2948         (add_file_name): Make 'name' const.
2949         (dwarf_decode_line_header): Constify.
2950         (psymtab_include_file_name): Make return type const.
2951         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2952         (dwarf2_start_subfile): Make 'filename' const.
2953         (dwarf2_const_value_attr): Make 'bytes' const.
2954         (read_signatured_type_reader): Make 'info_ptr' const.
2955         (decode_locdesc): Constify.
2956         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2957         const.
2958         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2959         'mac_end', and return type const.
2960         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2961         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2962         type const.
2963         (per_cu_header_read_in): Constify.
2964         * symfile.h (dwarf2_get_section_info): Update.
2965
2966 2013-04-12  Tom Tromey  <tromey@redhat.com>
2967
2968         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2969
2970 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
2971
2972         * NEWS: Mention "show configuration", --configuration.
2973         * top.c (print_gdb_configuration): New function, displays the
2974         details about GDB configure-time parameters.
2975         (print_gdb_version): Mention "show configuration".
2976         * cli/cli-cmds.c (show_configuration): New function.
2977         (_initialize_cli_cmds): Add the "show configuration" command.
2978         * main.c (captured_main) <print_configuration>: New static var.
2979         <long_options>: Use it.
2980         If --configuration was given, call print_gdb_configuration.
2981
2982 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2983             Pedro Alves  <palves@redhat.com>
2984
2985         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2986         (generated_files): Add gcore.
2987         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2988         HAVE_NATIVE_GCORE_HOST.
2989         (gcore): New.
2990         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2991         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2992         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2993         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2994         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2995         Add HAVE_NATIVE_GCORE_HOST.
2996         * configure: Regenerate.
2997         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2998         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
2999         AC_CONFIG_FILES for gcore.
3000         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
3001         gdb_have_gcore.
3002         * gdb_gcore.sh: Rename to ...
3003         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
3004         and GCORE_TRANSFORM_NAME substitutions.
3005
3006         Fix parsing tabs in ${gdb_target_obs}.
3007         * configure.tgt (gdb_have_gcore): Replace case with for and if.
3008
3009 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3010
3011         * remote.c (unpush_and_perror): Add output message final dot.
3012
3013 2013-04-11  Yao Qi  <yao@codesourcery.com>
3014
3015         * tracepoint.c (tfile_interp_line): Fit parameters line and
3016         utpp in one line.
3017
3018 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
3019
3020         * solib.c (solib_map_sections): Remove code overwriting
3021         SO->SO_NAME with the bfd's filename.
3022
3023 2013-04-10  Pedro Alves  <palves@redhat.com>
3024
3025         * cli/cli-decode.c (integer_unlimited_completer): New function.
3026         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3027         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3028         completer.
3029         * cli/cli-setshow.c: Include "cli/cli-utils.h".
3030         (is_unlimited_literal): New function.
3031         (do_set_command): Handle literal "unlimited" arguments.
3032         * frame.c (_initialize_frame) <set backtrace limit>: Document
3033         "unlimited".
3034         * printcmd.c (_initialize_printcmd) <set print
3035         max-symbolic-offset>: Add help text.
3036         * record-full.c (_initialize_record_full) <set record full
3037         insn-number-max>: Likewise.
3038         * record.c (_initialize_record) <set record
3039         instruction-history-size, set record function-call-history-size>:
3040         Add help text.
3041         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3042         help text.
3043         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3044         Likewise.
3045         * source.c (_initialize_source) <set listsize>: Add help text.
3046         * utils.c (initialize_utils) <set height, set width>: Likewise.
3047         <set pagination>: Mention "set height unlimited".
3048         * valprint.c (_initialize_valprint) <set print elements, set print
3049         repeats>: Document "unlimited".
3050
3051 2013-04-10  Pedro Alves  <palves@redhat.com>
3052
3053         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3054         instead of disconnect_tracing.
3055         * infcmd.c (detach_command, disconnect_command): Call
3056         query_if_trace_running.  Adjust.
3057         * top.c: Include "tracepoint.h".
3058         (quit_target): Delete.  Contents moved ...
3059         (quit_force): ... here.  Wrap each stage of teardown in
3060         TRY_CATCH.  Call disconnect_tracing before detaching.
3061
3062 2013-04-10  Hui Zhu  <hui@codesourcery.com>
3063             Yao Qi  <yao@codesourcery.com>
3064
3065         * configure.ac: Check libbabeltrace is installed.
3066         * config.in: Regenerate.
3067         * configure: Regenerate.
3068         * Makefile.in (LIBBABELTRACE): New.
3069         (CLIBS): Add LIBBABELTRACE.
3070         * ctf.c: Include "exec.h".
3071         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3072         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3073         (ctf_save_metadata_header): Define new type aliases in
3074         metadata.
3075         (ctf_write_header): Define event type "tsv_def" and "tp_def"
3076         in metadata.  Start a new faked packet for trace status.
3077         (ctf_write_status): Write trace status to CTF.
3078         (ctf_write_uploaded_tsv): Write TSV to CTF.
3079         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3080         (ctf_write_definition_end): End the faked packet.
3081
3082         (ctx, ctf_iter, trace_dirname): New.
3083         (start_pos): New variable.
3084         (ctf_destroy, ctf_open_dir, ctf_open): New.
3085         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3086         macros.
3087         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3088         (ctf_fetch_registers, ctf_xfer_partial): New.
3089         (ctf_get_trace_state_variable_value): New.
3090         (ctf_get_tpnum_from_frame_event): New.
3091         (ctf_get_traceframe_address): New.
3092         (ctf_trace_find, ctf_has_stack): New.
3093         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3094         (ctf_get_trace_status, ctf_read_status): New.
3095         (_initialize_ctf): New.
3096         * tracepoint.c (get_tracepoint_number): New
3097         (get_uploaded_tsv): Remove 'static'.
3098         (struct traceframe_info, trace_regblock_size): Move it to ...
3099         * tracepoint.h: ... here.
3100         (get_tracepoint_number): Declare it.
3101         (get_uploaded_tsv): Declare it.
3102
3103         * NEWS: Mention new configure option.
3104
3105 2013-04-10  Pedro Alves  <palves@redhat.com>
3106             Hui Zhu  <hui@codesourcery.com>
3107
3108         * breakpoint.c (dprintf_re_set): New.
3109         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3110         to dprintf_re_set.
3111
3112 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
3113
3114         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3115         Remove solib-svr4.o from the list.
3116
3117 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
3118
3119         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3120         Use gdb_assert_not_reached instead of invalid boolean expression.
3121
3122 2013-04-09  Pedro Alves  <palves@redhat.com>
3123
3124         * remote.c (unpush_and_perror): New function.
3125         (readchar, remote_serial_write): Use it.
3126
3127 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
3128
3129         * NEWS: Mention new btrace RSP packets.
3130
3131 2013-04-08  Tom Tromey  <tromey@redhat.com>
3132
3133         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3134         long.
3135
3136 2013-04-08  Tom Tromey  <tromey@redhat.com>
3137
3138         * maint.c (print_bfd_section_info): Print the section index.
3139         * symmisc.c (dump_msymbols): Print the section index.
3140
3141 2013-04-08  Tom Tromey  <tromey@redhat.com>
3142
3143         PR symtab/8424:
3144         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3145         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3146         * breakpoint.c (resolve_sal_pc): Update.
3147         * elfread.c (elf_gnu_ifunc_record_cache): Update.
3148         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3149         (minsym_lookup_iterator_cb): Use it.
3150         (default_read_var_value): Update.
3151         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3152         Update.
3153         * infcmd.c (jump_command): Update.
3154         * linespec.c (minsym_found): Update.
3155         * maint.c (maintenance_translate_address): Update.
3156         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3157         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3158         * parse.c (write_exp_msymbol): Update.
3159         * printcmd.c (address_info): Update.
3160         * psymtab.c (find_pc_sect_psymbol): Update.
3161         (fixup_psymbol_section): Check SYMBOL_SECTION, not
3162         SYMBOL_OBJ_SECTION.
3163         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3164         Don't initialize SYMBOL_OBJ_SECTION.
3165         * spu-tdep.c (spu_catch_start): Update.
3166         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3167         * symmisc.c (dump_msymbols, print_symbol): Update.
3168         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
3169         how fallback section is computed.
3170         (fixup_symbol_section): Update.
3171         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3172         Update.
3173         (allocate_symbol, initialize_symbol, allocate_template_symbol):
3174         Initialize SYMBOL_SECTION.
3175         * symtab.h (struct general_symbol_info) <section>: Update comment.
3176         <obj_section>: Remove.
3177         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
3178         (SYMBOL_OBJFILE): New macro.
3179
3180 2013-04-08  Tom Tromey  <tromey@redhat.com>
3181
3182         * coffread.c (record_minimal_symbol): Update.
3183         * dbxread.c (record_minimal_symbol): Update.
3184         * elfread.c (record_minimal_symbol): Update.
3185         * machoread.c (macho_symtab_add_minsym): Update.
3186         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3187         Update.
3188         * minsyms.c (prim_record_minimal_symbol): Update.
3189         (prim_record_minimal_symbol_full): Remove 'bfd_section'
3190         argument.
3191         (prim_record_minimal_symbol_and_info): Likewise.
3192         * minsyms.h (prim_record_minimal_symbol_full)
3193         (prim_record_minimal_symbol_and_info): Update.
3194         * symtab.c (allocate_symbol, initialize_symbol)
3195         (allocate_template_symbol): Initialize SYMBOL_SECTION.
3196         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3197         Update.
3198
3199 2013-04-08  Tom Tromey  <tromey@redhat.com>
3200
3201         PR symtab/8423:
3202         * solib-som.c (som_solib_section_offsets): Use BFD section
3203         indices.  Set offsets for all sections.
3204         * somread.c (som_symtab_read): Compute BFD section for
3205         symbol.  Use prim_record_minimal_symbol_and_info.
3206         (som_symfile_read): Fix comment.
3207         (struct find_section_offset_arg): New.
3208         (find_section_offset, set_section_index): New functions.
3209         (som_symfile_offsets): Use set_section_index to compute
3210         section indices.
3211
3212 2013-04-08  Tom Tromey  <tromey@redhat.com>
3213
3214         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3215         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3216         gdb_bfd_section_index.
3217         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3218         New functions.
3219         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3220         Declare.
3221         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3222         Update.
3223         * objfiles.c (add_to_objfile_sections_full): New function.
3224         (add_to_objfile_sections): Use it.
3225         (build_section_table): Rewrite.
3226         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
3227         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3228         (struct objfile) <sections>: Update comment.
3229         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3230         is NULL.
3231         (ALL_OBJSECTIONS): Use it.
3232         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3233         * solib-frv.c (frv_relocate_main_executable): Update.
3234         * solib-target.c (solib_target_relocate_section_addresses):
3235         Use gdb_bfd_section_index.
3236         * symfile.c (build_section_addr_info_from_section_table):
3237         Use gdb_bfd_section_index.
3238         (build_section_addr_info_from_bfd, place_section): Likewise.
3239         * symtab.c (fixup_section): Update.
3240         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3241
3242 2013-04-08  Tom Tromey  <tromey@redhat.com>
3243
3244         * minsyms.h (struct bound_minimal_symbol): New.
3245         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3246         Remove objfile argument.
3247         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3248         Return bound_minimal_symbol.
3249         * minsyms.c (lookup_minimal_symbol_by_pc_1)
3250         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3251         Return bound_minimal_symbol.
3252         (in_gnu_ifunc_stub): Update.
3253         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3254         Remove 'objfile_p' argument.
3255         (lookup_solib_trampoline_symbol_by_pc): Update.
3256         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3257         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3258         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3259         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3260         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3261         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3262         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3263         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3264         stack.c, symtab.c, tui/tui-disasm.c: Update.
3265
3266 2013-04-08  Tom Tromey  <tromey@redhat.com>
3267
3268         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3269         Use symbol's obstack, not an objfile.
3270         * coffread.c (process_coff_symbol): Update.
3271         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
3272         * jv-lang.c (add_class_symbol): Update.
3273         * mdebugread.c (new_symbol): Update.
3274         * minsyms.c (prim_record_minimal_symbol_full)
3275         (terminate_minimal_symbol_table): Update.
3276         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
3277         * stabsread.c (define_symbol, read_enum_type): Update.
3278         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
3279         Handle Ada specially.
3280         (symbol_set_language): Add 'obstack' argument.
3281         (symbol_set_names): Update.
3282         (symbol_natural_name, symbol_demangled_name): Always use
3283         ada_decode_symbol.
3284         * symtab.h (struct general_symbol_info)
3285         <language_specific::obstack>: New field.
3286         <ada_mangled>: New field.
3287         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
3288         (symbol_set_language): Update.
3289
3290 2013-04-08  Tom Tromey  <tromey@redhat.com>
3291
3292         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3293         Take an obstack, not an objfile.
3294         (symbol_set_names): Update.
3295         * symtab.h (symbol_set_demangled_name): Update.
3296
3297 2013-04-08  Tom Tromey  <tromey@redhat.com>
3298
3299         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3300         allocate_symbol.
3301         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3302         (read_func_scope): Call allocate_template_symbol.
3303         (new_symbol_full): Call allocate_symbol.
3304         * jit.c (finalize_symtab): Call allocate_symbol.
3305         * jv-lang.c (add_class_symbol): Call allocate_symbol.
3306         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3307         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3308         (common_block_end): Call allocate_symbol.
3309         * symtab.c (allocate_symbol, initialize_symbol)
3310         (allocate_template_symbol): New functions.
3311         * symtab.c (allocate_symbol, initialize_symbol)
3312         (allocate_template_symbol): Declare.
3313         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3314
3315 2013-04-08  Pedro Alves  <palves@redhat.com>
3316             Keith Seitz  <keiths@redhat.com>
3317
3318         * breakpoint.c (create_breakpoint): Rename
3319         "parse_condition_and_thread" parameter to "parse_arg".  Update
3320         describing comment.  If !PARSE_ARG, then error out if ARG is not
3321         the empty string after extracting the location.
3322         * breakpoint.h (create_breakpoint): Rename
3323         "parse_condition_and_thread" parameter to "parse_arg".
3324
3325 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
3326
3327         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3328
3329 2013-04-07  Yao Qi  <yao@codesourcery.com>
3330
3331         * remote.c (remote_trace_find): Change type of parameters 'addr1'
3332         and 'addr2' to CORE_ADDR.
3333         * target.c (update_current_target): Update.
3334         * target.h (struct target_ops) <to_trace_find>: Change parameter
3335         type to CORE_ADDR.
3336         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3337         'addr2' to CORE_ADDR.
3338         (tfile_trace_find): Likewise.
3339         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3340         Change local variable 'addr' to type CORE_ADDR.
3341         * tracepoint.h (tfind_1): Update declaration.
3342
3343 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
3344
3345         * windows-nat.c (windows_get_absolute_argv0): Move from here...
3346         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3347         Include main.h.
3348
3349         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3350         here...
3351         * main.h (windows_get_absolute_argv0): ...to here.
3352
3353 2013-04-05  Doug Evans  <dje@google.com>
3354
3355         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3356         (read_cutu_die_from_dwo): Add comments.
3357         (read_structure_type): Update comment.
3358         (read_enumeration_type, read_namespace_type): Update comment.
3359         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3360
3361 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3362
3363         Convert man pages to texinfo, new gdbinit.5 texinfo page.
3364         * Makefile.in (gdb.z): Remove.
3365         (install-only): Remove $(man1dir) and gdb.1 installation.
3366         * gdb.1: Remove.
3367
3368 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3369
3370         Fix compatibility with Linux kernel 3.8.3.
3371         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3372         to more inner block.  Remove parsing of NUMBER from outer block.
3373         Parse NUMBER only if KEYWORD has been identified.
3374
3375 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3376
3377         Fix variable name shadowing.
3378         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3379         filename to mapsfilename and update its uses.
3380
3381 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
3382
3383         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3384         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3385         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3386         details of the problem.
3387
3388 2013-04-04  Pedro Alves  <palves@redhat.com>
3389             Hui Zhu  <hui@codesourcery.com>
3390
3391         * breakpoint.c (validate_commands_for_breakpoint): If validating a
3392         tracepoint, reset its STEP_COUNT and call validate_actionline.
3393
3394 2013-04-03  Doug Evans  <dje@google.com>
3395
3396         * dwarf2read.c (read_die_and_siblings_1): Renamed from
3397         read_die_and_siblings.
3398         (read_die_and_siblings): New function.
3399         (read_cutu_die_from_dwo): Dump die if requested.
3400         (read_die_and_children): Call read_full_die_1 and
3401         read_die_and_siblings_1.
3402         (read_full_die): Dump die if requested.
3403
3404         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3405
3406         * dwarf2read.c (struct dwo_file): New member comp_dir.
3407         Rename member name to dwo_name.  All uses updated.
3408         (hash_dwo_file): Include comp_dir in computation.
3409         (eq_dwo_file): Ditto.
3410         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
3411         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3412
3413         * psymtab.c (read_psymtabs_with_fullname): Don't call
3414         psymtab_to_fullname if the basenames are different.
3415
3416 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3417
3418         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3419         New entry about "fullname" presence.
3420
3421 2013-04-03  Pedro Alves  <palves@redhat.com>
3422
3423         * NEWS: Mention x86_64/Cygwin as new native configuration.
3424
3425 2013-04-02  Doug Evans  <dje@google.com>
3426
3427         * dwarf2read.c (read_structure_type): Fix typo in comment.
3428
3429 2013-04-02  Pedro Alves  <palves@redhat.com>
3430
3431         * NEWS: Mention "set/show debug aarch64", "set/show debug
3432         coff-pe-read" and "set/show debug mach-o".
3433
3434 2013-04-02  Pedro Alves  <palves@redhat.com>
3435
3436         * NEWS: Mention "set/show remote trace-buffer-size-packet".
3437
3438 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
3439
3440         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3441         gdb_string.h is now in common/.
3442
3443 2013-04-02  Pedro Alves  <palves@redhat.com>
3444
3445         * NEWS: Move "set debug notification" and "set trace-buffer-size"
3446         under "New options".
3447
3448 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3449
3450         Revert this patch:
3451         PR gdb/15275
3452         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3453
3454 2013-04-02  Pedro Alves  <palves@redhat.com>
3455
3456         PR gdb/15275
3457
3458         * remote.c (send_interrupt_sequence): Use remote_serial_write.
3459         (remote_serial_write): New function.
3460         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3461
3462 2013-04-01  Jiong Wang  <jiwang@tilera.com>
3463
3464         * NEWS: Mention TILE-Gx in "New native configurations" and
3465         "New targets" sections. 
3466
3467 2013-04-01  Doug Evans  <dje@google.com>
3468
3469         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3470         (process_enumeration_scope): Simplify.
3471
3472         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3473         type_unit_group ...
3474         (struct signatured_type): ... to here.
3475         (sig_type_ptr): New typedef.
3476         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
3477         out of union 't'.  All uses updated.
3478         (dw2_get_file_names_reader): Assert not called for a type unit.
3479         (dw2_get_file_names): Assert not called for a type unit or type
3480         unit group.
3481         (build_type_psymtabs_reader): Assert called for a type unit.
3482         (build_type_psymtab_dependencies): Assert called for a type unit group.
3483
3484         * dwarf2read.c (free_dwo_file): Add comment.
3485         (dwarf2_per_objfile_free): Unref dwp bfd.
3486
3487 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3488
3489         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3490         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3491         (read_pe_exported_syms): Remove unused 'exportix'.
3492         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3493         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3494         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3495
3496 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3497
3498         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3499         (print_it_watchpoint): Remove unused 'bl'.
3500         (say_where): Remove unused 'uiout'.
3501         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3502         (bkpt_breakpoint_hit): Remove unused 'b'.
3503         (internal_bkpt_print_it): Remove unused 'uiout'.
3504         * buildsym.c (augment_type_symtab): Remove unused 'i'.
3505
3506 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3507
3508         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3509         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3510
3511 2013-03-29  Doug Evans  <dje@google.com>
3512
3513         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3514         Delete arg is_dwp.  All callers updated.
3515         (open_dwp_file): New function.
3516         (open_and_init_dwp_file): Call it.
3517         (get_dwp_file): New function.
3518         (lookup_dwo_cutu): Call it.
3519
3520         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3521         unnecessary, cleanup.
3522
3523         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3524
3525         * dwarf2read.c (read_cutu_die_from_dwo): New function.
3526         (lookup_dwo_unit): New function.
3527         (init_cutu_and_read_dies): Move DWO handling to new functions.
3528
3529         * dwarf2read.c (struct signatured_type): Tweak comment.
3530         (struct dwo_unit): Tweak comment.
3531         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
3532         (create_dwo_debug_info_hash_table): Tweak comment.
3533         (dwarf2_per_cu_offset_and_type): Tweak comment.
3534
3535         * dwarf2read.c (lookup_signatured_type): Remove complaint about
3536         missing .debug_types section.
3537
3538 2013-03-29  Yao Qi  <yao@codesourcery.com>
3539
3540         * corelow.c: Include "completer.h".
3541         (_initialize_corelow): Call add_target_with_completer with
3542         argument 'filename_completer'.
3543         * tracepoint.c: Likewise.
3544         * exec.c (_initialize_exec): Likewise.
3545         * target.c (add_target): Rename to ...
3546         (add_target_with_completer): ... this.  Call set_cmd_completer
3547         if parameter completer is not NULL.
3548         (add_target): New.
3549         * target.h: Include "command.h".
3550         (add_target_with_completer): Declare it.
3551
3552 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
3553
3554         * coffread.c (is_import_fixup_symbol): New function.
3555         (record_minimal_symbol): Use is_import_fixup_symbol to
3556         detect import fixup symbols, and discard them.
3557
3558 2013-03-28  Doug Evans  <dje@google.com>
3559
3560         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3561         types hash table until we know we need it.
3562
3563         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3564         index numbers.
3565
3566         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3567         All callers updated.
3568         (dw2_print_stats): Print #read CUs too.
3569         (dump_die_shallow): Print signatured types better.
3570
3571         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3572         info_or_types_section to section.  All uses updated.
3573         (struct dwo_unit): Ditto.
3574
3575 2013-03-28  Pedro Alves  <palves@redhat.com>
3576
3577         * NEWS (New options): New section.
3578         (New options): Mention set/show remote trace-status-packet.
3579         * remote.c (PACKET_qTStatus): New enumeration value.
3580         (remote_get_trace_status): Skip sending qTStatus if the packet is
3581         disabled.  Use packet_ok.
3582         (_initialize_remote): Register a configuration command for
3583         qTStatus packet.
3584
3585 2013-03-28  Doug Evans  <dje@google.com>
3586
3587         * symfile.c (find_separate_debug_file): Add comment.
3588         (terminate_after_last_dir_separator): Tweak comment.
3589
3590         * dwarf2read.c (create_partial_symtab): Add forward decl.
3591         (create_partial_symtab): Move to be closer to other psymtab functions.
3592         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3593
3594         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3595         (compute_symtab_includes): Remove unnecessary forward declaration.
3596         (die_needs_namespace): Add comment marking group of functions for
3597         dwarf2 name computation.
3598
3599         * typeprint.c (_initialize_typeprint): Improve type help text.
3600
3601         * python/python.c (finish_python_initialization): Provide suggestion
3602         for how to tell gdb to find its python files.
3603
3604 2013-03-28  Pedro Alves  <palves@redhat.com>
3605
3606         PR gdb/15294
3607
3608         * source.c (_initialize_source): Change back "set listsize" to an
3609         integer command.
3610
3611 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
3612
3613         PR gdb/15275
3614         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3615
3616 2013-03-27  Pedro Alves  <palves@redhat.com>
3617
3618         * top.c (history_size): Rename to ...
3619         (history_size_setshow_var): ... this.  Add comment.
3620         (show_commands): Use readline's 'history_length' instead of
3621         computing the history length by calling history_get in a loop.
3622         (set_history_size_command): Error out for sizes over INT_MAX.
3623         Restore previous history size on invalid size.
3624         (init_history): If HISTSIZE is negative, leave the history size as
3625         zero.  Add comments.
3626         (init_main): Adjust.
3627
3628 2013-03-27  Pedro Alves  <palves@redhat.com>
3629
3630         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3631         coff_pe_read" command to "set debug coff-pe-read".
3632
3633 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
3634
3635         * record.c (command_size_to_target_size): Fix size comparison.
3636         Change parameter type from pointer to integer to integer.
3637         Update all users.
3638
3639 2013-03-27  Pierre Muller  <muller@sourceware.org>
3640
3641         * windows-nat.c (handle_output_debug_string): Avoid typecast
3642         from integer of different size warning.
3643
3644 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
3645
3646         * windows-nat.c (handle_output_debug_string): Add empty line
3647         after local block variable definition.
3648
3649 2013-03-26  Pedro Alves  <palves@redhat.com>
3650
3651         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3652         (net_open): Make 'polls' local unsigned.
3653
3654 2013-03-26  Pedro Alves  <palves@redhat.com>
3655
3656         * remote.c (_initialize_remote): Make "set remoteaddresssize"
3657         a zuinteger command instead of uinteger.
3658
3659 2013-03-26  Pedro Alves  <palves@redhat.com>
3660
3661         * record-full.c (record_full_insn_num): Make it unsigned.
3662         (record_full_check_insn_num, record_full_message)
3663         (record_full_registers_change, record_full_xfer_partial): Remove
3664         record_full_insn_max_num check (it's always != 0).
3665         (record_full_info, record_full_restore): Use %u as format string.
3666         (): Use %u as format string.
3667         (set_record_full_insn_max_num): Remove record_full_insn_max_num
3668         check (it's always != 0).
3669
3670 2013-03-26  Pedro Alves  <palves@redhat.com>
3671
3672         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3673         and "set dcache size" commands zuinteger instead of uinteger.
3674
3675 2013-03-26  Pedro Alves  <palves@redhat.com>
3676
3677         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3678         command zuinteger instead of uinteger.
3679
3680 2013-03-26  Pedro Alves  <palves@redhat.com>
3681
3682         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3683         zuinteger instead of uinteger.
3684
3685 2013-03-26  Pedro Alves  <palves@redhat.com>
3686
3687         * record.c (record_insn_history_size_setshow_var)
3688         (record_call_history_size_setshow_var): New globals.
3689         (command_size_to_target_size): New function.
3690         (cmd_record_insn_history, cmd_record_call_history): Use
3691         command_size_to_target_size instead of cast.
3692         (validate_history_size, set_record_insn_history_size)
3693         (set_record_call_history_size): New functions.
3694         (_initialize_record): Install set_record_insn_history_size and
3695         set_record_call_history_size as "set" hooks of "set record
3696         instruction-history-size" and "set record
3697         function-call-history-size".
3698
3699 2013-03-26  Pedro Alves  <palves@redhat.com>
3700
3701         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3702         use with history_max_entries use.  Remove FIXME note.
3703
3704 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
3705
3706         * record-btrace.c (record_btrace_close): Call
3707         record_btrace_auto_disable.
3708
3709 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
3710
3711         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3712
3713 2013-03-25  Doug Evans  <dje@google.com>
3714
3715         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3716
3717 2013-03-25  Tom Tromey  <tromey@redhat.com>
3718
3719         PR symtab/11462:
3720         * c-exp.y (exp): Add new productions for destructors after '.' and
3721         '->'.
3722         (write_destructor_name): New function.
3723
3724 2013-03-25  Tom Tromey  <tromey@redhat.com>
3725
3726         PR c++/9197:
3727         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3728         value_struct_elt, not lookup_struct_elt_type.
3729         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3730         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3731         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3732
3733 2013-03-25  Yao Qi  <yao@codesourcery.com>
3734
3735         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3736         instead of '_mkdir'.
3737
3738 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
3739
3740         * windows-nat.c (windows_get_absolute_argv0): New function.
3741         * windows-nat.h: Add its prototype.
3742
3743         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3744         Use IS_DIR_SEPARATOR instead of looking for a character inside
3745         SLASH_STRING.  Include filenames.h.
3746         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3747         relocate_gdb_directory works when passed gdb_program_name.
3748         Include windows-nat.h.
3749
3750 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3751
3752         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3753         * remote.c (trace_error): Remove the special handling of '2'.
3754         (readchar) <SERIAL_EOF>
3755         (readchar) <SERIAL_ERROR>
3756         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3757         (remote_get_trace_status): Call throw_exception if EX is
3758         TARGET_CLOSE_ERROR.
3759         * utils.c (perror_with_name): Rename to ...
3760         (throw_perror_with_name): ... here.  New parameter errcode, describe it
3761         in the function comment.
3762         (perror_with_name): New function wrapper.
3763         * utils.h (enum errors): New stub declaration.
3764         (throw_perror_with_name): New declaration.
3765
3766 2013-03-22  Pedro Alves  <palves@redhat.com>
3767             Yao Qi  <yao@codesourcery.com>
3768             Mark Kettenis  <kettenis@gnu.org>
3769
3770         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3771         Don't let the user set the value to UINT_MAX directly.
3772         <var_integer>: Don't let the user set the value to INT_MAX
3773         directly.
3774
3775 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3776
3777         * remote.c (remote_unpush_target): New function.
3778         (remote_open_1): Remove two pop_target calls, update one comment, add
3779         comment to target_preopen call.  Replace pop_target call by
3780         remote_unpush_target call.
3781         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3782         pop_target calls by remote_unpush_target calls.
3783
3784 2013-03-22  Pedro Alves  <palves@redhat.com>
3785
3786         * linux-nat.c (linux_child_follow_fork): Don't call
3787         linux_enable_event_reporting.
3788         (linux_handle_extended_wait): Don't call
3789         linux_enable_event_reporting.
3790
3791 2013-03-22  Pedro Alves  <palves@redhat.com>
3792
3793         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3794         use it to rewrite the trampoline buffers with type gdb_byte[], and
3795         undefine the macro.  Remove char* cast.
3796
3797 2013-03-21  Doug Evans  <dje@google.com>
3798
3799         New commands "mt set per-command {space,time,symtab} {on,off}".
3800         * NEWS: Add entry.
3801         * event-top.c: #include "maint.h".
3802         * main.c: #include "maint.h".
3803         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3804         timeval-utils.h, maint.h, cli/cli-setshow.h.
3805         (per_command_time, per_command_space): New static globals.
3806         (per_command_symtab): New static global.
3807         (per_command_setlist, per_command_showlist): New static globals.
3808         (struct cmd_stats): Move here from utils.c.
3809         (set_per_command_time): Renamed from set_display_time in utils.c
3810         and moved here.  All callers updated.
3811         (set_per_command_space): Renamed from set_display_space in utils.c
3812         and moved here.  All callers updated.
3813         (count_symtabs_and_blocks): New function.
3814         (report_command_stats): Moved here from utils.c.  Add support for
3815         printing symtab stats.  Only print data if enabled before command
3816         executed.
3817         (make_command_stats_cleanup): Ditto.
3818         (sert_per_command_cmd, show_per_command_cmd): New functions.
3819         (_initialize_maint_cmds): Add new commands
3820         mt set per-command {space,time,symtab} {on,off}.
3821         * maint.h: New file.
3822         * top.c: #include "maint.h".
3823         * utils.c (reset_prompt_for_continue_wait_time): New function.
3824         (get_prompt_for_continue_wait_time): New function.
3825         * utils.h (reset_prompt_for_continue_wait_time): Declare
3826         (get_prompt_for_continue_wait_time): Declare.
3827         (make_command_stats_cleanup): Moved to maint.h.
3828         (set_display_time, set_display_space): Moved to maint.h and renamed
3829         to set_per_command_time, set_per_command_space.
3830         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3831         parse_binary_operation and made non-static.  Don't call error,
3832         just return an error marker.  All callers updated.
3833         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3834
3835 2013-03-21  Tom Tromey  <tromey@redhat.com>
3836
3837         * symfile.c (alloc_section_addr_info): Update header.  Don't set
3838         'num_sections' field.
3839         (build_section_addr_info_from_section_table): Set 'num_sections'.
3840         (build_section_addr_info_from_bfd): Likewise.
3841         (build_section_addr_info_from_objfile): Remove dead loop
3842         condition.
3843         (free_section_addr_info): Unconditionally call xfree.
3844         (relative_addr_info_to_section_offsets, addrs_section_sort)
3845         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3846         condition.
3847         (syms_from_objfile_1): Remove dead 'if' condition.  Check
3848         'num_sections'.
3849         (add_symbol_file_command): Set 'num_sections'.
3850         * symfile-mem.c (symbol_file_add_from_memory): Set
3851         'num_sections'.
3852         * somread.c (som_symfile_offsets): Remove dead loop condition.
3853         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3854         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3855
3856 2013-03-21  Tom Tromey  <tromey@redhat.com>
3857
3858         * tracepoint.h (decode_agent_options): Add 'trace_string'
3859         argument.
3860         * tracepoint.c (decode_agent_options): Add 'trace_string'
3861         argument.
3862         (validate_actionline): Update.
3863         (collect_symbol): Add 'trace_string' argument.
3864         (struct add_local_symbols_data) <trace_string>: New field.
3865         (do_collect_symbol): Update.
3866         (add_local_symbols): Add 'trace_string' argument.
3867         (encode_actions_1): Update.
3868         (trace_dump_actions): Update.
3869         * dwarf2loc.c (access_memory): Update.
3870         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3871         * ax-general.c (new_agent_expr): Update.
3872         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3873         (gen_trace_for_return_address): Add argument.
3874         (trace_kludge, trace_string_kludge): Remove.
3875         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3876         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3877         (gen_trace_for_var): Add 'trace_string' argument.
3878         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3879         (gen_printf, agent_eval_command_one): Update.
3880
3881 2013-03-21  Tom Tromey  <tromey@redhat.com>
3882
3883         PR exp/15109:
3884         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3885         Handle FILENAME token.
3886
3887 2013-03-21  Tom Tromey  <tromey@redhat.com>
3888
3889         * c-exp.y (YYPRINT): Define.
3890         (c_print_token): New function.
3891
3892 2013-03-21  Tom Tromey  <tromey@redhat.com>
3893
3894         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3895
3896 2013-03-21  Yao Qi  <yao@codesourcery.com>
3897
3898         * ctf.c: Include "gdb_stat.h".
3899         [USE_WIN32API]: New macro 'mkdir'.
3900         (ctf_start): Use permission bits macros if they are defined.
3901
3902 2013-03-20  Keith Seitz  <keiths@redhat.com>
3903
3904         * breakpoint.h (struct breakpoint): Add comment to
3905         extra_string indicating that this member is mallod'd.
3906         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3907
3908 2013-03-20  Pedro Alves  <palves@redhat.com>
3909
3910         PR gdb/15289
3911
3912         * cli/cli-setshow.c (do_set_command)
3913         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3914         the result of parsing the command argument.  Throw error if the
3915         value is greater than UINT_MAX.  Print the invalid value with
3916         plongest.
3917         <var_integer, var_zinteger>: Use LONGEST for variable holding the
3918         result of parsing the command argument.  Throw error if the value
3919         is greater than INT_MAX, not greater or equal.  Also throw error
3920         if the value is less than INT_MIN.  Print the invalid value with
3921         plongest.
3922         <var_zuinteger_unlimited>: Throw error if the value is greater
3923         than INT_MAX, not greater or equal.
3924         (do_show_command) <var_integer, var_zinteger,
3925         var_zuinteger_unlimited>: Use %d for printing int, not %u.
3926
3927 2013-03-20  Tom Tromey  <tromey@redhat.com>
3928
3929         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3930         if possible.
3931         * dwarf2read.c (read_func_scope): Remove old FIXME.
3932         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3933         not LOC_COMPUTED.
3934         * findvar.c (symbol_read_needs_frame, default_read_var_value):
3935         Unconditionally call via computed ops, if possible.
3936         * printcmd.c (address_info): Unconditionally call via computed ops,
3937         if possible.
3938         * stack.c (read_frame_arg): Unconditionally call via computed ops,
3939         if possible.
3940         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3941         * tracepoint.c (scope_info): Unconditionally call via computed ops,
3942         if possible.
3943
3944 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3945             Tom Tromey  <tromey@redhat.com>
3946
3947         PR symtab/8421:
3948         * coffread.c (coff_register_index): New global.
3949         (process_coff_symbol, coff_read_enum_type): Set
3950         SYMBOL_ACLASS_INDEX.
3951         (_initialize_coffread): Initialize new global.
3952         * dwarf2loc.c (locexpr_find_frame_base_location)
3953         (dwarf2_block_frame_base_locexpr_funcs)
3954         (loclist_find_frame_base_location)
3955         (dwarf2_block_frame_base_loclist_funcs): New.
3956         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3957         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3958         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3959         (dwarf2_block_frame_base_loclist_funcs): New.
3960         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3961         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3962         globals.
3963         (read_func_scope): Update.
3964         (fixup_go_packaging, mark_common_block_symbol_computed)
3965         (var_decode_location, new_symbol_full, dwarf2_const_value):
3966         Set SYMBOL_ACLASS_INDEX.
3967         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
3968         (_initialize_dwarf2_read): Initialize new globals.
3969         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3970         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3971         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3972         globals.
3973         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3974         (_initialize_mdebugread): Initialize new globals.
3975         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3976         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3977         (stab_register_index, stab_regparm_index): New globals.
3978         (define_symbol, read_enum_type, common_block_end): Set
3979         SYMBOL_ACLASS_INDEX.
3980         (_initialize_stabsread): Initialize new globals.
3981         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3982         globals.
3983         (MAX_SYMBOL_IMPLS): New define.
3984         (register_symbol_computed_impl, register_symbol_block_impl)
3985         (register_symbol_register_impl)
3986         (initialize_ordinary_address_classes): New functions.
3987         (_initialize_symtab): Call initialize_ordinary_address_classes.
3988         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3989         (struct symbol_impl): New.
3990         (SYMBOL_ACLASS_BITS): New define.
3991         (struct symbol) <aclass, ops>: Remove fields.
3992         <aclass_index>: New field.
3993         (symbol_impls): Declare.
3994         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3995         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3996         (register_symbol_computed_impl, register_symbol_block_impl)
3997         (register_symbol_register_impl): Declare.
3998         (struct symbol_computed_ops): Add location_has_loclist.
3999         (struct symbol_block_ops): New.
4000         (SYMBOL_BLOCK_OPS): New.
4001         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
4002
4003 2013-03-20  Tom Tromey  <tromey@redhat.com>
4004
4005         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
4006         (print_partial_symbols, recursively_search_psymtabs): Use
4007         PSYMBOL_CLASS.
4008
4009 2013-03-20  Pierre Muller  <muller@sourceware.org>
4010
4011         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
4012         addtion, subtraction, multiplication and division binary operator.
4013
4014 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4015
4016         Code cleanup.
4017         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
4018         * bsd-kvm.c (bsd_kvm_close): Likewise.
4019         * bsd-uthread.c (bsd_uthread_close): Likewise.
4020         * corelow.c (core_close): Likewise.
4021         (core_close_cleanup): Remove parameter quitting from a caller.
4022         * event-top.c (async_disconnect): Likewise.
4023         * exec.c (exec_close_1): Remove parameter quitting.
4024         * go32-nat.c (go32_close): Likewise.
4025         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
4026         parameter quitting from a caller.
4027         * mips-linux-nat.c (super_close): Remove parameter quitting from the
4028         variable.
4029         (mips_linux_close): Remove parameter quitting.  Remove parameter
4030         quitting from a caller.
4031         * monitor.c (monitor_close): Remove parameter quitting.
4032         * monitor.h (monitor_close): Likewise.
4033         * record-btrace.c (record_btrace_close): Likewise.
4034         * record-full.c (record_full_close): Likewise.
4035         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4036         it also from fprintf_unfiltered.
4037         * remote-mips.c (mips_close): Remove parameter quitting.
4038         (mips_detach): Remove parameter quitting from a caller.
4039         * remote-sim.c (gdbsim_close): Remove parameter quitting.
4040         (gdbsim_close): Remove duplicate function comment.  Remove parameter
4041         quitting and remove it also from printf_filtered.
4042         * remote.c (remote_close): Remove parameter quitting.
4043         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4044         * target.c (update_current_target): Remove parameter int from to_close
4045         de_fault.
4046         (push_target, unpush_target, pop_target): Remove parameter quitting from
4047         a caller.
4048         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4049         Remove parameter quitting from a caller.
4050         (target_preopen): Remove parameter quitting from a caller.
4051         (target_close): Remove parameter quitting.  Remove parameter quitting
4052         from a caller two times.  Remove parameter quitting also from
4053         fprintf_unfiltered.
4054         * target.h (struct target_ops): Remove parameter quitting and as int
4055         from fields to_xclose and to_close.
4056         (extern struct target_ops current_target):
4057         (target_close, pop_all_targets): Remove parameter quitting.  Update the
4058         comment.
4059         (pop_all_targets_above): Remove parameter quitting.
4060         * top.c (quit_target): Remove parameter quitting from a caller.
4061         * tracepoint.c (tfile_close): Remove parameter quitting.
4062         * windows-nat.c (windows_close): Remove parameter quitting.
4063
4064 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
4065
4066         * windows-nat.c (handle_output_debug_string): Replace call
4067         to string_to_core_addr with call to strtoull.
4068
4069 2013-03-20  Yao Qi  <yao@codesourcery.com>
4070
4071         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4072         and write it to CTF metadata.
4073
4074 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
4075
4076         * windows-nat.c (handle_output_debug_string): Change type of n to
4077         SIZE_T to avoid crash on 64 bit systems.
4078
4079 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
4080
4081         * python/python-internal.h (HAVE_SNPRINTF)
4082         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4083         about redefinition of snprintf by pyerrors.h.
4084
4085 2013-03-15  Steve Ellcey  <sellcey@mips.com>
4086
4087         * remote-sim.c (sim_command_completer): Make char arguments const.
4088
4089 2013-03-15  Tom Tromey  <tromey@redhat.com>
4090
4091         PR c++/15116:
4092         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4093
4094 2013-03-14  Tom Tromey  <tromey@redhat.com>
4095
4096         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4097         New fields.
4098         (get_file_crc): Move from symfile.c.
4099         (gdb_bfd_crc): New function.
4100         * gdb_bfd.h (gdb_bfd_crc): Declare.
4101         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4102         * symfile.c (get_file_crc): Move to gdb_bfd.c.
4103         (separate_debug_file_exists): Use gdb_bfd_crc.
4104
4105 2013-03-14  Tom Tromey  <tromey@redhat.com>
4106
4107         * symfile.c (get_debug_link_info): Remove.
4108         (find_separate_debug_file_by_debuglink): Use
4109         bfd_get_debug_link_info.
4110
4111 2013-03-14  Tom Tromey  <tromey@redhat.com>
4112
4113         * symtab.c (error_in_psymtab_expansion): New function.
4114         (lookup_symbol_aux_quick)
4115         (basic_lookup_transparent_type_quick): Remove "last resort"
4116         code.  Use error_in_psymtab_expansion.
4117
4118 2013-03-14  Doug Evans  <dje@google.com>
4119             Jan Kratochvil  <jan.kratochvil@redhat.com>
4120
4121         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4122         any successful compare_filenames_for_search or FILENAME_CMP.
4123         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4124         * symtab.c (iterate_over_some_symtabs): Likewise.
4125
4126 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4127
4128         * source.c (print_source_lines_base): Make a local copy of
4129         symtab_to_fullname.
4130
4131 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
4132             Jan Kratochvil  <jan.kratochvil@redhat.com>
4133
4134         * source.c (print_source_lines_base): Suppress "file" for TUI.
4135
4136 2013-03-14  Keith Seitz  <keiths@redhat.com>
4137             Alan Matsuoka  <alanm@redhat.com>
4138
4139         PR c++/15203
4140         PR c++/15210
4141         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4142         TYPE_CODE_METHOD.
4143         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4144         symbols.
4145
4146 2013-03-14  Yao Qi  <yao@codesourcery.com>
4147
4148         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4149         status to tfile if trace is stopped by command 'tstop'.
4150
4151 2013-03-14  Yao Qi  <yao@codesourcery.com>
4152
4153         * tracepoint.c (tfile_write_status): Write trace notes and user
4154         name into tfile if they are not NULL.
4155
4156 2013-03-14  Hui Zhu  <hui@codesourcery.com>
4157             Yao Qi  <yao@codesourcery.com>
4158
4159         * Makefile.in (REMOTE_OBS): Add ctf.o.
4160         (SFILES): Add ctf.c.
4161         (HFILES_NO_SRCDIR): Add ctf.h.
4162         * ctf.c, ctf.h: New files.
4163         * tracepoint.c: Include 'ctf.h'.
4164         (collect_pseudocommand): Remove static.
4165         (trace_save_command): Parse option "-ctf".
4166         Produce different trace file writers per option.
4167         Adjust output message.
4168         (trace_save_tfile, trace_save_ctf): New.
4169         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4170         * mi/mi-main.c: Include 'ctf.h'.
4171         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
4172         trace_save_tfile or trace_save_ctf.
4173         * NEWS: Mention these changes.
4174
4175 2013-03-14  Yao Qi  <yao@codesourcery.com>
4176
4177         * tracepoint.c (trace_file_writer_xfree): New.
4178         (struct tfile_writer_data): New.
4179         (tfile_dtor, tfile_can_target_save, tfile_start): New.
4180         (tfile_write_header, tfile_write_regblock_type): New.
4181         (tfile_write_status, tfile_write_uploaded_tsv): New.
4182         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4183         (tfile_write_raw_data, (tfile_end): New.
4184         (tfile_write_ops): New global variable.
4185         (TRACE_WRITE_R_BLOCK): New macro.
4186         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4187         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4188         (TRACE_WRITE_V_BLOCK): New macro.
4189         (trace_save): Add extra one parameter WRITER.  Make it static.
4190         Use WRITER to writer trace.
4191         (tfile_trace_file_writer_new): New.
4192         (trace_save_command): Caller update.
4193         (trace_save_tfile): Write trace data in TFILE format.
4194         * tracepoint.h (struct trace_frame_write_ops): New.
4195         (struct trace_file_write_ops): New.
4196         (struct trace_file_writer): New.
4197         (trace_save): Remove its declaration.
4198         (trace_save_tfile): Declare it.
4199         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4200         instead of trace_save.
4201
4202 2013-03-13  Pedro Alves  <palves@redhat.com>
4203
4204         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4205
4206 2013-03-13  Pedro Alves  <palves@redhat.com>
4207
4208         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4209         commented out code.
4210         * demangle.c (current_demangling_style_string): Make it const.
4211         (set_demangling_command): Assert the demangling style is known.
4212         Remove all handling of unknown styles.  Set
4213         'current_demangling_style_string' to an element of the
4214         demangling_style_names array.
4215         (set_demangling_style): Delete.
4216         (_initialize_demangler): Set current_demangling_style_string to the
4217         element of the demangling_style_names array that corresponds to
4218         the default demangling style.  Remove FIXME note.  Don't call
4219         set_demangling_style.
4220         * gdb-demangle.h (set_demangling_style): Remove declaration.
4221
4222 2013-03-13  Pedro Alves  <palves@redhat.com>
4223
4224         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4225         fields const.
4226         (ada_make_symbol_completion_list): Make "text0" parameter const.
4227         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4228         * breakpoint.c (condition_completer): Make "text" and "word"
4229         parameters const.  Adjust.
4230         (check_tracepoint_command): Adjust to validate_actionline
4231         prototype change.
4232         (catch_syscall_completer): Make "text" and "word" parameters
4233         const.
4234         * cli/cli-cmds.c (show_user): Make "comname" local const.
4235         (valid_command_p): Make "command" parameter const.
4236         (alias_command): Make "alias_prefix" and "command_prefix" locals
4237         const.
4238         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4239         (add_alias_cmd): Make "name" and "oldname" parameters const.
4240         Adjust.  No longer make copy of OLDNAME.
4241         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4242         (add_setshow_cmd_full, add_setshow_enum_cmd)
4243         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4244         (add_setshow_filename_cmd, add_setshow_string_cmd)
4245         (add_setshow_string_noescape_cmd)
4246         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4247         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4248         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4249         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4250         Make "name" parameter const.
4251         (help_cmd): Rename "command" parameter to "arg".  New const local
4252         "command".
4253         (find_cmd): Make "command" parameter const.
4254         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
4255         deprecated_cmd_warning prototype change.
4256         (undef_cmd_error): Make "cmdtype" parameter const.
4257         (lookup_cmd): Make "line" parameter const.
4258         (deprecated_cmd_warning): Change type of "text" parameter to
4259         pointer to const char, from pointer to pointer to char.  Adjust.
4260         (lookup_cmd_composition): Make "text" parameter const.
4261         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4262         parameters const.
4263         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4264         const.
4265         * cli/cli-script.c (validate_comname): Make "tem" local const.
4266         (define_command): New const local "tem_c".  Use it in calls to
4267         lookup_cmd.
4268         (document_command): Make "tem" and "comfull" locals const.
4269         (show_user_1): Make "prefix" and "name" parameters const.
4270         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
4271         const.
4272         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
4273         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
4274         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
4275         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
4276         (complete_on_enum, add_setshow_enum_cmd)
4277         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4278         (add_setshow_filename_cmd, add_setshow_string_cmd)
4279         (add_setshow_string_noescape_cmd)
4280         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4281         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4282         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
4283         Change prototypes, constifying strings.
4284         * completer.c (noop_completer, filename_completer): Make "text"
4285         and "prefix" parameters const.
4286         (location_completer, expression_completer)
4287         (complete_line_internal): Make "text" and "prefix" parameters
4288         const and adjust.
4289         (command_completer, signal_completer): Make "text" and "prefix"
4290         parameters const.
4291         * completer.h (noop_completer, filename_completer)
4292         (expression_completer, location_completer, command_completer)
4293         (signal_completer): Change prototypes.
4294         * corefile.c (complete_set_gnutarget): Make "text" and "word"
4295         parameters const.
4296         * cp-abi.c (cp_abi_completer): Likewise.
4297         * expression.h (parse_expression_for_completion): Change
4298         prototype.
4299         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4300         parameters const.
4301         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4302         * infrun.c (handle_completer): Make "text" and "word" parameters
4303         const.
4304         * interps.c (interpreter_completer): Make "text" and "word"
4305         parameters const.
4306         * language.h (struct language_defn)
4307         <la_make_symbol_completion_list>: Make "text" and "word"
4308         parameters const.
4309         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4310         (parse_exp_in_context): Rename to ...
4311         (parse_exp_in_context_1): ... this.
4312         (parse_exp_in_context): Reimplement, with const hack from
4313         parse_exp_1.
4314         (parse_expression_for_completion): Make "string" parameter const.
4315         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4316         to pointer to const char.  Adjust.
4317         (print_command_1): Make "exp" parameter const.
4318         (output_command): Rename to ...
4319         (output_command_const): ... this.  Make "exp" parameter const.
4320         (output_command): Reimplement.
4321         (x_command): Adjust.
4322         (display_command): Rename "exp" parameter to "arg".  New "exp"
4323         local, const version of "arg".
4324         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4325         "cmd_name" local const.
4326         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4327         call.
4328         (cmdpy_completer): Make "text" and "word" parameters const.
4329         (gdbpy_parse_command_name): Make "prefix_text2" local const.
4330         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4331         const.
4332         * remote.c (_initialize_remote): Make "cmd_name" local const.
4333         * symtab.c (language_search_unquoted_string): Make "text" and "p"
4334         parameters const.  Adjust.
4335         (completion_list_add_fields): Make "sym_text", "text" and "word"
4336         parameters const.
4337         (struct add_name_data) <sym_text, text, word>: Make fields const.
4338         (default_make_symbol_completion_list_break_on): Make "text" and
4339         "word" parameters const.  Adjust locals.
4340         (default_make_symbol_completion_list)
4341         (make_symbol_completion_list, make_symbol_completion_type)
4342         (make_symbol_completion_list_fn): Make "text" and "word"
4343         parameters const.
4344         (make_file_symbol_completion_list): Make "text", "word" and
4345         "srcfile" parameters const.  Adjust locals.
4346         (add_filename_to_list): Make "text" and "word" parameters const.
4347         (struct add_partial_filename_data) <text, word>: Make fields
4348         const.
4349         (make_source_files_completion_list): Make "text" and "word"
4350         parameters const.
4351         * symtab.h (default_make_symbol_completion_list_break_on)
4352         (default_make_symbol_completion_list, make_symbol_completion_list)
4353         (make_symbol_completion_type enum type_code)
4354         (make_symbol_completion_list_fn make_file_symbol_completion_list)
4355         (make_source_files_completion_list): Change prototype.
4356         * top.c (execute_command): Adjust to pass pointer to pointer to
4357         const char to lookup_cmd, and to deprecated_cmd_warning prototype
4358         change.
4359         (set_verbose): Make "cmdname" local const.
4360         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4361         and adjust.
4362         (validate_actionline): Make "line" parameter a pointer to const
4363         char, and adjust.
4364         (encode_actions_1): Make "action_exp" local const, and adjust.
4365         (encode_actions): Adjust.
4366         (replace_comma): Delete.
4367         (trace_dump_actions): Make "action_exp" and "next_comma" locals
4368         const, and adjust.  Don't frob the action string while splitting
4369         it at commas.  Instead, make a copy of each split substring in
4370         turn.
4371         (trace_dump_command): Adjust to validate_actionline prototype
4372         change.
4373         * tracepoint.h (decode_agent_options, decode_agent_options)
4374         (encode_actions, validate_actionline): Change prototypes.
4375         * valprint.h (output_command): Delete declaration.
4376         (output_command_const): Declare.
4377         * value.c (function_destroyer): Cast const away in xfree call.
4378
4379 2013-03-13  Pedro Alves  <palves@redhat.com>
4380
4381         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4382         rather than casting 'const char * const *' to 'const char **'.
4383         * ada-lex.l (processInt): Make "trailer" local const.  Remove
4384         'const char **' cast.
4385         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4386         locals, and use those as strtol output pointer, instead than doing
4387         invalid casts to from 'const char **' to 'char **'.
4388         (_initialize_demangle): Remove cast.
4389         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4390         locals, and use those as strtol output pointer, instead than doing
4391         invalid casts to from 'const char **' to 'char **'.
4392         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4393         casts.
4394         * stap-probe.c (stap_parse_register_operand)
4395         (stap_parse_single_operand): Likewise.
4396
4397 2013-03-13  Yao Qi  <yao@codesourcery.com>
4398
4399         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4400         the last matched 'V' blcok in trace frame.
4401
4402 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4403
4404         * NEWS: Create a new section for the next release branch.
4405         Rename the section of the current branch, now that it has
4406         been cut.
4407
4408 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4409
4410         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4411         * version.in: Bump version to 7.6.50.20130312-cvs.
4412
4413 2013-03-12  Keith Seitz  <keiths@redhat.com>
4414
4415         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4416         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4417         Remove temporary copy of input string.
4418         (mi_execute_command_wrapper): Make "cmd" const.
4419         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4420         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4421         Use const strings.
4422         (mi_parse): Make "cmd" const.
4423         Use const strings.
4424         * mi/mi-parse.h (mi_parse): Make "cmd" const.
4425
4426 2013-03-12  Keith Seitz  <keiths@redhat.com>
4427
4428         * ada-lang.c (ada_read_renaming_var_value): Pass const
4429         pointer to expression string to parse_exp_1.
4430         (create_excep_cond_exprs): Likewise.
4431         * ax-gdb.c (agent_eval_command_one): Likewise.
4432         (maint_agent_printf_command): Likewise.
4433         Constify much of the string handling/parsing.
4434         * breakpoint.c (set_breakpoint_condition): Pass const
4435         pointer to expression string to parse_exp_1.
4436         (update_watchpoint): Likewise.
4437         (parse_cmd_to_aexpr): Constify string handling.
4438         Pass const pointer to parse_exp_1.
4439         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4440         (find_condition_and_thread): Likewise.
4441         Make TOK const.
4442         (watch_command_1): Make "arg" const.
4443         Constify string handling.
4444         Copy the expression string instead of changing the input
4445         string.
4446         (update_breakpoint_location): Pass const pointer to
4447         parse_exp_1.
4448         * eval.c (parse_and_eval_address): Make "exp" const.
4449         (parse_to_comma_and_eval): Make "expp" const.
4450         (parse_and_eval): Make "exp" const.
4451         * expression.h (parse_expression): Make argument const.
4452         (parse_exp_1): Make first argument const.
4453         * findcmd.c (parse_find_args): Treat "args" as const.
4454         * linespec.c (parse_linespec): Pass const pointer to
4455         linespec_expression_to_pc.
4456         (linespec_expression_to_pc): Make "exp_ptr" const.
4457         * parse.c (parse_exp_1): Make "stringptr" const.
4458         Make a copy of the expression to pass to parse_exp_in_context until
4459         this whole interface can be constified.
4460         (parse_expression): Make "string" const.
4461         * printcmd.c (ui_printf): Treat "arg" as const.
4462         Handle const strings.
4463         * tracepoint.c (validate_actionline): Pass const pointer to
4464         all calls to parse_exp_1.
4465         (encode_actions_1): Likewise.
4466         * value.h (parse_to_comma_and_eval): Make argument const.
4467         (parse_and_eval_address): Likewise.
4468         (parse_and_eval): Likewise.
4469         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4470         (varobj_set_value): Likewise.
4471         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4472         constify string handling.
4473         Pass const pointers to parse_and_eval_address and
4474         parse_to_comman_and_eval.
4475         * cli/cli-utils.c (skip_to_space): Rename to ...
4476         (skip_to_space_const): ... this. Handle const strings.
4477         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4478         skip_to_space_const.
4479         (skip_to_space_const): Declare.
4480         * common/format.c (parse_format_string): Make "arg" const.
4481         Handle const strings.
4482         * common/format.h (parse_format_string): Make "arg" const.
4483         * gdbserver/ax.c (ax_printf): Make "format" const.
4484         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4485         of the expression string.
4486
4487 2013-03-12  Hui Zhu  <hui@codesourcery.com>
4488
4489         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4490
4491 2013-03-12  Yao Qi  <yao@codesourcery.com>
4492             Hui Zhu  <hui@codesourcery.com>
4493
4494         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4495         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4496         DW_OP_deref_size.
4497
4498 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
4499
4500         * ada-lex.l (rules): Only recognize 'thread' as a
4501         delimiter when followed by numerals, as for c-exp.y.
4502         Use new rewind_to_char function to rewind the input for
4503         expression-delimiting tokens.
4504         (rewind_to_char): New function.
4505
4506 2013-03-11  Pedro Alves  <palves@redhat.com>
4507             Jan Kratochvil  <jan.kratochvil@redhat.com>
4508
4509         * configure: Regenerate.
4510         * configure.ac (check dynamic export flag): Link python test with
4511         $PYTHON_LIBS.
4512
4513 2013-03-11  Doug Evans  <dje@google.com>
4514             Keith Seitz  <keiths@redhat.com>
4515
4516         * linespec.c (find_linespec_symbols): Call find_function_symbols
4517         first, and then call lookup_prefix_sym/find_method.
4518
4519 2013-03-11  Pedro Alves  <palves@redhat.com>
4520
4521         * charset.c (convert_between_encodings): Don't cast between
4522         different pointer to pointer types.  Instead, make the 'inp' local
4523         be of the type iconv expects.
4524         (wchar_iterate): Don't cast between different pointer to pointer
4525         types.  Instead, use new pointer local of the type iconv expects.
4526         * target.c (target_read_stralloc, target_fileio_read_stralloc):
4527         Add new local of type char pointer, and use it to get a
4528         char/string view of the byte buffer, instead of casting between
4529         pointer to pointer types.
4530
4531 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4532
4533         * remote.c (remote_set_trace_buffer_size): Move != operator
4534         to the start of next line to fix an ARI warning.
4535
4536 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4537
4538         * NEWS: Add record changes.
4539
4540 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4541
4542         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4543         the instruction history disassembly.
4544         * disasm.c (dump_insns): Omit the pc prefix, if requested.
4545         * disasm.h (DISASSEMBLY_OMIT_PC): New.
4546
4547 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4548
4549         * Makefile.in (SFILES): Add record-btrace.c
4550         (COMMON_OBS): Add record-btrace.o
4551         * record-btrace.c: New.
4552         * objfiles.c: Include btrace.h.
4553         (free_objfile): call btrace_free_objfile.
4554
4555 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4556
4557         * target.c (target_call_history, target_call_history_from,
4558         target_call_history_range): New.
4559         * target.h (target_ops) <to_call_history, to_call_history_from,
4560         to_call_history_range>: New fields.
4561         (target_call_history, target_call_history_from,
4562         target_call_history_range): New declaration.
4563         * record.c (get_call_history_modifiers, cmd_record_call_history,
4564         record_call_history_size): New.
4565         (_initialize_record): Add the "record function-call-history" command.
4566         Add "set/show record function-call-history-size" commands.
4567         * record.h (record_print_flag): New.
4568
4569 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4570
4571         * target.h (target_ops) <to_insn_history, to_insn_history_from,
4572         to_insn_history_range>: New fields.
4573         (target_insn_history): New.
4574         (target_insn_history_from): New.
4575         (target_insn_history_range): New.
4576         * target.c (target_insn_history): New.
4577         (target_insn_history_from): New.
4578         (target_insn_history_range): New.
4579         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4580         (record_insn_history_size): New.
4581         (get_insn_number): New.
4582         (get_context_size): New.
4583         (no_chunk): New.
4584         (get_insn_history_modifiers): New.
4585         (cmd_record_insn_history): New.
4586         (_initialize_record): Add "set/show record instruction-history-size"
4587         command. Add "record instruction-history" command.
4588
4589 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4590
4591         * record.h (record_disconnect): New.
4592         (record_detach): New.
4593         (record_mourn_inferior): New.
4594         (record_kill): New.
4595         * record-full.c (record_disconnect, record_detach,
4596         record_mourn_inferior, record_kill): Move to...
4597         * record.c: ...here.
4598         (DEBUG): New.
4599         (record_stop): New.
4600         (record_unpush): New.
4601         (cmd_record_stop): Call record_stop. Replace unpush_target
4602         call with record_unpush call.
4603         (record_disconnect, record_detach): Assert that the target
4604         is of record stratum. Call record_unpush, record_stop, and
4605         DEBUG.
4606         (record_mourn_inferior, record_kill): Assert that the target
4607         is of record stratum. Call record_unpush and DEBUG.
4608
4609 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4610
4611         * record-full.h, record-full.c (record_memory_query): Rename
4612         to ...
4613         (record_full_memory_query): ...this. Update all users.
4614         (record_arch_list_add_reg): Rename to ...
4615         (record_full_arch_list_add_reg): ...this. Update all users.
4616         (record_arch_list_add_mem): Rename to ...
4617         (record_full_arch_list_add_mem): ...this. Update all users.
4618         (record_arch_list_add_end): Rename to ...
4619         (record_full_arch_list_add_end): ...this. Update all users.
4620         (record_gdb_operation_disable_set): Rename to ...
4621         (record_full_gdb_operation_disable_set): ...this.
4622         Update all users.
4623
4624 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4625
4626         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4627         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4628         (RECORD_IS_REPLAY): Renamed to ...
4629         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4630         (RECORD_FILE_MAGIC): Renamed to ...
4631         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4632         (record_mem_entry): Renamed to ...
4633         (record_full_mem_entry): ... this. Updated all users.
4634         (record_reg_entry): Renamed to ...
4635         (record_full_reg_entry): ... this. Updated all users.
4636         (record_end_entry): Renamed to ...
4637         (record_full_end_entry): ... this. Updated all users.
4638         (record_type) <record_end, record_reg, record_mem>: Renamed
4639         to ...
4640         (record_full_type) <record_full_end, record_full_reg,
4641         record_full_mem>: ... this. Updated all users.
4642         (record_entry): Renamed to ...
4643         (record_full_entry): ... this. Updated all users.
4644         (record_core_buf_entry): Renamed to ...
4645         (record_full_core_buf_entry): ... this. Updated all users.
4646         (record_core_regbuf): Renamed to ...
4647         (record_full_core_regbuf): ... this. Updated all users.
4648         (record_core_start): Renamed to ...
4649         (record_full_core_start): ... this. Updated all users.
4650         (record_core_end): Renamed to ...
4651         (record_full_core_end): ... this. Updated all users.
4652         (record_core_buf_list): Renamed to ...
4653         (record_full_core_buf_list): ... this. Updated all users.
4654         (record_first): Renamed to ...
4655         (record_full_first): ... this. Updated all users.
4656         (record_list): Renamed to ...
4657         (record_full_list): ... this. Updated all users.
4658         (record_arch_list_head): Renamed to ...
4659         (record_full_arch_list_head): ... this. Updated all users.
4660         (record_arch_list_tail): Renamed to ...
4661         (record_full_arch_list_tail): ... this. Updated all users.
4662         (record_stop_at_limit): Renamed to ...
4663         (record_full_stop_at_limit): ... this. Updated all users.
4664         (record_insn_max_num): Renamed to ...
4665         (record_full_insn_max_num): ... this. Updated all users.
4666         (record_insn_num): Renamed to ...
4667         (record_full_insn_num): ... this. Updated all users.
4668         (record_insn_count): Renamed to ...
4669         (record_full_insn_count): ... this. Updated all users.
4670         (record_ops): Renamed to ...
4671         (record_full_ops): ... this. Updated all users.
4672         (record_core_ops): Renamed to ...
4673         (record_full_core_ops): ... this. Updated all users.
4674         (set_record_cmdlist): Renamed to ...
4675         (set_record_full_cmdlist): ... this. Updated all users.
4676         (show_record_cmdlist): Renamed to ...
4677         (show_record_full_cmdlist): ... this. Updated all users.
4678         (record_cmdlist): Renamed to ...
4679         (record_full_cmdlist): ... this. Updated all users.
4680         (record_beneath_to_resume_ops): Renamed to ...
4681         (record_full_beneath_to_resume_ops): ... this. Updated all users.
4682         (record_beneath_to_resume): Renamed to ...
4683         (record_full_beneath_to_resume): ... this. Updated all users.
4684         (record_beneath_to_wait_ops): Renamed to ...
4685         (record_full_beneath_to_wait_ops): ... this. Updated all users.
4686         (record_beneath_to_wait): Renamed to ...
4687         (record_full_beneath_to_wait): ... this. Updated all users.
4688         (record_beneath_to_store_registers_ops): Renamed to ...
4689         (record_full_beneath_to_store_registers_ops): ... this.
4690         Updated all users.
4691         (record_beneath_to_store_registers): Renamed to ...
4692         (record_full_beneath_to_store_registers): ... this.
4693         Updated all users.
4694         (record_beneath_to_xfer_partial_ops): Renamed to ...
4695         (record_full_beneath_to_xfer_partial_ops): ... this.
4696         Updated all users.
4697         (record_beneath_to_xfer_partial): Renamed to ...
4698         (record_full_beneath_to_xfer_partial): ... this.
4699         Updated all users.
4700         (record_beneath_to_insert_breakpoint): Renamed to ...
4701         (record_full_beneath_to_insert_breakpoint): ... this.
4702         Updated all users.
4703         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4704         (record_full_beneath_to_stopped_by_watchpoint): ... this.
4705         Updated all users.
4706         (record_beneath_to_stopped_data_address): Renamed to ...
4707         (record_full_beneath_to_stopped_data_address): ... this.
4708         Updated all users.
4709         (record_beneath_to_async): Renamed to ...
4710         (record_full_beneath_to_async): ... this. Updated all users.
4711         (record_goto_insn): Renamed to ...
4712         (record_full_goto_insn): ... this. Updated all users.
4713         (record_save): Renamed to ...
4714         (record_full_save): ... this. Updated all users.
4715         (record_reg_alloc): Renamed to ...
4716         (record_full_reg_alloc): ... this. Updated all users.
4717         (record_reg_release): Renamed to ...
4718         (record_full_reg_release): ... this. Updated all users.
4719         (record_mem_alloc): Renamed to ...
4720         (record_full_mem_alloc): ... this. Updated all users.
4721         (record_mem_release): Renamed to ...
4722         (record_full_mem_release): ... this. Updated all users.
4723         (record_end_alloc): Renamed to ...
4724         (record_full_end_alloc): ... this. Updated all users.
4725         (record_end_release): Renamed to ...
4726         (record_full_end_release): ... this. Updated all users.
4727         (record_entry_release): Renamed to ...
4728         (record_full_entry_release): ... this. Updated all users.
4729         (record_list_release): Renamed to ...
4730         (record_full_list_release): ... this. Updated all users.
4731         (record_list_release_following): Renamed to ...
4732         (record_full_list_release_following): ... this.
4733         Updated all users.
4734         (record_list_release_first): Renamed to ...
4735         (record_full_list_release_first): ... this. Updated all users.
4736         (record_arch_list_add): Renamed to ...
4737         (record_full_arch_list_add): ... this. Updated all users.
4738         (record_get_loc): Renamed to ...
4739         (record_full_get_loc): ... this. Updated all users.
4740         (record_check_insn_num): Renamed to ...
4741         (record_full_check_insn_num): ... this. Updated all users.
4742         (record_arch_list_cleanups): Renamed to ...
4743         (record_full_arch_list_cleanups): ... this. Updated all users.
4744         (record_message): Renamed to ...
4745         (record_full_message): ... this. Updated all users.
4746         (record_message_wrapper): Renamed to ...
4747         (record_full_message_wrapper): ... this. Updated all users.
4748         (record_message_wrapper_safe): Renamed to ...
4749         (record_full_message_wrapper_safe): ... this. Updated all users.
4750         (record_gdb_operation_disable): Renamed to ...
4751         (record_full_gdb_operation_disable): ... this. Updated all users.
4752         (record_hw_watchpoint): Renamed to ...
4753         (record_full_hw_watchpoint): ... this. Updated all users.
4754         (record_exec_insn): Renamed to ...
4755         (record_full_exec_insn): ... this. Updated all users.
4756         (record_restore): Renamed to ...
4757         (record_full_restore): ... this. Updated all users.
4758         (record_async_inferior_event_token): Renamed to ...
4759         (record_full_async_inferior_event_token): ... this.
4760         Updated all users.
4761         (record_async_inferior_event_handler): Renamed to ...
4762         (record_full_async_inferior_event_handler): ... this.
4763         Updated all users.
4764         (record_core_open_1): Renamed to ...
4765         (record_full_core_open_1): ... this. Updated all users.
4766         (record_open_1): Renamed to ...
4767         (record_full_open_1): ... this. Updated all users.
4768         (record_open): Renamed to ...
4769         (record_full_open): ... this. Updated all users.
4770         (record_close): Renamed to ...
4771         (record_full_close): ... this. Updated all users.
4772         (record_resume_step): Renamed to ...
4773         (record_full_resume_step): ... this. Updated all users.
4774         (record_resumed): Renamed to ...
4775         (record_full_resumed): ... this. Updated all users.
4776         (record_execution_dir): Renamed to ...
4777         (record_full_execution_dir): ... this. Updated all users.
4778         (record_resume): Renamed to ...
4779         (record_full_resume): ... this. Updated all users.
4780         (record_get_sig): Renamed to ...
4781         (record_full_get_sig): ... this. Updated all users.
4782         (record_sig_handler): Renamed to ...
4783         (record_full_sig_handler): ... this. Updated all users.
4784         (record_wait_cleanups): Renamed to ...
4785         (record_full_wait_cleanups): ... this. Updated all users.
4786         (record_wait_1): Renamed to ...
4787         (record_full_wait_1): ... this. Updated all users.
4788         (record_wait): Renamed to ...
4789         (record_full_wait): ... this. Updated all users.
4790         (record_stopped_by_watchpoint): Renamed to ...
4791         (record_full_stopped_by_watchpoint): ... this. Updated all users.
4792         (record_disconnect): Renamed to ...
4793         (record_full_disconnect): ... this. Updated all users.
4794         (record_detach): Renamed to ...
4795         (record_full_detach): ... this. Updated all users.
4796         (record_mourn_inferior): Renamed to ...
4797         (record_full_mourn_inferior): ... this. Updated all users.
4798         (record_kill): Renamed to ...
4799         (record_full_kill): ... this. Updated all users.
4800         (record_stopped_data_address): Renamed to ...
4801         (record_full_stopped_data_address): ... this. Updated all users.
4802         (record_registers_change): Renamed to ...
4803         (record_full_registers_change): ... this. Updated all users.
4804         (record_store_registers): Renamed to ...
4805         (record_full_store_registers): ... this. Updated all users.
4806         (record_xfer_partial): Renamed to ...
4807         (record_full_xfer_partial): ... this. Updated all users.
4808         (record_breakpoint): Renamed to ...
4809         (record_full_breakpoint): ... this. Updated all users.
4810         (record_breakpoint_p): Renamed to ...
4811         (record_full_breakpoint_p): ... this. Updated all users.
4812         (record_breakpoints): Renamed to ...
4813         (record_full_breakpoints): ... this. Updated all users.
4814         (record_sync_record_breakpoints): Renamed to ...
4815         (record_full_sync_record_breakpoints): ... this.
4816         Updated all users.
4817         (record_init_record_breakpoints): Renamed to ...
4818         (record_full_init_record_breakpoints): ... this.
4819         Updated all users.
4820         (record_insert_breakpoint): Renamed to ...
4821         (record_full_insert_breakpoint): ... this. Updated all users.
4822         (record_remove_breakpoint): Renamed to ...
4823         (record_full_remove_breakpoint): ... this. Updated all users.
4824         (record_can_execute_reverse): Renamed to ...
4825         (record_full_can_execute_reverse): ... this. Updated all users.
4826         (record_get_bookmark): Renamed to ...
4827         (record_full_get_bookmark): ... this. Updated all users.
4828         (record_goto_bookmark): Renamed to ...
4829         (record_full_goto_bookmark): ... this. Updated all users.
4830         (record_async): Renamed to ...
4831         (record_full_async): ... this. Updated all users.
4832         (record_can_async_p): Renamed to ...
4833         (record_full_can_async_p): ... this. Updated all users.
4834         (record_is_async_p): Renamed to ...
4835         (record_full_is_async_p): ... this. Updated all users.
4836         (record_execution_direction): Renamed to ...
4837         (record_full_execution_direction): ... this. Updated all users.
4838         (record_info): Renamed to ...
4839         (record_full_info): ... this. Updated all users.
4840         (record_delete): Renamed to ...
4841         (record_full_delete): ... this. Updated all users.
4842         (record_is_replaying): Renamed to ...
4843         (record_full_is_replaying): ... this. Updated all users.
4844         (record_goto_entry): Renamed to ...
4845         (record_full_goto_entry): ... this. Updated all users.
4846         (record_goto_begin): Renamed to ...
4847         (record_full_goto_begin): ... this. Updated all users.
4848         (record_goto_end): Renamed to ...
4849         (record_full_goto_end): ... this. Updated all users.
4850         (record_goto): Renamed to ...
4851         (record_full_goto): ... this. Updated all users.
4852         (init_record_ops): Renamed to ...
4853         (init_record_full_ops): ... this. Updated all users.
4854         (record_core_resume): Renamed to ...
4855         (record_full_core_resume): ... this. Updated all users.
4856         (record_core_kill): Renamed to ...
4857         (record_full_core_kill): ... this. Updated all users.
4858         (record_core_fetch_registers): Renamed to ...
4859         (record_full_core_fetch_registers): ... this. Updated all users.
4860         (record_core_prepare_to_store): Renamed to ...
4861         (record_full_core_prepare_to_store): ... this. Updated all users.
4862         (record_core_store_registers): Renamed to ...
4863         (record_full_core_store_registers): ... this. Updated all users.
4864         (record_core_xfer_partial): Renamed to ...
4865         (record_full_core_xfer_partial): ... this. Updated all users.
4866         (record_core_insert_breakpoint): Renamed to ...
4867         (record_full_core_insert_breakpoint): ... this. Updated all users.
4868         (record_core_remove_breakpoint): Renamed to ...
4869         (record_full_core_remove_breakpoint): ... this. Updated all users.
4870         (record_core_has_execution): Renamed to ...
4871         (record_full_core_has_execution): ... this. Updated all users.
4872         (init_record_core_ops): Renamed to ...
4873         (init_record_full_core_ops): ... this. Updated all users.
4874         (cmd_record_restore): Renamed to ...
4875         (cmd_record_full_restore): ... this. Updated all users.
4876         (record_save_cleanups): Renamed to ...
4877         (record_full_save_cleanups): ... this. Updated all users.
4878         (cmd_record_start): Renamed to ...
4879         (cmd_record_full_start): ... this. Updated all users.
4880         (set_record_insn_max_num): Renamed to ...
4881         (set_record_full_insn_max_num): ... this. Updated all users.
4882         (set_record_command): Renamed to ...
4883         (set_record_full_command): ... this. Updated all users.
4884         (show_record_command): Renamed to ...
4885         (show_record_full_command): ... this. Updated all users.
4886         (_initialize_record): Renamed to ...
4887         (_initialize_record_full): ... this. Updated all users.
4888
4889 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4890
4891         * record.h: Split into this and ...
4892         * record-full.h: ... this.
4893         * record.c: Split into this and ...
4894         * record-full.c: ... this.
4895         * target.h (target_ops): Add new fields to_info_record,
4896         to_save_record, to_delete_record, to_record_is_replaying,
4897         to_goto_record_begin, to_goto_record_end, to_goto_record.
4898         (target_info_record): New.
4899         (target_save_record): New.
4900         (target_supports_delete_record): New.
4901         (target_delete_record): New.
4902         (target_record_is_replaying): New.
4903         (target_goto_record_begin): New.
4904         (target_goto_record_end): New.
4905         (target_goto_record): New.
4906         * target.c (target_info_record): New.
4907         (target_save_record): New.
4908         (target_supports_delete_record): New.
4909         (target_delete_record): New.
4910         (target_record_is_replaying): New.
4911         (target_goto_record_begin): New.
4912         (target_goto_record_end): New.
4913         (target_goto_record): New.
4914         * record.h: Declare struct cmd_list_element.
4915         (record_cmdlist): New declaration.
4916         (set_record_cmdlist): New declaration.
4917         (show_record_cmdlist): New declaration.
4918         (info_record_cmdlist): New declaration.
4919         (cmd_record_goto): New declaration.
4920         * record.c: Remove unnecessary includes.
4921         Include inferior.h.
4922         (cmd_record_goto): Remove declaration.
4923         (record_cmdlist): Now extern. Initialize.
4924         (set_record_cmdlist): Now extern. Initialize.
4925         (show_record_cmdlist): Now extern. Initialize.
4926         (info_record_cmdlist): Now extern. Initialize.
4927         (find_record_target): New.
4928         (require_record_target): New.
4929         (cmd_record_start): Update.
4930         (cmd_record_delete): Remove target-specific code.
4931         Call target_delete_record.
4932         (cmd_record_stop): Unpush any record target.
4933         (set_record_insn_max_num): Move to record-full.c
4934         (set_record_command): Add comment.
4935         (show_record_command): Add comment.
4936         (info_record_command): Update comment.
4937         Remove target-specific code.
4938         Call the record target's to_info_record.
4939         (cmd_record_start): New.
4940         (cmd_record_goto): Now extern.
4941         Remove target-specific code.
4942         Call target_goto_begin,  target_goto_end, or target_goto.
4943         (_initialize_record): Move record target ops initialization to
4944         record-full.c.
4945         Change "record" command help text.
4946         Move "record restore", "record set", and "record show" commands to
4947         record-full.c.
4948         * Makefile.in (SFILES): Add record-full.c.
4949         (HFILES_NO_SRCDIR): Add record-full.h.
4950         (COMMON_OBS): Add record-full.o.
4951         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4952         * arm-tdep.c: Include record-full.h.
4953         * i386-linux-tdep.c: Include record-full.h instead of record.h.
4954         * i386-tdep.c: Include record-full.h.
4955         * infrun.c: Include record-full.h.
4956         * linux-record.c: Include record-full.h.
4957         * moxie-tdep.c: Include record-full.h.
4958         * record-full.c: Include record-full.h.
4959         Change module comment.
4960         (set_record_full_cmdlist): New.
4961         (show_record_full_cmdlist): New.
4962         (record_full_cmdlist): New.
4963         (record_goto_insn): New declaration.
4964         (record_save): New declaration.
4965         (record_check_insn_num): Change query string.
4966         (record_info): New.
4967         (record_delete): New.
4968         (record_is_replaying): New.
4969         (record_goto_entry): New.
4970         (record_goto_begin): New.
4971         (record_goto_end): New.
4972         (record_goto): New.
4973         (init_record_ops): Update.
4974         (init_record_core_ops): Update.
4975         (cmd_record_save): Rename to record_save. Remove target and arg checks.
4976         (cmd_record_start): New.
4977         (set_record_insn_max_num): Moved from record.c
4978         (set_record_full_command): New.
4979         (show_record_full_command): New.
4980         (_initialize_record_full): New.
4981
4982 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4983
4984         * target.h (add_deprecated_target_alias): New.
4985         * target.c (add_deprecated_target_alias): New.
4986
4987 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4988
4989         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4990         and signal.h.
4991         (linux_supports_btrace): Add kernel and
4992         cpuid check.
4993         (kernel_supports_btrace): New function.
4994         (cpu_supports_btrace): New function.
4995         (intel_supports_btrace): New function.
4996
4997 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4998
4999         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
5000         * remote.c: Include btrace.h.
5001         (struct btrace_target_info): New struct.
5002         (remote_supports_btrace): New function.
5003         (send_Qbtrace): New function.
5004         (remote_enable_btrace): New function.
5005         (remote_disable_btrace): New function.
5006         (remote_teardown_btrace): New function.
5007         (remote_read_btrace): New function.
5008         (init_remote_ops): Add btrace ops.
5009         (enum <unnamed>): Add btrace packets.
5010         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
5011         (_initialize_remote): Add packet configuration for branch tracing.
5012
5013 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5014
5015         * features/btrace.dtd: New file.
5016         * Makefile.in (XMLFILES): Add btrace.dtd.
5017         * btrace.h (parse_xml_btrace): New declaration.
5018         * btrace.c: Include xml-support.h.
5019         (parse_xml_btrace): New function.
5020         (parse_xml_btrace_block): New function.
5021         (block_attributes): New struct.
5022         (btrace_attributes): New struct.
5023         (btrace_children): New struct.
5024         (btrace_elements): New struct.
5025
5026 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5027
5028         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5029         (amd64_linux_enable_btrace): New.
5030         (amd64_linux_disable_btrace): New.
5031         (amd64_linux_teardown_btrace): New.
5032         (_initialize_amd64_linux_nat): Initialize btrace ops.
5033         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5034         (i386_linux_enable_btrace): New.
5035         (i386_linux_disable_btrace): New.
5036         (i386_linux_teardown_btrace): New.
5037         (_initialize_i386_linux_nat): Initialize btrace ops.
5038         * config/i386/linux.mh: Add linux-btrace.o.
5039         * config/i386/linux64.mh: Add linux-btrace.o.
5040
5041 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5042
5043         * common/linux_btrace.h: New file.
5044         * common/linux_btrace.c: New file.
5045         * Makefile.in (SFILES): Add btrace.c.
5046         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5047         (COMMON_OBS): Add btrace.o.
5048         (linux-btrace.o): New rule.
5049
5050 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5051
5052         * target.h: Include btrace.h.
5053         (struct target_ops) <to_supports_btrace, to_enable_btrace,
5054         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5055         * target.c (target_supports_btrace): New function.
5056         (target_enable_btrace): New function.
5057         (target_disable_btrace): New function.
5058         (target_teardown_btrace): New function.
5059         (target_read_btrace): New function.
5060         * btrace.h: New file.
5061         * btrace.c: New file.
5062         * Makefile.in: Add btrace.c.
5063         * gdbthread.h: Include btrace.h.
5064         (struct thread_info): Add btrace field.
5065         * thread.c: Include btrace.h.
5066         (clear_thread_inferior_resources): Call target_teardown_btrace.
5067         * common/btrace-common.h: New file.
5068
5069 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5070
5071         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5072         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5073         kill_status to outer block.
5074
5075 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5076
5077         Fix entry-values if the callee called a noreturn function.
5078         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5079         get_frame_address_in_block.  Add new comment.
5080
5081 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5082
5083         Fix entry-values in C++ across CUs.
5084         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5085         lookup_minimal_symbol.  Add a comment.
5086         * dwarf2read.c
5087         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5088         DW_AT_linkage_name.
5089
5090 2013-03-08  Yao Qi  <yao@codesourcery.com>
5091
5092         * tracepoint.c (_initialize_tracepoint): Indent the code.
5093
5094 2013-03-08  Pedro Alves  <palves@redhat.com>
5095
5096         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5097         (parse_find_args, find_command): Change type of pattern buffer
5098         locals to 'gdb_byte *'.
5099
5100 2013-03-08  Stan Shebs  <stan@codesourcery.com>
5101             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5102
5103         * NEWS: Mention set and show trace-buffer-size commands.
5104         Mention new packet.
5105         * target.h (struct target_ops): New method
5106         to_set_trace_buffer_size.
5107         (target_set_trace_buffer_size): New macro.
5108         * target.c (update_current_target): Set up new method.
5109         * tracepoint.c (trace_buffer_size): New global.
5110         (start_tracing): Send it to the target.
5111         (set_trace_buffer_size): New function.
5112         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5113         * remote.c (remote_set_trace_buffer_size): New function.
5114         (_initialize_remote): Use it.
5115         (QTBuffer:size) New remote command.
5116         (PACKET_QTBuffer_size): New enum.
5117         (remote_protocol_features): Add an entry for
5118         PACKET_QTBuffer_size.
5119
5120 2013-03-08  Tom Tromey  <tromey@redhat.com>
5121
5122         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5123         variable.
5124
5125 2013-03-07  Pedro Alves  <palves@redhat.com>
5126
5127         * target.c (target_read_stralloc, target_fileio_read_alloc):
5128         *Cast pointer to 'gdb_byte *' in target call.
5129
5130 2013-03-07  Pedro Alves  <palves@redhat.com>
5131
5132         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5133         call.
5134
5135 2013-03-07  Keith Seitz  <keiths@redhat.com>
5136
5137         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5138         (trace_pass_command): Likewise.
5139         * cli/cli-cmds.c: Include cli/cli-utils.h.
5140         (source_command): Use skip-spaces.
5141         (disassemble_command): Likewise.
5142         * findcmd.c: Include cli/cli-utils.h.
5143         (parse_find_args): Use skip_spaces.
5144         * go32-nat.c: Include cli/cli-utils.h.
5145         (go32_sldt): Use skip_spaces.
5146         (go32_sgdt): Likewise.
5147         (go32_sidt): Likewise.
5148         (go32_pde): Likewise.
5149         (go32_pte): Likewise.
5150         (go32_pte_for_address): Likewise.
5151         * infcmd.c: Include cli/cli-utils.h.
5152         (registers_info): Use skip_spaces.
5153         * linux-tdep.c (read_mapping): Use skip_spaces_const.
5154         (linux_info_proc): Likewise.
5155         * linux-thread-db.c: Include cli/cli-utils.h.
5156         (info_auto_load_libthread_db): Use skip_spaces_const.
5157         * m32r-rom.c: Include cli/cli-utils.h.
5158         (m32r_upload_command): Use skip_spaces.
5159         * maint.c: Include cli/cli-utils.h.
5160         (maintenance_translate_address): Use skip_spaces.
5161         * mi/mi-parse.c: Include cli/cli-utils.h.
5162         (mi_parse_argv): Use skip_spaces.
5163         (mi_parse): Likewise.
5164         * minsyms.c: Include cli/cli-utils.h.
5165         (msymbol_hash_iw): Use skip_spaces_const.
5166         * objc-lang.c: Include cli/cli-utils.h.
5167         (parse_selector): Use skip_spaces.
5168         (parse_method): Likewise.
5169         * python/python.c: Include cli/cli-utils.h.
5170         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5171         (python_command)[HAVE_PYTHON]: Likewise.
5172         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5173         * remote-m32r-sdi.c: Include cli/cli-utils.h.
5174         (m32r_load): Use skip_spaces.
5175         * serial.c: Include cli/cli-utils.h.
5176         (serial_open): Use skip_spaces_const.
5177         * stack.c: Include cli/cli-utils.h.
5178         (parse_frame_specification_1): Use skip_spaces_const.
5179         * symfile.c: Include cli/cli-utils.h.
5180         (set_ext_lang_command): Use skip_spaces.
5181         * symtab.c: Include cli/cli-utils.h.
5182         (rbreak_command): Use skip_spaces.
5183         * thread.c (thread_name_command): Use skip_spaces.
5184         * tracepoint.c (validate_actionline): Use skip_spaces.
5185         (encode_actions_1): Likewise.
5186         (trace_find_range_command): Likewise.
5187         (trace_find_outside_command): Likewise.
5188         (trace_dump_actions): Likewise.
5189
5190 2013-03-07  Pedro Alves  <palves@redhat.com>
5191
5192         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5193         * expprint.c (print_subexp_standard): Likewise.
5194         * utils.c (host_char_to_target): Likewise.
5195         * valprint.c (generic_emit_char, generic_printstr): Likewise.
5196         * varobj.c (value_get_print_value): Change type of local to char*.
5197         Cast it gdb_byte * in call to language printer.
5198
5199 2013-03-07  Pedro Alves  <palves@redhat.com>
5200
5201         * charset.c (struct wchar_iterator) <input>: Change type to 'const
5202         gdb_byte *'.
5203         (make_wchar_iterator): Remove cast to char*.
5204         (wchar_iterate): Change type of local.
5205
5206 2013-03-07  Pedro Alves  <palves@redhat.com>
5207
5208         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5209         for 'regcache->register_status'.
5210
5211 2013-03-07  Pedro Alves  <palves@redhat.com>
5212
5213         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
5214         int.
5215
5216 2013-03-07  Pedro Alves  <palves@redhat.com>
5217
5218         * stap-probe.c (handle_stap_probe): Add cast to char*.
5219
5220 2013-03-07  Pedro Alves  <palves@redhat.com>
5221
5222         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5223         RECORD_MSGRCV>: Pass a signed variable to
5224         regcache_raw_read_signed, instead of an unsigned one.
5225
5226 2013-03-07  Pedro Alves  <palves@redhat.com>
5227
5228         * remote-notif.c (notif_debug): Change type to int.
5229         * remote-notif.h (notif_debug): Likewise.
5230
5231 2013-03-07  Pedro Alves  <palves@redhat.com>
5232
5233         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5234
5235 2013-03-07  Pedro Alves  <palves@redhat.com>
5236
5237         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5238         * remote.h (hex2bin, bin2hex): ... here.
5239         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5240
5241 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
5242
5243         * utils.c (initialize_utils): Improve doc strings of "set/show
5244         width", "set/show height", and "set/show pagination".
5245
5246 2013-03-06  Keith Seitz  <keiths@redhat.com>
5247
5248         * ax-gdb.c (gen_printf): Make FORMAT const.
5249         * ax-gdb.h (gen_printf): Likewise.
5250         * ax-general.c (ax_string): Make STR const.
5251         * ax.h (ax_string): Likewise.
5252
5253 2013-03-06  Doug Evans  <dje@google.com>
5254
5255         * elfread.c (elf_symfile_read): Move debugging printf to more
5256         logical location.
5257
5258 2013-03-06  Pedro Alves  <palves@redhat.com>
5259
5260         * python/py-utils.c (target_string_to_unicode): Delete function.
5261         * python/python-internal.h (target_string_to_unicode): Delete
5262         declaration.
5263
5264 2013-03-06  Pierre Muller  <muller@sourceware.org>
5265
5266         * linespec.c (get_current_search_block): ARI fix, use (void)
5267         for empty parameter list.
5268
5269 2013-03-05  Doug Evans  <dje@google.com>
5270
5271         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
5272         of old ada_lookup_symbol_list.  In !full_search case, don't
5273         search superblocks.
5274         (ada_lookup_symbol_list): Delete arg full_search, all callers
5275         updated.  Call ada_lookup_symbol_list_worker.
5276         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
5277         * ada-lang.h (ada_lookup_symbol_list): Update.
5278         * language.h (language_defn): Update comment for
5279         la_iterate_over_symbols.
5280         * linespec.c (iterate_over_file_blocks): New function.
5281         (iterate_over_all_matching_symtabs): Call it.
5282         (lookup_prefix_sym): Ditto.
5283         (get_current_search_block): New function.
5284         (get_search_block): Delete.
5285         (find_label_symbols): Call get_current_search_block.
5286         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
5287         * symtab.c (iterate_over_symbols): Don't search superblocks.
5288
5289 2013-03-05  Yao Qi  <yao@codesourcery.com>
5290
5291         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5292         parameter VAR's type from "unsigned int" to "int".
5293         * command.h (var_zuinteger_unlimited): Update its comments.
5294         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5295
5296 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5297
5298         * NEWS: Mention new target x86_64-*-cygwin*.
5299
5300 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5301
5302         * configure.host: Add x86_64-*-cygwin* as host.
5303         * configure.tgt: Add x86_64-*-cygwin* as target.
5304         * config/i386/cygwin64.mh: New file.
5305
5306 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5307
5308         * linespec.c (decode_line_2): Fix duplicate request off by two message.
5309
5310 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5311
5312         * linespec.c (struct linespec_canonical_name): New.
5313         (struct linespec_state): Change canonical_names type to it.
5314         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
5315         xrealloc element size.  Initialize the different CANONICAL fields.
5316         (canonical_to_fullform): New.
5317         (filter_results): Use it.  Add variables canonical, fullform and
5318         cleanup.
5319         (struct decode_line_2_item, decode_line_2_compare_items): New.
5320         (decode_line_2): Remove variables iter and item_names, add variables
5321         items and items_count.  Modify the code for these new variables.
5322
5323 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
5324
5325         * coff-pe-read.c (read_pe_exported_syms): Don't return without
5326         calling do_cleanup.
5327
5328 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
5329
5330         * tracepoint.c (build_traceframe_info): Add code for byte order.
5331
5332 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
5333
5334         * v850-tdep.c: (v850e2_register_name): Revise system register
5335         names to match current V850E2M architecture specifications.
5336         Update register number enum comments too.
5337         
5338 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5339             Pedro Alves  <palves@redhat.com>
5340
5341         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5342         to END_ADDR.
5343         (tilegx_skip_prologue): Limit prologue analysis to section end.
5344
5345 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5346
5347         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5348         use it.
5349
5350 2013-03-01  Pedro Alves  <palves@redhat.com>
5351
5352         Use gdb_byte for bytes from the program being debugged.
5353
5354         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5355         Change type of local 'buf' to gdb_byte.
5356         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5357         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5358         * cris-tdep.c (cris_sigcontext_addr)
5359         (cris_sigtramp_frame_unwind_cache): Likewise.
5360         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5361         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5362         Likewise.
5363         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5364         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5365         (hppa32_hpux_search_dummy_call_sequence)
5366         (hppa_hpux_supply_save_state): Likewise.
5367         * hppa-linux-tdep.c (insns_match_pattern)
5368         (hppa_linux_find_global_pointer): Likewise.
5369         * hppa-tdep.c (hppa_in_function_epilogue_p)
5370         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5371         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5372         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5373         (i386fbsd_collect_uthread): Likewise.
5374         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5375         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5376         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5377         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5378         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5379         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5380         (ia64_libunwind_frame_prev_register)
5381         (ia64_libunwind_sigtramp_frame_this_id)
5382         (ia64_find_global_pointer_from_dynamic_section)
5383         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5384         (ia64_unwind_pc): Likewise.
5385         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5386         * m68hc11-tdep.c (m68hc11_push_dummy_call)
5387         (m68hc11_extract_return_value): Likewise.
5388         * m68klinux-nat.c (fetch_register, store_register): Likewise.
5389         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5390         (mep_get_insn, mep_push_dummy_call): Likewise.
5391         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5392         (mips_linux_in_dynsym_stub): Likewise.
5393         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5394         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5395         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5396         to gdb_byte.
5397         * remote-mips.c (mips_set_register): Likewise.
5398         * remote-sim.c (gdbsim_fetch_register): Likewise.
5399         * score-tdep.c (score7_fetch_inst): Change type of parameter
5400         'memblock' and local 'buf' to gdb_byte.
5401         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5402         Change type of local 'buf' to gdb_byte.  Adjust.
5403         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5404         to gdb_byte**.
5405         (score7_analyze_prologue): Change type of 'memblock' and
5406         'memblock_ptr' locals to gdb_byte*.
5407         * sh64-tdep.c (sh64_extract_return_value)
5408         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5409         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5410         * solib-pa64.c (pa64_solib_create_inferior_hook)
5411         (pa64_open_symbol_file_object): Remove local 'buf'.
5412         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5413         (som_open_symbol_file_object): Likewise.
5414         * solib-spu.c (spu_current_sos): Likewise.
5415         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5416         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5417         (spu_store_registers): Likewise.
5418         * target.c (debug_print_register): Likewise.
5419         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5420         * xstormy16-tdep.c (xstormy16_store_return_value)
5421         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5422         (xstormy16_find_jmp_table_entry): Likewise.
5423
5424 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5425
5426         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5427         (tilegx_gdbarch_init): Install it.
5428
5429 2013-02-28  Tom Tromey  <tromey@redhat.com>
5430
5431         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5432         PyLong_Check.
5433
5434 2013-02-28  Doug Evans  <dje@google.com>
5435
5436         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5437         * python/python.c (gdbpy_find_pc_line): Ditto.
5438
5439 2013-02-28  Tom Tromey  <tromey@redhat.com>
5440
5441         * contrib/excheck.py: New file.
5442         * contrib/exsummary.py: New file.
5443         * contrib/gcc-with-excheck: New file.
5444
5445 2013-02-28  Tom Tromey  <tromey@redhat.com>
5446
5447         * python/python.c (gdbpy_print_stack): Call begin_line and
5448         fprintf_filtered inside TRY_CATCH.
5449
5450 2013-02-28  Tom Tromey  <tromey@redhat.com>
5451
5452         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5453         inside TRY_CATCH.
5454
5455 2013-02-28  Tom Tromey  <tromey@redhat.com>
5456
5457         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5458         frame_object_to_frame_info inside TRY_CATCH.
5459
5460 2013-02-28  Tom Tromey  <tromey@redhat.com>
5461
5462         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5463         TRY_CATCH.
5464
5465 2013-02-28  Tom Tromey  <tromey@redhat.com>
5466
5467         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5468
5469 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
5470
5471         * windows-nat.c: Throughout, fix format strings and casts of
5472         printf-like functions to avoid type related warnings on all
5473         platforms.
5474         (handle_output_debug_string): Fetch context information address
5475         from debug string using string_to_core_addr.
5476
5477 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5478
5479         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5480         * regformats/reg-tilegx32.dat: New.
5481
5482 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5483
5484         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5485
5486 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5487
5488         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5489
5490 2013-02-27  Yao Qi  <yao@codesourcery.com>
5491             Pedro Alves  <palves@redhat.com>
5492
5493         * tracepoint.c (tfile_trace_find): For tfind
5494         pc/tp/range/outside, look for the next trace frame instead of
5495         always starting from frame 0.
5496
5497 2013-02-26  Anthony Green  <green@moxielogic.com>
5498
5499         * configure.tgt: Add support for moxie-*-rtems* target.
5500
5501 2013-02-25  Pedro Alves  <palves@redhat.com>
5502
5503         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5504         warning text.
5505
5506 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5507
5508         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5509         if $fp is used as the virtual frame pointer.
5510
5511 2013-02-23  Alan Modra  <amodra@gmail.com>
5512
5513         * elfread.c (elf_symtab_read): Do not use udata.p here to find
5514         symbol size.
5515         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5516         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5517         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5518         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5519
5520 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5521
5522         Code cleanup.
5523         * elfread.c (build_id_bfd_get): Make the return type const.
5524         (build_id_verify): Make the check parameter const.
5525         (build_id_to_debug_filename): Make the build_id parameter and variable
5526         data const.
5527         (find_separate_debug_file_by_buildid): Make the variable build_id const.
5528
5529 2013-02-21  Alan Modra  <amodra@gmail.com>
5530
5531         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5532
5533 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
5534
5535         Add a new method 'disassemble' to gdb.Architecture class.
5536         * python/py-arch.c (archpy_disassmble): Implementation of the
5537         new method gdb.Architecture.disassemble.
5538         (arch_object_methods): Add entry for the new method.
5539
5540 2013-02-20  Jiong Wang  <jiwang@tilera.com>
5541
5542         * MAINTAINERS (Write After Approval): Add myself to the list.
5543
5544 2013-02-19  Pedro Alves  <palves@redhat.com>
5545
5546         Garbage collect 'struct monitor_ops'::load_routine.
5547
5548         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5549         * monitor.c (monitor_load): No longer call
5550         current_monitor->load_routine.
5551         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5552         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5553         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5554
5555 2013-02-19  Pedro Alves  <palves@redhat.com>
5556
5557         PR gdb/15161
5558
5559         Harmonize with generic_load.
5560
5561         * monitor.c: Include "readline/readline.h".
5562         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
5563         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
5564         long/strtol for the 'load_offset' local.  Error out if no argument
5565         is given or if too many arguments are given.  Tilde expand the
5566         passed in file name.
5567
5568 2013-02-19  Kai Tietz  <ktietz@redhat.com>
5569
5570         PR gdb/15161
5571         * symfile.c (load_section_data): Change type of load_offset
5572         to CORE_ADDR.
5573         (generic_load): User strtoulst instead of strtoul for conversion
5574         of load_offset.
5575
5576 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5577
5578         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5579          for return address, "lr" register, saved on stack.
5580         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5581         after we invoke tilegx_analyze_prologue.
5582
5583 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5584
5585         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5586
5587 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5588
5589         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
5590
5591 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5592
5593         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
5594         (tilegx_write_pc): New function.
5595         (tilegx_cannot_reference_register): Return zero if REGNO
5596         is TILEGX_FAULTNUM_REGNUM.
5597         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5598         (tilegx_register_name): Add handling of "faultnum" register.
5599         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5600         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5601         handling of TILEGX_FAULTNUM_REGNUM.
5602         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5603
5604 2013-02-19  Jiong Wang  <jiwang@tilera.com>
5605
5606         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
5607         should be aligned to 64bit.
5608
5609 2013-02-19  Kai Tietz  <ktietz@redhat.com>
5610
5611         * windows-nat.c (windows_xfer_memory): Fix debug-output
5612         for LLP64.
5613
5614 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
5615
5616         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5617         Don't check DSP register number if HAVE_DSP is not set.
5618
5619 2013-02-19  Alan Modra  <amodra@gmail.com>
5620
5621         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
5622         throughout file instead.
5623         (build_id_bfd_get): Update to use new elf_tdata build_id field.
5624         Don't xmalloc return value.
5625         (build_id_verify): Similarly.  Don't xfree.
5626         (build_id_to_debug_filename): Update.
5627         (find_separate_debug_file_by_buildid): Update, don't xfree.
5628
5629 2013-02-18  Tom Tromey  <tromey@redhat.com>
5630
5631         PR gdb/15102:
5632         * dwarf2read.c (read_subrange_type): Use result of
5633         'check_typedef'.
5634
5635 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
5636
5637         * frame.c: Remove one extra white space after #include
5638         directive.
5639
5640 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5641
5642         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5643
5644 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5645
5646         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5647         and dir commands into an if block.
5648
5649 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
5650
5651         * python/py-breakpoint (struct pybp_code):  Use int instead of
5652         enum type_code.
5653
5654 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
5655             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5656
5657         * NEWS: Mention new field "trace-file".
5658         * tracepoint.c (trace_status_mi): Output "trace-file" field.
5659         (tfile_open): Record the trace file's filename in the trace
5660         status.
5661         (tfile_files_info): Mention the name of the trace file.
5662         Check the "filename" field explicitely.
5663         (trace_status_command): Explicitely check "filename" field.
5664         (trace_find_command): Ditto.
5665         (trace_find_pc_command): Ditto.
5666         (trace_find_tracepoint_command): Ditto.
5667         (trace_find_line_command): Ditto.
5668         (trace_find_range_command): Ditto.
5669         (trace_find_outside_command): Ditto.
5670         * tracepoint.h (struct trace_status) <from_file>: Rename it
5671         to "filename" and make it hold the trace file's filename
5672         instead of a boolean.
5673         * remote.c (remote_get_trace_status): Initialize "filename"
5674         field with NULL instead of 0.
5675
5676 2013-02-15  Yao Qi  <yao@codesourcery.com>
5677
5678         * remote.c: Fix a typo.
5679
5680 2013-02-14  Pierre Muller  <muller@sourceware.org>
5681
5682         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5683
5684 2013-02-14  Pedro Alves  <palves@redhat.com>
5685
5686         * utils.c (savestring): Don't #undef it.  Move function to
5687         common/common-utils.c.
5688         * common/common-utils.c: Include gdb_string.h.
5689         (savestring): Move here from utils.c.
5690         * common/common-utils.h (savestring): Declare.
5691
5692 2013-02-14  Pedro Alves  <palves@redhat.com>
5693
5694         * utils.c (savestring): Rename parameter 'size' to 'len'.
5695
5696 2013-02-14  Pedro Alves  <palves@redhat.com>
5697             Yufeng Zhang  <yufeng.zhang@arm.com>
5698
5699         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5700         (aarch64_inferior_data, struct aarch64_inferior_data):
5701         Delete.
5702         (struct aarch64_process_info): New.
5703         (aarch64_process_list): New global.
5704         (aarch64_find_process_pid, aarch64_add_process)
5705         (aarch64_process_info_get): New functions.
5706         (aarch64_inferior_data_get): Delete.
5707         (aarch64_process_info_get): New function.
5708         (aarch64_forget_process): New function.
5709         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
5710         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5711         aarch64_get_debug_reg_state.
5712         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5713         instead of linux_nat_iterate_watchpoint_lwps.
5714         (aarch64_linux_new_fork): New function.
5715         (aarch64_linux_child_post_startup_inferior): Use
5716         aarch64_forget_process instead of aarch64_init_debug_reg_state.
5717         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5718         (aarch64_linux_remove_hw_breakpoint)
5719         (aarch64_handle_aligned_watchpoint)
5720         (aarch64_handle_unaligned_watchpoint)
5721         (aarch64_linux_insert_watchpoint)
5722         (aarch64_linux_remove_watchpoint)
5723         (aarch64_linux_stopped_data_address): Adjust to pass the current
5724         process id to aarch64_debug_reg_state.
5725         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5726         linux_nat_new_fork hook, and aarch64_forget_process as
5727         linux_nat_forget_process hook; remove the call to
5728         register_inferior_data_with_cleanup.
5729
5730 2013-02-14  Pedro Alves  <palves@redhat.com>
5731
5732         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5733         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5734         lval_memory.
5735
5736 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
5737             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5738
5739         * tracepoint.h (validate_trace_state_variable_name): Declare.
5740         * tracepoint.c (validate_trace_state_variable_name): New.
5741         (trace_variable_command): Parse the trace state variable's name
5742         without using parse_expression.  Do several validations.
5743         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5744         trace state variable's name with parse_expression.  Validate it.
5745
5746 2013-02-14  Yao Qi  <yao@codesourcery.com>
5747
5748         * infcmd.c (breakpoint_proceeded): Remove it.
5749
5750 2013-02-14  Yao Qi  <yao@codesourcery.com>
5751
5752         * tracepoint.c (end_actions_pseudocommand): Make it static.
5753         (while_stepping_pseudocommand): Likewise.
5754         * tracepoint.h (end_actions_pseudocommand): Remove the
5755         declaration.
5756         (while_stepping_pseudocommand): Likewise.
5757
5758 2013-02-14  Yao Qi  <yao@codesourcery.com>
5759
5760         * cli/cli-decode.c (help_cmd): Remove the declaration of
5761         "cmdlist".
5762         (help_all): Likewise.
5763
5764 2013-02-13  Pedro Alves  <palves@redhat.com>
5765
5766         * amd64-linux-nat.c (update_debug_registers_callback):
5767         Update comment.
5768         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5769         iterate_over_lwps.
5770         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5771         i386_debug_reg_state.
5772         (amd64_linux_new_fork): New function.
5773         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5774         linux_nat_new_fork hook, and i386_forget_process as
5775         linux_nat_forget_process hook.
5776         * i386-linux-nat.c (update_debug_registers_callback):
5777         Update comment.
5778         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5779         iterate_over_lwps.
5780         (i386_linux_prepare_to_resume): Pass the lwp's pid to
5781         i386_debug_reg_state.
5782         (i386_linux_new_fork): New function.
5783         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5784         linux_nat_new_fork hook, and i386_forget_process as
5785         linux_nat_forget_process hook.
5786         * i386-nat.c (i386_init_dregs): Delete.
5787         (i386_inferior_data, struct i386_inferior_data):
5788         Delete.
5789         (struct i386_process_info): New.
5790         (i386_process_list): New global.
5791         (i386_find_process_pid, i386_add_process, i386_process_info_get):
5792         New functions.
5793         (i386_inferior_data_get): Delete.
5794         (i386_process_info_get): New function.
5795         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
5796         (i386_forget_process): New function.
5797         (i386_cleanup_dregs): Rewrite.
5798         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5799         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5800         (i386_stopped_data_address, i386_insert_hw_breakpoint)
5801         (i386_remove_hw_breakpoint): Adjust to pass the current process id
5802         to i386_debug_reg_state.
5803         (i386_use_watchpoints): Don't register inferior data.
5804         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5805         adjust comment.
5806         (i386_forget_process): Declare.
5807         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5808         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5809         New static globals.
5810         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5811         (add_initial_lwp): New, factored out from ...
5812         (add_lwp): ... this.  Don't check the number of lwps before
5813         calling linux_nat_new_thread.
5814         (linux_nat_iterate_watchpoint_lwps): Delete.
5815         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5816         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5817         forks and vforks.
5818         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5819         initial lwp.
5820         (linux_nat_kill, linux_nat_mourn_inferior): Call
5821         linux_nat_forget_process.
5822         (linux_nat_set_new_fork, linux_nat_set_forget_process)
5823         (linux_nat_forget_process): New functions.
5824         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5825         type.
5826         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5827         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5828         types.
5829         (linux_nat_set_new_fork, linux_nat_set_forget_process)
5830         (linux_nat_forget_process): New declarations.
5831
5832         * amd64fbsd-nat.c (super_mourn_inferior): New global.
5833         (amd64fbsd_mourn_inferior): New function.
5834         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5835         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5836
5837 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5838
5839         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5840         Adding _().
5841
5842 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5843
5844         * aarch64-linux-nat.c (debug_reg_change_callback)
5845         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5846         %s and phex().
5847
5848 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5849
5850         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5851         with LONGEST.
5852
5853 2013-02-13  Pedro Alves  <palves@redhat.com>
5854             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5855
5856         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5857
5858 2013-02-12  Tom Tromey  <tromey@redhat.com>
5859
5860         PR symtab/11464:
5861         * c-exp.y (lex_one_token): Initialize other fields of yylval on
5862         NAME return.
5863         (classify_inner_name): Remove 'first_name' argument, add
5864         'context'.  Remove unused variable.
5865         (yylex): Explicitly maintain the context type.  Exit loop earlier
5866         if NAME result is seen.
5867
5868 2013-02-12  Pedro Alves  <palves@redhat.com>
5869
5870         * amd64-darwin-tdep.c: Add (C) after Copyright.
5871         * cli/cli-cmds.h: Ditto.
5872         * cli/cli-decode.c: Ditto.
5873         * cli/cli-decode.h: Ditto.
5874         * cli/cli-dump.c: Ditto.
5875         * cli/cli-dump.h: Ditto.
5876         * cli/cli-interp.c: Ditto.
5877         * cli/cli-logging.c: Ditto.
5878         * cli/cli-script.c: Ditto.
5879         * cli/cli-script.h: Ditto.
5880         * cli/cli-setshow.c: Ditto.
5881         * cli/cli-setshow.h: Ditto.
5882         * cli/cli-utils.c: Ditto.
5883         * cli/cli-utils.h: Ditto.
5884         * config/alpha/nm-osf3.h: Ditto.
5885         * config/djgpp/djconfig.sh: Ditto.
5886         * config/i386/nm-fbsd.h: Ditto.
5887         * config/i386/nm-i386gnu.h: Ditto.
5888         * config/nm-linux.h: Ditto.
5889         * config/nm-nto.h: Ditto.
5890         * config/rs6000/nm-rs6000.h: Ditto.
5891         * config/sparc/nm-sol2.h: Ditto.
5892         * darwin-nat-info.c: Ditto.
5893         * dfp.c: Ditto.
5894         * dfp.h: Ditto.
5895         * gdb-demangle.h: Ditto.
5896         * i386-darwin-nat.c: Ditto.
5897         * i386-darwin-tdep.c: Ditto.
5898         * linux-fork.h: Ditto.
5899         * m32c-tdep.c: Ditto.
5900         * microblaze-linux-tdep.c: Ditto.
5901         * microblaze-rom.c: Ditto.
5902         * microblaze-tdep.c: Ditto.
5903         * microblaze-tdep.h: Ditto.
5904         * mips-linux-tdep.h: Ditto.
5905         * ppc-ravenscar-thread.c: Ditto.
5906         * ppc-ravenscar-thread.h: Ditto.
5907         * prologue-value.c: Ditto.
5908         * prologue-value.h: Ditto.
5909         * ravenscar-thread.c: Ditto.
5910         * ravenscar-thread.h: Ditto.
5911         * sparc-ravenscar-thread.c: Ditto.
5912         * sparc-ravenscar-thread.h: Ditto.
5913         * tilegx-linux-tdep.c: Ditto.
5914         * unwind_stop_reasons.def: Ditto.
5915         * windows-nat.h: Ditto.
5916         * xtensa-linux-tdep.c: Ditto.
5917         * xtensa-xtregs.c: Ditto.
5918         * regformats/regdat.sh: Ditto.
5919         * regformats/regdef.h: Ditto.
5920
5921 2013-02-12  Pedro Alves  <palves@redhat.com>
5922
5923         * break-catch-sig.c: Update copyright years.
5924
5925 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
5926
5927         Add support for a destructor for ui_out data and use it to
5928         provide a ui_out destructor.
5929         * ui-out.h: Declare the new ui_out destructor.
5930         (ui_out_impl): Add a field for data destructor in ui_out_impl.
5931         * ui-out.c (default_data_destroy): Add a default data destructor
5932         which does nothing.
5933         (default_ui_out_impl): Set the new data_destroy field to
5934         default_data_destroy
5935         (uo_data_destroy): Local function which invokes the data
5936         destructor if present.
5937         (clear_table): Local function which clears the table data of a
5938         ui_out object.
5939         (ui_out_destroy): Public function which frees a ui_out object.
5940         (ui_out_table_end): Use the new clear_table function.
5941         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5942         NULL.
5943         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5944         to NULL.
5945
5946 2013-02-11  Doug Evans  <dje@google.com>
5947
5948         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5949         (printf_decfloat): New function.  Broken out from ui_printf.
5950         Remove unnecessary code to shift the entire format string down.
5951         (printf_pointer): New function.
5952         (ui_printf): Code to print C strings, wide C strings, decfloats,
5953         and pointers moved to separate functions.
5954
5955 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5956
5957         * valops.c (value_assign): Handling bitfield offset in
5958         `lval_internalvar_component' case.
5959
5960 2013-02-08  Doug Evans  <dje@google.com>
5961
5962         * common/format.c (parse_format_string): Fix whitespace.
5963
5964 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5965
5966         * stack.c (return_command): Work around uninitialized variable
5967         warning.
5968
5969 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
5970
5971         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5972         number of the registers from 36 to 34.
5973
5974 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5975
5976         * NEWS: Mention new AArch64 native and target support.
5977
5978 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5979
5980         * MAINTAINERS (Write After Approval): Add myself.
5981
5982 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
5983             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5984             Nigel Stephens  <nigel.stephens@arm.com>
5985             Yufeng Zhang  <yufeng.zhang@arm.com>
5986
5987         * aarch64-linux-nat.c: New file.
5988         * config/aarch64/linux.mh: New file.
5989         * configure.host: Add AArch64.
5990         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5991
5992 2013-02-07  Doug Evans  <dje@google.com>
5993
5994         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5995         disassemble command.
5996
5997 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5998
5999         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
6000         set_gdbarch_fetch_tls_load_module_address.
6001
6002 2013-02-06  David S. Miller  <davem@davemloft.net>
6003
6004         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
6005         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6006         * value.c (struct_return_convention): New function.
6007         (using_struct_return): Implement in terms of struct_return_convention.
6008         * value.h (struct_return_convention): Declare.
6009         * stack.c (return_command): Allow successful overriding of the return
6010         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6011
6012 2013-02-06  Tom Tromey  <tromey@redhat.com>
6013
6014         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
6015         outside of TRY_CATCH.
6016
6017 2013-02-06  Yao Qi  <yao@codesourcery.com>
6018
6019         * mi/mi-interp.c: Include "tracepoint.h".
6020         (mi_tsv_modified): Declare.
6021         (mi_tsv_created, mi_tsv_deleted): Update declaration.
6022         (mi_interpreter_init): Call observer_attach_tsv_modified.
6023         (mi_tsv_modified): New.
6024         (mi_tsv_created, mi_tsv_deleted): Update.
6025         * tracepoint.c (trace_variable_command): Call
6026         observer_notify_tsv_modified if the initial value of tsv is
6027         changed.
6028         (delete_trace_state_variable): Call
6029         observer_notify_tsv_deleted earlier.
6030         (trace_variable_command): Caller update.
6031         (create_tsv_from_upload): Likewise.
6032         * observer.sh: Declare "struct trace_state_variable".
6033
6034         * NEWS: Mention the new MI notification "=tsv-modified".
6035
6036 2013-02-05  Doug Evans  <dje@google.com>
6037
6038         * completer.c (location_completer): Fix typo in comment.
6039
6040 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6041
6042         * breakpoint.c (add_location_to_breakpoint): Insert the location with
6043         ADDRESS sorted.
6044
6045 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6046
6047         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6048         Refactor if statement to avoid trailing || operator.
6049
6050 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
6051
6052         * NEWS: Add PowerPC FreeBSD as a new native configuration.
6053
6054 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
6055
6056         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6057         * configure.host: Add powerpc*-*-freebsd* target.
6058         * configure.tgt: Add target info for powerpc*-*-freebsd*.
6059         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6060         * config/powerpc/fbsd.mh: New file.
6061
6062 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6063             Denys Vlasenko  <dvlasenk@redhat.com>
6064             Pedro Alves  <palves@redhat.com>
6065
6066         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6067         (struct elf_internal_linux_prpsinfo): Forward declare.
6068         * gdbarch.h, gdbarch.c: Regenerate.
6069         * linux-tdep.c: Include `cli/cli-utils.h'.
6070         (linux_fill_prpsinfo): New function.
6071         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
6072         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6073         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6074         depending on gdbarch pointer bitness.
6075         * ppc-linux-tdep.c: Include elf-bfd.h.
6076         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6077         on 32-bit.
6078
6079 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6080             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6081             Nigel Stephens  <nigel.stephens@arm.com>
6082             Yufeng Zhang  <yufeng.zhang@arm.com>
6083
6084         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6085
6086 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6087             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6088             Nigel Stephens  <nigel.stephens@arm.com>
6089             Yufeng Zhang  <yufeng.zhang@arm.com>
6090
6091         * aarch64-newlib-tdep.c: New file.
6092         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6093         aarch64*-*-elf.
6094         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6095         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6096         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6097         * osabi.c (gdb_osabi_names): Add "Newlib".
6098
6099 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6100             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6101             Nigel Stephens  <nigel.stephens@arm.com>
6102             Yufeng Zhang  <yufeng.zhang@arm.com>
6103
6104         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6105         (ALLDEPFILES): Add aarch64-linux-tdep.c.
6106         * aarch64-linux-tdep.c: New file.
6107         * aarch64-linux-tdep.h: New file.
6108         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6109         * configure.tgt: Add aarch64-none-linux-gnu.
6110
6111 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6112             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6113             Nigel Stephens  <nigel.stephens@arm.com>
6114             Yufeng Zhang  <yufeng.zhang@arm.com>
6115
6116         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6117         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6118         (ALLDEPFILES): Add aarch64-tdep.c.
6119         * aarch64-tdep.c: New file.
6120         * aarch64-tdep.h: New file.
6121         * configure.tgt: Add AArch64.
6122         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6123         (aarch64-expedite): New definition.
6124         * features/aarch64-core.xml: New file.
6125         * features/aarch64-fpu.xml: New file.
6126         * features/aarch64-without-fpu.c: New file (generated).
6127         * features/aarch64-without-fpu.xml: New file.
6128         * features/aarch64.c: New file (generated).
6129         * features/aarch64.xml: New file.
6130         * regformats/aarch64-without-fpu.dat: New file (generated).
6131         * regformats/aarch64.dat: New file (generated).
6132
6133 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6134
6135         * contrib/expect-read1.c: New file.
6136         * contrib/expect-read1.sh: New file.
6137
6138 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6139
6140         * dwarf2read.c (file_file_name): New function with code from
6141         file_full_name.
6142         (file_full_name): Move most of the code to file_file_name.
6143         (macro_start_file): Rename variable full_name to file_name and use
6144         file_file_name for it.  Add comp_dir parameter to new_macro_table.
6145         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
6146         macro_source_file->filename access by macro_source_fullname call.
6147         * macroscope.c (_initialize_macroscope): Update the new_macro_table
6148         caller.
6149         * macrotab.c (struct macro_table): New field comp_dir.
6150         (macro_include): New variables link_fullname and source_fullname.
6151         Replace any macro_source_file->filename access by macro_source_fullname
6152         call.
6153         (macro_lookup_inclusion): Remove the partial filenames checking code.
6154         (check_for_redefinition): New variables source_fullname and
6155         found_key_fullname.  Replace any macro_source_file->filename access by
6156         macro_source_fullname call.
6157         (macro_undef): New variables source_fullname and key_fullname.  Replace
6158         any macro_source_file->filename access by macro_source_fullname call.
6159         (macro_lookup_definition): New variables retval and source_fullname.
6160         Replace any macro_source_file->filename access by macro_source_fullname
6161         call.
6162         (foreach_macro): New variable key_fullname.  Replace any
6163         macro_source_file->filename access by macro_source_fullname call.
6164         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
6165         macro_source_file->filename access by macro_source_fullname call.
6166         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
6167         (macro_source_fullname): New function.
6168         * macrotab.h (struct macro_source_file): Extent the filename field
6169         comment.
6170         (new_macro_table): New parameter comp_dir, add a comment for it.
6171         (macro_source_fullname): new declaration.
6172
6173 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6174
6175         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6176         this_real_name to outer block.  Use it also for
6177         compare_filenames_for_search.
6178         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
6179         with dw2_get_real_path for file_matcher, considering also
6180         BASENAMES_MAY_DIFFER.
6181         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6182
6183 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6184
6185         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6186         to the file_matcher parameter.  Pass 0 to it.
6187         (dwarf2_create_include_psymtab): Copy also DIRNAME.
6188         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6189         NULL psymtab_to_fullname result.
6190         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
6191         an expected filename instead.
6192         (expand_symtabs_matching_via_partial): Add basenames parameter to the
6193         file_matcher parameter.  Call also psymtab_to_fullname, after newly
6194         considering BASENAMES_MAY_DIFFER.
6195         * source.c (rewrite_source_path): Remove static.
6196         * source.h (rewrite_source_path): New declaration.
6197         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6198         the expand_symtabs_matching field.  Comment it.
6199         * symtab.c (file_matches): New function comment.  Add parameter
6200         basenames, implement it.
6201         (search_symbols_file_matches): Add basenames parameter.  Update the
6202         file_matches caller.
6203         (search_symbols): Match FILES also against symtab_to_fullname.
6204         Optimize it for BASENAMES_MAY_DIFFER.
6205
6206 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6207
6208         * source.c (print_source_lines_base): Print for TUI also "fullname".
6209         * tui/tui-data.c (init_content_element): Change tui_locator_element
6210         field to full_name.
6211         * tui/tui-data.h (struct tui_locator_element): Likewise.
6212         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6213         tui_update_locator_filename calls to tui_update_locator_fullname.
6214         Replace symtab->filename refererence by symtab_to_fullname call.
6215         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6216         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6217         field to full_name.  Replace symtab->filename refererence by
6218         symtab_to_fullname call.
6219         (tui_show_symtab_source): Rename parameter to fullname.  Change
6220         tui_locator_element field to full_name.
6221         * tui/tui-stack.c: Include source.h.
6222         (tui_set_locator_filename): Rename the declaration to ...
6223         (tui_set_locator_fullname): ... here.  Rename its parameter to
6224         fullname, updates its comment.
6225         (tui_set_locator_info): Rename its parameter to fullname.
6226         (tui_set_locator_filename): Rename the definition to ...
6227         (tui_set_locator_fullname): ... here.  Rename its parameter to
6228         fullname, updates its comment.  Change tui_locator_element field to
6229         full_name.
6230         (tui_set_locator_info): Rename its parameter to fullname.
6231         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6232         (tui_update_locator_filename): Rename to ...
6233         (tui_update_locator_fullname): ... here. Rename callee to
6234         tui_set_locator_fullname.
6235         (tui_show_frame_info): Replace symtab->filename refererence by
6236         symtab_to_fullname call.
6237         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6238         (tui_update_locator_fullname): ... here.
6239         * tui/tui-winsource.c (tui_display_main): Rename the callee to
6240         tui_update_locator_fullname.  Replace symtab->filename refererence by
6241         symtab_to_fullname call.
6242         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6243         Rename the callee to tui_update_locator_fullname.
6244         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6245
6246 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6247
6248         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6249         by symtab_to_filename_for_display calls.
6250         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6251         (clear_command): New variable sal_fullname, initialize it.  Replace
6252         compare_filenames_for_search by filename_cmp with sal_fullname.
6253         (say_where, update_static_tracepoint): Replace symtab->filename
6254         refererences by symtab_to_filename_for_display calls.
6255         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6256         Likewise.
6257         * dwarf2read.c: Include source.h.
6258         (fixup_go_packaging): Replace symtab->filename refererences by
6259         symtab_to_filename_for_display calls.
6260         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6261         Replace symtab->filename refererences by symtab_to_filename_for_display
6262         calls.
6263         (create_sals_line_offset, convert_linespec_to_sals): New variable
6264         fullname, initialize it, replace symtab->filename reference by the
6265         variable.
6266         * linux-fork.c: Include source.h.
6267         (info_checkpoints_command): Replace symtab->filename refererences by
6268         symtab_to_filename_for_display calls.
6269         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
6270         by symtab_to_filename_for_display calls.
6271         * mdebugread.c: Include source.h.
6272         (psymtab_to_symtab_1): Replace symtab->filename refererences by
6273         symtab_to_filename_for_display calls.
6274         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
6275         (mi_cmd_file_list_exec_source_files): Likewise.
6276         * printcmd.c: Include source.h.
6277         (build_address_symbolic): Replace symtab->filename refererences by
6278         symtab_to_filename_for_display calls.
6279         * psymtab.c (partial_map_symtabs_matching_filename)
6280         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
6281         with psymtab_to_fullname.
6282         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
6283         by symtab_to_filename_for_display calls.
6284         (stpy_get_filename): New variable filename, initialize it, use instead
6285         of symtab->filename refererences.
6286         (salpy_str): Make variable filename const char *.  Replace
6287         symtab->filename refererences by symtab_to_filename_for_display calls.
6288         * skip.c: Include source.h and filenames.h.
6289         (skip_file_command): Remove const from the symtab variable.  Replace
6290         symtab->filename refererences by symtab_to_fullname call.
6291         (function_name_is_marked_for_skip): New variables searched_for_fullname
6292         and fullname.  Use them to search also with symtab's fullname.
6293         * source.c (find_source_lines): Replace symtab->filename refererences
6294         by symtab_to_filename_for_display calls.
6295         (print_source_lines_base): New variable filename, use it instead of
6296         symtab->filename.  Replace symtab->filename refererences by
6297         symtab_to_filename_for_display calls.
6298         (line_info, forward_search_command): Replace symtab->filename
6299         refererences by symtab_to_filename_for_display calls.
6300         (reverse_search_command): Replace symtab->filename refererences by
6301         symtab_to_filename_for_display calls.  New variable filename for it.
6302         * stack.c (frame_info): Likewise.
6303         * symmisc.c: Include source.h.
6304         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6305         (maintenance_info_symtabs): Replace symtab->filename refererences by
6306         symtab_to_filename_for_display calls.
6307         * symtab.c (iterate_over_some_symtabs): Call
6308         compare_filenames_for_search also with symtab_to_fullname.
6309         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6310         symtab->filename refererences by symtab_to_filename_for_display calls.
6311         (find_line_symtab): Replace symtab->filename refererences by
6312         symtab_to_filename_for_display calls.
6313         (file_matches): Replace filename_cmp by compare_filenames_for_search.
6314         (print_symbol_info): Make the last parameter const char *.  New
6315         variable s_filename.  Use it in the function.
6316         (symtab_symbol_info): Make the last_filename variable const char *.
6317         Replace symtab->filename refererences by symtab_to_filename_for_display
6318         calls.
6319         (rbreak_command): New variable fullname.  Use it.  Replace
6320         symtab->filename refererence by symtab_to_filename_for_display call.
6321         * tracepoint.c (set_traceframe_context, trace_find_line_command)
6322         (print_one_static_tracepoint_marker): Replace symtab->filename
6323         refererences by symtab_to_filename_for_display calls.
6324         * tui/tui-source.c (tui_set_source_content): New variables filename and
6325         s_filename.  Replace symtab->filename refererences by this variable.
6326         Replace other symtab->filename refererences by
6327         symtab_to_filename_for_display calls.
6328
6329 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6330             Jan Kratochvil  <jan.kratochvil@redhat.com>
6331
6332         Add a new variable that controls a way in which filenames are
6333         displayed.
6334         * NEWS (set filename-display): New entry.
6335         * source.c (filename_display_basename, filename_display_relative)
6336         (filename_display_absolute, filename_display_kind_names)
6337         (filename_display_string, show_filename_display_string)
6338         (symtab_to_filename_for_display): New.
6339         (_initialize_source): Added initialization of 'filename-display'
6340         variable.
6341         * source.h (symtab_to_filename_for_display): Added declaration.
6342         * stack.c (print_frame): Added new variable and calling of a new
6343         function and condition with this variable. Changed third argument of
6344         calling of a function.
6345
6346 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6347
6348         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6349         Rename field reference filename to fullname.
6350         * tui/tui-data.h (struct tui_source_info): Rename field filename to
6351         fullname.  New comment for it.
6352         * tui/tui-source.c (tui_set_source_content): Rename field reference
6353         filename to fullname.  Initialize field by symtab_to_fullname now.
6354         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6355         reference filename to fullname.  Use symtab_to_fullname during
6356         comparison.
6357
6358 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6359
6360         Code cleanup.
6361         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6362         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
6363         filename to fullname.  Rename variable this_name to this_fullname.
6364         Lowercase FILENAME_CMP call.
6365         (dw2_find_symbol_file): New comment for the returned string.
6366         (dwarf2_gdb_index_functions): Rename the function to
6367         dw2_expand_symtabs_with_fullname.
6368         * psymtab.c (read_psymtabs_with_filename): Rename to ...
6369         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
6370         fullname.
6371         (psym_functions): Rename the function to read_psymtabs_with_fullname.
6372         * symfile.h (struct quick_symbol_functions): Rename field
6373         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6374         parameter filename to fullname.  Document returned string meaning for
6375         find_symbol_file.
6376         * symtab.c (find_line_symtab): Rename the called function to
6377         expand_symtabs_with_fullname.
6378
6379 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6380
6381         Code cleanup.
6382         * breakpoint.c (clear_command): Remove variable is_abs, unify the
6383         call of filename_cmp with compare_filenames_for_search.
6384         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6385         is_abs, unify the call of FILENAME_CMP with
6386         compare_filenames_for_search.  New gdb_asserts for real_path and name.
6387         Unify the call of compare_filenames_for_search with FILENAME_CMP.
6388         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6389         * symfile.h (struct quick_symbol_functions): Extend the comment for
6390         map_symtabs_matching_filename.
6391         * symtab.c (compare_filenames_for_search): Remove the function comment
6392         relative path requirement.  Handle absolute filenames, with a comment.
6393         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6394         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
6395         real_path and name.  Unify the call of compare_filenames_for_search
6396         with FILENAME_CMP.
6397         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6398
6399 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6400
6401         Code cleanup.
6402         * breakpoint.c (print_breakpoint_location): Replace bp_location field
6403         source_file references by symtab field references.  Remove variables
6404         sal and fullname.
6405         (momentary_breakpoint_from_master, add_location_to_breakpoint):
6406         (clear_command, say_where): Replace bp_location field source_file
6407         references by symtab field references.
6408         (bp_location_dtor): Remove the source_file reference.
6409         (update_static_tracepoint): Replace bp_location field source_file
6410         references by symtab field references.
6411         (breakpoint_free_objfile): New function.
6412         * breakpoint.h (struct bp_location): Extend the comment for line_number.
6413         Replace the field source_file by field symtab, extend its comment.
6414         (breakpoint_free_objfile): New declaration.
6415         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6416         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6417         field source_file references by symtab field references.
6418
6419 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6420
6421         Replace xfullpath calls by gdb_realpath calls.
6422         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6423         function comment.
6424         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6425         Remove it from the iterate_over_some_symtabs call.
6426         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6427         Remove it from the dw2_map_expand_apply calls, remove a block handling
6428         it.
6429         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6430         Remove it from the iterate_over_some_symtabs call.
6431         (partial_map_symtabs_matching_filename): Remove parameter full_path.
6432         Remove it from the partial_map_expand_apply calls, remove a block
6433         handling it.  Drop gdb_realpath call and cleanups from the real_path
6434         handling.
6435         * source.c (openp): Drop the comment part about xfullpath.  Replace
6436         xfullpath calls by gdb_realpath calls.
6437         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6438         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6439         from method map_symtabs_matching_filename and its comment.
6440         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6441         gdb_realpath call.
6442         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6443         remove it also from the function comment, remove a block handling it.
6444         Drop gdb_realpath call and cleanups from the real_path handling.
6445         (iterate_over_symtabs): Drop variable full_path and its use.
6446         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6447         * utils.c (xfullpath): Remove.
6448         * utils.h (xfullpath): Remove.
6449
6450 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
6451
6452         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6453         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6454         (ALLDEPFILES): Add ppc64-tdep.c.
6455         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6456         ppc64-tdep.o to gdb_target_obs.
6457         * ppc64-tdep.h: New file.
6458         * ppc64-tdep.c: New file.
6459         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6460         ppc-linux-tdep.c to here.
6461         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6462         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6463         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6464         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6465         from ppc-linux-tdep.c to here.
6466         (ppc64_convert_from_func_ptr_addr): Rename from
6467         ppc64_linux_convert_from_func_ptr_addr to
6468         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6469         here.
6470         * rs6000-tdep.c:
6471         (read_insn): Move from ppc-linux-tdep.c to here.
6472         (insns_match_pattern, insn_d_field, insn_ds_field): Move
6473         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6474         * ppc-linux-tdep.c: Include ppc64-tdep.h.
6475         Removed above functions.
6476         (ppc_linux_init_abi): Adjust.
6477
6478 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6479
6480         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6481
6482 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6483
6484         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6485
6486 2013-02-01  Pedro Alves  <palves@redhat.com>
6487
6488         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6489         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6490
6491 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6492
6493         * elfread.c (elf_symfile_read): Limit separate debug info additions to
6494         files with no separate debug info.
6495         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6496         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6497         only for files with no separate debug info.
6498
6499 2013-01-31  Tom Tromey  <tromey@redhat.com>
6500
6501         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6502         change type.
6503         (struct jit_program_space_data): Rename from jit_inferior_data.
6504         Update comments.
6505         (get_jit_program_space_data): Rename from get_jit_inferior_data.
6506         Change return type.  Attach data to program space.
6507         (jit_program_space_data_cleanup): Rename from
6508         jit_inferior_data_cleanup; change argument type.
6509         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6510         change type.
6511         (jit_register_code): Update.
6512         (jit_update_inferior_cache): Remove.
6513         (jit_breakpoint_deleted): Get jit data from the location's program
6514         space.
6515         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6516         'ps_data', change type.
6517         (jit_inferior_init, jit_breakpoint_re_set_internal)
6518         (jit_event_handler): Update.
6519         (free_objfile_data): Get data from objfile's program space.
6520         (_initialize_jit): Update.
6521
6522 2013-01-31  Tom Tromey  <tromey@redhat.com>
6523
6524         PR gdb/13987:
6525         * jit.c (struct jit_inferior_data) <cached_code_address,
6526         jit_breakpoint>: New fields.
6527         (jit_breakpoint_re_set_internal): Fix logging.  Only create
6528         breakpoint if cached address has changed.
6529         (jit_update_inferior_cache, jit_breakpoint_deleted): New
6530         functions.
6531         (_initialize_jit): Register breakpoint deleted observer.
6532
6533 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6534
6535         * infrun.c (handle_syscall_event): Remove unused gdbarch.
6536         (save_infcall_suspend_state): Ifdef out unused inf.
6537         (restore_infcall_suspend_state): Ifdef out unused inf.
6538         * jit.c (jit_register_code): Remove unused i, b, inf_data.
6539         (jit_frame_sniffer): Remove unused inf_data.
6540
6541 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6542
6543         * c-exp.y (classify_inner_name): Remove unused type.
6544         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6545         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6546         need_escape.
6547         (c_get_string): Remove unused kind.
6548         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6549
6550 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6551
6552         * charset.c (intermediate_encoding): Remove unused i.
6553         * completer.c (signal_completer): Remove unused i.
6554         * continuations.c (discard_my_continuations_1): Remove unused
6555         continuation_ptr.
6556         * corelow.c (core_close): Remove unuseD name.
6557         (get_core_siginfo): Remove unused pid.
6558         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6559         i, cps.
6560         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6561         (loclist_describe_location): Remove unused first.
6562         * event-top.c (command_line_handler): Remove unused got_eof.
6563         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6564         (resize_section_table): Remove unused old_value.
6565         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6566         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6567         * i386-tdep.c (i386_process_record): Remove unused rex.
6568         * infcmd.c (get_return_value): Remove unused uiout.
6569         * jv-lang.c (type_from_class): Remove unused is_array.
6570         * jv-valprint.c (java_val_print): Remove unused i.
6571         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6572         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6573         * m2-typeprint.c (m2_print_type): Remove unused code.
6574         * macroexp.c (get_character_constant): Remove unused body_start.
6575         (macro_stringify): Remove unused result.
6576         * objc-lang.c (find_methods): Remove unused gdbarch.
6577         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6578         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6579         * stack.c (print_frame_args): Remove unused summary.
6580         * thread.c (thread_apply_command): Remove unused p.
6581         * valarith.c (value_x_unop): Remove unused mangle_ptr.
6582         * valops.c (search_struct_method): Remove unused skip.
6583         * valprint.c (generic_val_print): Remove unused byte_order.
6584         * varobj.c (varobj_update): Remove unused changed.
6585         * cli/cli-cmds.c (complete_command): Remove unused next_item.
6586         (alias_command): Remove unused c.
6587         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6588         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6589         format.
6590         (mi_cmd_data_write_memory): Remove unused word_format.
6591         (mi_cmd_data_write_memory_bytes): Remove unused r.
6592         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6593         p_start, p_end.
6594         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6595         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6596         line_width.
6597
6598 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6599
6600         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6601         * symtab.c (iterate_over_symtabs): Remove unused s.
6602         (find_pc_sect_symtab): Remove unused pspAce.
6603         (find_pc_sect_line): Remove unused alt_symtab.
6604         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6605         (completion_list_add_name): Remove unused newsize.
6606
6607 2013-01-31  Tom Tromey  <tromey@redhat.com>
6608
6609         PR c++/14998:
6610         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6611         TYPE_CODE_FUNC.
6612
6613 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6614
6615         * target.c (target_read_string): Remove unused origlen.
6616
6617 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6618
6619         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6620         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6621         * ax-general.c (ax_print): Remove unused is_float.
6622         * blockframe.c (block_innermost_frame): Remove unused start, end.
6623         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6624
6625 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6626
6627         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6628         (svr4_read_so_list): Remove unused lmo.
6629         * solib-target.c (solib_target_relocate_section_addresses): Remove
6630         unused flags.
6631
6632 2013-01-30  Tom Tromey  <tromey@redhat.com>
6633
6634         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6635
6636 2013-01-30  Tom Tromey  <tromey@redhat.com>
6637
6638         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6639         * utils.c (gnu_debuglink_crc32): Remove.
6640         * utils.h (gnu_debuglink_crc32): Don't declare.
6641
6642 2013-01-30  Tom Tromey  <tromey@redhat.com>
6643
6644         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6645         (read_structure_type, read_enumeration_type): Remove cast.
6646
6647 2013-01-30  Tom Tromey  <tromey@redhat.com>
6648
6649         * dwarf2read.c (read_namespace_type): Remove cast.
6650         (read_typedef): Likewise.
6651
6652 2013-01-29  Tom Tromey  <tromey@redhat.com>
6653
6654         * dwarf2read.c (free_dwo_file): Remove assert.
6655
6656 2013-01-29  Tom Tromey  <tromey@redhat.com>
6657
6658         * value.c (deprecated_set_value_modifiable): Remove.
6659         * value.h (deprecated_set_value_modifiable): Remove.
6660
6661 2013-01-28  Doug Evans  <dje@google.com>
6662
6663         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6664         to addresses from dwo files.
6665
6666 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
6667
6668         * valops.c (find_overload_match): Remove unused argument 'lax'.
6669         * value.h: Remove unused argument 'lax' from the declaration of
6670         find_overload_match.
6671         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6672         to find_overload_match.
6673         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6674         argument to find_overload_match.
6675
6676 2013-01-25  Tom Tromey  <tromey@redhat.com>
6677
6678         * dwarf2read.c (processing_has_namespace_info): Remove.
6679         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6680         (process_die, read_func_scope, dwarf2_start_symtab)
6681         (new_symbol_full): Update.
6682
6683 2013-01-25  Tom Tromey  <tromey@redhat.com>
6684
6685         * cp-namespace.c (cp_set_block_scope): Remove.
6686         * cp-support.h (cp_set_block_scope): Remove.
6687         * dbxread.c: Include block.h.
6688         (cp_set_block_scope): New function.
6689         (process_one_symbol): Update.
6690         * dwarf2read.c (read_func_scope): Use block_set_scope.
6691
6692 2013-01-25  Pedro Alves  <palves@redhat.com>
6693
6694         * remote.c (add_current_inferior_and_thread): Tweak comment.
6695
6696 2013-01-25  Tom Tromey  <tromey@redhat.com>
6697
6698         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6699         (cp_add_using_directive): Add 'copy_names' argument.
6700         * cp-support.h (cp_add_using_directive): Update.
6701         (struct using_direct) <import_src, import_dest, alias,
6702         declaration>: Now const.
6703         * dwarf2read.c (read_import_statement): Use obconcat.
6704         Don't copy names passed to cp_add_using_directive.
6705
6706 2013-01-25  Tom Tromey  <tromey@redhat.com>
6707
6708         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6709
6710 2013-01-25  Pedro Alves  <palves@redhat.com>
6711
6712         * remote.c (stop_reply_extract_thread): New.
6713         (add_current_inferior_and_thread): New parameter 'wait_status'.
6714         Handle it.
6715         (remote_start_remote): Pass wait status to
6716         add_current_inferior_and_thread.
6717         (extended_remote_run): Update comment.
6718         (extended_remote_create_inferior_1): Pass wait status to
6719         add_current_inferior_and_thread.
6720
6721 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
6722             Ulrich Weigand  <uweigand@de.ibm.com>
6723
6724         * valarith.c (value_vector_widen): New function for replicating a
6725         scalar into a vector.
6726         (value_binop): Use value_vector_widen to widen scalar to vector
6727         rather than casting, this better matches gcc C behaviour.
6728         * valops.c (value_casst): Update logic for casting between vector
6729         types, and for casting from scalar to vector, try to match gcc C
6730         behaviour.
6731         * value.h (value_vector_widen): Declare.
6732         * opencl-lang.c (opencl_value_cast): New opencl specific casting
6733         function, handle special case for casting scalar to vector.
6734         (opencl_relop): Use opencl_value_cast.
6735         (evaluate_subexp_opencl): Use opencl_value_cast instead of
6736         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6737         in order to use opencl_value_cast.
6738
6739 2013-01-25  Yao Qi  <yao@codesourcery.com>
6740
6741         * event-loop.c: Include "queue.h".
6742         (gdb_event_p): New typedef.
6743         (DECLARE_QUEUE_P): Use.
6744         (DEFINE_QUEUE_P): Use.
6745         (async_queue_event): Remove.
6746         (gdb_event_xfree): New.
6747         (initialize_event_loop): New.
6748         (process_event): Use QUEUE macros.
6749         (event_queue): Remove.
6750         (gdb_wait_for_event): Caller update.
6751         (check_async_event_handlers): Likewise.
6752         (poll_timers): Likewise.
6753         * event-loop.h (initialize_event_loop): Declare.
6754         * event-loop.c (gdb_event_xfree): New.
6755         * top.c (gdb_init): Call initialize_event_loop.
6756
6757 2013-01-25  Yao Qi  <yao@codesourcery.com>
6758
6759         * event-loop.c (async_queue_event): Remove one parameter
6760         'position'.  Remove code handling 'position' == TAIL.
6761         (gdb_wait_for_event): Caller update.
6762         (check_async_event_handlers): Caller update.
6763         (poll_timers): Caller update.
6764         * event-loop.h (enum queue_position): Remove.
6765
6766 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
6767
6768         * MAINTAINERS: Update my email.
6769
6770 2013-01-25  Yao Qi  <yao@codesourcery.com>
6771
6772         * main.c (print_gdb_help): Remove "--epoch" from the help
6773         message.
6774
6775 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
6776
6777         * symtab.c (skip_prologue_using_sal): Consider a file
6778         change the same as an increased line number
6779
6780 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6781
6782         * MAINTAINERS (Write After Approval): Add myself to the list.
6783
6784 2013-01-24  Tom Tromey  <tromey@redhat.com>
6785
6786         * ada-lang.h (ada_decode_symbol): Make return type const.
6787         * ada-lang.c (ada_decode_symbol): Likewise.
6788
6789 2013-01-23  Doug Evans  <dje@google.com>
6790
6791         * linespec.c (find_linespec_symbols): Make static.
6792
6793 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6794
6795         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6796         type on float conversion for complex type.
6797
6798 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
6799
6800         Add a new class gdb.Architecture which exposes GDB's
6801         internal representation of architecture via GDB Python API.
6802         * Makefile.in: Add entries corresponding to the new file
6803         python/py-arch.c.
6804         * NEWS (Python Scripting): Add entries for the new class
6805         gdb.Architecture and the new method gdb.Frame.architecture.
6806         * python/py-arch.c: Implement gdb.Architecture class.
6807         * python/py-frame.c (frapy_arch): Implement the method
6808         gdb.Frame.architecture().
6809         (frame_object_methods): Add 'architecture' to the method table.
6810         * python/python-internal.h: Add declarations of new utility
6811         functions.
6812         * python/python.c (_initialize_python): Initialize
6813         gdb.Architecture class.
6814
6815 2013-01-23  Doug Evans  <dje@google.com>
6816
6817         Work around binutils/15021.
6818         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6819         type_unit_group out of union s.  All uses updated.
6820         (read_index_from_section): Watch for index version 8.
6821         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6822         an imported symtab.
6823         (write_psymtabs_to_index): Increment version number to 8.
6824
6825 2013-01-22  Pedro Alves  <palves@redhat.com>
6826
6827         * annotate.c (breakpoint_changed): Skip if breakpoint is not
6828         user-visible.
6829
6830 2013-01-22  Pedro Alves  <palves@redhat.com>
6831
6832         * annotate.c (annotate_breakpoints_changed): Rename to ...
6833         (annotate_breakpoints_invalid): ... this.  Make static.
6834         (breakpoint_changed): Adjust.
6835         (_initialize_annotate): Always install the observers.  Install a
6836         "breakpoint_created" observer.
6837         * annotate.h (annotate_breakpoints_changed): Delete declaration.
6838         * breakpoint.c (set_breakpoint_condition)
6839         (breakpoint_set_commands, do_map_commands_command)
6840         (init_raw_breakpoint, clear_command, set_ignore_count)
6841         (enable_breakpoint_disp): No longer call
6842         annotate_breakpoints_changed.
6843
6844 2013-01-22  Pedro Alves  <palves@redhat.com>
6845
6846         * annotate.c: Include "inferior.h".
6847         (frames_invalid_emitted)
6848         (breakpoints_invalid_emitted): New globals.
6849         (async_background_execution_p): New function.
6850         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6851         emitting the annotation if it has already been emitted.
6852         (annotate_display_prompt): New function.
6853         * annotate.h (annotate_display_prompt): New declaration.
6854         * event-top.c: Include annotate.h.
6855         (display_gdb_prompt): Call annotate_display_prompt.
6856
6857 2013-01-22  Pedro Alves  <palves@redhat.com>
6858
6859         * annotate.c (ignore_count_changed): Delete.
6860         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6861         (annotate_ignore_count_change): Delete.
6862         (annotate_stopped): Don't emit a delayed breakpoints-changed
6863         annotation.
6864         * annotate.h (annotate_ignore_count_change): Delete.
6865         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6866         annotate_ignore_count_change.
6867
6868 2013-01-22  Tom Tromey  <tromey@redhat.com>
6869
6870         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6871         require_rvalue for a register location.
6872
6873 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
6874
6875         * breakpoint.c (print_one_breakpoint_location): Add MI
6876         field 'thread-groups' when printing a breakpoint.
6877         (output_thread_groups): New function.
6878
6879 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
6880
6881         * python/lib/gdb/commands/explore.py
6882         (CompoundExplorer.explore_expr): Correct the name of a method
6883         being invoked.
6884         (ExploreTypeCommand.invoke): Add a missing 'return'.
6885
6886 2013-01-21  Tom Tromey  <tromey@redhat.com>
6887
6888         * gdb_obstack.h (obconcat): Move declaration here, from...
6889         * symfile.h (obconcat): ... here.
6890         * gdb_obstack.c: New file.
6891         (obconcat): Move from...
6892         * symfile.c (obconcat): ... here.
6893         * Makefile.in (SFILES): Add gdb_obstack.c.
6894         (COMMON_OBS): Add gdb_obstack.o.
6895
6896 2013-01-21  Tom Tromey  <tromey@redhat.com>
6897
6898         * symfile.h (obsavestring): Don't declare.
6899         * symfile.c (obsavestring): Remove.
6900         * ada-exp.y: Use obstack_copy0, not obsavestring.
6901         * ada-lang.c: Use obstack_copy0, not obsavestring.
6902         * coffread.c: Use obstack_copy0, not obsavestring.
6903         * cp-namespace.c: Use obstack_copy0, not obsavestring.
6904         * dbxread.c: Use obstack_copy0, not obsavestring.
6905         * dwarf2read.c: Use obstack_copy0, not obsavestring.
6906         * jit.c: Use obstack_copy0, not obsavestring.
6907         * mdebugread.c: Use obstack_copy0, not obsavestring.
6908         * psymtab.c: Use obstack_copy0, not obsavestring.
6909         * stabsread.c: Use obstack_copy0, not obsavestring.
6910         * xcoffread.c: Use obstack_copy0, not obsavestring.
6911
6912 2013-01-21  Tom Tromey  <tromey@redhat.com>
6913
6914         * dwarf2read.c (fixup_go_packaging): Save package name
6915         on objfile obstack.
6916         * gdbtypes.c (init_type): Don't copy name.
6917
6918 2013-01-21  Tom Tromey  <tromey@redhat.com>
6919
6920         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6921         const.
6922         (struct attribute) <u.str>: Now const.
6923         (struct fnfieldlist) <name>: Now const.
6924         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6925         (partial_die_parent_scope): Make return type const.
6926         (partial_die_full_name, add_partial_symbol): Update.
6927         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6928         'name' const.
6929         (find_file_and_directory): Make 'name' and 'comp_dir' const.
6930         (read_file_scope, read_func_scope, dwarf2_add_field)
6931         (dwarf2_add_member_fn, read_structure_type)
6932         (process_enumeration_scope, read_array_type, read_module_type)
6933         (read_base_type, read_subrange_type): Update.
6934         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6935         (new_symbol_full, guess_full_die_structure_name): Update.
6936         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
6937         (dwarf2_name): Return const type.
6938         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6939         const.
6940
6941 2013-01-21  Tom Tromey  <tromey@redhat.com>
6942
6943         * gdbtypes.c (init_type): Make 'name' const.
6944         * gdbtypes.h (init_type): Update.
6945
6946 2013-01-21  Tom Tromey  <tromey@redhat.com>
6947
6948         * buildsym.c (patch_subfile_names): Use set_last_source_file.
6949         (start_symtab): Make 'name' and 'dirname' const.  Use
6950         set_last_source_file.
6951         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6952         (last_source_file): Define.  Now static.
6953         (set_last_source_file, get_last_source_file): New functions.
6954         * buildsym.h (last_source_file): Don't declare.
6955         (start_symtab): Update.
6956         (set_last_source_file, get_last_source_file): Declare.
6957         * coffread.c (complete_symtab): Use set_last_source_file.
6958         (coff_end_symtab): Likewise.
6959         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6960         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6961         set_last_source_file.
6962         (process_one_symbol): Use get_last_source_file.
6963         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6964         (psymtab_to_symtab_1): Use get_last_source_file.
6965         * xcoffread.c (process_linenos): Use get_last_source_file.
6966         (complete_symtab): Use set_last_source_file.
6967         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6968         (scan_xcoff_symtab): Use set_last_source_file.
6969
6970 2013-01-21  Tom Tromey  <tromey@redhat.com>
6971
6972         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6973         (symbol_set_names): Remove casts.  Handle field const-ness.
6974
6975 2013-01-21  Tom Tromey  <tromey@redhat.com>
6976
6977         * dwarf2read.c (new_symbol_full): Remove cast.
6978         * symtab.c (symbol_set_demangled_name): Make 'name' const.
6979         * symtab.h (symbol_set_demangled_name): Update.
6980
6981 2013-01-21  Tom Tromey  <tromey@redhat.com>
6982
6983         * main.c (captured_main): Call bfd_init.
6984
6985 2013-01-21  Tom Tromey  <tromey@redhat.com>
6986
6987         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6988         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6989         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6990         * NEWS: Update.
6991
6992 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6993
6994         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6995
6996 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6997
6998         Fix gdb.fortran/common-block.exp crash in PIE mode.
6999         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
7000         LOC_COMMON_BLOCK.
7001         * f-valprint.c (info_common_command_for_block): Expect
7002         LOC_COMMON_BLOCK in gdb_assert.
7003         * symtab.h (struct general_symbol_info): Update comment for the
7004         common_block member.
7005         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
7006         (enum address_class): New member LOC_COMMON_BLOCK.
7007
7008 2013-01-18  David Blaikie  <dblaikie@gmail.com>
7009
7010         * MAINTAINERS (Write After Approval): Add "David Blaikie".
7011
7012 2013-01-18  Tom Tromey  <tromey@redhat.com>
7013
7014         PR c++/14999:
7015         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
7016         Call require_rvalue.
7017
7018 2013-01-18  Yao Qi  <yao@codesourcery.com>
7019
7020         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
7021         (dbx_read_symtab): New declaration.
7022         (dbx_psymtab_to_symtab): Delete.
7023         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7024         Rename parameter PST to SELF.  Exchanged two parameters.
7025         (start_psymtab): Caller update.
7026         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7027         (dwarf2_read_symtab): New declaration.
7028         (dwarf2_psymtab_to_symtab): Delete.
7029         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7030         Rename parameter PST to SELF.  Exchanged two parameters.
7031         (create_partial_symtab): Caller update.
7032         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7033         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7034         Rename parameter PST to SELF.  Exchanged two parameters.
7035         (parse_partial_symbols, new_psymtab): Caller update.
7036         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7037         two parameters.
7038         * psymtab.c (psymtab_to_symtab): Caller update.
7039         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7040         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7041         Rename parameter PST to SELF.  Exchanged two parameters.
7042         (xcoff_start_psymtab): Caller update.
7043
7044 2013-01-18  Yao Qi  <yao@codesourcery.com>
7045
7046         * infrun.c (proceed): Rename local variable 'oneproc' to
7047         'force_step'.
7048
7049 2013-01-17  Doug Evans  <dje@google.com>
7050
7051         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7052         (dw2_build_type_unit_groups): Delete.  All uses updated.
7053
7054         * symtab.h (struct symbol_search): Add comment.
7055
7056 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7057
7058         * symtab.c (compare_filenames_for_search): New comment for
7059         HAS_DRIVE_SPEC.
7060
7061 2013-01-17  Tom Tromey  <tromey@redhat.com>
7062
7063         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7064
7065 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7066
7067         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7068         initialize it by existing make_cleanup.  Call new do_cleanups.
7069
7070 2013-01-17  Tom Tromey  <tromey@redhat.com>
7071
7072         * cp-abi.c (cp_abi_completer): New function.
7073         (_initialize_cp_abi): Set completer for "set cp-abi".
7074
7075 2013-01-17  Tom Tromey  <tromey@redhat.com>
7076
7077         * mem-break.c: Remove obsolete comment.
7078         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7079
7080 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
7081
7082         * jit.c (jit_reader_load_command): Interpret the jit reader name
7083         as an absolute path if it begins with a forward slash.
7084
7085 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
7086
7087         PR gdb/14550
7088
7089         * jit.c (finalize_symtab): Ensure that only the global block has a
7090         NULL superblock.
7091
7092 2013-01-17  Pedro Alves  <palves@redhat.com>
7093
7094         * acinclude.m4: Include ../config/plugins.m4,
7095         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
7096         * Makefile.in (aclocal_m4_deps): Update.
7097         * aclocal.m4: Renegerate.
7098
7099 2013-01-16  Doug Evans  <dje@google.com>
7100
7101         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7102
7103 2013-01-16  Pedro Alves  <palves@redhat.com>
7104             Tom Tromey  <tromey@redhat.com>
7105
7106         PR cli/7221:
7107         * NEWS: Add "catch signal".
7108         * breakpoint.c (base_breakpoint_ops): No longer static.
7109         (bpstat_explains_signal): New function.
7110         (init_catchpoint): No longer static.
7111         (base_breakpoint_explains_signal): New function.
7112         (base_breakpoint_ops): Initialize new field.
7113         * breakpoint.h (enum bpstat_signal_value): New.
7114         (struct breakpoint_ops) <explains_signal>: New field.
7115         (bpstat_explains_signal): Remove macro, declare as function.
7116         (base_breakpoint_ops, init_catchpoint): Declare.
7117         * break-catch-sig.c: New file.
7118         * inferior.h (signal_catch_update): Declare.
7119         * infrun.c (signal_catch): New global.
7120         (handle_syscall_event): Update for change to
7121         bpstat_explains_signal.
7122         (handle_inferior_event): Likewise.  Always handle random signals
7123         via bpstats.
7124         (signal_cache_update): Check signal_catch.
7125         (signal_catch_update): New function.
7126         (_initialize_infrun): Initialize signal_catch.
7127         * Makefile.in (SFILES): Add break-catch-sig.c.
7128         (COMMON_OBS): Add break-catch-sig.o.
7129
7130 2013-01-16  Tom Tromey  <tromey@redhat.com>
7131
7132         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7133         (print_one_catch_solib, print_one_catch_syscall)
7134         (print_one_catch_exec, print_one_exception_catchpoint): Emit
7135         "catch-type".
7136
7137 2013-01-16  Yao Qi  <yao@codesourcery.com>
7138
7139         * printcmd.c (current_display_number): Make it static.
7140
7141 2013-01-16  Yao Qi  <yao@codesourcery.com>
7142
7143         * infcmd.c (step_once): Don't check '!single_inst' as it was
7144         checked before.
7145
7146 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7147
7148         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7149
7150 2013-01-14  Tom Tromey  <tromey@redhat.com>
7151
7152         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7153         set command.
7154         * command.h (add_setshow_string_noescape_cmd): Update.
7155         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7156         (complete_set_gnutarget): New function.
7157         (_initialize_core): Set the "set gnutarget" completer.
7158
7159 2013-01-14  Tom Tromey  <tromey@redhat.com>
7160
7161         PR symtab/14442:
7162         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7163         (c_type_print_modifier): Likewise.
7164         * dwarf2read.c (read_tag_restrict_type): New function.
7165         (read_type_die_1): Handle DW_TAG_restrict_type.
7166         * gdbtypes.c (make_restrict_type): New function.
7167         (recursive_dump_type): Handle TYPE_RESTRICT.
7168         * gdbtypes.h (enum type_flag_values): Renumber.
7169         (enum type_instance_flag_value): Add
7170         TYPE_INSTANCE_FLAG_RESTRICT.
7171         (TYPE_RESTRICT): New macro.
7172         (make_restrict_type): Declare.
7173
7174 2013-01-14  Tom Tromey  <tromey@redhat.com>
7175
7176         PR symtab/14931:
7177         * psymtab.c (struct psymtab_state): New.
7178         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7179         functions.
7180         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7181         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7182
7183 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
7184             Pedro Alves  <palves@redhat.com>
7185
7186         PR remote/14786
7187
7188         * remote.c (remote_threads_info): Make a copy of the reply from
7189         qfThreadInfo and use that instead of rs->buf.
7190
7191 2013-01-14  Yao Qi  <yao@codesourcery.com>
7192
7193         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7194         (dbx_psymtab_to_symtab): Likewise.
7195         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7196         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7197         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7198
7199 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7200
7201         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
7202         make_cleanup_restore_current_language.  Call set_language.  Move
7203         OLD_CHAIN and INNER_CHAIN cleanups.
7204         * utils.c (do_restore_current_language)
7205         (make_cleanup_restore_current_language): New functions.
7206         * utils.h (make_cleanup_restore_current_language): New declaration.
7207
7208 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7209
7210         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7211         non-existing files.
7212
7213         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7214         non-existing files if FILENAME is already absolute.
7215
7216 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7217
7218         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7219         fputs_filtered.  Append trailing newline.
7220
7221 2013-01-11  Yao Qi  <yao@codesourcery.com>
7222             Stan Shebs  <stan@codesourcery.com>
7223
7224         * psymtab.c (init_psymbol_list): Clarify the comment.
7225
7226 2013-01-11  Yao Qi  <yao@codesourcery.com>
7227
7228         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7229         (update_dprintf_command_list): Assert that 'printf_line' is
7230         non-null.  Remove condition check.
7231
7232 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7233
7234         Code cleanup.
7235         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7236         type const char *.
7237         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7238         const char *.
7239         * tui/tui-source.h (tui_source_is_displayed): Likewise.
7240
7241 2013-01-09  Anthony Green  <green@moxielogic.com>
7242
7243         * cp-abi.c (cplus_print_vtable): Don't return value from void
7244         function.
7245         * ada-lang.c (re_set_catch_assert): Ditto.
7246
7247 2013-01-09  Doug Evans  <dje@google.com>
7248
7249         * symfile.h (quick_symbol_functions): Delete member
7250         pre_expand_symtabs_matching.  All uses removed.
7251         * dwarf2read.c (dw2_lookup_symbol): Implement.
7252         (dw2_do_expand_symtabs_matching): Delete.
7253         (dw2_pre_expand_symtabs_matching): Delete.
7254         (struct dw2_symtab_iterator): New type.
7255         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7256         (dw2_expand_symtabs_for_function): Rewrite.
7257         (dwarf2_gdb_index_functions): Update.
7258         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7259         (psym_functions): Update.
7260
7261 2013-01-09  Tom Tromey  <tromey@redhat.com>
7262
7263         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7264         * configure: Rebuild.
7265         * configure.ac: Add somread.o to the build if BFD has SOM
7266         support.
7267         * somread.c: Include som/aout.h, not syms.h.
7268         (som_symtab_read): Use som_external_symbol_dictionary_record.
7269         Unpack records manually.
7270         (_initialize_somread): Declare.
7271
7272 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
7273
7274         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
7275         Cast return_address to 64bits.
7276
7277 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
7278
7279         * printcmd.c: Remove define of function output_command.
7280         * tracepoint.c: Remove extern of function output_command.
7281         * valprint.h: (output_command): New extern.
7282
7283 2013-01-07  Tom Tromey  <tromey@redhat.com>
7284
7285         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
7286         Remove.
7287         (objc_language_defn): Use c_printchar, c_printstr,
7288         c_emit_char.
7289
7290 2013-01-07  Tom Tromey  <tromey@redhat.com>
7291
7292         PR cli/7719:
7293         * NEWS: Update.
7294         * ada-valprint.c (printstr, print_field_values): Remove
7295         "inspect_it" code.
7296         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7297         code.
7298         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7299         code.
7300         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7301         * main.c (captured_main): Remove "epoch" argument.
7302         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7303         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7304         * p-valprint.c (pascal_object_print_value_fields): Remove
7305         "inspect_it" code.
7306         * printcmd.c (print_command_1): Remove 'inspect' argument.
7307         (print_command, call_command): Update.
7308         (inspect_command): Remove.
7309         (_initialize_printcmd): Make "inspect" an alias for "print".
7310         * top.c (epoch_interface): Remove.
7311         * top.h (epoch_interface): Remove.
7312         * valprint.c (user_print_options): Update.
7313         (print_converted_chars_to_obstack): Remove "inspect_it" code.
7314         * valprint.h (struct value_print_options) <inspect_it>: Remove
7315         field.
7316
7317 2013-01-04  Tom Tromey  <tromey@redhat.com>
7318
7319         * valprint.h (read_string): Add 'extern'.
7320
7321 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
7322
7323         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7324         used to decide whether to define darwin_read_dyld_info or not.
7325
7326 2013-01-03  Pierre Muller  <muller@sourceware.org>
7327
7328         * main.c (relocate_gdb_directory): Avoid calling stat function
7329         if DIR is empty.
7330
7331 2013-01-03  Yao Qi  <yao@codesourcery.com>
7332
7333         * psymtab.c (fixup_psymbol_section): Update declaration.
7334         (fixup_psymbol_section): Remove code returning value.
7335
7336 2013-01-03  Yao Qi  <yao@codesourcery.com>
7337
7338         * symtab.h: Remove some out of date comments.
7339          (enum exception_event_kind): Move it ...
7340         * breakpoint.c: ... here.
7341
7342 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
7343
7344         PR gdb/14405
7345         * darwin-nat.c (darwin_read_dyld_info): Only build if
7346         TASK_DYLD_INFO_COUNT is defined.
7347         (darwin_xfer_partial): Call darwin_read_dyld_info only if
7348         TASK_DYLD_INFO_COUNT is defined.
7349
7350 2013-01-02  Tom Tromey  <tromey@redhat.com>
7351
7352         * symfile.h (struct ecoff_debug_hack): Remove.
7353         * objfiles.c: Don't include mdebugread.h.
7354
7355 2013-01-02  Tom Tromey  <tromey@redhat.com>
7356
7357         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7358         * configure.ac: Check for Mach-O support in BFD.  Update
7359         CONFIG_OBS.
7360         * configure: Rebuild.
7361
7362 2013-01-02  Tom Tromey  <tromey@redhat.com>
7363
7364         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7365         * configure.ac: Use GDB_AC_CHECK_BFD.
7366         * configure: Rebuild.
7367
7368 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
7369
7370         * MAINTAINERS: Update my email.
7371
7372 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7373
7374         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7375
7376 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7377
7378         * rs6000-nat.c (bss_data_overlap): New function.
7379         (vmap_symtab): Use it to adjust the .bss section's offset.
7380
7381 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7382
7383         Update year range in copyright notice of all files.
7384
7385 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
7386
7387         * top.c (print_gdb_version): Update copyright year.
7388
7389 For older changes see ChangeLog-2012.
7390 \f
7391 Local Variables:
7392 mode: change-log
7393 left-margin: 8
7394 fill-column: 74
7395 version-control: never
7396 coding: utf-8
7397 End: