Create nat/i386-dregs.h
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-06-18  Gary Benson  <gbenson@redhat.com>
2
3         * nat/i386-dregs.h: New file.
4         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5         * i386-nat.h (i386-dregs.h): New include.
6         (DR_FIRSTADDR): Now in i386-dregs.h.
7         (DR_LASTADDR): Likewise.
8         (DR_NADDR): Likewise.
9         (DR_STATUS): Likewise.
10         (DR_CONTROL): Likewise.
11         (i386_debug_reg_state): Likewise.
12         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
13
14 2014-06-18  Don Breazeal  <donb@codesourcery.com>
15
16         * breakpoint.c (set_longjmp_breakpoint): Call
17         momentary_breakpoint_from_master with additional argument.
18         (set_longjmp_breakpoint_for_call_dummy): Call
19         momentary_breakpoint_from_master with additional argument.
20         (set_std_terminate_breakpoint): Call
21         momentary_breakpoint_from_master with additional argument.
22         (momentary_breakpoint_from_master): Add argument to function
23         definition and use it to initialize structure member flag.
24         (clone_momentary_breakpoint): Call 
25         momentary_breakpoint_from_master with additional argument.
26         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
27         member flags set in momentary_breakpoint_from_master.
28
29 2014-06-18  Gary Benson  <gbenson@redhat.com>
30
31         * i386-nat.c (i386_show_dr): Renamed to
32         i386_dr_show and made nonstatic.  All uses updated.
33         (i386_length_and_rw_bits): Renamed to
34         i386_dr_length_and_rw_bits and made nonstatic.
35         All uses updated.
36         (i386_insert_aligned_watchpoint): Renamed to
37         i386_dr_insert_aligned_watchpoint and made nonstatic.
38         All uses updated.
39         (i386_remove_aligned_watchpoint): Renamed to
40         i386_dr_remove_aligned_watchpoint and made nonstatic.
41         All uses updated.
42         (i386_update_inferior_debug_regs): Renamed to
43         i386_dr_update_inferior_debug_regs and made nonstatic.
44         All uses updated.
45
46 2014-06-18  Gary Benson  <gbenson@redhat.com>
47
48         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
49         (i386_dr_low_can_set_control): Likewise.
50         (i386_dr_low_set_addr): Likewise.
51         (i386_dr_low_set_control): Likewise.
52         (i386_dr_low_get_addr): Likewise.
53         (i386_dr_low_get_status): Likewise.
54         (i386_dr_low_get_control): Likewise.
55         (i386_insert_aligned_watchpoint): Use new macros.
56         (i386_update_inferior_debug_regs): Likewise.
57         (i386_stopped_data_address): Likewise.
58
59 2014-06-18  Gary Benson  <gbenson@redhat.com>
60
61         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
62         New parameter.  All uses updated.
63
64 2014-06-18  Gary Benson  <gbenson@redhat.com>
65
66         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
67         All uses updated.
68
69 2014-06-18  Gary Benson  <gbenson@redhat.com>
70
71         * i386-nat.c (debug_printf): New macro.
72         (i386_get_debug_register_length): Likewise.
73         (TARGET_HAS_DR_LEN_8): Use above macro.
74         (i386_show_dr): Use debug_printf instead of puts_unfiltered
75         and printf_unfiltered.  Use phex to format values.
76
77 2014-06-18  Gary Benson  <gbenson@redhat.com>
78
79         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
80         Make const.
81
82 2014-06-18  Gary Benson  <gbenson@redhat.com>
83
84         * i386-nat.c: Comment changes.
85
86 2014-06-18  Gary Benson  <gbenson@redhat.com>
87
88         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
89
90 2014-06-18  Gary Benson  <gbenson@redhat.com>
91
92         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
93         (i386_insert_aligned_watchpoint): Likewise.
94         (i386_remove_aligned_watchpoint): Likewise.
95         (i386_handle_nonaligned_watchpoint): Likewise.
96
97 2014-06-18  Gary Benson  <gbenson@redhat.com>
98
99         * i386-nat.c: Whitespace changes.
100
101 2014-06-17  Samuel Bronson  <naesten@gmail.com>
102
103         * MAINTAINERS: Update Roland McGrath's email address.
104         Thanks to Sergio Durigan Junior for pointing out that he left
105         Red Hat a while ago, and giving me a current address.
106
107 2014-06-17  Tom Tromey  <tromey@redhat.com>
108
109         * utils.h (savestring): Remove declaration.
110
111 2014-06-17  Tom Tromey  <tromey@redhat.com>
112
113         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
114
115 2014-06-16  Keith Seitz  <keiths@redhat.com>
116
117         PR mi/15863
118         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
119         to update the varobj if inferior_ptid is null_ptid.
120
121 2014-06-16  Tom Tromey  <tromey@redhat.com>
122
123         * target.h (struct target_ops) <to_info_proc>: Make parameter
124         const.
125         (target_info_proc): Update.
126         * target.c (target_info_proc): Make "args" const.
127         * procfs.c (procfs_info_proc): Update.
128         * linux-tdep.c (linux_info_proc): Update.
129         (linux_core_info_proc_mappings): Make "args" const.
130         (linux_core_info_proc): Update.
131         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
132         * gdbarch.c: Rebuild.
133         * gdbarch.h: Rebuild.
134         * corelow.c (core_info_proc): Update.
135
136 2014-06-16  Tom Tromey  <tromey@redhat.com>
137
138         * target.h (struct target_ops) <to_disconnect>: Make parameter
139         const.
140         (target_disconnect): Update.
141         * target.c (target_disconnect): Make "args" const.
142         * target-delegates.c: Rebuild.
143         * remote.c (remote_disconnect): Update.
144         * record.h (record_disconnect): Update.
145         * record.c (record_disconnect): Update.
146         * inf-child.c (inf_child_disconnect): Update.
147
148 2014-06-16  Tom Tromey  <tromey@redhat.com>
149
150         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
151         * target.c (debug_to_rcmd, default_rcmd): Update.
152         * target-delegates.c: Rebuild.
153         * remote.c (remote_rcmd): Update.
154         * monitor.c (monitor_rcmd): Update.
155
156 2014-06-16  Pedro Alves  <palves@redhat.com>
157
158         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
159         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
160         have OBJF_SHARED set.
161         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
162         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
163         instead of OBJF_USERLOADED.
164         * objfiles.h (OBJF_SHARED): Update comment.
165         (userloaded_objfile_contains_address_p): Rename to ...
166         (shared_objfile_contains_address_p): ... this, and update
167         comments.
168         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
169         new objfile.
170         (remove_symbol_file_command): Skip objfiles that don't have
171         OBJF_SHARED set.
172
173 2014-06-16  Tom Tromey  <tromey@redhat.com>
174
175         * minsyms.h (prim_record_minimal_symbol)
176         (prim_record_minimal_symbol_and_info): Update comments.
177
178 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
179
180         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
181         or --without-guile, according to how GDB was built.
182
183 2014-06-13  Tom Tromey  <tromey@redhat.com>
184
185         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
186         to help_list.
187         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
188         to help_list.
189         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
190         help_list.
191         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
192         help_list.Pass all_commands, not -1, to help_list.
193         * cli/cli-dump.c (dump_command, append_command)
194         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
195         (binary_dump_command, binary_append_command): Pass all_commands,
196         not -1, to help_list.
197         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
198         -1, to help_list.
199         * valprint.c (set_print, set_print_raw): Pass all_commands, not
200         -1, to help_list.
201         * typeprint.c (set_print_type): Pass all_commands, not -1, to
202         help_list.
203         * top.c (set_history): Pass all_commands, not -1, to help_list.
204         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
205         all_commands, not -1, to help_list.
206         * symfile.c (overlay_command): Pass all_commands, not -1, to
207         help_list.
208         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
209         help_list.
210         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
211         help_list.
212         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
213         -1, to help_list.
214         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
215         not -1, to help_list.
216         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
217         not -1, to help_list.
218         * maint.c (maintenance_command, maintenance_info_command)
219         (maintenance_print_command, maintenance_set_cmd): Pass
220         all_commands, not -1, to help_list.
221         * macrocmd.c (macro_command): Pass all_commands, not -1, to
222         help_list.
223         * language.c (set_check): Pass all_commands, not -1, to help_list.
224         * infcmd.c (unset_command): Pass all_commands, not -1, to
225         help_list.
226         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
227         help_list.
228         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
229         help_list.
230         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
231         help_list.
232         * breakpoint.c (save_command): Pass all_commands, not -1, to
233         help_list.
234         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
235         all_commands, not -1, to help_list.
236
237 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
238
239         * regcache.c (struct register_to_invalidate): New structure.
240         (do_register_invalidate, make_cleanup_regcache_invalidate): New
241         functions.
242         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
243
244 2014-06-12  Yao Qi  <yao@codesourcery.com>
245
246         * varobj.c (varobj_get_num_children): Call
247         varobj_is_dynamic_p.
248         (varobj_list_children): Likewise.
249         (varobj_update): Likewise.  Update comments.
250
251 2014-06-12  Yao Qi  <yao@codesourcery.com>
252
253         * varobj.c (varobj_pretty_printed_p): Rename to ...
254         (varobj_is_dynamic_p): ... this.  New function.
255         * varobj.h (varobj_pretty_printed_p): Remove declaration.
256         (varobj_is_dynamic_p): Declare.
257         * mi/mi-cmd-var.c (print_varobj): All callers updated.
258         (mi_print_value_p, varobj_update_one): Likewise.
259
260 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
261             Yao Qi  <yao@codesourcery.com>
262
263         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
264         (varobj_get_iterator): Wrap up code for pretty-printer by
265         "#if HAVE_PYTHON" and "#endif".
266         (update_dynamic_varobj_children): Likewise.
267
268 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
269             Yao Qi  <yao@codesourcery.com>
270
271         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
272         gdb_python_initialized is false.  Move some code from varobj.c.
273         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
274         * varobj.c: Move "varobj-iter.h" inclusion earlier.
275         (struct varobj_item): Moved to varobj-iter.h".
276         (varobj_clear_saved_item): New function.
277         (update_dynamic_varobj_children): Move python-related code to
278         py-varobj.c.
279         (free_variable): Call varobj_clear_saved_item and
280         varobj_iter_delete.
281
282 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
283             Yao Qi  <yao@codesourcery.com>
284
285         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
286         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
287         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
288         (py-varobj.o): New rule.
289         * python/py-varobj.c: New file.
290         * python/python-internal.h (py_varobj_get_iterator): Declare.
291         * varobj-iter.h: New file.
292         * varobj.c: Include "varobj-iter.h"
293         (struct varobj) <child_iter>: Change its type from "PyObject *"
294         to "struct varobj_iter *".
295         <saved_item>: Likewise.
296         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
297         [HAVE_PYTHON] (varobj_get_iterator): New function.
298         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
299         python-specific code to python/py-varobj.c.
300         (install_visualizer): Call varobj_iter_delete instead of
301         Py_XDECREF.
302         * varobj.h (varobj_ensure_python_env): Declare.
303
304 2014-06-12  Yao Qi  <yao@codesourcery.com>
305
306         * varobj.c (struct varobj_item): New structure.
307         (create_child_with_value): Update declaration.
308         (varobj_add_child): Replace arguments 'name' and 'value' with
309         'item'.  All callers updated.
310         (install_dynamic_child): Likewise.
311         (update_dynamic_varobj_children): Likewise.
312         (varobj_add_child): Likewise.
313         (create_child_with_value): Likewise.
314
315 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
316
317         * NEWS: Create a new section for the next release branch.
318         Rename the section of the current branch, now that it has
319         been cut.
320
321 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
322
323         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
324         * version.in: Bump version to 7.8.50.DATE-cvs.
325
326 2014-06-11  Pedro Alves  <palves@redhat.com>
327
328         PR remote/17028
329         * ser-mingw.c (net_windows_socket_check_pending): New function.
330         (net_windows_select_thread): Ignore spurious wakeups.  Use
331         net_windows_socket_check_pending.
332         (net_windows_wait_handle): Check for pending events with
333         ioctlsocket, through net_windows_socket_check_pending, instead of
334         checking the socket's event.
335
336 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
337
338         * python/python-internal.h (gdb_PyObject_GetAttrString)
339         (gdb_PyObject_HasAttrString): New inline function definitions.
340         * py-value.c (get_field_flag): Remove the now unnecessary cast to
341         char * of the second argument to PyObject_GetAttrString.
342         
343 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
344
345         * serial.c (serial_write): Fix index of character to be printed
346         in call to serial_logchar when serial debug traces are enabled.
347
348 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
349
350         * gdbtypes (resolve_dynamic_range): Add function description.
351
352 2014-06-09  Pedro Alves  <palves@redhat.com>
353
354         * linux-nat.c (linux_child_follow_fork): Initialize status with
355         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
356         inner block.  Only pass the signal to PTRACE_DETACH if in pass
357         state.
358
359 2014-06-09  Gary Benson  <gbenson@redhat.com>
360
361         * common/signals.c (gdb_signal_from_host): Reorder to separate
362         the always-available ANSI-standard signals from the signals that
363         require checking.
364         (do_gdb_signal_to_host): Likewise.
365         * proc-events.c (signal_table): Likewise.
366
367 2014-06-08  Hui Zhu  <hui@codesourcery.com>
368
369         * common/linux-ptrace.c (linux_disable_event_reporting): New
370         function.
371         * common/linux-ptrace.h (linux_disable_event_reporting): New
372         declaration.
373         * linux-nat.c (linux_child_follow_fork): Do a single step before
374         detach.
375
376 2014-06-07  Keith Seitz  <keiths@redhat.com>
377
378         Revert:
379         PR c++/16253
380         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
381         from symbol_matches_domain in symtab.c. All local callers
382         of symbol_matches_domain updated.
383         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
384         search STRUCT_DOMAIN.
385         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
386         independently.  standard_lookup will do that automatically.
387         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
388         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
389         (cp_lookup_symbol_in_namespace): Likewise.
390         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
391         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
392         may return a STRUCT_DOMAIN match.
393         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
394         * cp-support.c: Include language.h.
395         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
396         VAR_DOMAIN.
397         * psymtab.c (match_partial_symbol): Compare the requested
398         domain with the symbol's domain directly.
399         (lookup_partial_symbol): Likewise.
400         * symtab.c (lookup_symbol_in_language): Explain when/why
401         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
402         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
403         appropriate languages.
404         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
405         and moved to ada-lang.c
406         (lookup_block_symbol): Explain that this function only returns
407         symbol matching the requested DOMAIN.
408         Compare the requested domain with the symbol's domain directly.
409         (iterate_over_symbols): Compare the requested domain with the
410         symbol's domain directly.
411         * symtab.h (symbol_matches_domain): Remove.
412
413 2014-06-06  Doug Evans  <xdje42@gmail.com>
414
415         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
416         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
417         (gdbscm_guile_version_is_at_least): Declare.
418         (gdbscm_scm_string_to_int): Declare.
419         * guile/guile.c (gdbscm_guile_major_version): New global.
420         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
421         (guile_datadir): New static global.
422         (gdbscm_guile_data_directory): New function.
423         (initialize_scheme_side): Update.
424         (misc_guile_functions): Add guile-data-directory.
425         (initialize_gdb_module): Fetch guile version number.
426         * guile/lib/gdb.scm: Remove call to add-to-load-path.
427         * guile/lib/gdb/init.scm (%initialize!): Ditto.
428         * guile/lib/gdb/boot.scm: Use guile-data-directory.
429         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
430         comments.
431         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
432         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
433         * guile/scm-value.c (gdbscm_value_to_string): Only call
434         scm_port_conversion_strategy if Guile version >= 2.0.6.
435
436 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
437
438         * main.c (print_gdb_help): Add -q and --silent.
439
440 2014-06-06  Gary Benson  <gbenson@redhat.com>
441
442         * common/signals.c: Remove preprocessor conditionals for
443         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
444         SIGSEGV and SIGTERM.
445         * proc-events.c: Likewise.
446
447 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
448
449         * symfile.c (symfile_free_objfile): Remove restriction to
450         OBJF_USERLOADED.
451         * symfile-mem.c (symbol_file_add_from_memory): Call
452         add_target_sections_of_objfile.
453
454 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
455
456         * guile/scm-value.c (gdbscm_history_append_x): Use
457         'vlscm_get_value_smob_arg_unsafe' instead of
458         'vlscm_scm_to_value'.
459
460 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
461
462         PR mi/15806
463         * utils.c (printchar): Don't escape at all if quoter is NUL.
464         Update function documentation to clarify effect of parameter
465         QUOTER.
466         * remote.c (escape_buffer): Pass '\\' as the quoter to
467         fputstrn_unfiltered.
468         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
469         generate the output.
470         (mi_solib_unloaded): Same.
471
472 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
473
474         * development.sh: Delete.
475         * Makefile.in (config.status): Adjust dependency on development.sh.
476         * configure.ac: Adjust development.sh source call.
477         * configure: Regenerate.
478
479 2014-06-04  Doug Evans  <xdje42@gmail.com>
480
481         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
482         is_scheme_bkpt, spec.
483         (bpscm_make_breakpoint_smob): Initialize new members.
484         (gdbscm_create_breakpoint_x): Split into two ...
485         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
486         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
487         (scheme_function breakpoint_functions): Update.
488         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
489         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
490         register-breakpoint!.
491
492 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
493
494         PR server/17023
495         * mem-break.c (z_type_supported): Return zero if
496         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
497
498 2014-06-04  Tom Tromey  <tromey@redhat.com>
499
500         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
501         value_from_contents_and_address_unresolved.
502         (ada_template_to_fixed_record_type_1): Likewise.
503         (ada_which_variant_applies): Likewise.
504         * value.h (value_from_contents_and_address_unresolved): Declare.
505         * value.c (value_from_contents_and_address_unresolved): New
506         function.
507         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
508         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
509         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
510
511 2014-06-04  Tom Tromey  <tromey@redhat.com>
512
513         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
514
515 2014-06-04  Tom Tromey  <tromey@redhat.com>
516
517         * procfs.c (procfs_attach): Make "args" const.
518         * windows-nat.c (windows_attach): Make "args" const.
519         * nto-procfs.c (procfs_attach): Make "args" const.
520         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
521         * go32-nat.c (go32_attach): Make "args" const.
522         * gnu-nat.c (gnu_attach): Make "args" const.
523         * darwin-nat.c (darwin_attach): Make "args" const.
524         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
525         * linux-nat.c (linux_nat_attach): Make "args" const.
526         * remote.c (extended_remote_attach_1, extended_remote_attach):
527         Make "args" const.
528         * target.h (struct target_ops) <to_attach>: Make "args" const.
529         (find_default_attach): Likewise.
530         * utils.c (parse_pid_to_attach): Make "args" const.
531         * utils.h (parse_pid_to_attach): Update.
532
533 2014-06-04  Tom Tromey  <tromey@redhat.com>
534
535         * target-delegates.c: Rebuild.
536         * target.c (default_thread_address_space): New function.
537         (target_thread_address_space): Simplify.
538         * target.h (struct target_ops) <to_thread_address_space>: Add
539         TARGET_DEFAULT_FUNC.
540
541 2014-06-04  Doug Evans  <xdje42@gmail.com>
542
543         * guile/scm-type.c (type_smob): Remove duplicate typedef.
544
545 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
546
547         * record-btrace.c: Include event-loop.h and inf-loop.h.
548         (record_btrace_resume_exec_dir)
549         (record_btrace_async_inferior_event_handler)
550         (record_btrace_handle_async_inferior_event): New.
551         (record_btrace_open): Create async event handler.
552         (record_btrace_close): Delete async event handler.
553         (record_btrace_resume): Set record_btrace_resume_exec_dir,
554         Mark async event handler.
555         (record_btrace_execution_direction): New.
556         (init_record_btrace_ops): Initialize to_execution_direction.
557
558 2014-06-03  Doug Evans  <xdje42@gmail.com>
559
560         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
561         (gdbscm_make_parameter): Ditto.
562
563 2014-06-03  Doug Evans  <dje@google.com>
564
565         * exec.c (exec_close_1): Call clear_section_table instead of
566         resize_section_table.
567         (clear_section_table): New function.
568         (resize_section_table): Make static.  Rename arg num_added to
569         adjustment.
570         * exec.h (clear_section_table): Declare.
571         (resize_section_table): Delete.
572         * progspace.c (release_program_space): Call clear_section_table
573         instead of resize_section_table.
574
575 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
576
577         * NEWS (Python Scripting): Add entry about the new xmethods
578         feature.
579
580 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
581
582         * python/py-xmethods.c: New file.
583         * python/py-objfile.c (objfile_object): New field 'xmethods'.
584         (objfpy_dealloc): XDECREF on the new xmethods field.
585         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
586         field.
587         (objfpy_get_xmethods): New function.
588         (objfile_getset): New entry 'xmethods'.
589         * python/py-progspace.c (pspace_object): New field 'xmethods'.
590         (pspy_dealloc): XDECREF on the new xmethods field.
591         (pspy_new, pspace_to_pspace_object): Initialize xmethods
592         field.
593         (pspy_get_xmethods): New function.
594         (pspace_getset): New entry 'xmethods'.
595         * python/python-internal.h: Add declarations for new functions.
596         * python/python.c (_initialize_python): Invoke
597         gdbpy_initialize_xmethods.
598         * python/lib/gdb/__init__.py (xmethods): New
599         attribute.
600         * python/lib/gdb/xmethod.py: New file.
601         * python/lib/gdb/command/xmethods.py: New file.
602
603 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
604
605         * eval.c (evaluate_subexp_standard): Call the xmethod if the
606         best match method returned by find_overload_match is an xmethod.
607         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
608         the best matching operator returned by find_overload_match is an
609         xmethod.
610         * valops.c: #include "extension.h".
611         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
612         Return void.  The list of matching source methods is returned in
613         "fn_list" and a vector of matching debug method workers is
614         returned in "xm_worker_vec".  Update all callers.
615         (value_find_oload_method_list): Likewise.
616         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
617         non-NULL, then the index of the best matching method in this
618         vector is returned.  Update all callers.
619         (find_overload_match): Include xmethods while performing overload
620         resolution.
621
622 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
623
624         * defs.h (enum lval_type): New enumerator "lval_xcallable".
625         * extension-priv.h (struct extension_language_ops): Add the
626         xmethod interface.
627         * extension.c (new_xmethod_worker, clone_xmethod_worker,
628         get_matching_xmethod_workers, get_xmethod_argtypes,
629         invoke_xmethod, free_xmethod_worker,
630         free_xmethod_worker_vec): New functions.
631         * extension.h: #include "common/vec.h".
632         New function declarations.
633         (struct xmethod_worker): New struct.
634         (VEC (xmethod_worker_ptr)): New vector type.
635         (xmethod_worker_ptr): New typedef.
636         (xmethod_worker_vec): Likewise.
637         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
638         builtin_type.
639         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
640         (struct builtin_type): New field "xmethod".
641         * valarith.c (value_ptradd): Assert that the value argument is not
642         lval_xcallable.
643         * valops.c (value_must_coerce_to_target): Return 0 for
644         lval_xcallable values.
645         * value.c (struct value): New field XM_WORKER in the field
646         LOCATION.
647         (value_address, value_raw_address): Return 0 for lval_xcallable
648         values.
649         (set_value_address): Assert that the value is not an
650         lval_xcallable.
651         (value_free): Free the associated xmethod worker when freeing
652         lval_xcallable values.
653         (set_value_component_location): Assert that the WHOLE value is not
654         lval_xcallable.
655         (value_of_xmethod, call_xmethod): New functions.
656         * value.h: Declare "struct xmethod_worker".
657         Declare new functions value_of_xmethod, call_xmethod.
658
659 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
660             Pedro Alves  <palves@redhat.com>
661
662         PR breakpoints/17000
663         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
664         New function, extracted from software_breakpoint_inserted_here_p.
665         (software_breakpoint_inserted_here_p): Replace factored out code
666         by call to find_non_raw_software_breakpoint_inserted_here.
667         (bp_target_info_copy_insertion_state): New function.
668         (bkpt_insert_location): Handle the case of a single-step
669         breakpoint already inserted at the same address.
670         (bkpt_remove_location): Handle the case of a single-step
671         breakpoint still inserted at the same address.
672         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
673         breakpoint already inserted at the same address.
674         (deprecated_remove_raw_breakpoint): Handle the case of a
675         non-raw breakpoint still inserted at the same address.
676         (find_single_step_breakpoint): New function, extracted from
677         single_step_breakpoint_inserted_here_p.
678         (find_single_step_breakpoint): New function,
679         factored out from single_step_breakpoint_inserted_here_p.
680         (single_step_breakpoint_inserted_here_p): Reimplement.
681
682 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
683
684         Pushed by Joel Brobecker  <brobecker@adacore.com>
685         * source.c (show_substitute_path_command): Fix display of matching
686         substitution rules.
687
688 2014-06-03  Gary Benson  <gbenson@redhat.com>
689
690         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
691
692 2014-06-02  Doug Evans  <xdje42@gmail.com>
693
694         Add parameter support for Guile.
695         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
696         (SUBDIR_GUILE_SRCS): Add scm-param.c.
697         (scm-param.o): New rule.
698         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
699         (gdbscm_misc_error): Declare.
700         (gdbscm_canonicalize_command_name): Declare.
701         (gdbscm_scm_to_host_string): Declare.
702         (gdbscm_scm_from_host_string): Declare.
703         (gdbscm_initialize_parameters): Declare.
704         * guile/guile.c (initialize_gdb_module): Call
705         gdbscm_initialize_parameters.
706         * guile/lib/gdb.scm: Export parameter symbols.
707         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
708         cmdscm_canonicalize_name and made public.  All callers updated.
709         * guile/scm-exception.c (gdbscm_misc_error): New function.
710         * guile/scm-param.c: New file.
711         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
712         (gdbscm_scm_to_host_string): New function.
713         (gdbscm_scm_from_host_string): New function.
714         * scm-utils.c (gdbscm_gc_dup_argv): New function.
715
716 2014-06-02  Doug Evans  <xdje42@gmail.com>
717
718         Add command support for Guile.
719         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
720         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
721         (scm-cmd.o): New rule.
722         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
723         (gdbscm_user_error_p): Declare.
724         (gdbscm_parse_command_name): Declare.
725         (gdbscm_valid_command_class_p): Declare.
726         (gdbscm_initialize_commands): Declare.
727         * guile/guile.c (initialize_gdb_module): Call
728         gdbscm_initialize_commands.
729         * guile/lib/gdb.scm: Export command symbols.
730         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
731         (throw-user-error): New function.
732         * guile/scm-cmd.c: New file.
733         * guile/scm-exception.c (user_error_symbol): New static global.
734         (gdbscm_user_error_p): New function.
735         (gdbscm_initialize_exceptions): Set user_error_symbol.
736         * scm-utils.c (gdbscm_gc_xstrdup): New function.
737
738 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
739
740         * top.c (command_loop): Handle comments here...
741         (command_line_input): ... not here.
742
743 2014-06-02  Doug Evans  <xdje42@gmail.com>
744
745         Add progspace support for Guile.
746         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
747         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
748         (scm-progspace.o): New rule.
749         * guile/guile-internal.h (pspace_smob): New typedef.
750         (psscm_pspace_smob_pretty_printers): Declare.
751         (psscm_pspace_smob_from_pspace): Declare.
752         (psscm_scm_from_pspace): Declare.
753         * guile/guile.c (initialize_gdb_module): Call
754         gdbscm_initialize_pspaces.
755         * guile/lib/gdb.scm: Export progspace symbols.
756         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
757         support.
758         (append-pretty-printer!): Ditto.
759         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
760         Implement.
761         * guile/scm-progspace.c: New file.
762
763 2014-06-03  Alan Modra  <amodra@gmail.com>
764
765         * ppc64-tdep.c (ppc64_standard_linkage8): New.
766         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
767
768 2014-06-02  Doug Evans  <dje@google.com>
769
770         Add support for skeletonless type units.
771         * dwarf2read.c (struct dwarf2_per_objfile): New member
772         n_allocated_type_units.
773         (struct dwarf2_per_objfile) <tu_stats>: New member
774         nr_all_type_units_reallocs.
775         (create_signatured_type_table_from_index): Initialize
776         n_allocated_type_units
777         (create_all_type_units): Ditto.
778         (add_type_unit): Move up in file.  New arg slot.
779         All callers updated.  Increase space for all_type_units more
780         efficiently.
781         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
782         (lookup_dwo_signatured_type): Handle skeletonless TUs.
783         (lookup_dwp_signatured_type): Ditto.
784         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
785         All callers updated.
786         (build_type_psymtabs_1): Leave type_unit_groups as
787         NULL if no TUs present.
788         (print_tu_stats): New function.
789         (process_skeletonless_type_unit): New function.
790         (process_dwo_file_for_skeletonless_type_units): New
791         function.
792         (process_skeletonless_type_units): New function.
793         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
794         Call print tu_stats if debugging enabled.
795
796 2014-06-02  Pedro Alves  <palves@redhat.com>
797
798         * breakpoint.c (build_target_command_list): Don't build a command
799         list if we have any duplicate location that isn't a dprintf.
800
801 2014-06-02  Pedro Alves  <palves@redhat.com>
802
803         * breakpoint.c (dprintf_breakpoint_hit): New function.
804         (initialize_breakpoint_ops): Install it as dprintf's
805         breakpoint_hit method.
806
807 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
808
809         * source.c (substitute_path_rule_matches): Simplify using
810         filename_ncmp instead of FILENAME_CMP.
811
812 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
813
814         * source.c (substitute_path_rule_matches): Remove trailing spaces.
815
816 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
817
818         * configure.ac: When Guile is available, check for the
819         availability of 'scm_new_smob'.
820         * configure, config.h.in: Regenerate.
821         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
822         function.
823
824 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
825
826         * frame.c (struct frame_info): Add stop_string field.
827         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
828         (get_prev_frame_always): Old content moved into
829         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
830         TRY_CATCH, handle MEMORY_ERROR exceptions.
831         (frame_stop_reason_string): New function definition.
832         * frame.h (unwind_stop_reason_to_string): Extend comment to
833         mention frame_stop_reason_string.
834         (frame_stop_reason_string): New function declaration.
835         * stack.c (frame_info): Switch to frame_stop_reason_string.
836         (backtrace_command_1): Switch to frame_stop_reason_string.
837         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
838         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
839         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
840
841 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
842
843         * frame.c (frame_stop_reason_string): Rename to ...
844         (unwind_stop_reason_to_string): this.
845         * frame.h (frame_stop_reason_string): Rename to ...
846         (unwind_stop_reason_to_string): this.
847         * stack.c (frame_info): Update call to frame_stop_reason_string.
848         (backtrace_command_1): Likewise.
849         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
850         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
851
852 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
853
854         * frame.c (remove_prev_frame): New function.
855         (get_prev_frame_if_no_cycle): Create / discard cleanup using
856         remove_prev_frame.
857
858 2014-05-29  Pedro Alves  <palves@redhat.com>
859
860         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
861         and make it const.  When a single-step decays to a continue,
862         clear 'step', not 'hw_step'.  Pass whether the caller wanted
863         to step to user_visible_resume_ptid, not what we ask the
864         target to do.
865
866 2014-05-29  Pedro Alves  <palves@redhat.com>
867
868         * infrun.c (process_event_stop_test, handle_step_into_function)
869         (handle_step_into_function_backward): Adjust.
870         Don't set the even thread's stop_step and call stop_waiting before
871         calling end_stepping_range.  Instead do that ...
872         (end_stepping_range): ... here.  Take an ecs pointer parameter.
873
874 2014-05-29  Pedro Alves  <palves@redhat.com>
875
876         * infrun.c (stop_stepping): Rename to ...
877         (stop_waiting): ... this.
878         (proceed): Update comment.
879         (process_event_stop_test, handle_inferior_event)
880         (handle_signal_stop, handle_step_into_function)
881         (handle_step_into_function_backward): Update.
882
883 2014-05-29  Pedro Alves  <palves@redhat.com>
884
885         * infcall.c (run_inferior_call): Don't check whether the current
886         thread is running after the proceed call.
887
888 2014-05-29  Pedro Alves  <palves@redhat.com>
889             Tom Tromey  <tromey@redhat.com>
890
891         * NEWS: Mention "maint set target-async", "set mi-async", and that
892         background execution commands are now always available.
893         * target.h (target_async_permitted): Update comment.
894         * target.c (target_async_permitted, target_async_permitted_1):
895         Default to 1.
896         (set_target_async_command): Rename to ...
897         (maint_set_target_async_command): ... this.
898         (show_target_async_command): Rename to ...
899         (maint_show_target_async_command): ... this.
900         (_initialize_target): Adjust.
901         * infcmd.c (prepare_execution_command): Make extern.
902         * inferior.h (prepare_execution_command): Declare.
903         * infrun.c (set_observer_mode): Leave target async alone.
904         * mi/mi-interp.c (mi_interpreter_init): Install
905         mi_on_sync_execution_done as sync_execution_done observer.
906         (mi_on_sync_execution_done): New function.
907         (mi_execute_command_input_handler): Don't print the prompt if we
908         just started a synchronous command with an async target.
909         (mi_on_resume): Check sync_execution before printing prompt.
910         * mi/mi-main.h (mi_async_p): Declare.
911         * mi/mi-main.c: Include gdbcmd.h.
912         (mi_async_p): New function.
913         (mi_async, mi_async_1): New globals.
914         (set_mi_async_command, show_mi_async_command, mi_async): New
915         functions.
916         (exec_continue): Call prepare_execution_command.
917         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
918         (mi_execute_async_cli_command): Use mi_async_p.
919         (_initialize_mi_main): Install "set mi-async".  Make
920         "target-async" a deprecated alias.
921
922 2014-05-29  Pedro Alves  <palves@redhat.com>
923
924         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
925         (_initialize_cli_interp): Adjust.
926         * event-loop.c: Include "observer.h".
927         (start_event_loop): Notify 'command_error' observers instead of
928         calling display_gdb_prompt.  Remove FIXME comment.
929         * event-top.c (display_gdb_prompt): Remove call into the
930         interpreters.
931         * inf-loop.c: Include "observer.h".
932         (inferior_event_handler): Notify 'command_error' observers instead
933         of calling display_gdb_prompt.
934         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
935         observers instead of calling display_gdb_prompt.
936         * interps.c (interp_set): Don't call display_gdb_prompt.
937         (current_interp_display_prompt_p): Delete.
938         * interps.h (interp_prompt_p): Delete declaration.
939         (interp_prompt_p_ftype): Delete.
940         (struct interp_procs) <prompt_proc_p>: Delete field.
941         (current_interp_display_prompt_p): Delete declaration.
942         * mi-interp.c (mi_interpreter_prompt_p): Delete.
943         (_initialize_mi_interp): Adjust.
944         * tui-interp.c (tui_init): Install 'sync_execution_done' and
945         'command_error' observers.
946         (tui_on_sync_execution_done, tui_on_command_error): New
947         functions.
948         (tui_display_prompt_p): Delete.
949         (_initialize_tui_interp): Adjust.
950
951 2014-05-29  Pedro Alves  <palves@redhat.com>
952
953         PR gdb/13860
954         * cli/cli-interp.c: Include infrun.h and observer.h.
955         (cli_uiout, cli_interp): New globals.
956         (cli_on_signal_received, cli_on_end_stepping_range)
957         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
958         functions.
959         (cli_interpreter_init): Install them as 'end_stepping_range',
960         'signal_received' 'signal_exited', 'exited' and 'no_history'
961         observers.
962         (_initialize_cli_interp): Remove cli_interp local.
963         * infrun.c (handle_inferior_event): Call the several stop reason
964         observers instead of printing the stop reason directly.
965         (end_stepping_range): New function.
966         (print_end_stepping_range_reason, print_signal_exited_reason)
967         (print_exited_reason, print_signal_received_reason)
968         (print_no_history_reason): Make static, and add an uiout
969         parameter.  Print to that instead of to CURRENT_UIOUT.
970         * infrun.h (print_end_stepping_range_reason)
971         (print_signal_exited_reason, print_exited_reason)
972         (print_signal_received_reason print_no_history_reason): New
973         declarations.
974         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
975         'mi_uiout'.
976         <cli_uiout>: New field.
977         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
978         uiout for CLI output.  Install 'signal_received',
979         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
980         observers.
981         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
982         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
983         (mi_on_no_history): New functions.
984         (ui_out_free_cleanup): Delete function.
985         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
986         instead use the one already stored in the MI interpreter data.
987         (mi_ui_out): Adjust.
988         * tui/tui-interp.c: Include infrun.h and observer.h.
989         (tui_interp): New global.
990         (tui_on_signal_received, tui_on_end_stepping_range)
991         (tui_on_signal_exited, tui_on_exited)
992         (tui_on_no_history): New functions.
993         (tui_init): Install them as 'end_stepping_range',
994         'signal_received' 'signal_exited', 'exited' and 'no_history'
995         observers.
996         (_initialize_tui_interp): Delete tui_interp local.
997
998 2014-05-29  Pedro Alves  <palves@redhat.com>
999
1000         PR gdb/15713
1001         * linux-nat.c (linux_nat_resume_callback): Rename the second
1002         parameter to 'except'.  Skip LP if it points to EXCEPT.
1003         (linux_nat_resume): Don't mark the event lwp as not stopped
1004         before resuming sibling lwps.  Instead ask
1005         linux_nat_resume_callback to skip the event lwp.  Mark it as not
1006         stopped after actually resuming it.
1007         (linux_handle_syscall_trap): Mark the lwp as not stopped after
1008         resuming it.
1009         (wait_lwp): Mark the lwp as stopped here.
1010         (stop_wait_callback): Mark the lwp as not stopped right after
1011         resuming it.  Don't mark lwps as stopped here.
1012         (linux_nat_filter_event): Mark the lwp as stopped earlier.
1013         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1014
1015 2014-05-29  Pedro Alves  <palves@redhat.com>
1016
1017         PR PR15693
1018         * infrun.c (resume): Determine how much to resume depending on
1019         whether the caller wanted a step, not whether we can hardware step
1020         the target.  Mark all threads that we intend to run as running,
1021         unless we're calling an inferior function.
1022         (normal_stop): If the thread is running an infcall, don't finish
1023         thread state.
1024         * target.c (target_resume): Don't mark threads as running here.
1025
1026 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
1027
1028         * serial.c (_initialize_serial): Remove support for
1029         the "set remotebaud" and "show remotebaud" commands.
1030         * NEWS: Add entry documenting the removal of that command.
1031
1032 2014-05-28  Yao Qi  <yao@codesourcery.com>
1033
1034         * charset.c: Fix typo in comments.
1035
1036 2014-05-27  Gary Benson  <gbenson@redhat.com>
1037
1038         * utils.c (internal_vproblem): Prompt for a bug report.
1039
1040 2014-05-26  Andy Wingo  <wingo@igalia.com>
1041
1042         * guile/scm-arch.c (arscm_mark_arch_smob):
1043         * guile/scm-block.c (bkscm_mark_block_smob)
1044         (bkscm_mark_block_syms_progress_smob):
1045         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1046         * guile/scm-exception.c (exscm_mark_exception_smob):
1047         * guile/scm-frame.c (frscm_mark_frame_smob):
1048         * guile/scm-iterator.c (itscm_mark_iterator_smob):
1049         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1050         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1051         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1052         (ppscm_mark_pretty_printer_worker_smob):
1053         * guile/scm-symbol.c (syscm_mark_symbol_smob):
1054         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1055         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1056         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1057         mark functions.
1058         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1059         function.
1060
1061 2014-05-26  Andy Wingo  <wingo@igalia.com>
1062             Doug Evans  <xdje42@gmail.com>
1063
1064         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1065         empty_base_class.  All uses updated.
1066         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1067         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1068         Adapt all callers.
1069         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1070         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1071         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1072         (gdbscm_gsmob_has_property_p, add_property_name)
1073         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1074         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1075         (gdb-object-has-property?, gdb-object-properties): Remove.
1076         (gdb-object-kind): Renamed from gsmob-kind.
1077
1078 2014-05-26  Andy Wingo  <wingo@igalia.com>
1079
1080         * configure.ac (try_guile_versions): Allow building with guile 2.2.
1081         * configure: Regenerate.
1082
1083 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
1084
1085         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1086
1087 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
1088
1089         * record-btrace.c (record_btrace_allow_memory_access): Remove.
1090         (replay_memory_access_read_only, replay_memory_access_read_write)
1091         (replay_memory_access_types, replay_memory_access)
1092         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1093         (cmd_set_record_btrace, cmd_show_record_btrace)
1094         (cmd_show_replay_memory_access): New.
1095         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1096         (record_btrace_remove_breakpoint): Replace
1097         record_btrace_allow_memory_access with replay_memory_access.
1098         (_initialize_record_btrace): Add commands.
1099         * NEWS: Announce it.
1100
1101 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1102
1103         * aarch64-linux-nat.c (asm/ptrace.h): Include.
1104
1105 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1106
1107         * MAINTAINERS (Write After Approval): Move self back from
1108         paper trail.
1109
1110 2014-05-22  Pedro Alves  <palves@redhat.com>
1111
1112         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1113         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1114         (disable_randomization, enum exec_direction_kind)
1115         (execution_direction, stop_registers, start_remote)
1116         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1117         (wait_for_inferior, normal_stop, get_last_target_status)
1118         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1119         (insert_step_resume_breakpoint_at_sal)
1120         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1121         (set_step_info, print_stop_event, signal_stop_state)
1122         (signal_print_state, signal_pass_state, signal_stop_update)
1123         (signal_print_update, signal_pass_update)
1124         (update_signals_program_target, clear_exit_convenience_vars)
1125         (displaced_step_dump_bytes, update_observer_mode)
1126         (signal_catch_update, gdb_signal_from_command): Move
1127         declarations ...
1128         * infrun.h: ... to this new file.
1129         * amd64-tdep.c: Include infrun.h.
1130         * annotate.c: Include infrun.h.
1131         * arch-utils.c: Include infrun.h.
1132         * arm-linux-tdep.c: Include infrun.h.
1133         * arm-tdep.c: Include infrun.h.
1134         * break-catch-sig.c: Include infrun.h.
1135         * breakpoint.c: Include infrun.h.
1136         * common/agent.c: Include infrun.h instead of inferior.h.
1137         * corelow.c: Include infrun.h.
1138         * event-top.c: Include infrun.h.
1139         * go32-nat.c: Include infrun.h.
1140         * i386-tdep.c: Include infrun.h.
1141         * inf-loop.c: Include infrun.h.
1142         * infcall.c: Include infrun.h.
1143         * infcmd.c: Include infrun.h.
1144         * infrun.c: Include infrun.h.
1145         * linux-fork.c: Include infrun.h.
1146         * linux-nat.c: Include infrun.h.
1147         * linux-thread-db.c: Include infrun.h.
1148         * monitor.c: Include infrun.h.
1149         * nto-tdep.c: Include infrun.h.
1150         * procfs.c: Include infrun.h.
1151         * record-btrace.c: Include infrun.h.
1152         * record-full.c: Include infrun.h.
1153         * remote-m32r-sdi.c: Include infrun.h.
1154         * remote-mips.c: Include infrun.h.
1155         * remote-notif.c: Include infrun.h.
1156         * remote-sim.c: Include infrun.h.
1157         * remote.c: Include infrun.h.
1158         * reverse.c: Include infrun.h.
1159         * rs6000-tdep.c: Include infrun.h.
1160         * s390-linux-tdep.c: Include infrun.h.
1161         * solib-irix.c: Include infrun.h.
1162         * solib-osf.c: Include infrun.h.
1163         * solib-svr4.c: Include infrun.h.
1164         * target.c: Include infrun.h.
1165         * top.c: Include infrun.h.
1166         * windows-nat.c: Include infrun.h.
1167         * mi/mi-interp.c: Include infrun.h.
1168         * mi/mi-main.c: Include infrun.h.
1169         * python/py-threadevent.c: Include infrun.h.
1170
1171 2014-05-22  Pedro Alves  <palves@redhat.com>
1172
1173         * infrun.c (handle_inferior_event): Store the exit code for
1174         --return-child-result here, instead of ...
1175         (print_exited_reason): ... here.
1176
1177 2014-05-21  Pedro Alves  <palves@redhat.com>
1178
1179         PR gdb/13860
1180         * gdbthread.h (struct thread_control_state): New field
1181         `command_interp'.
1182         * infrun.c (follow_fork): Copy the new thread control field to the
1183         child fork thread.
1184         (clear_proceed_status_thread): Clear the new thread control field.
1185         (proceed): Set the new thread control field.
1186         * interps.h (command_interp): Declare.
1187         * interps.c (command_interpreter): New global.
1188         (command_interp): New function.
1189         (interp_exec): Set `command_interpreter' while here.
1190         * cli-out.c (cli_uiout_dtor): New function.
1191         (cli_ui_out_impl): Install it.
1192         * mi/mi-interp.c: Include cli-out.h.
1193         (mi_cmd_interpreter_exec): Add comment.
1194         (restore_current_uiout_cleanup): New function.
1195         (ui_out_free_cleanup): New function.
1196         (mi_on_normal_stop): If finishing an execution command started by
1197         a CLI command, or any kind of breakpoint-like event triggered,
1198         print the stop event to the output (CLI) stream.
1199         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1200
1201 2014-05-21  Pedro Alves  <palves@redhat.com>
1202
1203         * cli/cli-cmds.c (list_command): Handle the first "list" after the
1204         current source line having changed.
1205         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1206         * infrun.c (normal_stop): Adjust call to
1207         set_current_sal_from_frame.
1208         * source.c (clear_lines_listed_range): New function.
1209         (set_current_source_symtab_and_line, identify_source_line): Clear
1210         the lines listed range.
1211         (line_info): Handle the first "info line" after the current source
1212         line having changed.
1213         * stack.c (print_stack_frame): Remove center handling.
1214         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
1215         center sal.line.
1216
1217 2014-05-21  Pedro Alves  <palves@redhat.com>
1218
1219         * inf-child.c (inf_child_mourn_inferior): New function.
1220         * inf-child.h (inf_child_mourn_inferior): New declaration.
1221         * darwin-nat.c (darwin_mourn_inferior): Use
1222         inf_child_mourn_inferior.
1223         * gnu-nat.c (gnu_mourn_inferior): Likewise.
1224         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1225         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1226         * nto-procfs.c (procfs_mourn_inferior): Likewise.
1227         * windows-nat.c (windows_mourn_inferior): Likewise.
1228
1229 2014-05-21  Doug Evans  <xdje42@gmail.com>
1230
1231         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1232
1233 2014-05-21  Doug Evans  <xdje42@gmail.com>
1234
1235         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1236         (gdbscm_out_of_range_error): Ditto.
1237         (gdbscm_memory_error): Ditto.
1238         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1239         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1240         (gdbscm_out_of_range_error): Update.
1241         (gdbscm_memory_error): Update.
1242         (gdbscm_scm_to_target_string_unsafe): Delete.
1243
1244 2014-05-21  Pedro Alves  <palves@redhat.com>
1245
1246         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1247         globals.
1248         (inf_child_open_target): New function.
1249         (inf_child_open): Use inf_child_open_target to push the target
1250         instead of erroring out.
1251         (inf_child_disconnect, inf_child_close)
1252         (inf_child_maybe_unpush_target): New functions.
1253         (inf_child_target): Install inf_child_disconnect and
1254         inf_child_close.  Store a pointer to the returned object.
1255         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1256         declarations.
1257         * target.c (auto_connect_native_target): New global.
1258         (show_default_run_target): New function.
1259         (find_default_run_target): Return NULL if automatically connecting
1260         to the native target is disabled.
1261         (_initialize_target): Install set/show auto-connect-native-target.
1262         * NEWS: Mention "set auto-connect-native-target", and "target
1263         native".
1264         * linux-nat.c (super_close): New global.
1265         (linux_nat_close): Call super_close.
1266         (linux_nat_add_target): Store a pointer to the base class's
1267         to_close method.
1268         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1269         inf_child_maybe_unpush.
1270         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1271         already pushed.
1272         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1273         the inferior.  Use inf_child_maybe_unpush_target.
1274         (inf_ttrace_attach): Don't push the target if it is already
1275         pushed.
1276         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1277         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1278         after mourning the inferior.  Use inf_child_maybe_unpush_target.
1279         (darwin_attach_pid): Don't push the target if it is already
1280         pushed.
1281         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1282         mourning the inferior.  Use inf_child_maybe_unpush_target.
1283         (gnu_detach): Use inf_child_maybe_unpush_target.
1284         * go32-nat.c (go32_create_inferior): Don't push the target if it
1285         is already pushed.
1286         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1287         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1288         (procfs_open): Rename to ...
1289         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
1290         comments.  Can target_preopen before changing node.  Call
1291         inf_child_open_target to push the target explicitly.
1292         (procfs_attach): Don't push the target if it is already pushed.
1293         (procfs_detach): Use inf_child_maybe_unpush_target.
1294         (procfs_create_inferior): Don't push the target if it is already
1295         pushed.
1296         (nto_native_ops): New global.
1297         (procfs_open): Reimplement.
1298         (procfs_native_open): New function.
1299         (init_procfs_targets): Install procfs_native_open as to_open of
1300         "target native".  Store a pointer to the "native" target in
1301         nto_native_ops.
1302         * procfs.c (procfs_attach): Don't push the target if it is already
1303         pushed.
1304         (procfs_detach): Use inf_child_maybe_unpush_target.
1305         (procfs_mourn_inferior): Only unpush the target after mourning the
1306         inferior.  Use inf_child_maybe_unpush_target.
1307         (procfs_init_inferior): Don't push the target if it is already
1308         pushed.
1309         * windows-nat.c (do_initial_windows_stuff): Don't push the target
1310         if it is already pushed.
1311
1312 2014-05-21  Pedro Alves  <palves@redhat.com>
1313
1314         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1315         and "procfs" targets are now called "native" instead.
1316
1317 2014-05-21  Pedro Alves  <palves@redhat.com>
1318
1319         * go32-nat.c (go32_open): Delete.
1320         (go32_target): Don't override the to_open method.
1321
1322 2014-05-21  Pedro Alves  <palves@redhat.com>
1323
1324         * nto-procfs.c (procfs_can_run): New function.
1325         (nto_procfs_ops): New global.
1326         (init_procfs_targets): New, based on procfs_target.  Install
1327         "target native" in addition to "target procfs".
1328         (_initialize_procfs): Call init_procfs_targets instead of adding
1329         the target here.
1330
1331 2014-05-21  Pedro Alves  <palves@redhat.com>
1332
1333         * windows-nat.c (windows_target): Don't override to_shortname,
1334         to_longname or to_doc.
1335
1336 2014-05-21  Pedro Alves  <palves@redhat.com>
1337
1338         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1339         to_doc.
1340
1341 2014-05-21  Pedro Alves  <palves@redhat.com>
1342
1343         * darwin-nat.c (_initialize_darwin_inferior): Don't override
1344         to_shortname, to_longname or to_doc.
1345
1346 2014-05-21  Pedro Alves  <palves@redhat.com>
1347
1348         * go32-nat.c (go32_target): Don't override to_shortname,
1349         to_longname or to_doc.
1350
1351 2014-05-21  Pedro Alves  <palves@redhat.com>
1352
1353         * inf-child.c (inf_child_open): Remove mention of "child".
1354         (inf_child_target): Rename target to "native" instead of "child".
1355
1356 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1357
1358         * Makefile.in (SFILES): Delete "regset.c".
1359         (COMMON_OBS): Delete "regset.o".
1360         * regset.c: Remove.
1361         * regset.h (regset_alloc): Delete prototype.
1362
1363 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1364
1365         * sparc-linux-tdep.c (sparc32_linux_gregset)
1366         (sparc32_linux_fpregset): New static regset structures.
1367         (sparc32_linux_init_abi): Drop dynamic regset allocations.
1368         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1369         'fpregset' fields.
1370         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1371         (sparc64_linux_fpregset): New static regset structures.
1372         (sparc64_linux_init_abi): Drop dynamic regset allocations.
1373         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1374         New static regset structures.
1375         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1376         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1377         New static regset structures.
1378         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1379         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1380         New static regset structures.
1381         (sparc64obsd_init_abi): Drop dynamic regset allocations.
1382         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1383         New static regset structures.
1384         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1385
1386 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1387
1388         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1389         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1390         register maps ("regmaps") from "*regset" to "*regmap".  Do this
1391         for all regmap types and variables.
1392         * sparc-linux-tdep.c (sparc32_linux_step_trap)
1393         (sparc32_linux_supply_core_gregset)
1394         (sparc32_linux_collect_core_gregset)
1395         (sparc32_linux_supply_core_fpregset)
1396         (sparc32_linux_collect_core_fpregset): Likewise.
1397         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1398         (sparc_gregmap, sparc_fpregmap): ... these.
1399         (sparc_supply_gregset, sparc_collect_gregset)
1400         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1401         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1402         (_initialize_sparc_nat): Rename regmaps.
1403         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1404         (sparc_gregmap, sparc_fpregmap): ... these.
1405         (sparc_supply_gregset, sparc_collect_gregset)
1406         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1407         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1408         Rename macros to...
1409         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1410         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1411         Likewise.
1412         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1413         Rename to...
1414         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1415         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1416         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1417         regmaps.
1418         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1419         (sparc32_bsd_fpregset): Rename to...
1420         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1421         (sparc32_bsd_fpregmap): ... these.
1422         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1423         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1424         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1425         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1426         (struct sparc_gregmap, struct sparc_fpregmap)
1427         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1428         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1429         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1430         (sparc32_supply_regset, sparc32_collect_gregset)
1431         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1432         prototypes.
1433         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1434         (sparc64_linux_ptrace_gregmap): ... this.
1435         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1436         (_initialize_sparc64_linux_nat): Rename regmaps.
1437         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1438         (sparc64_linux_core_gregmap): ... this.
1439         (sparc64_linux_supply_core_gregset)
1440         (sparc64_linux_collect_core_gregset)
1441         (sparc64_linux_supply_core_fpregset)
1442         (sparc64_linux_collect_core_fpregset): Rename regmaps.
1443         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1444         (sparc64_sol2_fpregset): Rename to...
1445         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1446         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1447         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1448         regmaps.
1449         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1450         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1451         (sparc64_bsd_fpregset): Rename to...
1452         (struct sparc_gregmap, sparc64_sol2_gregmap)
1453         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1454         (sparc64_bsd_fpregmap): ... these.
1455         (sparc64_supply_gregset, sparc64_collect_gregset)
1456         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1457         prototypes.
1458         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1459         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1460         (sparc64fbsd_gregmap): ... this.
1461         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1462         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1463         Rename regmaps.
1464         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1465         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1466         (sparc64nbsd_collect_fpregset): Likewise.
1467         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1468         (sparc64nbsd_gregmap): ... this.
1469         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1470         regmaps.
1471         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1472         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1473         (sparc64obsd_gregmap): ... this.
1474         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1475         regmaps.
1476         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1477         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1478         (sparc32nbsd_gregmap): ... this.
1479         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1480         regmaps.
1481
1482 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1483
1484         * score-tdep.c (score7_linux_gregset): New static regset
1485         structure.
1486         (score7_linux_regset_from_core_section): Remove dynamic regset
1487         allocation.
1488         (score_gdbarch_init): Drop allocation of tdep structure.
1489         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1490
1491 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1492
1493         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1494         regset structures.
1495         (am33_regset_from_core_section): Remove dynamic regset
1496         allocations.
1497
1498 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1499
1500         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1501         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1502         structures.
1503         (mips_linux_regset_from_core_section): Remove dynamic regset
1504         allocations.
1505         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1506         'gregset64', 'fpregset', and 'fpregset64'.
1507         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1508         deleted tdep fields.
1509
1510 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1511
1512         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1513         regset structures.
1514         (amd64_regset_from_core_section): Remove dynamic regset
1515         allocations.
1516         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1517         structure.
1518         (amd64obsd_regset_from_core_section): Remove dynamic regset
1519         allocation.
1520         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1521         Likewise.
1522         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1523         x86-common regset supply function.
1524         * i386-tdep.c (i386_collect_gregset): Make static.
1525         (i386_gregset): New global regset structure.
1526         (i386_fpregset, i386_xstateregset): New static regset structures.
1527         (i386_regset_from_core_section): Remove dynamic regset
1528         allocations.
1529         (i386_gdbarch_init): Remove initialization of tdep fields
1530         'gregset', 'fpregset', and 'xstateregset'.
1531         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1532         'fpregset', and 'xstateregset'.
1533         (i386_collect_gregset): Remove prototype.
1534         (i386_gregset): New declaration.
1535         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1536         structure.
1537         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1538         allocation.
1539
1540 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1541
1542         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1543         (arm_linux_vfpregset): New static regset structures.
1544         (arm_linux_regset_from_core_section): Remove dynamic allocation of
1545         regset structures.
1546         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1547         and 'vfpregset' fields.
1548
1549 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1550
1551         * aarch64-linux-tdep.c (aarch64_linux_gregset)
1552         (aarch64_linux_fpregset): New static regset structures.
1553         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1554         of regset structures.
1555         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1556         'fpregset' fields.
1557
1558 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1559
1560         * regset.h (struct regset): Remove gdbarch field.
1561         * regset.c (regset_alloc): Drop initialization of gdbarch field.
1562         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1563         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1564         Likewise.
1565         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1566         (ppc32_linux_fpregset, ppc32_linux_vrregset)
1567         (ppc32_linux_vsxregset): Likewise.
1568         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1569         via the regcache instead of the regset.
1570         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1571         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1572         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1573         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1574         Likewise.
1575
1576 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1577
1578         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1579         Constify structures.
1580         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1581         (alphanbsd_aout_gregset): Likewise.
1582         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1583         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1584         Likewise.
1585         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1586         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1587         Likewise.
1588         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1589         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1590         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1591         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1592         * m88k-tdep.c (m88k_gregset): Likewise.
1593         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1594         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1595         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1596         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1597         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1598         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1599         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1600         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1601         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1602         Likewise.
1603         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1604         * sh-tdep.h (sh_corefile_gregset): Likewise.
1605         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1606         * vax-tdep.c (vax_gregset): Likewise.
1607
1608 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1609
1610         Fix TLS access for -static -pthread.
1611         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1612         (try_thread_db_load_1): Initialize it.
1613         (thread_db_get_thread_local_address): Call it if LM is zero.
1614         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1615         * target.h (struct target_ops) (to_get_thread_local_address): Add
1616         load_module_addr comment.
1617
1618 2014-05-21  Pedro Alves  <palves@redhat.com>
1619
1620         * dcache.c (dcache_read_memory_partial): If reading the cache line
1621         fails, fallback to reading just the memory the caller wanted.
1622
1623 2014-05-20  Doug Evans  <dje@google.com>
1624
1625         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1626         instead of get_current_arch.
1627
1628 2014-05-20  Pedro Alves  <palves@redhat.com>
1629
1630         * NEWS: Mention that compare-sections now works with all targets.
1631
1632         * remote.c (PACKET_qCRC): New enum value.
1633         (remote_verify_memory): Don't send qCRC if the target has no
1634         execution.  Use packet_support/packet_ok.  If the target doesn't
1635         support the qCRC packet, fallback to a deep memory copy.
1636         (compare_sections_command): Say "target image" instead of "remote
1637         executable".
1638         (_initialize_remote): Add PACKET_qCRC to the list of config
1639         packets that have no associated command.  Extend comment.
1640         * target.c (simple_verify_memory, default_verify_memory): New
1641         function.
1642         * target.h (struct target_ops) <to_verify_memory>: Default to
1643         default_verify_memory.
1644         (simple_verify_memory): New declaration.
1645         * target-delegates.c: Regenerate.
1646
1647 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
1648
1649         * record-btrace.c (record_btrace_step_thread): Check for empty history.
1650
1651 2014-05-20  Hui Zhu  <hui@codesourcery.com>
1652             Yao Qi  <yao@codesourcery.com>
1653
1654         PR backtrace/16558
1655         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1656         and change address of sp and pc.
1657
1658 2014-05-19  Tom Tromey  <tromey@redhat.com>
1659
1660         * gdbtypes.c (rank_function): Use XNEWVEC.
1661         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1662
1663 2014-05-19  Doug Evans  <dje@google.com>
1664
1665         * dwarf2read.c (build_type_psymtabs_1): Renamed from
1666         build_type_unit_groups and moved closer to only caller.  Remove
1667         arguments.  All references updated.  Remove outdated .gdb_index
1668         comment.
1669         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1670         build_type_psymtabs_1.
1671
1672 2014-05-19  Doug Evans  <dje@google.com>
1673
1674         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1675         n_type_unit_groups, all_type_unit_groups.  All uses removed.
1676         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1677         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
1678         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
1679         (add_type_unit_group_to_table): Delete.
1680
1681 2014-05-19  Doug Evans  <dje@google.com>
1682
1683         * eval.c (evaluate_subexp_standard): Add some comments.
1684
1685 2014-05-17  Doug Evans  <xdje42@gmail.com>
1686
1687         * progspace.c (remove_program_space): Delete, unused.
1688         * progspace.h (remove_program_space): Ditto.
1689
1690 2014-05-17  Doug Evans  <xdje42@gmail.com>
1691
1692         * inferior.c (prune_inferiors): Fix comment.
1693         (remove_inferior_command): Call prune_program_spaces.
1694
1695 2014-05-16  Doug Evans  <dje@google.com>
1696
1697         New command line option -D.
1698         * NEWS: Mention it.
1699         * main.c (set_gdb_data_directory): New function.
1700         (captured_main): Recognize -D.  Flag error for --data-directory "".
1701         Call set_gdb_data_directory.
1702         (print_gdb_help): Print --data-directory, -D.
1703         * main.h (set_gdb_data_directory): Declare.
1704         * top.c (staged_gdb_datadir): New static global.
1705         (set_gdb_datadir): Call set_gdb_data_directory
1706         (show_gdb_datadir): New function.
1707         (init_main): Update init of data-directory parameter.
1708
1709 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
1710
1711         Import the "dirfd" gnulib module.
1712         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1713         * gnulib/aclocal.m4: Update.
1714         * gnulib/config.in: Update.
1715         * gnulib/configure: Update.
1716         * gnulib/import/Makefile.am: Update.
1717         * gnulib/import/Makefile.in: Update.
1718         * gnulib/import/dirfd.c: New.
1719         * gnulib/import/m4/dirfd.m4: New.
1720         * gnulib/import/m4/gnulib-cache.m4: Update.
1721         * gnulib/import/m4/gnulib-comp.m4: Update.
1722
1723 2014-05-16  Pierre Muller  <muller@sourceware.org>
1724             Yao Qi  <yao@codesourcery.com>
1725
1726         * valprint.c (print_wchar): Move the code on checking whether
1727         W is a printable wide char to the default branch of switch
1728         statement below.  Call wchar_printable instead of gdb_iswprint.
1729
1730 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
1731
1732         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1733         ldr.w and ldrd instructions.
1734
1735 2014-05-15  Doug Evans  <dje@google.com>
1736
1737         * dwarf2read.c (read_structure_type): Delete outdated comments.
1738
1739 2014-05-14  Tom Tromey  <tromey@redhat.com>
1740
1741         * macrocmd.c (print_macro_definition): Reindent.
1742
1743 2014-05-13  Doug Evans  <xdje42@gmail.com>
1744
1745         * python/py-cmd.c (cmdpy_completer): Add comment.
1746         (completers): Make const.
1747
1748 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
1749
1750         * infrun.c (resume): Remove should_resume (unused).  Move up
1751         declaration of resume_ptid.
1752
1753 2014-05-13  Tom Tromey  <tromey@redhat.com>
1754
1755         * language.h (unop_type_check): Remove.
1756         (binop_type_check): Don't declare.
1757
1758 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
1759
1760         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1761         call to regcache_raw_collect.
1762
1763 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
1764
1765         * mi/mi-console.c (mi_console_raw_packet): Use the value from
1766         mi_console->quote as the quoting character.
1767
1768 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
1769
1770         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1771
1772 2014-04-29  Tom Tromey  <tromey@redhat.com>
1773
1774         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1775         "show debug varobj".
1776
1777 2014-05-07  Kyle McMartin  <kyle@redhat.com>
1778
1779         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1780         * aarch64-tdep.c (aarch64_software_single_step): New function.
1781         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1782         with aarch64_software_single_step.
1783
1784 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
1785
1786         GDB 7.7.1 released.
1787
1788 2014-05-05  Keith Seitz  <keiths@redhat.com>
1789
1790         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1791         variable or history value is successfully parsed.
1792
1793 2014-05-05  Yao Qi  <yao@codesourcery.com>
1794             Pedro Alves  <palves@redhat.com>
1795
1796         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1797         address of blocks that intersects the requested range.  Trim
1798         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1799         sections.
1800         * ctf.c (ctf_xfer_partial): Likewise.
1801
1802 2014-05-05  Yao Qi  <yao@codesourcery.com>
1803
1804         * printcmd.c (display_command): Remove the check to
1805         target_has_execution.
1806
1807 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
1808
1809         * ppcobsd-nat.c: Include "obsd-nat.h".
1810         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1811         add_target.
1812         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1813
1814 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
1815
1816         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1817         and 16-bit signed and unsigned arguments.  Update comment.
1818         (stap_parse_probe_arguments): Extend code to handle such
1819         arguments.  Use warning instead of complaint to notify about
1820         unrecognized bitness.
1821
1822 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
1823
1824         PR breakpoints/16889
1825         * stap-probe.c (stap_parse_probe_arguments): Simplify
1826         check for non-prefixed probes (i.e., probes whose
1827         arguments do not start with "N@").  Always set the
1828         argument type to a sane value.
1829
1830 2014-05-01  David Taylor  <dtaylor@emc.com>
1831
1832         * remote.c (compare_sections_command): Add -r option to compare
1833         all loadable read-only sections.
1834
1835 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
1836
1837         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1838         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1839         Update all callers.
1840         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1841         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1842         Remove unused CORE_ADDR argument.  Update all callers.
1843
1844 2014-04-29  Pedro Alves  <palves@redhat.com>
1845
1846         * remote.c (struct packet_config) <detect>: Extend comment.
1847         (add_packet_config_cmd): Don't set the config's detect or support
1848         fields here.
1849         (init_all_packet_configs): Also initialize the config's 'detect'
1850         field.
1851         (reset_all_packet_configs_support): New function.
1852         (remote_open_1): Call reset_all_packet_configs_support instead of
1853         init_all_packet_configs.
1854         (_initialize_remote): Initialize all packet configs.  Assert that
1855         all packets have an associated command, except a few known
1856         outliers.
1857
1858 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
1859
1860         * dwarf2read.c (read_subrange_type): Handle dynamic
1861         DW_AT_lower_bound attributes.
1862
1863 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
1864
1865         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1866         dynamic bounds before computing its upper bound.
1867         (ada_discrete_type_low_bound): Same as above with the lower bound.
1868
1869 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
1870
1871         * dwarf2read.c (is_dynamic_type): Return true for dynamic
1872         range types.  Adjust the array handling implementation to
1873         take advantage of this change.
1874         (resolve_dynamic_range): New function, mostly extracted from
1875         resolve_dynamic_bounds.
1876         (resolve_dynamic_array): New function, mostly extracted from
1877         resolve_dynamic_bounds.
1878         (resolve_dynamic_bounds): Delete.
1879         (resolve_dynamic_type): Reimplement.  Add handling of
1880         TYPE_CODE_RANGE types.
1881
1882 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
1883
1884         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1885         handling of parallel ___XA types.
1886
1887 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
1888
1889         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1890         unnecessary second call to static_unwrap_type.
1891
1892 2014-04-27  Hui Zhu  <hui@codesourcery.com>
1893
1894         * stack.c (print_frame_info): Call do_gdb_disassembly with
1895         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1896
1897 2014-04-26  Doug Evans  <xdje42@gmail.com>
1898
1899         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1900
1901 2014-04-25  Pedro Alves  <palves@redhat.com>
1902
1903         PR server/16255
1904         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1905         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
1906         and newline from built string.
1907         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1908         (linux_ptrace_attach_fail_reason): ... this.
1909         * linux-nat.c (linux_nat_attach): Adjust to use
1910         linux_ptrace_attach_fail_reason.
1911
1912 2014-04-25  Pedro Alves  <palves@redhat.com>
1913
1914         * remote.c (struct remote_state): Remove multi_process_aware,
1915         non_stop_aware, cond_tracepoints, cond_breakpoints,
1916         breakpoint_commands, fast_tracepoints, static_tracepoints,
1917         install_in_trace, disconnected_tracing,
1918         enable_disable_tracepoints, string_tracing, and
1919         augmented_libraries_svr4_read fields.
1920         (remote_multi_process_p): Move further below in the file.
1921         (struct packet_config): Add comments.
1922         (update_packet_config): Delete function.
1923         (show_packet_config_cmd): Use packet_config_support.
1924         (add_packet_config_cmd): Use NULL as set callback.
1925         (packet_ok): "set remote foo-packet"-style commands no longer
1926         change config->supported -- adjust.
1927         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1928         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1929         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1930         (PACKET_QNonStop, PACKET_multiprocess_feature)
1931         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1932         (PACKET_DisconnectedTracing_feature)
1933         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1934         (set_remote_protocol_packet_cmd): Delete function.
1935         (packet_config_support, packet_support): New functions.
1936         (set_remote_protocol_Z_packet_cmd): Don't call
1937         update_packet_config.
1938         (remote_query_attached, remote_pass_signals)
1939         (remote_program_signals, remote_threads_info)
1940         (remote_threads_extra_info, remote_start_remote): Use
1941         packet_support.
1942         (remote_start_remote): Use packet_config_support and
1943         packet_support.
1944         (init_all_packet_configs): Set all packets to unknown support,
1945         instead of calling update_packet_config.
1946         (remote_check_symbols): Use packet_support.
1947         (remote_supported_packet): Unconditionally set the packet config's
1948         support status.
1949         (remote_multi_process_feature, remote_non_stop_feature)
1950         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1951         (remote_breakpoint_commands_feature)
1952         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1953         (remote_install_in_trace_feature)
1954         (remote_disconnected_tracing_feature)
1955         (remote_enable_disable_tracepoint_feature)
1956         (remote_string_tracing_feature)
1957         (remote_augmented_libraries_svr4_read_feature): Delete functions.
1958         (remote_protocol_features): Adjust to use remote_supported_packet
1959         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1960         "ConditionalTracepoints", "ConditionalBreakpoints",
1961         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1962         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1963         "EnableDisableTracepoints", and "tracenz".
1964         (remote_query_supported): Use packet_support.
1965         (remote_open_1): Adjust.
1966         (extended_remote_attach_1): Use packet_support.  Switch on the
1967         result of packet_ok instead of checking whether the packet ended
1968         up disabled.
1969         (remote_vcont_resume): Use packet_support.
1970         (remote_resume, remote_stop_ns, fetch_register_using_p)
1971         (remote_prepare_to_store, store_register_using_P)
1972         (check_binary_download, remote_write_bytes): Use packet_support.
1973         (remote_vkill): Use packet_support.  Switch on the result of
1974         packet_ok instead of checking whether the packet ended up
1975         disabled.
1976         (extended_remote_supports_disable_randomization): Use
1977         packet_support.
1978         (extended_remote_run): Switch on the result of packet_ok instead
1979         of checking whether the packet ended up disabled.
1980         (remote_insert_breakpoint, remote_remove_breakpoint)
1981         (remote_insert_watchpoint, remote_remove_watchpoint)
1982         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1983         packet_support.
1984         (remote_search_memory): Use packet_config_support.
1985         (remote_get_thread_local_address, remote_get_tib_address)
1986         (remote_hostio_send_command, remote_can_execute_reverse): Use
1987         packet_support.
1988         (remote_supports_cond_tracepoints)
1989         (remote_supports_cond_breakpoints)
1990         (remote_supports_fast_tracepoints)
1991         (remote_supports_static_tracepoints)
1992         (remote_supports_install_in_trace)
1993         (remote_supports_enable_disable_tracepoint)
1994         (remote_supports_string_tracing)
1995         (remote_can_run_breakpoint_commands): Rewrite, checking whether
1996         the packet config says the feature is enabled or disabled.
1997         (remote_download_tracepoint, remote_trace_set_readonly_regions)
1998         (remote_get_trace_status): Use packet_support.
1999         (remote_set_disconnected_tracing): Adjust to check whether the
2000         feature is enabled with packet_support.
2001         (remote_set_trace_buffer_size, remote_use_agent)
2002         (remote_can_use_agent, remote_supports_btrace): Use
2003         packet_support.
2004         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2005         Use packet_config_support.
2006         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2007         the packet config says the feature is enabled or disabled.
2008         (set_range_stepping): Use packet_support.
2009
2010 2014-04-25  Tom Tromey  <tromey@redhat.com>
2011
2012         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2013         argument.
2014
2015 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
2016
2017         * NEWS: Mention support for C99 variable length arrays.
2018
2019 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
2020
2021         * ada-lang.c (standard_exc): Expand introductory comment.
2022
2023 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
2024             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2025
2026         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2027         AVX512 registers.
2028         (amd64_linux_read_description): Add code to handle AVX512 xstate
2029         mask and return respective tdesc.
2030         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2031         and features/i386/x32-avx512-linux.c.
2032         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2033         (amd64_linux_core_read_description): Add code to handle AVX512
2034         xstate mask and return respective tdesc.
2035         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2036         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2037         calculation.
2038         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2039         (tdesc_amd64_avx512_linux): New prototype.
2040         (tdesc_x32_avx512_linux): Likewise.
2041         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2042         features/i386/x32-avx512.c.
2043         (amd64_ymm_avx512_names): New register names for pseudo
2044         registers YMM16-31.
2045         (amd64_ymmh_avx512_names): New register names for raw registers
2046         YMMH16-31.
2047         (amd64_k_names): New register names for K registers.
2048         (amd64_zmmh_names): New register names for ZMM raw registers.
2049         (amd64_zmm_names): New registers names for ZMM pseudo registers.
2050         (amd64_xmm_avx512_names): New register names for XMM16-31
2051         registers.
2052         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2053         registers.
2054         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2055         if feature is present.
2056         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2057         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2058         (AMD64_NUM_REGS): Adjust to new number of registers.
2059         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2060         registers supplied via XSTATE by AVX512 registers.
2061         (i386_linux_read_description): Add case for AVX512.
2062         * i386-linux-tdep.c: Include i386-avx512-linux.c.
2063         (i386_linux_gregset_reg_offset): Add AVX512 registers.
2064         (i386_linux_core_read_description): Add case for AVX512.
2065         (i386_linux_init_abi): Install supported register note section
2066         for AVX512.
2067         (_initialize_i386_linux_tdep): Add call to tdesc init function for
2068         AVX512.
2069         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2070         registers to be number of zmm7h + 1.
2071         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2072         * i386-tdep.c: Include features/i386/i386-avx512.c.
2073         (i386_zmm_names): Add ZMM pseudo register names array.
2074         (i386_zmmh_names): Add ZMM raw register names array.
2075         (i386_k_names): Add K raw register names array.
2076         (num_lower_zmm_regs): Add constant for the number of lower ZMM
2077         registers. AVX512 has 16 more ZMM registers than there are YMM
2078         registers.
2079         (i386_zmmh_regnum_p): Add function to look up register number of
2080         ZMM raw registers.
2081         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2082         (i386_k_regnum_p): Likewise for K raw registers.
2083         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2084         registers added by AVX512.
2085         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2086         registers added by AVX512.
2087         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2088         added by AVX512.
2089         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2090         (i386_pseudo_register_name): Add ZMM pseudo registers.
2091         (i386_zmm_type): Construct and return vector registers type for ZMM
2092         registers.
2093         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2094         ZMM0-31 pseudo registers and K registers.
2095         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2096         and YMM16-31 registers from register cache.
2097         (i386_pseudo_register_write): Add code to write  K, ZMM and
2098         YMM16-31 registers.
2099         (i386_register_reggroup_p): Add code to include/exclude AVX512
2100         registers in/from respective register groups.
2101         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2102         registers if feature is present in xcr0.
2103         (i386_gdbarch_init): Add code to initialize AVX512 feature
2104         variables in tdep structure, wire in pseudo registers and call
2105         initialize_tdesc_i386_avx512.
2106         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2107         variables.
2108         (i386_regnum): Add AVX512 registers.
2109         (I386_SSE_NUM_REGS): New define for number of SSE registers.
2110         (I386_AVX_NUM_REGS): Likewise for AVX registers.
2111         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2112         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2113         512 bits wide.
2114         (i386_xmm_avx512_regnum_p): New prototype for register look up.
2115         (i386_ymm_avx512_regnum_p): Likewise.
2116         (i386_k_regnum_p): Likewise.
2117         (i386_zmm_regnum_p): Likewise.
2118         (i386_zmmh_regnum_p): Likewise.
2119         * i387-tdep.c : Update year in copyright notice.
2120         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2121         XSAVE buffer.
2122         (XSAVE_YMM_AVX512_ADDR): New macro.
2123         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2124         XSAVE buffer.
2125         (XSAVE_XMM_AVX512_ADDR): New macro.
2126         (xsave_avx512_k_offset): New table for K register offsets in
2127         XSAVE buffer.
2128         (XSAVE_AVX512_K_ADDR): New macro.
2129         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2130         in XSAVE buffer.
2131         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2132         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2133         buffer.
2134         (i387_collect_xsave): Add code to collect AVX512 registers from
2135         XSAVE buffer.
2136         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2137         of XMM16-31 registers.
2138         (I387_NUM_K_REGS): New define for number of K registers.
2139         (I387_K0_REGNUM): New define for K0 register number.
2140         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2141         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2142         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2143         registers.
2144         (I387_YMM16H_REGNUM): New define for YMM16H register number.
2145         (I387_XMM16_REGNUM): New define for XMM16 register number.
2146         (I387_YMM0_REGNUM): New define for YMM0 register number.
2147         (I387_KEND_REGNUM): New define for last K register number.
2148         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2149         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2150         number.
2151         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2152         number.
2153         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2154         size.
2155         * features/Makefile: Add AVX512 related files.
2156         * features/i386/32bit-avx512.xml: New file.
2157         * features/i386/64bit-avx512.xml: Likewise.
2158         * features/i386/amd64-avx512-linux.c: Likewise.
2159         * features/i386/amd64-avx512-linux.xml: Likewise.
2160         * features/i386/amd64-avx512.c: Likewise.
2161         * features/i386/amd64-avx512.xml: Likewise.
2162         * features/i386/i386-avx512-linux.c: Likewise.
2163         * features/i386/i386-avx512-linux.xml: Likewise.
2164         * features/i386/i386-avx512.c: Likewise.
2165         * features/i386/i386-avx512.xml: Likewise.
2166         * features/i386/x32-avx512-linux.c: Likewise.
2167         * features/i386/x32-avx512-linux.xml: Likewise.
2168         * features/i386/x32-avx512.c: Likewise.
2169         * features/i386/x32-avx512.xml: Likewise.
2170         * regformats/i386/amd64-avx512-linux.dat: New file.
2171         * regformats/i386/amd64-avx512.dat: Likewise.
2172         * regformats/i386/i386-avx512-linux.dat: Likewise.
2173         * regformats/i386/i386-avx512.dat: Likewise.
2174         * regformats/i386/x32-avx512-linux.dat: Likewise.
2175         * regformats/i386/x32-avx512.dat: Likewise.
2176         * NEWS: Add note about new support for AVX512.
2177
2178
2179 2014-04-23  Pedro Alves  <palves@redhat.com>
2180
2181         * breakpoint.c (insert_bp_location): Tolerate errors if the
2182         breakpoint is set in a user-loaded objfile.
2183         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
2184         location is marked shlib_disabled.  If the breakpoint is set in a
2185         user-loaded objfile is a GDB-side memory breakpoint, validate it
2186         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
2187         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
2188         flag.
2189         * mem-break.c (memory_validate_breakpoint): New function.
2190         * objfiles.c (userloaded_objfile_contains_address_p): New
2191         function.
2192         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2193         * target.h (memory_validate_breakpoint): New declaration.
2194
2195 2014-04-23  Pedro Alves  <palves@redhat.com>
2196
2197         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2198         the breakpoint is set in a shared library, only suppress
2199         errors for software breakpoints, not hardware breakpoints.
2200
2201 2014-04-22  Pedro Alves  <palves@redhat.com>
2202
2203         * infrun.c (schedlock_applies): New function, factored out from
2204         find_thread_needs_step_over.
2205         (find_thread_needs_step_over): Use it.
2206         (switch_back_to_stepped_thread): Always clear trap_expected if the
2207         step over is finished.  Return early if scheduler locking applies.
2208         Look for the stepping thread and a potential step-over thread with
2209         a single loop.
2210         (currently_stepping_or_nexting_callback): Delete.
2211
2212 2014-04-22  Nick Clifton  <nickc@redhat.com>
2213
2214         * NEWS: Mention that ARM sim now supports tracing.
2215
2216 2014-04-22  Yao Qi  <yao@codesourcery.com>
2217
2218         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2219         to ...
2220         * tracefile.c (tracefile_fetch_registers): ... it.  New
2221         function.
2222         * tracefile.h (tracefile_fetch_registers): Declare.
2223         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
2224         tracefile_fetch_registers.
2225
2226 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
2227
2228         PR gdb/14018
2229         * windows-nat.c (thread_rec): Don't display a warning when
2230         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
2231         fails for any reason, set th->suspended to -1, so that we don't
2232         try to resume such a thread.  Also, don't return NULL in these
2233         cases, to avoid completely ruin the session due to "PC register is
2234         not available" error.
2235         (do_windows_fetch_inferior_registers): Check errors in
2236         GetThreadContext call.
2237         (windows_continue): Accept an additional argument KILLED; if not
2238         zero, ignore errors in the SetThreadContext call, since the
2239         inferior was killed and is shutting down.
2240         (windows_resume, get_windows_debug_event)
2241         (windows_create_inferior, windows_mourn_inferior)
2242         (windows_kill_inferior): All callers of windows_continue changed
2243         to adjust to its new calling sequence.
2244
2245 2014-04-19  Yao Qi  <yao@codesourcery.com>
2246
2247         * ctf.c (ctf_open): Call post_create_inferior.
2248
2249 2014-04-19  Yao Qi  <yao@codesourcery.com>
2250
2251         * ctf.c (handle_id): New static variable.
2252         (ctf_open_dir): Get handle_id from bt_context_add_trace return
2253         value.  Get the declaration of event "register" and get length
2254         of field "contents".
2255
2256 2014-04-19  Yao Qi  <yao@codesourcery.com>
2257
2258         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2259
2260 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
2261
2262         * valops.c (oload_method_static): Remove unnecessary argument
2263         METHOD.  Update all callers.
2264
2265 2014-04-18  Pedro alves  <palves@redhat.com>
2266             Tom Tromey  <tromey@redhat.com>
2267
2268         PR backtrace/15558
2269         * frame.c (get_prev_frame_1): Rename to ...
2270         (get_prev_frame_always): ... this, and make extern.  Adjust.
2271         (skip_artificial_frames): Use get_prev_frame_always.
2272         (frame_unwind_caller_id, frame_pop, get_prev_frame)
2273         (get_frame_unwind_stop_reason): Adjust to rename.
2274         * frame.h (get_prev_frame_always): Declare.
2275         * inline-frame.c: Include frame.h.
2276         (inline_frame_this_id): Use get_prev_frame_always.
2277
2278 2014-04-18  Tristan Gingold  <gingold@adacore.com>
2279
2280         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2281         code by using bfd_mach_o_get_base_address.
2282
2283 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2284
2285         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2286         (spu_ax_pseudo_register_collect): New function.
2287         (spu_ax_pseudo_register_push_stack): Likewise.
2288         (spu_dwarf_reg_to_regnum): Likewise.
2289         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
2290
2291 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2292
2293         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2294         Replace FRAME argument with FRAME_ID.
2295         * gdbarch.c, gdbarch.h: Regenerate.
2296         * findvar.c (default_value_from_register): Add GDBARCH argument;
2297         replace FRAME by FRAME_ID.  No longer call get_frame_id.
2298         (value_from_register): Update call to gdbarch_value_from_register.
2299         * value.h (default_value_from_register): Update prototype.
2300         * s390-linux-tdep.c (s390_value_from_register): Update interface
2301         and call to default_value_from_register.
2302         * spu-tdep.c (spu_value_from_register): Likewise.
2303
2304         * findvar.c (address_from_register): Remove TYPE argument.
2305         Do not call value_from_register; use gdbarch_value_from_register
2306         with null_frame_id instead.
2307         * value.h (address_from_register): Update prototype.
2308         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2309         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2310         address_from_register interface change.
2311
2312 2014-04-17  Yao Qi  <yao@codesourcery.com>
2313
2314         * gdbtypes.h: Update comments to link to types and macros'
2315         definitions.
2316
2317 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
2318
2319         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2320
2321 2014-04-16  Keith Seitz  <keiths@redhat.com>
2322
2323         PR gdb/15827
2324         * dwarf2read.c (skip_one_die): Check that all relative-offset
2325         sibling DIEs fall within range of the current reader's buffer.
2326         (read_partial_die): Likewise.
2327
2328 2014-04-16  Keith Seitz  <keiths@redhat.com>
2329
2330         PR c++/16597
2331         * cp-namespace.c (lookup_symbol_file): If the type name of
2332         `this' is NULL, return immediately.
2333
2334 2014-04-14  Keith Seitz  <keiths@redhat.com>
2335
2336         PR c++/16253
2337         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2338         from symbol_matches_domain in symtab.c. All local callers
2339         of symbol_matches_domain updated.
2340         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2341         search STRUCT_DOMAIN.
2342         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2343         independently.  standard_lookup will do that automatically.
2344         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2345         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2346         (cp_lookup_symbol_in_namespace): Likewise.
2347         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2348         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2349         may return a STRUCT_DOMAIN match.
2350         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2351         * cp-support.c: Include language.h.
2352         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2353         VAR_DOMAIN.
2354         * psymtab.c (match_partial_symbol): Compare the requested
2355         domain with the symbol's domain directly.
2356         (lookup_partial_symbol): Likewise.
2357         * symtab.c (lookup_symbol_in_language): Explain when/why
2358         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2359         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2360         appropriate languages.
2361         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2362         and moved to ada-lang.c
2363         (lookup_block_symbol): Explain that this function only returns
2364         symbol matching the requested DOMAIN.
2365         Compare the requested domain with the symbol's domain directly.
2366         (iterate_over_symbols): Compare the requested domain with the
2367         symbol's domain directly.
2368         * symtab.h (symbol_matches_domain): Remove.
2369
2370 2014-04-14  Tom Tromey  <tromey@redhat.com>
2371
2372         PR c++/15246:
2373         * c-exp.y (type_aggregate_p): New function.
2374         (qualified_name, classify_inner_name): Use it.
2375         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2376         and TYPE_TARGET_TYPE of an enum type.
2377         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2378         an enum type.
2379         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2380         handle TYPE_DECLARED_CLASS.
2381         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2382         types.
2383         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2384         * valops.c (enum_constant_from_type): New function.
2385         (value_aggregate_elt): Use it.
2386         * cp-namespace.c (cp_lookup_nested_symbol): Handle
2387         TYPE_CODE_ENUM.
2388
2389 2014-04-14  Tom Tromey  <tromey@redhat.com>
2390
2391         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2392         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2393         const.
2394         * value.h (value_aggregate_elt): Update.
2395
2396 2014-04-14  Tom Tromey  <tromey@redhat.com>
2397
2398         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2399
2400 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2401
2402         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2403         (evaluate_subexp_standard): Pass noside argument.
2404         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2405         if noside equals EVAL_NORMAL. If the subscript yields a vla type
2406         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2407         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2408         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2409
2410 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2411
2412         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2413         points to a constant blob.
2414
2415 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2416
2417         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2418         property and store it as the high bound and flag the range accordingly.
2419         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2420         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2421         * gdbtypes.h (enum range_flags): New enum.
2422         (struct range_bounds): Add flags member.
2423
2424 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2425
2426         * c-typeprint.c (c_type_print_varspec_suffix): Added
2427         check for not yet resolved high bound. If unresolved, print
2428         "variable length" string to the console instead of random
2429         length.
2430
2431 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2432
2433         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2434         value.
2435         (ada_template_to_fixed_record_type_1): Likewise.
2436         (ada_to_fixed_type_1): Likewise.
2437         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2438         (cp_print_value): Likewise.
2439         * d-valprint.c (dynamic_array_type): Likewise.
2440         * findvar.c (address_of_variable): Likewise.
2441         * jv-valprint.c (java_value_print): Likewise.
2442         * valops.c (value_ind): Likewise.
2443         * value.c (coerce_ref): Likewise.
2444
2445 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2446
2447         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2448         value and retrieve the dynamic type size.
2449
2450 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2451
2452         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2453         passed to sizeof is dynamic evaluate the argument to compute the length.
2454
2455 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
2456             Joel Brobecker  <brobecker@adacore.com>
2457
2458         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2459         (dwarf2_evaluate_property): New function.
2460         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2461         * dwarf2read.c (attr_to_dynamic_prop): New function.
2462         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2463         attribute.
2464         * gdbtypes.c: Include dwarf2loc.h.
2465         (is_dynamic_type): New function.
2466         (resolve_dynamic_type): New function.
2467         (resolve_dynamic_bounds): New function.
2468         (get_type_length): New function.
2469         (check_typedef): Use get_type_length to compute type length.
2470         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2471         (TYPE_LOW_BOUND_KIND): New macro.
2472         (is_dynamic_type): New function prototype.
2473         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2474         to resolve dynamic properties of the type. Update comment.
2475         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2476
2477 2014-04-14  Richard Henderson  <rth@redhat.com>
2478
2479         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2480
2481 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
2482             Doug Evans  <xdje42@gmail.com>
2483
2484         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2485         dereference TYPE_CODE_REF values.
2486
2487 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
2488
2489         Revert the following changes due to regressions:
2490
2491         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2492         (dwarf2_evaluate_property): New function.
2493         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2494         * dwarf2read.c (attr_to_dynamic_prop): New function.
2495         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2496         attribute.
2497         * gdbtypes.c: Include dwarf2loc.h.
2498         (is_dynamic_type): New function.
2499         (resolve_dynamic_type): New function.
2500         (resolve_dynamic_bounds): New function.
2501         (get_type_length): New function.
2502         (check_typedef): Use get_type_length to compute type length.
2503         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2504         (TYPE_LOW_BOUND_KIND): New macro.
2505         (is_dynamic_type): New function prototype.
2506         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2507         to resolve dynamic properties of the type. Update comment.
2508         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2509
2510         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2511         passed to sizeof is dynamic evaluate the argument to compute the length.
2512
2513         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2514         value and retrieve the dynamic type size.
2515
2516         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2517         (ada_template_to_fixed_record_type_1): Likewise.
2518         (ada_to_fixed_type_1): Likewise.
2519         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2520         (cp_print_value): Likewise.
2521         * d-valprint.c (dynamic_array_type): Likewise.
2522         * eval.c (evaluate_subexp_with_coercion): Likewise.
2523         * findvar.c (address_of_variable): Likewise.
2524         * jv-valprint.c (java_value_print): Likewise.
2525         * valops.c (value_ind): Likewise.
2526         * value.c (coerce_ref): Likewise.
2527
2528         * c-typeprint.c (c_type_print_varspec_suffix): Added
2529         check for not yet resolved high bound. If unresolved, print
2530         "variable length" string to the console instead of random
2531         length.
2532
2533         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2534         property and store it as the high bound and flag the range accordingly.
2535         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2536         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2537         * gdbtypes.h (enum range_flags): New enum.
2538         (struct range_bounds): Add flags member.
2539
2540         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2541         points to a constant blob.
2542
2543         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2544         (evaluate_subexp_standard): Pass noside argument.
2545         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2546         if noside equals EVAL_NORMAL. If the subscript yields a vla type
2547         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2548         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2549         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2550
2551 2014-04-11  Keith Seitz  <keiths@redhat.com>
2552
2553         PR c++/16675
2554         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2555         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2556         reference types.
2557
2558 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2559
2560         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2561         (evaluate_subexp_standard): Pass noside argument.
2562         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2563         if noside equals EVAL_NORMAL. If the subscript yields a vla type
2564         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2565         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2566         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2567
2568 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2569
2570         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2571         points to a constant blob.
2572
2573 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2574
2575         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2576         property and store it as the high bound and flag the range accordingly.
2577         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2578         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2579         * gdbtypes.h (enum range_flags): New enum.
2580         (struct range_bounds): Add flags member.
2581
2582 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2583
2584         * c-typeprint.c (c_type_print_varspec_suffix): Added
2585         check for not yet resolved high bound. If unresolved, print
2586         "variable length" string to the console instead of random
2587         length.
2588
2589 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2590
2591         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2592         (ada_template_to_fixed_record_type_1): Likewise.
2593         (ada_to_fixed_type_1): Likewise.
2594         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2595         (cp_print_value): Likewise.
2596         * d-valprint.c (dynamic_array_type): Likewise.
2597         * eval.c (evaluate_subexp_with_coercion): Likewise.
2598         * findvar.c (address_of_variable): Likewise.
2599         * jv-valprint.c (java_value_print): Likewise.
2600         * valops.c (value_ind): Likewise.
2601         * value.c (coerce_ref): Likewise.
2602
2603 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2604
2605         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2606         value and retrieve the dynamic type size.
2607
2608 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2609
2610         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2611         passed to sizeof is dynamic evaluate the argument to compute the length.
2612
2613 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2614
2615         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2616         (dwarf2_evaluate_property): New function.
2617         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2618         * dwarf2read.c (attr_to_dynamic_prop): New function.
2619         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2620         attribute.
2621         * gdbtypes.c: Include dwarf2loc.h.
2622         (is_dynamic_type): New function.
2623         (resolve_dynamic_type): New function.
2624         (resolve_dynamic_bounds): New function.
2625         (get_type_length): New function.
2626         (check_typedef): Use get_type_length to compute type length.
2627         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2628         (TYPE_LOW_BOUND_KIND): New macro.
2629         (is_dynamic_type): New function prototype.
2630         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2631         to resolve dynamic properties of the type. Update comment.
2632         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2633
2634 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2635
2636         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2637         declaring high/low bounds and change uses accordingly. Call
2638         create_range_type instead of create_static_range_type.
2639         * gdbtypes.c (create_range_type): New function.
2640         (create_range_type): Convert bounds into struct bound_prop and pass
2641         them to create_range_type.
2642         * gdbtypes.h (struct bound_prop): New struct.
2643         (create_range_type): New function prototype.
2644         (struct range_bounds): Use struct bound_prop instead of LONGEST for
2645         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2646         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2647         part of the bound.
2648         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2649
2650 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
2651
2652         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2653         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2654         * ada-lang.c: All uses of create_range_type updated.
2655         * coffread.c: All uses of create_range_type updated.
2656         * dwarf2read.c: All uses of create_range_type updated.
2657         * f-exp.y: All uses of create_range_type updated.
2658         * m2-valprint.c: All uses of create_range_type updated.
2659         * mdebugread.c: All uses of create_range_type updated.
2660         * stabsread.c: All uses of create_range_type updated.
2661         * valops.c: All uses of create_range_type updated.
2662         * valprint.c: All uses of create_range_type updated.
2663
2664 2014-04-10  Pedro Alves  <palves@redhat.com>
2665
2666         * breakpoint.c (single_step_breakpoints)
2667         (single_step_gdbarch): Move up in the file.
2668         (one_breakpoint_xfer_memory): New function, factored out from ...
2669         (breakpoint_xfer_memory): ... here.  Also process single-step
2670         breakpoints.
2671
2672 2014-04-09  Tristan Gingold  <gingold@adacore.com>
2673
2674         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2675         comments.
2676         (darwin_decode_exception_message): Free port only after use.
2677
2678 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
2679
2680         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2681         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2682         when setting the size of call_length.
2683
2684 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
2685
2686         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2687         dereference TYPE_CODE_REF values.
2688
2689 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
2690
2691         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2692         end of warning message.
2693
2694 2014-04-03  Doug Evans  <dje@google.com>
2695
2696         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2697         of stub_comp_unit_die, stub_comp_dir is non-NULL.
2698
2699 2014-04-02  Alan Modra  <amodra@gmail.com>
2700
2701         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2702         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
2703         (struct symbol_file_add_from_memory_args): Add size field.
2704         (find_vdso_size): New function.
2705         (add_vsyscall_page): Attempt to find vdso size.
2706
2707 2014-04-01  Doug Evans  <dje@google.com>
2708
2709         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2710
2711 2014-04-01  Tristan Gingold  <gingold@adacore.com>
2712
2713         * darwin-nat.c (darwin_encode_reply): Add prototype.
2714         (darwin_decode_exception_message): Reply to unknown inferiors.
2715         (darwin_decode_message): Handle message by id.  Ignore message
2716         to unknown inferior.
2717         (darwin_wait): Discard unknown messages, add debug trace.
2718
2719 2014-03-31  Doug Evans  <dje@google.com>
2720
2721         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2722         comp_dir_string.
2723
2724 2014-03-31  Doug Evans  <dje@google.com>
2725
2726         New option "set print symbol-loading".
2727         * NEWS: Mention it.
2728         * solib.c (solib_read_symbols): Only print symbol loading messages
2729         if requested.
2730         (solib_add): If symbol loading is in "brief" mode, notify user
2731         symbols are being loaded.
2732         (reload_shared_libraries_1): Ditto.
2733         * symfile.c (print_symbol_loading_off): New static global.
2734         (print_symbol_loading_brief): New static global.
2735         (print_symbol_loading_full): New static global.
2736         (print_symbol_loading_enums): New static global.
2737         (print_symbol_loading): New static global.
2738         (print_symbol_loading_p): New function.
2739         (symbol_file_add_with_addrs): Only print symbol loading messages
2740         if requested.
2741         (_initialize_symfile): Register "print symbol-loading" set/show
2742         command.
2743         * symfile.h (print_symbol_loading_p): Declare.
2744
2745 2014-03-30  Doug Evans  <xdje42@gmail.com>
2746
2747         * infrun.c (set_last_target_status): New function.
2748         (handle_inferior_event): Call it.
2749
2750 2014-03-30  Doug Evans  <xdje42@gmail.com>
2751
2752         * inferior.h (enum stop_kind): Improve comment.
2753
2754 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
2755
2756         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2757         a reference, strip the reference layer before calling
2758         the lang_ops value_has_mutated callback.
2759
2760 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2761
2762         Remove some globals from our parser.
2763         * language.c (unk_lang_parser): Add "struct parser_state"
2764         argument.
2765         * language.h (struct language_defn) <la_parser>: Likewise.
2766         * parse.c (expout, expout_size, expout_ptr): Remove variables.
2767         (initialize_expout): Add "struct parser_state" argument.
2768         Rewrite function to use the parser state.
2769         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2770         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2771         write_exp_elt_longcst, write_exp_elt_dblcst,
2772         write_exp_elt_decfloatcst, write_exp_elt_type,
2773         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2774         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2775         write_dollar_variable): Likewise.
2776         (parse_exp_in_context_1): Use parser state.
2777         (insert_type_address_space): Add "struct parser_state" argument.
2778         Use parser state.
2779         (increase_expout_size): New function.
2780         * parser-defs.h: Forward declare "struct language_defn" and
2781         "struct parser_state".
2782         (expout, expout_size, expout_ptr): Remove extern declarations.
2783         (parse_gdbarch, parse_language): Rewrite macro declarations to
2784         accept the parser state.
2785         (struct parser_state): New struct.
2786         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2787         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2788         write_exp_elt_decfloatcst, write_exp_elt_type,
2789         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2790         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2791         write_exp_msymbol, write_dollar_variable,
2792         mark_struct_expression, insert_type_address_space): Add "struct
2793         parser_state" argument.
2794         (increase_expout_size): New function.
2795         * utils.c (do_clear_parser_state): New function.
2796         (make_cleanup_clear_parser_state): Likewise.
2797         * utils.h (make_cleanup_clear_parser_state): New function
2798         prototype.
2799         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2800         Update calls to write_exp* in order to pass the parser state.
2801         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2802         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2803         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2804         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2805         * stap-probe.c (stap_parse_register_operand): Likewise.
2806         (stap_parse_single_operand): Likewise.
2807         (stap_parse_argument_1): Likewise.
2808         (stap_parse_argument): Use parser state.
2809         * stap-probe.h: Include "parser-defs.h".
2810         (struct stap_parse_info) <pstate>: New field.
2811         * c-exp.y (parse_type): Rewrite to use parser state.
2812         (yyparse): Redefine to c_parse_internal.
2813         (pstate): New global variable.
2814         (parse_number): Add "struct parser_state" argument.
2815         (write_destructor_name): Likewise.
2816         (type_exp): Update calls to write_exp* and similars in order to
2817         use parser state.
2818         (exp1, exp, variable, qualified_name, space_identifier,
2819         typename, typebase): Likewise.
2820         (write_destructor_name, parse_number, lex_one_token,
2821         classify_name, classify_inner_name, c_parse): Add "struct
2822         parser_state" argument.  Update function to use parser state.
2823         * c-lang.h: Forward declare "struct parser_state".
2824         (c_parse): Add "struct parser_state" argument.
2825         * ada-exp.y (parse_type): Rewrite macro to use parser state.
2826         (yyparse): Redefine macro to ada_parse_internal.
2827         (pstate): New variable.
2828         (write_int, write_object_renaming, write_var_or_type,
2829         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2830         type_int, type_long, type_long_long, type_float, type_double,
2831         type_long_double, type_char, type_boolean, type_system_address):
2832         Add "struct parser_state" argument.
2833         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2834         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2835         var_or_type, aggregate, aggregate_component_list,
2836         positional_list, others, component_group,
2837         component_associations): Update calls to write_exp* and similar
2838         functions in order to use parser state.
2839         (ada_parse, write_var_from_sym, write_int,
2840         write_exp_op_with_string, write_object_renaming,
2841         find_primitive_type, write_selectors, write_ambiguous_var,
2842         write_var_or_type, write_name_assoc, type_int, type_long,
2843         type_long_long, type_float, type_double, type_long_double,
2844         type_char, type_boolean, type_system_address): Add "struct
2845         parser_state" argument.  Adjust function to use parser state.
2846         * ada-lang.c (parse): Likewise.
2847         * ada-lang.h: Forward declare "struct parser_state".
2848         (ada_parse): Add "struct parser_state" argument.
2849         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
2850         calls to both functions.
2851         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2852         parser state.
2853         (yyparse): Redefine macro to f_parse_internal.
2854         (pstate): New variable.
2855         (parse_number): Add "struct parser_state" argument.
2856         (type_exp, exp, subrange, typebase): Update calls to write_exp*
2857         and similars in order to use parser state.
2858         (parse_number): Adjust code to use parser state.
2859         (yylex): Likewise.
2860         (f_parse): New function.
2861         * f-lang.h: Forward declare "struct parser_state".
2862         (f_parse): Add "struct parser_state" argument.
2863         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2864         parser state.
2865         (yyparse): Redefine macro for java_parse_internal.
2866         (pstate): New variable.
2867         (push_expression_name, push_expression_name, insert_exp): Add
2868         "struct parser_state" argument.
2869         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2870         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2871         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2872         PostIncrementExpression, PostDecrementExpression,
2873         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2874         UnaryExpressionNotPlusMinus, CastExpression,
2875         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2876         RelationalExpression, EqualityExpression, AndExpression,
2877         ExclusiveOrExpression, InclusiveOrExpression,
2878         ConditionalAndExpression, ConditionalOrExpression,
2879         ConditionalExpression, Assignment, LeftHandSide): Update
2880         calls to write_exp* and similars in order to use parser state.
2881         (parse_number): Ajust code to use parser state.
2882         (yylex): Likewise.
2883         (java_parse): New function.
2884         (push_variable): Add "struct parser_state" argument.  Adjust
2885         code to user parser state.
2886         (push_fieldnames, push_qualified_expression_name,
2887         push_expression_name, insert_exp): Likewise.
2888         * jv-lang.h: Forward declare "struct parser_state".
2889         (java_parse): Add "struct parser_state" argument.
2890         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2891         parser state.
2892         (yyparse): Redefine macro to m2_parse_internal.
2893         (pstate): New variable.
2894         (type_exp, exp, fblock, variable, type): Update calls to
2895         write_exp* and similars to use parser state.
2896         (yylex): Likewise.
2897         (m2_parse): New function.
2898         * m2-lang.h: Forward declare "struct parser_state".
2899         (m2_parse): Add "struct parser_state" argument.
2900         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2901         * objc-lang.h: Forward declare "struct parser_state".
2902         (end_msglist): Add "struct parser_state" argument.
2903         * p-exp.y (parse_type): Rewrite macro to use parser state.
2904         (yyparse): Redefine macro to pascal_parse_internal.
2905         (pstate): New variable.
2906         (parse_number): Add "struct parser_state" argument.
2907         (type_exp, exp1, exp, qualified_name, variable): Update calls to
2908         write_exp* and similars in order to use parser state.
2909         (parse_number, yylex): Adjust code to use parser state.
2910         (pascal_parse): New function.
2911         * p-lang.h: Forward declare "struct parser_state".
2912         (pascal_parse): Add "struct parser_state" argument.
2913         * go-exp.y (parse_type): Rewrite macro to use parser state.
2914         (yyparse): Redefine macro to go_parse_internal.
2915         (pstate): New variable.
2916         (parse_number): Add "struct parser_state" argument.
2917         (type_exp, exp1, exp, variable, type): Update calls to
2918         write_exp* and similars in order to use parser state.
2919         (parse_number, lex_one_token, classify_name, yylex): Adjust code
2920         to use parser state.
2921         (go_parse): Likewise.
2922         * go-lang.h: Forward declare "struct parser_state".
2923         (go_parse): Add "struct parser_state" argument.
2924
2925 2014-03-27  Doug Evans  <dje@google.com>
2926
2927         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
2928
2929 2014-03-27  Doug Evans  <dje@google.com>
2930
2931         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2932         Remove argument abbrev_section.  All callers updated.
2933
2934 2014-03-27  Doug Evans  <dje@google.com>
2935
2936         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2937         addr_base, ranges_base.
2938
2939 2014-03-26  Keith Seitz  <keiths@redhat.com>
2940
2941         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2942         types, not VAR_DOMAIN.
2943
2944 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
2945
2946         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2947         "ra" registers.
2948         * features/nios2-linux.c: Regenerated.
2949         * features/nios2.c: Regenerated.
2950
2951 2014-03-25  Pedro Alves  <palves@redhat.com>
2952
2953         * cli/cli-script.c (script_from_file): Force the interpreter to
2954         sync mode.
2955
2956 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
2957
2958         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2959         small stack allocation.
2960
2961 2014-03-24  Tristan Gingold  <gingold@adacore.com>
2962
2963         * darwin-nat.c (exc_server): Remove unused prototype.
2964         (darwin_dump_message): Correctly display data on x86_64.
2965         (darwin_encode_reply): Fix style.
2966         Add comments and fix indentation.
2967
2968 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
2969
2970         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2971
2972 2014-03-22  Doug Evans  <xdje42@gmail.com>
2973
2974         * infcmd.c: Whitespace fixes.
2975         (interrupt_command): Merge two function comments into one.
2976
2977 2014-03-22  Doug Evans  <xdje42@gmail.com>
2978
2979         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2980         All uses updated.
2981
2982 2014-03-22  Yao Qi  <yao@codesourcery.com>
2983
2984         * remote.c (target_read_live_memory): Remove.
2985         (memory_xfer_live_readonly_partial): Rename it to
2986         remote_xfer_live_readonly_partial.  Remove argument 'object'.
2987         All callers updated.  Call remote_read_bytes_1
2988         instead of target_read_live_memory.
2989         * tracepoint.c (set_traceframe_number): Remove.
2990         (make_cleanup_restore_traceframe_number): Likewise .
2991         * tracepoint.h (set_traceframe_number): Remove declaration.
2992         (make_cleanup_restore_traceframe_number): Likewise.
2993
2994 2014-03-22  Yao Qi  <yao@codesourcery.com>
2995
2996         * remote.c (remote_read_bytes): Move code on reading from the
2997         remote stub to ...
2998         (remote_read_bytes_1): ... here.  New function.
2999
3000 2014-03-22  Yao Qi  <yao@codesourcery.com>
3001
3002         * ctf.c (ctf_xfer_partial): Check the return value of
3003         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3004         return TARGET_XFER_UNAVAILABLE.
3005         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3006         * target.c (target_read_live_memory): Move it to remote.c.
3007         (memory_xfer_live_readonly_partial): Likewise.
3008         (memory_xfer_partial_1): Move some code to remote_read_bytes.
3009         * remote.c (target_read_live_memory): Moved from target.c.
3010         (memory_xfer_live_readonly_partial): Likewise.
3011         (remote_read_bytes): Factored out from
3012         memory_xfer_partial_1.
3013
3014 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
3015
3016         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3017         NULL pointer.
3018
3019 2014-03-21  Pedro Alves  <palves@redhat.com>
3020
3021         * infrun.c (normal_stop): Extend comment.
3022
3023 2014-03-21  Hui Zhu  <hui@codesourcery.com>
3024             Pedro Alves  <palves@redhat.com>
3025
3026         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3027         static buffer.
3028         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3029         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3030         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3031
3032 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
3033
3034         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3035         `z' formatted output modifier.
3036
3037 2014-03-20  Tom Tromey  <tromey@redhat.com>
3038             Sergio Durigan Junior  <sergiodj@redhat.com>
3039
3040         * probe.c (parse_probes): Turn assert into an ordinary error.
3041         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3042         exceptions when parsing probes.  Rearrange the code for clarity.
3043
3044 2014-03-20  Tom Tromey  <tromey@redhat.com>
3045
3046         PR gdb/14135
3047         * top.c (execute_command): Only dispatch events if the command
3048         started the target.
3049
3050 2014-03-20  Tom Tromey  <tromey@redhat.com>
3051
3052         PR cli/15718
3053         * infcall.c: Include event-top.h.
3054         (run_inferior_call): Call async_disable_stdin if needed.
3055
3056 2014-03-20  Pedro Alves  <palves@redhat.com>
3057
3058         * infrun.c (prepare_to_proceed): Delete.
3059         (thread_still_needs_step_over): New function.
3060         (find_thread_needs_step_over): New function.
3061         (proceed): If the current thread needs a step-over, set its
3062         steping_over_breakpoint flag.  Adjust to use
3063         find_thread_needs_step_over instead of prepare_to_proceed.
3064         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3065         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3066         breakpoint.
3067         (switch_back_to_stepped_thread): Step over breakpoints of all
3068         threads not the stepping thread, before switching back to the
3069         stepping thread.
3070
3071 2014-03-20  Pedro Alves  <palves@redhat.com>
3072
3073         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3074         extern.
3075         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3076         * infrun.c (saved_singlestep_ptid)
3077         (stepping_past_singlestep_breakpoint): Delete.
3078         (resume): Remove stepping_past_singlestep_breakpoint handling.
3079         (proceed): Store the prev_pc of the stepping thread too.
3080         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
3081         singlestep_pc.
3082         (enum infwait_states): Delete infwait_thread_hop_state.
3083         (struct execution_control_state) <hit_singlestep_breakpoint>: New
3084         field.
3085         (handle_inferior_event): Adjust.
3086         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3087         handling and the thread-hop code.  Before removing single-step
3088         breakpoints, check whether the thread hit a single-step breakpoint
3089         of another thread.  If it did, the trap is not a random signal.
3090         (switch_back_to_stepped_thread): If the event thread hit a
3091         single-step breakpoint, unblock it before switching to the
3092         stepping thread.  Handle the case of the stepped thread having
3093         advanced already.
3094         (keep_going): Handle the case of the current thread moving past a
3095         single-step breakpoint.
3096
3097 2014-03-20  Pedro Alves  <palves@redhat.com>
3098
3099         PR breakpoints/7143
3100         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3101         are being stepped over.
3102         (breakpoint_address_match): Make extern.
3103         * breakpoint.h (breakpoint_address_match): New declaration.
3104         * inferior.h (stepping_past_instruction_at): New declaration.
3105         * infrun.c (struct step_over_info): New type.
3106         (step_over_info): New global.
3107         (set_step_over_info, clear_step_over_info)
3108         (stepping_past_instruction_at): New functions.
3109         (handle_inferior_event): Clear the step-over info when
3110         trap_expected is cleared.
3111         (resume): Remove now stale comment.
3112         (clear_proceed_status): Clear step-over info.
3113         (proceed): Adjust step-over handling to set or clear the step-over
3114         info instead of removing all breakpoints.
3115         (handle_signal_stop): When setting up a thread-hop, don't remove
3116         breakpoints here.
3117         (stop_stepping): Clear step-over info.
3118         (keep_going): Adjust step-over handling to set or clear step-over
3119         info and then always inserting breakpoints, instead of removing
3120         all breakpoints when stepping over one.
3121
3122 2014-03-20  Pedro Alves  <palves@redhat.com>
3123
3124         * infrun.c (previous_inferior_ptid): Adjust comment.
3125         (deferred_step_ptid): Delete.
3126         (infrun_thread_ptid_changed, prepare_to_proceed)
3127         (init_wait_for_inferior): Adjust.
3128         (handle_signal_stop): Delete deferred_step_ptid handling.
3129
3130 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3131
3132         PR gdb/15358
3133         * defs.h (sync_quit_force_run): New declaration.
3134         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3135         * event-top.c (async_sigterm_handler): New declaration.
3136         (async_sigterm_token): New variable.
3137         (async_init_signals): Create also async_sigterm_token.
3138         (async_sigterm_handler): New function.
3139         (sync_quit_force_run): New variable.
3140         (handle_sigterm): Replace quit_force call by other calls.
3141         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3142
3143 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
3144
3145         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3146         offset into SPE pseudo registers.
3147
3148 2014-03-18  Pedro Alves  <palves@redhat.com>
3149
3150         PR gdb/13860
3151         * inferior.h (print_stop_event): Declare.
3152         * infrun.c (print_stop_event): New, factored out from ...
3153         (normal_stop): ... this.
3154         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3155         of bpstat_print/print_stack_frame.
3156
3157 2014-03-17  Tom Tromey  <tromey@redhat.com>
3158
3159         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3160
3161 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
3162
3163         * ada-lang.c (decode_constrained_packed_array): Perform a
3164         minimal coercion for reference with coerce_ref instead of
3165         ada_coerce_ref.
3166
3167 2014-03-17  Tristan Gingold  <gingold@adacore.com>
3168
3169         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3170         (darwin_solib_create_inferior_hook): Emit a warning if version
3171         is unhandled.
3172
3173 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
3174
3175         * python/py-value.c (get_field_flag): Cast flag_name argument to
3176         PyObject_GetAttrString to support Python 2.4.
3177
3178 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3179
3180         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3181         (Global Maintainers): Remove Jan Kratochvil.
3182
3183 2014-03-14  Pedro Alves  <palves@redhat.com>
3184
3185         * inferior.h (terminal_ours_for_output): Rename to ...
3186         (child_terminal_ours_for_output): ... this.
3187         (terminal_save_ours): Rename to ...
3188         (child_terminal_save_ours): ... this.
3189         (terminal_ours): Rename to ...
3190         (child_terminal_ours): ... this.
3191         (terminal_inferior): Rename to ...
3192         (child_terminal_inferior): ... this.
3193         (terminal_init_inferior): Rename to ...
3194         (child_terminal_init_inferior): ... this.
3195         (terminal_init_inferior_with_pgrp): Rename to ...
3196         (child_terminal_init_inferior_with_pgrp): ... this.
3197         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3198         (child_terminal_init_with_pgrp): ... this.
3199         (terminal_save_ours): Rename to ...
3200         (child_terminal_save_ours): ... this.
3201         (terminal_init_inferior): Rename to ...
3202         (child_terminal_init): ... this.  Adjust.
3203         (terminal_inferior): Rename to ...
3204         (child_terminal_inferior): ... this.
3205         (terminal_ours_for_output): Rename to ...
3206         (child_terminal_ours_for_output): ... this.  Adjust.
3207         (terminal_ours): Rename to ...
3208         (child_terminal_ours): ... this.
3209         (terminal_ours_1): Rename to ...
3210         (child_terminal_ours_1): ... this.  Adjust.
3211         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3212         * windows-nat.c (do_initial_windows_stuff): Adjust.
3213         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3214         (gnu_terminal_init): ... this.  Adjust.
3215         (gnu_target): Adjust.
3216         * inf-child.c (inf_child_target): Adjust.
3217
3218 2014-03-13  Doug Evans  <xdje42@gmail.com>
3219
3220         PR guile/16612
3221         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3222         new eq?-hashtab.
3223
3224 2014-03-13  Doug Evans  <xdje42@gmail.com>
3225
3226         * value.c (record_latest_value): Call release_value_or_incref
3227         instead of release_value.
3228
3229 2014-03-13  Pedro Alves  <palves@redhat.com>
3230
3231         * procfs.c (procfs_target): Don't override to_shortname,
3232         to_longname or to_doc.
3233
3234 2014-03-13  Pedro Alves  <palves@redhat.com>
3235
3236         * inf-child.c (inf_child_open, inf_child_target): Don't mention
3237         Unix in user visible strings.
3238
3239 2014-03-12  Stan Shebs  <stan@codesourcery.com>
3240
3241         * gdbtypes.h: Annotate comments for Doxygen, add a page
3242         block comment with some general info.
3243
3244 2014-03-12  Pedro Alves  <palves@redhat.com>
3245
3246         * infcmd.c (prepare_execution_command): New function, factored out
3247         from several execution commands.
3248         (run_command_1, continue_command, step_1, jump_command)
3249         (signal_command, until_command, advance_command, finish_command)
3250         (attach_command): Use prepare_execution_command.
3251
3252 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
3253
3254         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3255         (MAX_BPTS): Define.
3256         (MAX_WPTS): Define.
3257         (struct arm_linux_thread_points): Removed.
3258         (struct arm_linux_process_info): New.
3259         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3260         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3261         (arm_linux_find_breakpoints_by_tid): Removed.
3262         (struct arch_lwp_info): New.
3263         (arm_linux_find_process_pid): New functions.
3264         (arm_linux_add_process): New functions.
3265         (arm_linux_process_info_get): New functions.
3266         (arm_linux_forget_process): New function.
3267         (arm_linux_get_debug_reg_state): New function.
3268         (struct update_registers_data): New.
3269         (update_registers_callback): New function.
3270         (arm_linux_insert_hw_breakpoint1): Updated.
3271         (arm_linux_remove_hw_breakpoint1): Updated.
3272         (arm_linux_insert_hw_breakpoint): Updated.
3273         (arm_linux_remove_hw_breakpoint): Updated.
3274         (arm_linux_insert_watchpoint): Updated.
3275         (arm_linux_remove_watchpoint): Updated.
3276         (arm_linux_new_thread): Updated.
3277         (arm_linux_prepare_to_resume): New function.
3278         (arm_linux_new_fork): New function.
3279         (_initialize_arm_linux_nat): Updated.
3280
3281 2014-03-12  Pedro Alves  <palves@redhat.com>
3282
3283         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3284
3285 2014-03-12  Tom Tromey  <tromey@redhat.com>
3286
3287         * inf-child.c (return_zero): New function.
3288         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3289         * aix-thread.c (aix_thread_inferior_created): New function.
3290         (aix_thread_attach): Remove.
3291         (init_aix_thread_ops): Don't set to_attach.
3292         (_initialize_aix_thread): Register inferior_created observer.
3293         * corelow.c (init_core_ops): Don't set to_attach or
3294         to_create_inferior.
3295         * exec.c (init_exec_ops): Don't set to_attach or
3296         to_create_inferior.
3297         * infcmd.c (run_command_1): Use find_run_target.  Make direct
3298         target calls.
3299         (attach_command): Use find_attach_target.  Make direct target
3300         calls.
3301         * record-btrace.c (init_record_btrace_ops): Don't set
3302         to_create_inferior.
3303         * record-full.c (record_full_can_async_p, record_full_is_async_p):
3304         Remove.
3305         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
3306         set to_create_inferior.
3307         * target.c (complete_target_initialization): Add assertion.
3308         (target_create_inferior): Remove.
3309         (find_default_attach, find_default_create_inferior): Remove.
3310         (find_attach_target, find_run_target): New functions.
3311         (find_default_is_async_p, find_default_can_async_p)
3312         (target_supports_non_stop, target_attach): Remove.
3313         (init_dummy_target): Don't set to_create_inferior or
3314         to_supports_non_stop.
3315         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
3316         TARGET_DEFAULT_FUNC.
3317         <to_create_inferior>: Add comment.
3318         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3319         TARGET_DEFAULT_RETURN.
3320         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3321         (find_attach_target, find_run_target): Declare.
3322         (target_create_inferior): Remove.
3323         (target_has_execution_1): Update comment.
3324         (target_supports_non_stop): Remove.
3325         * target-delegates.c: Rebuild.
3326
3327 2014-03-12  Pedro Alves  <palves@redhat.com>
3328
3329         * inf-child.h: Update comment to not mention Unix.
3330
3331 2014-03-12  Pedro Alves  <palves@redhat.com>
3332
3333         * inf-child.c: Update top comment to not mention Unix.  Add
3334         generic comment describing how this target is meant to be used.
3335         (inf_child_post_attach, inf_child_post_startup_inferior)
3336         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3337         Unix in comment.
3338
3339 2014-03-12  Pedro Alves  <palves@redhat.com>
3340
3341         * nto-procfs.c: Include inf-child.h.
3342         (procfs_ops): Delete global.
3343         (procfs_can_run): Delete method.
3344         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3345         target pointer instead of referencing procfs_ops.
3346         (procfs_prepare_to_store): Delete.
3347         (init_procfs_ops): Delete function.
3348         (procfs_target): New function, based on init_procfs_ops, but
3349         inherit inf_child_target.
3350         (_initialize_procfs): Use procfs_target.
3351
3352 2014-03-12  Pedro Alves  <palves@redhat.com>
3353
3354         * windows-nat.c: Include inf-child.h.
3355         (windows_ops): Delete global.
3356         (windows_open, windows_prepare_to_store, windows_can_run): Delete
3357         methods.
3358         (init_windows_ops): Delete function.
3359         (windows_target): New function, based on init_windows_ops, but
3360         inherit inf_child_target.
3361         (_initialize_windows_nat): Use windows_target.  Install x86
3362         specific target methods here.
3363
3364 2014-03-10  Doug Evans  <xdje42@gmail.com>
3365
3366         * guile/guile.c (call_initialize_gdb_module): New function.
3367         (initialize_guile): Replace call to scm_init_guile with call to
3368         scm_with_guile.
3369
3370 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
3371
3372         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3373         in call to TYPE_CODE macro.
3374
3375 2014-03-10  Jerome Guitton  <guitton@adacore.com>
3376
3377         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3378         Resolve tagged types to full view.
3379
3380 2014-03-10  Hui Zhu  <hui@codesourcery.com>
3381
3382         * target.h (target_insert_breakpoint): Remove "hardware" from its
3383         comments.
3384
3385 2014-03-07  Doug Evans  <dje@google.com>
3386
3387         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3388
3389 2014-03-07  Doug Evans  <dje@google.com>
3390
3391         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3392         Remove unused local comp_dir_attr.  Assert exactly one of
3393         stub_comp_unit_die, stub_comp_dir is non-NULL.
3394
3395 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
3396
3397         * target.h (complete_target_initialization, add_target):
3398         Add comment.
3399
3400 2014-03-07  Pedro Alves  <palves@redhat.com>
3401
3402         * go32-nat.c: Include inf-child.h.
3403         (go32_ops): Delete global.
3404         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3405         Delete methods.
3406         (go32_create_inferior): Push the passed in target pointer instead
3407         of referencing go32_ops.
3408         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
3409         (go32_target): New function, based on init_go32_ops, but inherit
3410         inf_child_target.
3411         (_initialize_go32_nat): Use go32_target.  Move parts of
3412         init_go32_ops here.
3413
3414 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
3415
3416         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3417         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3418         SYMBOL_VALUE_ADDRESS.
3419         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3420
3421 2014-03-06  Yao Qi  <yao@codesourcery.com>
3422
3423         * breakpoint.c (get_tracepoint_by_number): Remove argument
3424         optional_p.  All callers updated.  Adjust comments.  Update
3425         output message.
3426         * breakpoint.h (get_tracepoint_by_number): Update declaration.
3427
3428 2014-03-06  Yao Qi  <yao@codesourcery.com>
3429
3430         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
3431         early if get_number returns zero.  Use 'p' instead of 'args'.
3432
3433 2014-03-06  Yao Qi  <yao@codesourcery.com>
3434
3435         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3436         message.
3437
3438 2014-03-06  Yao Qi  <yao@codesourcery.com>
3439
3440         PR breakpoints/16508
3441         * tracepoint.c (check_trace_running): New function.
3442         (trace_find_command): Move code to check_trace_running and
3443         call check_trace_running.
3444         (trace_find_pc_command): Likewise.
3445         (trace_find_tracepoint_command): Likewise.
3446         (trace_find_line_command): Likewise.
3447         (trace_find_range_command): Likewise.
3448         * tracepoint.h (check_trace_running): Likewise.
3449         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3450
3451 2014-03-06  Yao Qi  <yao@codesourcery.com>
3452
3453         * target.h (struct target_ops) <to_traceframe_info>: Use
3454         TARGET_DEFAULT_NORETURN (tcomplain ()).
3455         * target-delegates.c: Regenerated.
3456
3457 2014-03-05  Pedro Alves  <palves@redhat.com>
3458
3459         PR gdb/16575
3460         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
3461         void.  Update comment.
3462         (dcache_xfer_memory): Delete.
3463         (dcache_read_memory_partial): New, based on the read bits of
3464         dcache_xfer_memory.
3465         (dcache_update): Add status parameter.  Use ULONGEST for len, and
3466         adjust.  Discard cache lines if the reason for the update was
3467         error.
3468         * dcache.h (dcache_xfer_memory): Delete declaration.
3469         (dcache_read_memory_partial): New declaration.
3470         (dcache_update): Update prototype.
3471         * target.c (raw_memory_xfer_partial): Update the dcache here.
3472         (memory_xfer_partial_1): Don't handle dcache writes here.
3473
3474 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
3475
3476         * remote-sim.c (gdbsim_load): Add const to prog.
3477
3478 2014-03-03  Tom Tromey  <tromey@redhat.com>
3479
3480         * elfread.c (probe_key): Change to bfd_data.
3481         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3482         now per-BFD, not per-objfile.
3483         * stap-probe.c (stap_probe_destroy): Update comment.
3484         (handle_stap_probe): Allocate on the per-BFD obstack.
3485
3486 2014-03-03  Tom Tromey  <tromey@redhat.com>
3487
3488         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3489         * breakpoint.c (create_longjmp_master_breakpoint): Use
3490         get_probe_address.
3491         (add_location_to_breakpoint, bkpt_probe_insert_location)
3492         (bkpt_probe_remove_location): Update.
3493         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3494         * elfread.c (elf_symfile_relocate_probe): Remove.
3495         (elf_probe_fns): Update.
3496         (insert_exception_resume_breakpoint): Change type of "probe"
3497         parameter to bound_probe.
3498         (check_exception_resume): Update.
3499         * objfiles.c (objfile_relocate1): Don't relocate probes.
3500         * probe.c (bound_probe_s): New typedef.
3501         (parse_probes): Use get_probe_address.  Set sal's objfile.
3502         (find_probe_by_pc): Return a bound_probe.
3503         (collect_probes): Return a VEC(bound_probe_s).
3504         (compare_probes): Update.
3505         (gen_ui_out_table_header_info): Change type of "probes"
3506         parameter.  Update.
3507         (info_probes_for_ops): Update.
3508         (get_probe_address): New function.
3509         (probe_safe_evaluate_at_pc): Update.
3510         * probe.h (struct probe_ops) <get_probe_address>: New field.
3511         <set_semaphore, clear_semaphore>: Add objfile parameter.
3512         (struct probe) <objfile>: Remove field.
3513         <arch>: New field.
3514         <address>: Update comment.
3515         (struct bound_probe): New.
3516         (find_probe_by_pc): Return a bound_probe.
3517         (get_probe_address): Declare.
3518         * solib-svr4.c (struct probe_and_action) <address>: New field.
3519         (hash_probe_and_action, equal_probe_and_action): Update.
3520         (register_solib_event_probe): Add address parameter.
3521         (solib_event_probe_at): Update.
3522         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
3523         get_probe_address.
3524         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3525         (stap_get_probe_address): New function.
3526         (stap_can_evaluate_probe_arguments, compute_probe_arg)
3527         (compile_probe_arg): Update.
3528         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3529         address.
3530         (handle_stap_probe): Don't relocate the probe.
3531         (stap_relocate): Remove.
3532         (stap_gen_info_probes_table_values): Update.
3533         (stap_probe_ops): Remove stap_relocate.
3534         * symfile-debug.c (debug_sym_relocate_probe): Remove.
3535         (debug_sym_probe_fns): Update.
3536         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3537         * symtab.c (init_sal): Use memset.
3538         * symtab.h (struct symtab_and_line) <objfile>: New field.
3539         * tracepoint.c (start_tracing, stop_tracing): Update.
3540
3541 2014-03-03  Tom Tromey  <tromey@redhat.com>
3542
3543         * probe.h (parse_probes, find_probe_by_pc)
3544         (find_probes_in_objfile): Fix comments.
3545
3546 2014-03-02  Doug Evans  <xdje42@gmail.com>
3547
3548         * infrun.c (handle_signal_stop): Replace test for
3549         TARGET_WAITKIND_STOPPED with an assert.
3550
3551 2014-03-02  Doug Evans  <xdje42@gmail.com>
3552
3553         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3554
3555 2014-03-02  Doug Evans  <xdje42@gmail.com>
3556
3557         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3558
3559 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
3560
3561         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3562
3563 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
3564
3565         * i386obsd-nat.c: Include "obsd-nat.h".
3566         (_initialize_i386obsd_nat): Call obsd_add_target instead of
3567         add_target.
3568         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3569
3570 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
3571
3572         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3573
3574 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
3575
3576         * mips64obsd-nat.c: Include "obsd-nath".
3577         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3578         add_target
3579         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3580
3581 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
3582
3583         * amd64obsd-nat.c: Include "obsd-nat,h.
3584         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3585         add_target.
3586         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3587
3588 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
3589
3590         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3591         (find_overload_match): Update call to find_oload_champ.
3592         (find_oload_champ_namespace_loop): Likewise
3593
3594 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
3595
3596         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3597
3598         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3599         * config/sparc/obsd64.mh: New file.
3600         * sparc64obsd-nat.c: New file.
3601
3602         * obsd-nat.h: New file.
3603         * obsd-nat.c: New file.
3604         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3605         (ALLDEPFILES): Add obsd-nat.c.
3606
3607 2014-02-28  Tom Tromey  <tromey@redhat.com>
3608
3609         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
3610         * cli-out.h (cli_ui_out_impl): Now const.
3611         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
3612         * ui-out.c (struct ui_out) <impl>: Now const.
3613         (default_ui_out_impl): Now const.
3614         (ui_out_new): Make 'impl' parameter const.
3615         * ui-out.h (ui_out_new): Update.
3616
3617 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
3618
3619         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3620
3621 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
3622
3623         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3624
3625 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3626
3627         Additional PR 8882 fix.
3628         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3629
3630 2014-02-27  Pedro Alves  <palves@redhat.com>
3631
3632         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3633         isn't set.
3634
3635 2014-02-27  Pedro Alves  <palves@redhat.com>
3636
3637         PR 12702
3638         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3639         * nat/linux-waitpid.c: Include string.h.
3640         (status_to_str): Moved here and made extern.
3641         * nat/linux-waitpid.h (status_to_str): New declaration.
3642
3643 2014-02-27  Hui Zhu  <hui@codesourcery.com>
3644
3645         PR 12702
3646         * infrun.c (ptid_match): Move ...
3647         * common/ptid.c (ptid_match): ... here.
3648         * inferior.h (ptid_match): Move ...
3649         * common/ptid.h (ptid_match): ... here.
3650
3651 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
3652
3653         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3654         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3655         gdb_target_obs.
3656
3657 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
3658
3659         * obsd-tdep.c (obsd_auxv_parse): New function.
3660         (obsd_init_abi): Set auxv_parse.
3661
3662         * gdbarch.sh (auxv_parse): New.
3663         * gdbarch.h: Regenerated.
3664         * gdbarch.c: Regenerated.
3665         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3666
3667 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
3668
3669         * guile/scm-value.c (gdbscm_history_append_x): New function.
3670         (value_functions): Add it.
3671
3672 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
3673
3674         * dwarf2read.c (attr_value_as_address): New function.
3675         (dwarf2_find_base_address, read_call_site_scope): Use
3676         attr_value_as_address in place of DW_ADDR.
3677         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3678         the low and high addresses.  Slight rework of the handling
3679         of the high pc being a constant form, and limit it to
3680         DWARF verson 4 or higher.
3681         (dwarf2_record_block_ranges): Likewise.
3682         (read_partial_die): Likewise.
3683         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3684
3685 2014-02-26  Tom Tromey  <tromey@redhat.com>
3686
3687         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3688
3689 2014-02-26  Tom Tromey  <tromey@redhat.com>
3690
3691         * elfread.c (elf_read_minimal_symbols): Return early if
3692         minimal symbols have already been read.  Add "ei" parameter.
3693         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3694         * minsyms.c (prim_record_minimal_symbol_full): Update.
3695         * objfiles.h (struct objstats) <n_minsyms>: Move...
3696         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3697         * symmisc.c (print_objfile_statistics): Update.
3698
3699 2014-02-26  Tom Tromey  <tromey@redhat.com>
3700
3701         * elfread.c (elf_read_minimal_symbols): New function, from
3702         elf_symfile_read.
3703         (elf_symfile_read): Call it.
3704
3705 2014-02-26  Tom Tromey  <tromey@redhat.com>
3706
3707         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3708         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3709         (lookup_minimal_symbol_solib_trampoline)
3710         (lookup_minimal_symbol_by_pc_section_1)
3711         (lookup_minimal_symbol_and_objfile): Update.
3712         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3713         Don't allocate a minimal symbol if minsyms have already been read.
3714         (build_minimal_symbol_hash_tables): Update.
3715         (install_minimal_symbols): Do nothing if minsyms already read.
3716         Use the per-BFD obstack.
3717         (terminate_minimal_symbol_table): Use the per-BFD obstack.
3718         * objfiles.c (allocate_objfile): Call
3719         terminate_minimal_symbol_table later.
3720         (have_minimal_symbols): Update.
3721         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3722         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3723         Move from struct objfile.
3724         <minsyms_read>: New field.
3725         (struct objfile) <msymbols, minimal_symbol_count,
3726         msymbol_hash, msymbol_demangled_hash>: Move.
3727         (ALL_OBJFILE_MSYMBOLS): Update.
3728         * symfile.c (read_symbols): Set minsyms_read.
3729         (reread_symbols): Update.
3730         * symmisc.c (dump_objfile, dump_msymbols): Update.
3731
3732 2014-02-26  Tom Tromey  <tromey@redhat.com>
3733
3734         * minsyms.c (msymbols_sort): Remove.
3735         * minsyms.h (msymbols_sort): Remove.
3736         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3737         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3738         * elfread.c (elf_symtab_read): Don't add section offsets.
3739         * xcoffread.c (record_minimal_symbol): Don't add section offset
3740         to minimal symbol address.
3741         * somread.c (text_offset, data_offset): Remove.
3742         (som_symtab_read): Don't add section offsets to minimal symbol
3743         addresses.
3744         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3745         Don't add section offsets to minimal symbols.
3746         * coffread.c (coff_symtab_read): Don't add section offsets
3747         to minimal symbol addresses.
3748         * machoread.c (macho_symtab_add_minsym): Don't add section offset
3749         to minimal symbol addresses.
3750         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3751         section offset to minimal symbol addresses.
3752         * mdebugread.c (parse_partial_symbols): Don't add section
3753         offset to minimal symbol addresses.
3754         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3755         offset to minimal symbol addresses.
3756
3757 2014-02-26  Tom Tromey  <tromey@redhat.com>
3758
3759         * ada-lang.c (ada_main_name): Update.
3760         (ada_add_standard_exceptions): Update.
3761         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3762         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3763         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3764         * auxv.c (ld_so_xfer_auxv): Update.
3765         * avr-tdep.c (avr_scan_prologue): Update.
3766         * ax-gdb.c (gen_var_ref): Update.
3767         * blockframe.c (get_pc_function_start)
3768         (find_pc_partial_function_gnu_ifunc): Update.
3769         * breakpoint.c (create_overlay_event_breakpoint)
3770         (create_longjmp_master_breakpoint)
3771         (create_std_terminate_master_breakpoint)
3772         (create_exception_master_breakpoint): Update.
3773         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3774         * c-valprint.c (c_val_print): Update.
3775         * coff-pe-read.c (add_pe_forwarded_sym): Update.
3776         * common/agent.c (agent_look_up_symbols): Update.
3777         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3778         * dwarf2loc.c (call_site_to_target_addr): Update.
3779         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3780         * elfread.c (elf_gnu_ifunc_record_cache)
3781         (elf_gnu_ifunc_resolve_by_got): Update.
3782         * findvar.c (default_read_var_value): Update.
3783         * frame.c (inside_main_func): Update.
3784         * frv-tdep.c (frv_frame_this_id): Update.
3785         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3786         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3787         Update.
3788         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3789         (hppa_hpux_find_dummy_bpaddr): Update.
3790         * hppa-tdep.c (hppa_symbol_address): Update.
3791         * infcmd.c (until_next_command): Update.
3792         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3793         Update.
3794         * linespec.c (minsym_found, add_minsym): Update.
3795         * linux-nat.c (get_signo): Update.
3796         * linux-thread-db.c (inferior_has_bug): Update.
3797         * m32c-tdep.c (m32c_return_value)
3798         (m32c_m16c_address_to_pointer): Update.
3799         * m32r-tdep.c (m32r_frame_this_id): Update.
3800         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3801         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3802         * maint.c (maintenance_translate_address): Update.
3803         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3804         (frob_address): New function.
3805         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3806         frob_address.  Rename parameter to "pc_in".
3807         (compare_minimal_symbols, compact_minimal_symbols): Use raw
3808         addresses.
3809         (find_solib_trampoline_target, minimal_symbol_upper_bound):
3810         Update.
3811         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3812         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3813         * objc-lang.c (find_objc_msgsend): Update.
3814         * objfiles.c (objfile_relocate1): Update.
3815         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3816         * p-valprint.c (pascal_val_print): Update.
3817         * parse.c (write_exp_msymbol): Update.
3818         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3819         (ppc_elfv2_skip_entrypoint): Update.
3820         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3821         * printcmd.c (build_address_symbolic, msym_info)
3822         (address_info): Update.
3823         * proc-service.c (ps_pglobal_lookup): Update.
3824         * psymtab.c (find_pc_sect_psymtab_closer)
3825         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3826         Change msymbol parameter to bound_minimal_symbol.
3827         * ravenscar-thread.c (get_running_thread_id): Update.
3828         * remote.c (remote_check_symbols): Update.
3829         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3830         address.
3831         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3832         * solib-dsbt.c (lm_base): Update.
3833         * solib-frv.c (lm_base, main_got): Update.
3834         * solib-irix.c (locate_base): Update.
3835         * solib-som.c (som_solib_create_inferior_hook)
3836         (link_map_start): Update.
3837         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3838         * solib-svr4.c (elf_locate_base, enable_break): Update.
3839         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3840         (flush_ea_cache): Update.
3841         * stabsread.c (define_symbol, scan_file_globals): Update.
3842         * stack.c (find_frame_funname): Update.
3843         * symfile-debug.c (debug_qf_expand_symtabs_matching)
3844         (debug_qf_find_pc_sect_symtab): Update.
3845         * symfile.c (simple_read_overlay_table)
3846         (simple_overlay_update): Update.
3847         * symfile.h (struct quick_symbol_functions)
3848         <find_pc_sect_symtab>: Change type of msymbol to
3849         bound_minimal_symbol.
3850         * symmisc.c (dump_msymbols): Update.
3851         * symtab.c (find_pc_sect_symtab_via_partial)
3852         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3853         (search_symbols, print_msymbol_info): Update.
3854         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3855         (MSYMBOL_VALUE_ADDRESS): Redefine.
3856         (BMSYMBOL_VALUE_ADDRESS): New macro.
3857         * tracepoint.c (scope_info): Update.
3858         * tui/tui-disasm.c (tui_find_disassembly_address)
3859         (tui_get_begin_asm_address): Update.
3860         * valops.c (find_function_in_inferior): Update.
3861         * value.c (value_static_field, value_fn_field): Update.
3862
3863 2014-02-26  Tom Tromey  <tromey@redhat.com>
3864
3865         * ada-lang.c (ada_update_initial_language): Update.
3866         (ada_main_name, ada_has_this_exception_support): Update.
3867         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3868         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3869         * arm-tdep.c (arm_skip_stub): Update.
3870         * auxv.c (ld_so_xfer_auxv): Update.
3871         * avr-tdep.c (avr_scan_prologue): Update.
3872         * ax-gdb.c (gen_var_ref): Update.
3873         * breakpoint.c (struct breakpoint_objfile_data)
3874         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3875         type to bound_minimal_symbol.
3876         (create_overlay_event_breakpoint)
3877         (create_longjmp_master_breakpoint)
3878         (create_std_terminate_master_breakpoint)
3879         (create_exception_master_breakpoint): Update.
3880         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3881         * c-exp.y (classify_name): Update.
3882         * coffread.c (coff_symfile_read): Update.
3883         * common/agent.c (agent_look_up_symbols): Update.
3884         * d-lang.c (d_main_name): Update.
3885         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3886         * dec-thread.c (enable_dec_thread): Update.
3887         * dwarf2loc.c (call_site_to_target_addr): Update.
3888         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3889         * eval.c (evaluate_subexp_standard): Update.
3890         * findvar.c (struct minsym_lookup_data) <result>: Change type
3891         to bound_minimal_symbol.
3892         <objfile>: Remove.
3893         (minsym_lookup_iterator_cb, default_read_var_value): Update.
3894         * frame.c (inside_main_func): Update.
3895         * frv-tdep.c (frv_frame_this_id): Update.
3896         * gcore.c (call_target_sbrk): Update.
3897         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3898         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3899         Update.
3900         * go-lang.c (go_main_name): Update.
3901         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3902         (hppa_hpux_find_import_stub_for_addr): Update.
3903         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3904         Update.  Change return type.
3905         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3906         type.
3907         * jit.c (jit_breakpoint_re_set_internal): Update.
3908         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3909         Update.
3910         * linux-nat.c (get_signo): Update.
3911         * linux-thread-db.c (inferior_has_bug): Update
3912         * m32c-tdep.c (m32c_return_value)
3913         (m32c_m16c_address_to_pointer): Update.
3914         * m32r-tdep.c (m32r_frame_this_id): Update.
3915         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3916         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3917         * minsyms.c (lookup_minimal_symbol_internal): Rename to
3918         lookup_minimal_symbol.  Change return type.
3919         (lookup_minimal_symbol): Remove.
3920         (lookup_bound_minimal_symbol): Update.
3921         (lookup_minimal_symbol_text): Change return type.
3922         (lookup_minimal_symbol_solib_trampoline): Change return type.
3923         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3924         (lookup_minimal_symbol_solib_trampoline): Change return type.
3925         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3926         * objc-lang.c (lookup_objc_class, lookup_child_selector)
3927         (value_nsstring, find_imps): Update.
3928         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3929         * p-lang.c (pascal_main_name): Update.
3930         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3931         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3932         * proc-service.c (ps_pglobal_lookup): Update.
3933         * ravenscar-thread.c (get_running_thread_msymbol): Change
3934         return type.
3935         (has_ravenscar_runtime, get_running_thread_id): Update.
3936         * remote.c (remote_check_symbols): Update.
3937         * sol-thread.c (ps_pglobal_lookup): Update.
3938         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3939         * solib-dsbt.c (lm_base): Update.
3940         * solib-frv.c (lm_base, frv_relocate_section_addresses):
3941         Update.
3942         * solib-irix.c (locate_base): Update.
3943         * solib-som.c (som_solib_create_inferior_hook)
3944         (som_solib_desire_dynamic_linker_symbols, link_map_start):
3945         Update.
3946         * solib-spu.c (spu_enable_break): Update.
3947         * solib-svr4.c (elf_locate_base, enable_break): Update.
3948         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3949         (flush_ea_cache): Update.
3950         * stabsread.c (define_symbol): Update.
3951         * symfile.c (simple_read_overlay_table): Update.
3952         * symtab.c (find_pc_sect_line): Update.
3953         * tracepoint.c (scope_info): Update.
3954         * tui-disasm.c (tui_get_begin_asm_address): Update.
3955         * value.c (value_static_field): Update.
3956
3957 2014-02-26  Tom Tromey  <tromey@redhat.com>
3958
3959         * minsyms.c (prim_record_minimal_symbol_full): Use
3960         SET_MSYMBOL_VALUE_ADDRESS.
3961         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3962         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3963         SET_MSYMBOL_VALUE_ADDRESS.
3964         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3965         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3966
3967 2014-02-26  Tom Tromey  <tromey@redhat.com>
3968
3969         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3970         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3971         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3972         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3973         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3974         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3975         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3976         * ada-lang.c (ada_main_name): Update.
3977         (ada_lookup_simple_minsym): Update.
3978         (ada_make_symbol_completion_list): Update.
3979         (ada_add_standard_exceptions): Update.
3980         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3981         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3982         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3983         * arm-tdep.c (skip_prologue_function): Update.
3984         (arm_skip_stack_protector, arm_skip_stub): Update.
3985         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3986         (arm_wince_skip_main_prologue): Update.
3987         * auxv.c (ld_so_xfer_auxv): Update.
3988         * avr-tdep.c (avr_scan_prologue): Update.
3989         * ax-gdb.c (gen_var_ref): Update.
3990         * block.c (call_site_for_pc): Update.
3991         * blockframe.c (get_pc_function_start): Update.
3992         (find_pc_partial_function_gnu_ifunc): Update.
3993         * breakpoint.c (create_overlay_event_breakpoint): Update.
3994         (create_longjmp_master_breakpoint): Update.
3995         (create_std_terminate_master_breakpoint): Update.
3996         (create_exception_master_breakpoint): Update.
3997         (resolve_sal_pc): Update.
3998         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3999         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4000         Update.
4001         * c-valprint.c (c_val_print): Update.
4002         * coff-pe-read.c (add_pe_forwarded_sym): Update.
4003         * coffread.c (coff_symfile_read): Update.
4004         * common/agent.c (agent_look_up_symbols): Update.
4005         * dbxread.c (find_stab_function_addr): Update.
4006         (end_psymtab): Update.
4007         * dwarf2loc.c (call_site_to_target_addr): Update.
4008         (func_verify_no_selftailcall): Update.
4009         (tailcall_dump): Update.
4010         (call_site_find_chain_1): Update.
4011         (dwarf_expr_reg_to_entry_parameter): Update.
4012         * elfread.c (elf_gnu_ifunc_record_cache): Update.
4013         (elf_gnu_ifunc_resolve_by_got): Update.
4014         * f-valprint.c (info_common_command): Update.
4015         * findvar.c (read_var_value): Update.
4016         * frame.c (get_prev_frame_1): Update.
4017         (inside_main_func): Update.
4018         * frv-tdep.c (frv_skip_main_prologue): Update.
4019         (frv_frame_this_id): Update.
4020         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4021         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4022         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4023         (gnuv3_skip_trampoline): Update.
4024         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4025         (hppa64_hpux_in_solib_call_trampoline): Update.
4026         (hppa_hpux_skip_trampoline_code): Update.
4027         (hppa64_hpux_search_dummy_call_sequence): Update.
4028         (hppa_hpux_find_import_stub_for_addr): Update.
4029         (hppa_hpux_find_dummy_bpaddr): Update.
4030         * hppa-tdep.c (hppa_symbol_address)
4031         (hppa_lookup_stub_minimal_symbol): Update.
4032         * i386-tdep.c (i386_skip_main_prologue): Update.
4033         (i386_pe_skip_trampoline_code): Update.
4034         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4035         * infcall.c (get_function_name): Update.
4036         * infcmd.c (until_next_command): Update.
4037         * jit.c (jit_breakpoint_re_set_internal): Update.
4038         (jit_inferior_init): Update.
4039         * linespec.c (minsym_found): Update.
4040         (add_minsym): Update.
4041         * linux-fork.c (info_checkpoints_command): Update.
4042         * linux-nat.c (get_signo): Update.
4043         * linux-thread-db.c (inferior_has_bug): Update.
4044         * m32c-tdep.c (m32c_return_value): Update.
4045         (m32c_m16c_address_to_pointer): Update.
4046         (m32c_m16c_pointer_to_address): Update.
4047         * m32r-tdep.c (m32r_frame_this_id): Update.
4048         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4049         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4050         * maint.c (maintenance_translate_address): Update.
4051         * minsyms.c (add_minsym_to_hash_table): Update.
4052         (add_minsym_to_demangled_hash_table): Update.
4053         (msymbol_objfile): Update.
4054         (lookup_minimal_symbol): Update.
4055         (iterate_over_minimal_symbols): Update.
4056         (lookup_minimal_symbol_text): Update.
4057         (lookup_minimal_symbol_by_pc_name): Update.
4058         (lookup_minimal_symbol_solib_trampoline): Update.
4059         (lookup_minimal_symbol_by_pc_section_1): Update.
4060         (lookup_minimal_symbol_and_objfile): Update.
4061         (prim_record_minimal_symbol_full): Update.
4062         (compare_minimal_symbols): Update.
4063         (compact_minimal_symbols): Update.
4064         (build_minimal_symbol_hash_tables): Update.
4065         (install_minimal_symbols): Update.
4066         (terminate_minimal_symbol_table): Update.
4067         (find_solib_trampoline_target): Update.
4068         (minimal_symbol_upper_bound): Update.
4069         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4070         * mips-tdep.c (mips_stub_frame_sniffer): Update.
4071         (mips_skip_pic_trampoline_code): Update.
4072         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4073         * objc-lang.c (selectors_info): Update.
4074         (classes_info): Update.
4075         (find_methods): Update.
4076         (find_imps): Update.
4077         (find_objc_msgsend): Update.
4078         * objfiles.c (objfile_relocate1): Update.
4079         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4080         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4081         * p-valprint.c (pascal_val_print): Update.
4082         * parse.c (write_exp_msymbol): Update.
4083         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4084         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4085         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4086         * printcmd.c (build_address_symbolic): Update.
4087         (sym_info): Update.
4088         (address_info): Update.
4089         * proc-service.c (ps_pglobal_lookup): Update.
4090         * psymtab.c (find_pc_sect_psymtab_closer): Update.
4091         (find_pc_sect_psymtab): Update.
4092         * python/py-framefilter.c (py_print_frame): Update.
4093         * ravenscar-thread.c (get_running_thread_id): Update.
4094         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4095         Update.
4096         * remote.c (remote_check_symbols): Update.
4097         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4098         (rs6000_skip_trampoline_code): Update.
4099         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4100         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4101         * solib-dsbt.c (lm_base): Update.
4102         * solib-frv.c (lm_base): Update.
4103         (main_got): Update.
4104         * solib-irix.c (locate_base): Update.
4105         * solib-som.c (som_solib_create_inferior_hook): Update.
4106         (som_solib_desire_dynamic_linker_symbols): Update.
4107         (link_map_start): Update.
4108         * solib-spu.c (spu_enable_break): Update.
4109         (ocl_enable_break): Update.
4110         * solib-svr4.c (elf_locate_base): Update.
4111         (enable_break): Update.
4112         * spu-tdep.c (spu_get_overlay_table): Update.
4113         (spu_catch_start): Update.
4114         (flush_ea_cache): Update.
4115         * stabsread.c (define_symbol): Update.
4116         (scan_file_globals): Update.
4117         * stack.c (find_frame_funname): Update.
4118         (frame_info): Update.
4119         * symfile.c (simple_read_overlay_table): Update.
4120         (simple_overlay_update): Update.
4121         * symmisc.c (dump_msymbols): Update.
4122         * symtab.c (fixup_section): Update.
4123         (find_pc_sect_line): Update.
4124         (skip_prologue_sal): Update.
4125         (search_symbols): Update.
4126         (print_msymbol_info): Update.
4127         (rbreak_command): Update.
4128         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4129         (completion_list_objc_symbol): Update.
4130         (default_make_symbol_completion_list_break_on): Update.
4131         * tracepoint.c (scope_info): Update.
4132         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4133         (tui_get_begin_asm_address): Update.
4134         * valops.c (find_function_in_inferior): Update.
4135         * value.c (value_static_field): Update.
4136         (value_fn_field): Update.
4137
4138 2014-02-26  Tom Tromey  <tromey@redhat.com>
4139
4140         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4141         bound minimal symbols.  Move code that knows about minsym
4142         table layout...
4143         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
4144         function.
4145         * minsyms.h (minimal_symbol_upper_bound): Declare.
4146         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4147         minimal_symbol_upper_bound.
4148
4149 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
4150
4151         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4152         Use the type's name if its basic type does not have a tag.
4153
4154 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
4155
4156         * dwarf2read.c (read_subrange_type): Add comment.
4157
4158 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
4159
4160         * dwarf2read.c (update_enumeration_type_from_children): New
4161         function, mostly extracted from process_structure_scope.
4162         (read_enumeration_type): Call update_enumeration_type_from_children.
4163         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4164         and flag_flag_enum fields.
4165
4166 2014-02-26  Pedro Alves  <palves@redhat.com>
4167
4168         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4169         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4170         to_xfer_partial method.
4171
4172 2014-02-26  Pedro Alves  <palves@redhat.com>
4173
4174         * target.c (complete_target_initialization): Don't install
4175         default_xfer_partial as to_xfer_partial hook.
4176         (nomemory): Delete.
4177         (update_current_target): Don't INHERIT nor de_fault
4178         deprecated_xfer_memory.  Delete de_fault macro.
4179         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4180         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4181         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4182         field.
4183
4184 2014-02-26  Pedro Alves  <palves@redhat.com>
4185
4186         * go32-nat.c (my_write_child): New function.
4187         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4188         (go32_xfer_partial): New function.
4189         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4190         Instead install a to_xfer_partial hook.
4191
4192 2014-02-26  Pedro Alves  <palves@redhat.com>
4193
4194         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4195         to_xfer_partial helper.  Rewrite.
4196         (procfs_xfer_partial): New function.
4197         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4198         Install a to_xfer_partial hook.
4199
4200 2014-02-26  Pedro Alves  <palves@redhat.com>
4201
4202         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4203         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4204         (m32r_xfer_partial): New function.
4205         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4206         Install a to_xfer_partial hook.
4207
4208 2014-02-26  Pedro Alves  <palves@redhat.com>
4209
4210         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4211         helper.
4212         (mips_xfer_partial): New function.
4213         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4214         hook.  Install a to_xfer_partial hook.
4215
4216 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
4217
4218         * gdbtypes.h (create_array_type_with_stride): Add declaration.
4219         * gdbtypes.c (create_array_type_with_stride): New function,
4220         renaming create_array_type, but with an added parameter
4221         called "bit_stride".
4222         (create_array_type): Re-implement using
4223         create_array_type_with_stride.
4224         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4225         and DW_AT_bit_stride attributes.
4226
4227 2014-02-26  Pedro Alves  <palves@redhat.com>
4228
4229         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4230         task-specific breakpoints.
4231
4232 2014-02-25  Pedro Alves  <palves@redhat.com>
4233
4234         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4235         handling of object == TARGET_OBJECT_UNWIND_TABLE.
4236
4237 2014-02-25  Stan Shebs  <stan@codesourcery.com>
4238
4239         * defs.h: Annotate comments for Doxygen.
4240
4241 2014-02-25  Tom Tromey  <tromey@redhat.com>
4242
4243         * target.h (target_ignore): Don't declare.
4244         * target.c (target_ignore): Remove.
4245
4246 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4247
4248         PR gdb/16626
4249         * auto-load.c (auto_load_objfile_script_1): Change filename to
4250         debugfile.
4251
4252 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
4253
4254         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4255         documentation.  Adjust prototype to match the target_ops
4256         to_xfer_partial method.  Adjust implementation accordingly.
4257
4258 2014-02-25  Hui Zhu  <hui@codesourcery.com>
4259
4260         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4261         to_traceframe_info.
4262
4263 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
4264
4265         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4266         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4267         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4268         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4269         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4270         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4271         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4272         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4273         New constants.
4274         (rl78_register_type): Use a data pointer type for SP and
4275         new pseudo registers mentioned above.  Use a 16 bit integer
4276         type for all other register pairs.
4277         (rl78_register_name, rl78_g10_register_name): Update for
4278         new pseudo registers.
4279         (rl78_pseudo_register_read): Likewise.
4280         (rl78_pseudo_register_write): Likewise.
4281         (rl78_dwarf_reg_to_regnum): Return register numbers representing
4282         to the newly added pseudo registers.
4283
4284 2014-02-24  Doug Evans  <dje@google.com>
4285
4286         * value.c (record_latest_value): Fix comment.
4287         * printcmd.c (print_command_1): Remove code to handle -1 return from
4288         record_latest_value.
4289
4290 2014-02-24  Pedro Alves  <palves@redhat.com>
4291
4292         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4293         deprecated_xfer_memory hook.
4294         (procfs_xfer_partial): Call procfs_xfer_memory instead
4295         of the deprecated_xfer_memory target hook.
4296         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4297         helper.
4298
4299 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
4300
4301         * windows-nat.c (windows_xfer_shared_libraries): Return
4302         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4303         requested object is TARGET_OBJECT_LIBRARIES.
4304
4305 2014-02-24  Yao Qi  <yao@codesourcery.com>
4306
4307         * target.h (enum target_xfer_status)
4308         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4309         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4310         explicitly.  New.
4311         * corefile.c (memory_error_message): User updated.
4312         * exec.c (section_table_read_available_memory): Likewise.
4313         * record-btrace.c (record_btrace_xfer_partial): Likewise.
4314         * target.c (target_xfer_status_to_string): Likewise.
4315         (raw_memory_xfer_partial): Likewise.
4316         (memory_xfer_partial_1, target_xfer_partial): Likewise.
4317         * valops.c (read_value_memory): Likewise.
4318         * exec.h: Update comments.
4319
4320 2014-02-24  Yao Qi  <yao@codesourcery.com>
4321
4322         * target.c (target_xfer_status_to_string): Rename argument err
4323         to status.
4324         * target.h (target_xfer_status_to_string): Update declaration.
4325         Replace target_xfer_error_to_string with
4326         target_xfer_status_to_string in comment.
4327
4328 2014-02-24  Yao Qi  <yao@codesourcery.com>
4329
4330         * mips-linux-nat.c (super_close): Update its type.
4331         (mips_linux_close): Pass 'self' to super_close.
4332
4333 2014-02-24  Yao Qi  <yao@codesourcery.com>
4334
4335         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4336         * corefile.c (read_memory): Adjusted.
4337         * target.c (target_write_with_progress): Adjusted.
4338
4339 2014-02-23  Yao Qi  <yao@codesourcery.com>
4340
4341         Revert two patches:
4342
4343         2013-10-25  Yao Qi  <yao@codesourcery.com>
4344
4345         * remote.c (remote_traceframe_info): Return early if
4346         traceframe is not selected.
4347
4348         2013-07-19  Yao Qi  <yao@codesourcery.com>
4349
4350         * target.c (update_current_target): Change the default action
4351         of 'to_traceframe_info' from tcomplain to return_zero.
4352         * target.h (struct target_ops) <to_traceframe_info>: Add more
4353         comments.
4354
4355 2014-02-23  Yao Qi  <yao@codesourcery.com>
4356
4357         * valops.c (read_value_memory): Rewrite it.  Call
4358         target_xfer_partial in a loop.
4359         * exec.h (section_table_available_memory): Remove declaration.
4360         Move comments to ...
4361         * exec.c (section_table_available_memory): ... here.  Make it
4362         static.
4363
4364 2014-02-23  Yao Qi  <yao@codesourcery.com>
4365
4366         * exec.c (section_table_read_available_memory): New function.
4367         * exec.h (section_table_read_available_memory): Declare.
4368         * ctf.c (ctf_xfer_partial): Call
4369         section_table_read_available_memory.
4370         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4371
4372 2014-02-23  Yao Qi  <yao@codesourcery.com>
4373
4374         * ctf.c (ctf_xfer_partial): Move code to ...
4375         * exec.c (exec_read_partial_read_only): ... it.  New function.
4376         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4377         * tracefile.c: Include "exec.h".
4378         * exec.h (exec_read_partial_read_only): Declare.
4379
4380 2014-02-23  Yao Qi  <yao@codesourcery.com>
4381
4382         * tracefile-tfile.c (tfile_has_all_memory): Remove.
4383         (tfile_has_memory): Remove.
4384         (init_tfile_ops): Don't set fields to_has_all_memory and
4385         to_has_memory of tfile_ops.
4386         * tracefile.c (tracefile_has_all_memory): New function.
4387         (tracefile_has_memory): New function.
4388         (init_tracefile_ops): Initialize fields to_has_all_memory and
4389         to_has_memory of 'ops'.
4390
4391 2014-02-23  Yao Qi  <yao@codesourcery.com>
4392
4393         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4394         (ctf_thread_alive, ctf_get_trace_status): Remove.
4395         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
4396         init_tracefile_ops.
4397         * tracefile-tfile.c (tfile_get_trace_status): Remove.
4398         (tfile_has_stack, tfile_has_registers): Remove.
4399         (tfile_thread_alive): Remove.
4400         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
4401         init_tracefile_ops.
4402         * tracefile.c (tracefile_has_stack): New function.
4403         (tracefile_has_registers): New function.
4404         (tracefile_thread_alive): New function.
4405         (tracefile_get_trace_status): New function.
4406         (init_tracefile_ops): New function.
4407         * tracefile.h (init_tracefile_ops): Declare.
4408
4409 2014-02-23  Yao Qi  <yao@codesourcery.com>
4410
4411         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4412         (O_LARGEFILE): Likewise.
4413         (tfile_ops): Likewise.
4414         (TRACE_HEADER_SIZE): Likewise.
4415         (trace_fd, trace_frames_offset, cur_offset): Likewise.
4416         (cur_data_size): Likewise.
4417         (tfile_read, tfile_open, tfile_interp_line): Likewise.
4418         (tfile_close, tfile_files_info): Likewise.
4419         (tfile_get_trace_status): Likewise.
4420         (tfile_get_tracepoint_status): Likewise.
4421         (tfile_get_traceframe_address): Likewise.
4422         (tfile_trace_find, match_blocktype): Likewise.
4423         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4424         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4425         (tfile_get_trace_state_variable_value): Likewise.
4426         (tfile_has_all_memory, tfile_has_memory): Likewise.
4427         (tfile_has_stack, tfile_has_registers): Likewise.
4428         (tfile_thread_alive, build_traceframe_info): Likewise.
4429         (tfile_traceframe_info, init_tfile_ops): Likewise.
4430         (_initialize_tracepoint): Don't call init_tfile_ops
4431         and add_target_with_completer.
4432         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4433         exec.h, completer.h and filenames.h.
4434         (_initialize_tracefile_tfile): New function.
4435
4436 2014-02-23  Yao Qi  <yao@codesourcery.com>
4437
4438         * Makefile.in (REMOTE_OBS): Append tracefile.o and
4439         tracefile-tfile.o.
4440         (HFILES_NO_SRCDIR): Add tracefile.h.
4441         * ctf.c: Include "tracefile.h".
4442         * tracefile.h: New file.
4443         * tracefile.c: New file
4444         * tracefile-tfile.c: New file.
4445         * tracepoint.c: Include "tracefile.h".
4446         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4447         (stop_reason_names): Add const.
4448         (trace_file_writer_xfree): Move it to tracefile.c.
4449         (trace_save, trace_save_command, trace_save_tfile): Likewise.
4450         (trace_save_ctf): Likewise.
4451         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4452         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4453         (tfile_write_header, tfile_write_regblock_type): Likewise.
4454         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4455         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4456         (tfile_write_raw_data, tfile_end): Likewise.
4457         (tfile_trace_file_writer_new): Likewise.
4458         (free_uploaded_tp): Make it extern.
4459         (free_uploaded_tsv): Make it extern.
4460         (_initialize_tracepoint): Move code to register command 'tsave'
4461         to tracefile.c.
4462         * tracepoint.h (stop_reason_names): Declare.
4463         (struct trace_frame_write_ops): Move it to tracefile.h.
4464         (struct trace_file_write_ops): Likewise.
4465         (struct trace_file_writer): Likewise.
4466         (free_uploaded_tsvs, free_uploaded_tps): Declare.
4467
4468 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4469
4470         PR gdb/16594
4471         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4472         process name.
4473         (get_cores_used_by_process): New parameter num_cores, use it.
4474         (linux_xfer_osdata_processes): Pass num_cores to it.
4475         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4476         process name.
4477
4478 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4479
4480         * target.c (memory_xfer_partial): Fix length arg in call to
4481         breakpoint_xfer_memory.
4482
4483 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
4484
4485         PR tdep/16397
4486         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4487         number comes after the + or - signs.  Adjust length of register
4488         name to be extracted.
4489
4490 2014-02-20  Tom Tromey  <tromey@redhat.com>
4491
4492         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4493         (ada_varobj_ops): Mark "extern".
4494
4495 2014-02-20  Tom Tromey  <tromey@redhat.com>
4496
4497         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4498
4499 2014-02-20  Doug Evans  <xdje42@gmail.com>
4500
4501         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4502         All callers updated.
4503         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4504         All callers updated.
4505         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4506         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4507
4508 2014-02-20  lin zuojian  <manjian2006@gmail.com>
4509             Joel Brobecker  <brobecker@adacore.com>
4510             Doug Evans  <xdje42@gmail.com>
4511
4512         PR symtab/16581
4513         * dwarf2read.c (struct die_info): New member in_process.
4514         (reset_die_in_process): New function.
4515         (process_die): Set it at the start, reset when returning.
4516         (inherit_abstract_dies): Only call process_die if origin_child_die
4517         not already being processed.
4518
4519 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4520
4521         * windows-nat.c (handle_unload_dll): Add function documentation.
4522         (do_initial_windows_stuff): Add comment explaining why we wait
4523         until after inferior initialization has finished before
4524         processing all DLLs.
4525
4526 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4527
4528         * windows-nat.c (get_module_name): Delete.
4529         (windows_get_exec_module_filename): New function, mostly
4530         inspired from get_module_name.
4531         (windows_pid_to_exec_file): Replace call to get_module_name
4532         by call to windows_get_exec_module_filename.
4533
4534 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4535
4536         * windows-nat.c (handle_load_dll): Rewrite this function's
4537         introductory comment.  Remove code using get_module_name
4538         to get the DLL's name.
4539
4540 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4541
4542         * windows-nat.c (get_windows_debug_event): Ignore
4543         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4544         if windows_initialization_done == 0.
4545         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4546         Adjust implementation to always load all DLLs.
4547         (do_initial_windows_stuff): Replace call to
4548         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4549
4550 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4551
4552         * windows-nat.c (_initialize_windows_nat): Deprecate the
4553         "dll-symbols" command.  Turn the "add-shared-symbol-files"
4554         and "assf" aliases into commands, and deprecate them as well.
4555         * NEWS: Add entry explaining that "dll-symbols" and its two
4556         aliases are now deprecated.
4557
4558 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
4559
4560         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4561         new-line in debug string.  Remove trailing spaces.
4562
4563 2014-02-19  Stan Shebs  <stan@codesourcery.com>
4564
4565         * darwin-nat.c (darwin_xfer_partial): Fix return type.
4566
4567 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
4568
4569         * NEWS: Add entry for the new feature
4570         * python/py-value.c (valpy_binop): Call value_x_binop for struct
4571         and class values.
4572
4573 2014-02-19  Stan Shebs  <stan@codesourcery.com>
4574
4575         * MAINTAINERS: List Yao Qi as nios2 maintainer.
4576
4577 2014-02-19  Pedro Alves  <palves@redhat.com>
4578
4579         * common/ptid.h (struct ptid): Mention that process_stratum
4580         targets should prefer ptid.lwp.
4581
4582 2014-02-19  Pedro Alves  <palves@redhat.com>
4583
4584         * remote.c (remote_thread_alive, write_ptid, read_ptid)
4585         (read_ptid, remote_newthread_step, remote_threads_extra_info)
4586         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4587         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4588         store remote thread ids rather than ptid.tid.
4589         (_initialize_remote): Adjust.
4590
4591 2014-02-19  Tom Tromey  <tromey@redhat.com>
4592
4593         * target.c (target_get_unwinder): Rewrite.
4594         (target_get_tailcall_unwinder): Rewrite.
4595         * record-btrace.c (record_btrace_to_get_unwinder): New function.
4596         (record_btrace_to_get_tailcall_unwinder): New function.
4597         (init_record_btrace_ops): Update.
4598         * target.h (struct target_ops) <to_get_unwinder,
4599         to_get_tailcall_unwinder>: Now function pointers.  Use
4600         TARGET_DEFAULT_RETURN.
4601
4602 2014-02-19  Tom Tromey  <tromey@redhat.com>
4603
4604         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4605         argument.
4606         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4607
4608 2014-02-19  Tom Tromey  <tromey@redhat.com>
4609
4610         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4611         directly.
4612         * target-delegates.c: Rebuild.
4613         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4614         TARGET_DEFAULT_FUNC.
4615         * target.c (default_target_decr_pc_after_break): Rename from
4616         forward_target_decr_pc_after_break.  Simplify.
4617         (target_decr_pc_after_break): Rely on delegation.
4618
4619 2014-02-19  Tom Tromey  <tromey@redhat.com>
4620
4621         * target.c (update_current_target): Do not INHERIT to_doc or
4622         to_magic.  Do not de_fault to_open or to_close.
4623
4624 2014-02-19  Tom Tromey  <tromey@redhat.com>
4625
4626         * gcore.h (objfile_find_memory_regions): Declare.
4627         * gcore.c (objfile_find_memory_regions): No longer static.  Add
4628         "self" argument.
4629         (_initialize_gcore): Don't call exec_set_find_memory_regions.
4630         * exec.c: Include gcore.h.
4631         (exec_set_find_memory_regions): Remove.
4632         (exec_find_memory_regions): Remove.
4633         (exec_do_find_memory_regions): Remove.
4634         (init_exec_ops): Update.
4635         * defs.h (exec_set_find_memory_regions): Remove.
4636
4637 2014-02-19  Tom Tromey  <tromey@redhat.com>
4638
4639         * target-delegates.c: Rebuild.
4640         * target.h (struct target_ops) <to_extra_thread_info,
4641         to_thread_name, to_pid_to_exec_file, to_get_section_table,
4642         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4643         not 0, in TARGET_DEFAULT_RETURN.
4644
4645 2014-02-19  Tom Tromey  <tromey@redhat.com>
4646
4647         * target.c (complete_target_initialization): Remove casts.  Use
4648         return_zero_has_execution.
4649         (return_zero): Add "ignore" argument.
4650         (return_zero_has_execution): New function.
4651         (init_dummy_target): Remove casts.  Use
4652         return_zero_has_execution.
4653
4654 2014-02-19  Tom Tromey  <tromey@redhat.com>
4655
4656         * target.c (update_current_target): Update comments.  Do not
4657         INHERIT to_stratum.
4658
4659 2014-02-19  Tom Tromey  <tromey@redhat.com>
4660
4661         * arm-linux-nat.c (arm_linux_read_description): Delegate when
4662         needed.
4663         * corelow.c (core_read_description): Delegate when needed.
4664         * remote.c (remote_read_description): Delegate when needed.
4665         * target-delegates.c: Rebuild.
4666         * target.c (target_read_description): Rewrite.
4667         * target.h (struct target_ops) <to_read_description>: Update
4668         comment.  Use TARGET_DEFAULT_RETURN.
4669
4670 2014-02-19  Tom Tromey  <tromey@redhat.com>
4671
4672         * target-delegates.c: Rebuild.
4673         * target.c (update_current_target): Don't inherit or default
4674         to_can_run.
4675         (find_default_run_target): Check against delegate_can_run.
4676         * target.h (struct target_ops) <to_can_run>: Use
4677         TARGET_DEFAULT_RETURN.
4678
4679 2014-02-19  Tom Tromey  <tromey@redhat.com>
4680
4681         * target-delegates.c: Rebuild.
4682         * target.c (target_disconnect): Unconditionally delegate.
4683         * target.h (struct target_ops) <to_disconnect>: Use
4684         TARGET_DEFAULT_NORETURN.
4685
4686 2014-02-19  Tom Tromey  <tromey@redhat.com>
4687
4688         * record.c (record_stop): Unconditionally delegate.
4689         * target-delegates.c: Rebuild.
4690         * target.c (target_stop_recording): Unconditionally delegate.
4691         * target.h (struct target_ops) <to_stop_recording>: Use
4692         TARGET_DEFAULT_IGNORE.
4693
4694 2014-02-19  Tom Tromey  <tromey@redhat.com>
4695
4696         * target-delegates.c: Rebuild.
4697         * target.c (target_enable_btrace): Unconditionally delegate.
4698         * target.h (struct target_ops) <to_enable_btrace>: Use
4699         TARGET_DEFAULT_NORETURN.
4700
4701 2014-02-19  Tom Tromey  <tromey@redhat.com>
4702
4703         * target-delegates.c: Rebuild.
4704         * target.c (target_read_btrace): Unconditionally delegate.
4705         * target.h (struct target_ops) <to_read_btrace>: Use
4706         TARGET_DEFAULT_NORETURN.
4707
4708 2014-02-19  Tom Tromey  <tromey@redhat.com>
4709
4710         * target-delegates.c: Rebuild.
4711         * target.c (target_teardown_btrace): Unconditionally delegate.
4712         * target.h (struct target_ops) <to_teardown_btrace>: Use
4713         TARGET_DEFAULT_NORETURN.
4714
4715 2014-02-19  Tom Tromey  <tromey@redhat.com>
4716
4717         * target-delegates.c: Rebuild.
4718         * target.c (target_disable_btrace): Unconditionally delegate.
4719         * target.h (struct target_ops) <to_disable_btrace>: Use
4720         TARGET_DEFAULT_NORETURN.
4721
4722 2014-02-19  Tom Tromey  <tromey@redhat.com>
4723
4724         * target-delegates.c: Rebuild.
4725         * target.c (default_search_memory): New function.
4726         (simple_search_memory): Update comment.
4727         (target_search_memory): Unconditionally delegate.
4728         * target.h (struct target_ops) <to_search_memory>: Use
4729         TARGET_DEFAULT_FUNC.
4730
4731 2014-02-19  Tom Tromey  <tromey@redhat.com>
4732
4733         * auxv.c (default_auxv_parse): No longer static.
4734         (target_auxv_parse): Unconditionally delegate.
4735         * auxv.h (default_auxv_parse): Declare.
4736         * target-delegates.c: Rebuild.
4737         * target.c: Include auxv.h.
4738         * target.h (struct target_ops) <to_auxv_parse>: Use
4739         TARGET_DEFAULT_FUNC.
4740
4741 2014-02-19  Tom Tromey  <tromey@redhat.com>
4742
4743         * target-delegates.c: Rebuild.
4744         * target.c (target_memory_map): Unconditionally delegate.
4745         * target.h (struct target_ops) <to_memory_map>: Use
4746         TARGET_DEFAULT_RETURN.
4747
4748 2014-02-19  Tom Tromey  <tromey@redhat.com>
4749
4750         * target-delegates.c: Rebuild.
4751         * target.c (target_thread_alive): Unconditionally delegate.
4752         * target.h (struct target_ops) <to_thread_alive>: Use
4753         TARGET_DEFAULT_RETURN.
4754
4755 2014-02-19  Tom Tromey  <tromey@redhat.com>
4756
4757         * target-delegates.c: Rebuild.
4758         * target.c (target_save_record): Unconditionally delegate.
4759         * target.h (struct target_ops) <to_save_record>: Use
4760         TARGET_DEFAULT_NORETURN.
4761
4762 2014-02-19  Tom Tromey  <tromey@redhat.com>
4763
4764         * target-delegates.c: Rebuild.
4765         * target.c (target_delete_record): Unconditionally delegate.
4766         * target.h (struct target_ops) <to_delete_record>: Use
4767         TARGET_DEFAULT_NORETURN.
4768
4769 2014-02-19  Tom Tromey  <tromey@redhat.com>
4770
4771         * target-delegates.c: Rebuild.
4772         * target.c (target_record_is_replaying): Unconditionally
4773         delegate.
4774         * target.h (struct target_ops) <to_record_is_replaying>: Use
4775         TARGET_DEFAULT_RETURN.
4776
4777 2014-02-19  Tom Tromey  <tromey@redhat.com>
4778
4779         * target-delegates.c: Rebuild.
4780         * target.c (target_goto_record_begin): Unconditionally delegate.
4781         * target.h (struct target_ops) <to_goto_record_begin>: Use
4782         TARGET_DEFAULT_NORETURN.
4783
4784 2014-02-19  Tom Tromey  <tromey@redhat.com>
4785
4786         * target-delegates.c: Rebuild.
4787         * target.c (target_goto_record_end): Unconditionally delegate.
4788         * target.h (struct target_ops) <to_goto_record_end>: Use
4789         TARGET_DEFAULT_NORETURN.
4790
4791 2014-02-19  Tom Tromey  <tromey@redhat.com>
4792
4793         * target-delegates.c: Rebuild.
4794         * target.c (target_goto_record): Unconditionally delegate.
4795         * target.h (struct target_ops) <to_goto_record>: Use
4796         TARGET_DEFAULT_NORETURN.
4797
4798 2014-02-19  Tom Tromey  <tromey@redhat.com>
4799
4800         * target-delegates.c: Rebuild.
4801         * target.c (target_insn_history): Unconditionally delegate.
4802         * target.h (struct target_ops) <to_insn_history>: Use
4803         TARGET_DEFAULT_NORETURN.
4804
4805 2014-02-19  Tom Tromey  <tromey@redhat.com>
4806
4807         * target-delegates.c: Rebuild.
4808         * target.c (target_insn_history_from): Unconditionally delegate.
4809         * target.h (struct target_ops) <to_insn_history_from>: Use
4810         TARGET_DEFAULT_NORETURN.
4811
4812 2014-02-19  Tom Tromey  <tromey@redhat.com>
4813
4814         * target-delegates.c: Rebuild.
4815         * target.c (target_insn_history_range): Unconditionally delegate.
4816         * target.h (struct target_ops) <to_insn_history_range>: Use
4817         TARGET_DEFAULT_NORETURN.
4818
4819 2014-02-19  Tom Tromey  <tromey@redhat.com>
4820
4821         * target-delegates.c: Rebuild.
4822         * target.c (target_call_history): Unconditionally delegate.
4823         * target.h (struct target_ops) <to_call_history>: Use
4824         TARGET_DEFAULT_NORETURN.
4825
4826 2014-02-19  Tom Tromey  <tromey@redhat.com>
4827
4828         * target-delegates.c: Rebuild.
4829         * target.c (target_call_history_from): Unconditionally delegate.
4830         * target.h (struct target_ops) <to_call_history_from>: Use
4831         TARGET_DEFAULT_NORETURN.
4832
4833 2014-02-19  Tom Tromey  <tromey@redhat.com>
4834
4835         * target-delegates.c: Rebuild.
4836         * target.c (target_call_history_range): Unconditionally delegate.
4837         * target.h (struct target_ops) <to_call_history_range>: Use
4838         TARGET_DEFAULT_NORETURN.
4839
4840 2014-02-19  Tom Tromey  <tromey@redhat.com>
4841
4842         * target-delegates.c: Rebuild.
4843         * target.c (target_verify_memory): Unconditionally delegate.
4844         * target.h (struct target_ops) <to_verify_memory>: Use
4845         TARGET_DEFAULT_NORETURN.
4846
4847 2014-02-19  Tom Tromey  <tromey@redhat.com>
4848
4849         * target-delegates.c: Rebuild.
4850         * target.c (target_core_of_thread): Unconditionally delegate.
4851         * target.h (struct target_ops) <to_core_of_thread>: Use
4852         TARGET_DEFAULT_RETURN.
4853
4854 2014-02-19  Tom Tromey  <tromey@redhat.com>
4855
4856         * target-delegates.c: Rebuild.
4857         * target.c (target_flash_done): Unconditionally delegate.
4858         * target.h (struct target_ops) <to_flash_done>: Use
4859         TARGET_DEFAULT_NORETURN.
4860
4861 2014-02-19  Tom Tromey  <tromey@redhat.com>
4862
4863         * target-delegates.c: Rebuild.
4864         * target.c (target_flash_erase): Unconditionally delegate.
4865         * target.h (struct target_ops) <to_flash_erase>: Use
4866         TARGET_DEFAULT_NORETURN.
4867
4868 2014-02-19  Tom Tromey  <tromey@redhat.com>
4869
4870         * target-delegates.c: Rebuild.
4871         * target.c (target_get_section_table): Unconditionally delegate.
4872         * target.h (struct target_ops) <to_get_section_table>: Use
4873         TARGET_DEFAULT_RETURN.
4874
4875 2014-02-19  Tom Tromey  <tromey@redhat.com>
4876
4877         * target-delegates.c: Rebuild.
4878         * target.c (target_pid_to_str): Unconditionally delegate.
4879         (init_dummy_target): Don't initialize to_pid_to_str.
4880         (default_pid_to_str): Rename from dummy_pid_to_str.
4881         * target.h (struct target_ops) <to_pid_to_str>: Use
4882         TARGET_DEFAULT_FUNC.
4883
4884 2014-02-19  Tom Tromey  <tromey@redhat.com>
4885
4886         * target-delegates.c: Rebuild.
4887         * target.c (target_find_new_threads): Unconditionally delegate.
4888         * target.h (struct target_ops) <to_find_new_threads>: Use
4889         TARGET_DEFAULT_RETURN.
4890
4891 2014-02-19  Tom Tromey  <tromey@redhat.com>
4892
4893         * target-delegates.c: Rebuild.
4894         * target.c (target_program_signals): Unconditionally delegate.
4895         * target.h (struct target_ops) <to_program_signals>: Use
4896         TARGET_DEFAULT_IGNORE.
4897
4898 2014-02-19  Tom Tromey  <tromey@redhat.com>
4899
4900         * target-delegates.c: Rebuild.
4901         * target.c (target_pass_signals): Unconditionally delegate.
4902         * target.h (struct target_ops) <to_pass_signals>: Use
4903         TARGET_DEFAULT_IGNORE.
4904
4905 2014-02-19  Tom Tromey  <tromey@redhat.com>
4906
4907         * target-delegates.c: Rebuild.
4908         * target.c (default_mourn_inferior): New function.
4909         (target_mourn_inferior): Unconditionally delegate.
4910         * target.h (struct target_ops) <to_mourn_inferior>: Use
4911         TARGET_DEFAULT_FUNC.
4912
4913 2014-02-19  Tom Tromey  <tromey@redhat.com>
4914
4915         * target-delegates.c: Rebuild.
4916         * target.c (default_follow_fork): New function.
4917         (target_follow_fork): Unconditionally delegate.
4918         * target.h (struct target_ops) <to_follow_fork>: Use
4919         TARGET_DEFAULT_FUNC.
4920
4921 2014-02-19  Tom Tromey  <tromey@redhat.com>
4922
4923         * target-delegates.c: Rebuild.
4924         * target.c (target_kill): Unconditionally delegate.
4925         * target.h (struct target_ops) <to_kill>: Use
4926         TARGET_DEFAULT_NORETURN.
4927
4928 2014-02-19  Tom Tromey  <tromey@redhat.com>
4929
4930         * target-delegates.c: Rebuild.
4931         * target.c (target_masked_watch_num_registers): Unconditionally
4932         delegate.
4933         * target.h (struct target_ops) <to_masked_watch_num_registers>:
4934         Use TARGET_DEFAULT_RETURN.
4935
4936 2014-02-19  Tom Tromey  <tromey@redhat.com>
4937
4938         * target-delegates.c: Rebuild.
4939         * target.c (target_remove_mask_watchpoint): Unconditionally
4940         delegate.
4941         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4942         TARGET_DEFAULT_RETURN.
4943
4944 2014-02-19  Tom Tromey  <tromey@redhat.com>
4945
4946         * target-delegates.c: Rebuild.
4947         * target.c (target_insert_mask_watchpoint): Unconditionally
4948         delegate.
4949         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4950         TARGET_DEFAULT_RETURN.
4951
4952 2014-02-19  Tom Tromey  <tromey@redhat.com>
4953
4954         * target-delegates.c: Rebuild.
4955         * target.c (target_ranged_break_num_registers): Unconditionally
4956         delegate.
4957         * target.h (struct target_ops) <to_ranged_break_num_registers>:
4958         Use TARGET_DEFAULT_RETURN.
4959
4960 2014-02-19  Tom Tromey  <tromey@redhat.com>
4961
4962         * target-delegates.c: Rebuild.
4963         * target.c (target_fetch_registers): Unconditionally delegate.
4964         * target.h (struct target_ops) <to_fetch_registers>: Use
4965         TARGET_DEFAULT_NORETURN.
4966
4967 2014-02-19  Tom Tromey  <tromey@redhat.com>
4968
4969         * target-delegates.c: Rebuild.
4970         * target.c (update_current_target): Don't inherit or default
4971         to_stop.
4972         * target.h (struct target_ops) <to_stop>: Use
4973         TARGET_DEFAULT_IGNORE.
4974
4975 2014-02-19  Tom Tromey  <tromey@redhat.com>
4976
4977         * target-delegates.c: Rebuild.
4978         * target.c (update_current_target): Don't inherit or default
4979         to_can_run_breakpoint_commands.
4980         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4981         Use TARGET_DEFAULT_RETURN.
4982
4983 2014-02-19  Tom Tromey  <tromey@redhat.com>
4984
4985         * target-delegates.c: Rebuild.
4986         * target.c (update_current_target): Don't inherit or default
4987         to_supports_evaluation_of_breakpoint_conditions.
4988         * target.h (struct target_ops)
4989         <to_supports_evaluation_of_breakpoint_conditions>: Use
4990         TARGET_DEFAULT_RETURN.
4991
4992 2014-02-19  Tom Tromey  <tromey@redhat.com>
4993
4994         * target-delegates.c: Rebuild.
4995         * target.c (update_current_target): Don't inherit or default
4996         to_augmented_libraries_svr4_read.
4997         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4998         Use TARGET_DEFAULT_RETURN.
4999
5000 2014-02-19  Tom Tromey  <tromey@redhat.com>
5001
5002         * target-delegates.c: Rebuild.
5003         * target.c (update_current_target): Don't inherit or default
5004         to_can_use_agent.
5005         * target.h (struct target_ops) <to_can_use_agent>: Use
5006         TARGET_DEFAULT_RETURN.
5007
5008 2014-02-19  Tom Tromey  <tromey@redhat.com>
5009
5010         * target-delegates.c: Rebuild.
5011         * target.c (update_current_target): Don't inherit or default
5012         to_use_agent.
5013         * target.h (struct target_ops) <to_use_agent>: Use
5014         TARGET_DEFAULT_NORETURN.
5015
5016 2014-02-19  Tom Tromey  <tromey@redhat.com>
5017
5018         * target-delegates.c: Rebuild.
5019         * target.c (update_current_target): Don't inherit or default
5020         to_traceframe_info.
5021         (return_null): Remove.
5022         * target.h (struct target_ops) <to_traceframe_info>: Use
5023         TARGET_DEFAULT_RETURN.
5024
5025 2014-02-19  Tom Tromey  <tromey@redhat.com>
5026
5027         * target-delegates.c: Rebuild.
5028         * target.c (update_current_target): Don't inherit or default
5029         to_static_tracepoint_markers_by_strid.
5030         * target.h (struct target_ops)
5031         <to_static_tracepoint_markers_by_strid>: Use
5032         TARGET_DEFAULT_NORETURN.
5033
5034 2014-02-19  Tom Tromey  <tromey@redhat.com>
5035
5036         * target-delegates.c: Rebuild.
5037         * target.c (update_current_target): Don't inherit or default
5038         to_static_tracepoint_marker_at.
5039         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5040         Use TARGET_DEFAULT_RETURN.
5041
5042 2014-02-19  Tom Tromey  <tromey@redhat.com>
5043
5044         * target-delegates.c: Rebuild.
5045         * target.c (update_current_target): Don't inherit or default
5046         to_set_permissions.
5047         * target.h (struct target_ops) <to_set_permissions>: Use
5048         TARGET_DEFAULT_IGNORE.
5049
5050 2014-02-19  Tom Tromey  <tromey@redhat.com>
5051
5052         * target-delegates.c: Rebuild.
5053         * target.c (update_current_target): Don't inherit or default
5054         to_get_tib_address.
5055         * target.h (struct target_ops) <to_get_tib_address>: Use
5056         TARGET_DEFAULT_NORETURN.
5057
5058 2014-02-19  Tom Tromey  <tromey@redhat.com>
5059
5060         * target-delegates.c: Rebuild.
5061         * target.c (update_current_target): Don't inherit or default
5062         to_set_trace_notes.
5063         * target.h (struct target_ops) <to_set_trace_notes>: Use
5064         TARGET_DEFAULT_RETURN.
5065
5066 2014-02-19  Tom Tromey  <tromey@redhat.com>
5067
5068         * target-delegates.c: Rebuild.
5069         * target.c (update_current_target): Don't initialize
5070         to_set_trace_buffer_size.
5071         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5072         TARGET_DEFAULT_IGNORE.
5073
5074 2014-02-19  Tom Tromey  <tromey@redhat.com>
5075
5076         * target-delegates.c: Rebuild.
5077         * target.c (update_current_target): Don't inherit or default
5078         to_set_circular_trace_buffer.
5079         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5080         TARGET_DEFAULT_IGNORE.
5081
5082 2014-02-19  Tom Tromey  <tromey@redhat.com>
5083
5084         * target-delegates.c: Rebuild.
5085         * target.c (update_current_target): Don't inherit or default
5086         to_set_disconnected_tracing.
5087         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5088         TARGET_DEFAULT_IGNORE.
5089
5090 2014-02-19  Tom Tromey  <tromey@redhat.com>
5091
5092         * target-delegates.c: Rebuild.
5093         * target.c (update_current_target): Don't inherit or default
5094         to_get_min_fast_tracepoint_insn_len.
5095         (return_minus_one): Remove.
5096         * target.h (struct target_ops)
5097         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5098
5099 2014-02-19  Tom Tromey  <tromey@redhat.com>
5100
5101         * target-delegates.c: Rebuild.
5102         * target.c (update_current_target): Don't inherit or default
5103         to_get_raw_trace_data.
5104         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5105         TARGET_DEFAULT_NORETURN.
5106
5107 2014-02-19  Tom Tromey  <tromey@redhat.com>
5108
5109         * target-delegates.c: Rebuild.
5110         * target.c (update_current_target): Don't inherit or default
5111         to_upload_trace_state_variables.
5112         * target.h (struct target_ops) <to_upload_trace_state_variables>:
5113         Use TARGET_DEFAULT_RETURN.
5114
5115 2014-02-19  Tom Tromey  <tromey@redhat.com>
5116
5117         * target-delegates.c: Rebuild.
5118         * target.c (update_current_target): Don't inherit or default
5119         to_upload_tracepoints.
5120         * target.h (struct target_ops) <to_upload_tracepoints>: Use
5121         TARGET_DEFAULT_RETURN.
5122
5123 2014-02-19  Tom Tromey  <tromey@redhat.com>
5124
5125         * target-delegates.c: Rebuild.
5126         * target.c (update_current_target): Don't inherit or default
5127         to_save_trace_data.
5128         * target.h (struct target_ops) <to_save_trace_data>: Use
5129         TARGET_DEFAULT_NORETURN.
5130
5131 2014-02-19  Tom Tromey  <tromey@redhat.com>
5132
5133         * target-delegates.c: Rebuild.
5134         * target.c (update_current_target): Don't inherit or default
5135         to_get_trace_state_variable_value.
5136         * target.h (struct target_ops)
5137         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5138
5139 2014-02-19  Tom Tromey  <tromey@redhat.com>
5140
5141         * target-delegates.c: Rebuild.
5142         * target.c (update_current_target): Don't inherit or default
5143         to_trace_find.
5144         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5145
5146 2014-02-19  Tom Tromey  <tromey@redhat.com>
5147
5148         * target-delegates.c: Rebuild.
5149         * target.c (update_current_target): Don't inherit or default
5150         to_trace_stop.
5151         * target.h (struct target_ops) <to_trace_stop>: Use
5152         TARGET_DEFAULT_NORETURN.
5153
5154 2014-02-19  Tom Tromey  <tromey@redhat.com>
5155
5156         * target-delegates.c: Rebuild.
5157         * target.c (update_current_target): Don't inherit or default
5158         to_get_tracepoint_status.
5159         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5160         TARGET_DEFAULT_NORETURN.
5161
5162 2014-02-19  Tom Tromey  <tromey@redhat.com>
5163
5164         * target-delegates.c: Rebuild.
5165         * target.c (update_current_target): Don't inherit or default
5166         to_get_trace_status.
5167         * target.h (struct target_ops) <to_get_trace_status>: Use
5168         TARGET_DEFAULT_RETURN.
5169
5170 2014-02-19  Tom Tromey  <tromey@redhat.com>
5171
5172         * target-delegates.c: Rebuild.
5173         * target.c (update_current_target): Don't inherit or default
5174         to_trace_start.
5175         * target.h (struct target_ops) <to_trace_start>: Use
5176         TARGET_DEFAULT_NORETURN.
5177
5178 2014-02-19  Tom Tromey  <tromey@redhat.com>
5179
5180         * target-delegates.c: Rebuild.
5181         * target.c (update_current_target): Don't inherit or default
5182         to_trace_set_readonly_regions.
5183         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5184         Use TARGET_DEFAULT_NORETURN.
5185
5186 2014-02-19  Tom Tromey  <tromey@redhat.com>
5187
5188         * target-delegates.c: Rebuild.
5189         * target.c (update_current_target): Don't inherit or default
5190         to_disable_tracepoint.
5191         * target.h (struct target_ops) <to_disable_tracepoint>: Use
5192         TARGET_DEFAULT_NORETURN.
5193
5194 2014-02-19  Tom Tromey  <tromey@redhat.com>
5195
5196         * target-delegates.c: Rebuild.
5197         * target.c (update_current_target): Don't inherit or default
5198         to_enable_tracepoint.
5199         * target.h (struct target_ops) <to_enable_tracepoint>: Use
5200         TARGET_DEFAULT_NORETURN.
5201
5202 2014-02-19  Tom Tromey  <tromey@redhat.com>
5203
5204         * target-delegates.c: Rebuild.
5205         * target.c (update_current_target): Don't inherit or default
5206         to_download_trace_state_variable.
5207         * target.h (struct target_ops) <to_download_trace_state_variable>:
5208         Use TARGET_DEFAULT_NORETURN.
5209
5210 2014-02-19  Tom Tromey  <tromey@redhat.com>
5211
5212         * target-delegates.c: Rebuild.
5213         * target.c (update_current_target): Don't inherit or default
5214         to_can_download_tracepoint.
5215         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5216         TARGET_DEFAULT_RETURN.
5217
5218 2014-02-19  Tom Tromey  <tromey@redhat.com>
5219
5220         * target-delegates.c: Rebuild.
5221         * target.c (update_current_target): Don't inherit or default
5222         to_download_tracepoint.
5223         * target.h (struct target_ops) <to_download_tracepoint>: Use
5224         TARGET_DEFAULT_NORETURN.
5225
5226 2014-02-19  Tom Tromey  <tromey@redhat.com>
5227
5228         * target-delegates.c: Rebuild.
5229         * target.c (update_current_target): Don't inherit or default
5230         to_trace_init.
5231         * target.h (struct target_ops) <to_trace_init>: Use
5232         TARGET_DEFAULT_RETURN.
5233
5234 2014-02-19  Tom Tromey  <tromey@redhat.com>
5235
5236         * target-delegates.c: Rebuild.
5237         * target.c (update_current_target): Don't inherit or default
5238         to_supports_string_tracing.
5239         * target.h (struct target_ops) <to_supports_string_tracing>: Use
5240         TARGET_DEFAULT_RETURN.
5241
5242 2014-02-19  Tom Tromey  <tromey@redhat.com>
5243
5244         * target-delegates.c: Rebuild.
5245         * target.c (update_current_target): Don't inherit or default
5246         to_supports_enable_disable_tracepoint.
5247         * target.h (struct target_ops)
5248         <to_supports_enable_disable_tracepoint>: Use
5249         TARGET_DEFAULT_RETURN.
5250
5251 2014-02-19  Tom Tromey  <tromey@redhat.com>
5252
5253         * target-delegates.c: Rebuild.
5254         * target.c (update_current_target): Don't inherit or default
5255         to_supports_multi_process.
5256         * target.h (struct target_ops) <to_supports_multi_process>: Use
5257         TARGET_DEFAULT_RETURN.
5258
5259 2014-02-19  Tom Tromey  <tromey@redhat.com>
5260
5261         * target-delegates.c: Rebuild.
5262         * target.c (update_current_target): Don't inherit or default
5263         to_get_ada_task_ptid.
5264         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5265         TARGET_DEFAULT_FUNC.
5266
5267 2014-02-19  Tom Tromey  <tromey@redhat.com>
5268
5269         * target-delegates.c: Rebuild.
5270         * target.c (update_current_target): Don't inherit or default
5271         to_thread_architecture.
5272         * target.h (struct target_ops) <to_thread_architecture>: Use
5273         TARGET_DEFAULT_FUNC.
5274
5275 2014-02-19  Tom Tromey  <tromey@redhat.com>
5276
5277         * target-delegates.c: Rebuild.
5278         * target.c (update_current_target): Don't inherit or default
5279         to_execution_direction.
5280         * target.h (struct target_ops) <to_execution_direction>: Use
5281         TARGET_DEFAULT_FUNC.
5282
5283 2014-02-19  Tom Tromey  <tromey@redhat.com>
5284
5285         * target-delegates.c: Rebuild.
5286         * target.c (update_current_target): Don't inherit or default
5287         to_can_execute_reverse.
5288         * target.h (struct target_ops) <to_can_execute_reverse>: Use
5289         TARGET_DEFAULT_RETURN.
5290         (target_can_execute_reverse): Unconditionally delegate.
5291
5292 2014-02-19  Tom Tromey  <tromey@redhat.com>
5293
5294         * target-delegates.c: Rebuild.
5295         * target.c (update_current_target): Don't inherit or default
5296         to_goto_bookmark.
5297         (dummy_goto_bookmark): Remove.
5298         (init_dummy_target): Don't inherit or default to_goto_bookmark.
5299         * target.h (struct target_ops) <to_goto_bookmark>: Use
5300         TARGET_DEFAULT_NORETURN.
5301
5302 2014-02-19  Tom Tromey  <tromey@redhat.com>
5303
5304         * target-delegates.c: Rebuild.
5305         * target.c (update_current_target): Don't inherit or default
5306         to_get_bookmark.
5307         (dummy_get_bookmark): Remove.
5308         (init_dummy_target): Don't inherit or default to_get_bookmark.
5309         * target.h (struct target_ops) <to_get_bookmark>: Use
5310         TARGET_DEFAULT_NORETURN
5311
5312 2014-02-19  Tom Tromey  <tromey@redhat.com>
5313
5314         * target-delegates.c: Rebuild.
5315         * target.c (update_current_target): Don't inherit or default
5316         to_make_corefile_notes.
5317         (init_dummy_target): Don't initialize to_make_corefile_notes.
5318         * target.h (struct target_ops) <to_make_corefile_notes>: Use
5319         TARGET_DEFAULT_FUNC.
5320
5321 2014-02-19  Tom Tromey  <tromey@redhat.com>
5322
5323         * target-delegates.c: Rebuild.
5324         * target.c (update_current_target): Don't inherit or default
5325         to_find_memory_regions.
5326         (init_dummy_target): Don't initialize to_find_memory_regions.
5327         * target.h (struct target_ops) <to_find_memory_regions>: Use
5328         TARGET_DEFAULT_FUNC.
5329
5330 2014-02-19  Tom Tromey  <tromey@redhat.com>
5331
5332         * target-delegates.c: Rebuild.
5333         * target.c (update_current_target): Don't inherit or default
5334         to_log_command.
5335         * target.h (struct target_ops) <to_log_command>: Use
5336         TARGET_DEFAULT_IGNORE.
5337         (target_log_command): Unconditionally delegate.
5338
5339 2014-02-19  Tom Tromey  <tromey@redhat.com>
5340
5341         * target-delegates.c: Rebuild.
5342         * target.c (update_current_target): Don't inherit or default
5343         to_pid_to_exec_file.
5344         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5345         TARGET_DEFAULT_RETURN.
5346
5347 2014-02-19  Tom Tromey  <tromey@redhat.com>
5348
5349         * target-delegates.c: Rebuild.
5350         * target.c (update_current_target): Don't inherit or default
5351         to_thread_name.
5352         (target_thread_name): Unconditionally delegate.
5353         * target.h (struct target_ops) <to_thread_name>: Use
5354         TARGET_DEFAULT_RETURN.
5355
5356 2014-02-19  Tom Tromey  <tromey@redhat.com>
5357
5358         * target-delegates.c: Rebuild.
5359         * target.c (update_current_target): Don't inherit or default
5360         to_extra_thread_info.
5361         * target.h (struct target_ops) <to_extra_thread_info>: Use
5362         TARGET_DEFAULT_RETURN.
5363
5364 2014-02-19  Tom Tromey  <tromey@redhat.com>
5365
5366         * target-delegates.c: Rebuild.
5367         * target.c (update_current_target): Don't inherit or default
5368         to_has_exited.
5369         * target.h (struct target_ops) <to_has_exited>: Use
5370         TARGET_DEFAULT_RETURN..
5371
5372 2014-02-19  Tom Tromey  <tromey@redhat.com>
5373
5374         * target-delegates.c: Rebuild.
5375         * target.c (update_current_target): Don't inherit or default
5376         to_set_syscall_catchpoint.
5377         (return_one): Remove.
5378         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5379         TARGET_DEFAULT_RETURN.
5380
5381 2014-02-19  Tom Tromey  <tromey@redhat.com>
5382
5383         * target-delegates.c: Rebuild.
5384         * target.c (update_current_target): Don't inherit or default
5385         to_insert_exec_catchpoint.
5386         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5387         TARGET_DEFAULT_RETURN.
5388
5389 2014-01-08  Tom Tromey  <tromey@redhat.com>
5390
5391         * target-delegates.c: Rebuild.
5392         * target.c (update_current_target): Don't inherit or default
5393         to_insert_exec_catchpoint.
5394         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5395         TARGET_DEFAULT_RETURN.
5396
5397 2014-02-19  Tom Tromey  <tromey@redhat.com>
5398
5399         * target-delegates.c: Rebuild.
5400         * target.c (update_current_target): Don't inherit or default
5401         to_remove_vfork_catchpoint.
5402         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5403         TARGET_DEFAULT_RETURN.
5404
5405 2014-02-19  Tom Tromey  <tromey@redhat.com>
5406
5407         * target-delegates.c: Rebuild.
5408         * target.c (update_current_target): Don't inherit or default
5409         to_insert_vfork_catchpoint.
5410         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5411         TARGET_DEFAULT_RETURN.
5412
5413 2014-02-19  Tom Tromey  <tromey@redhat.com>
5414
5415         * target-delegates.c: Rebuild.
5416         * target.c (update_current_target): Don't inherit or default
5417         to_remove_fork_catchpoint.
5418         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5419         TARGET_DEFAULT_RETURN.
5420
5421 2014-02-19  Tom Tromey  <tromey@redhat.com>
5422
5423         * target-delegates.c: Rebuild.
5424         * target.c (update_current_target): Don't inherit or default
5425         to_insert_fork_catchpoint.
5426         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5427         TARGET_DEFAULT_RETURN.
5428
5429 2014-02-19  Tom Tromey  <tromey@redhat.com>
5430
5431         * target-delegates.c: Rebuild.
5432         * target.c (update_current_target): Don't inherit or default
5433         to_post_startup_inferior.
5434         * target.h (struct target_ops) <to_post_startup_inferior>: Use
5435         TARGET_DEFAULT_IGNORE.
5436
5437 2014-02-19  Tom Tromey  <tromey@redhat.com>
5438
5439         * target-delegates.c: Rebuild.
5440         * target.c (update_current_target): Don't inherit or default
5441         to_load.
5442         * target.h (struct target_ops) <to_load>: Use
5443         TARGET_DEFAULT_NORETURN.
5444
5445 2014-02-19  Tom Tromey  <tromey@redhat.com>
5446
5447         * target-delegates.c: Rebuild.
5448         * target.c (update_current_target): Don't inherit or default
5449         to_terminal_info.
5450         * target.h (struct target_ops) <to_terminal_info>: Use
5451         TARGET_DEFAULT_FUNC.
5452
5453 2014-02-19  Tom Tromey  <tromey@redhat.com>
5454
5455         * target-delegates.c: Rebuild.
5456         * target.c (update_current_target): Don't inherit or default
5457         to_terminal_save_ours.
5458         * target.h (struct target_ops) <to_terminal_save_ours>: Use
5459         TARGET_DEFAULT_IGNORE.
5460
5461 2014-02-19  Tom Tromey  <tromey@redhat.com>
5462
5463         * target-delegates.c: Rebuild.
5464         * target.c (update_current_target): Don't inherit or default
5465         to_terminal_ours.
5466         * target.h (struct target_ops) <to_terminal_ours>: Use
5467         TARGET_DEFAULT_IGNORE.
5468
5469 2014-02-19  Tom Tromey  <tromey@redhat.com>
5470
5471         * target-delegates.c: Rebuild.
5472         * target.c (update_current_target): Don't inherit or default
5473         to_terminal_ours_for_output.
5474         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5475         TARGET_DEFAULT_IGNORE.
5476
5477 2014-02-19  Tom Tromey  <tromey@redhat.com>
5478
5479         * target-delegates.c: Rebuild.
5480         * target.c (update_current_target): Don't inherit or default
5481         to_terminal_inferior.
5482         * target.h (struct target_ops) <to_terminal_inferior>: Use
5483         TARGET_DEFAULT_IGNORE.
5484
5485 2014-02-19  Tom Tromey  <tromey@redhat.com>
5486
5487         * target-delegates.c: Rebuild.
5488         * target.c (update_current_target): Don't inherit or default
5489         to_terminal_init.
5490         * target.h (struct target_ops) <to_terminal_init>: Use
5491         TARGET_DEFAULT_IGNORE.
5492
5493 2014-02-19  Tom Tromey  <tromey@redhat.com>
5494
5495         * target-delegates.c: Rebuild.
5496         * target.c (update_current_target): Don't inherit or default
5497         to_can_accel_watchpoint_condition.
5498         * target.h (struct target_ops)
5499         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5500
5501 2014-02-19  Tom Tromey  <tromey@redhat.com>
5502
5503         * target-delegates.c: Rebuild.
5504         * target.c (update_current_target): Don't inherit or default
5505         to_region_ok_for_hw_watchpoint.
5506         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5507         Use TARGET_DEFAULT_FUNC.
5508
5509 2014-02-19  Tom Tromey  <tromey@redhat.com>
5510
5511         * target-delegates.c: Rebuild.
5512         * target.c (update_current_target): Don't inherit or default
5513         to_watchpoint_addr_within_range.
5514         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5515         Use TARGET_DEFAULT_FUNC.
5516
5517 2014-02-19  Tom Tromey  <tromey@redhat.com>
5518
5519         * target-delegates.c: Rebuild.
5520         * target.c (update_current_target): Don't inherit or default
5521         to_remove_watchpoint.
5522         * target.h (struct target_ops) <to_remove_watchpoint>: Use
5523         TARGET_DEFAULT_NORETURN.
5524
5525 2014-02-19  Tom Tromey  <tromey@redhat.com>
5526
5527         * target-delegates.c: Rebuild.
5528         * target.c (update_current_target): Don't inherit or default
5529         to_insert_watchpoint.
5530         * target.h (struct target_ops) <to_insert_watchpoint>: Use
5531         TARGET_DEFAULT_RETURN.
5532
5533 2014-02-19  Tom Tromey  <tromey@redhat.com>
5534
5535         * target-delegates.c: Rebuild.
5536         * target.c (update_current_target): Don't inherit or default
5537         to_remove_hw_breakpoint.
5538         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5539         TARGET_DEFAULT_RETURN.
5540
5541 2014-02-19  Tom Tromey  <tromey@redhat.com>
5542
5543         * target-delegates.c: Rebuild.
5544         * target.c (update_current_target): Don't inherit or default
5545         to_insert_hw_breakpoint.
5546         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5547         TARGET_DEFAULT_RETURN.
5548
5549 2014-02-19  Tom Tromey  <tromey@redhat.com>
5550
5551         * target-delegates.c: Rebuild.
5552         * target.c (update_current_target): Don't inherit or default
5553         to_can_use_hw_breakpoint.
5554         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5555         TARGET_DEFAULT_RETURN.
5556
5557 2014-02-19  Tom Tromey  <tromey@redhat.com>
5558
5559         * target-delegates.c: Rebuild.
5560         * target.c (update_current_target): Don't inherit or default
5561         to_files_info.
5562         * target.h (struct target_ops) <to_files_info>: Use
5563         TARGET_DEFAULT_IGNORE.
5564
5565 2014-02-19  Tom Tromey  <tromey@redhat.com>
5566
5567         * target-delegates.c: Rebuild.
5568         * target.c (update_current_target): Don't inherit or default
5569         to_store.
5570         * target.h (struct target_ops) <to_store>: Use
5571         TARGET_DEFAULT_NORETURN.
5572
5573 2014-02-19  Tom Tromey  <tromey@redhat.com>
5574
5575         * target-delegates.c: Rebuild.
5576         * target.c (update_current_target): Don't inherit or default
5577         to_post_attach.
5578         * target.h (struct target_ops) <to_post_attach>: Use
5579         TARGET_DEFAULT_IGNORE.
5580
5581 2014-02-19  Tom Tromey  <tromey@redhat.com>
5582
5583         * target-delegates.c: Rebuild.
5584         * target.c (update_current_target): Don't inherit or default
5585         to_rcmd.
5586         (default_rcmd): New function.
5587         (do_monitor_command): Unconditionally delegate.
5588         * target.h (struct target_ops) <to_rmcd>: Use
5589         TARGET_DEFAULT_FUNC.
5590
5591 2014-02-19  Tom Tromey  <tromey@redhat.com>
5592
5593         * target-delegates.c: Rebuild.
5594         * target.c (init_dummy_target): Don't initialize to_attach.
5595         (target_attach): Unconditionally delegate.
5596         * target.h (struct target_ops) <to_attach>: Use
5597         TARGET_DEFAULT_FUNC.
5598
5599 2014-02-19  Tom Tromey  <tromey@redhat.com>
5600
5601         * target-delegates.c: Rebuild.
5602         * target.c (target_detach): Unconditionally delegate.
5603         (init_dummy_target): Don't initialize to_detach.
5604         * target.h (struct target_ops) <to_detach>: Use
5605         TARGET_DEFAULT_IGNORE.
5606
5607 2014-02-19  Tom Tromey  <tromey@redhat.com>
5608
5609         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5610         Add argument.
5611         (target_augmented_libraries_svr4_read): Add argument.
5612         * target.c (update_current_target): Update.
5613         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5614         argument.
5615
5616 2014-02-19  Tom Tromey  <tromey@redhat.com>
5617
5618         * target.h (struct target_ops) <to_call_history_range>: Add
5619         argument.
5620         * target.c (target_call_history_range): Add argument.
5621         * record-btrace.c (record_btrace_call_history_range): Add 'self'
5622         argument.
5623         (record_btrace_call_history_from): Update.
5624
5625 2014-02-19  Tom Tromey  <tromey@redhat.com>
5626
5627         * target.h (struct target_ops) <to_call_history_from>: Add
5628         argument.
5629         * target.c (target_call_history_from): Add argument.
5630         * record-btrace.c (record_btrace_call_history_from): Add 'self'
5631         argument.
5632
5633 2014-02-19  Tom Tromey  <tromey@redhat.com>
5634
5635         * target.h (struct target_ops) <to_call_history>: Add argument.
5636         * target.c (target_call_history): Add argument.
5637         * record-btrace.c (record_btrace_call_history): Add 'self'
5638         argument.
5639
5640 2014-02-19  Tom Tromey  <tromey@redhat.com>
5641
5642         * target.h (struct target_ops) <to_insn_history_range>: Add
5643         argument.
5644         * target.c (target_insn_history_range): Add argument.
5645         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5646         argument.
5647         (record_btrace_insn_history_from): Update.
5648
5649 2014-02-19  Tom Tromey  <tromey@redhat.com>
5650
5651         * target.h (struct target_ops) <to_insn_history_from>: Add
5652         argument.
5653         * target.c (target_insn_history_from): Add argument.
5654         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5655         argument.
5656
5657 2014-02-19  Tom Tromey  <tromey@redhat.com>
5658
5659         * target.h (struct target_ops) <to_insn_history>: Add argument.
5660         * target.c (target_insn_history): Add argument.
5661         * record-btrace.c (record_btrace_insn_history): Add 'self'
5662         argument.
5663
5664 2014-02-19  Tom Tromey  <tromey@redhat.com>
5665
5666         * target.h (struct target_ops) <to_goto_record>: Add argument.
5667         * target.c (target_goto_record): Add argument.
5668         * record-full.c (record_full_goto): Add 'self' argument.
5669         * record-btrace.c (record_btrace_goto): Add 'self' argument.
5670
5671 2014-02-19  Tom Tromey  <tromey@redhat.com>
5672
5673         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5674         * target.c (target_goto_record_end): Add argument.
5675         * record-full.c (record_full_goto_end): Add 'self' argument.
5676         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5677
5678 2014-02-19  Tom Tromey  <tromey@redhat.com>
5679
5680         * target.h (struct target_ops) <to_goto_record_begin>: Add
5681         argument.
5682         * target.c (target_goto_record_begin): Add argument.
5683         * record-full.c (record_full_goto_begin): Add 'self' argument.
5684         * record-btrace.c (record_btrace_goto_begin): Add 'self'
5685         argument.
5686
5687 2014-02-19  Tom Tromey  <tromey@redhat.com>
5688
5689         * target.h (struct target_ops) <to_record_is_replaying>: Add
5690         argument.
5691         * target.c (target_record_is_replaying): Add argument.
5692         * record-full.c (record_full_is_replaying): Add 'self' argument.
5693         * record-btrace.c (record_btrace_is_replaying): Add 'self'
5694         argument.
5695         (record_btrace_xfer_partial, record_btrace_store_registers)
5696         (record_btrace_prepare_to_store, record_btrace_resume)
5697         (record_btrace_wait, record_btrace_decr_pc_after_break)
5698         (record_btrace_find_new_threads, record_btrace_thread_alive):
5699         Update.
5700
5701 2014-02-19  Tom Tromey  <tromey@redhat.com>
5702
5703         * target.h (struct target_ops) <to_delete_record>: Add argument.
5704         * target.c (target_delete_record): Add argument.
5705         * record-full.c (record_full_delete): Add 'self' argument.
5706
5707 2014-02-19  Tom Tromey  <tromey@redhat.com>
5708
5709         * target.h (struct target_ops) <to_save_record>: Add argument.
5710         * target.c (target_save_record): Add argument.
5711         * record-full.c (record_full_save): Add 'self' argument.
5712         (record_full_save): Add 'self' argument.
5713
5714 2014-02-19  Tom Tromey  <tromey@redhat.com>
5715
5716         * target.h (struct target_ops) <to_info_record>: Add argument.
5717         * target.c (target_info_record): Add argument.
5718         * record.c (info_record_command): Add argument.
5719         * record-full.c (record_full_info): Add 'self' argument.
5720         * record-btrace.c (record_btrace_info): Add 'self' argument.
5721
5722 2014-02-19  Tom Tromey  <tromey@redhat.com>
5723
5724         * target.h (struct target_ops) <to_stop_recording>: Add argument.
5725         * target.c (target_stop_recording): Add argument.
5726         * record.c (record_stop): Add argument.
5727         * record-btrace.c (record_btrace_stop_recording): Add 'self'
5728         argument.
5729
5730 2014-02-19  Tom Tromey  <tromey@redhat.com>
5731
5732         * target.h (struct target_ops) <to_read_btrace>: Add argument.
5733         * target.c (struct target_ops) <to_read_btrace>: Add argument.
5734         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5735         argument.
5736         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5737         (_initialize_amd64_linux_nat): Use it.
5738         * i386-linux-nat.c (i386_linux_read_btrace): New function.
5739         (_initialize_i386_linux_nat): Use it.
5740
5741 2014-02-19  Tom Tromey  <tromey@redhat.com>
5742
5743         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5744         * target.c (target_teardown_btrace): Add argument.
5745         * remote.c (remote_teardown_btrace): Add 'self' argument.
5746         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5747         argument.
5748         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5749         argument.
5750
5751 2014-02-19  Tom Tromey  <tromey@redhat.com>
5752
5753         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5754         * target.c (target_disable_btrace): Add argument.
5755         * remote.c (remote_disable_btrace): Add 'self' argument.
5756         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5757         argument.
5758         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5759         argument.
5760
5761 2014-02-19  Tom Tromey  <tromey@redhat.com>
5762
5763         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5764         * target.c (target_enable_btrace): Add argument.
5765         * remote.c (remote_enable_btrace): Add 'self' argument.
5766         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5767         argument.
5768         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5769         argument.
5770
5771 2014-02-19  Tom Tromey  <tromey@redhat.com>
5772
5773         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5774         (target_can_use_agent): Add argument.
5775         * target.c (update_current_target): Update.
5776         * remote.c (remote_can_use_agent): Add 'self' argument.
5777         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5778
5779 2014-02-19  Tom Tromey  <tromey@redhat.com>
5780
5781         * target.h (struct target_ops) <to_use_agent>: Add argument.
5782         (target_use_agent): Add argument.
5783         * target.c (update_current_target): Update.
5784         * remote.c (remote_use_agent): Add 'self' argument.
5785         * inf-child.c (inf_child_use_agent): Add 'self' argument.
5786
5787 2014-02-19  Tom Tromey  <tromey@redhat.com>
5788
5789         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5790         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5791         (target_traceframe_info): Add argument.
5792         * target.c (update_current_target): Update.
5793         * remote.c (remote_traceframe_info): Add 'self' argument.
5794         * ctf.c (ctf_traceframe_info): Add 'self' argument.
5795
5796 2014-02-19  Tom Tromey  <tromey@redhat.com>
5797
5798         * target.h (target_static_tracepoint_markers_by_strid): Add
5799         argument.
5800         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5801         'self' argument.
5802         * target.c (update_current_target): Update.
5803         * remote.c (struct target_ops)
5804         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5805         * linux-nat.c (struct target_ops)
5806         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5807
5808 2014-02-19  Tom Tromey  <tromey@redhat.com>
5809
5810         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5811         Add argument.
5812         (target_static_tracepoint_marker_at): Add argument.
5813         * target.c (update_current_target): Update.
5814         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5815         argument.
5816
5817 2014-02-19  Tom Tromey  <tromey@redhat.com>
5818
5819         * target.h (struct target_ops) <to_set_permissions>: Add argument.
5820         (target_set_permissions): Add argument.
5821         * target.c (update_current_target): Update.
5822         * remote.c (remote_set_permissions): Add 'self' argument.
5823         (remote_start_remote): Update.
5824
5825 2014-02-19  Tom Tromey  <tromey@redhat.com>
5826
5827         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5828         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5829         (target_get_tib_address): Add argument.
5830         * target.c (update_current_target): Update.
5831         * remote.c (remote_get_tib_address): Add 'self' argument.
5832
5833 2014-02-19  Tom Tromey  <tromey@redhat.com>
5834
5835         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5836         (target_set_trace_notes): Add argument.
5837         * target.c (update_current_target): Update.
5838         * remote.c (remote_set_trace_notes): Add 'self' argument.
5839
5840 2014-02-19  Tom Tromey  <tromey@redhat.com>
5841
5842         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5843         argument.
5844         (target_set_trace_buffer_size): Add argument.
5845         * target.c (update_current_target): Update.
5846         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5847
5848 2014-02-19  Tom Tromey  <tromey@redhat.com>
5849
5850         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5851         argument.
5852         (target_set_circular_trace_buffer): Add argument.
5853         * target.c (update_current_target): Update.
5854         * remote.c (remote_set_circular_trace_buffer): Add 'self'
5855         argument.
5856
5857 2014-02-19  Tom Tromey  <tromey@redhat.com>
5858
5859         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5860         argument.
5861         (target_set_disconnected_tracing): Add argument.
5862         * target.c (update_current_target): Update.
5863         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5864
5865 2014-02-19  Tom Tromey  <tromey@redhat.com>
5866
5867         * target.h (struct target_ops)
5868         <to_get_min_fast_tracepoint_insn_len>: Add argument.
5869         (target_get_min_fast_tracepoint_insn_len): Add argument.
5870         * target.c (update_current_target): Update.
5871         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5872         argument.
5873
5874 2014-02-19  Tom Tromey  <tromey@redhat.com>
5875
5876         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5877         argument.
5878         (target_get_raw_trace_data): Add argument.
5879         * target.c (update_current_target): Update.
5880         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5881
5882 2014-02-19  Tom Tromey  <tromey@redhat.com>
5883
5884         * target.h (struct target_ops) <to_upload_trace_state_variables>:
5885         Add argument.
5886         (target_upload_trace_state_variables): Add argument.
5887         * target.c (update_current_target): Update.
5888         * remote.c (remote_upload_trace_state_variables): Add 'self'
5889         argument.
5890         (remote_start_remote): Update.
5891
5892 2014-02-19  Tom Tromey  <tromey@redhat.com>
5893
5894         * target.h (struct target_ops) <to_upload_tracepoints>: Add
5895         argument.
5896         (target_upload_tracepoints): Add argument.
5897         * target.c (update_current_target): Update.
5898         * remote.c (remote_upload_tracepoints): Add 'self' argument.
5899         (remote_start_remote): Update.
5900
5901 2014-02-19  Tom Tromey  <tromey@redhat.com>
5902
5903         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5904         (target_save_trace_data): Add argument.
5905         * target.c (update_current_target): Update.
5906         * remote.c (remote_save_trace_data): Add 'self' argument.
5907
5908 2014-02-19  Tom Tromey  <tromey@redhat.com>
5909
5910         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5911         argument.
5912         * target.h (struct target_ops)
5913         <to_get_trace_state_variable_value>: Add argument.
5914         (target_get_trace_state_variable_value): Add argument.
5915         * target.c (update_current_target): Update.
5916         * remote.c (remote_get_trace_state_variable_value): Add 'self'
5917         argument.
5918         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5919
5920 2014-02-19  Tom Tromey  <tromey@redhat.com>
5921
5922         * tracepoint.c (tfile_trace_find): Add 'self' argument.
5923         * target.h (struct target_ops) <to_trace_find>: Add argument.
5924         (target_trace_find): Add argument.
5925         * target.c (update_current_target): Update.
5926         * remote.c (remote_trace_find): Add 'self' argument.
5927         * ctf.c (ctf_trace_find): Add 'self' argument.
5928
5929 2014-02-19  Tom Tromey  <tromey@redhat.com>
5930
5931         * target.h (struct target_ops) <to_trace_stop>: Add argument.
5932         (target_trace_stop): Add argument.
5933         * target.c (update_current_target): Update.
5934         * remote.c (remote_trace_stop): Add 'self' argument.
5935
5936 2014-02-19  Tom Tromey  <tromey@redhat.com>
5937
5938         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5939         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5940         argument.
5941         (target_get_tracepoint_status): Add argument.
5942         * target.c (update_current_target): Update.
5943         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5944
5945 2014-02-19  Tom Tromey  <tromey@redhat.com>
5946
5947         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5948         * target.h (struct target_ops) <to_get_trace_status>: Add
5949         argument.
5950         (target_get_trace_status): Add argument.
5951         * target.c (update_current_target): Update.
5952         * remote.c (remote_get_trace_status): Add 'self' argument.
5953         (remote_start_remote, remote_can_download_tracepoint): Update.
5954         * ctf.c (ctf_get_trace_status): Add 'self' argument.
5955
5956 2014-02-19  Tom Tromey  <tromey@redhat.com>
5957
5958         * target.h (struct target_ops) <to_trace_start>: Add argument.
5959         (target_trace_start): Add argument.
5960         * target.c (update_current_target): Update.
5961         * remote.c (remote_trace_start): Add 'self' argument.
5962
5963 2014-02-19  Tom Tromey  <tromey@redhat.com>
5964
5965         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5966         Add argument.
5967         (target_trace_set_readonly_regions): Add argument.
5968         * target.c (update_current_target): Update.
5969         * remote.c (remote_trace_set_readonly_regions): Add 'self'
5970         argument.
5971
5972 2014-02-19  Tom Tromey  <tromey@redhat.com>
5973
5974         * target.h (struct target_ops) <to_disable_tracepoint>: Add
5975         argument.
5976         (target_disable_tracepoint): Add argument.
5977         * target.c (update_current_target): Update.
5978         * remote.c (remote_disable_tracepoint): Add 'self' argument.
5979
5980 2014-02-19  Tom Tromey  <tromey@redhat.com>
5981
5982         * target.h (struct target_ops) <to_enable_tracepoint>: Add
5983         argument.
5984         (target_enable_tracepoint): Add argument.
5985         * target.c (update_current_target): Update.
5986         * remote.c (remote_enable_tracepoint): Add 'self' argument.
5987
5988 2014-02-19  Tom Tromey  <tromey@redhat.com>
5989
5990         * target.h (struct target_ops) <to_download_trace_state_variable>:
5991         Add argument.
5992         (target_download_trace_state_variable): Add argument.
5993         * target.c (update_current_target): Update.
5994         * remote.c (remote_download_trace_state_variable): Add 'self'
5995         argument.
5996
5997 2014-02-19  Tom Tromey  <tromey@redhat.com>
5998
5999         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6000         argument.
6001         (target_can_download_tracepoint): Add argument.
6002         * target.c (update_current_target): Update.
6003         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6004
6005 2014-02-19  Tom Tromey  <tromey@redhat.com>
6006
6007         * target.h (struct target_ops) <to_download_tracepoint>: Add
6008         argument.
6009         (target_download_tracepoint): Add argument.
6010         * target.c (update_current_target): Update.
6011         * remote.c (remote_download_tracepoint): Add 'self' argument.
6012
6013 2014-02-19  Tom Tromey  <tromey@redhat.com>
6014
6015         * target.h (struct target_ops) <to_trace_init>: Add argument.
6016         (target_trace_init): Add argument.
6017         * target.c (update_current_target): Update.
6018         * remote.c (remote_trace_init): Add 'self' argument.
6019
6020 2014-02-19  Tom Tromey  <tromey@redhat.com>
6021
6022         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6023         * target.c (target_fileio_readlink): Add argument.
6024         * remote.c (remote_hostio_readlink): Add 'self' argument.
6025         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6026
6027 2014-02-19  Tom Tromey  <tromey@redhat.com>
6028
6029         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6030         * target.c (target_fileio_unlink): Add argument.
6031         * remote.c (remote_hostio_unlink): Add 'self' argument.
6032         (remote_file_delete): Update.
6033         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6034
6035 2014-02-19  Tom Tromey  <tromey@redhat.com>
6036
6037         * target.h (struct target_ops) <to_fileio_close>: Add argument.
6038         * target.c (target_fileio_close): Add argument.
6039         * remote.c (remote_hostio_close): Add 'self' argument.
6040         (remote_hostio_close_cleanup): Update.
6041         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6042         Update.
6043         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6044
6045 2014-02-19  Tom Tromey  <tromey@redhat.com>
6046
6047         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6048         * target.c (target_fileio_pread): Add argument.
6049         * remote.c (remote_hostio_pread): Add 'self' argument.
6050         (remote_bfd_iovec_pread, remote_file_get): Update.
6051         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6052
6053 2014-02-19  Tom Tromey  <tromey@redhat.com>
6054
6055         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6056         * target.c (target_fileio_pwrite): Add argument.
6057         * remote.c (remote_hostio_pwrite): Add 'self' argument.
6058         (remote_file_put): Update.
6059         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6060
6061 2014-02-19  Tom Tromey  <tromey@redhat.com>
6062
6063         * target.h (struct target_ops) <to_fileio_open>: Add argument.
6064         * target.c (target_fileio_open): Add argument.
6065         * remote.c (remote_hostio_open): Add 'self' argument.
6066         (remote_bfd_iovec_open): Add 'self' argument.
6067         (remote_file_put): Add 'self' argument.
6068         (remote_file_get): Add 'self' argument.
6069         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6070
6071 2014-02-19  Tom Tromey  <tromey@redhat.com>
6072
6073         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6074         Add argument.
6075         (target_can_run_breakpoint_commands): Add argument.
6076         * target.c (update_current_target): Update.
6077         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6078         argument.
6079         (remote_insert_breakpoint): Add 'self' argument.
6080         (remote_insert_hw_breakpoint): Add 'self' argument.
6081         (remote_can_run_breakpoint_commands): Add 'self' argument.
6082
6083 2014-02-19  Tom Tromey  <tromey@redhat.com>
6084
6085         * target.h (struct target_ops)
6086         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6087         (target_supports_evaluation_of_breakpoint_conditions): Add
6088         argument.
6089         * target.c (update_current_target): Update.
6090         * remote.c (remote_supports_cond_breakpoints): Add 'self'
6091         argument.
6092         (remote_insert_breakpoint): Add 'self' argument.
6093         (remote_insert_hw_breakpoint): Add 'self' argument.
6094         (remote_supports_cond_breakpoints): Add 'self' argument.
6095
6096 2014-02-19  Tom Tromey  <tromey@redhat.com>
6097
6098         * target.h (struct target_ops) <to_supports_string_tracing>: Add
6099         argument.
6100         (target_supports_string_tracing): Add argument.
6101         * target.c (update_current_target): Update.
6102         * remote.c (remote_supports_string_tracing): Add 'self' argument.
6103
6104 2014-02-19  Tom Tromey  <tromey@redhat.com>
6105
6106         * target.h (struct target_ops)
6107         <to_supports_disable_randomization>: Add argument.
6108         * target.c (find_default_supports_disable_randomization): Add
6109         argument.
6110         (target_supports_disable_randomization): Add argument.
6111         (find_default_supports_disable_randomization): Add 'self'
6112         argument.
6113         * remote.c (extended_remote_supports_disable_randomization): Add
6114         'self' argument.
6115         (remote_supports_disable_randomization): Add 'self' argument.
6116         (extended_remote_create_inferior): Update.
6117         * linux-nat.c (linux_nat_supports_disable_randomization): Add
6118         'self' argument.
6119
6120 2014-02-19  Tom Tromey  <tromey@redhat.com>
6121
6122         * target.h (struct target_ops)
6123         <to_supports_enable_disable_tracepoint>: Add argument.
6124         (target_supports_enable_disable_tracepoint): Add argument.
6125         * target.c (update_current_target): Update.
6126         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6127         argument.
6128
6129 2014-02-19  Tom Tromey  <tromey@redhat.com>
6130
6131         * target.h (struct target_ops) <to_supports_multi_process>: Add
6132         argument.
6133         (target_supports_multi_process): Add argument.
6134         * target.c (update_current_target): Update.
6135         * remote.c (remote_supports_multi_process): Add 'self' argument.
6136         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6137         argument.
6138         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6139         argument.
6140
6141 2014-02-19  Tom Tromey  <tromey@redhat.com>
6142
6143         * target.h (struct target_ops) <to_execution_direction>: Add
6144         argument.
6145         (target_execution_direction): Add argument.
6146         * target.c (default_execution_direction): Add 'self' argument.
6147         * record-full.c (record_full_execution_direction): Add 'self'
6148         argument.
6149
6150 2014-02-19  Tom Tromey  <tromey@redhat.com>
6151
6152         * target.h (struct target_ops) <to_can_execute_reverse>: Add
6153         argument.
6154         (target_can_execute_reverse): Add argument.
6155         * remote.c (remote_can_execute_reverse): Add 'self' argument.
6156         * record-full.c (record_full_can_execute_reverse): Add 'self'
6157         argument.
6158         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6159         argument.
6160
6161 2014-02-19  Tom Tromey  <tromey@redhat.com>
6162
6163         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6164         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6165         argument.
6166         (target_get_ada_task_ptid): Add argument.
6167         * target.c (update_current_target): Update.
6168         (default_get_ada_task_ptid): Add 'self' argument.
6169         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6170         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6171         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6172         argument.
6173         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6174         argument.
6175         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6176         argument.
6177         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6178         argument.
6179         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6180         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6181         argument.
6182
6183 2014-02-19  Tom Tromey  <tromey@redhat.com>
6184
6185         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6186         (target_goto_bookmark): Add argument.
6187         * target.c (dummy_goto_bookmark): Add 'self' argument.
6188         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6189
6190 2014-02-19  Tom Tromey  <tromey@redhat.com>
6191
6192         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6193         (target_get_bookmark): Add argument.
6194         * target.c (dummy_get_bookmark): Add 'self' argument.
6195         * record-full.c (record_full_get_bookmark): Add 'self' argument.
6196
6197 2014-02-19  Tom Tromey  <tromey@redhat.com>
6198
6199         * target.h (struct target_ops) <to_make_corefile_notes>: Add
6200         argument.
6201         (target_make_corefile_notes): Add argument.
6202         * target.c (dummy_make_corefile_notes): Add 'self' argument.
6203         * procfs.c (procfs_make_note_section): Add 'self' argument.
6204         (procfs_make_note_section): Add 'self' argument.
6205         (procfs_make_note_section): Add 'self' argument.
6206         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6207         argument.
6208         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6209         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6210         * exec.c (exec_make_note_section): Add 'self' argument.
6211         (exec_make_note_section): Add 'self' argument.
6212
6213 2014-02-19  Tom Tromey  <tromey@redhat.com>
6214
6215         * target.h (struct target_ops) <to_find_memory_regions>: Add
6216         argument.
6217         (target_find_memory_regions): Add argument.
6218         * target.c (dummy_find_memory_regions): Add 'self' argument.
6219         * procfs.c (proc_find_memory_regions): Add 'self' argument.
6220         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6221         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6222         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6223         * exec. (exec_do_find_memory_regions): New global.
6224         (exec_set_find_memory_regions): Rewrite.
6225         (exec_find_memory_regions): New function.
6226         (init_exec_ops): Use exec_find_memory_regions.
6227
6228 2014-02-19  Tom Tromey  <tromey@redhat.com>
6229
6230         * target.h (struct target_ops) <to_supports_non_stop>: Add
6231         argument.
6232         * target.c (find_default_supports_non_stop): Add argument.
6233         (target_supports_non_stop): Add argument.
6234         (find_default_supports_non_stop): Add 'self' argument.
6235         * remote.c (remote_supports_non_stop): Add 'self' argument.
6236         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6237
6238 2014-02-19  Tom Tromey  <tromey@redhat.com>
6239
6240         * target.h (struct target_ops) <to_log_command>: Add argument.
6241         (target_log_command): Add argument.
6242         * serial.h (serial_log_command): Add 'self' argument.
6243         * serial.c (serial_log_command): Add 'self' argument.
6244
6245 2014-02-19  Tom Tromey  <tromey@redhat.com>
6246
6247         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6248         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6249         argument.
6250         (target_pid_to_exec_file): Add argument.
6251         * target.c (debug_to_pid_to_exec_file): Add argument.
6252         (update_current_target): Update.
6253         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6254         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6255         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6256         (linux_handle_extended_wait): Update.
6257         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6258         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6259         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6260         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6261
6262 2014-02-19  Tom Tromey  <tromey@redhat.com>
6263
6264         * target.h (struct target_ops) <to_rcmd>: Add argument.
6265         (target_rcmd): Add argument.
6266         * target.c (debug_to_rcmd): Add argument.
6267         (update_current_target, do_monitor_command): Update.
6268         * remote.c (remote_rcmd): Add 'self' argument.
6269         * monitor.c (monitor_rcmd): Add 'self' argument.
6270
6271 2014-02-19  Tom Tromey  <tromey@redhat.com>
6272
6273         * windows-nat.c (windows_stop): Add 'self' argument.
6274         * target.h (struct target_ops) <to_stop>: Add argument.
6275         * target.c (target_stop): Add argument.
6276         (debug_to_stop): Add argument.
6277         (update_current_target): Update.
6278         * remote.c (remote_stop): Add 'self' argument.
6279         * remote-sim.c (gdbsim_stop): Add 'self' argument.
6280         (gdbsim_cntrl_c): Update.
6281         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6282         * procfs.c (procfs_stop): Add 'self' argument.
6283         * nto-procfs.c (procfs_stop): Add 'self' argument.
6284         * monitor.c (monitor_stop): Add 'self' argument.
6285         (monitor_open): Update.
6286         * linux-nat.c (linux_nat_stop): Add argument.
6287         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6288         * gnu-nat.c (gnu_stop): Add 'self' argument.
6289         * darwin-nat.c (darwin_stop): Add 'self' argument.
6290
6291 2014-02-19  Tom Tromey  <tromey@redhat.com>
6292
6293         * target.h (struct target_ops) <to_thread_name>: Add argument.
6294         * target.c (target_thread_name): Add argument.
6295         (update_current_target): Update.
6296         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6297
6298 2014-02-19  Tom Tromey  <tromey@redhat.com>
6299
6300         * target.h (struct target_ops) <to_extra_thread_info>: Add
6301         argument.
6302         (target_extra_thread_info): Add argument.
6303         * target.c (update_current_target): Update.
6304         * remote.c (remote_threads_extra_info): Add 'self' argument.
6305         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6306         argument.
6307         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6308         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6309         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6310         argument.
6311         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6312         argument.
6313         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6314         argument.
6315         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6316         argument.
6317
6318 2014-02-19  Tom Tromey  <tromey@redhat.com>
6319
6320         * target.h (struct target_ops) <to_program_signals>: Add argument.
6321         * target.c (target_program_signals): Add argument.
6322         * remote.c (remote_program_signals): Add 'self' argument.
6323
6324 2014-02-19  Tom Tromey  <tromey@redhat.com>
6325
6326         * target.h (struct target_ops) <to_pass_signals>: Add argument.
6327         * target.c (target_pass_signals): Add argument.
6328         * remote.c (remote_pass_signals): Add 'self' argument.
6329         (remote_start_remote): Update.
6330         * procfs.c (procfs_pass_signals): Add 'self' argument.
6331         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6332         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6333         (linux_nat_create_inferior, linux_nat_attach): Update.
6334
6335 2014-02-19  Tom Tromey  <tromey@redhat.com>
6336
6337         * windows-nat.c (windows_can_run): Add 'self' argument.
6338         * target.h (struct target_ops) <to_can_run>: Add argument.
6339         (target_can_run): Add argument.
6340         * target.c (debug_to_can_run): Add argument.
6341         (update_current_target): Update.
6342         * nto-procfs.c (procfs_can_run): Add 'self' argument.
6343         * inf-child.c (inf_child_can_run): Add 'self' argument.
6344         * go32-nat.c (go32_can_run): Add 'self' argument.
6345
6346 2014-02-19  Tom Tromey  <tromey@redhat.com>
6347
6348         * target.h (struct target_ops) <to_has_exited>: Add argument.
6349         (target_has_exited): Add argument.
6350         * target.c (debug_to_has_exited): Add argument.
6351         (update_current_target): Update.
6352
6353 2014-02-19  Tom Tromey  <tromey@redhat.com>
6354
6355         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6356         argument.
6357         (target_set_syscall_catchpoint): Add argument.
6358         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6359         argument.
6360         * target.c (update_current_target): Update.
6361
6362 2014-02-19  Tom Tromey  <tromey@redhat.com>
6363
6364         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6365         argument.
6366         (target_remove_exec_catchpoint): Add argument.
6367         * target.c (debug_to_remove_exec_catchpoint): Add argument.
6368         (update_current_target): Update.
6369         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6370         argument.
6371
6372 2014-02-19  Tom Tromey  <tromey@redhat.com>
6373
6374         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6375         argument.
6376         (target_insert_exec_catchpoint): Add argument.
6377         * target.c (debug_to_insert_exec_catchpoint): Add argument.
6378         (update_current_target): Update.
6379         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6380         argument.
6381
6382 2014-02-19  Tom Tromey  <tromey@redhat.com>
6383
6384         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6385         argument.
6386         (target_remove_vfork_catchpoint): Add argument.
6387         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6388         (update_current_target): Update.
6389         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6390         argument.
6391
6392 2014-02-19  Tom Tromey  <tromey@redhat.com>
6393
6394         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6395         argument.
6396         (target_insert_vfork_catchpoint): Add argument.
6397         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6398         (update_current_target): Update.
6399         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6400         argument.
6401
6402 2014-02-19  Tom Tromey  <tromey@redhat.com>
6403
6404         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6405         argument.
6406         (target_remove_fork_catchpoint): Add argument.
6407         * target.c (debug_to_remove_fork_catchpoint): Add argument.
6408         (update_current_target): Update.
6409         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6410         argument.
6411
6412 2014-02-19  Tom Tromey  <tromey@redhat.com>
6413
6414         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6415         argument.
6416         (target_insert_fork_catchpoint): Add argument.
6417         * target.c (debug_to_insert_fork_catchpoint): Add argument.
6418         (update_current_target): Update.
6419         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6420         argument.
6421
6422 2014-02-19  Tom Tromey  <tromey@redhat.com>
6423
6424         * target.h (struct target_ops) <to_post_startup_inferior>: Add
6425         argument.
6426         (target_post_startup_inferior): Add argument.
6427         * target.c (debug_to_post_startup_inferior): Add argument.
6428         (update_current_target): Update.
6429         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6430         argument.
6431         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6432         argument.
6433         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6434         argument.
6435         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6436         argument.
6437         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6438         'self' argument.
6439         (super_post_startup_inferior): Likewise.
6440         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6441         'self' argument.
6442         (super_post_startup_inferior): Likewise.
6443         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6444         Add 'self' argument.
6445         (super_post_startup_inferior): Likewise.
6446
6447 2014-02-19  Tom Tromey  <tromey@redhat.com>
6448
6449         * target.h (struct target_ops) <to_load>: Add argument.
6450         * target.c (target_load): Add argument.
6451         (debug_to_load): Add argument.
6452         (update_current_target): Update.
6453         * remote.c (remote_load): Add 'self' argument.
6454         * remote-sim.c (gdbsim_load): Add 'self' argument.
6455         * remote-mips.c (mips_load): Add 'self' argument.
6456         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6457         * monitor.c (monitor_load): Add 'self' argument.
6458         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6459
6460 2014-02-19  Tom Tromey  <tromey@redhat.com>
6461
6462         * target.h (struct target_ops) <to_terminal_info>: Add argument.
6463         (target_terminal_info): Add argument.
6464         * target.c (debug_to_terminal_info): Add argument.
6465         (default_terminal_info): Likewise.
6466         * inflow.c (child_terminal_info): Add 'self' argument.
6467         * inferior.h (child_terminal_info): Add 'self' argument.
6468         * go32-nat.c (go32_terminal_info): Add 'self' argument.
6469
6470 2014-02-19  Tom Tromey  <tromey@redhat.com>
6471
6472         * target.h (struct target_ops) <to_terminal_save_ours>: Add
6473         argument.
6474         (target_terminal_save_ours): Add argument.
6475         * target.c (debug_to_terminal_save_ours): Add argument.
6476         (update_current_target): Update.
6477         * inflow.c (terminal_save_ours): Add 'self' argument.
6478         * inferior.h (terminal_save_ours): Add 'self' argument.
6479
6480 2014-02-19  Tom Tromey  <tromey@redhat.com>
6481
6482         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6483         (target_terminal_ours): Add argument.
6484         * target.c (debug_to_terminal_ours): Add argument.
6485         (update_current_target): Update.
6486         * remote.c (remote_terminal_ours): Add 'self' argument.
6487         (remote_close): Update.
6488         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6489         * inflow.c (terminal_ours): Add 'self' argument.
6490         * inferior.h (terminal_ours): Add 'self' argument.
6491         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6492
6493 2014-02-19  Pedro Alves  <palves@redhat.com>
6494             Tom Tromey  <tromey@redhat.com>
6495
6496         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6497         argument.
6498         (target_terminal_ours_for_output): Add argument.
6499         * target.c (debug_to_terminal_ours_for_output): Add argument.
6500         (update_current_target): Update.
6501         * inflow.c (terminal_ours_for_output): Add 'self' argument.
6502         * inferior.h (terminal_ours_for_output): Add 'self' argument.
6503         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6504
6505 2014-02-19  Tom Tromey  <tromey@redhat.com>
6506
6507         * target.h (struct target_ops) <to_terminal_inferior>: Add
6508         argument.
6509         * target.c (target_terminal_inferior): Add argument.
6510         (update_current_target): Update.
6511         * remote.c (remote_terminal_inferior): Add 'self' argument.
6512         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6513         * inflow.c (terminal_inferior): Add 'self' argument.
6514         * inferior.h (terminal_inferior): Add 'self' argument.
6515         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6516         (go32_terminal_inferior): Add 'self' argument.
6517
6518 2014-02-19  Tom Tromey  <tromey@redhat.com>
6519
6520         * target.h (struct target_ops) <to_terminal_init>: Add argument.
6521         (target_terminal_init): Add argument.
6522         * target.c (debug_to_terminal_init): Add argument.
6523         (update_current_target): Update.
6524         * inflow.c (terminal_init_inferior): Add 'self' argument.
6525         * inferior.h (terminal_init_inferior): Add 'self' argument.
6526         * go32-nat.c (go32_terminal_init): Add 'self' argument.
6527         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6528
6529 2014-02-19  Tom Tromey  <tromey@redhat.com>
6530
6531         * target.h (struct target_ops)
6532         <to_can_accel_watchpoint_condition>: Add argument.
6533         (target_can_accel_watchpoint_condition): Add argument.
6534         * target.c (debug_to_can_accel_watchpoint_condition): Add
6535         argument.
6536         (update_current_target): Update.
6537         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6538         'self' argument.
6539
6540 2014-02-19  Tom Tromey  <tromey@redhat.com>
6541
6542         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6543         Add argument.
6544         (target_region_ok_for_hw_watchpoint): Add argument.
6545         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6546         (default_region_ok_for_hw_watchpoint): Add argument.
6547         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6548         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6549         argument.
6550         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6551         argument.
6552         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6553         argument.
6554         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6555         'self' argument.
6556         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6557         'self' argument.
6558         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6559         'self' argument.
6560         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6561         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6562         'self' argument.
6563         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6564         Add 'self' argument.
6565
6566 2014-02-19  Tom Tromey  <tromey@redhat.com>
6567
6568         * target.h (struct target_ops) <to_insert_watchpoint>: Add
6569         argument.
6570         (target_insert_watchpoint): Add argument.
6571         * target.c (debug_to_insert_watchpoint): Add argument.
6572         (update_current_target): Update.
6573         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6574         * remote.c (remote_insert_watchpoint): Add 'self' argument.
6575         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6576         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6577         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6578         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6579         argument.
6580         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6581         (procfs_insert_hw_watchpoint): Add 'self' argument.
6582         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6583         argument.
6584         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6585         argument.
6586         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6587         argument.
6588         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6589         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6590         argument.
6591         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6592         'self' argument.
6593
6594 2014-02-19  Tom Tromey  <tromey@redhat.com>
6595
6596         * target.h (struct target_ops) <to_remove_watchpoint>: Add
6597         argument.
6598         (target_remove_watchpoint): Add argument.
6599         * target.c (debug_to_remove_watchpoint): Add argument.
6600         (update_current_target): Update.
6601         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6602         * remote.c (remote_remove_watchpoint): Add 'self' argument.
6603         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6604         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6605         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6606         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6607         argument.
6608         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6609         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6610         argument.
6611         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6612         argument.
6613         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6614         argument.
6615         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6616         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6617         argument.
6618         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6619         'self' argument.
6620
6621 2014-02-19  Tom Tromey  <tromey@redhat.com>
6622
6623         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6624         argument.
6625         (target_remove_hw_breakpoint): Add argument.
6626         * target.c (debug_to_remove_hw_breakpoint): Add argument.
6627         (update_current_target): Update.
6628         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6629         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6630         argument.
6631         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6632         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6633         argument.
6634         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6635         'self' argument.
6636
6637 2014-02-19  Tom Tromey  <tromey@redhat.com>
6638
6639         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6640         argument.
6641         (target_insert_hw_breakpoint): Add argument.
6642         * target.c (debug_to_insert_hw_breakpoint): Add argument.
6643         (update_current_target): Update.
6644         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6645         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6646         argument.
6647         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6648         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6649         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6650         argument.
6651         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6652         'self' argument.
6653
6654 2014-02-19  Tom Tromey  <tromey@redhat.com>
6655
6656         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6657         argument.
6658         (target_can_use_hardware_watchpoint): Add argument.
6659         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6660         (update_current_target): Update.
6661         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6662         argument.
6663         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6664         argument.
6665         * remote.c (remote_check_watch_resources): Add 'self' argument.
6666         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6667         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6668         argument.
6669         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6670         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6671         argument.
6672         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6673         argument.
6674         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6675         argument.
6676         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6677         argument.
6678         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6679         argument.
6680         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6681         argument.
6682         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6683         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6684         argument.
6685         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6686         'self' argument.
6687
6688 2014-02-19  Tom Tromey  <tromey@redhat.com>
6689
6690         * target.h (struct target_ops) <to_post_attach>: Add argument.
6691         (target_post_attach): Add argument.
6692         * target.c (debug_to_post_attach): Add argument.
6693         (update_current_target): Update.
6694         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6695         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6696         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6697         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6698         * inf-child.c (inf_child_post_attach): Add 'self' argument.
6699
6700 2014-02-19  Tom Tromey  <tromey@redhat.com>
6701
6702         * windows-nat.c (windows_close): Add 'self' argument.
6703         * tracepoint.c (tfile_close): Add 'self' argument.
6704         * target.h (struct target_ops) <to_close>: Add argument.
6705         * target.c (target_close): Add argument.
6706         (update_current_target): Update.
6707         * remote.c (remote_close): Add 'self' argument.
6708         * remote-sim.c (gdbsim_close): Add 'self' argument.
6709         * remote-mips.c (mips_close): Add 'self' argument.
6710         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6711         * record-full.c (record_full_close): Add 'self' argument.
6712         * record-btrace.c (record_btrace_close): Add 'self' argument.
6713         * monitor.h (monitor_close): Add 'self' argument.
6714         * monitor.c (monitor_close): Add 'self' argument.
6715         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6716         * linux-nat.c (linux_nat_close): Add argument.
6717         * go32-nat.c (go32_close): Add 'self' argument.
6718         * exec.c (exec_close_1): Add 'self' argument.
6719         * ctf.c (ctf_close): Add 'self' argument.
6720         * corelow.c (core_close): Add 'self' argument.
6721         (core_close_cleanup): Update.
6722         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6723         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6724
6725 2014-02-19  Tom Tromey  <tromey@redhat.com>
6726
6727         * remote.c (remote_load): New function.
6728         (init_remote_ops): Use it.
6729
6730 2014-02-19  Tom Tromey  <tromey@redhat.com>
6731
6732         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6733         argument.
6734         * common/linux-btrace.h (linux_supports_btrace): Update.
6735         * remote.c (remote_supports_btrace): Add "self" argument.
6736         * target-delegates.c: Rebuild.
6737         * target.c (target_supports_btrace): Remove.
6738         * target.h (struct target_ops) <to_supports_btrace>: Add
6739         target_ops argument.
6740         (target_supports_btrace): New define.
6741
6742 2014-02-19  Tom Tromey  <tromey@redhat.com>
6743
6744         * record-full.c (record_full_beneath_to_resume_ops)
6745         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6746         (record_full_beneath_to_wait)
6747         (record_full_beneath_to_store_registers_ops)
6748         (record_full_beneath_to_store_registers)
6749         (record_full_beneath_to_xfer_partial_ops)
6750         (record_full_beneath_to_xfer_partial)
6751         (record_full_beneath_to_insert_breakpoint_ops)
6752         (record_full_beneath_to_insert_breakpoint)
6753         (record_full_beneath_to_remove_breakpoint_ops)
6754         (record_full_beneath_to_remove_breakpoint)
6755         (record_full_beneath_to_stopped_by_watchpoint)
6756         (record_full_beneath_to_stopped_data_address)
6757         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6758         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6759         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6760         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6761         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6762         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6763         (tmp_to_stopped_data_address, tmp_to_async): Remove.
6764         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
6765         (record_full_resume, record_full_wait_1)
6766         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6767         (record_full_store_registers, record_full_xfer_partial)
6768         (record_full_insert_breakpoint, record_full_remove_breakpoint)
6769         (record_full_async, record_full_core_xfer_partial): Use target
6770         delegation.
6771         * target-delegates.c: Rebuild.
6772         * target.c (current_xfer_partial): Remove.
6773         (update_current_target): Do not INHERIT or de_fault
6774         to_insert_breakpoint, to_remove_breakpoint,
6775         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6776         to_is_async_p, to_async.  Do not set to_xfer_partial field.
6777         (default_xfer_partial): Simplify.
6778         (current_xfer_partial): Remove.
6779         (target_wait, target_resume): Simplify.
6780         (find_default_can_async_p, find_default_is_async_p): Update.
6781         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6782         to_xfer_partial, to_stopped_by_watchpoint,
6783         to_stopped_data_address.
6784         (target_store_registers): Simplify.
6785         (forward_target_remove_breakpoint)
6786         (forward_target_insert_breakpoint): Remove.
6787         (target_remove_breakpoint, target_insert_breakpoint)
6788         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6789         * target.h (struct target_ops) <to_resume, to_wait,
6790         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6791         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6792         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6793         markup.
6794         (forward_target_remove_breakpoint)
6795         (forward_target_insert_breakpoint): Remove.
6796         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6797         directly.
6798         (record_btrace_insert_breakpoint): Delegate directly.
6799
6800 2014-02-19  Tom Tromey  <tromey@redhat.com>
6801
6802         PR build/7701:
6803         * target-delegates.c: New file.
6804         * target.c: Include target-delegates.c.
6805         (init_dummy_target): Call install_dummy_methods.
6806         (complete_target_initialization): Call install_delegators.
6807         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6808         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6809         * make-target-delegates: New file.
6810
6811 2014-02-19  Tom Tromey  <tromey@redhat.com>
6812
6813         * record.c (find_record_target): Use find_target_at.
6814         * target.c (find_target_at): New function.
6815         * target.h (find_target_at): Declare.
6816
6817 2014-02-19  Tom Tromey  <tromey@redhat.com>
6818
6819         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6820         Add 'ops' argument.
6821         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6822         'ops' argument.
6823         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6824         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6825         'ops' argument.
6826         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6827         argument.
6828         * linux-nat.c (save_sigtrap): Update.
6829         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6830         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6831         (linux_nat_close): Update.
6832         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6833         argument.
6834         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6835         argument.
6836         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6837         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6838         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6839         (tmp_to_async): Add 'ops' argument.
6840         (record_full_stopped_by_watchpoint, record_full_async)
6841         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6842         argument.
6843         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6844         (m32r_stopped_by_watchpoint): Add 'ops' argument.
6845         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6846         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6847         (remote_is_async_p, remote_async): Add 'ops' argument.
6848         (remote_stopped_data_address): Update.
6849         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6850         * target.c (update_current_target)
6851         (find_default_can_async_p, find_default_is_async_p): Update.
6852         (init_dummy_target): Update.
6853         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6854         * target.h (struct target_ops) <to_stopped_by_watchpoint,
6855         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6856         (target_can_async_p, target_is_async_p, target_async)
6857         (target_stopped_by_watchpoint): Update.
6858
6859 2014-02-19  Yao Qi  <yao@codesourcery.com>
6860
6861         PR gdb/16220
6862         * gdbarch.sh: Remove startup_gdbarch.
6863         * gdbarch.c: Regenerated.
6864         * gdbarch.h: Likewise.
6865
6866 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
6867
6868         * rl78-tdep.c (rl78_g10_register_name): New function.
6869         (rl78_return_value): Add g10 support.
6870         (rl78_gdbarch_init): Register rl78_g10_register_name for the
6871         g10.
6872
6873 2014-02-17  Doug Evans  <xdje42@gmail.com>
6874
6875         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6876         (SUBDIR_GUILE_SRCS): Ditto.
6877         (scm-gsmob.o): Ditto.
6878
6879 2014-02-17  Yao Qi  <yao@codesourcery.com>
6880
6881         * gnu-nat.c (ILL_RPC): Declare defined function.
6882
6883 2014-02-17  Yao Qi  <yao@codesourcery.com>
6884
6885         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6886         mach_msg_type_number_t.
6887         (gnu_write_inferior): Likewise.
6888
6889 2014-02-17  Yao Qi  <yao@codesourcery.com>
6890
6891         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6892         in format string.
6893         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6894         (inf_validate_procs, inf_signal): Likewise.
6895         (S_exception_raise_request): Likewise.
6896         (do_mach_notify_dead_name): Likewise.
6897         (steal_exc_port): Likewise.
6898         (gnu_read_inferior): Change 'copy_count''s type to
6899         mach_msg_type_number_t.
6900         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
6901         format string.
6902
6903 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
6904
6905         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6906         flag.  Adjust all users; in particular...
6907         (gnu_wait): ..., don't decrement its value in here...
6908         (gnu_create_inferior): ..., and instead set the flag in here,
6909         around the startup_inferior call, and call that one with
6910         START_INFERIOR_TRAPS_EXPECTED.
6911
6912         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6913         (ILL_RPC): ... new macro.
6914         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6915         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6916         (do_mach_notify_send_once, S_proc_setmsgport_reply)
6917         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6918         functions with ILL_RPC macro.
6919         (S_proc_pid2task_reply, S_proc_task2pid_reply)
6920         (S_proc_task2proc_reply, S_proc_proc2task_reply)
6921         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6922         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6923         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6924         (S_proc_getlogin_reply, S_proc_getsid_reply)
6925         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6926         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6927         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6928         (S_proc_getnports_reply, S_proc_is_important_reply)
6929         (S_proc_get_code_reply): New stub functions, generated with
6930         ILL_RPC macro.
6931
6932         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6933         collected the type check structures.
6934
6935         * reply_mig_hack.awk: Don't expect to see the auto keyword.
6936
6937 2014-02-14  Doug Evans  <dje@google.com>
6938
6939         * target.c (target_write_partial): Fix result type.
6940
6941 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
6942
6943         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6944         the proper offsets to access fpregset_t.
6945
6946 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
6947
6948         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6949         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6950         * h8300-tdep.c (setmachinelist): Remove global.
6951         * hppa-tdep.c (hppa_sigtramp): Remove global.
6952         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6953         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6954         * ravenscar-thread.c (update_target_observer): Remove global.
6955         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6956
6957 2014-02-12  Tom Tromey  <tromey@redhat.com>
6958
6959         * common/rsp-low.c: Update comments.
6960         * common/rsp-low.h: Update comments.
6961
6962 2014-02-12  Tom Tromey  <tromey@redhat.com>
6963
6964         * common/rsp-low.c (convert_ascii_to_int): Remove.
6965         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6966
6967 2014-02-12  Tom Tromey  <tromey@redhat.com>
6968
6969         * common/rsp-low.h (unhexify): Don't declare.
6970         * common/rsp-low.c (unhexify): Remove.
6971
6972 2014-02-12  Tom Tromey  <tromey@redhat.com>
6973
6974         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6975         * common/rsp-low.c (convert_int_to_ascii): Remove.
6976
6977 2014-02-12  Tom Tromey  <tromey@redhat.com>
6978
6979         * common/rsp-low.h (hexify): Don't declare.
6980         * common/rsp-low.c (hexify): Remove.
6981
6982 2014-02-12  Tom Tromey  <tromey@redhat.com>
6983
6984         * common/rsp-low.c (hexify): Never take strlen of argument.
6985
6986 2014-02-12  Tom Tromey  <tromey@redhat.com>
6987
6988         * common/rsp-low.c (bin2hex): Never take strlen of argument.
6989         * remote.c (extended_remote_run, remote_rcmd)
6990         (remote_download_trace_state_variable, remote_save_trace_data)
6991         (remote_set_trace_notes): Update.
6992         * tracepoint.c (encode_source_string, tfile_write_status)
6993         (tfile_write_uploaded_tsv): Update.
6994
6995 2014-02-12  Tom Tromey  <tromey@redhat.com>
6996
6997         * tracepoint.c: Include rsp-low.h.
6998         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6999         * remote.c: Include rsp-low.h.
7000         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7001         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7002         (remote_unescape_input): Move to common/rsp-low.c.
7003         * common/rsp-low.h: New file.
7004         * common/rsp-low.c: New file.
7005         * Makefile.in (SFILES): Add common/rsp-low.c.
7006         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7007         (COMMON_OBS): Add rsp-low.o.
7008         (rsp-low.o): New target.
7009
7010 2014-02-12  Tom Tromey  <tromey@redhat.com>
7011
7012         * utils.h: Include print-utils.h.
7013         (host_address_to_string, plongest, pulongest, phex, phex_nz)
7014         (int_string, core_addr_to_string, core_addr_to_string_nz)
7015         (hex_string, hex_string_custom): Don't declare.
7016         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7017         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7018         (hex_string_custom, int_string, core_addr_to_string)
7019         (core_addr_to_string_nz, host_address_to_string): Move to
7020         common/print-utils.c.
7021         * common/print-utils.h: New file.
7022         * common/print-utils.c: New file
7023         * Makefile.in (SFILES): Add common/print-utils.c.
7024         (HFILES_NO_SRCDIR): Add common/print-utils.h.
7025         (COMMON_OBS): Add print-utils.o.
7026         (print-utils.o): New target.
7027
7028 2014-02-12  Tom Tromey  <tromey@redhat.com>
7029
7030         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7031
7032 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
7033
7034         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7035
7036 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
7037
7038         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7039         if a PT_IO ptrace request returns sucessfully but indicates that 0
7040         bytes were transferred.
7041
7042 2014-02-12  Pedro Alves  <palves@redhat.com>
7043             Kevin Buettner <kevinb@redhat.com>
7044
7045         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7046         TYPE_INSTANCE_FLAG_CODE_SPACE.
7047
7048 2014-02-12  Pedro Alves  <palves@redhat.com>
7049
7050         * h8300-tdep.c (pseudo_from_raw_register)
7051         (raw_from_pseudo_register): New functions.
7052         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7053         them.
7054
7055 2014-02-12  Pedro Alves  <palves@redhat.com>
7056
7057         * h8300-tdep.c (h8300_register_sim_regno): New function.
7058         (h8300_gdbarch_init): Install h8300_register_sim_regno as
7059         gdbarch_register_sim_regno hook.
7060
7061 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
7062
7063         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7064
7065 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
7066
7067         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7068
7069 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
7070
7071         * obsd-tdep.h (obsd_init_abi): New prototype.
7072         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7073         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7074         (obsd_init_abi): New functions.
7075         * i386obsd-tdep.c: Include "obsd-tdep.h".
7076         (i386obsd_init_abi): Call obsd_init_abi.
7077         * amd64obsd-tdep.c: Include "obsd-tdep.h".
7078         (amd64obsd_init_abi): Call obsd_init_abi.
7079         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7080         obsd-tdep.c to gdb_target_obs.
7081
7082 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
7083
7084         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7085         double float arguments to 16-byte in the argument slots.
7086
7087 2014-02-11  Doug Evans  <xdje42@gmail.com>
7088
7089         * configure.ac: Don't crash if pkg-config is not found and guile
7090         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
7091         in guile checks.
7092         * configure: Regenerate.
7093
7094 2014-02-11  Yao Qi  <yao@codesourcery.com>
7095
7096         * aix-thread.c (aix_thread_xfer_partial): Update comments.
7097         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7098         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7099         * gnu-nat.c (gnu_xfer_memory): Likewise.
7100         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
7101         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7102         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7103         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7104
7105 2014-02-11  Yao Qi  <yao@codesourcery.com>
7106
7107         * target.h (enum target_xfer_error): Rename to ...
7108         (enum target_xfer_status): ... it.  New.  All users updated.
7109         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7110         New.
7111         (TARGET_XFER_STATUS_ERROR_P): New macro.
7112         (target_xfer_error_to_string): Remove declaration.
7113         (target_xfer_status_to_string): Declare.
7114         (target_xfer_partial_ftype): Adjust it.
7115         (struct target_ops) <to_xfer_partial>: Return
7116         target_xfer_status.  Add argument xfered_len.  Update
7117         comments.
7118         * target.c (target_xfer_error_to_string): Rename to ...
7119         (target_xfer_status_to_string): ... it.  New.  All callers
7120         updated.
7121         (target_read_live_memory): Likewise.  Call target_xfer_partial
7122         instead of target_read.
7123         (memory_xfer_live_readonly_partial): Return
7124         target_xfer_status.  Add argument xfered_len.
7125         (raw_memory_xfer_partial): Likewise.
7126         (memory_xfer_partial_1): Likewise.
7127         (memory_xfer_partial): Likewise.
7128         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
7129         properly.  Update debug message.
7130         (default_xfer_partial, current_xfer_partial): Likewise.
7131         (target_write_partial): Likewise.
7132         (target_read_partial): Likewise.  All callers updated.
7133         (read_whatever_is_readable): Likewise.
7134         (target_write_with_progress): Likewise.
7135         (target_read_alloc_1): Likewise.
7136
7137         * aix-thread.c (aix_thread_xfer_partial): Likewise.
7138         * auxv.c (procfs_xfer_auxv): Likewise.
7139         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7140         * bfd-target.c (target_bfd_xfer_partial): Likewise.
7141         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7142         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7143         * corefile.c (read_memory): Adjust.
7144         * corelow.c (core_xfer_partial): Likewise.
7145         * ctf.c (ctf_xfer_partial): Likewise.
7146         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
7147         updated.
7148         (darwin_xfer_partial): Likewise.
7149         * exec.c (section_table_xfer_memory_partial): Likewise.  All
7150         callers updated.
7151         (exec_xfer_partial): Likewise.
7152         * exec.h (section_table_xfer_memory_partial): Update
7153         declaration.
7154         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
7155         negative.
7156         (gnu_xfer_partial): Likewise.
7157         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7158         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7159         (ia64_hpux_xfer_solib_got): Likewise.
7160         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
7161         type of 'partial_len' to ULONGEST.
7162         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7163         * linux-nat.c (linux_xfer_siginfo ): Likewise.
7164         (linux_nat_xfer_partial): Likewise.
7165         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7166         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7167         * monitor.c (monitor_xfer_memory): Likewise.
7168         (monitor_xfer_partial): Likewise.
7169         * procfs.c (procfs_xfer_partial): Likewise.
7170         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7171         * record-full.c (record_full_xfer_partial): Likewise.
7172         (record_full_core_xfer_partial): Likewise.
7173         * remote-sim.c (gdbsim_xfer_memory): Likewise.
7174         (gdbsim_xfer_partial): Likewise.
7175         * remote.c (remote_write_bytes_aux): Likewise.  All callers
7176         updated.
7177         (remote_write_bytes, remote_read_bytes): Likewise.  All
7178         callers updated.
7179         (remote_flash_erase): Likewise.  All callers updated.
7180         (remote_write_qxfer): Likewise.  All callers updated.
7181         (remote_read_qxfer): Likewise.  All callers updated.
7182         (remote_xfer_partial): Likewise.
7183         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7184         (rs6000_xfer_shared_libraries): Likewise.
7185         * sol-thread.c (sol_thread_xfer_partial): Likewise.
7186         (sol_thread_xfer_partial): Likewise.
7187         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7188         (sparc_xfer_partial): Likewise.
7189         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
7190         updated.
7191         (spu_xfer_partial): Likewise.
7192         * spu-multiarch.c (spu_xfer_partial): Likewise.
7193         * tracepoint.c (tfile_xfer_partial): Likewise.
7194         * windows-nat.c (windows_xfer_memory): Likewise.
7195         (windows_xfer_shared_libraries): Likewise.
7196         (windows_xfer_partial): Likewise.
7197         * valprint.c: Replace 'target_xfer_error' with
7198         'target_xfer_status' in comments.
7199
7200 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
7201
7202         Checked in by Joel Brobecker <brobecker@adacore.com>.
7203         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7204
7205 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
7206
7207         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7208         function parameters.
7209
7210 2014-02-10  Will Newton  <will.newton@linaro.org>
7211
7212         * elfread.c (elf_rel_plt_read): Look for a .got section if
7213         looking up .got.plt fails.
7214         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7215         on address passed to elf_gnu_ifunc_record_cache.
7216         (elf_gnu_ifunc_resolve_addr): Likewise.
7217         (elf_gnu_ifunc_resolver_return_stop): Likewise.
7218
7219 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
7220
7221         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7222         (X_RETTURN): New macro.
7223         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7224
7225         * sparc64-tdep.c (sparc64_init_abi): Hook
7226         sparc_in_function_epilogue_p.
7227
7228 2014-02-10  Gary Benson  <gbenson@redhat.com>
7229
7230         * symfile-debug.c (debug_qf_expand_symtabs_matching):
7231         Rename name_matcher to symbol_matcher.
7232
7233 2014-02-10  Gary Benson  <gbenson@redhat.com>
7234
7235         * symfile-debug.c (debug_qf_expand_symtabs_matching):
7236         Use expand_symtabs_file_matcher_ftype and
7237         expand_symtabs_symbol_matcher_ftype.
7238
7239 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7240
7241         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7242         (struct ada_symbol_cache): New.
7243         (ada_free_symbol_cache): Forward declare.
7244         (struct ada_pspace_data): New.
7245         (ada_pspace_data_handle): New static global.
7246         (get_ada_pspace_data, ada_pspace_data_cleanup)
7247         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7248         (cache_space, cache): Delete, now folded inside struct
7249         ada_pspace_data.
7250         (ada_get_symbol_cache): New function.
7251         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7252         implementation.
7253         (_initialize_ada_language): Remove initialization of cache_space.
7254         Move call to observer_attach_inferior_exit up, grouping it
7255         with the other observer registrations inside this function.
7256         Rename command to be more general.  Add call to
7257         register_program_space_data_with_cleanup.
7258
7259 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7260
7261         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7262         ada_new_objfile_observer.
7263         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7264         (_initialize_tasks): Update uses of ada_new_objfile_observer
7265         and ada_tasks_normal_stop_observer.
7266
7267 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7268
7269         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7270         returned by the 'Length attribute to integer.
7271
7272 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7273
7274         * ada-lang.c (_initialize_ada_language): Initialize
7275         cache_space obstack.
7276
7277 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7278
7279         * ada-lang.c (HASH_SIZE): New macro.
7280         (struct cache_entry): New type.
7281         (cache_space, cache): New static globals.
7282         (ada_clear_symbol_cache, find_entry): New functions.
7283         (lookup_cached_symbol, cache_symbol): Implement.
7284         (ada_new_objfile_observer, ada_free_objfile_observer): New.
7285         (_initialize_ada_language): Attach ada_new_objfile_observer
7286         and ada_free_objfile_observer.
7287
7288 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
7289
7290         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7291         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7292         struct block * parameter.
7293         (ada_lookup_symbol_list_worker): Constify local variable "block".
7294         Remove cast which is no longer necessary.
7295
7296 2014-02-10  Doug Evans  <xdje42@gmail.com>
7297
7298         Add Guile as an extension language.
7299         * NEWS: Mention Guile scripting.
7300         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7301         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7302         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7303         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7304         (CLIBS): Add GUILE_LIBS.
7305         (install-guile): New rule.
7306         (guile.o): New rule.
7307         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7308         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7309         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7310         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7311         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7312         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7313         (scm-type.o, scm-utils.o, scm-value.o): New rules.
7314         * configure.ac: New option --with-guile.
7315         * configure: Regenerate.
7316         * config.in: Regenerate.
7317         * auto-load.c: Remove #include "python/python.h".  Add #include
7318         "gdb/section-scripts.h".
7319         (source_section_scripts): Handle Guile scripts.
7320         (_initialize_auto_load): Add name of Guile objfile script to
7321         scripts-directory help text.
7322         * breakpoint.c (condition_command): Tweak comment to include Scheme.
7323         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7324         (struct breakpoint): New member scm_bp_object.
7325         * defs.h (enum command_control_type): New value guile_control.
7326         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
7327         "extension.h".
7328         (show_user): Update comment.
7329         (_initialize_cli_cmds): Update help text for "show user".  Update help
7330         text for max-user-call-depth.
7331         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
7332         "extension.h".
7333         (multi_line_command_p): Add guile_control.
7334         (print_command_lines): Handle guile_control.
7335         (execute_control_command, recurse_read_control_structure): Ditto.
7336         (process_next_line): Recognize "guile" commands.
7337         * disasm.c (gdb_disassemble_info): Make non-static.
7338         * disasm.h: #include "dis-asm.h".
7339         (struct gdbarch): Add forward decl.
7340         (gdb_disassemble_info): Declare.
7341         * extension.c: #include "guile/guile.h".
7342         (extension_languages): Add guile.
7343         (get_ext_lang_defn): Handle EXT_LANG_GDB.
7344         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7345         * gdbtypes.c (get_unsigned_type_max): New function.
7346         (get_signed_type_minmax): New function.
7347         * gdbtypes.h (get_unsigned_type_max): Declare.
7348         (get_signed_type_minmax): Declare.
7349         * guile/README: New file.
7350         * guile/guile-internal.h: New file.
7351         * guile/guile.c: New file.
7352         * guile/guile.h: New file.
7353         * guile/scm-arch.c: New file.
7354         * guile/scm-auto-load.c: New file.
7355         * guile/scm-block.c: New file.
7356         * guile/scm-breakpoint.c: New file.
7357         * guile/scm-disasm.c: New file.
7358         * guile/scm-exception.c: New file.
7359         * guile/scm-frame.c: New file.
7360         * guile/scm-gsmob.c: New file.
7361         * guile/scm-iterator.c: New file.
7362         * guile/scm-lazy-string.c: New file.
7363         * guile/scm-math.c: New file.
7364         * guile/scm-objfile.c: New file.
7365         * guile/scm-ports.c: New file.
7366         * guile/scm-pretty-print.c: New file.
7367         * guile/scm-safe-call.c: New file.
7368         * guile/scm-string.c: New file.
7369         * guile/scm-symbol.c: New file.
7370         * guile/scm-symtab.c: New file.
7371         * guile/scm-type.c: New file.
7372         * guile/scm-utils.c: New file.
7373         * guile/scm-value.c: New file.
7374         * guile/lib/gdb.scm: New file.
7375         * guile/lib/gdb/boot.scm: New file.
7376         * guile/lib/gdb/experimental.scm: New file.
7377         * guile/lib/gdb/init.scm: New file.
7378         * guile/lib/gdb/iterator.scm: New file.
7379         * guile/lib/gdb/printing.scm: New file.
7380         * guile/lib/gdb/types.scm: New file.
7381         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7382         (VPATH): Add $(GUILE_SRCDIR).
7383         (GUILE_DIR): New variable.
7384         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7385         (all): Add stamp-guile dependency.
7386         (stamp-guile): New rule.
7387         (clean-guile, install-guile, uninstall-guile): New rules.
7388         (install-only): Add install-guile dependency.
7389         (uninstall): Add uninstall-guile dependency.
7390         (clean): Add clean-guile dependency.
7391
7392 2014-02-09  Doug Evans  <xdje42@gmail.com>
7393
7394         Revert this patch (which I approved, mea culpa).
7395
7396         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
7397
7398         * Makefile.in (all-lib): Remove.
7399         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7400
7401 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7402
7403         Fix Python stack corruption.
7404         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7405         gdb_py_longest.
7406
7407 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
7408
7409         * Makefile.in (all-lib): Remove.
7410         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7411
7412 2014-02-07  Doug Evans  <dje@google.com>
7413
7414         * extension-priv.h (extension_language_script_ops): Add comment.
7415         (extension_language_ops): Add comment.
7416         (active_ext_lang_state): Fix typo in comment.
7417
7418 2014-02-07  Pedro Alves  <palves@redhat.com>
7419
7420         PR breakpoints/16292
7421         * infrun.c (handle_signal_stop) <signal arrives while stepping
7422         over a breakpoint>: Switch back to the stepping thread.
7423
7424 2014-02-07  Yao Qi  <yao@codesourcery.com>
7425
7426         * target.c (target_xfer_partial): Return zero if LEN is zero.
7427
7428 2014-02-07  Yao Qi  <yao@codesourcery.com>
7429
7430         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7431         (ld_so_xfer_auxv): Likewise.
7432         * bfd-target.c (target_bfd_xfer_partial): Likewise.
7433         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7434         * corelow.c (core_xfer_partial): Likewise.
7435         * ctf.c (ctf_xfer_partial): Likewise.
7436         * darwin-nat.c (darwin_read_dyld_info): Likewise.
7437         (darwin_xfer_partial): Likewise.
7438         * exec.c (exec_xfer_partial): Likewise.
7439         * gnu-nat.c (gnu_xfer_partial): Likewise.
7440         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7441         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7442         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7443         * linux-nat.c (linux_xfer_siginfo): Likewise.
7444         (linux_proc_xfer_spu): Likewise.
7445         * procfs.c (procfs_xfer_partial): Likewise.
7446         * record-full.c (record_full_xfer_partial): Likewise.
7447         (record_full_core_xfer_partial): Likewise.
7448         * remote-sim.c (gdbsim_xfer_partial): Likewise.
7449         * remote.c (remote_write_qxfer): Likewise.
7450         (remote_write_qxfer, remote_read_qxfer): Likewise.
7451         (remote_xfer_partial): Likewise.
7452         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7453         (rs6000_xfer_shared_libraries): Likewise.
7454         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7455         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7456         (spu_xfer_partial): Likewise.
7457         * target.c (memory_xfer_partial_1): Likewise.
7458         * tracepoint.c (tfile_xfer_partial): Likewise.
7459         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7460         (windows_xfer_partial): Likewise.
7461
7462 2014-02-07  Yao Qi  <yao@codesourcery.com>
7463
7464         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
7465         comments.
7466         (core_xfer_shared_libraries_aix): Likewise.
7467         * gdbarch.c, gdbarch.h: Regenerated.
7468         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7469         ULONGEST.  Change 'len_avail' type to ULONGEST.
7470         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7471         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7472         declaration.
7473         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7474
7475 2014-02-07  Yao Qi  <yao@codesourcery.com>
7476
7477         * corefile.c (memory_error): Get 'exception' from ERR and pass
7478         'exception' to throw_error.
7479
7480 2014-02-06  Doug Evans  <xdje42@gmail.com>
7481
7482         * configure.ac (libpython checking): Remove all but python.o from
7483         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
7484         * configure: Regenerate.
7485
7486         * Makefile.in (SFILES): Add extension.c.
7487         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7488         (COMMON_OBS): Add extension.o.
7489         * extension.h: New file.
7490         * extension-priv.h: New file.
7491         * extension.c: New file.
7492
7493         * python/python-internal.h: #include "extension.h".
7494         (gdbpy_auto_load_enabled): Declare.
7495         (gdbpy_apply_val_pretty_printer): Declare.
7496         (gdbpy_apply_frame_filter): Declare.
7497         (gdbpy_preserve_values): Declare.
7498         (gdbpy_breakpoint_cond_says_stop): Declare.
7499         (gdbpy_breakpoint_has_cond): Declare.
7500         (void source_python_script_for_objfile): Delete.
7501         * python/python.c: #include "extension-priv.h".
7502         Delete inclusion of "observer.h".
7503         (extension_language_python): Moved here and renamed from
7504         script_language_python in py-auto-load.c.
7505         Redefined to be of type extension_language_defn.
7506         (python_extension_script_ops): New global.
7507         (python_extension_ops): New global.
7508         (struct python_env): New member previous_active.
7509         (restore_python_env): Call restore_active_ext_lang.
7510         (ensure_python_env): Call set_active_ext_lang.
7511         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7512         New arg extlang.
7513         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7514         New arg extlang.
7515         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7516         New arg extlang.
7517         (gdbpy_eval_from_control_command): Renamed from
7518         eval_python_from_control_command, made static.  New arg extlang.
7519         (gdbpy_source_script) Renamed from source_python_script, made static.
7520         New arg extlang.
7521         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
7522         result to int.  New arg extlang.
7523         (gdbpy_source_objfile_script): Renamed from
7524         source_python_script_for_objfile, made static.  New arg extlang.
7525         (gdbpy_start_type_printers): Renamed from start_type_printers, made
7526         static.  New args extlang, extlang_printers.  Change result type to
7527         "void".
7528         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7529         static.  New arg extlang.  Rename arg printers to extlang_printers
7530         and change type to ext_lang_type_printers *.
7531         (gdbpy_free_type_printers): Renamed from free_type_printers, made
7532         static.  Replace argument arg with extlang, extlang_printers.
7533         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7534         (!HAVE_PYTHON, source_python_script): Delete.
7535         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7536         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7537         (!HAVE_PYTHON, start_type_printers): Delete.
7538         (!HAVE_PYTHON, apply_type_printers): Delete.
7539         (!HAVE_PYTHON, free_type_printers): Delete.
7540         (_initialize_python): Delete call to observer_attach_before_prompt.
7541         (finalize_python): Set/restore active extension language.
7542         (gdbpy_finish_initialization) Renamed from
7543         finish_python_initialization, made static.  New arg extlang.
7544         (gdbpy_initialized): New function.
7545         * python/python.h: #include "extension.h".  Delete #include
7546         "value.h", "mi/mi-cmds.h".
7547         (extension_language_python): Declare.
7548         (GDBPY_AUTO_FILE_NAME): Delete.
7549         (enum py_bt_status): Moved to extension.h and renamed to
7550         ext_lang_bt_status.
7551         (enum frame_filter_flags): Moved to extension.h.
7552         (enum py_frame_args): Moved to extension.h and renamed to
7553         ext_lang_frame_args.
7554         (finish_python_initialization): Delete.
7555         (eval_python_from_control_command): Delete.
7556         (source_python_script): Delete.
7557         (apply_val_pretty_printer): Delete.
7558         (apply_frame_filter): Delete.
7559         (preserve_python_values): Delete.
7560         (gdbpy_script_language_defn): Delete.
7561         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7562         (start_type_printers, apply_type_printers, free_type_printers): Delete.
7563
7564         * auto-load.c: #include "extension.h".
7565         (GDB_AUTO_FILE_NAME): Delete.
7566         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
7567         (script_language_gdb): Delete, moved to extension.c and renamed to
7568         extension_language_gdb.
7569         (source_gdb_script_for_objfile): Delete.
7570         (auto_load_pspace_info): New member unsupported_script_warning_printed.
7571         (loaded_script): Change type of language member to
7572         struct extension_language_defn *.
7573         (init_loaded_scripts_info): Initialize
7574         unsupported_script_warning_printed.
7575         (maybe_add_script): Make static.  Change type of language arg to
7576         struct extension_language_defn *.
7577         (clear_section_scripts): Reset unsupported_script_warning_printed.
7578         (auto_load_objfile_script_1): Rewrite to use extension language API.
7579         (auto_load_objfile_script): Make public.  Remove support-compiled-in
7580         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7581         (source_section_scripts): Rewrite to use extension language API.
7582         (load_auto_scripts_for_objfile): Rewrite to use
7583         auto_load_scripts_for_objfile.
7584         (collect_matching_scripts_data): Change type of language member to
7585         struct extension_language_defn *.
7586         (auto_load_info_scripts): Change type of language arg to
7587         struct extension_language_defn *.
7588         (unsupported_script_warning_print): New function.
7589         (script_not_found_warning_print): Make static.
7590         (_initialize_auto_load): Rewrite construction of scripts-directory
7591         help.
7592         * auto-load.h (struct objfile): Add forward decl.
7593         (struct script_language): Delete.
7594         (struct auto_load_pspace_info): Add forward decl.
7595         (struct extension_language_defn): Add forward decl.
7596         (maybe_add_script): Delete.
7597         (auto_load_objfile_script): Declare.
7598         (script_not_found_warning_print): Delete.
7599         (auto_load_info_scripts): Update prototype.
7600         (auto_load_gdb_scripts_enabled): Declare.
7601         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7602         auto_load_python_scripts_enabled and made public.
7603         (script_language_python): Delete, moved to python.c.
7604         (gdbpy_script_language_defn): Delete.
7605         (info_auto_load_python_scripts): Update to use
7606         extension_language_python.
7607
7608         * breakpoint.c (condition_command): Replace call to
7609         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7610         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7611         with call to breakpoint_ext_lang_cond_says_stop.
7612         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7613         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
7614         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7615         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7616         New arg slang.
7617         (local_setattro): Print name of extension language with existing
7618         stop condition.
7619
7620         * valprint.c (val_print, value_print): Update to call
7621         apply_ext_lang_val_pretty_printer.
7622         * cp-valprint.c (cp_print_value): Update call to
7623         apply_ext_lang_val_pretty_printer.
7624         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7625         (gdbpy_apply_val_pretty_printer): Renamed from
7626         apply_val_pretty_printer.  New arg extlang.
7627         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7628
7629         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7630         extension language API.
7631         * cli/cli-script.c (execute_control_command): Update to call
7632         eval_ext_lang_from_control_command.
7633
7634         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7635         enum ext_lang_bt_status values.  Update call to
7636         apply_ext_lang_frame_filter.
7637         (mi_cmd_stack_list_locals): Ditto.
7638         (mi_cmd_stack_list_args): Ditto.
7639         (mi_cmd_stack_list_variables): Ditto.
7640         * mi/mi-main.c: Delete #include "python/python-internal.h".
7641         Add #include "extension.h".
7642         (mi_cmd_list_features): Replace reference to python internal variable
7643         gdb_python_initialized with call to ext_lang_initialized_p.
7644
7645         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7646         Update to use enum ext_lang_frame_args.  Update to call
7647         apply_ext_lang_frame_filter.
7648         * python/py-framefilter.c (extract_sym): Update to use enum
7649         ext_lang_bt_status.
7650         (extract_value, py_print_type, py_print_value): Ditto.
7651         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7652         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7653         (py_print_frame): Ditto.
7654         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7655         New arg extlang.  Update to use enum ext_lang_bt_status.
7656
7657         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7658         finish_python_initialization.  Replace with call to
7659         finish_ext_lang_initialization.
7660
7661         * typeprint.c (do_free_global_table): Update to call
7662         free_ext_lang_type_printers.
7663         (create_global_typedef_table): Update to call
7664         start_ext_lang_type_printers.
7665         (find_global_typedef): Update to call apply_ext_lang_type_printers.
7666         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7667         (type_print_options): Change type of global_printers from "void *"
7668         to "struct ext_lang_type_printers *".
7669
7670         * value.c (preserve_values): Update to call preserve_ext_lang_values.
7671         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7672         (gdbpy_preserve_values): Renamed from preserve_python_values.
7673         New arg extlang.
7674         (!HAVE_PYTHON, preserve_python_values): Delete.
7675
7676         * utils.c (quit_flag): Delete, moved to extension.c.
7677         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7678         extension.c.
7679
7680         * eval.c: Delete #include "python/python.h".
7681         * main.c: Delete #include "python/python.h".
7682
7683         * defs.h: Update comment.
7684
7685 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
7686
7687         GDB 7.7 released.
7688
7689 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
7690
7691         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7692         defined.
7693
7694 2014-02-05  Yao Qi  <yao@codesourcery.com>
7695
7696         * remote.c (remote_pass_signals): Remove local 'buf' and use
7697         rs->buf.
7698         (remote_program_signals): Likewise.
7699
7700 2014-02-05  Yao Qi  <yao@codesourcery.com>
7701
7702         * ctf.c: Include "inferior.h" and "gdbthread.h".
7703         (CTF_PID): A new macro.
7704         (ctf_open): Call inferior_appeared and add_thread_silent.
7705         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7706         (ctf_thread_alive): New function.
7707         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7708
7709 2014-02-05  Yao Qi  <yao@codesourcery.com>
7710
7711         Revert this patch:
7712
7713         2013-05-24  Yao Qi  <yao@codesourcery.com>
7714
7715         * tracepoint.c (TFILE_PID): Remove.
7716         (tfile_open): Don't add thread and inferior.
7717         (tfile_close): Don't set 'inferior_ptid'.  Don't call
7718         exit_inferior_silent.
7719         (tfile_thread_alive): Remove.
7720         (init_tfile_ops): Don't set field 'to_thread_alive' of
7721         tfile_ops.
7722
7723 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
7724
7725         * remote.c (remote_start_remote): Call remote_check_symbols even
7726         if only symbol-file (not file) has been given.
7727
7728 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7729
7730         * gdbarch.sh (skip_entrypoint): New callback.
7731         * gdbarch.c, gdbarch.h: Regenerate.
7732         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7733         * infrun.c (fill_in_stop_func): Likewise.
7734         * ppc-linux-tdep.c: Include "elf/ppc64.h".
7735         (ppc_elfv2_elf_make_msymbol_special): New function.
7736         (ppc_elfv2_skip_entrypoint): Likewise.
7737         (ppc_linux_init_abi): Install them for ELFv2.
7738
7739 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7740
7741         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7742         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7743         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7744         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
7745         structures returned in GPRs.
7746
7747 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7748
7749         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7750         offset to the stack parameter list for the ELFv2 ABI.
7751
7752 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7753
7754         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7755         set_gdbarch_convert_from_func_ptr_addr and
7756         set_gdbarch_elf_make_msymbol_special for ELFv1.
7757         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7758         function descriptors on ELFv1.
7759         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
7760         set up r12 at function entry.
7761
7762 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7763
7764         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7765         (struct gdbarch_tdep): New member elf_abi.
7766
7767         * rs6000-tdep.c: Include "elf/ppc64.h".
7768         (rs6000_gdbarch_init): Detect ELF ABI version.
7769
7770 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7771
7772         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7773         within a register pair holding a DFP 128-bit value on little-endian.
7774         (ppc64_sysv_abi_return_value_base): Likewise.
7775         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7776         (dfp_pseudo_register_write): Likewise.
7777
7778 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7779
7780         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7781         offset on little-endian when passing _Decimal32.
7782         (ppc64_sysv_abi_return_value_base): Likewise for return values.
7783
7784 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7785
7786         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7787         of the overlapped FP register within the VSX register on little-
7788         endian platforms.
7789         (efpr_pseudo_register_write): Likewise.
7790
7791 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7792
7793         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7794         offset on little-endian when passing small structures.
7795
7796 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7797
7798         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7799         (struct ppc64_sysv_argpos): New data structure.
7800         (ppc64_sysv_abi_push_float): Remove.
7801         (ppc64_sysv_abi_push_val): New function.
7802         (ppc64_sysv_abi_push_integer): Likewise.
7803         (ppc64_sysv_abi_push_freg): Likewise.
7804         (ppc64_sysv_abi_push_vreg): Likewise.
7805         (ppc64_sysv_abi_push_param): Likewise.
7806         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7807         (ppc64_sysv_abi_return_value_base): New function.
7808         (ppc64_sysv_abi_return_value): Refactor to use it.
7809
7810 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7811
7812         * NEWS: Document new target powerpc64le-*-linux*.
7813
7814 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
7815
7816         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7817         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7818         core dumps.
7819         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7820         register set used in ELF core dumps.  Add floating-point register set.
7821
7822 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
7823
7824         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite 
7825         dwarf2_to_gdb[] table using symbolic constants.  Adjust
7826         penultimate entry from number representing the PC register
7827         to symbolic constant representing the MDR register.  Add
7828         constant for the PC register to the end of the table.
7829
7830 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
7831
7832         * bsd-kvm.c: Include <sys/param.h>
7833
7834 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
7835
7836         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7837
7838 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
7839
7840         * ada-lang.h (clear_ada_sym_cache): Delete.
7841
7842 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7843
7844         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7845
7846 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
7847
7848         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7849           the sigreturn register save area only if the syscall is
7850           sigreturn.
7851
7852 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
7853
7854         * valops.c (value_slice): Minor reformatting.
7855
7856 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
7857
7858         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7859
7860 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
7861
7862         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7863         New static globals.
7864         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7865         (ada_ignore_descriptive_types_p): New static global.
7866         (find_parallel_type_by_descriptive_type): Return immediately
7867         if ada_ignore_descriptive_types_p is set.
7868         (_initialize_ada_language): Register new commands "maintenance
7869         set ada", "maintenance show ada", "maintenance set ada
7870         ignore-descriptive-types" and "maintenance show ada
7871         ignore-descriptive-types".
7872         * NEWS: Add entry for new "maint ada set/show
7873         ignore-descriptive-types" commands.
7874
7875 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
7876
7877         * record-btrace.c (record_btrace_close): Call btrace_teardown
7878         for all threads.
7879
7880 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7881
7882         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7883         "ui-out.h".
7884
7885 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7886
7887         * ada-typeprint (type_is_full_subrange_of_target_type):
7888         New function.
7889         (print_range): Add parameter bounds_prefered_p.  If not set,
7890         try printing range types using the name of their base type.
7891         (print_range_type): Add parameter bounds_prefered_p.
7892         Use it in call to print_range.
7893         (print_array_type, ada_print_type): Update calls to print_range
7894         and print_range_type.
7895
7896 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7897
7898         * ada-typeprint.c (print_array_type, print_choices, print_range)
7899         (print_range_bound, print_dynamic_range_bound, print_range_type):
7900         Remove declaration.
7901
7902 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7903
7904         * ada-typeprint.c (print_range): Add missing empty line
7905         after local declaration.
7906
7907 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7908
7909         * ada-valprint.c (print_optional_low_bound): Get index_type's
7910         target type for as long as it is a TYPE_CODE_RANGE.
7911
7912 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
7913
7914         * procfs.c (procfs_make_note_section): Remove assertion and
7915         associated comment.
7916
7917 2014-01-24  Yao Qi  <yao@codesourcery.com>
7918
7919         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7920         * corelow.c (get_core_siginfo): Likewise.
7921
7922 2014-01-24  Yao Qi  <yao@codesourcery.com>
7923
7924         * remote.c (remote_write_bytes_aux): Change type of 'len' to
7925         ULONGEST.  Don't check 'len' is negative.
7926         (remote_write_bytes):  Change type of 'len' to ULONGEST.
7927
7928 2014-01-23  Tom Tromey  <tromey@redhat.com>
7929
7930         PR python/16485:
7931         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7932         Handle exception from frame.block.
7933         (FrameVars.fetch_frame_locals): Likewise.
7934
7935 2014-01-23  Tom Tromey  <tromey@redhat.com>
7936
7937         PR python/16487:
7938         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7939         on a NULL pointer.  Move "goto error" to correct place.
7940
7941 2014-01-23  Tom Tromey  <tromey@redhat.com>
7942
7943         PR python/16491:
7944         * python/py-framefilter.c (apply_frame_filter): Call
7945         ensure_python_env after computing gdbarch.
7946
7947 2014-01-23  Yao Qi  <yao@codesourcery.com>
7948
7949         * target.c (raw_memory_xfer_partial): Change argument type
7950         from void * to gdb_byte *.
7951         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7952
7953 2014-01-22  Doug Evans  <dje@google.com>
7954
7955         New gdbserver option --debug-format=timestamp.
7956         * NEWS: Mention it.
7957
7958 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7959
7960         * syscalls/s390x-linux.xml: New file.
7961         * syscalls/s390-linux.xml: New file.
7962         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7963         (XML_SYSCALL_FILENAME_S390X): Likewise.
7964         (op_svc): New enum value for SVC opcode.
7965         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7966         (s390_linux_get_syscall_number): New function.
7967         (s390_gdbarch_init): Register '*get_syscall_number' and the
7968         syscall xml file name.
7969         * data-directory/Makefile.in (SYSCALLS_FILES): Add
7970         "s390-linux.xml" and "s390x-linux.xml".
7971         * NEWS: Announce new feature.
7972
7973 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
7974
7975         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7976
7977 2014-01-22  Pedro Alves  <palves@redhat.com>
7978
7979         * xtensa-config.c: Include defs.h.
7980
7981 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
7982
7983         * common/common-utils.h: Add "ARI:" comment beside __func__
7984         reference.
7985
7986 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
7987
7988         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7989         documentation a bit.
7990
7991 2014-01-21  Roland McGrath  <mcgrathr@google.com>
7992
7993         * configure.ac: Call AM_PROG_INSTALL_STRIP.
7994         * configure: Regenerate.
7995         * aclocal.m4: Regenerate.
7996         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7997         New substituted variables.
7998         (install-strip): New target.
7999         (INSTALL_SCRIPT): New substituted variable.
8000         (FLAGS_TO_PASS): Add it.
8001         (install-only): Use $(INSTALL_SCRIPT) rather than
8002         $(INSTALL_PROGRAM) for gcore.
8003
8004 2014-01-20  Tom Tromey  <tromey@redhat.com>
8005
8006         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8007         together.
8008
8009 2014-01-20  Tom Tromey  <tromey@redhat.com>
8010
8011         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8012         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8013         (deprecated_cmd_warning, complete_on_cmdlist): Update.
8014         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8015         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8016         (struct cmd_list_element) <flags>: Remove.
8017         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8018         doc_allocated>: New fields.
8019         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8020         bitfields.
8021         * maint.c (maintenance_do_deprecate): Update.
8022         * top.c (execute_command): Update.
8023
8024 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
8025
8026         * xtensa-linux-nat.c: Include asm/ptrace.h.
8027
8028 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8029
8030         * Makefile.in (SFILES): Add d-support.c.
8031         (COMMON_OBS): Add d-support.o.
8032         * d-lang.h (d_parse_symbol): Add comment, now defined in
8033         d-support.c.
8034         * d-lang.c (parse_call_convention)
8035         (parse_attributes, parse_function_types)
8036         (parse_function_args, parse_type, parse_identifier)
8037         (call_convention_p, d_parse_symbol): Move functions to ...
8038         * d-support.c: ... New file.
8039
8040 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8041
8042         * d-lang.h (d_parse_symbol): Add declaration.
8043         * d-lang.c (extract_identifiers)
8044         (extract_type_info): Remove functions.
8045         (parse_call_convention, parse_attributes)
8046         (parse_function_types, parse_function_args)
8047         (parse_type, parse_identifier, call_convention_p)
8048         (d_parse_symbol): New functions.
8049         (d_demangle): Use d_parse_symbol to demangle D symbols.
8050
8051 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8052
8053         * d-lang.h (struct builtin_d_type): New data type.
8054         (builtin_d_type): Add declaration.
8055         * d-lang.c (d_language_arch_info, build_d_types)
8056         (builtin_d_type): New functions.
8057         (enum d_primitive_types): New data type.
8058         (d_language_defn): Change c_language_arch_info to
8059         d_language_arch_info.
8060         (d_type_data): New static variable.
8061         (_initialize_d_language): Initialize d_type_data.
8062
8063 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8064
8065         * d-lang.h (d_main_name): Add declaration.
8066         * d-lang.c (d_main_name): New function.
8067         * symtab.c (find_main_name): Add call to d_main_name.
8068
8069 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8070
8071         * d-lang.c (d_language_defn): Change macro_expansion_c to
8072         macro_expansion_no.
8073
8074 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8075
8076         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8077
8078 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
8079
8080         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8081         gdb_exception" declaration.
8082         * remote.c (getpkt_or_notif_sane): Likewise.
8083
8084 2014-01-17  Doug Evans  <dje@google.com>
8085
8086         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8087         function, contents of dirnames_to_char_ptr_vec_append moved here.
8088         (delim_string_to_char_ptr_vec): New function.
8089         (dirnames_to_char_ptr_vec_append): Rewrite.
8090         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8091
8092 2014-01-17  Doug Evans  <dje@google.com>
8093
8094         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8095         and moved here ...
8096         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8097         #include "common-utils.h".
8098         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8099         * common/vec.h (VEC_ASSERT_PASS): Update.
8100         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8101         (MACH_CHECK_ERROR): Update.
8102
8103 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
8104
8105         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8106         comments.
8107         * gdbarch.h: Regenerate.
8108
8109 2014-01-16  Tom Tromey  <tromey@redhat.com>
8110
8111         * value.c (struct value) <regnum>: Move earlier.
8112
8113 2014-01-16  Tom Tromey  <tromey@redhat.com>
8114
8115         * remote.c (extended_remote_create_inferior): Rename from
8116         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
8117         old implementation.
8118
8119 2014-01-16  Pedro Alves  <palves@redhat.com>
8120
8121         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8122         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8123         the backchain.
8124
8125 2014-01-16  Doug Evans  <dje@google.com>
8126
8127         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8128
8129 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8130
8131         * btrace.h (btrace_thread_flag): New.
8132         (struct btrace_thread_info) <flags>: New.
8133         * record-btrace.c (record_btrace_resume_thread)
8134         (record_btrace_find_thread_to_move, btrace_step_no_history)
8135         (btrace_step_stopped, record_btrace_start_replaying)
8136         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8137         (record_btrace_find_resume_thread): New.
8138         (record_btrace_resume, record_btrace_wait): Extend.
8139         (record_btrace_can_execute_reverse): New.
8140         (record_btrace_open): Fail in non-stop mode.
8141         (record_btrace_set_replay): Split into this, ...
8142         (record_btrace_stop_replaying): ... this, ...
8143         (record_btrace_clear_histories): ... and this.
8144         (init_record_btrace_ops): Init to_can_execute_reverse.
8145         * NEWS: Announce it.
8146
8147 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8148
8149         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8150         (forward_target_decr_pc_after_break)
8151         (target_decr_pc_after_break): New.
8152         * target.c (forward_target_decr_pc_after_break)
8153         (target_decr_pc_after_break): New.
8154         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8155         instead of gdbarch_decr_pc_after_break.
8156         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8157         instead of gdbarch_decr_pc_after_break.
8158         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8159         instead of gdbarch_decr_pc_after_break.
8160         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8161         instead of gdbarch_decr_pc_after_break.
8162         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8163         instead of gdbarch_decr_pc_after_break.
8164         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8165         instead of gdbarch_decr_pc_after_break.
8166
8167 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8168
8169         * btrace.c: Include regcache.h.
8170         (btrace_add_pc): New.
8171         (btrace_enable): Call btrace_add_pc.
8172         (btrace_is_empty): New.
8173         * btrace.h (btrace_is_empty): New.
8174         * record-btrace.c (require_btrace, record_btrace_info): Call
8175         btrace_is_empty.
8176
8177 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8178
8179         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8180         Support delta reads.
8181         (linux_disable_btrace): Change return type.
8182         * common/linux-btrace.h (linux_read_btrace): Change parameters
8183         and return type to allow error reporting.  Update users.
8184         (linux_disable_btrace): Change return type.  Update users.
8185         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8186         New.
8187         (btrace_error): New.
8188         (btrace_block) <begin>: Comment on BEGIN == 0.
8189         * btrace.c (btrace_compute_ftrace): Start from the end of
8190         the current trace.
8191         (btrace_stitch_trace, btrace_clear_history): New.
8192         (btrace_fetch): Read delta trace, return if replaying.
8193         (btrace_clear): Move clear history code to btrace_clear_history.
8194         (parse_xml_btrace): Throw an error if parsing failed.
8195         * target.h (struct target_ops) <to_read_btrace>: Change parameters
8196         and return type to allow error reporting.
8197         (target_read_btrace): Change parameters and return type to allow
8198         error reporting.
8199         * target.c (target_read_btrace): Update.
8200         * remote.c (remote_read_btrace): Support delta reads.  Pass
8201         errors on.
8202         * NEWS: Announce it.
8203
8204 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8205
8206         * record.h (record_btrace_frame_unwind)
8207         (record_btrace_tailcall_frame_unwind): New declarations.
8208         * dwarf2-frame: Include record.h
8209         (dwarf2_frame_cfa): Throw an error for btrace frames.
8210         * record-btrace.c: Include hashtab.h.
8211         (btrace_get_bfun_name): New.
8212         (btrace_call_history): Call btrace_get_bfun_name.
8213         (struct btrace_frame_cache): New.
8214         (bfcache): New.
8215         (bfcache_hash, bfcache_eq, bfcache_new): New.
8216         (btrace_get_frame_function): New.
8217         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8218         (record_btrace_frame_this_id): Compute own id.
8219         (record_btrace_frame_prev_register): Provide PC, throw_error
8220         for all other registers.
8221         (record_btrace_frame_sniffer): Detect btrace frames.
8222         (record_btrace_tailcall_frame_sniffer): New.
8223         (record_btrace_frame_dealloc_cache): New.
8224         (record_btrace_frame_unwind): Add new functions.
8225         (record_btrace_tailcall_frame_unwind): New.
8226         (_initialize_record_btrace): Allocate cache.
8227         * btrace.c (btrace_clear): Call reinit_frame_cache.
8228         * NEWS: Announce it.
8229
8230 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8231
8232         * record-btrace.c (record_btrace_set_replay)
8233         (record_btrace_goto_begin, record_btrace_goto_end)
8234         (record_btrace_goto): New.
8235         (init_record_btrace_ops): Initialize them.
8236         * NEWS: Announce it.
8237
8238 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8239
8240         * record-btrace.c (record_btrace_find_new_threads)
8241         (record_btrace_thread_alive): New.
8242         (init_record_btrace_ops): Initialize to_find_new_threads and
8243         to_thread_alive.
8244
8245 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8246
8247         * record-btrace.c (record_btrace_resume): New.
8248         (record_btrace_wait): New.
8249         (init_record_btrace_ops): Initialize to_wait and to_resume.
8250
8251 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8252
8253         * record-btrace.c (record_btrace_xfer_partial)
8254         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8255         (record_btrace_allow_memory_access): New.
8256         (init_record_btrace_ops): Initialize new methods.
8257         * target.c (raw_memory_xfer_partial): Bail out if target reports
8258         that this memory is not available.
8259
8260 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8261
8262         * target.h (target_ops) <to_insert_breakpoint>
8263         <to_remove_breakpoint>: Add target_ops parameter.
8264         (forward_target_insert_breakpoint): New.
8265         (forward_target_remove_breakpoint): New.
8266         (memory_remove_breakpoint, memory_insert_breakpoint):
8267         Add target_ops parameter.
8268         * target.c (target_insert_breakpoint): Split into this and ...
8269         (forward_target_insert_breakpoint): ... this.
8270         (target_remove_breakpoint): Split into this and ...
8271         (forward_target_remove_breakpoint): ... this.
8272         (debug_to_insert_breakpoint): Add target_ops parameter.
8273         Call forward_target_insert_breakpoint.
8274         (debug_to_remove_breakpoint): Add target_ops parameter.
8275         Call forward_target_remove_breakpoint.
8276         (update_current_target): Do not inherit or default to_insert_breakpoint
8277         and to_remove_breakpoint.
8278         * corelow.c (ignore): Add target_ops parameter.
8279         * exec.c (ignore): Add target_ops parameter.
8280         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8281         Add target_ops parameter.
8282         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8283         Add target_ops parameter.
8284         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8285         Add target_ops parameter.
8286         * record-full.c (record_full_beneath_to_insert_breakpoint)
8287         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8288         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8289         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8290         (record_full_core_remove_breakpoint): Add target_ops parameter.
8291         Update users.
8292         (record_full_beneath_to_insert_breakpoint_ops)
8293         (record_full_beneath_to_remove_breakpoint_ops)
8294         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8295         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8296         tmp_to_remove_breakpoint_ops,
8297         record_full_beneath_to_insert_breakpoint_ops, and
8298         record_full_beneath_to_remove_breakpoint_ops.
8299         * remote-m32r-sdi.c (m32r_insert_breakpoint)
8300         (m32r_remove_breakpoint): Add target_ops parameter.
8301         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8302         Add target_ops parameter.
8303         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8304         Add target_ops parameter.
8305
8306 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8307             Markus Metzger  <markus.t.metzger@intel.com>
8308
8309         * record-btrace.c: Include frame-unwind.h.
8310         (record_btrace_frame_unwind_stop_reason)
8311         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8312         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8313         New.
8314         (init_record_btrace_ops): Install it.
8315
8316 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8317
8318         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8319         get_prev_frame_1.
8320
8321 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8322
8323         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8324         earlier.
8325
8326 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8327
8328         * frame-unwind.c: Include target.h.
8329         (frame_unwind_try_unwinder): New function with code from ...
8330         (frame_unwind_find_by_frame): ... here.  New variable
8331         unwinder_from_target, call also target_get_unwinder)
8332         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8333         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8334         * target.h (struct target_ops): New fields to_get_unwinder and
8335         to_get_tailcall_unwinder.
8336         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8337
8338 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8339
8340         * record-btrace.c (record_btrace_fetch_registers)
8341         (record_btrace_store_registers)
8342         (record_btrace_to_prepare_to_store): New.
8343         (init_record_btrace_ops): Add the above.
8344
8345 2014-01-16  Tom Tromey  <tromey@redhat.com>
8346
8347         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8348         * target.h (struct target_ops) <to_prepare_to_store>: Add
8349         argument.
8350         (target_prepare_to_store): Add argument.
8351         * target.c (debug_to_prepare_to_store): Add argument.
8352         (update_current_target): Update.
8353         * remote.c (remote_prepare_to_store): Add 'self' argument.
8354         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8355         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8356         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8357         * record-full.c (record_full_core_prepare_to_store): Add 'self'
8358         argument.
8359         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8360         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8361         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8362         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8363         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8364
8365 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8366
8367         * btrace.h (replay) <replay>: New.
8368         (btrace_is_replaying): New.
8369         * btrace.c (btrace_clear): Free replay iterator.
8370         (btrace_is_replaying): New.
8371         * record-btrace.c (record_btrace_is_replaying): New.
8372         (record_btrace_info): Print insn number if replaying.
8373         (record_btrace_insn_history): Start at replay position.
8374         (record_btrace_call_history): Start at replay position.
8375         (init_record_btrace_ops): Init to_record_is_replaying.
8376
8377 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8378
8379         * record-btrace.c (record_btrace_insn_history_range): Include
8380         end.
8381         (record_btrace_insn_history_from): Adjust range.
8382         (record_btrace_call_history_range): Include
8383         end.
8384         (record_btrace_call_history_from): Adjust range.
8385         * NEWS: Announce changes.
8386
8387 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8388
8389         * record.h (enum record_print_flag)
8390         <record_print_indent_calls>: New.
8391         * record.c (get_call_history_modifiers): Recognize /c modifier.
8392         (_initialize_record): Document /c modifier.
8393         * record-btrace.c (btrace_call_history): Add btinfo parameter.
8394         Reorder fields.  Optionally indent the function name.  Update
8395         all users.
8396         * NEWS: Announce changes.
8397
8398 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8399
8400         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8401
8402 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8403
8404         * btrace.c (ftrace_new_function): Start counting at one.
8405         * record-btrace.c (record_btrace_info): Adjust number of calls
8406         and insns.
8407         * NEWS: Announce it.
8408
8409 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8410
8411         * record-btrace.c (btrace_call_history_insn_range): Print
8412         insn range as [begin, end].
8413
8414 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8415
8416         * btrace.h (struct btrace_func_link): New.
8417         (enum btrace_function_flag): New.
8418         (struct btrace_inst): Rename to ...
8419         (struct btrace_insn): ...this. Update all users.
8420         (struct btrace_func) <ibegin, iend>: Remove.
8421         (struct btrace_func_link): New.
8422         (struct btrace_func): Rename to ...
8423         (struct btrace_function): ...this. Update all users.
8424         (struct btrace_function) <segment, flow, up, insn, insn_offset)
8425         (number, level, flags>: New.
8426         (struct btrace_insn_iterator): Rename to ...
8427         (struct btrace_insn_history): ...this.
8428         Update all users.
8429         (struct btrace_insn_iterator, btrace_call_iterator): New.
8430         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8431         (struct btrace_target_info) <begin, end, level>
8432         <insn_history, call_history>: New.
8433         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8434         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8435         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8436         (btrace_call_number, btrace_call_begin, btrace_call_end)
8437         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8438         (btrace_find_function_by_number, btrace_set_insn_history)
8439         (btrace_set_call_history): New.
8440         * btrace.c (btrace_init_insn_iterator)
8441         (btrace_init_func_iterator, compute_itrace): Remove.
8442         (ftrace_print_function_name, ftrace_print_filename)
8443         (ftrace_skip_file): Change
8444         parameter to const.
8445         (ftrace_init_func): Remove.
8446         (ftrace_debug): Use new btrace_function fields.
8447         (ftrace_function_switched): Also consider gaining and
8448         losing symbol information).
8449         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8450         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8451         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8452         New.
8453         (ftrace_new_function): Move. Remove debug print.
8454         (ftrace_update_lines, ftrace_update_insns): New.
8455         (ftrace_update_function): Check for call, ret, and jump.
8456         (compute_ftrace): Renamed to ...
8457         (btrace_compute_ftrace): ...this. Rewritten to compute call
8458         stack.
8459         (btrace_fetch, btrace_clear): Updated.
8460         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8461         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8462         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8463         (btrace_call_number, btrace_call_begin, btrace_call_end)
8464         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8465         (btrace_find_function_by_number, btrace_set_insn_history)
8466         (btrace_set_call_history): New.
8467         * record-btrace.c (require_btrace): Use new btrace thread
8468         info fields.
8469         (record_btrace_info, btrace_insn_history)
8470         (record_btrace_insn_history, record_btrace_insn_history_range):
8471         Use new btrace thread info fields and new iterator.
8472         (btrace_func_history_src_line): Rename to ...
8473         (btrace_call_history_src_line): ...this. Use new btrace
8474         thread info fields.
8475         (btrace_func_history): Rename to ...
8476         (btrace_call_history): ...this. Use new btrace thread info
8477         fields and new iterator.
8478         (record_btrace_call_history, record_btrace_call_history_range):
8479         Use new btrace thread info fields and new iterator.
8480
8481 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8482
8483         * frame.h (frame_id_build_unavailable_stack_special): New.
8484         * frame.c (frame_id_build_unavailable_stack_special): New.
8485
8486 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8487
8488         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8489         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8490         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8491         to gdbarch.
8492         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8493         (i386_insn_is_jump, i386_jmp_p): New.
8494         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8495         insn_is_jump to gdbarch.
8496         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8497         * gdbarch.h: Regenerated.
8498         * gdbarch.c: Regenerated.
8499         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8500         (default_insn_is_jump): New.
8501         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8502         (default_insn_is_jump): New.
8503
8504 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8505
8506         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8507         Change to ...
8508         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
8509         (btrace_read_type) <btrace_read_new>: Change to ...
8510         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
8511
8512 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
8513
8514         * common/linux-btrace.c (linux_read_btrace): Free trace from
8515         previous iteration.
8516
8517 2014-01-15  Doug Evans  <dje@google.com>
8518
8519         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8520         uint32_t.
8521
8522 2014-01-15  Tom Tromey  <tromey@redhat.com>
8523
8524         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8525         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8526         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8527         (set_objfile_main_name): New function.
8528         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8529         language_of_main>: New fields.
8530         (set_objfile_main_name): Declare.
8531         * symtab.c (find_main_name): Loop over objfiles to find the main
8532         name and language.
8533         (set_main_name): Now static.
8534         (get_main_info): Add comment.
8535         * symtab.h (set_main_name): Don't declare.
8536
8537 2014-01-15  Tom Tromey  <tromey@redhat.com>
8538
8539         * symtab.c (main_progspace_key): New global.
8540         (struct main_info): New.
8541         (name_of_main, language_of_main): Remove.
8542         (get_main_info, main_info_cleanup): New function.
8543         (set_main_name, main_name, main_language): Use get_main_info.
8544         (_initialize_symtab): Initialize main_progspace_key.
8545
8546 2014-01-15  Tom Tromey  <tromey@redhat.com>
8547
8548         * dbxread.c (process_one_symbol): Update.
8549         * dwarf2read.c (read_partial_die): Update.
8550         * symfile.c (set_initial_language): Call main_language.
8551         * symtab.c (language_of_main): Now static.
8552         (set_main_name): Add 'lang' parameter.
8553         (find_main_name): Update.
8554         (main_language): New function.
8555         (symtab_observer_executable_changed): Update.
8556         * symtab.h (set_main_name): Update.
8557         (language_of_main): Remove.
8558         (main_language): Declare.
8559
8560 2014-01-15  Tom Tromey  <tromey@redhat.com>
8561
8562         * symfile.c (init_entry_point_info): Use new "initialized" field.
8563         Update.
8564         * objfiles.h (struct entry_point) <initialized>: New field.
8565         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8566         (struct objfile) <ei>: ...here.  Remove.
8567         * objfiles.c (entry_point_address_query): Update.
8568
8569 2014-01-15  Tom Tromey  <tromey@redhat.com>
8570
8571         * objfiles.c (entry_point_address_query): Relocate entry point
8572         address.
8573         (objfile_relocate1): Do not relocate entry point address.
8574         * objfiles.h (struct entry_info) <entry_point>: Update comment.
8575         <the_bfd_section_index>: New field.
8576         * symfile.c (init_entry_point_info): Find the entry point's
8577         section.
8578
8579 2014-01-15  Tom Tromey  <tromey@redhat.com>
8580
8581         * solib-frv.c (enable_break): Use entry_point_address_query.
8582
8583 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8584
8585         * NEWS: Add note on improved process record-replay on
8586         arm*-linux* targets.
8587
8588 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8589
8590         * arm-tdep.c (enum arm_record_result): New enum.
8591         (arm_record_unsupported_insn): New function.
8592         (arm_record_coproc_data_proc): Removed.
8593         (thumb2_record_ld_st_multiple): New function.
8594         (thumb2_record_ld_st_dual_ex_tbb): New function.
8595         (thumb2_record_data_proc_sreg_mimm): New function.
8596         (thumb2_record_ps_dest_generic): New function.
8597         (thumb2_record_branch_misc_cntrl): New function.
8598         (thumb2_record_str_single_data): New function.
8599         (thumb2_record_ld_mem_hints): New function.
8600         (thumb2_record_ld_word): New function.
8601         (thumb2_record_lmul_lmla_div): New function.
8602         (thumb2_record_decode_insn_handler): New function.
8603         (decode_insn): Add thumb32 instruction handlers.
8604
8605 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8606
8607         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8608         (struct arm_linux_record_tdep): Declare.
8609         (arm_canonicalize_syscall): New function.
8610         (arm_all_but_pc_registers_record): New function.
8611         (arm_linux_syscall_record): New function.
8612         (arm_linux_init_abi): Add syscall recording constructs.
8613         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8614         decoding.  (arm_record_coproc_data_proc): Update arm syscall
8615         decoding.
8616         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8617         <arm_syscall_record>: New field.
8618         * configure.tgt (arm*-*-linux*): Add linux-record.o to
8619         gdb_target_obs.
8620
8621 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8622
8623         * arm-tdep.c (thumb_record_misc): Update to use sp as base
8624         register for push instruction recording.
8625
8626 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8627
8628         * arm-tdep.c (thumb_record_misc): Update to correct logical
8629         error while recording ldm, ldmia and pop instructions.
8630
8631 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
8632
8633         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8634
8635 2014-01-15  Pedro Alves  <palves@redhat.com>
8636
8637         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8638         (go32_resume, go32_fetch_registers, store_register)
8639         (go32_store_registers, go32_prepare_to_store)
8640         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8641         (go32_create_inferior, go32_can_run, go32_terminal_init)
8642         (go32_terminal_inferior, go32_terminal_ours): Delete forward
8643         declarations.
8644
8645 2014-01-15  Tom Tromey  <tromey@redhat.com>
8646
8647         * target.h (async_callback_ftype): New typedef.
8648         (struct target_ops) <to_async>: Use it.
8649
8650 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
8651
8652         * python/py-value.c (get_field_type): Remove unnecessary curly
8653         braces for single-statement if block.
8654
8655 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
8656
8657         * python/py-type.c (convert_field): Add missing empty line
8658         after declarations.
8659
8660 2014-01-14  Doug Evans  <dje@google.com>
8661
8662         * symfile.h (expand_symtabs_matching): Renamed from
8663         expand_partial_symbol_names.  Update prototype.
8664         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8665         * symfile.c (expand_symtabs_matching): Renamed from
8666         expand_partial_symbol_names.  New args file_matcher, kind.
8667         Rename arg fun to symbol_matcher.
8668         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8669         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8670         ada_expand_partial_symbol_name.
8671         (ada_make_symbol_completion_list): Update to call
8672         expand_symtabs_matching.
8673         (ada_add_global_exceptions): Call expand_symtabs_matching.
8674         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8675         call map_symbol_filenames.
8676         * symtab.c (sources_info): Update to call map_symbol_filenames.
8677         (search_symbols): Call expand_symtabs_matching.
8678         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8679         (default_make_symbol_completion_list_break_on): Update to call
8680         expand_symtabs_matching.
8681         (make_source_files_completion_list): Update to call
8682         map_symbol_filenames.
8683
8684 2014-01-14  Doug Evans  <dje@google.com>
8685
8686         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8687         (expand_symtabs_symbol_matcher_ftype): New typedef.
8688         (quick_symbol_functions.expand_symtabs_matching): Update to use.
8689         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8690         * symfile.c (expand_partial_symbol_names): Update to use
8691         expand_symtabs_symbol_matcher_ftype.
8692         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8693         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8694         Arg name_matcher renamed to symbol_matcher.
8695         * psymtab.c (recursively_search_psymtabs): Update to use
8696         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
8697         sym_matcher.
8698         (expand_symtabs_matching_via_partial): Update to use
8699         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8700         Arg name_matcher renamed to symbol_matcher.
8701
8702 2014-01-14  Doug Evans  <dje@google.com>
8703
8704         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8705         (map_partial_symbol_filenames): Ditto.
8706         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8707         (map_partial_symbol_filenames): Ditto.
8708         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8709         (map_partial_symbol_filenames): Ditto.
8710         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8711         (map_partial_symbol_filenames): Ditto.
8712         * symtab.c: Delete #include "psymtab.h".
8713
8714 2014-01-14  Pedro Alves  <palves@redhat.com>
8715             Tom Tromey  <tromey@redhat.com>
8716
8717         * infrun.c (use_displaced_stepping): Use find_record_target
8718         instead of RECORD_IS_USED.
8719         (adjust_pc_after_break): Use record_full_is_used instead of
8720         RECORD_IS_USED.
8721         * record-btrace.c (record_btrace_open): Call record_preopen
8722         instead of checking RECORD_IS_USED.
8723         * record-full.c (record_full_shortname)
8724         (record_full_core_shortname): New globals.
8725         (record_full_is_used): New function.
8726         (find_full_open): Call record_preopen instead of checking
8727         RECORD_IS_USED.
8728         (init_record_full_ops): Set the target's shortname to
8729         record_full_shortname.
8730         (init_record_full_core_ops): Set the target's shortname to
8731         record_full_core_shortname.
8732         * record-full.h (record_full_is_used): Declare.
8733         * record.c (find_record_target): Make extern.
8734         (record_preopen): New function.
8735         * record.h (RECORD_IS_USED): Delete macro.
8736         (find_record_target, record_preopen): Declare functions.
8737
8738 2014-01-14  Yao Qi  <yao@codesourcery.com>
8739
8740         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8741         'len''s type to ULONGEST.
8742         (core_xfer_shared_libraries_aix): Likewise.
8743         * gdbarch.c, gdbarch.h: Regenerated.
8744         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8745         Change type of 'len' to ULONGEST.
8746         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8747         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8748
8749 2014-01-14  Yao Qi  <yao@codesourcery.com>
8750
8751         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8752         type of 'len' to ULONGEST.
8753         (linux_xfer_osdata_processgroups): Likewise.
8754         (linux_xfer_osdata_threads): Likewise.
8755         (linux_xfer_osdata_fds): Likewise.
8756         (linux_xfer_osdata_isockets): Likewise.
8757         (linux_xfer_osdata_shm): Likewise.
8758         (linux_xfer_osdata_sem): Likewise.
8759         (linux_xfer_osdata_msg): Likewise.
8760         (linux_common_xfer_osdata): Likewise.
8761         (struct osdata_type) <getter>: Likewise.
8762         * common/linux-osdata.h (linux_common_xfer_osdata): Update
8763         the declaration.
8764
8765 2014-01-14  Yao Qi  <yao@codesourcery.com>
8766
8767         * target.h (target_xfer_partial_ftype): Update.
8768         (struct target_ops) <to_xfer_partial>: Change 'len' type to
8769         ULONGEST.
8770         * aix-thread.c (aix_thread_xfer_partial): Change type of
8771         argument 'len' to ULONGEST.
8772         * auxv.c (procfs_xfer_auxv): Likewise.
8773         (ld_so_xfer_auxv): Likewise.
8774         (memory_xfer_auxv): Likewise.
8775         * bfd-target.c (target_bfd_xfer_partial): Likewise.
8776         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8777         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8778         * corelow.c (core_xfer_partial): Likewise.
8779         * ctf.c (ctf_xfer_partial): Likewise.
8780         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
8781         '%u'.
8782         (darwin_read_dyld_info): Likewise.
8783         (darwin_xfer_partial): Likewise.
8784         * exec.c (section_table_xfer_memory_partial): Likewise.
8785         (exec_xfer_partial): Likewise.
8786         * exec.h (section_table_xfer_memory_partial): Update
8787         declaration.
8788         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
8789         instead of plongest.
8790         (gnu_xfer_partial): Likewise.
8791         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8792         (ia64_hpux_xfer_solib_got): Likewise.
8793         (ia64_hpux_xfer_partial): Likewise.
8794         * ia64-linux-nat.c (ia64_linux_xfer_partial):
8795         * inf-ptrace.c (inf_ptrace_xfer_partial):
8796         * inf-ttrace.c (inf_ttrace_xfer_partial):
8797         * linux-nat.c (linux_xfer_siginfo): Likewise.
8798         (linux_nat_xfer_partial): Likewise.
8799         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8800         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8801         * monitor.c (monitor_xfer_memory): Likewise.
8802         (monitor_xfer_partial): Likewise.
8803         * procfs.c (procfs_xfer_partial): Likewise.
8804         * record-full.c (record_full_xfer_partial): Likewise.
8805         (record_full_core_xfer_partial): Likewise.
8806         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
8807         instead of plongest.
8808         (gdbsim_xfer_partial): Likewise.
8809         * remote.c (remote_xfer_partial): Likewise.
8810         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8811         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8812         declaration.
8813         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8814         (rs6000_xfer_shared_libraries): Likewise.
8815         * sol-thread.c (sol_thread_xfer_partial): Likewise.
8816         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8817         (sparc_xfer_partial): Likewise.
8818         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8819         (spu_xfer_partial): Likewise.
8820         * spu-multiarch.c (spu_xfer_partial): Likewise.
8821         * target.c (target_read_live_memory): Likewise.
8822         (memory_xfer_live_readonly_partial): Likewise.
8823         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8824         (target_xfer_partial, default_xfer_partial): Likewise.
8825         (current_xfer_partial): Likewise.
8826         * tracepoint.c (tfile_xfer_partial): Likewise.
8827         * windows-nat.c (windows_xfer_memory): Likewise.  Call
8828         pulongest instead of plongest.
8829         (windows_xfer_partial): Likewise.
8830         (windows_xfer_shared_libraries): Likewise.
8831
8832 2014-01-14  Yao Qi  <yao@codesourcery.com>
8833
8834         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8835         target_xfer_partial_ftype.
8836
8837 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
8838
8839         PR python/15464
8840         PR python/16113
8841         * valops.c (value_struct_elt_bitpos): New function
8842         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8843         object to 'None' if the field name is an empty string ("").
8844         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8845         attribute to look for a field when 'name' is 'None'.
8846         (get_field_type): New function
8847
8848 2014-01-13  Doug Evans  <dje@google.com>
8849
8850         PR symtab/16426
8851         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8852         (try_open_dwop_file): Ditto.
8853         * gdb_bfd.c: #include "vec.h".
8854         (bfdp): New typedef.
8855         (struct gdb_bfd_data): New member included_bfds.
8856         (gdb_bfd_unref): Unref all included bfds.
8857         (gdb_bfd_record_inclusion): New function.
8858         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8859
8860 2014-01-13  Tom Tromey  <tromey@redhat.com>
8861
8862         * gdbcore.h (deprecated_core_resize_section_table): Remove.
8863
8864 2014-01-13  Tom Tromey  <tromey@redhat.com>
8865
8866         * defs.h (use_windows): Remove.
8867         * gdb.c (main): Update.
8868         * main.c (captured_main, gdb_main): Update.
8869         * main.h (struct captured_main_args) <use_windows>: Remove.
8870         * top.c (use_windows): Remove.
8871
8872 2014-01-13  Tom Tromey  <tromey@redhat.com>
8873
8874         * defs.h (deprecated_flush_hook): Remove.
8875
8876 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8877
8878         PR threads/16216
8879         * linux-thread-db.c (try_thread_db_load): Add parameter
8880         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
8881         (try_thread_db_load_from_pdir_1): Move it there from here.
8882         (try_thread_db_load_from_sdir): Update caller.
8883         (try_thread_db_load_from_dir): Move it there from here.
8884
8885 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
8886
8887         * regformats/regdat.sh: Always rewrite the register file.
8888
8889 2014-01-13  Pedro Alves  <palves@redhat.com>
8890
8891         * Makefile.in (CHECK_HEADERS): New variable.
8892         (check-headers:): New rule.
8893
8894 2014-01-13  Tom Tromey  <tromey@redhat.com>
8895
8896         * cli/cli-setshow.c (do_set_command): Update.
8897         * defs.h (deprecated_set_hook): Remove.
8898         * top.c (deprecated_set_hook): Remove.
8899
8900 2014-01-13  Pedro Alves  <palves@redhat.com>
8901
8902         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8903         the tracepoint if the PC is a pseudo-register.
8904
8905 2014-01-13  Tom Tromey  <tromey@redhat.com>
8906
8907         * defs.h (XCALLOC): Remove.
8908         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8909         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8910         * dwarf2loc.c (allocate_piece_closure): Likewise.
8911         * elfread.c (elf_symfile_segments): Likewise.
8912         (elf_symfile_segments): Likewise.
8913         * gdbtypes.c (copy_type_recursive): Likewise.
8914         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8915         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8916         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8917         XCALLOC.
8918         * mt-tdep.c (mt_gdbarch_init): Likewise.
8919         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8920         XCALLOC.
8921         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8922         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8923         * registry.c (registry_alloc_data): Likewise.
8924         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8925         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8926         * serial.c (serial_fdopen_ops): Likewise.
8927         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8928         XCALLOC.
8929         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8930         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8931         not XCALLOC.
8932
8933 2014-01-13  Tom Tromey  <tromey@redhat.com>
8934
8935         * defs.h (XMALLOC): Remove.
8936         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8937         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8938         * cli-out.c (struct ui_out *): Likewise.
8939         * cli/cli-dump.c (add_dump_command): Likewise.
8940         (add_dump_command): Likewise.
8941         * complaints.c (get_complaints): Likewise.
8942         (find_complaint): Likewise.
8943         * dwarf2-frame.c (execute_cfa_program): Likewise.
8944         * dwarf2read.c (abbrev_table_read_table): Likewise.
8945         * gdbarch.sh: Likewise.
8946         * gdbarch.c: Rebuild.
8947         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8948         * interps.c (interp_new): Likewise.
8949         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8950         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8951         * mi/mi-console.c (mi_console_file_new): Likewise.
8952         * mi/mi-interp.c (mi_interpreter_init): Likewise.
8953         * mi/mi-out.c (mi_out_new): Likewise.
8954         * mi/mi-parse.c (mi_parse): Likewise.
8955         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8956         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8957         * observer.c (xalloc_observer_list_node): Likewise.
8958         * regcache.c (regcache_xmalloc_1): Likewise.
8959         * reggroups.c (reggroup_new): Likewise.
8960         (_initialize_reggroup): Likewise.
8961         * registry.c (register_data_with_cleanup): Likewise.
8962         * remote.c (remote_notif_stop_alloc_reply): Likewise.
8963         * ser-base.c (serial_ttystate): Likewise.
8964         * ser-mingw.c (make_pipe_state): Likewise.
8965         * ser-pipe.c (pipe_open): Likewise.
8966         * serial.c (serial_open): Likewise.
8967         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8968         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8969         (tui_alloc_win_info): Likewise.
8970         (tui_add_content_elements): Likewise.
8971         * tui/tui-file.c (tui_file_new): Likewise.
8972         * tui/tui-out.c (tui_out_new): Likewise.
8973         * ui-file.c (mem_file_new): Likewise.
8974         * ui-out.c (push_level): Likewise.
8975         (make_cleanup_ui_out_end): Likewise.
8976         (append_header_to_list): Likewise.
8977         (ui_out_new): Likewise.
8978         * user-regs.c (user_reg_add_builtin): Likewise.
8979
8980 2014-01-13  Tom Tromey  <tromey@redhat.com>
8981
8982         * defs.h (XZALLOC): Remove.
8983         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8984         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8985         (get_ada_tasks_inferior_data): Likewise.
8986         * auto-load.c (get_auto_load_pspace_data): Likewise.
8987         * auxv.c (get_auxv_inferior_data): Likewise.
8988         * bfd-target.c (target_bfd_reopen): Likewise.
8989         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8990         (deprecated_insert_raw_breakpoint): Likewise.
8991         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8992         * corelow.c (core_open): Likewise.
8993         * darwin-nat.c (darwin_check_new_threads): Likewise.
8994         (darwin_attach_pid): Likewise.
8995         * dummy-frame.c (dummy_frame_push): Likewise.
8996         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8997         * dwarf2loc.c (allocate_piece_closure): Likewise.
8998         * elfread.c (elf_symfile_segments): Likewise.
8999         * eval.c (ptrmath_type_p): Likewise.
9000         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9001         * gdbtypes.c (alloc_type_arch): Likewise.
9002         (alloc_type_instance): Likewise.
9003         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9004         * inf-child.c (inf_child_can_use_agent): Likewise.
9005         * inflow.c (get_inflow_inferior_data): Likewise.
9006         * infrun.c (save_infcall_suspend_state): Likewise.
9007         * jit.c (jit_reader_load): Likewise.
9008         (get_jit_objfile_data): Likewise.
9009         (get_jit_program_space_data): Likewise.
9010         (jit_object_open_impl): Likewise.
9011         (jit_symtab_open_impl): Likewise.
9012         (jit_block_open_impl): Likewise.
9013         (jit_frame_sniffer): Likewise.
9014         * linux-fork.c (add_fork): Likewise.
9015         * maint.c (make_command_stats_cleanup): Likewise.
9016         * objfiles.c (get_objfile_pspace_data): Likewise.
9017         * opencl-lang.c (struct lval_closure): Likewise.
9018         * osdata.c (osdata_start_osdata): Likewise.
9019         * progspace.c (new_address_space): Likewise.
9020         (add_program_space): Likewise.
9021         * remote-sim.c (get_sim_inferior_data): Likewise.
9022         * sh-tdep.c (sh_gdbarch_init): Likewise.
9023         * skip.c (Ignore): Likewise.
9024         (skip_delete_command): Likewise.
9025         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9026         (library_list_start_library): Likewise.
9027         (solib_aix_current_sos): Likewise.
9028         * solib-darwin.c (get_darwin_info): Likewise.
9029         (darwin_current_sos): Likewise.
9030         * solib-dsbt.c (get_dsbt_info): Likewise.
9031         * solib-ia64-hpux.c (new_so_list): Likewise.
9032         (ia64_hpux_get_solib_linkage_addr): Likewise.
9033         * solib-spu.c (append_ocl_sos): Likewise.
9034         (spu_current_sos): Likewise.
9035         * solib-svr4.c (get_svr4_info): Likewise.
9036         (svr4_keep_data_in_core): Likewise.
9037         (library_list_start_library): Likewise.
9038         (svr4_default_sos): Likewise.
9039         (svr4_read_so_list): Likewise.
9040         * solib-target.c (library_list_start_library): Likewise.
9041         (solib_target_current_sos): Likewise.
9042         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9043         * symfile-debug.c (install_symfile_debug_logging): Likewise.
9044         * symfile.c (default_symfile_segments): Likewise.
9045         * target-descriptions.c (tdesc_data_init): Likewise.
9046         (tdesc_create_reg): Likewise.
9047         (struct tdesc_type *): Likewise.
9048         (tdesc_create_vector): Likewise.
9049         (tdesc_set_struct_size): Likewise.
9050         (struct tdesc_type *): Likewise.
9051         (tdesc_free_feature): Likewise.
9052         (tdesc_create_feature): Likewise.
9053         * windows-nat.c (windows_add_thread): Likewise.
9054         (windows_make_so): Likewise.
9055         * xml-support.c (gdb_xml_body_text): Likewise.
9056         (gdb_xml_create_parser_and_cleanup): Likewise.
9057         (xml_process_xincludes): Likewise.
9058         * xml-syscall.c (allocate_syscalls_info): Likewise.
9059         (syscall_create_syscall_desc): Likewise.
9060
9061 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
9062
9063         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9064         function, with code from i386_stap_parse_special_token.
9065         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9066         (i386_stap_parse_special_token): Move code to the two functions
9067         above; simplify it.
9068
9069 2014-01-09  Pedro Alves  <palves@redhat.com>
9070             Hui Zhu  <hui@codesourcery.com>
9071
9072         PR gdb/16101
9073         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9074         bp_err_string.  Don't mark the location shlib_disabled if the
9075         error thrown wasn't a generic or memory error.  Catch errors
9076         thrown while inserting breakpoints in overlayed code.  Output
9077         error message of software breakpoints.
9078         * remote.c (remote_insert_breakpoint): If this breakpoint has
9079         target-side commands but this stub doesn't support Z0 packets,
9080         throw NOT_SUPPORTED_ERROR error.
9081         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9082         * target.h (target_insert_breakpoint): Extend comment.
9083         (target_insert_hw_breakpoint): Add comment.
9084
9085 2014-01-08  Pedro Alves  <palves@redhat.com>
9086
9087         * remote.c (remote_add_thread): Add threads silently if starting
9088         up.
9089         (remote_notice_new_inferior): If in all-stop, and starting up,
9090         don't call notice_new_inferior.
9091         (get_current_thread): New function, factored out from ...
9092         (add_current_inferior_and_thread): ... this.  Adjust.
9093         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
9094         found any thread, then select the remote's current thread as GDB's
9095         current thread too.
9096
9097 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
9098
9099         * NEWS: Create a new section for the next release branch.
9100         Rename the section of the current branch, now that it has
9101         been cut.
9102
9103 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
9104
9105         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9106         * version.in: Bump version to 7.7.50.DATE-cvs.
9107
9108 2014-01-08  Yao Qi  <yao@codesourcery.com>
9109
9110         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9111         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
9112         (spu_xfer_partial): Cast 'buf' to 'const char *'.
9113
9114 2014-01-08  Yao Qi  <yao@codesourcery.com>
9115
9116         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9117         return value of bfd_get_filename to symbol_file_add_from_bfd.
9118
9119 2014-01-08  Pierre Muller  <muller@sourceware.org>
9120
9121         Fix PR16201.
9122         * coff-pe-read.c (struct read_pe_section_data): Add index field.
9123         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9124         to prim_record_mininal_symbol_and_info.
9125         (add_pe_forwarded_sym): Use known section number of forwarded symbol
9126         in call to prim_record_minimal_symbol_and_info.
9127         (read_pe_exported_syms): Set index field of section_data.
9128
9129 2014-01-07  Andrew Pinski  <apinski@cavium.com>
9130
9131         * features/aarch64-core.xml (cpsr): Change to be 64bit.
9132         * features/aarch64.c: Regenerate.
9133
9134 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
9135
9136         * target.c (return_null): Define.
9137         (update_current_target): Use it instead of return_zero for
9138         functions that return a pointer.
9139
9140 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
9141
9142         * source.c (add_path): Fix check for duplicated paths in the previously
9143         included paths.
9144
9145 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
9146
9147         * ada-lang.c: Remove duplicated include statements.
9148         * alphabsd-nat.c: Ditto.
9149         * amd64-darwin-tdep.c: Ditto.
9150         * amd64fbsd-nat.c: Ditto.
9151         * auto-load.c: Ditto.
9152         * ax-gdb.c: Ditto.
9153         * breakpoint.c: Ditto.
9154         * dbxread.c: Ditto.
9155         * fork-child.c: Ditto.
9156         * gdb_usleep.c: Ditto.
9157         * i386-darwin-tdep.c: Ditto.
9158         * i386fbsd-nat.c: Ditto.
9159         * infcmd.c: Ditto.
9160         * inferior.c: Ditto.
9161         * jv-lang.c: Ditto.
9162         * linux-nat.c: Ditto.
9163         * linux-tdep.c: Ditto.
9164         * m68kbsd-nat.c: Ditto.
9165         * m68klinux-nat.c: Ditto.
9166         * microblaze-tdep.c: Ditto.
9167         * mips-linux-tdep.c: Ditto.
9168         * mn10300-tdep.c: Ditto.
9169         * nto-tdep.c: Ditto.
9170         * opencl-lang.c: Ditto.
9171         * osdata.c: Ditto.
9172         * printcmd.c: Ditto.
9173         * regcache.c: Ditto.
9174         * remote-m32r-sdi.c: Ditto.
9175         * remote.c: Ditto.
9176         * symfile.c: Ditto.
9177         * symtab.c: Ditto.
9178         * tilegx-linux-nat.c: Ditto.
9179         * tilegx-tdep.c: Ditto.
9180         * tracepoint.c: Ditto.
9181         * valops.c: Ditto.
9182         * vaxbsd-nat.c: Ditto.
9183         * windows-nat.c: Ditto.
9184         * xtensa-tdep.c: Ditto.
9185
9186 2014-01-07  Yao Qi  <yao@codesourcery.com>
9187
9188         * spu-linux-nat.c (_initialize_spu_nat): Declare.
9189
9190 2014-01-07  Yao Qi  <yao@codesourcery.com>
9191             Joel Brobecker  <brobecker@adacore.com>
9192
9193         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9194         (pdc_write_regs): Likewise.
9195         (fetch_regs_kernel_thread): Likewise.
9196         (store_regs_kernel_thread): Likewise.
9197
9198 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9199
9200         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9201         tagged type objects to their actual type.
9202
9203 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9204
9205         * ada-valprint.c (print_field_values): Add "language" parameter.
9206         Update calls to print_field_values and print_variant_part.
9207         Pass new parameter "language" in call to val_print instead
9208         of "current_language".  Replace call to ada_val_print by call
9209         to val_print.
9210         (print_variant_part): Add "language" parameter.
9211         (ada_val_print_struct_union): Update call to print_field_values.
9212
9213 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9214
9215         * ada-valprint.c (ui_memcpy): Delete.
9216         (ada_print_floating): Update documentation.  Add empty line
9217         between between function documentation and implementation.
9218         Delete variable "buffer".  Use ui_file_xstrdup in place of
9219         ui_file_put.  Minor adjustments following this change.
9220
9221 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9222
9223         * ada-valprint.c (ada_val_print_string): New function,
9224         extracted from ada_val_print_array.
9225         (ada_val_print_array): Replace extracted code by call
9226         to ada_val_print_string followed by a return.  Move
9227         "else" branch to the function's top block.
9228
9229 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9230
9231         * ada-valprint.c (ada_val_print_array): Move implementation
9232         down.  Rename parameter "offset" and "val" into "offset_aligned"
9233         and "original_value" respectively.  Add parameter "offset".
9234
9235 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9236
9237         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9238         re-organizing the code. Change the "???" message printed
9239         when target type is a TYPE_CODE_UNDEF into
9240         "<ref to undefined type>".
9241
9242 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9243
9244         * ada-valprint.c (print_record): Delete, implementation inlined...
9245         (ada_val_print_struct_union): ... here.  Remove call to
9246         ada_check_typedef in inlined implementation.
9247
9248 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9249
9250         * ada-valprint.c (ada_val_print_gnat_array): New function,
9251         extracted from ada_val_print_1;
9252         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9253         (ada_val_print_flt, ada_val_print_struct_union)
9254         (ada_val_print_ref): Likewise.
9255         (ada_val_print_1): Delete variables i and elttype.
9256         Replace extracted-out code by call to corresponding
9257         new functions.
9258
9259 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9260
9261         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9262
9263 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9264
9265         * ada-valprint.c (ada_val_print_1): Replace calls to
9266         ada_val_print_1 by calls to val_print.
9267
9268 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9269
9270         * ada-valprint.c (ada_val_print_1): Add parameter "language".
9271         Update calls to self accordingly.  Replace calls to c_val_print
9272         by calls to val_print.
9273
9274 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9275
9276         * ada-valprint.c (print_record): Delete declaration.
9277         (adjust_type_signedness, ada_val_print_1): Likewise.
9278         (ada_val_print): Move function implementation down.
9279         (print_variant_part, print_field_values, print_record):
9280         Move function implementation up.
9281
9282 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
9283
9284         * python/py-type.c (typy_get_name): New function.
9285         (type_object_getset): Add entry for attribute "name".
9286         * NEWS: Add entry mentioning this new attribute.
9287
9288 2014-01-07  Yao Qi  <yao@codesourcery.com>
9289
9290         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9291         statement.
9292
9293 2014-01-07  Yao Qi  <yao@codesourcery.com>
9294
9295         * gnu-nat.c (info_port_rights): Add qualifier const to
9296         argument args.
9297
9298 2014-01-07  Yao Qi  <yao@codesourcery.com>
9299
9300         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9301
9302 2014-01-07  Yao Qi  <yao@codesourcery.com>
9303
9304         * gnu-nat.c (make_inf) Update declaration.
9305         (make_inf): Make it static.
9306         (inf_set_traced): Likewise.
9307         (inf_port_to_thread, inf_task_died_status): Likewise.
9308
9309 2014-01-07  Yao Qi  <yao@codesourcery.com>
9310
9311         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9312
9313 2014-01-07  Yao Qi  <yao@codesourcery.com>
9314
9315         * gnu-nat.c (_initialize_gnu_nat): Declare.
9316
9317 2014-01-07  Yao Qi  <yao@codesourcery.com>
9318
9319         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9320         'enum bfd_endian'.
9321         (struct gdbarch_info) <byte_order>: Change type to
9322         'enum bfd_endian'.
9323         <byte_order_for_code>: Likewise.
9324         * gdbarch.c, gdbarch.h: Regenerated.
9325
9326 2014-01-06  Sasha Smundak  <asmundak@google.com>
9327
9328         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9329
9330 2014-01-06  Tom Tromey  <tromey@redhat.com>
9331
9332         * doublest.c (convert_doublest_to_floatformat): Use const, not
9333         CONST.
9334         * somread.c (som_symtab_read): Likewise.
9335
9336 2014-01-07  Hui Zhu  <hui@codesourcery.com>
9337
9338         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9339         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9340         (gdb_bfd_fopen): Ditto.
9341         (gdb_bfd_openr): Ditto.
9342         (gdb_bfd_openw): Ditto.
9343         (gdb_bfd_openr_iovec): Ditto.
9344         (gdb_bfd_fdopenr): Ditto.
9345         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9346         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9347         with xstrdup.
9348         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9349         with xstrdup.
9350         * symfile-mem.c (symbol_file_add_from_memory): Removed
9351         gdb_bfd_stash_filename.
9352
9353 2014-01-03  Doug Evans  <dje@google.com>
9354
9355         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9356         output.
9357
9358 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
9359
9360         Update year range in copyright notice of all files.
9361
9362 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
9363
9364         * top.c (print_gdb_version): Set copyright year to 2014.
9365
9366 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
9367
9368         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9369
9370 For older changes see ChangeLog-2013.
9371 \f
9372 Local Variables:
9373 mode: change-log
9374 left-margin: 8
9375 fill-column: 74
9376 version-control: never
9377 coding: utf-8
9378 End: