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