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