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