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