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