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