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