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