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