Avoid duplicating text in sol-thread.c:info_cb
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
2
3         * sol-thread.c (info_cb): Factorize the code a little.
4
5 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6
7         * sol-thread.c (info_cb): Rework the output of the "maintenance
8         info sol-threads" command a bit.
9
10 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
11
12         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
13         Replace ti.ti_startfunc by ti.ti_pc.
14
15 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
16
17         * solib-aix.c (solib_aix_free_library_list): New function
18         for the case where HAVE_LIBEXPAT is not defined.
19
20 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
21
22         PR breakpoints/15413:
23         * breakpoint.c (condition_completer): Simplify the code to
24         disconsider multiple locations of breakpoints when completing the
25         "condition" command.
26
27 2013-05-07  Pierre Muller  <muller@sourceware.org>
28
29         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
30         instead of <sys/wait.h>.
31
32 2013-05-07  Pierre Muller  <muller@sourceware.org>
33
34         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
35         trailing new line from warning message.
36
37 2013-05-07  Pierre Muller  <muller@sourceware.org>
38
39         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
40         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
41
42 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
43
44         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
45         error message (ARI fix).
46
47 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
48
49         * features/library-list-aix.dtd: Replace library-list by
50         library-list-aix.
51         * rs6000-nat.c: Replace library-list by library-list-aix
52         throughout.
53         * solib-aix.c: Likewise.
54
55 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
56
57         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
58         Renames TARGET_OBJECT_AIX_LIBRARIES.
59         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
60         TARGET_OBJECT_LIBRARIES_AIX throughout.
61         * solib-aix.c: Likwise.
62
63 2013-05-07  Yao Qi  <yao@codesourcery.com>
64
65         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
66         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
67
68 2013-05-07  Yao Qi  <yao@codesourcery.com>
69
70         * solib-dsbt.c (enable_break): Declare.
71         (dsbt_current_sos): Remove call to enable_break2.
72         (enable_break2): Rename to enable_break.  Set solib breakpoint
73         on '_dl_debug_state'.
74         (enable_break): Remove.
75
76 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
77
78         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
79         debug state prior to replicating existing hardware watchpoints or
80         breakpoints.
81
82 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
83
84         * gcore.c (gcore_create_callback): Ignore sections with
85         separate_debug_objfile_backlink != NULL.
86
87 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
88             Andrew Jenner  <andrew@codesourcery.com>
89             Chung-Lin Tang  <cltang@codesourcery.com>
90             Julian Brown  <julian@codesourcery.com>
91
92         Based on the nios2-elf port from Altera Corporation.
93
94         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
95         nios2-linux-tdep.o.
96         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
97         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
98         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
99         * nios2-tdep.h: New.
100         * nios2-tdep.c: New.
101         * nios2-linux-tdep.c: New.
102         * features/Makefile (WHICH): Add nios2-linux.
103         (nios2-linux-expedite): Set.
104         * features/nios2-cpu.xml: New.
105         * features/nios2.xml: New.
106         * features/nios2-linux.xml: New.
107         * features/nios2.c: New (autogenerated).
108         * features/nios2-linux.c: New (autogenerated).
109         * regformats/nios2-linux.dat: New (autogenerated).
110         * NEWS (Changes since GDB 7.6): Add new Nios II targets
111         and commands.
112
113 2013-05-06  Doug Evans  <dje@google.com>
114
115         * symfile.c: Whitespace cleanup.
116
117         * solist.h (struct target_so_ops): New member clear_so.
118         * solib-svr4.c (svr4_clear_so): New function.
119         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
120         * solib.c (clear_so): Renamed from free_so_symbols.
121         All callers updated.  Call target clear_so if it exists.
122
123 2013-05-06  Tom Tromey  <tromey@redhat.com>
124
125         * ada-lang.c (ada_value_primitive_packed_val): Don't
126         call value_incref.
127         * value.c (set_value_parent): Incref the new parent and decref
128         the old parent.
129         (value_copy, value_primitive_field): Use set_value_parent.
130
131 2013-05-06  Tom Tromey  <tromey@redhat.com>
132
133         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
134         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
135         if needed.
136         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
137         * dwarf2read.c (write_constant_as_bytes)
138         (dwarf2_fetch_constant_bytes): New functions.
139
140 2013-05-06  Tom Tromey  <tromey@redhat.com>
141
142         * dwarf2read.c (dwarf2_const_value_data): Remove unused
143         parameters.
144         (dwarf2_const_value_attr): Update.
145
146 2013-05-06  Tom Tromey  <tromey@redhat.com>
147
148         * somread.c (som_symfile_offsets): Add 'const' to addrs.
149         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
150         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
151         Remove declaration.
152
153 2013-05-06  Tom Tromey  <tromey@redhat.com>
154
155         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
156         objfile's obstack.
157
158 2013-05-06  Doug Evans  <dje@google.com>
159
160         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
161         * stabsread.h (process_one_symbol): Update declaration.
162         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
163         * elfread.c (elf_symfile_relocate_probe): Ditto.
164         * psymtab.c (relocate_psymtabs): Ditto.
165         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
166         (objfile_relocate): Ditto.
167         * objfiles.h (objfile_relocate): Update declaration.
168         * symfile.c (relative_addr_info_to_section_offsets): Constify
169         addrs parameter.
170         (default_symfile_offsets): Ditto.
171         (syms_from_objfile_1): Constify offsets parameter.
172         (syms_from_objfile): Ditto.
173         (symbol_file_add_with_addrs_or_offsets): Ditto.
174         (symfile_map_offsets_to_segments): Constify data parameter.
175         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
176         delta parameters of member relocate.
177         (struct sym_probe_fns): Constify new_offsets,
178         delta parameters of member sym_relocate_probe.
179         (struct sym_fns): Constify section_addr_info parameter of member
180         sym_offsets.
181         (relative_addr_info_to_section_offsets): Update declaration.
182         (default_symfile_offsets): Ditto.
183         (syms_from_objfile): Ditto.
184         (symfile_map_offsets_to_segments): Ditto.
185
186         * symfile.c (syms_from_objfile_1): Use correct section count when
187         objfile->sf == NULL.
188
189 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
190
191         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
192
193 2013-05-06  Doug Evans  <dje@google.com>
194
195         * psympriv.h (struct partial_symtab): Augment comment for member
196         section_offsets.
197
198 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
199
200         Reimplement shared library support on ppc-aix...
201         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
202         * features/library-list-aix.dtd: New file.
203         * solib-aix.h, solib-aix.c: New file.
204         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
205         (rs6000_find_toc_address_hook): Delete.
206         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
207         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
208         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
209         "xml-utils.h".
210         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
211         (vmap_symtab, fixup_breakpoints): Delete.
212         (rs6000_xfer_shared_libraries): New function.
213         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
214         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
215         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
216         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
217         (rs6000_xfer_shared_library): New function.
218         (find_toc_address): Delete.
219         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
220         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
221         * xcoffread.c (record_minimal_symbol): Reloate symbol address
222         before creating minimal symbol.  Adjust function description
223         accordingly.
224         (scan_xcoff_symtab): Replace call to
225         prim_record_minimal_symbol_and_info by call to
226         record_minimal_symbol.
227         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
228         around default_symfile_offsets.
229         * configure.tgt: Add solib-aix.o to gdb_target_obs for
230         powerpc-aix targets.
231         * config/rs6000/nm-rs6000.h: Delete.
232         * config/powerpc/aix.mh (NAT_FILE): Delete.
233         (NATDEPFILES): Remove xcoffsolib.o.
234         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
235         (ALL_TARGET_OBS): Add solib-aix.o.
236         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
237         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
238         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
239         * xcoffsolib.h, xcoffsolib.c: Delete.
240
241         * solib.c (reload_shared_libraries): Remove reference to
242         SOLIB_CREATE_INFERIOR_HOOK.
243         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
244         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
245         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
246         comment.
247         * corelow.c (deprecated_core_resize_section_table): Delete.
248         * exec.c: Remove include of xcoffsolib.h".
249         (map_vmap, vmap): Delete.
250         (exec_close_1): Remove references to vmap.
251         (exec_file_attach): Remove vmap handling code, and reference
252         to DEPRECATED_IBM6000_TARGET.
253         (bfdsec_to_vmap): Delete.
254         (exec_files_info): Remove block of code handling VMAP.
255         * infcmd.c (post_create_inferior): Remove reference to
256         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
257         * infrun.c (follow_exec): Remove reference to
258         SOLIB_CREATE_INFERIOR_HOOK.
259         * stack.c (print_frame): Remove reference to PC_SOLIB.
260         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
261         (dsbt_relocate_main_executable): Likewise.
262         * solib-frv.c (frv_current_sos): Likewise.
263
264 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
265
266         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
267         to target_write_memory and target_read_memory.
268
269 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
270
271         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
272         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
273
274 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
275
276         * darwin-nat.c: Replace all "%x" instances in format strings
277         into "0x%x" throughout.
278
279 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
280
281         * darwin-nat.c (darwin_mourn_inferior): Replace call to
282         gdb_assert by call to MACH_CHECK_ERROR.
283         (darwin_attach_pid): Raise an error rather than a failed
284         assertion when various system calls failed.  Report a warning
285         instead of raising a failed assertion when PREV_NOT is not NULL
286         after call to mach_port_request_notification.
287         (darwin_ptrace_me): Raise an error rather than a failed
288         assertion when read returns nonzero.
289
290 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
291
292         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
293
294 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
295
296         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
297
298 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
299
300         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
301         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
302         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
303         a stale cleanup.  Fix double free of NAME.
304
305 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
306
307         * windows-nat.c (windows_delete_thread): Accept an additional
308         argument, the thread's exit code, and announce thread death when
309         print_thread_events is non-zero and we are deleting a thread that
310         is not the main thread.
311         (get_windows_debug_event): Pass thread exit code to
312         windows_delete_thread.
313
314 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
315
316         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
317         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
318         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
319         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
320         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
321         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
322         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
323         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
324         (gdbarch_tdep): New struct.
325         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
326         E_NUM_REGS.
327         (v850e3v5_register_name): New function.
328         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
329         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
330         code handling the struct return conventions for the RH850 ABI.
331         Update all callers.
332         (v850_eight_byte_align_p): New function.
333         (v850_push_call_dummy): Push structs by value, not by reference
334         for the RH850 ABI.  Add support for eight byte alignment.
335         (v850_dbtrap_breakpoint_from_pc): New function.
336         (v850_gdbarch_init): Add ABI detection code.  Register
337         v850e3v5_register_name for the v850e3v5 architecture.  Set the
338         number of registers for v850e3v5.  Register
339         v850_dbtrap_breakpoint_from_pc as appropriate.
340         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
341
342 2013-05-03  Doug Evans  <dje@google.com>
343
344         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
345         of bfd_count_sections.
346         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
347         * symfile.c (default_symfile_offsets): Ditto.
348         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
349         one entry, not bfd_count_sections entries.
350
351 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
352
353         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
354         `save' and `restore' register groups.  Don't include SPL
355         or SPH in these groups.
356         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
357         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
358         RL78_ES_REGNUM, and RL78_CS_REGNUM.
359         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
360         dwarf2_append_unwinders().
361
362 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
363
364         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
365         ignore SIGINT and SIGTRAP in case these internal signals are
366         caught explicitely.
367
368 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
369
370         * darwin-nat.c (darwin_read_write_inferior): Change types
371         of parameters rdaddr and wraddr to "gdb_byte *". Change type
372         of copy_count to "mach_msg_type_number_t".
373         (darwin_read_dyld_info): Change type of parameter
374         rdaddr to "gdb_byte *".
375
376 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
377
378         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
379         of &info->load_map from "char *" to "gdb_byte *".
380
381 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
382
383         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
384         from "char *" to "gdb_byte *".
385         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
386
387 2013-04-30  Doug Evans  <dje@google.com>
388
389         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
390         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
391         DWO stub.  If DWO isn't found, just use stub.
392         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
393
394         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
395         calling init_cutu_and_read_dies.
396
397 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
398
399         * target-descriptions.c (maint_print_c_tdesc_cmd):
400         Add case to parse structures as register types and
401         bitfields.
402
403 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
404
405         * MAINTAINERS (Write After Approval): Add myself to the list.
406
407 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
408
409         * sol-thread.c (rw_common): Change type of parameter "buf"
410         to "gdb_byte *".
411         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
412         rw_common to "gdb_byte *" instead of "char *".
413
414 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
415
416         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
417         of local variable msym to const struct bound_minimal_symbol.
418         Adjust use accordingly.
419         [ti.ti_state == TD_THR_SLEEP]: Likewise.
420
421 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
422
423         * i386gnu-nat.c (CREG_OFFSET): New macro.
424         (creg_offset): New array.
425         (CREG_ADDR): Use creg_offset instead of reg_offset.
426
427 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
428
429         * mep-tdep.c (mep_write_pc): Delete.
430         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
431         Add call to set_gdbarch_pc_regnum.
432
433 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
434
435         * common/filestuff.c: Replace #include <dirent.h> by
436         #include "gdb_dirent.h".
437
438 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
439
440         * common/filestuff.c: Replace #include <sys/stat.h> by
441         #include "gdb_stat.h".
442
443 2013-04-29  Pierre Muller  <muller@sourceware.org>
444
445         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
446         editCase function rule.
447         (get_DW_AT_signature_type): Likewise.
448
449 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
450
451         * m32r-tdep.c (m32r_write_pc): Delete.
452         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
453         Add call to set_gdbarch_pc_regnum.
454
455 2013-04-29  Pierre Muller  <muller@sourceware.org>
456
457         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
458
459 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
460
461         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
462
463 2013-04-28  Yao Qi  <yao@codesourcery.com>
464
465         * solib-dsbt.c (fetch_loadmap): Re-indent.
466         (displacement_from_map, enable_break2): Likewise.
467         (dsbt_relocate_section_addresses): Likewise.
468
469 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
470
471         GDB 7.6 released.
472
473 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
474
475         PR corefiles/14983:
476         * dwarf2read.c (process_full_comp_unit): Always create a static
477         block.
478
479 2013-04-25  Hui Zhu  <hui@codesourcery.com>
480
481         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
482         to loc->cmd_bytecode.
483
484 2013-04-24  Doug Evans  <dje@google.com>
485
486         * dwarf2read.c (setup_type_unit_groups): Fix comment.
487
488 2013-04-22  Keith Seitz  <keiths@redhat.com>
489
490         * tracepoint.c (trace_save):  Call the writer's start method.
491
492 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
493
494         PR gdb/10462
495         * cli/cli-decode.c (lookup_command): Show an error if there is no space
496         before argument.
497
498 2013-04-23  Tom Tromey  <tromey@redhat.com>
499
500         * common/filestuff.c: Check USE_WIN32API before including
501         sys/socket.h.
502         (HAVE_F_GETFD): New define.
503         (mark_cloexec): Check HAVE_F_GETFD.
504         (gdb_open_cloexec): Change 'mode' to unsigned long.
505         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
506         (gdb_pipe_cloexec): Check HAVE_PIPE.
507         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
508         long.
509
510 2013-04-23  Hui Zhu  <hui@codesourcery.com>
511
512         PR gdb/15293
513         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
514
515 2013-04-23  Hui Zhu  <hui@codesourcery.com>
516
517         PR gdb/15165
518         * breakpoint.c (dprintf_print_recreate): New.
519         (save_breakpoints): Let it not save dprintf commands.
520         (initialize_breakpoint_ops): Set dprintf_print_recreate.
521
522 2013-04-22  Tom Tromey  <tromey@redhat.com>
523
524         PR gdb/7912:
525         * Makefile.in (SFILES): Add filestuff.c
526         (COMMON_OBS): Add filestuff.o.
527         (filestuff.o): New target.
528         * auto-load.c (auto_load_objfile_script_1): Use
529         gdb_fopen_cloexec.
530         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
531         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
532         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
533         * common/agent.c (gdb_connect_sync_socket): Use
534         gdb_socket_cloexec.
535         * common/filestuff.c: New file.
536         * common/filestuff.h: New file.
537         * common/linux-osdata.c (linux_common_core_of_thread)
538         (command_from_pid, commandline_from_pid, print_source_lines)
539         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
540         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
541         gdb_fopen_cloexec.
542         * common/linux-procfs.c (linux_proc_get_int)
543         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
544         * config.in, configure: Rebuild.
545         * configure.ac: Don't check for sys/socket.h.  Check for
546         fdwalk, pipe2.
547         * corelow.c (core_open): Use gdb_open_cloexec.
548         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
549         * fork-child.c (fork_inferior): Call close_most_fds.
550         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
551         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
552         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
553         Use gdb_fopen_cloexec.
554         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
555         gdb_open_cloexec.
556         (linux_async_pipe): Use gdb_pipe_cloexec.
557         * remote-fileio.c (remote_fileio_func_open): Use
558         gdb_open_cloexec.
559         * remote.c (remote_file_put, remote_file_get): Use
560         gdb_fopen_cloexec.
561         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
562         close_most_fds.
563         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
564         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
565         * solib.c (solib_find): Use gdb_open_cloexec.
566         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
567         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
568         (tfile_open): Use gdb_open_cloexec.
569         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
570         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
571         * xml-support.c (xml_fetch_content_from_file): Use
572         gdb_fopen_cloexec.
573         * main.c (captured_main): Call notice_open_fds.
574
575 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
576
577         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
578         'char *' to 'gdb_byte *'.
579         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
580         'gdb_byte'.
581
582 2013-04-22  Yao Qi  <yao@codesourcery.com>
583
584         * infrun.c: Fix typo in comment.
585
586 2013-04-22  Andrew Haley  <aph@redhat.com>
587
588         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
589         instead of "long".
590
591 2013-04-20  Yao Qi  <yao@codesourcery.com>
592
593         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
594         'char *' to 'gdb_byte *'.  Cast the return value of
595         'bt_ctf_get_char_array' to 'gdb_byte *'.
596
597 2013-04-19  Pedro Alves  <palves@redhat.com>
598
599         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
600         -Wpointer-sign.
601         * configure: Regenerate.
602
603 2013-04-19  Pedro Alves  <palves@redhat.com>
604
605         * ser-tcp.c (net_read_prim): Cast second argument to recv to
606         'void *'.
607
608 2013-04-19  Pedro Alves  <palves@redhat.com>
609
610         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
611         Change type of 'myaddr' parameter to gdb_byte pointer.
612         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
613         to 'long long' pointer instead of to 'unsigned long long'.
614         (monitor_write_memory_block, monitor_read_memory_single)
615         (monitor_read_memory): Change type of 'myaddr' parameter to
616         gdb_byte pointer.
617
618 2013-04-19  Pedro Alves  <palves@redhat.com>
619
620         * record.c (validate_history_size): Make parameter 'setting'
621         unsigned.
622
623 2013-04-19  Pedro Alves  <palves@redhat.com>
624
625         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
626         to 'gdb_byte *'.
627
628 2013-04-19  Pedro Alves  <palves@redhat.com>
629
630         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
631         local to int.
632
633 2013-04-19  Pedro Alves  <palves@redhat.com>
634
635         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
636         * ada-tasks.c (read_fat_string_value): Likewise.
637
638 2013-04-19  Pedro Alves  <palves@redhat.com>
639
640         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
641         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
642         'offset', and adjust.
643
644 2013-04-19  Pedro Alves  <palves@redhat.com>
645
646         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
647         (read_index_from_section): Add cast to 'char *'.
648
649 2013-04-19  Pedro Alves  <palves@redhat.com>
650
651         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
652
653 2013-04-19  Pedro Alves  <palves@redhat.com>
654
655         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
656
657 2013-04-19  Pedro Alves  <palves@redhat.com>
658
659         * record-full.c (record_full_get_bookmark): Change local 'ret'
660         type to char * and add cast to gdb_byte *.
661         (record_full_goto_bookmark): Handle 'bookmark' argument as a
662         string.
663         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
664
665 2013-04-19  Pedro Alves  <palves@redhat.com>
666
667         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
668         * python/py-prettyprint.c (print_string_repr): Change type of
669         'output' local to char *.  Add cast to gdb_byte * in
670         LA_PRINT_STRING call.
671         (print_children): Change type of 'output' local to char *.
672         * python/py-value.c (valpy_string): Add cast to const char * in
673         PyUnicode_Decode call.
674
675 2013-04-19  Pedro Alves  <palves@redhat.com>
676
677         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
678         and change its type to 'const char *'.  Adjust.
679         (mips_send_packet): Add cast to 'char *', and remove cast to
680         'unsigned char *'.
681         (mips_receive_packet): Remove cast to 'unsigned char *'.
682         (mips_load_srec): Use bfd_byte.
683         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
684         (pmon_checkset): Make 'value' parameter unsigned.
685
686 2013-04-19  Pedro Alves  <palves@redhat.com>
687
688         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
689
690 2013-04-19  Pedro Alves  <palves@redhat.com>
691
692         * remote.c (remote_write_bytes_aux, compare_sections_command)
693         (remote_read_qxfer)
694         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
695         (remote_hostio_readlink, remote_bfd_iovec_pread)
696         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
697         binary buffer, and char when buffer is used as string.
698         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
699         (trace_save, tfile_open, traceframe_walk_blocks)
700         (tfile_fetch_registers): Likewise.
701
702 2013-04-19  Pedro Alves  <palves@redhat.com>
703
704         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
705         buffer and size_t size.  Adjust.
706         * ser-base.h (ser_base_write): Adjust.
707         * ser-go32.c (cnts): Change type to size_t.
708         (dos_write): Change prototype -- take 'void *'
709         buffer and size_t size.  Adjust.
710         (dos_info): Print elements of 'cnts' as unsigned long.
711         * serial.c (serial_write): Likewise.
712         * serial.h (serial_write): Adjust.
713         (struct serial_ops) <write>: Change prototype -- take 'void *'
714         buffer and size_t size.  Adjust.
715
716 2013-04-19  Pedro Alves  <palves@redhat.com>
717
718         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
719         gdb_byte *.
720         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
721
722 2013-04-19  Pedro Alves  <palves@redhat.com>
723
724         * alpha-tdep.c (alpha_extract_return_value): Use
725         regcache_cooked_read_unsigned to read 'v0'.
726
727 2013-04-19  Pedro Alves  <palves@redhat.com>
728
729         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
730         parameters 'at', 'as' and 'offset' to uint32_t.
731
732 2013-04-19  Pedro Alves  <palves@redhat.com>
733
734         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
735         'is64' to signed 'int'.
736
737 2013-04-19  Pedro Alves  <palves@redhat.com>
738
739         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
740         parameter to int *.
741
742 2013-04-19  Pedro Alves  <palves@redhat.com>
743
744         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
745         'insnbuf' buffer type to unsigned int[].
746
747 2013-04-19  Pedro Alves  <palves@redhat.com>
748
749         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
750
751 2013-04-19  Pedro Alves  <palves@redhat.com>
752
753         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
754         unsigned long *.
755
756 2013-04-19  Pedro Alves  <palves@redhat.com>
757
758         * alpha-tdep.c (heuristic_fence_post): Change type to int.
759         (alpha_heuristic_proc_start): Adjust to check -1 instead of
760         UINT_MAX.
761         * mips-tdep.c (heuristic_fence_post): Change type to int.
762         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
763
764 2013-04-19  Pedro Alves  <palves@redhat.com>
765
766         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
767         (struct gdbarch_tdep) <cris_version>: Make unsigned.
768         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
769
770 2013-04-19  Pedro Alves  <palves@redhat.com>
771
772         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
773         it to get a string view of the byte buffer.
774         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
775         type to gdb_byte *.  Adjust.
776         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
777         Change local to char *.
778         * solib-darwin.c (find_program_interpreter): Change return type to
779         char *.  Adjust.
780         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
781         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
782         * solib-frv.c (enable_break2): Change local 'buf' to char *.
783         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
784         * solib-svr4.c (find_program_interpreter): Change return type to
785         char *.  Adjust.
786         (enable_break): Change local 'interp_name' to char *.
787         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
788         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
789         (spu_pseudo_register_write_spu): Use char for string buffer.
790         Adjust.
791         (info_spu_event_command, info_spu_signal_command): Add casts to
792         'char *'.
793
794 2013-04-19  Pedro Alves  <palves@redhat.com>
795
796         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
797         gdb_byte[].
798         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
799         * ada-lang.c (ada_value_assign): Use gdb_byte.
800         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
801         (alphanbsd_sigtramp_offset): Use gdb_byte.
802         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
803         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
804         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
805         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
806         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
807         * arm-tdep.c (arm_stub_unwind_sniffer)
808         (arm_displaced_init_closure): Use gdb_byte.
809         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
810         (arm_default_thumb_le_breakpoint)
811         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
812         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
813         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
814         * arm-wince-tdep.c (arm_wince_le_breakpoint)
815         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
816         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
817         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
818         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
819         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
820         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
821         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
822         (cris_store_return_value, cris_extract_return_value): Use
823         gdb_byte.
824         (constraint): Change type of parameter to char * from signed
825         char*.  Use gdb_byte.
826         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
827         of local buffer to gdb_byte *.
828         * dwarf2read.c (read_index_from_section): Use gdb_byte.
829         (create_dwp_hash_table): Change type of locals to gdb_byte *.
830         (add_address_entry): Change type of local buffer to gdb_byte[].
831         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
832         (frv_push_dummy_call): Use gdb_byte.
833         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
834         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
835         (hppa_hpux_supply_save_state): Use gdb_byte.
836         * hppa-tdep.c (hppa32_push_dummy_call)
837         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
838         * ia64-tdep.c (extract_bit_field, replace_bit_field)
839         (slotN_contents, replace_slotN_contents): Change type of parameter
840         to gdb_byte *.
841         (fetch_instruction, ia64_pseudo_register_write)
842         (ia64_register_to_value, ia64_value_to_register)
843         (ia64_extract_return_value, ia64_store_return_value)
844         (ia64_push_dummy_call): Use gdb_byte.
845         * m32c-tdep.c (m32c_return_value): Remove cast.
846         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
847         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
848         gdb_byte.
849         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
850         * mn10300-tdep.c (mn10300_store_return_value)
851         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
852         gdb_byte.
853         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
854         (moxie_process_record): Remove casts.
855         * ppc-ravenscar-thread.c (supply_register_at_address)
856         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
857         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
858         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
859         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
860         * remote.c (compare_sections_command): Use gdb_byte.
861         * score-tdep.c (score7_free_memblock): Change type of parameter to
862         gdb_byte *.
863         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
864         gdb_byte *.  Use gdb_byte.
865         (sh_push_dummy_call_fpu): Use gdb_byte.
866         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
867         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
868         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
869         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
870         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
871         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
872         (sh64_store_return_value, sh64_register_convert_to_virtual):
873         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
874         (sh64_pseudo_register_write): Use gdb_byte.
875         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
876         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
877         buffer.
878         (irix_current_sos): Use gdb_byte.
879         * solib-som.c (som_current_sos): Use gdb_byte.
880         * sparc-ravenscar-thread.c (supply_register_at_address)
881         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
882         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
883         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
884         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
885         'gdb_byte *'.
886         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
887         'gdb_byte *'.
888         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
889         * xstormy16-tdep.c (xstormy16_extract_return_value)
890         (xstormy16_store_return_value): Change parameter type to
891         'gdb_byte *'.  Adjust.
892         (xstormy16_push_dummy_call): Use gdb_byte.
893         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
894         (call0_analyze_prologue, execute_code): Use gdb_byte.
895
896 2013-04-19  Vladimir Kargov <kargov@gmail.com>
897             Pedro Alves  <palves@redhat.com>
898
899         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
900         value contents.
901
902 2013-04-17  Doug Evans  <dje@google.com>
903
904         * dwarf2read.c (struct signatured_type): New member type.
905         (struct attribute): Replace member signatured_type with signature.
906         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
907         (read_call_site_scope): Call follow_die_ref instead of
908         follow_die_ref_or_sig.
909         (read_structure_type): Rewrite handling of signatured types.
910         (read_enumeration_type): Ditto.
911         (read_attribute_value): Update.
912         (build_error_marker_type): New function.
913         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
914         Don't call error for bad types, just build an error marker type.
915         (dump_die_shallow): Update.
916         (follow_die_sig_1): Renamed from follow_die_sig.
917         Don't call error for bad types, instead return NULL.
918         (follow_die_sig): New function.
919         (get_signatured_type, get_DW_AT_signature_type): New functions.
920
921 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
922
923         * aarch64-tdep.c (aarch64_write_pc): Removed.
924         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
925         function.
926
927 2013-04-17  Yao Qi  <yao@codesourcery.com>
928
929         * top.c (print_gdb_configuration): Print configure-time
930         parameter on using libbabeltrace or not.
931
932 2013-04-16  Pedro Alves  <palves@redhat.com>
933
934         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
935
936 2013-04-16  Pedro Alves  <palves@redhat.com>
937
938         * common/glibc_thread_db.h: Update from upstream glibc
939         (git 568035b7874a099087b77f7bba3e36a1173787b0).
940
941 2013-04-16  Pedro Alves  <palves@redhat.com>
942
943         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
944         * common/glibc_thread_db.h: ... this new file ...
945         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
946
947 2013-04-16  Will Newton  <will.newton@gmail.com>
948             Pedro Alves  <palves@redhat.com>
949
950         PR build/11881
951
952         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
953         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
954         HAVE_THREAD_DB_H.
955
956 2013-04-16  Pedro Alves  <palves@redhat.com>
957             Eli Zaretskii  <eliz@gnu.org>
958
959         * NEWS: Mention "set foo unlimited".
960
961 2013-04-15  Doug Evans  <dje@google.com>
962
963         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
964         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
965         (create_dwo_cu_reader): Renamed from
966         create_dwo_debug_info_hash_table_reader.
967         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
968         Remove support for multiple CUs in a DWO file.
969         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
970
971         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
972         instead of phex.
973         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
974         (create_dwo_in_dwp): Ditto.
975
976 2013-04-15  Tom Tromey  <tromey@redhat.com>
977
978         * NEWS: Move recent entries into "since 7.6" section.
979
980 2013-04-15  Tom Tromey  <tromey@redhat.com>
981
982         PR c++/13588:
983         * NEWS: Update.
984         * break-catch-throw.c (struct exception_catchpoint)
985         <exception_rx, pattern>: New fields.
986         (fetch_probe_arguments, dtor_exception_catchpoint)
987         (check_status_exception_catchpoint)
988         (print_one_detail_exception_catchpoint): New functions.
989         (handle_gnu_v3_exceptions): Add "except_rx" argument.
990         Compile regular expression if needed.
991         (extract_exception_regexp): New function.
992         (catch_exception_command_1): Use extract_exception_regexp.
993         (compute_exception): Use fetch_probe_arguments.
994         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
995         and check_status fields.
996         * cp-abi.c (cplus_typename_from_type_info): New function.
997         * cp-abi.h (cplus_typename_from_type_info): Declare.
998         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
999         * gdb_regex.h (compile_rx_or_error): Declare.
1000         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
1001         comment.
1002         (init_gnuv3_ops): Set get_type_from_type_info field.
1003         * probe.c (compile_rx_or_error): Move...
1004         * utils.c (compile_rx_or_error): ... here.
1005
1006 2013-04-15  Tom Tromey  <tromey@redhat.com>
1007
1008         PR c++/15176:
1009         * NEWS: Update.
1010         * break-catch-throw.c (compute_exception): New function.
1011         (exception_funcs): New global.
1012         (_initialize_break_catch_throw): Create $_exception.
1013         * cp-abi.c (cplus_type_from_type_info): New function.
1014         * cp-abi.h (cplus_type_from_type_info): Declare.
1015         (struct cp_abi_ops) <get_type_from_type_info>: New field.
1016         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
1017         (gnuv3_get_type_from_type_info): New functions.
1018         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
1019
1020 2013-04-15  Tom Tromey  <tromey@redhat.com>
1021
1022         * break-catch-throw.c (struct exception_names): New.
1023         (exception_functions): Change type.
1024         (re_set_exception_catchpoint): Look for SDT probes.
1025
1026 2013-04-15  Tom Tromey  <tromey@redhat.com>
1027
1028         PR c++/10119:
1029         * break-catch-throw.c (exception_functions): New global.
1030         (gnu_v3_exception_catchpoint_ops): Move earlier.
1031         (struct exception_catchpoint): New.
1032         (classify_exception_breakpoint): Rewrite.
1033         (re_set_exception_catchpoint): New function.
1034         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
1035         Allocate a struct exception_catchpoint.
1036         (catch_exception_command_1): Update.
1037         (initialize_throw_catchpoint_ops): Set 're_set' method.
1038
1039 2013-04-15  Tom Tromey  <tromey@redhat.com>
1040
1041         * Makefile.in (SFILES): Add break-catch-throw.c
1042         (COMMON_OBS): Add break-catch-throw.o.
1043         * break-catch-throw.c: New file.
1044         * breakpoint.c: Move exception-catching code to new file.
1045         (ep_parse_optional_if_clause): No longer static.
1046         * breakpoint.h (ep_parse_optional_if_clause): Declare.
1047
1048 2013-04-15  Tom Tromey  <tromey@redhat.com>
1049
1050         PR c++/9065:
1051         * NEWS: Update.
1052         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
1053         * c-exp.y (TYPEID): New token.
1054         (exp): Add new TYPEID productions.
1055         (ident_tokens): Add "typeid".
1056         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
1057         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
1058         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
1059         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
1060         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
1061         case.
1062         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
1063         (build_std_type_info_type, gnuv3_get_typeid_type)
1064         (gnuv3_get_typeid): New functions.
1065         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
1066         new fields on ABI object.
1067         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
1068         * std-operator.def (OP_TYPEID): New.
1069
1070 2013-04-15  Tom Tromey  <tromey@redhat.com>
1071
1072         * elfread.c (elf_symtab_read): Install versioned symbol under
1073         unversioned name as well.
1074
1075 2013-04-15  Tom Tromey  <tromey@redhat.com>
1076
1077         PR c++/11990:
1078         * c-lang.c (cplus_language_defn): Use gdb_demangle.
1079         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
1080         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
1081         (gdb_demangle): New function.
1082         * cp-support.h (gdb_demangle): Declare.
1083         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
1084         (dwarf2_name): Use gdb_demangle.
1085         * gdbtypes.c (check_stub_method): Use gdb_demangle.
1086         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
1087         suffixes from name.
1088         (gnuv3_print_method_ptr): Use gdb_demangle.
1089         * jv-lang.c (java_demangle): Use gdb_demangle.
1090         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
1091         * language.c (unk_lang_demangle): Use gdb_demangle.
1092         * symtab.c (symbol_find_demangled_name)
1093         (demangle_for_lookup): Use gdb_demangle.
1094
1095 2013-04-15  Tom Tromey  <tromey@redhat.com>
1096
1097         PR c++/12824:
1098         * NEWS: Update.
1099         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
1100         New constant.
1101         (classify_exception_breakpoint): New function.
1102         (print_it_exception_catchpoint, print_one_exception_catchpoint)
1103         (print_mention_exception_catchpoint)
1104         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
1105         (catch_exception_command_1): Handle "rethrow" catchpoint.
1106         (catch_rethrow_command): New function.
1107         (_initialize_breakpoint): Add "catch rethrow" command.
1108
1109 2013-04-15  Pierre Muller  <muller@sourceware.org>
1110
1111         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
1112         set_gdbarch_write_pc as deprecated anymore.
1113
1114 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
1115
1116         * spu-tdep.c (spu_write_pc): Add empty line after local variable
1117         declarations.
1118
1119 2013-04-13  Yao Qi  <yao@codesourcery.com>
1120
1121         * ctf.c (_initialize_ctf): Include "completer.h".
1122         Call add_target_with_completer instead of add_target.
1123
1124 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1125
1126         Fix GDB regression related to PR binutils/14813.
1127         * jit.c (mem_bfd_iovec_close): Return 0 for success.
1128         * minidebug.c (lzma_close): Add return value comment.
1129         * remote.c (remote_bfd_iovec_close): Return 0 for success.
1130         * solib-spu.c (spu_bfd_iovec_close): Likewise.
1131         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
1132
1133 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1134
1135         * config.in: Regenerate.
1136
1137 2013-04-12  Tom Tromey  <tromey@redhat.com>
1138
1139         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
1140         const.
1141         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
1142         (struct die_reader_specs) <buffer>: Likewise.
1143         (die_reader_func_ftype): Make 'info_ptr' const.
1144         (struct line_header) <include_dirs, statement_program_start,
1145         statement_program_end>: Now const.
1146         (struct file_entry) <name>: Likewise.
1147         (struct partial_die_info) <sibling>: Likewise.
1148         (struct dwarf_block) <data>: Likewise.
1149         (dwarf2_read_section): Remove cast.
1150         (dwarf2_get_section_info): Make 'bufp' const.
1151         (read_index_from_section): Constify.
1152         (dw2_get_file_names_reader): Make 'info_ptr' const.
1153         (dw2_get_primary_filename_reader): Likewise.
1154         (read_comp_unit_head): Make 'info_ptr' and return type const.
1155         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
1156         Likewise.
1157         (read_abbrev_offset): Constify.
1158         (dwarf2_create_include_psymtab): Make 'name' const.
1159         (create_debug_types_hash_table): Update.
1160         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
1161         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
1162         Constify.
1163         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
1164         (load_partial_comp_unit_reader): Make 'info_ptr' const.
1165         (read_comp_units_from_section): Constify.
1166         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
1167         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
1168         const.
1169         (dwarf2_compute_name, setup_type_unit_groups): Constify.
1170         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
1171         (create_dwp_hash_table, dwarf2_ranges_read)
1172         (dwarf2_record_block_ranges): Constify.
1173         (read_die_and_children, read_die_and_siblings_1)
1174         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
1175         const.
1176         (read_full_die_1, read_full_die): Make 'info_ptr' const.
1177         (abbrev_table_read_table): Constify.
1178         (load_partial_dies): Make 'info_ptr' const.
1179         (read_partial_die, read_attribute_value, read_attribute): Make
1180         'info_ptr' and return type const.
1181         (read_address, read_initial_length)
1182         (read_checked_initial_length_and_offset, read_offset)
1183         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
1184         const.
1185         (read_direct_string): Make 'buf' and return type const.
1186         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
1187         (read_indirect_string): Make return type const.
1188         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
1189         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
1190         'info_ptr' const.
1191         (read_str_index): Make return type const.
1192         (add_include_dir): Make 'include_dir' const.
1193         (add_file_name): Make 'name' const.
1194         (dwarf_decode_line_header): Constify.
1195         (psymtab_include_file_name): Make return type const.
1196         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
1197         (dwarf2_start_subfile): Make 'filename' const.
1198         (dwarf2_const_value_attr): Make 'bytes' const.
1199         (read_signatured_type_reader): Make 'info_ptr' const.
1200         (decode_locdesc): Constify.
1201         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
1202         const.
1203         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
1204         'mac_end', and return type const.
1205         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
1206         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
1207         type const.
1208         (per_cu_header_read_in): Constify.
1209         * symfile.h (dwarf2_get_section_info): Update.
1210
1211 2013-04-12  Tom Tromey  <tromey@redhat.com>
1212
1213         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
1214
1215 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
1216
1217         * NEWS: Mention "show configuration", --configuration.
1218         * top.c (print_gdb_configuration): New function, displays the
1219         details about GDB configure-time parameters.
1220         (print_gdb_version): Mention "show configuration".
1221         * cli/cli-cmds.c (show_configuration): New function.
1222         (_initialize_cli_cmds): Add the "show configuration" command.
1223         * main.c (captured_main) <print_configuration>: New static var.
1224         <long_options>: Use it.
1225         If --configuration was given, call print_gdb_configuration.
1226
1227 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1228             Pedro Alves  <palves@redhat.com>
1229
1230         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
1231         (generated_files): Add gcore.
1232         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
1233         HAVE_NATIVE_GCORE_HOST.
1234         (gcore): New.
1235         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
1236         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
1237         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
1238         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
1239         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
1240         Add HAVE_NATIVE_GCORE_HOST.
1241         * configure: Regenerate.
1242         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
1243         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
1244         AC_CONFIG_FILES for gcore.
1245         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
1246         gdb_have_gcore.
1247         * gdb_gcore.sh: Rename to ...
1248         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
1249         and GCORE_TRANSFORM_NAME substitutions.
1250
1251         Fix parsing tabs in ${gdb_target_obs}.
1252         * configure.tgt (gdb_have_gcore): Replace case with for and if.
1253
1254 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1255
1256         * remote.c (unpush_and_perror): Add output message final dot.
1257
1258 2013-04-11  Yao Qi  <yao@codesourcery.com>
1259
1260         * tracepoint.c (tfile_interp_line): Fit parameters line and
1261         utpp in one line.
1262
1263 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
1264
1265         * solib.c (solib_map_sections): Remove code overwriting
1266         SO->SO_NAME with the bfd's filename.
1267
1268 2013-04-10  Pedro Alves  <palves@redhat.com>
1269
1270         * cli/cli-decode.c (integer_unlimited_completer): New function.
1271         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
1272         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
1273         completer.
1274         * cli/cli-setshow.c: Include "cli/cli-utils.h".
1275         (is_unlimited_literal): New function.
1276         (do_set_command): Handle literal "unlimited" arguments.
1277         * frame.c (_initialize_frame) <set backtrace limit>: Document
1278         "unlimited".
1279         * printcmd.c (_initialize_printcmd) <set print
1280         max-symbolic-offset>: Add help text.
1281         * record-full.c (_initialize_record_full) <set record full
1282         insn-number-max>: Likewise.
1283         * record.c (_initialize_record) <set record
1284         instruction-history-size, set record function-call-history-size>:
1285         Add help text.
1286         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
1287         help text.
1288         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
1289         Likewise.
1290         * source.c (_initialize_source) <set listsize>: Add help text.
1291         * utils.c (initialize_utils) <set height, set width>: Likewise.
1292         <set pagination>: Mention "set height unlimited".
1293         * valprint.c (_initialize_valprint) <set print elements, set print
1294         repeats>: Document "unlimited".
1295
1296 2013-04-10  Pedro Alves  <palves@redhat.com>
1297
1298         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
1299         instead of disconnect_tracing.
1300         * infcmd.c (detach_command, disconnect_command): Call
1301         query_if_trace_running.  Adjust.
1302         * top.c: Include "tracepoint.h".
1303         (quit_target): Delete.  Contents moved ...
1304         (quit_force): ... here.  Wrap each stage of teardown in
1305         TRY_CATCH.  Call disconnect_tracing before detaching.
1306
1307 2013-04-10  Hui Zhu  <hui@codesourcery.com>
1308             Yao Qi  <yao@codesourcery.com>
1309
1310         * configure.ac: Check libbabeltrace is installed.
1311         * config.in: Regenerate.
1312         * configure: Regenerate.
1313         * Makefile.in (LIBBABELTRACE): New.
1314         (CLIBS): Add LIBBABELTRACE.
1315         * ctf.c: Include "exec.h".
1316         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
1317         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
1318         (ctf_save_metadata_header): Define new type aliases in
1319         metadata.
1320         (ctf_write_header): Define event type "tsv_def" and "tp_def"
1321         in metadata.  Start a new faked packet for trace status.
1322         (ctf_write_status): Write trace status to CTF.
1323         (ctf_write_uploaded_tsv): Write TSV to CTF.
1324         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
1325         (ctf_write_definition_end): End the faked packet.
1326
1327         (ctx, ctf_iter, trace_dirname): New.
1328         (start_pos): New variable.
1329         (ctf_destroy, ctf_open_dir, ctf_open): New.
1330         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
1331         macros.
1332         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
1333         (ctf_fetch_registers, ctf_xfer_partial): New.
1334         (ctf_get_trace_state_variable_value): New.
1335         (ctf_get_tpnum_from_frame_event): New.
1336         (ctf_get_traceframe_address): New.
1337         (ctf_trace_find, ctf_has_stack): New.
1338         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
1339         (ctf_get_trace_status, ctf_read_status): New.
1340         (_initialize_ctf): New.
1341         * tracepoint.c (get_tracepoint_number): New
1342         (get_uploaded_tsv): Remove 'static'.
1343         (struct traceframe_info, trace_regblock_size): Move it to ...
1344         * tracepoint.h: ... here.
1345         (get_tracepoint_number): Declare it.
1346         (get_uploaded_tsv): Declare it.
1347
1348         * NEWS: Mention new configure option.
1349
1350 2013-04-10  Pedro Alves  <palves@redhat.com>
1351             Hui Zhu  <hui@codesourcery.com>
1352
1353         * breakpoint.c (dprintf_re_set): New.
1354         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
1355         to dprintf_re_set.
1356
1357 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
1358
1359         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
1360         Remove solib-svr4.o from the list.
1361
1362 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
1363
1364         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
1365         Use gdb_assert_not_reached instead of invalid boolean expression.
1366
1367 2013-04-09  Pedro Alves  <palves@redhat.com>
1368
1369         * remote.c (unpush_and_perror): New function.
1370         (readchar, remote_serial_write): Use it.
1371
1372 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
1373
1374         * NEWS: Mention new btrace RSP packets.
1375
1376 2013-04-08  Tom Tromey  <tromey@redhat.com>
1377
1378         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
1379         long.
1380
1381 2013-04-08  Tom Tromey  <tromey@redhat.com>
1382
1383         * maint.c (print_bfd_section_info): Print the section index.
1384         * symmisc.c (dump_msymbols): Print the section index.
1385
1386 2013-04-08  Tom Tromey  <tromey@redhat.com>
1387
1388         PR symtab/8424:
1389         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
1390         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
1391         * breakpoint.c (resolve_sal_pc): Update.
1392         * elfread.c (elf_gnu_ifunc_record_cache): Update.
1393         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
1394         (minsym_lookup_iterator_cb): Use it.
1395         (default_read_var_value): Update.
1396         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
1397         Update.
1398         * infcmd.c (jump_command): Update.
1399         * linespec.c (minsym_found): Update.
1400         * maint.c (maintenance_translate_address): Update.
1401         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
1402         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
1403         * parse.c (write_exp_msymbol): Update.
1404         * printcmd.c (address_info): Update.
1405         * psymtab.c (find_pc_sect_psymbol): Update.
1406         (fixup_psymbol_section): Check SYMBOL_SECTION, not
1407         SYMBOL_OBJ_SECTION.
1408         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
1409         Don't initialize SYMBOL_OBJ_SECTION.
1410         * spu-tdep.c (spu_catch_start): Update.
1411         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
1412         * symmisc.c (dump_msymbols, print_symbol): Update.
1413         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
1414         how fallback section is computed.
1415         (fixup_symbol_section): Update.
1416         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
1417         Update.
1418         (allocate_symbol, initialize_symbol, allocate_template_symbol):
1419         Initialize SYMBOL_SECTION.
1420         * symtab.h (struct general_symbol_info) <section>: Update comment.
1421         <obj_section>: Remove.
1422         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
1423         (SYMBOL_OBJFILE): New macro.
1424
1425 2013-04-08  Tom Tromey  <tromey@redhat.com>
1426
1427         * coffread.c (record_minimal_symbol): Update.
1428         * dbxread.c (record_minimal_symbol): Update.
1429         * elfread.c (record_minimal_symbol): Update.
1430         * machoread.c (macho_symtab_add_minsym): Update.
1431         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
1432         Update.
1433         * minsyms.c (prim_record_minimal_symbol): Update.
1434         (prim_record_minimal_symbol_full): Remove 'bfd_section'
1435         argument.
1436         (prim_record_minimal_symbol_and_info): Likewise.
1437         * minsyms.h (prim_record_minimal_symbol_full)
1438         (prim_record_minimal_symbol_and_info): Update.
1439         * symtab.c (allocate_symbol, initialize_symbol)
1440         (allocate_template_symbol): Initialize SYMBOL_SECTION.
1441         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
1442         Update.
1443
1444 2013-04-08  Tom Tromey  <tromey@redhat.com>
1445
1446         PR symtab/8423:
1447         * solib-som.c (som_solib_section_offsets): Use BFD section
1448         indices.  Set offsets for all sections.
1449         * somread.c (som_symtab_read): Compute BFD section for
1450         symbol.  Use prim_record_minimal_symbol_and_info.
1451         (som_symfile_read): Fix comment.
1452         (struct find_section_offset_arg): New.
1453         (find_section_offset, set_section_index): New functions.
1454         (som_symfile_offsets): Use set_section_index to compute
1455         section indices.
1456
1457 2013-04-08  Tom Tromey  <tromey@redhat.com>
1458
1459         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
1460         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
1461         gdb_bfd_section_index.
1462         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
1463         New functions.
1464         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
1465         Declare.
1466         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
1467         Update.
1468         * objfiles.c (add_to_objfile_sections_full): New function.
1469         (add_to_objfile_sections): Use it.
1470         (build_section_table): Rewrite.
1471         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
1472         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
1473         (struct objfile) <sections>: Update comment.
1474         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
1475         is NULL.
1476         (ALL_OBJSECTIONS): Use it.
1477         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1478         * solib-frv.c (frv_relocate_main_executable): Update.
1479         * solib-target.c (solib_target_relocate_section_addresses):
1480         Use gdb_bfd_section_index.
1481         * symfile.c (build_section_addr_info_from_section_table):
1482         Use gdb_bfd_section_index.
1483         (build_section_addr_info_from_bfd, place_section): Likewise.
1484         * symtab.c (fixup_section): Update.
1485         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
1486
1487 2013-04-08  Tom Tromey  <tromey@redhat.com>
1488
1489         * minsyms.h (struct bound_minimal_symbol): New.
1490         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1491         Remove objfile argument.
1492         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1493         Return bound_minimal_symbol.
1494         * minsyms.c (lookup_minimal_symbol_by_pc_1)
1495         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1496         Return bound_minimal_symbol.
1497         (in_gnu_ifunc_stub): Update.
1498         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1499         Remove 'objfile_p' argument.
1500         (lookup_solib_trampoline_symbol_by_pc): Update.
1501         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
1502         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
1503         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
1504         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
1505         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
1506         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
1507         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
1508         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
1509         stack.c, symtab.c, tui/tui-disasm.c: Update.
1510
1511 2013-04-08  Tom Tromey  <tromey@redhat.com>
1512
1513         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
1514         Use symbol's obstack, not an objfile.
1515         * coffread.c (process_coff_symbol): Update.
1516         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
1517         * jv-lang.c (add_class_symbol): Update.
1518         * mdebugread.c (new_symbol): Update.
1519         * minsyms.c (prim_record_minimal_symbol_full)
1520         (terminate_minimal_symbol_table): Update.
1521         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
1522         * stabsread.c (define_symbol, read_enum_type): Update.
1523         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
1524         Handle Ada specially.
1525         (symbol_set_language): Add 'obstack' argument.
1526         (symbol_set_names): Update.
1527         (symbol_natural_name, symbol_demangled_name): Always use
1528         ada_decode_symbol.
1529         * symtab.h (struct general_symbol_info)
1530         <language_specific::obstack>: New field.
1531         <ada_mangled>: New field.
1532         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
1533         (symbol_set_language): Update.
1534
1535 2013-04-08  Tom Tromey  <tromey@redhat.com>
1536
1537         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
1538         Take an obstack, not an objfile.
1539         (symbol_set_names): Update.
1540         * symtab.h (symbol_set_demangled_name): Update.
1541
1542 2013-04-08  Tom Tromey  <tromey@redhat.com>
1543
1544         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
1545         allocate_symbol.
1546         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
1547         (read_func_scope): Call allocate_template_symbol.
1548         (new_symbol_full): Call allocate_symbol.
1549         * jit.c (finalize_symtab): Call allocate_symbol.
1550         * jv-lang.c (add_class_symbol): Call allocate_symbol.
1551         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
1552         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1553         (common_block_end): Call allocate_symbol.
1554         * symtab.c (allocate_symbol, initialize_symbol)
1555         (allocate_template_symbol): New functions.
1556         * symtab.c (allocate_symbol, initialize_symbol)
1557         (allocate_template_symbol): Declare.
1558         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
1559
1560 2013-04-08  Pedro Alves  <palves@redhat.com>
1561             Keith Seitz  <keiths@redhat.com>
1562
1563         * breakpoint.c (create_breakpoint): Rename
1564         "parse_condition_and_thread" parameter to "parse_arg".  Update
1565         describing comment.  If !PARSE_ARG, then error out if ARG is not
1566         the empty string after extracting the location.
1567         * breakpoint.h (create_breakpoint): Rename
1568         "parse_condition_and_thread" parameter to "parse_arg".
1569
1570 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
1571
1572         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
1573
1574 2013-04-07  Yao Qi  <yao@codesourcery.com>
1575
1576         * remote.c (remote_trace_find): Change type of parameters 'addr1'
1577         and 'addr2' to CORE_ADDR.
1578         * target.c (update_current_target): Update.
1579         * target.h (struct target_ops) <to_trace_find>: Change parameter
1580         type to CORE_ADDR.
1581         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
1582         'addr2' to CORE_ADDR.
1583         (tfile_trace_find): Likewise.
1584         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
1585         Change local variable 'addr' to type CORE_ADDR.
1586         * tracepoint.h (tfind_1): Update declaration.
1587
1588 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
1589
1590         * windows-nat.c (windows_get_absolute_argv0): Move from here...
1591         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
1592         Include main.h.
1593
1594         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
1595         here...
1596         * main.h (windows_get_absolute_argv0): ...to here.
1597
1598 2013-04-05  Doug Evans  <dje@google.com>
1599
1600         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
1601         (read_cutu_die_from_dwo): Add comments.
1602         (read_structure_type): Update comment.
1603         (read_enumeration_type, read_namespace_type): Update comment.
1604         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
1605
1606 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1607
1608         Convert man pages to texinfo, new gdbinit.5 texinfo page.
1609         * Makefile.in (gdb.z): Remove.
1610         (install-only): Remove $(man1dir) and gdb.1 installation.
1611         * gdb.1: Remove.
1612
1613 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1614
1615         Fix compatibility with Linux kernel 3.8.3.
1616         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
1617         to more inner block.  Remove parsing of NUMBER from outer block.
1618         Parse NUMBER only if KEYWORD has been identified.
1619
1620 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1621
1622         Fix variable name shadowing.
1623         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
1624         filename to mapsfilename and update its uses.
1625
1626 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
1627
1628         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
1629         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
1630         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
1631         details of the problem.
1632
1633 2013-04-04  Pedro Alves  <palves@redhat.com>
1634             Hui Zhu  <hui@codesourcery.com>
1635
1636         * breakpoint.c (validate_commands_for_breakpoint): If validating a
1637         tracepoint, reset its STEP_COUNT and call validate_actionline.
1638
1639 2013-04-03  Doug Evans  <dje@google.com>
1640
1641         * dwarf2read.c (read_die_and_siblings_1): Renamed from
1642         read_die_and_siblings.
1643         (read_die_and_siblings): New function.
1644         (read_cutu_die_from_dwo): Dump die if requested.
1645         (read_die_and_children): Call read_full_die_1 and
1646         read_die_and_siblings_1.
1647         (read_full_die): Dump die if requested.
1648
1649         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
1650
1651         * dwarf2read.c (struct dwo_file): New member comp_dir.
1652         Rename member name to dwo_name.  All uses updated.
1653         (hash_dwo_file): Include comp_dir in computation.
1654         (eq_dwo_file): Ditto.
1655         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
1656         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
1657
1658         * psymtab.c (read_psymtabs_with_fullname): Don't call
1659         psymtab_to_fullname if the basenames are different.
1660
1661 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1662
1663         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
1664         New entry about "fullname" presence.
1665
1666 2013-04-03  Pedro Alves  <palves@redhat.com>
1667
1668         * NEWS: Mention x86_64/Cygwin as new native configuration.
1669
1670 2013-04-02  Doug Evans  <dje@google.com>
1671
1672         * dwarf2read.c (read_structure_type): Fix typo in comment.
1673
1674 2013-04-02  Pedro Alves  <palves@redhat.com>
1675
1676         * NEWS: Mention "set/show debug aarch64", "set/show debug
1677         coff-pe-read" and "set/show debug mach-o".
1678
1679 2013-04-02  Pedro Alves  <palves@redhat.com>
1680
1681         * NEWS: Mention "set/show remote trace-buffer-size-packet".
1682
1683 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
1684
1685         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
1686         gdb_string.h is now in common/.
1687
1688 2013-04-02  Pedro Alves  <palves@redhat.com>
1689
1690         * NEWS: Move "set debug notification" and "set trace-buffer-size"
1691         under "New options".
1692
1693 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1694
1695         Revert this patch:
1696         PR gdb/15275
1697         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1698
1699 2013-04-02  Pedro Alves  <palves@redhat.com>
1700
1701         PR gdb/15275
1702
1703         * remote.c (send_interrupt_sequence): Use remote_serial_write.
1704         (remote_serial_write): New function.
1705         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
1706
1707 2013-04-01  Jiong Wang  <jiwang@tilera.com>
1708
1709         * NEWS: Mention TILE-Gx in "New native configurations" and
1710         "New targets" sections. 
1711
1712 2013-04-01  Doug Evans  <dje@google.com>
1713
1714         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
1715         (process_enumeration_scope): Simplify.
1716
1717         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
1718         type_unit_group ...
1719         (struct signatured_type): ... to here.
1720         (sig_type_ptr): New typedef.
1721         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
1722         out of union 't'.  All uses updated.
1723         (dw2_get_file_names_reader): Assert not called for a type unit.
1724         (dw2_get_file_names): Assert not called for a type unit or type
1725         unit group.
1726         (build_type_psymtabs_reader): Assert called for a type unit.
1727         (build_type_psymtab_dependencies): Assert called for a type unit group.
1728
1729         * dwarf2read.c (free_dwo_file): Add comment.
1730         (dwarf2_per_objfile_free): Unref dwp bfd.
1731
1732 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
1733
1734         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
1735         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
1736         (read_pe_exported_syms): Remove unused 'exportix'.
1737         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
1738         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
1739         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
1740
1741 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
1742
1743         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
1744         (print_it_watchpoint): Remove unused 'bl'.
1745         (say_where): Remove unused 'uiout'.
1746         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
1747         (bkpt_breakpoint_hit): Remove unused 'b'.
1748         (internal_bkpt_print_it): Remove unused 'uiout'.
1749         * buildsym.c (augment_type_symtab): Remove unused 'i'.
1750
1751 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1752
1753         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
1754         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
1755
1756 2013-03-29  Doug Evans  <dje@google.com>
1757
1758         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
1759         Delete arg is_dwp.  All callers updated.
1760         (open_dwp_file): New function.
1761         (open_and_init_dwp_file): Call it.
1762         (get_dwp_file): New function.
1763         (lookup_dwo_cutu): Call it.
1764
1765         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
1766         unnecessary, cleanup.
1767
1768         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
1769
1770         * dwarf2read.c (read_cutu_die_from_dwo): New function.
1771         (lookup_dwo_unit): New function.
1772         (init_cutu_and_read_dies): Move DWO handling to new functions.
1773
1774         * dwarf2read.c (struct signatured_type): Tweak comment.
1775         (struct dwo_unit): Tweak comment.
1776         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
1777         (create_dwo_debug_info_hash_table): Tweak comment.
1778         (dwarf2_per_cu_offset_and_type): Tweak comment.
1779
1780         * dwarf2read.c (lookup_signatured_type): Remove complaint about
1781         missing .debug_types section.
1782
1783 2013-03-29  Yao Qi  <yao@codesourcery.com>
1784
1785         * corelow.c: Include "completer.h".
1786         (_initialize_corelow): Call add_target_with_completer with
1787         argument 'filename_completer'.
1788         * tracepoint.c: Likewise.
1789         * exec.c (_initialize_exec): Likewise.
1790         * target.c (add_target): Rename to ...
1791         (add_target_with_completer): ... this.  Call set_cmd_completer
1792         if parameter completer is not NULL.
1793         (add_target): New.
1794         * target.h: Include "command.h".
1795         (add_target_with_completer): Declare it.
1796
1797 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
1798
1799         * coffread.c (is_import_fixup_symbol): New function.
1800         (record_minimal_symbol): Use is_import_fixup_symbol to
1801         detect import fixup symbols, and discard them.
1802
1803 2013-03-28  Doug Evans  <dje@google.com>
1804
1805         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
1806         types hash table until we know we need it.
1807
1808         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
1809         index numbers.
1810
1811         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
1812         All callers updated.
1813         (dw2_print_stats): Print #read CUs too.
1814         (dump_die_shallow): Print signatured types better.
1815
1816         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
1817         info_or_types_section to section.  All uses updated.
1818         (struct dwo_unit): Ditto.
1819
1820 2013-03-28  Pedro Alves  <palves@redhat.com>
1821
1822         * NEWS (New options): New section.
1823         (New options): Mention set/show remote trace-status-packet.
1824         * remote.c (PACKET_qTStatus): New enumeration value.
1825         (remote_get_trace_status): Skip sending qTStatus if the packet is
1826         disabled.  Use packet_ok.
1827         (_initialize_remote): Register a configuration command for
1828         qTStatus packet.
1829
1830 2013-03-28  Doug Evans  <dje@google.com>
1831
1832         * symfile.c (find_separate_debug_file): Add comment.
1833         (terminate_after_last_dir_separator): Tweak comment.
1834
1835         * dwarf2read.c (create_partial_symtab): Add forward decl.
1836         (create_partial_symtab): Move to be closer to other psymtab functions.
1837         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
1838
1839         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
1840         (compute_symtab_includes): Remove unnecessary forward declaration.
1841         (die_needs_namespace): Add comment marking group of functions for
1842         dwarf2 name computation.
1843
1844         * typeprint.c (_initialize_typeprint): Improve type help text.
1845
1846         * python/python.c (finish_python_initialization): Provide suggestion
1847         for how to tell gdb to find its python files.
1848
1849 2013-03-28  Pedro Alves  <palves@redhat.com>
1850
1851         PR gdb/15294
1852
1853         * source.c (_initialize_source): Change back "set listsize" to an
1854         integer command.
1855
1856 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
1857
1858         PR gdb/15275
1859         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1860
1861 2013-03-27  Pedro Alves  <palves@redhat.com>
1862
1863         * top.c (history_size): Rename to ...
1864         (history_size_setshow_var): ... this.  Add comment.
1865         (show_commands): Use readline's 'history_length' instead of
1866         computing the history length by calling history_get in a loop.
1867         (set_history_size_command): Error out for sizes over INT_MAX.
1868         Restore previous history size on invalid size.
1869         (init_history): If HISTSIZE is negative, leave the history size as
1870         zero.  Add comments.
1871         (init_main): Adjust.
1872
1873 2013-03-27  Pedro Alves  <palves@redhat.com>
1874
1875         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
1876         coff_pe_read" command to "set debug coff-pe-read".
1877
1878 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
1879
1880         * record.c (command_size_to_target_size): Fix size comparison.
1881         Change parameter type from pointer to integer to integer.
1882         Update all users.
1883
1884 2013-03-27  Pierre Muller  <muller@sourceware.org>
1885
1886         * windows-nat.c (handle_output_debug_string): Avoid typecast
1887         from integer of different size warning.
1888
1889 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
1890
1891         * windows-nat.c (handle_output_debug_string): Add empty line
1892         after local block variable definition.
1893
1894 2013-03-26  Pedro Alves  <palves@redhat.com>
1895
1896         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
1897         (net_open): Make 'polls' local unsigned.
1898
1899 2013-03-26  Pedro Alves  <palves@redhat.com>
1900
1901         * remote.c (_initialize_remote): Make "set remoteaddresssize"
1902         a zuinteger command instead of uinteger.
1903
1904 2013-03-26  Pedro Alves  <palves@redhat.com>
1905
1906         * record-full.c (record_full_insn_num): Make it unsigned.
1907         (record_full_check_insn_num, record_full_message)
1908         (record_full_registers_change, record_full_xfer_partial): Remove
1909         record_full_insn_max_num check (it's always != 0).
1910         (record_full_info, record_full_restore): Use %u as format string.
1911         (): Use %u as format string.
1912         (set_record_full_insn_max_num): Remove record_full_insn_max_num
1913         check (it's always != 0).
1914
1915 2013-03-26  Pedro Alves  <palves@redhat.com>
1916
1917         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
1918         and "set dcache size" commands zuinteger instead of uinteger.
1919
1920 2013-03-26  Pedro Alves  <palves@redhat.com>
1921
1922         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
1923         command zuinteger instead of uinteger.
1924
1925 2013-03-26  Pedro Alves  <palves@redhat.com>
1926
1927         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
1928         zuinteger instead of uinteger.
1929
1930 2013-03-26  Pedro Alves  <palves@redhat.com>
1931
1932         * record.c (record_insn_history_size_setshow_var)
1933         (record_call_history_size_setshow_var): New globals.
1934         (command_size_to_target_size): New function.
1935         (cmd_record_insn_history, cmd_record_call_history): Use
1936         command_size_to_target_size instead of cast.
1937         (validate_history_size, set_record_insn_history_size)
1938         (set_record_call_history_size): New functions.
1939         (_initialize_record): Install set_record_insn_history_size and
1940         set_record_call_history_size as "set" hooks of "set record
1941         instruction-history-size" and "set record
1942         function-call-history-size".
1943
1944 2013-03-26  Pedro Alves  <palves@redhat.com>
1945
1946         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
1947         use with history_max_entries use.  Remove FIXME note.
1948
1949 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
1950
1951         * record-btrace.c (record_btrace_close): Call
1952         record_btrace_auto_disable.
1953
1954 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
1955
1956         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
1957
1958 2013-03-25  Doug Evans  <dje@google.com>
1959
1960         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
1961
1962 2013-03-25  Tom Tromey  <tromey@redhat.com>
1963
1964         PR symtab/11462:
1965         * c-exp.y (exp): Add new productions for destructors after '.' and
1966         '->'.
1967         (write_destructor_name): New function.
1968
1969 2013-03-25  Tom Tromey  <tromey@redhat.com>
1970
1971         PR c++/9197:
1972         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
1973         value_struct_elt, not lookup_struct_elt_type.
1974         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1975         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
1976         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
1977
1978 2013-03-25  Yao Qi  <yao@codesourcery.com>
1979
1980         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
1981         instead of '_mkdir'.
1982
1983 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
1984
1985         * windows-nat.c (windows_get_absolute_argv0): New function.
1986         * windows-nat.h: Add its prototype.
1987
1988         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
1989         Use IS_DIR_SEPARATOR instead of looking for a character inside
1990         SLASH_STRING.  Include filenames.h.
1991         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
1992         relocate_gdb_directory works when passed gdb_program_name.
1993         Include windows-nat.h.
1994
1995 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1996
1997         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
1998         * remote.c (trace_error): Remove the special handling of '2'.
1999         (readchar) <SERIAL_EOF>
2000         (readchar) <SERIAL_ERROR>
2001         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
2002         (remote_get_trace_status): Call throw_exception if EX is
2003         TARGET_CLOSE_ERROR.
2004         * utils.c (perror_with_name): Rename to ...
2005         (throw_perror_with_name): ... here.  New parameter errcode, describe it
2006         in the function comment.
2007         (perror_with_name): New function wrapper.
2008         * utils.h (enum errors): New stub declaration.
2009         (throw_perror_with_name): New declaration.
2010
2011 2013-03-22  Pedro Alves  <palves@redhat.com>
2012             Yao Qi  <yao@codesourcery.com>
2013             Mark Kettenis  <kettenis@gnu.org>
2014
2015         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
2016         Don't let the user set the value to UINT_MAX directly.
2017         <var_integer>: Don't let the user set the value to INT_MAX
2018         directly.
2019
2020 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2021
2022         * remote.c (remote_unpush_target): New function.
2023         (remote_open_1): Remove two pop_target calls, update one comment, add
2024         comment to target_preopen call.  Replace pop_target call by
2025         remote_unpush_target call.
2026         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
2027         pop_target calls by remote_unpush_target calls.
2028
2029 2013-03-22  Pedro Alves  <palves@redhat.com>
2030
2031         * linux-nat.c (linux_child_follow_fork): Don't call
2032         linux_enable_event_reporting.
2033         (linux_handle_extended_wait): Don't call
2034         linux_enable_event_reporting.
2035
2036 2013-03-22  Pedro Alves  <palves@redhat.com>
2037
2038         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
2039         use it to rewrite the trampoline buffers with type gdb_byte[], and
2040         undefine the macro.  Remove char* cast.
2041
2042 2013-03-21  Doug Evans  <dje@google.com>
2043
2044         New commands "mt set per-command {space,time,symtab} {on,off}".
2045         * NEWS: Add entry.
2046         * event-top.c: #include "maint.h".
2047         * main.c: #include "maint.h".
2048         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
2049         timeval-utils.h, maint.h, cli/cli-setshow.h.
2050         (per_command_time, per_command_space): New static globals.
2051         (per_command_symtab): New static global.
2052         (per_command_setlist, per_command_showlist): New static globals.
2053         (struct cmd_stats): Move here from utils.c.
2054         (set_per_command_time): Renamed from set_display_time in utils.c
2055         and moved here.  All callers updated.
2056         (set_per_command_space): Renamed from set_display_space in utils.c
2057         and moved here.  All callers updated.
2058         (count_symtabs_and_blocks): New function.
2059         (report_command_stats): Moved here from utils.c.  Add support for
2060         printing symtab stats.  Only print data if enabled before command
2061         executed.
2062         (make_command_stats_cleanup): Ditto.
2063         (sert_per_command_cmd, show_per_command_cmd): New functions.
2064         (_initialize_maint_cmds): Add new commands
2065         mt set per-command {space,time,symtab} {on,off}.
2066         * maint.h: New file.
2067         * top.c: #include "maint.h".
2068         * utils.c (reset_prompt_for_continue_wait_time): New function.
2069         (get_prompt_for_continue_wait_time): New function.
2070         * utils.h (reset_prompt_for_continue_wait_time): Declare
2071         (get_prompt_for_continue_wait_time): Declare.
2072         (make_command_stats_cleanup): Moved to maint.h.
2073         (set_display_time, set_display_space): Moved to maint.h and renamed
2074         to set_per_command_time, set_per_command_space.
2075         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
2076         parse_binary_operation and made non-static.  Don't call error,
2077         just return an error marker.  All callers updated.
2078         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
2079
2080 2013-03-21  Tom Tromey  <tromey@redhat.com>
2081
2082         * symfile.c (alloc_section_addr_info): Update header.  Don't set
2083         'num_sections' field.
2084         (build_section_addr_info_from_section_table): Set 'num_sections'.
2085         (build_section_addr_info_from_bfd): Likewise.
2086         (build_section_addr_info_from_objfile): Remove dead loop
2087         condition.
2088         (free_section_addr_info): Unconditionally call xfree.
2089         (relative_addr_info_to_section_offsets, addrs_section_sort)
2090         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
2091         condition.
2092         (syms_from_objfile_1): Remove dead 'if' condition.  Check
2093         'num_sections'.
2094         (add_symbol_file_command): Set 'num_sections'.
2095         * symfile-mem.c (symbol_file_add_from_memory): Set
2096         'num_sections'.
2097         * somread.c (som_symfile_offsets): Remove dead loop condition.
2098         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
2099         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
2100
2101 2013-03-21  Tom Tromey  <tromey@redhat.com>
2102
2103         * tracepoint.h (decode_agent_options): Add 'trace_string'
2104         argument.
2105         * tracepoint.c (decode_agent_options): Add 'trace_string'
2106         argument.
2107         (validate_actionline): Update.
2108         (collect_symbol): Add 'trace_string' argument.
2109         (struct add_local_symbols_data) <trace_string>: New field.
2110         (do_collect_symbol): Update.
2111         (add_local_symbols): Add 'trace_string' argument.
2112         (encode_actions_1): Update.
2113         (trace_dump_actions): Update.
2114         * dwarf2loc.c (access_memory): Update.
2115         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
2116         * ax-general.c (new_agent_expr): Update.
2117         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
2118         (gen_trace_for_return_address): Add argument.
2119         (trace_kludge, trace_string_kludge): Remove.
2120         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
2121         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
2122         (gen_trace_for_var): Add 'trace_string' argument.
2123         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
2124         (gen_printf, agent_eval_command_one): Update.
2125
2126 2013-03-21  Tom Tromey  <tromey@redhat.com>
2127
2128         PR exp/15109:
2129         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
2130         Handle FILENAME token.
2131
2132 2013-03-21  Tom Tromey  <tromey@redhat.com>
2133
2134         * c-exp.y (YYPRINT): Define.
2135         (c_print_token): New function.
2136
2137 2013-03-21  Tom Tromey  <tromey@redhat.com>
2138
2139         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
2140
2141 2013-03-21  Yao Qi  <yao@codesourcery.com>
2142
2143         * ctf.c: Include "gdb_stat.h".
2144         [USE_WIN32API]: New macro 'mkdir'.
2145         (ctf_start): Use permission bits macros if they are defined.
2146
2147 2013-03-20  Keith Seitz  <keiths@redhat.com>
2148
2149         * breakpoint.h (struct breakpoint): Add comment to
2150         extra_string indicating that this member is mallod'd.
2151         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
2152
2153 2013-03-20  Pedro Alves  <palves@redhat.com>
2154
2155         PR gdb/15289
2156
2157         * cli/cli-setshow.c (do_set_command)
2158         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
2159         the result of parsing the command argument.  Throw error if the
2160         value is greater than UINT_MAX.  Print the invalid value with
2161         plongest.
2162         <var_integer, var_zinteger>: Use LONGEST for variable holding the
2163         result of parsing the command argument.  Throw error if the value
2164         is greater than INT_MAX, not greater or equal.  Also throw error
2165         if the value is less than INT_MIN.  Print the invalid value with
2166         plongest.
2167         <var_zuinteger_unlimited>: Throw error if the value is greater
2168         than INT_MAX, not greater or equal.
2169         (do_show_command) <var_integer, var_zinteger,
2170         var_zuinteger_unlimited>: Use %d for printing int, not %u.
2171
2172 2013-03-20  Tom Tromey  <tromey@redhat.com>
2173
2174         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
2175         if possible.
2176         * dwarf2read.c (read_func_scope): Remove old FIXME.
2177         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
2178         not LOC_COMPUTED.
2179         * findvar.c (symbol_read_needs_frame, default_read_var_value):
2180         Unconditionally call via computed ops, if possible.
2181         * printcmd.c (address_info): Unconditionally call via computed ops,
2182         if possible.
2183         * stack.c (read_frame_arg): Unconditionally call via computed ops,
2184         if possible.
2185         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
2186         * tracepoint.c (scope_info): Unconditionally call via computed ops,
2187         if possible.
2188
2189 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2190             Tom Tromey  <tromey@redhat.com>
2191
2192         PR symtab/8421:
2193         * coffread.c (coff_register_index): New global.
2194         (process_coff_symbol, coff_read_enum_type): Set
2195         SYMBOL_ACLASS_INDEX.
2196         (_initialize_coffread): Initialize new global.
2197         * dwarf2loc.c (locexpr_find_frame_base_location)
2198         (dwarf2_block_frame_base_locexpr_funcs)
2199         (loclist_find_frame_base_location)
2200         (dwarf2_block_frame_base_loclist_funcs): New.
2201         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
2202         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
2203         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
2204         (dwarf2_block_frame_base_loclist_funcs): New.
2205         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
2206         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
2207         globals.
2208         (read_func_scope): Update.
2209         (fixup_go_packaging, mark_common_block_symbol_computed)
2210         (var_decode_location, new_symbol_full, dwarf2_const_value):
2211         Set SYMBOL_ACLASS_INDEX.
2212         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
2213         (_initialize_dwarf2_read): Initialize new globals.
2214         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
2215         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
2216         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
2217         globals.
2218         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
2219         (_initialize_mdebugread): Initialize new globals.
2220         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
2221         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
2222         (stab_register_index, stab_regparm_index): New globals.
2223         (define_symbol, read_enum_type, common_block_end): Set
2224         SYMBOL_ACLASS_INDEX.
2225         (_initialize_stabsread): Initialize new globals.
2226         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
2227         globals.
2228         (MAX_SYMBOL_IMPLS): New define.
2229         (register_symbol_computed_impl, register_symbol_block_impl)
2230         (register_symbol_register_impl)
2231         (initialize_ordinary_address_classes): New functions.
2232         (_initialize_symtab): Call initialize_ordinary_address_classes.
2233         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
2234         (struct symbol_impl): New.
2235         (SYMBOL_ACLASS_BITS): New define.
2236         (struct symbol) <aclass, ops>: Remove fields.
2237         <aclass_index>: New field.
2238         (symbol_impls): Declare.
2239         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
2240         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
2241         (register_symbol_computed_impl, register_symbol_block_impl)
2242         (register_symbol_register_impl): Declare.
2243         (struct symbol_computed_ops): Add location_has_loclist.
2244         (struct symbol_block_ops): New.
2245         (SYMBOL_BLOCK_OPS): New.
2246         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
2247
2248 2013-03-20  Tom Tromey  <tromey@redhat.com>
2249
2250         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
2251         (print_partial_symbols, recursively_search_psymtabs): Use
2252         PSYMBOL_CLASS.
2253
2254 2013-03-20  Pierre Muller  <muller@sourceware.org>
2255
2256         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
2257         addtion, subtraction, multiplication and division binary operator.
2258
2259 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2260
2261         Code cleanup.
2262         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
2263         * bsd-kvm.c (bsd_kvm_close): Likewise.
2264         * bsd-uthread.c (bsd_uthread_close): Likewise.
2265         * corelow.c (core_close): Likewise.
2266         (core_close_cleanup): Remove parameter quitting from a caller.
2267         * event-top.c (async_disconnect): Likewise.
2268         * exec.c (exec_close_1): Remove parameter quitting.
2269         * go32-nat.c (go32_close): Likewise.
2270         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
2271         parameter quitting from a caller.
2272         * mips-linux-nat.c (super_close): Remove parameter quitting from the
2273         variable.
2274         (mips_linux_close): Remove parameter quitting.  Remove parameter
2275         quitting from a caller.
2276         * monitor.c (monitor_close): Remove parameter quitting.
2277         * monitor.h (monitor_close): Likewise.
2278         * record-btrace.c (record_btrace_close): Likewise.
2279         * record-full.c (record_full_close): Likewise.
2280         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
2281         it also from fprintf_unfiltered.
2282         * remote-mips.c (mips_close): Remove parameter quitting.
2283         (mips_detach): Remove parameter quitting from a caller.
2284         * remote-sim.c (gdbsim_close): Remove parameter quitting.
2285         (gdbsim_close): Remove duplicate function comment.  Remove parameter
2286         quitting and remove it also from printf_filtered.
2287         * remote.c (remote_close): Remove parameter quitting.
2288         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
2289         * target.c (update_current_target): Remove parameter int from to_close
2290         de_fault.
2291         (push_target, unpush_target, pop_target): Remove parameter quitting from
2292         a caller.
2293         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
2294         Remove parameter quitting from a caller.
2295         (target_preopen): Remove parameter quitting from a caller.
2296         (target_close): Remove parameter quitting.  Remove parameter quitting
2297         from a caller two times.  Remove parameter quitting also from
2298         fprintf_unfiltered.
2299         * target.h (struct target_ops): Remove parameter quitting and as int
2300         from fields to_xclose and to_close.
2301         (extern struct target_ops current_target):
2302         (target_close, pop_all_targets): Remove parameter quitting.  Update the
2303         comment.
2304         (pop_all_targets_above): Remove parameter quitting.
2305         * top.c (quit_target): Remove parameter quitting from a caller.
2306         * tracepoint.c (tfile_close): Remove parameter quitting.
2307         * windows-nat.c (windows_close): Remove parameter quitting.
2308
2309 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
2310
2311         * windows-nat.c (handle_output_debug_string): Replace call
2312         to string_to_core_addr with call to strtoull.
2313
2314 2013-03-20  Yao Qi  <yao@codesourcery.com>
2315
2316         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
2317         and write it to CTF metadata.
2318
2319 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
2320
2321         * windows-nat.c (handle_output_debug_string): Change type of n to
2322         SIZE_T to avoid crash on 64 bit systems.
2323
2324 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
2325
2326         * python/python-internal.h (HAVE_SNPRINTF)
2327         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
2328         about redefinition of snprintf by pyerrors.h.
2329
2330 2013-03-15  Steve Ellcey  <sellcey@mips.com>
2331
2332         * remote-sim.c (sim_command_completer): Make char arguments const.
2333
2334 2013-03-15  Tom Tromey  <tromey@redhat.com>
2335
2336         PR c++/15116:
2337         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
2338
2339 2013-03-14  Tom Tromey  <tromey@redhat.com>
2340
2341         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
2342         New fields.
2343         (get_file_crc): Move from symfile.c.
2344         (gdb_bfd_crc): New function.
2345         * gdb_bfd.h (gdb_bfd_crc): Declare.
2346         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
2347         * symfile.c (get_file_crc): Move to gdb_bfd.c.
2348         (separate_debug_file_exists): Use gdb_bfd_crc.
2349
2350 2013-03-14  Tom Tromey  <tromey@redhat.com>
2351
2352         * symfile.c (get_debug_link_info): Remove.
2353         (find_separate_debug_file_by_debuglink): Use
2354         bfd_get_debug_link_info.
2355
2356 2013-03-14  Tom Tromey  <tromey@redhat.com>
2357
2358         * symtab.c (error_in_psymtab_expansion): New function.
2359         (lookup_symbol_aux_quick)
2360         (basic_lookup_transparent_type_quick): Remove "last resort"
2361         code.  Use error_in_psymtab_expansion.
2362
2363 2013-03-14  Doug Evans  <dje@google.com>
2364             Jan Kratochvil  <jan.kratochvil@redhat.com>
2365
2366         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
2367         any successful compare_filenames_for_search or FILENAME_CMP.
2368         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2369         * symtab.c (iterate_over_some_symtabs): Likewise.
2370
2371 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2372
2373         * source.c (print_source_lines_base): Make a local copy of
2374         symtab_to_fullname.
2375
2376 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
2377             Jan Kratochvil  <jan.kratochvil@redhat.com>
2378
2379         * source.c (print_source_lines_base): Suppress "file" for TUI.
2380
2381 2013-03-14  Keith Seitz  <keiths@redhat.com>
2382             Alan Matsuoka  <alanm@redhat.com>
2383
2384         PR c++/15203
2385         PR c++/15210
2386         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
2387         TYPE_CODE_METHOD.
2388         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
2389         symbols.
2390
2391 2013-03-14  Yao Qi  <yao@codesourcery.com>
2392
2393         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
2394         status to tfile if trace is stopped by command 'tstop'.
2395
2396 2013-03-14  Yao Qi  <yao@codesourcery.com>
2397
2398         * tracepoint.c (tfile_write_status): Write trace notes and user
2399         name into tfile if they are not NULL.
2400
2401 2013-03-14  Hui Zhu  <hui@codesourcery.com>
2402             Yao Qi  <yao@codesourcery.com>
2403
2404         * Makefile.in (REMOTE_OBS): Add ctf.o.
2405         (SFILES): Add ctf.c.
2406         (HFILES_NO_SRCDIR): Add ctf.h.
2407         * ctf.c, ctf.h: New files.
2408         * tracepoint.c: Include 'ctf.h'.
2409         (collect_pseudocommand): Remove static.
2410         (trace_save_command): Parse option "-ctf".
2411         Produce different trace file writers per option.
2412         Adjust output message.
2413         (trace_save_tfile, trace_save_ctf): New.
2414         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
2415         * mi/mi-main.c: Include 'ctf.h'.
2416         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
2417         trace_save_tfile or trace_save_ctf.
2418         * NEWS: Mention these changes.
2419
2420 2013-03-14  Yao Qi  <yao@codesourcery.com>
2421
2422         * tracepoint.c (trace_file_writer_xfree): New.
2423         (struct tfile_writer_data): New.
2424         (tfile_dtor, tfile_can_target_save, tfile_start): New.
2425         (tfile_write_header, tfile_write_regblock_type): New.
2426         (tfile_write_status, tfile_write_uploaded_tsv): New.
2427         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
2428         (tfile_write_raw_data, (tfile_end): New.
2429         (tfile_write_ops): New global variable.
2430         (TRACE_WRITE_R_BLOCK): New macro.
2431         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
2432         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
2433         (TRACE_WRITE_V_BLOCK): New macro.
2434         (trace_save): Add extra one parameter WRITER.  Make it static.
2435         Use WRITER to writer trace.
2436         (tfile_trace_file_writer_new): New.
2437         (trace_save_command): Caller update.
2438         (trace_save_tfile): Write trace data in TFILE format.
2439         * tracepoint.h (struct trace_frame_write_ops): New.
2440         (struct trace_file_write_ops): New.
2441         (struct trace_file_writer): New.
2442         (trace_save): Remove its declaration.
2443         (trace_save_tfile): Declare it.
2444         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
2445         instead of trace_save.
2446
2447 2013-03-13  Pedro Alves  <palves@redhat.com>
2448
2449         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
2450
2451 2013-03-13  Pedro Alves  <palves@redhat.com>
2452
2453         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
2454         commented out code.
2455         * demangle.c (current_demangling_style_string): Make it const.
2456         (set_demangling_command): Assert the demangling style is known.
2457         Remove all handling of unknown styles.  Set
2458         'current_demangling_style_string' to an element of the
2459         demangling_style_names array.
2460         (set_demangling_style): Delete.
2461         (_initialize_demangler): Set current_demangling_style_string to the
2462         element of the demangling_style_names array that corresponds to
2463         the default demangling style.  Remove FIXME note.  Don't call
2464         set_demangling_style.
2465         * gdb-demangle.h (set_demangling_style): Remove declaration.
2466
2467 2013-03-13  Pedro Alves  <palves@redhat.com>
2468
2469         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
2470         fields const.
2471         (ada_make_symbol_completion_list): Make "text0" parameter const.
2472         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
2473         * breakpoint.c (condition_completer): Make "text" and "word"
2474         parameters const.  Adjust.
2475         (check_tracepoint_command): Adjust to validate_actionline
2476         prototype change.
2477         (catch_syscall_completer): Make "text" and "word" parameters
2478         const.
2479         * cli/cli-cmds.c (show_user): Make "comname" local const.
2480         (valid_command_p): Make "command" parameter const.
2481         (alias_command): Make "alias_prefix" and "command_prefix" locals
2482         const.
2483         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
2484         (add_alias_cmd): Make "name" and "oldname" parameters const.
2485         Adjust.  No longer make copy of OLDNAME.
2486         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
2487         (add_setshow_cmd_full, add_setshow_enum_cmd)
2488         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2489         (add_setshow_filename_cmd, add_setshow_string_cmd)
2490         (add_setshow_string_noescape_cmd)
2491         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2492         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2493         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
2494         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
2495         Make "name" parameter const.
2496         (help_cmd): Rename "command" parameter to "arg".  New const local
2497         "command".
2498         (find_cmd): Make "command" parameter const.
2499         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
2500         deprecated_cmd_warning prototype change.
2501         (undef_cmd_error): Make "cmdtype" parameter const.
2502         (lookup_cmd): Make "line" parameter const.
2503         (deprecated_cmd_warning): Change type of "text" parameter to
2504         pointer to const char, from pointer to pointer to char.  Adjust.
2505         (lookup_cmd_composition): Make "text" parameter const.
2506         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
2507         parameters const.
2508         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
2509         const.
2510         * cli/cli-script.c (validate_comname): Make "tem" local const.
2511         (define_command): New const local "tem_c".  Use it in calls to
2512         lookup_cmd.
2513         (document_command): Make "tem" and "comfull" locals const.
2514         (show_user_1): Make "prefix" and "name" parameters const.
2515         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
2516         const.
2517         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
2518         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
2519         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
2520         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
2521         (complete_on_enum, add_setshow_enum_cmd)
2522         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2523         (add_setshow_filename_cmd, add_setshow_string_cmd)
2524         (add_setshow_string_noescape_cmd)
2525         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2526         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2527         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2528         Change prototypes, constifying strings.
2529         * completer.c (noop_completer, filename_completer): Make "text"
2530         and "prefix" parameters const.
2531         (location_completer, expression_completer)
2532         (complete_line_internal): Make "text" and "prefix" parameters
2533         const and adjust.
2534         (command_completer, signal_completer): Make "text" and "prefix"
2535         parameters const.
2536         * completer.h (noop_completer, filename_completer)
2537         (expression_completer, location_completer, command_completer)
2538         (signal_completer): Change prototypes.
2539         * corefile.c (complete_set_gnutarget): Make "text" and "word"
2540         parameters const.
2541         * cp-abi.c (cp_abi_completer): Likewise.
2542         * expression.h (parse_expression_for_completion): Change
2543         prototype.
2544         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
2545         parameters const.
2546         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
2547         * infrun.c (handle_completer): Make "text" and "word" parameters
2548         const.
2549         * interps.c (interpreter_completer): Make "text" and "word"
2550         parameters const.
2551         * language.h (struct language_defn)
2552         <la_make_symbol_completion_list>: Make "text" and "word"
2553         parameters const.
2554         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
2555         (parse_exp_in_context): Rename to ...
2556         (parse_exp_in_context_1): ... this.
2557         (parse_exp_in_context): Reimplement, with const hack from
2558         parse_exp_1.
2559         (parse_expression_for_completion): Make "string" parameter const.
2560         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
2561         to pointer to const char.  Adjust.
2562         (print_command_1): Make "exp" parameter const.
2563         (output_command): Rename to ...
2564         (output_command_const): ... this.  Make "exp" parameter const.
2565         (output_command): Reimplement.
2566         (x_command): Adjust.
2567         (display_command): Rename "exp" parameter to "arg".  New "exp"
2568         local, const version of "arg".
2569         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
2570         "cmd_name" local const.
2571         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
2572         call.
2573         (cmdpy_completer): Make "text" and "word" parameters const.
2574         (gdbpy_parse_command_name): Make "prefix_text2" local const.
2575         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
2576         const.
2577         * remote.c (_initialize_remote): Make "cmd_name" local const.
2578         * symtab.c (language_search_unquoted_string): Make "text" and "p"
2579         parameters const.  Adjust.
2580         (completion_list_add_fields): Make "sym_text", "text" and "word"
2581         parameters const.
2582         (struct add_name_data) <sym_text, text, word>: Make fields const.
2583         (default_make_symbol_completion_list_break_on): Make "text" and
2584         "word" parameters const.  Adjust locals.
2585         (default_make_symbol_completion_list)
2586         (make_symbol_completion_list, make_symbol_completion_type)
2587         (make_symbol_completion_list_fn): Make "text" and "word"
2588         parameters const.
2589         (make_file_symbol_completion_list): Make "text", "word" and
2590         "srcfile" parameters const.  Adjust locals.
2591         (add_filename_to_list): Make "text" and "word" parameters const.
2592         (struct add_partial_filename_data) <text, word>: Make fields
2593         const.
2594         (make_source_files_completion_list): Make "text" and "word"
2595         parameters const.
2596         * symtab.h (default_make_symbol_completion_list_break_on)
2597         (default_make_symbol_completion_list, make_symbol_completion_list)
2598         (make_symbol_completion_type enum type_code)
2599         (make_symbol_completion_list_fn make_file_symbol_completion_list)
2600         (make_source_files_completion_list): Change prototype.
2601         * top.c (execute_command): Adjust to pass pointer to pointer to
2602         const char to lookup_cmd, and to deprecated_cmd_warning prototype
2603         change.
2604         (set_verbose): Make "cmdname" local const.
2605         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
2606         and adjust.
2607         (validate_actionline): Make "line" parameter a pointer to const
2608         char, and adjust.
2609         (encode_actions_1): Make "action_exp" local const, and adjust.
2610         (encode_actions): Adjust.
2611         (replace_comma): Delete.
2612         (trace_dump_actions): Make "action_exp" and "next_comma" locals
2613         const, and adjust.  Don't frob the action string while splitting
2614         it at commas.  Instead, make a copy of each split substring in
2615         turn.
2616         (trace_dump_command): Adjust to validate_actionline prototype
2617         change.
2618         * tracepoint.h (decode_agent_options, decode_agent_options)
2619         (encode_actions, validate_actionline): Change prototypes.
2620         * valprint.h (output_command): Delete declaration.
2621         (output_command_const): Declare.
2622         * value.c (function_destroyer): Cast const away in xfree call.
2623
2624 2013-03-13  Pedro Alves  <palves@redhat.com>
2625
2626         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
2627         rather than casting 'const char * const *' to 'const char **'.
2628         * ada-lex.l (processInt): Make "trailer" local const.  Remove
2629         'const char **' cast.
2630         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
2631         locals, and use those as strtol output pointer, instead than doing
2632         invalid casts to from 'const char **' to 'char **'.
2633         (_initialize_demangle): Remove cast.
2634         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
2635         locals, and use those as strtol output pointer, instead than doing
2636         invalid casts to from 'const char **' to 'char **'.
2637         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
2638         casts.
2639         * stap-probe.c (stap_parse_register_operand)
2640         (stap_parse_single_operand): Likewise.
2641
2642 2013-03-13  Yao Qi  <yao@codesourcery.com>
2643
2644         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
2645         the last matched 'V' blcok in trace frame.
2646
2647 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
2648
2649         * NEWS: Create a new section for the next release branch.
2650         Rename the section of the current branch, now that it has
2651         been cut.
2652
2653 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
2654
2655         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
2656         * version.in: Bump version to 7.6.50.20130312-cvs.
2657
2658 2013-03-12  Keith Seitz  <keiths@redhat.com>
2659
2660         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
2661         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
2662         Remove temporary copy of input string.
2663         (mi_execute_command_wrapper): Make "cmd" const.
2664         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
2665         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
2666         Use const strings.
2667         (mi_parse): Make "cmd" const.
2668         Use const strings.
2669         * mi/mi-parse.h (mi_parse): Make "cmd" const.
2670
2671 2013-03-12  Keith Seitz  <keiths@redhat.com>
2672
2673         * ada-lang.c (ada_read_renaming_var_value): Pass const
2674         pointer to expression string to parse_exp_1.
2675         (create_excep_cond_exprs): Likewise.
2676         * ax-gdb.c (agent_eval_command_one): Likewise.
2677         (maint_agent_printf_command): Likewise.
2678         Constify much of the string handling/parsing.
2679         * breakpoint.c (set_breakpoint_condition): Pass const
2680         pointer to expression string to parse_exp_1.
2681         (update_watchpoint): Likewise.
2682         (parse_cmd_to_aexpr): Constify string handling.
2683         Pass const pointer to parse_exp_1.
2684         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
2685         (find_condition_and_thread): Likewise.
2686         Make TOK const.
2687         (watch_command_1): Make "arg" const.
2688         Constify string handling.
2689         Copy the expression string instead of changing the input
2690         string.
2691         (update_breakpoint_location): Pass const pointer to
2692         parse_exp_1.
2693         * eval.c (parse_and_eval_address): Make "exp" const.
2694         (parse_to_comma_and_eval): Make "expp" const.
2695         (parse_and_eval): Make "exp" const.
2696         * expression.h (parse_expression): Make argument const.
2697         (parse_exp_1): Make first argument const.
2698         * findcmd.c (parse_find_args): Treat "args" as const.
2699         * linespec.c (parse_linespec): Pass const pointer to
2700         linespec_expression_to_pc.
2701         (linespec_expression_to_pc): Make "exp_ptr" const.
2702         * parse.c (parse_exp_1): Make "stringptr" const.
2703         Make a copy of the expression to pass to parse_exp_in_context until
2704         this whole interface can be constified.
2705         (parse_expression): Make "string" const.
2706         * printcmd.c (ui_printf): Treat "arg" as const.
2707         Handle const strings.
2708         * tracepoint.c (validate_actionline): Pass const pointer to
2709         all calls to parse_exp_1.
2710         (encode_actions_1): Likewise.
2711         * value.h (parse_to_comma_and_eval): Make argument const.
2712         (parse_and_eval_address): Likewise.
2713         (parse_and_eval): Likewise.
2714         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
2715         (varobj_set_value): Likewise.
2716         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
2717         constify string handling.
2718         Pass const pointers to parse_and_eval_address and
2719         parse_to_comman_and_eval.
2720         * cli/cli-utils.c (skip_to_space): Rename to ...
2721         (skip_to_space_const): ... this. Handle const strings.
2722         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
2723         skip_to_space_const.
2724         (skip_to_space_const): Declare.
2725         * common/format.c (parse_format_string): Make "arg" const.
2726         Handle const strings.
2727         * common/format.h (parse_format_string): Make "arg" const.
2728         * gdbserver/ax.c (ax_printf): Make "format" const.
2729         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
2730         of the expression string.
2731
2732 2013-03-12  Hui Zhu  <hui@codesourcery.com>
2733
2734         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
2735
2736 2013-03-12  Yao Qi  <yao@codesourcery.com>
2737             Hui Zhu  <hui@codesourcery.com>
2738
2739         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
2740         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
2741         DW_OP_deref_size.
2742
2743 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
2744
2745         * ada-lex.l (rules): Only recognize 'thread' as a
2746         delimiter when followed by numerals, as for c-exp.y.
2747         Use new rewind_to_char function to rewind the input for
2748         expression-delimiting tokens.
2749         (rewind_to_char): New function.
2750
2751 2013-03-11  Pedro Alves  <palves@redhat.com>
2752             Jan Kratochvil  <jan.kratochvil@redhat.com>
2753
2754         * configure: Regenerate.
2755         * configure.ac (check dynamic export flag): Link python test with
2756         $PYTHON_LIBS.
2757
2758 2013-03-11  Doug Evans  <dje@google.com>
2759             Keith Seitz  <keiths@redhat.com>
2760
2761         * linespec.c (find_linespec_symbols): Call find_function_symbols
2762         first, and then call lookup_prefix_sym/find_method.
2763
2764 2013-03-11  Pedro Alves  <palves@redhat.com>
2765
2766         * charset.c (convert_between_encodings): Don't cast between
2767         different pointer to pointer types.  Instead, make the 'inp' local
2768         be of the type iconv expects.
2769         (wchar_iterate): Don't cast between different pointer to pointer
2770         types.  Instead, use new pointer local of the type iconv expects.
2771         * target.c (target_read_stralloc, target_fileio_read_stralloc):
2772         Add new local of type char pointer, and use it to get a
2773         char/string view of the byte buffer, instead of casting between
2774         pointer to pointer types.
2775
2776 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2777
2778         * remote.c (remote_set_trace_buffer_size): Move != operator
2779         to the start of next line to fix an ARI warning.
2780
2781 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2782
2783         * NEWS: Add record changes.
2784
2785 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2786
2787         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
2788         the instruction history disassembly.
2789         * disasm.c (dump_insns): Omit the pc prefix, if requested.
2790         * disasm.h (DISASSEMBLY_OMIT_PC): New.
2791
2792 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2793
2794         * Makefile.in (SFILES): Add record-btrace.c
2795         (COMMON_OBS): Add record-btrace.o
2796         * record-btrace.c: New.
2797         * objfiles.c: Include btrace.h.
2798         (free_objfile): call btrace_free_objfile.
2799
2800 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2801
2802         * target.c (target_call_history, target_call_history_from,
2803         target_call_history_range): New.
2804         * target.h (target_ops) <to_call_history, to_call_history_from,
2805         to_call_history_range>: New fields.
2806         (target_call_history, target_call_history_from,
2807         target_call_history_range): New declaration.
2808         * record.c (get_call_history_modifiers, cmd_record_call_history,
2809         record_call_history_size): New.
2810         (_initialize_record): Add the "record function-call-history" command.
2811         Add "set/show record function-call-history-size" commands.
2812         * record.h (record_print_flag): New.
2813
2814 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2815
2816         * target.h (target_ops) <to_insn_history, to_insn_history_from,
2817         to_insn_history_range>: New fields.
2818         (target_insn_history): New.
2819         (target_insn_history_from): New.
2820         (target_insn_history_range): New.
2821         * target.c (target_insn_history): New.
2822         (target_insn_history_from): New.
2823         (target_insn_history_range): New.
2824         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
2825         (record_insn_history_size): New.
2826         (get_insn_number): New.
2827         (get_context_size): New.
2828         (no_chunk): New.
2829         (get_insn_history_modifiers): New.
2830         (cmd_record_insn_history): New.
2831         (_initialize_record): Add "set/show record instruction-history-size"
2832         command. Add "record instruction-history" command.
2833
2834 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2835
2836         * record.h (record_disconnect): New.
2837         (record_detach): New.
2838         (record_mourn_inferior): New.
2839         (record_kill): New.
2840         * record-full.c (record_disconnect, record_detach,
2841         record_mourn_inferior, record_kill): Move to...
2842         * record.c: ...here.
2843         (DEBUG): New.
2844         (record_stop): New.
2845         (record_unpush): New.
2846         (cmd_record_stop): Call record_stop. Replace unpush_target
2847         call with record_unpush call.
2848         (record_disconnect, record_detach): Assert that the target
2849         is of record stratum. Call record_unpush, record_stop, and
2850         DEBUG.
2851         (record_mourn_inferior, record_kill): Assert that the target
2852         is of record stratum. Call record_unpush and DEBUG.
2853
2854 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2855
2856         * record-full.h, record-full.c (record_memory_query): Rename
2857         to ...
2858         (record_full_memory_query): ...this. Update all users.
2859         (record_arch_list_add_reg): Rename to ...
2860         (record_full_arch_list_add_reg): ...this. Update all users.
2861         (record_arch_list_add_mem): Rename to ...
2862         (record_full_arch_list_add_mem): ...this. Update all users.
2863         (record_arch_list_add_end): Rename to ...
2864         (record_full_arch_list_add_end): ...this. Update all users.
2865         (record_gdb_operation_disable_set): Rename to ...
2866         (record_full_gdb_operation_disable_set): ...this.
2867         Update all users.
2868
2869 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
2870
2871         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
2872         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
2873         (RECORD_IS_REPLAY): Renamed to ...
2874         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
2875         (RECORD_FILE_MAGIC): Renamed to ...
2876         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
2877         (record_mem_entry): Renamed to ...
2878         (record_full_mem_entry): ... this. Updated all users.
2879         (record_reg_entry): Renamed to ...
2880         (record_full_reg_entry): ... this. Updated all users.
2881         (record_end_entry): Renamed to ...
2882         (record_full_end_entry): ... this. Updated all users.
2883         (record_type) <record_end, record_reg, record_mem>: Renamed
2884         to ...
2885         (record_full_type) <record_full_end, record_full_reg,
2886         record_full_mem>: ... this. Updated all users.
2887         (record_entry): Renamed to ...
2888         (record_full_entry): ... this. Updated all users.
2889         (record_core_buf_entry): Renamed to ...
2890         (record_full_core_buf_entry): ... this. Updated all users.
2891         (record_core_regbuf): Renamed to ...
2892         (record_full_core_regbuf): ... this. Updated all users.
2893         (record_core_start): Renamed to ...
2894         (record_full_core_start): ... this. Updated all users.
2895         (record_core_end): Renamed to ...
2896         (record_full_core_end): ... this. Updated all users.
2897         (record_core_buf_list): Renamed to ...
2898         (record_full_core_buf_list): ... this. Updated all users.
2899         (record_first): Renamed to ...
2900         (record_full_first): ... this. Updated all users.
2901         (record_list): Renamed to ...
2902         (record_full_list): ... this. Updated all users.
2903         (record_arch_list_head): Renamed to ...
2904         (record_full_arch_list_head): ... this. Updated all users.
2905         (record_arch_list_tail): Renamed to ...
2906         (record_full_arch_list_tail): ... this. Updated all users.
2907         (record_stop_at_limit): Renamed to ...
2908         (record_full_stop_at_limit): ... this. Updated all users.
2909         (record_insn_max_num): Renamed to ...
2910         (record_full_insn_max_num): ... this. Updated all users.
2911         (record_insn_num): Renamed to ...
2912         (record_full_insn_num): ... this. Updated all users.
2913         (record_insn_count): Renamed to ...
2914         (record_full_insn_count): ... this. Updated all users.
2915         (record_ops): Renamed to ...
2916         (record_full_ops): ... this. Updated all users.
2917         (record_core_ops): Renamed to ...
2918         (record_full_core_ops): ... this. Updated all users.
2919         (set_record_cmdlist): Renamed to ...
2920         (set_record_full_cmdlist): ... this. Updated all users.
2921         (show_record_cmdlist): Renamed to ...
2922         (show_record_full_cmdlist): ... this. Updated all users.
2923         (record_cmdlist): Renamed to ...
2924         (record_full_cmdlist): ... this. Updated all users.
2925         (record_beneath_to_resume_ops): Renamed to ...
2926         (record_full_beneath_to_resume_ops): ... this. Updated all users.
2927         (record_beneath_to_resume): Renamed to ...
2928         (record_full_beneath_to_resume): ... this. Updated all users.
2929         (record_beneath_to_wait_ops): Renamed to ...
2930         (record_full_beneath_to_wait_ops): ... this. Updated all users.
2931         (record_beneath_to_wait): Renamed to ...
2932         (record_full_beneath_to_wait): ... this. Updated all users.
2933         (record_beneath_to_store_registers_ops): Renamed to ...
2934         (record_full_beneath_to_store_registers_ops): ... this.
2935         Updated all users.
2936         (record_beneath_to_store_registers): Renamed to ...
2937         (record_full_beneath_to_store_registers): ... this.
2938         Updated all users.
2939         (record_beneath_to_xfer_partial_ops): Renamed to ...
2940         (record_full_beneath_to_xfer_partial_ops): ... this.
2941         Updated all users.
2942         (record_beneath_to_xfer_partial): Renamed to ...
2943         (record_full_beneath_to_xfer_partial): ... this.
2944         Updated all users.
2945         (record_beneath_to_insert_breakpoint): Renamed to ...
2946         (record_full_beneath_to_insert_breakpoint): ... this.
2947         Updated all users.
2948         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
2949         (record_full_beneath_to_stopped_by_watchpoint): ... this.
2950         Updated all users.
2951         (record_beneath_to_stopped_data_address): Renamed to ...
2952         (record_full_beneath_to_stopped_data_address): ... this.
2953         Updated all users.
2954         (record_beneath_to_async): Renamed to ...
2955         (record_full_beneath_to_async): ... this. Updated all users.
2956         (record_goto_insn): Renamed to ...
2957         (record_full_goto_insn): ... this. Updated all users.
2958         (record_save): Renamed to ...
2959         (record_full_save): ... this. Updated all users.
2960         (record_reg_alloc): Renamed to ...
2961         (record_full_reg_alloc): ... this. Updated all users.
2962         (record_reg_release): Renamed to ...
2963         (record_full_reg_release): ... this. Updated all users.
2964         (record_mem_alloc): Renamed to ...
2965         (record_full_mem_alloc): ... this. Updated all users.
2966         (record_mem_release): Renamed to ...
2967         (record_full_mem_release): ... this. Updated all users.
2968         (record_end_alloc): Renamed to ...
2969         (record_full_end_alloc): ... this. Updated all users.
2970         (record_end_release): Renamed to ...
2971         (record_full_end_release): ... this. Updated all users.
2972         (record_entry_release): Renamed to ...
2973         (record_full_entry_release): ... this. Updated all users.
2974         (record_list_release): Renamed to ...
2975         (record_full_list_release): ... this. Updated all users.
2976         (record_list_release_following): Renamed to ...
2977         (record_full_list_release_following): ... this.
2978         Updated all users.
2979         (record_list_release_first): Renamed to ...
2980         (record_full_list_release_first): ... this. Updated all users.
2981         (record_arch_list_add): Renamed to ...
2982         (record_full_arch_list_add): ... this. Updated all users.
2983         (record_get_loc): Renamed to ...
2984         (record_full_get_loc): ... this. Updated all users.
2985         (record_check_insn_num): Renamed to ...
2986         (record_full_check_insn_num): ... this. Updated all users.
2987         (record_arch_list_cleanups): Renamed to ...
2988         (record_full_arch_list_cleanups): ... this. Updated all users.
2989         (record_message): Renamed to ...
2990         (record_full_message): ... this. Updated all users.
2991         (record_message_wrapper): Renamed to ...
2992         (record_full_message_wrapper): ... this. Updated all users.
2993         (record_message_wrapper_safe): Renamed to ...
2994         (record_full_message_wrapper_safe): ... this. Updated all users.
2995         (record_gdb_operation_disable): Renamed to ...
2996         (record_full_gdb_operation_disable): ... this. Updated all users.
2997         (record_hw_watchpoint): Renamed to ...
2998         (record_full_hw_watchpoint): ... this. Updated all users.
2999         (record_exec_insn): Renamed to ...
3000         (record_full_exec_insn): ... this. Updated all users.
3001         (record_restore): Renamed to ...
3002         (record_full_restore): ... this. Updated all users.
3003         (record_async_inferior_event_token): Renamed to ...
3004         (record_full_async_inferior_event_token): ... this.
3005         Updated all users.
3006         (record_async_inferior_event_handler): Renamed to ...
3007         (record_full_async_inferior_event_handler): ... this.
3008         Updated all users.
3009         (record_core_open_1): Renamed to ...
3010         (record_full_core_open_1): ... this. Updated all users.
3011         (record_open_1): Renamed to ...
3012         (record_full_open_1): ... this. Updated all users.
3013         (record_open): Renamed to ...
3014         (record_full_open): ... this. Updated all users.
3015         (record_close): Renamed to ...
3016         (record_full_close): ... this. Updated all users.
3017         (record_resume_step): Renamed to ...
3018         (record_full_resume_step): ... this. Updated all users.
3019         (record_resumed): Renamed to ...
3020         (record_full_resumed): ... this. Updated all users.
3021         (record_execution_dir): Renamed to ...
3022         (record_full_execution_dir): ... this. Updated all users.
3023         (record_resume): Renamed to ...
3024         (record_full_resume): ... this. Updated all users.
3025         (record_get_sig): Renamed to ...
3026         (record_full_get_sig): ... this. Updated all users.
3027         (record_sig_handler): Renamed to ...
3028         (record_full_sig_handler): ... this. Updated all users.
3029         (record_wait_cleanups): Renamed to ...
3030         (record_full_wait_cleanups): ... this. Updated all users.
3031         (record_wait_1): Renamed to ...
3032         (record_full_wait_1): ... this. Updated all users.
3033         (record_wait): Renamed to ...
3034         (record_full_wait): ... this. Updated all users.
3035         (record_stopped_by_watchpoint): Renamed to ...
3036         (record_full_stopped_by_watchpoint): ... this. Updated all users.
3037         (record_disconnect): Renamed to ...
3038         (record_full_disconnect): ... this. Updated all users.
3039         (record_detach): Renamed to ...
3040         (record_full_detach): ... this. Updated all users.
3041         (record_mourn_inferior): Renamed to ...
3042         (record_full_mourn_inferior): ... this. Updated all users.
3043         (record_kill): Renamed to ...
3044         (record_full_kill): ... this. Updated all users.
3045         (record_stopped_data_address): Renamed to ...
3046         (record_full_stopped_data_address): ... this. Updated all users.
3047         (record_registers_change): Renamed to ...
3048         (record_full_registers_change): ... this. Updated all users.
3049         (record_store_registers): Renamed to ...
3050         (record_full_store_registers): ... this. Updated all users.
3051         (record_xfer_partial): Renamed to ...
3052         (record_full_xfer_partial): ... this. Updated all users.
3053         (record_breakpoint): Renamed to ...
3054         (record_full_breakpoint): ... this. Updated all users.
3055         (record_breakpoint_p): Renamed to ...
3056         (record_full_breakpoint_p): ... this. Updated all users.
3057         (record_breakpoints): Renamed to ...
3058         (record_full_breakpoints): ... this. Updated all users.
3059         (record_sync_record_breakpoints): Renamed to ...
3060         (record_full_sync_record_breakpoints): ... this.
3061         Updated all users.
3062         (record_init_record_breakpoints): Renamed to ...
3063         (record_full_init_record_breakpoints): ... this.
3064         Updated all users.
3065         (record_insert_breakpoint): Renamed to ...
3066         (record_full_insert_breakpoint): ... this. Updated all users.
3067         (record_remove_breakpoint): Renamed to ...
3068         (record_full_remove_breakpoint): ... this. Updated all users.
3069         (record_can_execute_reverse): Renamed to ...
3070         (record_full_can_execute_reverse): ... this. Updated all users.
3071         (record_get_bookmark): Renamed to ...
3072         (record_full_get_bookmark): ... this. Updated all users.
3073         (record_goto_bookmark): Renamed to ...
3074         (record_full_goto_bookmark): ... this. Updated all users.
3075         (record_async): Renamed to ...
3076         (record_full_async): ... this. Updated all users.
3077         (record_can_async_p): Renamed to ...
3078         (record_full_can_async_p): ... this. Updated all users.
3079         (record_is_async_p): Renamed to ...
3080         (record_full_is_async_p): ... this. Updated all users.
3081         (record_execution_direction): Renamed to ...
3082         (record_full_execution_direction): ... this. Updated all users.
3083         (record_info): Renamed to ...
3084         (record_full_info): ... this. Updated all users.
3085         (record_delete): Renamed to ...
3086         (record_full_delete): ... this. Updated all users.
3087         (record_is_replaying): Renamed to ...
3088         (record_full_is_replaying): ... this. Updated all users.
3089         (record_goto_entry): Renamed to ...
3090         (record_full_goto_entry): ... this. Updated all users.
3091         (record_goto_begin): Renamed to ...
3092         (record_full_goto_begin): ... this. Updated all users.
3093         (record_goto_end): Renamed to ...
3094         (record_full_goto_end): ... this. Updated all users.
3095         (record_goto): Renamed to ...
3096         (record_full_goto): ... this. Updated all users.
3097         (init_record_ops): Renamed to ...
3098         (init_record_full_ops): ... this. Updated all users.
3099         (record_core_resume): Renamed to ...
3100         (record_full_core_resume): ... this. Updated all users.
3101         (record_core_kill): Renamed to ...
3102         (record_full_core_kill): ... this. Updated all users.
3103         (record_core_fetch_registers): Renamed to ...
3104         (record_full_core_fetch_registers): ... this. Updated all users.
3105         (record_core_prepare_to_store): Renamed to ...
3106         (record_full_core_prepare_to_store): ... this. Updated all users.
3107         (record_core_store_registers): Renamed to ...
3108         (record_full_core_store_registers): ... this. Updated all users.
3109         (record_core_xfer_partial): Renamed to ...
3110         (record_full_core_xfer_partial): ... this. Updated all users.
3111         (record_core_insert_breakpoint): Renamed to ...
3112         (record_full_core_insert_breakpoint): ... this. Updated all users.
3113         (record_core_remove_breakpoint): Renamed to ...
3114         (record_full_core_remove_breakpoint): ... this. Updated all users.
3115         (record_core_has_execution): Renamed to ...
3116         (record_full_core_has_execution): ... this. Updated all users.
3117         (init_record_core_ops): Renamed to ...
3118         (init_record_full_core_ops): ... this. Updated all users.
3119         (cmd_record_restore): Renamed to ...
3120         (cmd_record_full_restore): ... this. Updated all users.
3121         (record_save_cleanups): Renamed to ...
3122         (record_full_save_cleanups): ... this. Updated all users.
3123         (cmd_record_start): Renamed to ...
3124         (cmd_record_full_start): ... this. Updated all users.
3125         (set_record_insn_max_num): Renamed to ...
3126         (set_record_full_insn_max_num): ... this. Updated all users.
3127         (set_record_command): Renamed to ...
3128         (set_record_full_command): ... this. Updated all users.
3129         (show_record_command): Renamed to ...
3130         (show_record_full_command): ... this. Updated all users.
3131         (_initialize_record): Renamed to ...
3132         (_initialize_record_full): ... this. Updated all users.
3133
3134 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3135
3136         * record.h: Split into this and ...
3137         * record-full.h: ... this.
3138         * record.c: Split into this and ...
3139         * record-full.c: ... this.
3140         * target.h (target_ops): Add new fields to_info_record,
3141         to_save_record, to_delete_record, to_record_is_replaying,
3142         to_goto_record_begin, to_goto_record_end, to_goto_record.
3143         (target_info_record): New.
3144         (target_save_record): New.
3145         (target_supports_delete_record): New.
3146         (target_delete_record): New.
3147         (target_record_is_replaying): New.
3148         (target_goto_record_begin): New.
3149         (target_goto_record_end): New.
3150         (target_goto_record): New.
3151         * target.c (target_info_record): New.
3152         (target_save_record): New.
3153         (target_supports_delete_record): New.
3154         (target_delete_record): New.
3155         (target_record_is_replaying): New.
3156         (target_goto_record_begin): New.
3157         (target_goto_record_end): New.
3158         (target_goto_record): New.
3159         * record.h: Declare struct cmd_list_element.
3160         (record_cmdlist): New declaration.
3161         (set_record_cmdlist): New declaration.
3162         (show_record_cmdlist): New declaration.
3163         (info_record_cmdlist): New declaration.
3164         (cmd_record_goto): New declaration.
3165         * record.c: Remove unnecessary includes.
3166         Include inferior.h.
3167         (cmd_record_goto): Remove declaration.
3168         (record_cmdlist): Now extern. Initialize.
3169         (set_record_cmdlist): Now extern. Initialize.
3170         (show_record_cmdlist): Now extern. Initialize.
3171         (info_record_cmdlist): Now extern. Initialize.
3172         (find_record_target): New.
3173         (require_record_target): New.
3174         (cmd_record_start): Update.
3175         (cmd_record_delete): Remove target-specific code.
3176         Call target_delete_record.
3177         (cmd_record_stop): Unpush any record target.
3178         (set_record_insn_max_num): Move to record-full.c
3179         (set_record_command): Add comment.
3180         (show_record_command): Add comment.
3181         (info_record_command): Update comment.
3182         Remove target-specific code.
3183         Call the record target's to_info_record.
3184         (cmd_record_start): New.
3185         (cmd_record_goto): Now extern.
3186         Remove target-specific code.
3187         Call target_goto_begin,  target_goto_end, or target_goto.
3188         (_initialize_record): Move record target ops initialization to
3189         record-full.c.
3190         Change "record" command help text.
3191         Move "record restore", "record set", and "record show" commands to
3192         record-full.c.
3193         * Makefile.in (SFILES): Add record-full.c.
3194         (HFILES_NO_SRCDIR): Add record-full.h.
3195         (COMMON_OBS): Add record-full.o.
3196         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
3197         * arm-tdep.c: Include record-full.h.
3198         * i386-linux-tdep.c: Include record-full.h instead of record.h.
3199         * i386-tdep.c: Include record-full.h.
3200         * infrun.c: Include record-full.h.
3201         * linux-record.c: Include record-full.h.
3202         * moxie-tdep.c: Include record-full.h.
3203         * record-full.c: Include record-full.h.
3204         Change module comment.
3205         (set_record_full_cmdlist): New.
3206         (show_record_full_cmdlist): New.
3207         (record_full_cmdlist): New.
3208         (record_goto_insn): New declaration.
3209         (record_save): New declaration.
3210         (record_check_insn_num): Change query string.
3211         (record_info): New.
3212         (record_delete): New.
3213         (record_is_replaying): New.
3214         (record_goto_entry): New.
3215         (record_goto_begin): New.
3216         (record_goto_end): New.
3217         (record_goto): New.
3218         (init_record_ops): Update.
3219         (init_record_core_ops): Update.
3220         (cmd_record_save): Rename to record_save. Remove target and arg checks.
3221         (cmd_record_start): New.
3222         (set_record_insn_max_num): Moved from record.c
3223         (set_record_full_command): New.
3224         (show_record_full_command): New.
3225         (_initialize_record_full): New.
3226
3227 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3228
3229         * target.h (add_deprecated_target_alias): New.
3230         * target.c (add_deprecated_target_alias): New.
3231
3232 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3233
3234         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
3235         and signal.h.
3236         (linux_supports_btrace): Add kernel and
3237         cpuid check.
3238         (kernel_supports_btrace): New function.
3239         (cpu_supports_btrace): New function.
3240         (intel_supports_btrace): New function.
3241
3242 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3243
3244         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
3245         * remote.c: Include btrace.h.
3246         (struct btrace_target_info): New struct.
3247         (remote_supports_btrace): New function.
3248         (send_Qbtrace): New function.
3249         (remote_enable_btrace): New function.
3250         (remote_disable_btrace): New function.
3251         (remote_teardown_btrace): New function.
3252         (remote_read_btrace): New function.
3253         (init_remote_ops): Add btrace ops.
3254         (enum <unnamed>): Add btrace packets.
3255         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
3256         (_initialize_remote): Add packet configuration for branch tracing.
3257
3258 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3259
3260         * features/btrace.dtd: New file.
3261         * Makefile.in (XMLFILES): Add btrace.dtd.
3262         * btrace.h (parse_xml_btrace): New declaration.
3263         * btrace.c: Include xml-support.h.
3264         (parse_xml_btrace): New function.
3265         (parse_xml_btrace_block): New function.
3266         (block_attributes): New struct.
3267         (btrace_attributes): New struct.
3268         (btrace_children): New struct.
3269         (btrace_elements): New struct.
3270
3271 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3272
3273         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
3274         (amd64_linux_enable_btrace): New.
3275         (amd64_linux_disable_btrace): New.
3276         (amd64_linux_teardown_btrace): New.
3277         (_initialize_amd64_linux_nat): Initialize btrace ops.
3278         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
3279         (i386_linux_enable_btrace): New.
3280         (i386_linux_disable_btrace): New.
3281         (i386_linux_teardown_btrace): New.
3282         (_initialize_i386_linux_nat): Initialize btrace ops.
3283         * config/i386/linux.mh: Add linux-btrace.o.
3284         * config/i386/linux64.mh: Add linux-btrace.o.
3285
3286 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3287
3288         * common/linux_btrace.h: New file.
3289         * common/linux_btrace.c: New file.
3290         * Makefile.in (SFILES): Add btrace.c.
3291         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
3292         (COMMON_OBS): Add btrace.o.
3293         (linux-btrace.o): New rule.
3294
3295 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3296
3297         * target.h: Include btrace.h.
3298         (struct target_ops) <to_supports_btrace, to_enable_btrace,
3299         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
3300         * target.c (target_supports_btrace): New function.
3301         (target_enable_btrace): New function.
3302         (target_disable_btrace): New function.
3303         (target_teardown_btrace): New function.
3304         (target_read_btrace): New function.
3305         * btrace.h: New file.
3306         * btrace.c: New file.
3307         * Makefile.in: Add btrace.c.
3308         * gdbthread.h: Include btrace.h.
3309         (struct thread_info): Add btrace field.
3310         * thread.c: Include btrace.h.
3311         (clear_thread_inferior_resources): Call target_teardown_btrace.
3312         * common/btrace-common.h: New file.
3313
3314 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3315
3316         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
3317         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
3318         kill_status to outer block.
3319
3320 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3321
3322         Fix entry-values if the callee called a noreturn function.
3323         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3324         get_frame_address_in_block.  Add new comment.
3325
3326 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3327
3328         Fix entry-values in C++ across CUs.
3329         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
3330         lookup_minimal_symbol.  Add a comment.
3331         * dwarf2read.c
3332         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
3333         DW_AT_linkage_name.
3334
3335 2013-03-08  Yao Qi  <yao@codesourcery.com>
3336
3337         * tracepoint.c (_initialize_tracepoint): Indent the code.
3338
3339 2013-03-08  Pedro Alves  <palves@redhat.com>
3340
3341         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
3342         (parse_find_args, find_command): Change type of pattern buffer
3343         locals to 'gdb_byte *'.
3344
3345 2013-03-08  Stan Shebs  <stan@codesourcery.com>
3346             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3347
3348         * NEWS: Mention set and show trace-buffer-size commands.
3349         Mention new packet.
3350         * target.h (struct target_ops): New method
3351         to_set_trace_buffer_size.
3352         (target_set_trace_buffer_size): New macro.
3353         * target.c (update_current_target): Set up new method.
3354         * tracepoint.c (trace_buffer_size): New global.
3355         (start_tracing): Send it to the target.
3356         (set_trace_buffer_size): New function.
3357         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
3358         * remote.c (remote_set_trace_buffer_size): New function.
3359         (_initialize_remote): Use it.
3360         (QTBuffer:size) New remote command.
3361         (PACKET_QTBuffer_size): New enum.
3362         (remote_protocol_features): Add an entry for
3363         PACKET_QTBuffer_size.
3364
3365 2013-03-08  Tom Tromey  <tromey@redhat.com>
3366
3367         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
3368         variable.
3369
3370 2013-03-07  Pedro Alves  <palves@redhat.com>
3371
3372         * target.c (target_read_stralloc, target_fileio_read_alloc):
3373         *Cast pointer to 'gdb_byte *' in target call.
3374
3375 2013-03-07  Pedro Alves  <palves@redhat.com>
3376
3377         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
3378         call.
3379
3380 2013-03-07  Keith Seitz  <keiths@redhat.com>
3381
3382         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
3383         (trace_pass_command): Likewise.
3384         * cli/cli-cmds.c: Include cli/cli-utils.h.
3385         (source_command): Use skip-spaces.
3386         (disassemble_command): Likewise.
3387         * findcmd.c: Include cli/cli-utils.h.
3388         (parse_find_args): Use skip_spaces.
3389         * go32-nat.c: Include cli/cli-utils.h.
3390         (go32_sldt): Use skip_spaces.
3391         (go32_sgdt): Likewise.
3392         (go32_sidt): Likewise.
3393         (go32_pde): Likewise.
3394         (go32_pte): Likewise.
3395         (go32_pte_for_address): Likewise.
3396         * infcmd.c: Include cli/cli-utils.h.
3397         (registers_info): Use skip_spaces.
3398         * linux-tdep.c (read_mapping): Use skip_spaces_const.
3399         (linux_info_proc): Likewise.
3400         * linux-thread-db.c: Include cli/cli-utils.h.
3401         (info_auto_load_libthread_db): Use skip_spaces_const.
3402         * m32r-rom.c: Include cli/cli-utils.h.
3403         (m32r_upload_command): Use skip_spaces.
3404         * maint.c: Include cli/cli-utils.h.
3405         (maintenance_translate_address): Use skip_spaces.
3406         * mi/mi-parse.c: Include cli/cli-utils.h.
3407         (mi_parse_argv): Use skip_spaces.
3408         (mi_parse): Likewise.
3409         * minsyms.c: Include cli/cli-utils.h.
3410         (msymbol_hash_iw): Use skip_spaces_const.
3411         * objc-lang.c: Include cli/cli-utils.h.
3412         (parse_selector): Use skip_spaces.
3413         (parse_method): Likewise.
3414         * python/python.c: Include cli/cli-utils.h.
3415         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
3416         (python_command)[HAVE_PYTHON]: Likewise.
3417         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
3418         * remote-m32r-sdi.c: Include cli/cli-utils.h.
3419         (m32r_load): Use skip_spaces.
3420         * serial.c: Include cli/cli-utils.h.
3421         (serial_open): Use skip_spaces_const.
3422         * stack.c: Include cli/cli-utils.h.
3423         (parse_frame_specification_1): Use skip_spaces_const.
3424         * symfile.c: Include cli/cli-utils.h.
3425         (set_ext_lang_command): Use skip_spaces.
3426         * symtab.c: Include cli/cli-utils.h.
3427         (rbreak_command): Use skip_spaces.
3428         * thread.c (thread_name_command): Use skip_spaces.
3429         * tracepoint.c (validate_actionline): Use skip_spaces.
3430         (encode_actions_1): Likewise.
3431         (trace_find_range_command): Likewise.
3432         (trace_find_outside_command): Likewise.
3433         (trace_dump_actions): Likewise.
3434
3435 2013-03-07  Pedro Alves  <palves@redhat.com>
3436
3437         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
3438         * expprint.c (print_subexp_standard): Likewise.
3439         * utils.c (host_char_to_target): Likewise.
3440         * valprint.c (generic_emit_char, generic_printstr): Likewise.
3441         * varobj.c (value_get_print_value): Change type of local to char*.
3442         Cast it gdb_byte * in call to language printer.
3443
3444 2013-03-07  Pedro Alves  <palves@redhat.com>
3445
3446         * charset.c (struct wchar_iterator) <input>: Change type to 'const
3447         gdb_byte *'.
3448         (make_wchar_iterator): Remove cast to char*.
3449         (wchar_iterate): Change type of local.
3450
3451 2013-03-07  Pedro Alves  <palves@redhat.com>
3452
3453         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
3454         for 'regcache->register_status'.
3455
3456 2013-03-07  Pedro Alves  <palves@redhat.com>
3457
3458         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
3459         int.
3460
3461 2013-03-07  Pedro Alves  <palves@redhat.com>
3462
3463         * stap-probe.c (handle_stap_probe): Add cast to char*.
3464
3465 2013-03-07  Pedro Alves  <palves@redhat.com>
3466
3467         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
3468         RECORD_MSGRCV>: Pass a signed variable to
3469         regcache_raw_read_signed, instead of an unsigned one.
3470
3471 2013-03-07  Pedro Alves  <palves@redhat.com>
3472
3473         * remote-notif.c (notif_debug): Change type to int.
3474         * remote-notif.h (notif_debug): Likewise.
3475
3476 2013-03-07  Pedro Alves  <palves@redhat.com>
3477
3478         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
3479
3480 2013-03-07  Pedro Alves  <palves@redhat.com>
3481
3482         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
3483         * remote.h (hex2bin, bin2hex): ... here.
3484         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
3485
3486 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
3487
3488         * utils.c (initialize_utils): Improve doc strings of "set/show
3489         width", "set/show height", and "set/show pagination".
3490
3491 2013-03-06  Keith Seitz  <keiths@redhat.com>
3492
3493         * ax-gdb.c (gen_printf): Make FORMAT const.
3494         * ax-gdb.h (gen_printf): Likewise.
3495         * ax-general.c (ax_string): Make STR const.
3496         * ax.h (ax_string): Likewise.
3497
3498 2013-03-06  Doug Evans  <dje@google.com>
3499
3500         * elfread.c (elf_symfile_read): Move debugging printf to more
3501         logical location.
3502
3503 2013-03-06  Pedro Alves  <palves@redhat.com>
3504
3505         * python/py-utils.c (target_string_to_unicode): Delete function.
3506         * python/python-internal.h (target_string_to_unicode): Delete
3507         declaration.
3508
3509 2013-03-06  Pierre Muller  <muller@sourceware.org>
3510
3511         * linespec.c (get_current_search_block): ARI fix, use (void)
3512         for empty parameter list.
3513
3514 2013-03-05  Doug Evans  <dje@google.com>
3515
3516         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
3517         of old ada_lookup_symbol_list.  In !full_search case, don't
3518         search superblocks.
3519         (ada_lookup_symbol_list): Delete arg full_search, all callers
3520         updated.  Call ada_lookup_symbol_list_worker.
3521         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
3522         * ada-lang.h (ada_lookup_symbol_list): Update.
3523         * language.h (language_defn): Update comment for
3524         la_iterate_over_symbols.
3525         * linespec.c (iterate_over_file_blocks): New function.
3526         (iterate_over_all_matching_symtabs): Call it.
3527         (lookup_prefix_sym): Ditto.
3528         (get_current_search_block): New function.
3529         (get_search_block): Delete.
3530         (find_label_symbols): Call get_current_search_block.
3531         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
3532         * symtab.c (iterate_over_symbols): Don't search superblocks.
3533
3534 2013-03-05  Yao Qi  <yao@codesourcery.com>
3535
3536         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
3537         parameter VAR's type from "unsigned int" to "int".
3538         * command.h (var_zuinteger_unlimited): Update its comments.
3539         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
3540
3541 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
3542
3543         * NEWS: Mention new target x86_64-*-cygwin*.
3544
3545 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
3546
3547         * configure.host: Add x86_64-*-cygwin* as host.
3548         * configure.tgt: Add x86_64-*-cygwin* as target.
3549         * config/i386/cygwin64.mh: New file.
3550
3551 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3552
3553         * linespec.c (decode_line_2): Fix duplicate request off by two message.
3554
3555 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3556
3557         * linespec.c (struct linespec_canonical_name): New.
3558         (struct linespec_state): Change canonical_names type to it.
3559         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
3560         xrealloc element size.  Initialize the different CANONICAL fields.
3561         (canonical_to_fullform): New.
3562         (filter_results): Use it.  Add variables canonical, fullform and
3563         cleanup.
3564         (struct decode_line_2_item, decode_line_2_compare_items): New.
3565         (decode_line_2): Remove variables iter and item_names, add variables
3566         items and items_count.  Modify the code for these new variables.
3567
3568 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
3569
3570         * coff-pe-read.c (read_pe_exported_syms): Don't return without
3571         calling do_cleanup.
3572
3573 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
3574
3575         * tracepoint.c (build_traceframe_info): Add code for byte order.
3576
3577 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
3578
3579         * v850-tdep.c: (v850e2_register_name): Revise system register
3580         names to match current V850E2M architecture specifications.
3581         Update register number enum comments too.
3582         
3583 2013-03-01  Jiong Wang  <jiwang@tilera.com>
3584             Pedro Alves  <palves@redhat.com>
3585
3586         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
3587         to END_ADDR.
3588         (tilegx_skip_prologue): Limit prologue analysis to section end.
3589
3590 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3591
3592         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
3593         use it.
3594
3595 2013-03-01  Pedro Alves  <palves@redhat.com>
3596
3597         Use gdb_byte for bytes from the program being debugged.
3598
3599         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
3600         Change type of local 'buf' to gdb_byte.
3601         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
3602         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
3603         * cris-tdep.c (cris_sigcontext_addr)
3604         (cris_sigtramp_frame_unwind_cache): Likewise.
3605         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
3606         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
3607         Likewise.
3608         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
3609         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
3610         (hppa32_hpux_search_dummy_call_sequence)
3611         (hppa_hpux_supply_save_state): Likewise.
3612         * hppa-linux-tdep.c (insns_match_pattern)
3613         (hppa_linux_find_global_pointer): Likewise.
3614         * hppa-tdep.c (hppa_in_function_epilogue_p)
3615         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3616         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
3617         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
3618         (i386fbsd_collect_uthread): Likewise.
3619         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
3620         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
3621         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
3622         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
3623         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
3624         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
3625         (ia64_libunwind_frame_prev_register)
3626         (ia64_libunwind_sigtramp_frame_this_id)
3627         (ia64_find_global_pointer_from_dynamic_section)
3628         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
3629         (ia64_unwind_pc): Likewise.
3630         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
3631         * m68hc11-tdep.c (m68hc11_push_dummy_call)
3632         (m68hc11_extract_return_value): Likewise.
3633         * m68klinux-nat.c (fetch_register, store_register): Likewise.
3634         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
3635         (mep_get_insn, mep_push_dummy_call): Likewise.
3636         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3637         (mips_linux_in_dynsym_stub): Likewise.
3638         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
3639         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3640         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
3641         to gdb_byte.
3642         * remote-mips.c (mips_set_register): Likewise.
3643         * remote-sim.c (gdbsim_fetch_register): Likewise.
3644         * score-tdep.c (score7_fetch_inst): Change type of parameter
3645         'memblock' and local 'buf' to gdb_byte.
3646         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
3647         Change type of local 'buf' to gdb_byte.  Adjust.
3648         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
3649         to gdb_byte**.
3650         (score7_analyze_prologue): Change type of 'memblock' and
3651         'memblock_ptr' locals to gdb_byte*.
3652         * sh64-tdep.c (sh64_extract_return_value)
3653         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
3654         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
3655         * solib-pa64.c (pa64_solib_create_inferior_hook)
3656         (pa64_open_symbol_file_object): Remove local 'buf'.
3657         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
3658         (som_open_symbol_file_object): Likewise.
3659         * solib-spu.c (spu_current_sos): Likewise.
3660         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3661         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
3662         (spu_store_registers): Likewise.
3663         * target.c (debug_print_register): Likewise.
3664         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
3665         * xstormy16-tdep.c (xstormy16_store_return_value)
3666         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
3667         (xstormy16_find_jmp_table_entry): Likewise.
3668
3669 2013-03-01  Jiong Wang  <jiwang@tilera.com>
3670
3671         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
3672         (tilegx_gdbarch_init): Install it.
3673
3674 2013-02-28  Tom Tromey  <tromey@redhat.com>
3675
3676         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
3677         PyLong_Check.
3678
3679 2013-02-28  Doug Evans  <dje@google.com>
3680
3681         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
3682         * python/python.c (gdbpy_find_pc_line): Ditto.
3683
3684 2013-02-28  Tom Tromey  <tromey@redhat.com>
3685
3686         * contrib/excheck.py: New file.
3687         * contrib/exsummary.py: New file.
3688         * contrib/gcc-with-excheck: New file.
3689
3690 2013-02-28  Tom Tromey  <tromey@redhat.com>
3691
3692         * python/python.c (gdbpy_print_stack): Call begin_line and
3693         fprintf_filtered inside TRY_CATCH.
3694
3695 2013-02-28  Tom Tromey  <tromey@redhat.com>
3696
3697         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
3698         inside TRY_CATCH.
3699
3700 2013-02-28  Tom Tromey  <tromey@redhat.com>
3701
3702         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
3703         frame_object_to_frame_info inside TRY_CATCH.
3704
3705 2013-02-28  Tom Tromey  <tromey@redhat.com>
3706
3707         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
3708         TRY_CATCH.
3709
3710 2013-02-28  Tom Tromey  <tromey@redhat.com>
3711
3712         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
3713
3714 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
3715
3716         * windows-nat.c: Throughout, fix format strings and casts of
3717         printf-like functions to avoid type related warnings on all
3718         platforms.
3719         (handle_output_debug_string): Fetch context information address
3720         from debug string using string_to_core_addr.
3721
3722 2013-02-27  Jiong Wang  <jiwang@tilera.com>
3723
3724         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
3725         * regformats/reg-tilegx32.dat: New.
3726
3727 2013-02-27  Jiong Wang  <jiwang@tilera.com>
3728
3729         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
3730
3731 2013-02-27  Jiong Wang  <jiwang@tilera.com>
3732
3733         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
3734
3735 2013-02-27  Yao Qi  <yao@codesourcery.com>
3736             Pedro Alves  <palves@redhat.com>
3737
3738         * tracepoint.c (tfile_trace_find): For tfind
3739         pc/tp/range/outside, look for the next trace frame instead of
3740         always starting from frame 0.
3741
3742 2013-02-26  Anthony Green  <green@moxielogic.com>
3743
3744         * configure.tgt: Add support for moxie-*-rtems* target.
3745
3746 2013-02-25  Pedro Alves  <palves@redhat.com>
3747
3748         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
3749         warning text.
3750
3751 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
3752
3753         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
3754         if $fp is used as the virtual frame pointer.
3755
3756 2013-02-23  Alan Modra  <amodra@gmail.com>
3757
3758         * elfread.c (elf_symtab_read): Do not use udata.p here to find
3759         symbol size.
3760         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
3761         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
3762         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
3763         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
3764
3765 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3766
3767         Code cleanup.
3768         * elfread.c (build_id_bfd_get): Make the return type const.
3769         (build_id_verify): Make the check parameter const.
3770         (build_id_to_debug_filename): Make the build_id parameter and variable
3771         data const.
3772         (find_separate_debug_file_by_buildid): Make the variable build_id const.
3773
3774 2013-02-21  Alan Modra  <amodra@gmail.com>
3775
3776         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
3777
3778 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
3779
3780         Add a new method 'disassemble' to gdb.Architecture class.
3781         * python/py-arch.c (archpy_disassmble): Implementation of the
3782         new method gdb.Architecture.disassemble.
3783         (arch_object_methods): Add entry for the new method.
3784
3785 2013-02-20  Jiong Wang  <jiwang@tilera.com>
3786
3787         * MAINTAINERS (Write After Approval): Add myself to the list.
3788
3789 2013-02-19  Pedro Alves  <palves@redhat.com>
3790
3791         Garbage collect 'struct monitor_ops'::load_routine.
3792
3793         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
3794         * monitor.c (monitor_load): No longer call
3795         current_monitor->load_routine.
3796         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
3797         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
3798         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
3799
3800 2013-02-19  Pedro Alves  <palves@redhat.com>
3801
3802         PR gdb/15161
3803
3804         Harmonize with generic_load.
3805
3806         * monitor.c: Include "readline/readline.h".
3807         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
3808         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
3809         long/strtol for the 'load_offset' local.  Error out if no argument
3810         is given or if too many arguments are given.  Tilde expand the
3811         passed in file name.
3812
3813 2013-02-19  Kai Tietz  <ktietz@redhat.com>
3814
3815         PR gdb/15161
3816         * symfile.c (load_section_data): Change type of load_offset
3817         to CORE_ADDR.
3818         (generic_load): User strtoulst instead of strtoul for conversion
3819         of load_offset.
3820
3821 2013-02-19  Jiong Wang  <jiwang@tilera.com>
3822
3823         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
3824          for return address, "lr" register, saved on stack.
3825         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
3826         after we invoke tilegx_analyze_prologue.
3827
3828 2013-02-19  Jiong Wang  <jiwang@tilera.com>
3829
3830         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
3831
3832 2013-02-19  Jiong Wang  <jiwang@tilera.com>
3833
3834         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3835
3836 2013-02-19  Jiong Wang  <jiwang@tilera.com>
3837
3838         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
3839         (tilegx_write_pc): New function.
3840         (tilegx_cannot_reference_register): Return zero if REGNO
3841         is TILEGX_FAULTNUM_REGNUM.
3842         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
3843         (tilegx_register_name): Add handling of "faultnum" register.
3844         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
3845         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
3846         handling of TILEGX_FAULTNUM_REGNUM.
3847         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
3848
3849 2013-02-19  Jiong Wang  <jiwang@tilera.com>
3850
3851         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
3852         should be aligned to 64bit.
3853
3854 2013-02-19  Kai Tietz  <ktietz@redhat.com>
3855
3856         * windows-nat.c (windows_xfer_memory): Fix debug-output
3857         for LLP64.
3858
3859 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
3860
3861         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
3862         Don't check DSP register number if HAVE_DSP is not set.
3863
3864 2013-02-19  Alan Modra  <amodra@gmail.com>
3865
3866         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
3867         throughout file instead.
3868         (build_id_bfd_get): Update to use new elf_tdata build_id field.
3869         Don't xmalloc return value.
3870         (build_id_verify): Similarly.  Don't xfree.
3871         (build_id_to_debug_filename): Update.
3872         (find_separate_debug_file_by_buildid): Update, don't xfree.
3873
3874 2013-02-18  Tom Tromey  <tromey@redhat.com>
3875
3876         PR gdb/15102:
3877         * dwarf2read.c (read_subrange_type): Use result of
3878         'check_typedef'.
3879
3880 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
3881
3882         * frame.c: Remove one extra white space after #include
3883         directive.
3884
3885 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3886
3887         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
3888
3889 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3890
3891         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
3892         and dir commands into an if block.
3893
3894 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
3895
3896         * python/py-breakpoint (struct pybp_code):  Use int instead of
3897         enum type_code.
3898
3899 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
3900             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3901
3902         * NEWS: Mention new field "trace-file".
3903         * tracepoint.c (trace_status_mi): Output "trace-file" field.
3904         (tfile_open): Record the trace file's filename in the trace
3905         status.
3906         (tfile_files_info): Mention the name of the trace file.
3907         Check the "filename" field explicitely.
3908         (trace_status_command): Explicitely check "filename" field.
3909         (trace_find_command): Ditto.
3910         (trace_find_pc_command): Ditto.
3911         (trace_find_tracepoint_command): Ditto.
3912         (trace_find_line_command): Ditto.
3913         (trace_find_range_command): Ditto.
3914         (trace_find_outside_command): Ditto.
3915         * tracepoint.h (struct trace_status) <from_file>: Rename it
3916         to "filename" and make it hold the trace file's filename
3917         instead of a boolean.
3918         * remote.c (remote_get_trace_status): Initialize "filename"
3919         field with NULL instead of 0.
3920
3921 2013-02-15  Yao Qi  <yao@codesourcery.com>
3922
3923         * remote.c: Fix a typo.
3924
3925 2013-02-14  Pierre Muller  <muller@sourceware.org>
3926
3927         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
3928
3929 2013-02-14  Pedro Alves  <palves@redhat.com>
3930
3931         * utils.c (savestring): Don't #undef it.  Move function to
3932         common/common-utils.c.
3933         * common/common-utils.c: Include gdb_string.h.
3934         (savestring): Move here from utils.c.
3935         * common/common-utils.h (savestring): Declare.
3936
3937 2013-02-14  Pedro Alves  <palves@redhat.com>
3938
3939         * utils.c (savestring): Rename parameter 'size' to 'len'.
3940
3941 2013-02-14  Pedro Alves  <palves@redhat.com>
3942             Yufeng Zhang  <yufeng.zhang@arm.com>
3943
3944         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
3945         (aarch64_inferior_data, struct aarch64_inferior_data):
3946         Delete.
3947         (struct aarch64_process_info): New.
3948         (aarch64_process_list): New global.
3949         (aarch64_find_process_pid, aarch64_add_process)
3950         (aarch64_process_info_get): New functions.
3951         (aarch64_inferior_data_get): Delete.
3952         (aarch64_process_info_get): New function.
3953         (aarch64_forget_process): New function.
3954         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
3955         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
3956         aarch64_get_debug_reg_state.
3957         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
3958         instead of linux_nat_iterate_watchpoint_lwps.
3959         (aarch64_linux_new_fork): New function.
3960         (aarch64_linux_child_post_startup_inferior): Use
3961         aarch64_forget_process instead of aarch64_init_debug_reg_state.
3962         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
3963         (aarch64_linux_remove_hw_breakpoint)
3964         (aarch64_handle_aligned_watchpoint)
3965         (aarch64_handle_unaligned_watchpoint)
3966         (aarch64_linux_insert_watchpoint)
3967         (aarch64_linux_remove_watchpoint)
3968         (aarch64_linux_stopped_data_address): Adjust to pass the current
3969         process id to aarch64_debug_reg_state.
3970         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
3971         linux_nat_new_fork hook, and aarch64_forget_process as
3972         linux_nat_forget_process hook; remove the call to
3973         register_inferior_data_with_cleanup.
3974
3975 2013-02-14  Pedro Alves  <palves@redhat.com>
3976
3977         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
3978         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
3979         lval_memory.
3980
3981 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
3982             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3983
3984         * tracepoint.h (validate_trace_state_variable_name): Declare.
3985         * tracepoint.c (validate_trace_state_variable_name): New.
3986         (trace_variable_command): Parse the trace state variable's name
3987         without using parse_expression.  Do several validations.
3988         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
3989         trace state variable's name with parse_expression.  Validate it.
3990
3991 2013-02-14  Yao Qi  <yao@codesourcery.com>
3992
3993         * infcmd.c (breakpoint_proceeded): Remove it.
3994
3995 2013-02-14  Yao Qi  <yao@codesourcery.com>
3996
3997         * tracepoint.c (end_actions_pseudocommand): Make it static.
3998         (while_stepping_pseudocommand): Likewise.
3999         * tracepoint.h (end_actions_pseudocommand): Remove the
4000         declaration.
4001         (while_stepping_pseudocommand): Likewise.
4002
4003 2013-02-14  Yao Qi  <yao@codesourcery.com>
4004
4005         * cli/cli-decode.c (help_cmd): Remove the declaration of
4006         "cmdlist".
4007         (help_all): Likewise.
4008
4009 2013-02-13  Pedro Alves  <palves@redhat.com>
4010
4011         * amd64-linux-nat.c (update_debug_registers_callback):
4012         Update comment.
4013         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4014         iterate_over_lwps.
4015         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
4016         i386_debug_reg_state.
4017         (amd64_linux_new_fork): New function.
4018         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
4019         linux_nat_new_fork hook, and i386_forget_process as
4020         linux_nat_forget_process hook.
4021         * i386-linux-nat.c (update_debug_registers_callback):
4022         Update comment.
4023         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4024         iterate_over_lwps.
4025         (i386_linux_prepare_to_resume): Pass the lwp's pid to
4026         i386_debug_reg_state.
4027         (i386_linux_new_fork): New function.
4028         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
4029         linux_nat_new_fork hook, and i386_forget_process as
4030         linux_nat_forget_process hook.
4031         * i386-nat.c (i386_init_dregs): Delete.
4032         (i386_inferior_data, struct i386_inferior_data):
4033         Delete.
4034         (struct i386_process_info): New.
4035         (i386_process_list): New global.
4036         (i386_find_process_pid, i386_add_process, i386_process_info_get):
4037         New functions.
4038         (i386_inferior_data_get): Delete.
4039         (i386_process_info_get): New function.
4040         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
4041         (i386_forget_process): New function.
4042         (i386_cleanup_dregs): Rewrite.
4043         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
4044         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4045         (i386_stopped_data_address, i386_insert_hw_breakpoint)
4046         (i386_remove_hw_breakpoint): Adjust to pass the current process id
4047         to i386_debug_reg_state.
4048         (i386_use_watchpoints): Don't register inferior data.
4049         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
4050         adjust comment.
4051         (i386_forget_process): Declare.
4052         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
4053         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
4054         New static globals.
4055         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
4056         (add_initial_lwp): New, factored out from ...
4057         (add_lwp): ... this.  Don't check the number of lwps before
4058         calling linux_nat_new_thread.
4059         (linux_nat_iterate_watchpoint_lwps): Delete.
4060         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
4061         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
4062         forks and vforks.
4063         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
4064         initial lwp.
4065         (linux_nat_kill, linux_nat_mourn_inferior): Call
4066         linux_nat_forget_process.
4067         (linux_nat_set_new_fork, linux_nat_set_forget_process)
4068         (linux_nat_forget_process): New functions.
4069         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
4070         type.
4071         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
4072         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
4073         types.
4074         (linux_nat_set_new_fork, linux_nat_set_forget_process)
4075         (linux_nat_forget_process): New declarations.
4076
4077         * amd64fbsd-nat.c (super_mourn_inferior): New global.
4078         (amd64fbsd_mourn_inferior): New function.
4079         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
4080         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
4081
4082 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4083
4084         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
4085         Adding _().
4086
4087 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4088
4089         * aarch64-linux-nat.c (debug_reg_change_callback)
4090         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
4091         %s and phex().
4092
4093 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4094
4095         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
4096         with LONGEST.
4097
4098 2013-02-13  Pedro Alves  <palves@redhat.com>
4099             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4100
4101         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
4102
4103 2013-02-12  Tom Tromey  <tromey@redhat.com>
4104
4105         PR symtab/11464:
4106         * c-exp.y (lex_one_token): Initialize other fields of yylval on
4107         NAME return.
4108         (classify_inner_name): Remove 'first_name' argument, add
4109         'context'.  Remove unused variable.
4110         (yylex): Explicitly maintain the context type.  Exit loop earlier
4111         if NAME result is seen.
4112
4113 2013-02-12  Pedro Alves  <palves@redhat.com>
4114
4115         * amd64-darwin-tdep.c: Add (C) after Copyright.
4116         * cli/cli-cmds.h: Ditto.
4117         * cli/cli-decode.c: Ditto.
4118         * cli/cli-decode.h: Ditto.
4119         * cli/cli-dump.c: Ditto.
4120         * cli/cli-dump.h: Ditto.
4121         * cli/cli-interp.c: Ditto.
4122         * cli/cli-logging.c: Ditto.
4123         * cli/cli-script.c: Ditto.
4124         * cli/cli-script.h: Ditto.
4125         * cli/cli-setshow.c: Ditto.
4126         * cli/cli-setshow.h: Ditto.
4127         * cli/cli-utils.c: Ditto.
4128         * cli/cli-utils.h: Ditto.
4129         * config/alpha/nm-osf3.h: Ditto.
4130         * config/djgpp/djconfig.sh: Ditto.
4131         * config/i386/nm-fbsd.h: Ditto.
4132         * config/i386/nm-i386gnu.h: Ditto.
4133         * config/nm-linux.h: Ditto.
4134         * config/nm-nto.h: Ditto.
4135         * config/rs6000/nm-rs6000.h: Ditto.
4136         * config/sparc/nm-sol2.h: Ditto.
4137         * darwin-nat-info.c: Ditto.
4138         * dfp.c: Ditto.
4139         * dfp.h: Ditto.
4140         * gdb-demangle.h: Ditto.
4141         * i386-darwin-nat.c: Ditto.
4142         * i386-darwin-tdep.c: Ditto.
4143         * linux-fork.h: Ditto.
4144         * m32c-tdep.c: Ditto.
4145         * microblaze-linux-tdep.c: Ditto.
4146         * microblaze-rom.c: Ditto.
4147         * microblaze-tdep.c: Ditto.
4148         * microblaze-tdep.h: Ditto.
4149         * mips-linux-tdep.h: Ditto.
4150         * ppc-ravenscar-thread.c: Ditto.
4151         * ppc-ravenscar-thread.h: Ditto.
4152         * prologue-value.c: Ditto.
4153         * prologue-value.h: Ditto.
4154         * ravenscar-thread.c: Ditto.
4155         * ravenscar-thread.h: Ditto.
4156         * sparc-ravenscar-thread.c: Ditto.
4157         * sparc-ravenscar-thread.h: Ditto.
4158         * tilegx-linux-tdep.c: Ditto.
4159         * unwind_stop_reasons.def: Ditto.
4160         * windows-nat.h: Ditto.
4161         * xtensa-linux-tdep.c: Ditto.
4162         * xtensa-xtregs.c: Ditto.
4163         * regformats/regdat.sh: Ditto.
4164         * regformats/regdef.h: Ditto.
4165
4166 2013-02-12  Pedro Alves  <palves@redhat.com>
4167
4168         * break-catch-sig.c: Update copyright years.
4169
4170 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
4171
4172         Add support for a destructor for ui_out data and use it to
4173         provide a ui_out destructor.
4174         * ui-out.h: Declare the new ui_out destructor.
4175         (ui_out_impl): Add a field for data destructor in ui_out_impl.
4176         * ui-out.c (default_data_destroy): Add a default data destructor
4177         which does nothing.
4178         (default_ui_out_impl): Set the new data_destroy field to
4179         default_data_destroy
4180         (uo_data_destroy): Local function which invokes the data
4181         destructor if present.
4182         (clear_table): Local function which clears the table data of a
4183         ui_out object.
4184         (ui_out_destroy): Public function which frees a ui_out object.
4185         (ui_out_table_end): Use the new clear_table function.
4186         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
4187         NULL.
4188         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
4189         to NULL.
4190
4191 2013-02-11  Doug Evans  <dje@google.com>
4192
4193         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
4194         (printf_decfloat): New function.  Broken out from ui_printf.
4195         Remove unnecessary code to shift the entire format string down.
4196         (printf_pointer): New function.
4197         (ui_printf): Code to print C strings, wide C strings, decfloats,
4198         and pointers moved to separate functions.
4199
4200 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
4201
4202         * valops.c (value_assign): Handling bitfield offset in
4203         `lval_internalvar_component' case.
4204
4205 2013-02-08  Doug Evans  <dje@google.com>
4206
4207         * common/format.c (parse_format_string): Fix whitespace.
4208
4209 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
4210
4211         * stack.c (return_command): Work around uninitialized variable
4212         warning.
4213
4214 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
4215
4216         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
4217         number of the registers from 36 to 34.
4218
4219 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4220
4221         * NEWS: Mention new AArch64 native and target support.
4222
4223 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4224
4225         * MAINTAINERS (Write After Approval): Add myself.
4226
4227 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
4228             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4229             Nigel Stephens  <nigel.stephens@arm.com>
4230             Yufeng Zhang  <yufeng.zhang@arm.com>
4231
4232         * aarch64-linux-nat.c: New file.
4233         * config/aarch64/linux.mh: New file.
4234         * configure.host: Add AArch64.
4235         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
4236
4237 2013-02-07  Doug Evans  <dje@google.com>
4238
4239         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
4240         disassemble command.
4241
4242 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4243
4244         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
4245         set_gdbarch_fetch_tls_load_module_address.
4246
4247 2013-02-06  David S. Miller  <davem@davemloft.net>
4248
4249         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
4250         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4251         * value.c (struct_return_convention): New function.
4252         (using_struct_return): Implement in terms of struct_return_convention.
4253         * value.h (struct_return_convention): Declare.
4254         * stack.c (return_command): Allow successful overriding of the return
4255         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4256
4257 2013-02-06  Tom Tromey  <tromey@redhat.com>
4258
4259         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
4260         outside of TRY_CATCH.
4261
4262 2013-02-06  Yao Qi  <yao@codesourcery.com>
4263
4264         * mi/mi-interp.c: Include "tracepoint.h".
4265         (mi_tsv_modified): Declare.
4266         (mi_tsv_created, mi_tsv_deleted): Update declaration.
4267         (mi_interpreter_init): Call observer_attach_tsv_modified.
4268         (mi_tsv_modified): New.
4269         (mi_tsv_created, mi_tsv_deleted): Update.
4270         * tracepoint.c (trace_variable_command): Call
4271         observer_notify_tsv_modified if the initial value of tsv is
4272         changed.
4273         (delete_trace_state_variable): Call
4274         observer_notify_tsv_deleted earlier.
4275         (trace_variable_command): Caller update.
4276         (create_tsv_from_upload): Likewise.
4277         * observer.sh: Declare "struct trace_state_variable".
4278
4279         * NEWS: Mention the new MI notification "=tsv-modified".
4280
4281 2013-02-05  Doug Evans  <dje@google.com>
4282
4283         * completer.c (location_completer): Fix typo in comment.
4284
4285 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4286
4287         * breakpoint.c (add_location_to_breakpoint): Insert the location with
4288         ADDRESS sorted.
4289
4290 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4291
4292         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
4293         Refactor if statement to avoid trailing || operator.
4294
4295 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
4296
4297         * NEWS: Add PowerPC FreeBSD as a new native configuration.
4298
4299 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
4300
4301         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
4302         * configure.host: Add powerpc*-*-freebsd* target.
4303         * configure.tgt: Add target info for powerpc*-*-freebsd*.
4304         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
4305         * config/powerpc/fbsd.mh: New file.
4306
4307 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4308             Denys Vlasenko  <dvlasenk@redhat.com>
4309             Pedro Alves  <palves@redhat.com>
4310
4311         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
4312         (struct elf_internal_linux_prpsinfo): Forward declare.
4313         * gdbarch.h, gdbarch.c: Regenerate.
4314         * linux-tdep.c: Include `cli/cli-utils.h'.
4315         (linux_fill_prpsinfo): New function.
4316         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
4317         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
4318         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
4319         depending on gdbarch pointer bitness.
4320         * ppc-linux-tdep.c: Include elf-bfd.h.
4321         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
4322         on 32-bit.
4323
4324 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4325             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4326             Nigel Stephens  <nigel.stephens@arm.com>
4327             Yufeng Zhang  <yufeng.zhang@arm.com>
4328
4329         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
4330
4331 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4332             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4333             Nigel Stephens  <nigel.stephens@arm.com>
4334             Yufeng Zhang  <yufeng.zhang@arm.com>
4335
4336         * aarch64-newlib-tdep.c: New file.
4337         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
4338         aarch64*-*-elf.
4339         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
4340         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
4341         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
4342         * osabi.c (gdb_osabi_names): Add "Newlib".
4343
4344 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4345             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4346             Nigel Stephens  <nigel.stephens@arm.com>
4347             Yufeng Zhang  <yufeng.zhang@arm.com>
4348
4349         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
4350         (ALLDEPFILES): Add aarch64-linux-tdep.c.
4351         * aarch64-linux-tdep.c: New file.
4352         * aarch64-linux-tdep.h: New file.
4353         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
4354         * configure.tgt: Add aarch64-none-linux-gnu.
4355
4356 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4357             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4358             Nigel Stephens  <nigel.stephens@arm.com>
4359             Yufeng Zhang  <yufeng.zhang@arm.com>
4360
4361         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
4362         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
4363         (ALLDEPFILES): Add aarch64-tdep.c.
4364         * aarch64-tdep.c: New file.
4365         * aarch64-tdep.h: New file.
4366         * configure.tgt: Add AArch64.
4367         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
4368         (aarch64-expedite): New definition.
4369         * features/aarch64-core.xml: New file.
4370         * features/aarch64-fpu.xml: New file.
4371         * features/aarch64-without-fpu.c: New file (generated).
4372         * features/aarch64-without-fpu.xml: New file.
4373         * features/aarch64.c: New file (generated).
4374         * features/aarch64.xml: New file.
4375         * regformats/aarch64-without-fpu.dat: New file (generated).
4376         * regformats/aarch64.dat: New file (generated).
4377
4378 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4379
4380         * contrib/expect-read1.c: New file.
4381         * contrib/expect-read1.sh: New file.
4382
4383 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4384
4385         * dwarf2read.c (file_file_name): New function with code from
4386         file_full_name.
4387         (file_full_name): Move most of the code to file_file_name.
4388         (macro_start_file): Rename variable full_name to file_name and use
4389         file_file_name for it.  Add comp_dir parameter to new_macro_table.
4390         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
4391         macro_source_file->filename access by macro_source_fullname call.
4392         * macroscope.c (_initialize_macroscope): Update the new_macro_table
4393         caller.
4394         * macrotab.c (struct macro_table): New field comp_dir.
4395         (macro_include): New variables link_fullname and source_fullname.
4396         Replace any macro_source_file->filename access by macro_source_fullname
4397         call.
4398         (macro_lookup_inclusion): Remove the partial filenames checking code.
4399         (check_for_redefinition): New variables source_fullname and
4400         found_key_fullname.  Replace any macro_source_file->filename access by
4401         macro_source_fullname call.
4402         (macro_undef): New variables source_fullname and key_fullname.  Replace
4403         any macro_source_file->filename access by macro_source_fullname call.
4404         (macro_lookup_definition): New variables retval and source_fullname.
4405         Replace any macro_source_file->filename access by macro_source_fullname
4406         call.
4407         (foreach_macro): New variable key_fullname.  Replace any
4408         macro_source_file->filename access by macro_source_fullname call.
4409         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
4410         macro_source_file->filename access by macro_source_fullname call.
4411         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
4412         (macro_source_fullname): New function.
4413         * macrotab.h (struct macro_source_file): Extent the filename field
4414         comment.
4415         (new_macro_table): New parameter comp_dir, add a comment for it.
4416         (macro_source_fullname): new declaration.
4417
4418 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4419
4420         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
4421         this_real_name to outer block.  Use it also for
4422         compare_filenames_for_search.
4423         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
4424         with dw2_get_real_path for file_matcher, considering also
4425         BASENAMES_MAY_DIFFER.
4426         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
4427
4428 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4429
4430         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
4431         to the file_matcher parameter.  Pass 0 to it.
4432         (dwarf2_create_include_psymtab): Copy also DIRNAME.
4433         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
4434         NULL psymtab_to_fullname result.
4435         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
4436         an expected filename instead.
4437         (expand_symtabs_matching_via_partial): Add basenames parameter to the
4438         file_matcher parameter.  Call also psymtab_to_fullname, after newly
4439         considering BASENAMES_MAY_DIFFER.
4440         * source.c (rewrite_source_path): Remove static.
4441         * source.h (rewrite_source_path): New declaration.
4442         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
4443         the expand_symtabs_matching field.  Comment it.
4444         * symtab.c (file_matches): New function comment.  Add parameter
4445         basenames, implement it.
4446         (search_symbols_file_matches): Add basenames parameter.  Update the
4447         file_matches caller.
4448         (search_symbols): Match FILES also against symtab_to_fullname.
4449         Optimize it for BASENAMES_MAY_DIFFER.
4450
4451 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4452
4453         * source.c (print_source_lines_base): Print for TUI also "fullname".
4454         * tui/tui-data.c (init_content_element): Change tui_locator_element
4455         field to full_name.
4456         * tui/tui-data.h (struct tui_locator_element): Likewise.
4457         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
4458         tui_update_locator_filename calls to tui_update_locator_fullname.
4459         Replace symtab->filename refererence by symtab_to_fullname call.
4460         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
4461         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
4462         field to full_name.  Replace symtab->filename refererence by
4463         symtab_to_fullname call.
4464         (tui_show_symtab_source): Rename parameter to fullname.  Change
4465         tui_locator_element field to full_name.
4466         * tui/tui-stack.c: Include source.h.
4467         (tui_set_locator_filename): Rename the declaration to ...
4468         (tui_set_locator_fullname): ... here.  Rename its parameter to
4469         fullname, updates its comment.
4470         (tui_set_locator_info): Rename its parameter to fullname.
4471         (tui_set_locator_filename): Rename the definition to ...
4472         (tui_set_locator_fullname): ... here.  Rename its parameter to
4473         fullname, updates its comment.  Change tui_locator_element field to
4474         full_name.
4475         (tui_set_locator_info): Rename its parameter to fullname.
4476         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
4477         (tui_update_locator_filename): Rename to ...
4478         (tui_update_locator_fullname): ... here. Rename callee to
4479         tui_set_locator_fullname.
4480         (tui_show_frame_info): Replace symtab->filename refererence by
4481         symtab_to_fullname call.
4482         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
4483         (tui_update_locator_fullname): ... here.
4484         * tui/tui-winsource.c (tui_display_main): Rename the callee to
4485         tui_update_locator_fullname.  Replace symtab->filename refererence by
4486         symtab_to_fullname call.
4487         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
4488         Rename the callee to tui_update_locator_fullname.
4489         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
4490
4491 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4492
4493         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
4494         by symtab_to_filename_for_display calls.
4495         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
4496         (clear_command): New variable sal_fullname, initialize it.  Replace
4497         compare_filenames_for_search by filename_cmp with sal_fullname.
4498         (say_where, update_static_tracepoint): Replace symtab->filename
4499         refererences by symtab_to_filename_for_display calls.
4500         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
4501         Likewise.
4502         * dwarf2read.c: Include source.h.
4503         (fixup_go_packaging): Replace symtab->filename refererences by
4504         symtab_to_filename_for_display calls.
4505         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
4506         Replace symtab->filename refererences by symtab_to_filename_for_display
4507         calls.
4508         (create_sals_line_offset, convert_linespec_to_sals): New variable
4509         fullname, initialize it, replace symtab->filename reference by the
4510         variable.
4511         * linux-fork.c: Include source.h.
4512         (info_checkpoints_command): Replace symtab->filename refererences by
4513         symtab_to_filename_for_display calls.
4514         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
4515         by symtab_to_filename_for_display calls.
4516         * mdebugread.c: Include source.h.
4517         (psymtab_to_symtab_1): Replace symtab->filename refererences by
4518         symtab_to_filename_for_display calls.
4519         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4520         (mi_cmd_file_list_exec_source_files): Likewise.
4521         * printcmd.c: Include source.h.
4522         (build_address_symbolic): Replace symtab->filename refererences by
4523         symtab_to_filename_for_display calls.
4524         * psymtab.c (partial_map_symtabs_matching_filename)
4525         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
4526         with psymtab_to_fullname.
4527         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
4528         by symtab_to_filename_for_display calls.
4529         (stpy_get_filename): New variable filename, initialize it, use instead
4530         of symtab->filename refererences.
4531         (salpy_str): Make variable filename const char *.  Replace
4532         symtab->filename refererences by symtab_to_filename_for_display calls.
4533         * skip.c: Include source.h and filenames.h.
4534         (skip_file_command): Remove const from the symtab variable.  Replace
4535         symtab->filename refererences by symtab_to_fullname call.
4536         (function_name_is_marked_for_skip): New variables searched_for_fullname
4537         and fullname.  Use them to search also with symtab's fullname.
4538         * source.c (find_source_lines): Replace symtab->filename refererences
4539         by symtab_to_filename_for_display calls.
4540         (print_source_lines_base): New variable filename, use it instead of
4541         symtab->filename.  Replace symtab->filename refererences by
4542         symtab_to_filename_for_display calls.
4543         (line_info, forward_search_command): Replace symtab->filename
4544         refererences by symtab_to_filename_for_display calls.
4545         (reverse_search_command): Replace symtab->filename refererences by
4546         symtab_to_filename_for_display calls.  New variable filename for it.
4547         * stack.c (frame_info): Likewise.
4548         * symmisc.c: Include source.h.
4549         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
4550         (maintenance_info_symtabs): Replace symtab->filename refererences by
4551         symtab_to_filename_for_display calls.
4552         * symtab.c (iterate_over_some_symtabs): Call
4553         compare_filenames_for_search also with symtab_to_fullname.
4554         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
4555         symtab->filename refererences by symtab_to_filename_for_display calls.
4556         (find_line_symtab): Replace symtab->filename refererences by
4557         symtab_to_filename_for_display calls.
4558         (file_matches): Replace filename_cmp by compare_filenames_for_search.
4559         (print_symbol_info): Make the last parameter const char *.  New
4560         variable s_filename.  Use it in the function.
4561         (symtab_symbol_info): Make the last_filename variable const char *.
4562         Replace symtab->filename refererences by symtab_to_filename_for_display
4563         calls.
4564         (rbreak_command): New variable fullname.  Use it.  Replace
4565         symtab->filename refererence by symtab_to_filename_for_display call.
4566         * tracepoint.c (set_traceframe_context, trace_find_line_command)
4567         (print_one_static_tracepoint_marker): Replace symtab->filename
4568         refererences by symtab_to_filename_for_display calls.
4569         * tui/tui-source.c (tui_set_source_content): New variables filename and
4570         s_filename.  Replace symtab->filename refererences by this variable.
4571         Replace other symtab->filename refererences by
4572         symtab_to_filename_for_display calls.
4573
4574 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
4575             Jan Kratochvil  <jan.kratochvil@redhat.com>
4576
4577         Add a new variable that controls a way in which filenames are
4578         displayed.
4579         * NEWS (set filename-display): New entry.
4580         * source.c (filename_display_basename, filename_display_relative)
4581         (filename_display_absolute, filename_display_kind_names)
4582         (filename_display_string, show_filename_display_string)
4583         (symtab_to_filename_for_display): New.
4584         (_initialize_source): Added initialization of 'filename-display'
4585         variable.
4586         * source.h (symtab_to_filename_for_display): Added declaration.
4587         * stack.c (print_frame): Added new variable and calling of a new
4588         function and condition with this variable. Changed third argument of
4589         calling of a function.
4590
4591 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4592
4593         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
4594         Rename field reference filename to fullname.
4595         * tui/tui-data.h (struct tui_source_info): Rename field filename to
4596         fullname.  New comment for it.
4597         * tui/tui-source.c (tui_set_source_content): Rename field reference
4598         filename to fullname.  Initialize field by symtab_to_fullname now.
4599         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
4600         reference filename to fullname.  Use symtab_to_fullname during
4601         comparison.
4602
4603 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4604
4605         Code cleanup.
4606         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
4607         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
4608         filename to fullname.  Rename variable this_name to this_fullname.
4609         Lowercase FILENAME_CMP call.
4610         (dw2_find_symbol_file): New comment for the returned string.
4611         (dwarf2_gdb_index_functions): Rename the function to
4612         dw2_expand_symtabs_with_fullname.
4613         * psymtab.c (read_psymtabs_with_filename): Rename to ...
4614         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
4615         fullname.
4616         (psym_functions): Rename the function to read_psymtabs_with_fullname.
4617         * symfile.h (struct quick_symbol_functions): Rename field
4618         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
4619         parameter filename to fullname.  Document returned string meaning for
4620         find_symbol_file.
4621         * symtab.c (find_line_symtab): Rename the called function to
4622         expand_symtabs_with_fullname.
4623
4624 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4625
4626         Code cleanup.
4627         * breakpoint.c (clear_command): Remove variable is_abs, unify the
4628         call of filename_cmp with compare_filenames_for_search.
4629         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
4630         is_abs, unify the call of FILENAME_CMP with
4631         compare_filenames_for_search.  New gdb_asserts for real_path and name.
4632         Unify the call of compare_filenames_for_search with FILENAME_CMP.
4633         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4634         * symfile.h (struct quick_symbol_functions): Extend the comment for
4635         map_symtabs_matching_filename.
4636         * symtab.c (compare_filenames_for_search): Remove the function comment
4637         relative path requirement.  Handle absolute filenames, with a comment.
4638         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
4639         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
4640         real_path and name.  Unify the call of compare_filenames_for_search
4641         with FILENAME_CMP.
4642         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
4643
4644 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4645
4646         Code cleanup.
4647         * breakpoint.c (print_breakpoint_location): Replace bp_location field
4648         source_file references by symtab field references.  Remove variables
4649         sal and fullname.
4650         (momentary_breakpoint_from_master, add_location_to_breakpoint):
4651         (clear_command, say_where): Replace bp_location field source_file
4652         references by symtab field references.
4653         (bp_location_dtor): Remove the source_file reference.
4654         (update_static_tracepoint): Replace bp_location field source_file
4655         references by symtab field references.
4656         (breakpoint_free_objfile): New function.
4657         * breakpoint.h (struct bp_location): Extend the comment for line_number.
4658         Replace the field source_file by field symtab, extend its comment.
4659         (breakpoint_free_objfile): New declaration.
4660         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
4661         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
4662         field source_file references by symtab field references.
4663
4664 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4665
4666         Replace xfullpath calls by gdb_realpath calls.
4667         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
4668         function comment.
4669         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
4670         Remove it from the iterate_over_some_symtabs call.
4671         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
4672         Remove it from the dw2_map_expand_apply calls, remove a block handling
4673         it.
4674         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
4675         Remove it from the iterate_over_some_symtabs call.
4676         (partial_map_symtabs_matching_filename): Remove parameter full_path.
4677         Remove it from the partial_map_expand_apply calls, remove a block
4678         handling it.  Drop gdb_realpath call and cleanups from the real_path
4679         handling.
4680         * source.c (openp): Drop the comment part about xfullpath.  Replace
4681         xfullpath calls by gdb_realpath calls.
4682         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
4683         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
4684         from method map_symtabs_matching_filename and its comment.
4685         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
4686         gdb_realpath call.
4687         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
4688         remove it also from the function comment, remove a block handling it.
4689         Drop gdb_realpath call and cleanups from the real_path handling.
4690         (iterate_over_symtabs): Drop variable full_path and its use.
4691         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
4692         * utils.c (xfullpath): Remove.
4693         * utils.h (xfullpath): Remove.
4694
4695 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
4696
4697         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
4698         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
4699         (ALLDEPFILES): Add ppc64-tdep.c.
4700         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
4701         ppc64-tdep.o to gdb_target_obs.
4702         * ppc64-tdep.h: New file.
4703         * ppc64-tdep.c: New file.
4704         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
4705         ppc-linux-tdep.c to here.
4706         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
4707         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
4708         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
4709         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
4710         from ppc-linux-tdep.c to here.
4711         (ppc64_convert_from_func_ptr_addr): Rename from
4712         ppc64_linux_convert_from_func_ptr_addr to
4713         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
4714         here.
4715         * rs6000-tdep.c:
4716         (read_insn): Move from ppc-linux-tdep.c to here.
4717         (insns_match_pattern, insn_d_field, insn_ds_field): Move
4718         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
4719         * ppc-linux-tdep.c: Include ppc64-tdep.h.
4720         Removed above functions.
4721         (ppc_linux_init_abi): Adjust.
4722
4723 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
4724
4725         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
4726
4727 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
4728
4729         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
4730
4731 2013-02-01  Pedro Alves  <palves@redhat.com>
4732
4733         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
4734         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
4735
4736 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4737
4738         * elfread.c (elf_symfile_read): Limit separate debug info additions to
4739         files with no separate debug info.
4740         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
4741         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
4742         only for files with no separate debug info.
4743
4744 2013-01-31  Tom Tromey  <tromey@redhat.com>
4745
4746         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
4747         change type.
4748         (struct jit_program_space_data): Rename from jit_inferior_data.
4749         Update comments.
4750         (get_jit_program_space_data): Rename from get_jit_inferior_data.
4751         Change return type.  Attach data to program space.
4752         (jit_program_space_data_cleanup): Rename from
4753         jit_inferior_data_cleanup; change argument type.
4754         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
4755         change type.
4756         (jit_register_code): Update.
4757         (jit_update_inferior_cache): Remove.
4758         (jit_breakpoint_deleted): Get jit data from the location's program
4759         space.
4760         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
4761         'ps_data', change type.
4762         (jit_inferior_init, jit_breakpoint_re_set_internal)
4763         (jit_event_handler): Update.
4764         (free_objfile_data): Get data from objfile's program space.
4765         (_initialize_jit): Update.
4766
4767 2013-01-31  Tom Tromey  <tromey@redhat.com>
4768
4769         PR gdb/13987:
4770         * jit.c (struct jit_inferior_data) <cached_code_address,
4771         jit_breakpoint>: New fields.
4772         (jit_breakpoint_re_set_internal): Fix logging.  Only create
4773         breakpoint if cached address has changed.
4774         (jit_update_inferior_cache, jit_breakpoint_deleted): New
4775         functions.
4776         (_initialize_jit): Register breakpoint deleted observer.
4777
4778 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4779
4780         * infrun.c (handle_syscall_event): Remove unused gdbarch.
4781         (save_infcall_suspend_state): Ifdef out unused inf.
4782         (restore_infcall_suspend_state): Ifdef out unused inf.
4783         * jit.c (jit_register_code): Remove unused i, b, inf_data.
4784         (jit_frame_sniffer): Remove unused inf_data.
4785
4786 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4787
4788         * c-exp.y (classify_inner_name): Remove unused type.
4789         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
4790         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
4791         need_escape.
4792         (c_get_string): Remove unused kind.
4793         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
4794
4795 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4796
4797         * charset.c (intermediate_encoding): Remove unused i.
4798         * completer.c (signal_completer): Remove unused i.
4799         * continuations.c (discard_my_continuations_1): Remove unused
4800         continuation_ptr.
4801         * corelow.c (core_close): Remove unuseD name.
4802         (get_core_siginfo): Remove unused pid.
4803         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
4804         i, cps.
4805         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
4806         (loclist_describe_location): Remove unused first.
4807         * event-top.c (command_line_handler): Remove unused got_eof.
4808         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
4809         (resize_section_table): Remove unused old_value.
4810         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
4811         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
4812         * i386-tdep.c (i386_process_record): Remove unused rex.
4813         * infcmd.c (get_return_value): Remove unused uiout.
4814         * jv-lang.c (type_from_class): Remove unused is_array.
4815         * jv-valprint.c (java_val_print): Remove unused i.
4816         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
4817         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
4818         * m2-typeprint.c (m2_print_type): Remove unused code.
4819         * macroexp.c (get_character_constant): Remove unused body_start.
4820         (macro_stringify): Remove unused result.
4821         * objc-lang.c (find_methods): Remove unused gdbarch.
4822         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
4823         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
4824         * stack.c (print_frame_args): Remove unused summary.
4825         * thread.c (thread_apply_command): Remove unused p.
4826         * valarith.c (value_x_unop): Remove unused mangle_ptr.
4827         * valops.c (search_struct_method): Remove unused skip.
4828         * valprint.c (generic_val_print): Remove unused byte_order.
4829         * varobj.c (varobj_update): Remove unused changed.
4830         * cli/cli-cmds.c (complete_command): Remove unused next_item.
4831         (alias_command): Remove unused c.
4832         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
4833         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
4834         format.
4835         (mi_cmd_data_write_memory): Remove unused word_format.
4836         (mi_cmd_data_write_memory_bytes): Remove unused r.
4837         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
4838         p_start, p_end.
4839         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
4840         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
4841         line_width.
4842
4843 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4844
4845         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
4846         * symtab.c (iterate_over_symtabs): Remove unused s.
4847         (find_pc_sect_symtab): Remove unused pspAce.
4848         (find_pc_sect_line): Remove unused alt_symtab.
4849         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
4850         (completion_list_add_name): Remove unused newsize.
4851
4852 2013-01-31  Tom Tromey  <tromey@redhat.com>
4853
4854         PR c++/14998:
4855         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
4856         TYPE_CODE_FUNC.
4857
4858 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4859
4860         * target.c (target_read_string): Remove unused origlen.
4861
4862 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4863
4864         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
4865         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
4866         * ax-general.c (ax_print): Remove unused is_float.
4867         * blockframe.c (block_innermost_frame): Remove unused start, end.
4868         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
4869
4870 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
4871
4872         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
4873         (svr4_read_so_list): Remove unused lmo.
4874         * solib-target.c (solib_target_relocate_section_addresses): Remove
4875         unused flags.
4876
4877 2013-01-30  Tom Tromey  <tromey@redhat.com>
4878
4879         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
4880
4881 2013-01-30  Tom Tromey  <tromey@redhat.com>
4882
4883         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
4884         * utils.c (gnu_debuglink_crc32): Remove.
4885         * utils.h (gnu_debuglink_crc32): Don't declare.
4886
4887 2013-01-30  Tom Tromey  <tromey@redhat.com>
4888
4889         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
4890         (read_structure_type, read_enumeration_type): Remove cast.
4891
4892 2013-01-30  Tom Tromey  <tromey@redhat.com>
4893
4894         * dwarf2read.c (read_namespace_type): Remove cast.
4895         (read_typedef): Likewise.
4896
4897 2013-01-29  Tom Tromey  <tromey@redhat.com>
4898
4899         * dwarf2read.c (free_dwo_file): Remove assert.
4900
4901 2013-01-29  Tom Tromey  <tromey@redhat.com>
4902
4903         * value.c (deprecated_set_value_modifiable): Remove.
4904         * value.h (deprecated_set_value_modifiable): Remove.
4905
4906 2013-01-28  Doug Evans  <dje@google.com>
4907
4908         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
4909         to addresses from dwo files.
4910
4911 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
4912
4913         * valops.c (find_overload_match): Remove unused argument 'lax'.
4914         * value.h: Remove unused argument 'lax' from the declaration of
4915         find_overload_match.
4916         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
4917         to find_overload_match.
4918         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
4919         argument to find_overload_match.
4920
4921 2013-01-25  Tom Tromey  <tromey@redhat.com>
4922
4923         * dwarf2read.c (processing_has_namespace_info): Remove.
4924         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
4925         (process_die, read_func_scope, dwarf2_start_symtab)
4926         (new_symbol_full): Update.
4927
4928 2013-01-25  Tom Tromey  <tromey@redhat.com>
4929
4930         * cp-namespace.c (cp_set_block_scope): Remove.
4931         * cp-support.h (cp_set_block_scope): Remove.
4932         * dbxread.c: Include block.h.
4933         (cp_set_block_scope): New function.
4934         (process_one_symbol): Update.
4935         * dwarf2read.c (read_func_scope): Use block_set_scope.
4936
4937 2013-01-25  Pedro Alves  <palves@redhat.com>
4938
4939         * remote.c (add_current_inferior_and_thread): Tweak comment.
4940
4941 2013-01-25  Tom Tromey  <tromey@redhat.com>
4942
4943         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4944         (cp_add_using_directive): Add 'copy_names' argument.
4945         * cp-support.h (cp_add_using_directive): Update.
4946         (struct using_direct) <import_src, import_dest, alias,
4947         declaration>: Now const.
4948         * dwarf2read.c (read_import_statement): Use obconcat.
4949         Don't copy names passed to cp_add_using_directive.
4950
4951 2013-01-25  Tom Tromey  <tromey@redhat.com>
4952
4953         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
4954
4955 2013-01-25  Pedro Alves  <palves@redhat.com>
4956
4957         * remote.c (stop_reply_extract_thread): New.
4958         (add_current_inferior_and_thread): New parameter 'wait_status'.
4959         Handle it.
4960         (remote_start_remote): Pass wait status to
4961         add_current_inferior_and_thread.
4962         (extended_remote_run): Update comment.
4963         (extended_remote_create_inferior_1): Pass wait status to
4964         add_current_inferior_and_thread.
4965
4966 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
4967             Ulrich Weigand  <uweigand@de.ibm.com>
4968
4969         * valarith.c (value_vector_widen): New function for replicating a
4970         scalar into a vector.
4971         (value_binop): Use value_vector_widen to widen scalar to vector
4972         rather than casting, this better matches gcc C behaviour.
4973         * valops.c (value_casst): Update logic for casting between vector
4974         types, and for casting from scalar to vector, try to match gcc C
4975         behaviour.
4976         * value.h (value_vector_widen): Declare.
4977         * opencl-lang.c (opencl_value_cast): New opencl specific casting
4978         function, handle special case for casting scalar to vector.
4979         (opencl_relop): Use opencl_value_cast.
4980         (evaluate_subexp_opencl): Use opencl_value_cast instead of
4981         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
4982         in order to use opencl_value_cast.
4983
4984 2013-01-25  Yao Qi  <yao@codesourcery.com>
4985
4986         * event-loop.c: Include "queue.h".
4987         (gdb_event_p): New typedef.
4988         (DECLARE_QUEUE_P): Use.
4989         (DEFINE_QUEUE_P): Use.
4990         (async_queue_event): Remove.
4991         (gdb_event_xfree): New.
4992         (initialize_event_loop): New.
4993         (process_event): Use QUEUE macros.
4994         (event_queue): Remove.
4995         (gdb_wait_for_event): Caller update.
4996         (check_async_event_handlers): Likewise.
4997         (poll_timers): Likewise.
4998         * event-loop.h (initialize_event_loop): Declare.
4999         * event-loop.c (gdb_event_xfree): New.
5000         * top.c (gdb_init): Call initialize_event_loop.
5001
5002 2013-01-25  Yao Qi  <yao@codesourcery.com>
5003
5004         * event-loop.c (async_queue_event): Remove one parameter
5005         'position'.  Remove code handling 'position' == TAIL.
5006         (gdb_wait_for_event): Caller update.
5007         (check_async_event_handlers): Caller update.
5008         (poll_timers): Caller update.
5009         * event-loop.h (enum queue_position): Remove.
5010
5011 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
5012
5013         * MAINTAINERS: Update my email.
5014
5015 2013-01-25  Yao Qi  <yao@codesourcery.com>
5016
5017         * main.c (print_gdb_help): Remove "--epoch" from the help
5018         message.
5019
5020 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
5021
5022         * symtab.c (skip_prologue_using_sal): Consider a file
5023         change the same as an increased line number
5024
5025 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5026
5027         * MAINTAINERS (Write After Approval): Add myself to the list.
5028
5029 2013-01-24  Tom Tromey  <tromey@redhat.com>
5030
5031         * ada-lang.h (ada_decode_symbol): Make return type const.
5032         * ada-lang.c (ada_decode_symbol): Likewise.
5033
5034 2013-01-23  Doug Evans  <dje@google.com>
5035
5036         * linespec.c (find_linespec_symbols): Make static.
5037
5038 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5039
5040         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
5041         type on float conversion for complex type.
5042
5043 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
5044
5045         Add a new class gdb.Architecture which exposes GDB's
5046         internal representation of architecture via GDB Python API.
5047         * Makefile.in: Add entries corresponding to the new file
5048         python/py-arch.c.
5049         * NEWS (Python Scripting): Add entries for the new class
5050         gdb.Architecture and the new method gdb.Frame.architecture.
5051         * python/py-arch.c: Implement gdb.Architecture class.
5052         * python/py-frame.c (frapy_arch): Implement the method
5053         gdb.Frame.architecture().
5054         (frame_object_methods): Add 'architecture' to the method table.
5055         * python/python-internal.h: Add declarations of new utility
5056         functions.
5057         * python/python.c (_initialize_python): Initialize
5058         gdb.Architecture class.
5059
5060 2013-01-23  Doug Evans  <dje@google.com>
5061
5062         Work around binutils/15021.
5063         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
5064         type_unit_group out of union s.  All uses updated.
5065         (read_index_from_section): Watch for index version 8.
5066         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
5067         an imported symtab.
5068         (write_psymtabs_to_index): Increment version number to 8.
5069
5070 2013-01-22  Pedro Alves  <palves@redhat.com>
5071
5072         * annotate.c (breakpoint_changed): Skip if breakpoint is not
5073         user-visible.
5074
5075 2013-01-22  Pedro Alves  <palves@redhat.com>
5076
5077         * annotate.c (annotate_breakpoints_changed): Rename to ...
5078         (annotate_breakpoints_invalid): ... this.  Make static.
5079         (breakpoint_changed): Adjust.
5080         (_initialize_annotate): Always install the observers.  Install a
5081         "breakpoint_created" observer.
5082         * annotate.h (annotate_breakpoints_changed): Delete declaration.
5083         * breakpoint.c (set_breakpoint_condition)
5084         (breakpoint_set_commands, do_map_commands_command)
5085         (init_raw_breakpoint, clear_command, set_ignore_count)
5086         (enable_breakpoint_disp): No longer call
5087         annotate_breakpoints_changed.
5088
5089 2013-01-22  Pedro Alves  <palves@redhat.com>
5090
5091         * annotate.c: Include "inferior.h".
5092         (frames_invalid_emitted)
5093         (breakpoints_invalid_emitted): New globals.
5094         (async_background_execution_p): New function.
5095         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
5096         emitting the annotation if it has already been emitted.
5097         (annotate_display_prompt): New function.
5098         * annotate.h (annotate_display_prompt): New declaration.
5099         * event-top.c: Include annotate.h.
5100         (display_gdb_prompt): Call annotate_display_prompt.
5101
5102 2013-01-22  Pedro Alves  <palves@redhat.com>
5103
5104         * annotate.c (ignore_count_changed): Delete.
5105         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
5106         (annotate_ignore_count_change): Delete.
5107         (annotate_stopped): Don't emit a delayed breakpoints-changed
5108         annotation.
5109         * annotate.h (annotate_ignore_count_change): Delete.
5110         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
5111         annotate_ignore_count_change.
5112
5113 2013-01-22  Tom Tromey  <tromey@redhat.com>
5114
5115         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
5116         require_rvalue for a register location.
5117
5118 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
5119
5120         * breakpoint.c (print_one_breakpoint_location): Add MI
5121         field 'thread-groups' when printing a breakpoint.
5122         (output_thread_groups): New function.
5123
5124 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
5125
5126         * python/lib/gdb/commands/explore.py
5127         (CompoundExplorer.explore_expr): Correct the name of a method
5128         being invoked.
5129         (ExploreTypeCommand.invoke): Add a missing 'return'.
5130
5131 2013-01-21  Tom Tromey  <tromey@redhat.com>
5132
5133         * gdb_obstack.h (obconcat): Move declaration here, from...
5134         * symfile.h (obconcat): ... here.
5135         * gdb_obstack.c: New file.
5136         (obconcat): Move from...
5137         * symfile.c (obconcat): ... here.
5138         * Makefile.in (SFILES): Add gdb_obstack.c.
5139         (COMMON_OBS): Add gdb_obstack.o.
5140
5141 2013-01-21  Tom Tromey  <tromey@redhat.com>
5142
5143         * symfile.h (obsavestring): Don't declare.
5144         * symfile.c (obsavestring): Remove.
5145         * ada-exp.y: Use obstack_copy0, not obsavestring.
5146         * ada-lang.c: Use obstack_copy0, not obsavestring.
5147         * coffread.c: Use obstack_copy0, not obsavestring.
5148         * cp-namespace.c: Use obstack_copy0, not obsavestring.
5149         * dbxread.c: Use obstack_copy0, not obsavestring.
5150         * dwarf2read.c: Use obstack_copy0, not obsavestring.
5151         * jit.c: Use obstack_copy0, not obsavestring.
5152         * mdebugread.c: Use obstack_copy0, not obsavestring.
5153         * psymtab.c: Use obstack_copy0, not obsavestring.
5154         * stabsread.c: Use obstack_copy0, not obsavestring.
5155         * xcoffread.c: Use obstack_copy0, not obsavestring.
5156
5157 2013-01-21  Tom Tromey  <tromey@redhat.com>
5158
5159         * dwarf2read.c (fixup_go_packaging): Save package name
5160         on objfile obstack.
5161         * gdbtypes.c (init_type): Don't copy name.
5162
5163 2013-01-21  Tom Tromey  <tromey@redhat.com>
5164
5165         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
5166         const.
5167         (struct attribute) <u.str>: Now const.
5168         (struct fnfieldlist) <name>: Now const.
5169         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
5170         (partial_die_parent_scope): Make return type const.
5171         (partial_die_full_name, add_partial_symbol): Update.
5172         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
5173         'name' const.
5174         (find_file_and_directory): Make 'name' and 'comp_dir' const.
5175         (read_file_scope, read_func_scope, dwarf2_add_field)
5176         (dwarf2_add_member_fn, read_structure_type)
5177         (process_enumeration_scope, read_array_type, read_module_type)
5178         (read_base_type, read_subrange_type): Update.
5179         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
5180         (new_symbol_full, guess_full_die_structure_name): Update.
5181         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
5182         (dwarf2_name): Return const type.
5183         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
5184         const.
5185
5186 2013-01-21  Tom Tromey  <tromey@redhat.com>
5187
5188         * gdbtypes.c (init_type): Make 'name' const.
5189         * gdbtypes.h (init_type): Update.
5190
5191 2013-01-21  Tom Tromey  <tromey@redhat.com>
5192
5193         * buildsym.c (patch_subfile_names): Use set_last_source_file.
5194         (start_symtab): Make 'name' and 'dirname' const.  Use
5195         set_last_source_file.
5196         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
5197         (last_source_file): Define.  Now static.
5198         (set_last_source_file, get_last_source_file): New functions.
5199         * buildsym.h (last_source_file): Don't declare.
5200         (start_symtab): Update.
5201         (set_last_source_file, get_last_source_file): Declare.
5202         * coffread.c (complete_symtab): Use set_last_source_file.
5203         (coff_end_symtab): Likewise.
5204         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
5205         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
5206         set_last_source_file.
5207         (process_one_symbol): Use get_last_source_file.
5208         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
5209         (psymtab_to_symtab_1): Use get_last_source_file.
5210         * xcoffread.c (process_linenos): Use get_last_source_file.
5211         (complete_symtab): Use set_last_source_file.
5212         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
5213         (scan_xcoff_symtab): Use set_last_source_file.
5214
5215 2013-01-21  Tom Tromey  <tromey@redhat.com>
5216
5217         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
5218         (symbol_set_names): Remove casts.  Handle field const-ness.
5219
5220 2013-01-21  Tom Tromey  <tromey@redhat.com>
5221
5222         * dwarf2read.c (new_symbol_full): Remove cast.
5223         * symtab.c (symbol_set_demangled_name): Make 'name' const.
5224         * symtab.h (symbol_set_demangled_name): Update.
5225
5226 2013-01-21  Tom Tromey  <tromey@redhat.com>
5227
5228         * main.c (captured_main): Call bfd_init.
5229
5230 2013-01-21  Tom Tromey  <tromey@redhat.com>
5231
5232         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
5233         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
5234         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
5235         * NEWS: Update.
5236
5237 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5238
5239         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
5240
5241 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5242
5243         Fix gdb.fortran/common-block.exp crash in PIE mode.
5244         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
5245         LOC_COMMON_BLOCK.
5246         * f-valprint.c (info_common_command_for_block): Expect
5247         LOC_COMMON_BLOCK in gdb_assert.
5248         * symtab.h (struct general_symbol_info): Update comment for the
5249         common_block member.
5250         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
5251         (enum address_class): New member LOC_COMMON_BLOCK.
5252
5253 2013-01-18  David Blaikie  <dblaikie@gmail.com>
5254
5255         * MAINTAINERS (Write After Approval): Add "David Blaikie".
5256
5257 2013-01-18  Tom Tromey  <tromey@redhat.com>
5258
5259         PR c++/14999:
5260         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
5261         Call require_rvalue.
5262
5263 2013-01-18  Yao Qi  <yao@codesourcery.com>
5264
5265         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
5266         (dbx_read_symtab): New declaration.
5267         (dbx_psymtab_to_symtab): Delete.
5268         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
5269         Rename parameter PST to SELF.  Exchanged two parameters.
5270         (start_psymtab): Caller update.
5271         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
5272         (dwarf2_read_symtab): New declaration.
5273         (dwarf2_psymtab_to_symtab): Delete.
5274         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
5275         Rename parameter PST to SELF.  Exchanged two parameters.
5276         (create_partial_symtab): Caller update.
5277         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
5278         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
5279         Rename parameter PST to SELF.  Exchanged two parameters.
5280         (parse_partial_symbols, new_psymtab): Caller update.
5281         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
5282         two parameters.
5283         * psymtab.c (psymtab_to_symtab): Caller update.
5284         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
5285         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
5286         Rename parameter PST to SELF.  Exchanged two parameters.
5287         (xcoff_start_psymtab): Caller update.
5288
5289 2013-01-18  Yao Qi  <yao@codesourcery.com>
5290
5291         * infrun.c (proceed): Rename local variable 'oneproc' to
5292         'force_step'.
5293
5294 2013-01-17  Doug Evans  <dje@google.com>
5295
5296         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
5297         (dw2_build_type_unit_groups): Delete.  All uses updated.
5298
5299         * symtab.h (struct symbol_search): Add comment.
5300
5301 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5302
5303         * symtab.c (compare_filenames_for_search): New comment for
5304         HAS_DRIVE_SPEC.
5305
5306 2013-01-17  Tom Tromey  <tromey@redhat.com>
5307
5308         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
5309
5310 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5311
5312         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
5313         initialize it by existing make_cleanup.  Call new do_cleanups.
5314
5315 2013-01-17  Tom Tromey  <tromey@redhat.com>
5316
5317         * cp-abi.c (cp_abi_completer): New function.
5318         (_initialize_cp_abi): Set completer for "set cp-abi".
5319
5320 2013-01-17  Tom Tromey  <tromey@redhat.com>
5321
5322         * mem-break.c: Remove obsolete comment.
5323         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
5324
5325 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
5326
5327         * jit.c (jit_reader_load_command): Interpret the jit reader name
5328         as an absolute path if it begins with a forward slash.
5329
5330 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
5331
5332         PR gdb/14550
5333
5334         * jit.c (finalize_symtab): Ensure that only the global block has a
5335         NULL superblock.
5336
5337 2013-01-17  Pedro Alves  <palves@redhat.com>
5338
5339         * acinclude.m4: Include ../config/plugins.m4,
5340         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
5341         * Makefile.in (aclocal_m4_deps): Update.
5342         * aclocal.m4: Renegerate.
5343
5344 2013-01-16  Doug Evans  <dje@google.com>
5345
5346         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
5347
5348 2013-01-16  Pedro Alves  <palves@redhat.com>
5349             Tom Tromey  <tromey@redhat.com>
5350
5351         PR cli/7221:
5352         * NEWS: Add "catch signal".
5353         * breakpoint.c (base_breakpoint_ops): No longer static.
5354         (bpstat_explains_signal): New function.
5355         (init_catchpoint): No longer static.
5356         (base_breakpoint_explains_signal): New function.
5357         (base_breakpoint_ops): Initialize new field.
5358         * breakpoint.h (enum bpstat_signal_value): New.
5359         (struct breakpoint_ops) <explains_signal>: New field.
5360         (bpstat_explains_signal): Remove macro, declare as function.
5361         (base_breakpoint_ops, init_catchpoint): Declare.
5362         * break-catch-sig.c: New file.
5363         * inferior.h (signal_catch_update): Declare.
5364         * infrun.c (signal_catch): New global.
5365         (handle_syscall_event): Update for change to
5366         bpstat_explains_signal.
5367         (handle_inferior_event): Likewise.  Always handle random signals
5368         via bpstats.
5369         (signal_cache_update): Check signal_catch.
5370         (signal_catch_update): New function.
5371         (_initialize_infrun): Initialize signal_catch.
5372         * Makefile.in (SFILES): Add break-catch-sig.c.
5373         (COMMON_OBS): Add break-catch-sig.o.
5374
5375 2013-01-16  Tom Tromey  <tromey@redhat.com>
5376
5377         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
5378         (print_one_catch_solib, print_one_catch_syscall)
5379         (print_one_catch_exec, print_one_exception_catchpoint): Emit
5380         "catch-type".
5381
5382 2013-01-16  Yao Qi  <yao@codesourcery.com>
5383
5384         * printcmd.c (current_display_number): Make it static.
5385
5386 2013-01-16  Yao Qi  <yao@codesourcery.com>
5387
5388         * infcmd.c (step_once): Don't check '!single_inst' as it was
5389         checked before.
5390
5391 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5392
5393         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
5394
5395 2013-01-14  Tom Tromey  <tromey@redhat.com>
5396
5397         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
5398         set command.
5399         * command.h (add_setshow_string_noescape_cmd): Update.
5400         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
5401         (complete_set_gnutarget): New function.
5402         (_initialize_core): Set the "set gnutarget" completer.
5403
5404 2013-01-14  Tom Tromey  <tromey@redhat.com>
5405
5406         PR symtab/14442:
5407         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
5408         (c_type_print_modifier): Likewise.
5409         * dwarf2read.c (read_tag_restrict_type): New function.
5410         (read_type_die_1): Handle DW_TAG_restrict_type.
5411         * gdbtypes.c (make_restrict_type): New function.
5412         (recursive_dump_type): Handle TYPE_RESTRICT.
5413         * gdbtypes.h (enum type_flag_values): Renumber.
5414         (enum type_instance_flag_value): Add
5415         TYPE_INSTANCE_FLAG_RESTRICT.
5416         (TYPE_RESTRICT): New macro.
5417         (make_restrict_type): Declare.
5418
5419 2013-01-14  Tom Tromey  <tromey@redhat.com>
5420
5421         PR symtab/14931:
5422         * psymtab.c (struct psymtab_state): New.
5423         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
5424         functions.
5425         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
5426         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
5427
5428 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
5429             Pedro Alves  <palves@redhat.com>
5430
5431         PR remote/14786
5432
5433         * remote.c (remote_threads_info): Make a copy of the reply from
5434         qfThreadInfo and use that instead of rs->buf.
5435
5436 2013-01-14  Yao Qi  <yao@codesourcery.com>
5437
5438         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
5439         (dbx_psymtab_to_symtab): Likewise.
5440         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
5441         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
5442         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
5443
5444 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5445
5446         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
5447         make_cleanup_restore_current_language.  Call set_language.  Move
5448         OLD_CHAIN and INNER_CHAIN cleanups.
5449         * utils.c (do_restore_current_language)
5450         (make_cleanup_restore_current_language): New functions.
5451         * utils.h (make_cleanup_restore_current_language): New declaration.
5452
5453 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5454
5455         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
5456         non-existing files.
5457
5458         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
5459         non-existing files if FILENAME is already absolute.
5460
5461 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5462
5463         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
5464         fputs_filtered.  Append trailing newline.
5465
5466 2013-01-11  Yao Qi  <yao@codesourcery.com>
5467             Stan Shebs  <stan@codesourcery.com>
5468
5469         * psymtab.c (init_psymbol_list): Clarify the comment.
5470
5471 2013-01-11  Yao Qi  <yao@codesourcery.com>
5472
5473         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
5474         (update_dprintf_command_list): Assert that 'printf_line' is
5475         non-null.  Remove condition check.
5476
5477 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5478
5479         Code cleanup.
5480         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
5481         type const char *.
5482         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
5483         const char *.
5484         * tui/tui-source.h (tui_source_is_displayed): Likewise.
5485
5486 2013-01-09  Anthony Green  <green@moxielogic.com>
5487
5488         * cp-abi.c (cplus_print_vtable): Don't return value from void
5489         function.
5490         * ada-lang.c (re_set_catch_assert): Ditto.
5491
5492 2013-01-09  Doug Evans  <dje@google.com>
5493
5494         * symfile.h (quick_symbol_functions): Delete member
5495         pre_expand_symtabs_matching.  All uses removed.
5496         * dwarf2read.c (dw2_lookup_symbol): Implement.
5497         (dw2_do_expand_symtabs_matching): Delete.
5498         (dw2_pre_expand_symtabs_matching): Delete.
5499         (struct dw2_symtab_iterator): New type.
5500         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
5501         (dw2_expand_symtabs_for_function): Rewrite.
5502         (dwarf2_gdb_index_functions): Update.
5503         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
5504         (psym_functions): Update.
5505
5506 2013-01-09  Tom Tromey  <tromey@redhat.com>
5507
5508         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
5509         * configure: Rebuild.
5510         * configure.ac: Add somread.o to the build if BFD has SOM
5511         support.
5512         * somread.c: Include som/aout.h, not syms.h.
5513         (som_symtab_read): Use som_external_symbol_dictionary_record.
5514         Unpack records manually.
5515         (_initialize_somread): Declare.
5516
5517 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
5518
5519         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
5520         Cast return_address to 64bits.
5521
5522 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
5523
5524         * printcmd.c: Remove define of function output_command.
5525         * tracepoint.c: Remove extern of function output_command.
5526         * valprint.h: (output_command): New extern.
5527
5528 2013-01-07  Tom Tromey  <tromey@redhat.com>
5529
5530         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
5531         Remove.
5532         (objc_language_defn): Use c_printchar, c_printstr,
5533         c_emit_char.
5534
5535 2013-01-07  Tom Tromey  <tromey@redhat.com>
5536
5537         PR cli/7719:
5538         * NEWS: Update.
5539         * ada-valprint.c (printstr, print_field_values): Remove
5540         "inspect_it" code.
5541         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
5542         code.
5543         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
5544         code.
5545         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
5546         * main.c (captured_main): Remove "epoch" argument.
5547         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
5548         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
5549         * p-valprint.c (pascal_object_print_value_fields): Remove
5550         "inspect_it" code.
5551         * printcmd.c (print_command_1): Remove 'inspect' argument.
5552         (print_command, call_command): Update.
5553         (inspect_command): Remove.
5554         (_initialize_printcmd): Make "inspect" an alias for "print".
5555         * top.c (epoch_interface): Remove.
5556         * top.h (epoch_interface): Remove.
5557         * valprint.c (user_print_options): Update.
5558         (print_converted_chars_to_obstack): Remove "inspect_it" code.
5559         * valprint.h (struct value_print_options) <inspect_it>: Remove
5560         field.
5561
5562 2013-01-04  Tom Tromey  <tromey@redhat.com>
5563
5564         * valprint.h (read_string): Add 'extern'.
5565
5566 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
5567
5568         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
5569         used to decide whether to define darwin_read_dyld_info or not.
5570
5571 2013-01-03  Pierre Muller  <muller@sourceware.org>
5572
5573         * main.c (relocate_gdb_directory): Avoid calling stat function
5574         if DIR is empty.
5575
5576 2013-01-03  Yao Qi  <yao@codesourcery.com>
5577
5578         * psymtab.c (fixup_psymbol_section): Update declaration.
5579         (fixup_psymbol_section): Remove code returning value.
5580
5581 2013-01-03  Yao Qi  <yao@codesourcery.com>
5582
5583         * symtab.h: Remove some out of date comments.
5584          (enum exception_event_kind): Move it ...
5585         * breakpoint.c: ... here.
5586
5587 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
5588
5589         PR gdb/14405
5590         * darwin-nat.c (darwin_read_dyld_info): Only build if
5591         TASK_DYLD_INFO_COUNT is defined.
5592         (darwin_xfer_partial): Call darwin_read_dyld_info only if
5593         TASK_DYLD_INFO_COUNT is defined.
5594
5595 2013-01-02  Tom Tromey  <tromey@redhat.com>
5596
5597         * symfile.h (struct ecoff_debug_hack): Remove.
5598         * objfiles.c: Don't include mdebugread.h.
5599
5600 2013-01-02  Tom Tromey  <tromey@redhat.com>
5601
5602         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
5603         * configure.ac: Check for Mach-O support in BFD.  Update
5604         CONFIG_OBS.
5605         * configure: Rebuild.
5606
5607 2013-01-02  Tom Tromey  <tromey@redhat.com>
5608
5609         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
5610         * configure.ac: Use GDB_AC_CHECK_BFD.
5611         * configure: Rebuild.
5612
5613 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
5614
5615         * MAINTAINERS: Update my email.
5616
5617 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
5618
5619         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
5620
5621 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
5622
5623         * rs6000-nat.c (bss_data_overlap): New function.
5624         (vmap_symtab): Use it to adjust the .bss section's offset.
5625
5626 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
5627
5628         Update year range in copyright notice of all files.
5629
5630 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
5631
5632         * top.c (print_gdb_version): Update copyright year.
5633
5634 For older changes see ChangeLog-2012.
5635 \f
5636 Local Variables:
5637 mode: change-log
5638 left-margin: 8
5639 fill-column: 74
5640 version-control: never
5641 coding: utf-8
5642 End: