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