1 2014-06-18 Gary Benson <gbenson@redhat.com>
3 * i386-nat.c: Comment changes.
5 2014-06-18 Gary Benson <gbenson@redhat.com>
7 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
9 2014-06-18 Gary Benson <gbenson@redhat.com>
11 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
12 (i386_insert_aligned_watchpoint): Likewise.
13 (i386_remove_aligned_watchpoint): Likewise.
14 (i386_handle_nonaligned_watchpoint): Likewise.
16 2014-06-18 Gary Benson <gbenson@redhat.com>
18 * i386-nat.c: Whitespace changes.
20 2014-06-17 Samuel Bronson <naesten@gmail.com>
22 * MAINTAINERS: Update Roland McGrath's email address.
23 Thanks to Sergio Durigan Junior for pointing out that he left
24 Red Hat a while ago, and giving me a current address.
26 2014-06-17 Tom Tromey <tromey@redhat.com>
28 * utils.h (savestring): Remove declaration.
30 2014-06-17 Tom Tromey <tromey@redhat.com>
32 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
34 2014-06-16 Keith Seitz <keiths@redhat.com>
37 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
38 to update the varobj if inferior_ptid is null_ptid.
40 2014-06-16 Tom Tromey <tromey@redhat.com>
42 * target.h (struct target_ops) <to_info_proc>: Make parameter
44 (target_info_proc): Update.
45 * target.c (target_info_proc): Make "args" const.
46 * procfs.c (procfs_info_proc): Update.
47 * linux-tdep.c (linux_info_proc): Update.
48 (linux_core_info_proc_mappings): Make "args" const.
49 (linux_core_info_proc): Update.
50 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
53 * corelow.c (core_info_proc): Update.
55 2014-06-16 Tom Tromey <tromey@redhat.com>
57 * target.h (struct target_ops) <to_disconnect>: Make parameter
59 (target_disconnect): Update.
60 * target.c (target_disconnect): Make "args" const.
61 * target-delegates.c: Rebuild.
62 * remote.c (remote_disconnect): Update.
63 * record.h (record_disconnect): Update.
64 * record.c (record_disconnect): Update.
65 * inf-child.c (inf_child_disconnect): Update.
67 2014-06-16 Tom Tromey <tromey@redhat.com>
69 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
70 * target.c (debug_to_rcmd, default_rcmd): Update.
71 * target-delegates.c: Rebuild.
72 * remote.c (remote_rcmd): Update.
73 * monitor.c (monitor_rcmd): Update.
75 2014-06-16 Pedro Alves <palves@redhat.com>
77 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
78 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
80 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
81 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
82 instead of OBJF_USERLOADED.
83 * objfiles.h (OBJF_SHARED): Update comment.
84 (userloaded_objfile_contains_address_p): Rename to ...
85 (shared_objfile_contains_address_p): ... this, and update
87 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
89 (remove_symbol_file_command): Skip objfiles that don't have
92 2014-06-16 Tom Tromey <tromey@redhat.com>
94 * minsyms.h (prim_record_minimal_symbol)
95 (prim_record_minimal_symbol_and_info): Update comments.
97 2014-06-14 Eli Zaretskii <eliz@gnu.org>
99 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
100 or --without-guile, according to how GDB was built.
102 2014-06-13 Tom Tromey <tromey@redhat.com>
104 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
106 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
108 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
110 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
111 help_list.Pass all_commands, not -1, to help_list.
112 * cli/cli-dump.c (dump_command, append_command)
113 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
114 (binary_dump_command, binary_append_command): Pass all_commands,
115 not -1, to help_list.
116 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
118 * valprint.c (set_print, set_print_raw): Pass all_commands, not
120 * typeprint.c (set_print_type): Pass all_commands, not -1, to
122 * top.c (set_history): Pass all_commands, not -1, to help_list.
123 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
124 all_commands, not -1, to help_list.
125 * symfile.c (overlay_command): Pass all_commands, not -1, to
127 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
129 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
131 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
133 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
134 not -1, to help_list.
135 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
136 not -1, to help_list.
137 * maint.c (maintenance_command, maintenance_info_command)
138 (maintenance_print_command, maintenance_set_cmd): Pass
139 all_commands, not -1, to help_list.
140 * macrocmd.c (macro_command): Pass all_commands, not -1, to
142 * language.c (set_check): Pass all_commands, not -1, to help_list.
143 * infcmd.c (unset_command): Pass all_commands, not -1, to
145 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
147 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
149 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
151 * breakpoint.c (save_command): Pass all_commands, not -1, to
153 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
154 all_commands, not -1, to help_list.
156 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
158 * regcache.c (struct register_to_invalidate): New structure.
159 (do_register_invalidate, make_cleanup_regcache_invalidate): New
161 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
163 2014-06-12 Yao Qi <yao@codesourcery.com>
165 * varobj.c (varobj_get_num_children): Call
167 (varobj_list_children): Likewise.
168 (varobj_update): Likewise. Update comments.
170 2014-06-12 Yao Qi <yao@codesourcery.com>
172 * varobj.c (varobj_pretty_printed_p): Rename to ...
173 (varobj_is_dynamic_p): ... this. New function.
174 * varobj.h (varobj_pretty_printed_p): Remove declaration.
175 (varobj_is_dynamic_p): Declare.
176 * mi/mi-cmd-var.c (print_varobj): All callers updated.
177 (mi_print_value_p, varobj_update_one): Likewise.
179 2014-06-12 Pedro Alves <pedro@codesourcery.com>
180 Yao Qi <yao@codesourcery.com>
182 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
183 (varobj_get_iterator): Wrap up code for pretty-printer by
184 "#if HAVE_PYTHON" and "#endif".
185 (update_dynamic_varobj_children): Likewise.
187 2014-06-12 Pedro Alves <pedro@codesourcery.com>
188 Yao Qi <yao@codesourcery.com>
190 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
191 gdb_python_initialized is false. Move some code from varobj.c.
192 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
193 * varobj.c: Move "varobj-iter.h" inclusion earlier.
194 (struct varobj_item): Moved to varobj-iter.h".
195 (varobj_clear_saved_item): New function.
196 (update_dynamic_varobj_children): Move python-related code to
198 (free_variable): Call varobj_clear_saved_item and
201 2014-06-12 Pedro Alves <pedro@codesourcery.com>
202 Yao Qi <yao@codesourcery.com>
204 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
205 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
206 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
207 (py-varobj.o): New rule.
208 * python/py-varobj.c: New file.
209 * python/python-internal.h (py_varobj_get_iterator): Declare.
210 * varobj-iter.h: New file.
211 * varobj.c: Include "varobj-iter.h"
212 (struct varobj) <child_iter>: Change its type from "PyObject *"
213 to "struct varobj_iter *".
214 <saved_item>: Likewise.
215 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
216 [HAVE_PYTHON] (varobj_get_iterator): New function.
217 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
218 python-specific code to python/py-varobj.c.
219 (install_visualizer): Call varobj_iter_delete instead of
221 * varobj.h (varobj_ensure_python_env): Declare.
223 2014-06-12 Yao Qi <yao@codesourcery.com>
225 * varobj.c (struct varobj_item): New structure.
226 (create_child_with_value): Update declaration.
227 (varobj_add_child): Replace arguments 'name' and 'value' with
228 'item'. All callers updated.
229 (install_dynamic_child): Likewise.
230 (update_dynamic_varobj_children): Likewise.
231 (varobj_add_child): Likewise.
232 (create_child_with_value): Likewise.
234 2014-06-11 Joel Brobecker <brobecker@adacore.com>
236 * NEWS: Create a new section for the next release branch.
237 Rename the section of the current branch, now that it has
240 2014-06-11 Joel Brobecker <brobecker@adacore.com>
242 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
243 * version.in: Bump version to 7.8.50.DATE-cvs.
245 2014-06-11 Pedro Alves <palves@redhat.com>
248 * ser-mingw.c (net_windows_socket_check_pending): New function.
249 (net_windows_select_thread): Ignore spurious wakeups. Use
250 net_windows_socket_check_pending.
251 (net_windows_wait_handle): Check for pending events with
252 ioctlsocket, through net_windows_socket_check_pending, instead of
253 checking the socket's event.
255 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
257 * python/python-internal.h (gdb_PyObject_GetAttrString)
258 (gdb_PyObject_HasAttrString): New inline function definitions.
259 * py-value.c (get_field_flag): Remove the now unnecessary cast to
260 char * of the second argument to PyObject_GetAttrString.
262 2014-06-10 Joel Brobecker <brobecker@adacore.com>
264 * serial.c (serial_write): Fix index of character to be printed
265 in call to serial_logchar when serial debug traces are enabled.
267 2014-06-10 Joel Brobecker <brobecker@adacore.com>
269 * gdbtypes (resolve_dynamic_range): Add function description.
271 2014-06-09 Pedro Alves <palves@redhat.com>
273 * linux-nat.c (linux_child_follow_fork): Initialize status with
274 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
275 inner block. Only pass the signal to PTRACE_DETACH if in pass
278 2014-06-09 Gary Benson <gbenson@redhat.com>
280 * common/signals.c (gdb_signal_from_host): Reorder to separate
281 the always-available ANSI-standard signals from the signals that
283 (do_gdb_signal_to_host): Likewise.
284 * proc-events.c (signal_table): Likewise.
286 2014-06-08 Hui Zhu <hui@codesourcery.com>
288 * common/linux-ptrace.c (linux_disable_event_reporting): New
290 * common/linux-ptrace.h (linux_disable_event_reporting): New
292 * linux-nat.c (linux_child_follow_fork): Do a single step before
295 2014-06-07 Keith Seitz <keiths@redhat.com>
299 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
300 from symbol_matches_domain in symtab.c. All local callers
301 of symbol_matches_domain updated.
302 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
303 search STRUCT_DOMAIN.
304 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
305 independently. standard_lookup will do that automatically.
306 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
307 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
308 (cp_lookup_symbol_in_namespace): Likewise.
309 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
310 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
311 may return a STRUCT_DOMAIN match.
312 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
313 * cp-support.c: Include language.h.
314 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
316 * psymtab.c (match_partial_symbol): Compare the requested
317 domain with the symbol's domain directly.
318 (lookup_partial_symbol): Likewise.
319 * symtab.c (lookup_symbol_in_language): Explain when/why
320 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
321 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
322 appropriate languages.
323 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
324 and moved to ada-lang.c
325 (lookup_block_symbol): Explain that this function only returns
326 symbol matching the requested DOMAIN.
327 Compare the requested domain with the symbol's domain directly.
328 (iterate_over_symbols): Compare the requested domain with the
329 symbol's domain directly.
330 * symtab.h (symbol_matches_domain): Remove.
332 2014-06-06 Doug Evans <xdje42@gmail.com>
334 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
335 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
336 (gdbscm_guile_version_is_at_least): Declare.
337 (gdbscm_scm_string_to_int): Declare.
338 * guile/guile.c (gdbscm_guile_major_version): New global.
339 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
340 (guile_datadir): New static global.
341 (gdbscm_guile_data_directory): New function.
342 (initialize_scheme_side): Update.
343 (misc_guile_functions): Add guile-data-directory.
344 (initialize_gdb_module): Fetch guile version number.
345 * guile/lib/gdb.scm: Remove call to add-to-load-path.
346 * guile/lib/gdb/init.scm (%initialize!): Ditto.
347 * guile/lib/gdb/boot.scm: Use guile-data-directory.
348 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
350 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
351 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
352 * guile/scm-value.c (gdbscm_value_to_string): Only call
353 scm_port_conversion_strategy if Guile version >= 2.0.6.
355 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
357 * main.c (print_gdb_help): Add -q and --silent.
359 2014-06-06 Gary Benson <gbenson@redhat.com>
361 * common/signals.c: Remove preprocessor conditionals for
362 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
364 * proc-events.c: Likewise.
366 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
368 * symfile.c (symfile_free_objfile): Remove restriction to
370 * symfile-mem.c (symbol_file_add_from_memory): Call
371 add_target_sections_of_objfile.
373 2014-06-05 Ludovic Courtès <ludo@gnu.org>
375 * guile/scm-value.c (gdbscm_history_append_x): Use
376 'vlscm_get_value_smob_arg_unsafe' instead of
377 'vlscm_scm_to_value'.
379 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
382 * utils.c (printchar): Don't escape at all if quoter is NUL.
383 Update function documentation to clarify effect of parameter
385 * remote.c (escape_buffer): Pass '\\' as the quoter to
387 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
389 (mi_solib_unloaded): Same.
391 2014-06-05 Joel Brobecker <brobecker@adacore.com>
393 * development.sh: Delete.
394 * Makefile.in (config.status): Adjust dependency on development.sh.
395 * configure.ac: Adjust development.sh source call.
396 * configure: Regenerate.
398 2014-06-04 Doug Evans <xdje42@gmail.com>
400 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
401 is_scheme_bkpt, spec.
402 (bpscm_make_breakpoint_smob): Initialize new members.
403 (gdbscm_create_breakpoint_x): Split into two ...
404 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
405 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
406 (scheme_function breakpoint_functions): Update.
407 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
408 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
409 register-breakpoint!.
411 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
414 * mem-break.c (z_type_supported): Return zero if
415 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
417 2014-06-04 Tom Tromey <tromey@redhat.com>
419 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
420 value_from_contents_and_address_unresolved.
421 (ada_template_to_fixed_record_type_1): Likewise.
422 (ada_which_variant_applies): Likewise.
423 * value.h (value_from_contents_and_address_unresolved): Declare.
424 * value.c (value_from_contents_and_address_unresolved): New
426 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
427 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
428 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
430 2014-06-04 Tom Tromey <tromey@redhat.com>
432 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
434 2014-06-04 Tom Tromey <tromey@redhat.com>
436 * procfs.c (procfs_attach): Make "args" const.
437 * windows-nat.c (windows_attach): Make "args" const.
438 * nto-procfs.c (procfs_attach): Make "args" const.
439 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
440 * go32-nat.c (go32_attach): Make "args" const.
441 * gnu-nat.c (gnu_attach): Make "args" const.
442 * darwin-nat.c (darwin_attach): Make "args" const.
443 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
444 * linux-nat.c (linux_nat_attach): Make "args" const.
445 * remote.c (extended_remote_attach_1, extended_remote_attach):
447 * target.h (struct target_ops) <to_attach>: Make "args" const.
448 (find_default_attach): Likewise.
449 * utils.c (parse_pid_to_attach): Make "args" const.
450 * utils.h (parse_pid_to_attach): Update.
452 2014-06-04 Tom Tromey <tromey@redhat.com>
454 * target-delegates.c: Rebuild.
455 * target.c (default_thread_address_space): New function.
456 (target_thread_address_space): Simplify.
457 * target.h (struct target_ops) <to_thread_address_space>: Add
460 2014-06-04 Doug Evans <xdje42@gmail.com>
462 * guile/scm-type.c (type_smob): Remove duplicate typedef.
464 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
466 * record-btrace.c: Include event-loop.h and inf-loop.h.
467 (record_btrace_resume_exec_dir)
468 (record_btrace_async_inferior_event_handler)
469 (record_btrace_handle_async_inferior_event): New.
470 (record_btrace_open): Create async event handler.
471 (record_btrace_close): Delete async event handler.
472 (record_btrace_resume): Set record_btrace_resume_exec_dir,
473 Mark async event handler.
474 (record_btrace_execution_direction): New.
475 (init_record_btrace_ops): Initialize to_execution_direction.
477 2014-06-03 Doug Evans <xdje42@gmail.com>
479 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
480 (gdbscm_make_parameter): Ditto.
482 2014-06-03 Doug Evans <dje@google.com>
484 * exec.c (exec_close_1): Call clear_section_table instead of
485 resize_section_table.
486 (clear_section_table): New function.
487 (resize_section_table): Make static. Rename arg num_added to
489 * exec.h (clear_section_table): Declare.
490 (resize_section_table): Delete.
491 * progspace.c (release_program_space): Call clear_section_table
492 instead of resize_section_table.
494 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
496 * NEWS (Python Scripting): Add entry about the new xmethods
499 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
501 * python/py-xmethods.c: New file.
502 * python/py-objfile.c (objfile_object): New field 'xmethods'.
503 (objfpy_dealloc): XDECREF on the new xmethods field.
504 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
506 (objfpy_get_xmethods): New function.
507 (objfile_getset): New entry 'xmethods'.
508 * python/py-progspace.c (pspace_object): New field 'xmethods'.
509 (pspy_dealloc): XDECREF on the new xmethods field.
510 (pspy_new, pspace_to_pspace_object): Initialize xmethods
512 (pspy_get_xmethods): New function.
513 (pspace_getset): New entry 'xmethods'.
514 * python/python-internal.h: Add declarations for new functions.
515 * python/python.c (_initialize_python): Invoke
516 gdbpy_initialize_xmethods.
517 * python/lib/gdb/__init__.py (xmethods): New
519 * python/lib/gdb/xmethod.py: New file.
520 * python/lib/gdb/command/xmethods.py: New file.
522 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
524 * eval.c (evaluate_subexp_standard): Call the xmethod if the
525 best match method returned by find_overload_match is an xmethod.
526 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
527 the best matching operator returned by find_overload_match is an
529 * valops.c: #include "extension.h".
530 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
531 Return void. The list of matching source methods is returned in
532 "fn_list" and a vector of matching debug method workers is
533 returned in "xm_worker_vec". Update all callers.
534 (value_find_oload_method_list): Likewise.
535 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
536 non-NULL, then the index of the best matching method in this
537 vector is returned. Update all callers.
538 (find_overload_match): Include xmethods while performing overload
541 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
543 * defs.h (enum lval_type): New enumerator "lval_xcallable".
544 * extension-priv.h (struct extension_language_ops): Add the
546 * extension.c (new_xmethod_worker, clone_xmethod_worker,
547 get_matching_xmethod_workers, get_xmethod_argtypes,
548 invoke_xmethod, free_xmethod_worker,
549 free_xmethod_worker_vec): New functions.
550 * extension.h: #include "common/vec.h".
551 New function declarations.
552 (struct xmethod_worker): New struct.
553 (VEC (xmethod_worker_ptr)): New vector type.
554 (xmethod_worker_ptr): New typedef.
555 (xmethod_worker_vec): Likewise.
556 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
558 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
559 (struct builtin_type): New field "xmethod".
560 * valarith.c (value_ptradd): Assert that the value argument is not
562 * valops.c (value_must_coerce_to_target): Return 0 for
563 lval_xcallable values.
564 * value.c (struct value): New field XM_WORKER in the field
566 (value_address, value_raw_address): Return 0 for lval_xcallable
568 (set_value_address): Assert that the value is not an
570 (value_free): Free the associated xmethod worker when freeing
571 lval_xcallable values.
572 (set_value_component_location): Assert that the WHOLE value is not
574 (value_of_xmethod, call_xmethod): New functions.
575 * value.h: Declare "struct xmethod_worker".
576 Declare new functions value_of_xmethod, call_xmethod.
578 2014-06-03 Joel Brobecker <brobecker@adacore.com>
579 Pedro Alves <palves@redhat.com>
582 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
583 New function, extracted from software_breakpoint_inserted_here_p.
584 (software_breakpoint_inserted_here_p): Replace factored out code
585 by call to find_non_raw_software_breakpoint_inserted_here.
586 (bp_target_info_copy_insertion_state): New function.
587 (bkpt_insert_location): Handle the case of a single-step
588 breakpoint already inserted at the same address.
589 (bkpt_remove_location): Handle the case of a single-step
590 breakpoint still inserted at the same address.
591 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
592 breakpoint already inserted at the same address.
593 (deprecated_remove_raw_breakpoint): Handle the case of a
594 non-raw breakpoint still inserted at the same address.
595 (find_single_step_breakpoint): New function, extracted from
596 single_step_breakpoint_inserted_here_p.
597 (find_single_step_breakpoint): New function,
598 factored out from single_step_breakpoint_inserted_here_p.
599 (single_step_breakpoint_inserted_here_p): Reimplement.
601 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
603 Pushed by Joel Brobecker <brobecker@adacore.com>
604 * source.c (show_substitute_path_command): Fix display of matching
607 2014-06-03 Gary Benson <gbenson@redhat.com>
609 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
611 2014-06-02 Doug Evans <xdje42@gmail.com>
613 Add parameter support for Guile.
614 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
615 (SUBDIR_GUILE_SRCS): Add scm-param.c.
616 (scm-param.o): New rule.
617 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
618 (gdbscm_misc_error): Declare.
619 (gdbscm_canonicalize_command_name): Declare.
620 (gdbscm_scm_to_host_string): Declare.
621 (gdbscm_scm_from_host_string): Declare.
622 (gdbscm_initialize_parameters): Declare.
623 * guile/guile.c (initialize_gdb_module): Call
624 gdbscm_initialize_parameters.
625 * guile/lib/gdb.scm: Export parameter symbols.
626 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
627 cmdscm_canonicalize_name and made public. All callers updated.
628 * guile/scm-exception.c (gdbscm_misc_error): New function.
629 * guile/scm-param.c: New file.
630 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
631 (gdbscm_scm_to_host_string): New function.
632 (gdbscm_scm_from_host_string): New function.
633 * scm-utils.c (gdbscm_gc_dup_argv): New function.
635 2014-06-02 Doug Evans <xdje42@gmail.com>
637 Add command support for Guile.
638 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
639 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
640 (scm-cmd.o): New rule.
641 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
642 (gdbscm_user_error_p): Declare.
643 (gdbscm_parse_command_name): Declare.
644 (gdbscm_valid_command_class_p): Declare.
645 (gdbscm_initialize_commands): Declare.
646 * guile/guile.c (initialize_gdb_module): Call
647 gdbscm_initialize_commands.
648 * guile/lib/gdb.scm: Export command symbols.
649 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
650 (throw-user-error): New function.
651 * guile/scm-cmd.c: New file.
652 * guile/scm-exception.c (user_error_symbol): New static global.
653 (gdbscm_user_error_p): New function.
654 (gdbscm_initialize_exceptions): Set user_error_symbol.
655 * scm-utils.c (gdbscm_gc_xstrdup): New function.
657 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
659 * top.c (command_loop): Handle comments here...
660 (command_line_input): ... not here.
662 2014-06-02 Doug Evans <xdje42@gmail.com>
664 Add progspace support for Guile.
665 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
666 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
667 (scm-progspace.o): New rule.
668 * guile/guile-internal.h (pspace_smob): New typedef.
669 (psscm_pspace_smob_pretty_printers): Declare.
670 (psscm_pspace_smob_from_pspace): Declare.
671 (psscm_scm_from_pspace): Declare.
672 * guile/guile.c (initialize_gdb_module): Call
673 gdbscm_initialize_pspaces.
674 * guile/lib/gdb.scm: Export progspace symbols.
675 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
677 (append-pretty-printer!): Ditto.
678 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
680 * guile/scm-progspace.c: New file.
682 2014-06-03 Alan Modra <amodra@gmail.com>
684 * ppc64-tdep.c (ppc64_standard_linkage8): New.
685 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
687 2014-06-02 Doug Evans <dje@google.com>
689 Add support for skeletonless type units.
690 * dwarf2read.c (struct dwarf2_per_objfile): New member
691 n_allocated_type_units.
692 (struct dwarf2_per_objfile) <tu_stats>: New member
693 nr_all_type_units_reallocs.
694 (create_signatured_type_table_from_index): Initialize
695 n_allocated_type_units
696 (create_all_type_units): Ditto.
697 (add_type_unit): Move up in file. New arg slot.
698 All callers updated. Increase space for all_type_units more
700 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
701 (lookup_dwo_signatured_type): Handle skeletonless TUs.
702 (lookup_dwp_signatured_type): Ditto.
703 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
705 (build_type_psymtabs_1): Leave type_unit_groups as
706 NULL if no TUs present.
707 (print_tu_stats): New function.
708 (process_skeletonless_type_unit): New function.
709 (process_dwo_file_for_skeletonless_type_units): New
711 (process_skeletonless_type_units): New function.
712 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
713 Call print tu_stats if debugging enabled.
715 2014-06-02 Pedro Alves <palves@redhat.com>
717 * breakpoint.c (build_target_command_list): Don't build a command
718 list if we have any duplicate location that isn't a dprintf.
720 2014-06-02 Pedro Alves <palves@redhat.com>
722 * breakpoint.c (dprintf_breakpoint_hit): New function.
723 (initialize_breakpoint_ops): Install it as dprintf's
724 breakpoint_hit method.
726 2014-06-02 Joel Brobecker <brobecker@adacore.com>
728 * source.c (substitute_path_rule_matches): Simplify using
729 filename_ncmp instead of FILENAME_CMP.
731 2014-06-02 Joel Brobecker <brobecker@adacore.com>
733 * source.c (substitute_path_rule_matches): Remove trailing spaces.
735 2014-06-01 Ludovic Courtès <ludo@gnu.org>
737 * configure.ac: When Guile is available, check for the
738 availability of 'scm_new_smob'.
739 * configure, config.h.in: Regenerate.
740 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
743 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
745 * frame.c (struct frame_info): Add stop_string field.
746 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
747 (get_prev_frame_always): Old content moved into
748 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
749 TRY_CATCH, handle MEMORY_ERROR exceptions.
750 (frame_stop_reason_string): New function definition.
751 * frame.h (unwind_stop_reason_to_string): Extend comment to
752 mention frame_stop_reason_string.
753 (frame_stop_reason_string): New function declaration.
754 * stack.c (frame_info): Switch to frame_stop_reason_string.
755 (backtrace_command_1): Switch to frame_stop_reason_string.
756 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
757 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
758 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
760 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
762 * frame.c (frame_stop_reason_string): Rename to ...
763 (unwind_stop_reason_to_string): this.
764 * frame.h (frame_stop_reason_string): Rename to ...
765 (unwind_stop_reason_to_string): this.
766 * stack.c (frame_info): Update call to frame_stop_reason_string.
767 (backtrace_command_1): Likewise.
768 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
769 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
771 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
773 * frame.c (remove_prev_frame): New function.
774 (get_prev_frame_if_no_cycle): Create / discard cleanup using
777 2014-05-29 Pedro Alves <palves@redhat.com>
779 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
780 and make it const. When a single-step decays to a continue,
781 clear 'step', not 'hw_step'. Pass whether the caller wanted
782 to step to user_visible_resume_ptid, not what we ask the
785 2014-05-29 Pedro Alves <palves@redhat.com>
787 * infrun.c (process_event_stop_test, handle_step_into_function)
788 (handle_step_into_function_backward): Adjust.
789 Don't set the even thread's stop_step and call stop_waiting before
790 calling end_stepping_range. Instead do that ...
791 (end_stepping_range): ... here. Take an ecs pointer parameter.
793 2014-05-29 Pedro Alves <palves@redhat.com>
795 * infrun.c (stop_stepping): Rename to ...
796 (stop_waiting): ... this.
797 (proceed): Update comment.
798 (process_event_stop_test, handle_inferior_event)
799 (handle_signal_stop, handle_step_into_function)
800 (handle_step_into_function_backward): Update.
802 2014-05-29 Pedro Alves <palves@redhat.com>
804 * infcall.c (run_inferior_call): Don't check whether the current
805 thread is running after the proceed call.
807 2014-05-29 Pedro Alves <palves@redhat.com>
808 Tom Tromey <tromey@redhat.com>
810 * NEWS: Mention "maint set target-async", "set mi-async", and that
811 background execution commands are now always available.
812 * target.h (target_async_permitted): Update comment.
813 * target.c (target_async_permitted, target_async_permitted_1):
815 (set_target_async_command): Rename to ...
816 (maint_set_target_async_command): ... this.
817 (show_target_async_command): Rename to ...
818 (maint_show_target_async_command): ... this.
819 (_initialize_target): Adjust.
820 * infcmd.c (prepare_execution_command): Make extern.
821 * inferior.h (prepare_execution_command): Declare.
822 * infrun.c (set_observer_mode): Leave target async alone.
823 * mi/mi-interp.c (mi_interpreter_init): Install
824 mi_on_sync_execution_done as sync_execution_done observer.
825 (mi_on_sync_execution_done): New function.
826 (mi_execute_command_input_handler): Don't print the prompt if we
827 just started a synchronous command with an async target.
828 (mi_on_resume): Check sync_execution before printing prompt.
829 * mi/mi-main.h (mi_async_p): Declare.
830 * mi/mi-main.c: Include gdbcmd.h.
831 (mi_async_p): New function.
832 (mi_async, mi_async_1): New globals.
833 (set_mi_async_command, show_mi_async_command, mi_async): New
835 (exec_continue): Call prepare_execution_command.
836 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
837 (mi_execute_async_cli_command): Use mi_async_p.
838 (_initialize_mi_main): Install "set mi-async". Make
839 "target-async" a deprecated alias.
841 2014-05-29 Pedro Alves <palves@redhat.com>
843 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
844 (_initialize_cli_interp): Adjust.
845 * event-loop.c: Include "observer.h".
846 (start_event_loop): Notify 'command_error' observers instead of
847 calling display_gdb_prompt. Remove FIXME comment.
848 * event-top.c (display_gdb_prompt): Remove call into the
850 * inf-loop.c: Include "observer.h".
851 (inferior_event_handler): Notify 'command_error' observers instead
852 of calling display_gdb_prompt.
853 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
854 observers instead of calling display_gdb_prompt.
855 * interps.c (interp_set): Don't call display_gdb_prompt.
856 (current_interp_display_prompt_p): Delete.
857 * interps.h (interp_prompt_p): Delete declaration.
858 (interp_prompt_p_ftype): Delete.
859 (struct interp_procs) <prompt_proc_p>: Delete field.
860 (current_interp_display_prompt_p): Delete declaration.
861 * mi-interp.c (mi_interpreter_prompt_p): Delete.
862 (_initialize_mi_interp): Adjust.
863 * tui-interp.c (tui_init): Install 'sync_execution_done' and
864 'command_error' observers.
865 (tui_on_sync_execution_done, tui_on_command_error): New
867 (tui_display_prompt_p): Delete.
868 (_initialize_tui_interp): Adjust.
870 2014-05-29 Pedro Alves <palves@redhat.com>
873 * cli/cli-interp.c: Include infrun.h and observer.h.
874 (cli_uiout, cli_interp): New globals.
875 (cli_on_signal_received, cli_on_end_stepping_range)
876 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
878 (cli_interpreter_init): Install them as 'end_stepping_range',
879 'signal_received' 'signal_exited', 'exited' and 'no_history'
881 (_initialize_cli_interp): Remove cli_interp local.
882 * infrun.c (handle_inferior_event): Call the several stop reason
883 observers instead of printing the stop reason directly.
884 (end_stepping_range): New function.
885 (print_end_stepping_range_reason, print_signal_exited_reason)
886 (print_exited_reason, print_signal_received_reason)
887 (print_no_history_reason): Make static, and add an uiout
888 parameter. Print to that instead of to CURRENT_UIOUT.
889 * infrun.h (print_end_stepping_range_reason)
890 (print_signal_exited_reason, print_exited_reason)
891 (print_signal_received_reason print_no_history_reason): New
893 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
895 <cli_uiout>: New field.
896 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
897 uiout for CLI output. Install 'signal_received',
898 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
900 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
901 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
902 (mi_on_no_history): New functions.
903 (ui_out_free_cleanup): Delete function.
904 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
905 instead use the one already stored in the MI interpreter data.
907 * tui/tui-interp.c: Include infrun.h and observer.h.
908 (tui_interp): New global.
909 (tui_on_signal_received, tui_on_end_stepping_range)
910 (tui_on_signal_exited, tui_on_exited)
911 (tui_on_no_history): New functions.
912 (tui_init): Install them as 'end_stepping_range',
913 'signal_received' 'signal_exited', 'exited' and 'no_history'
915 (_initialize_tui_interp): Delete tui_interp local.
917 2014-05-29 Pedro Alves <palves@redhat.com>
920 * linux-nat.c (linux_nat_resume_callback): Rename the second
921 parameter to 'except'. Skip LP if it points to EXCEPT.
922 (linux_nat_resume): Don't mark the event lwp as not stopped
923 before resuming sibling lwps. Instead ask
924 linux_nat_resume_callback to skip the event lwp. Mark it as not
925 stopped after actually resuming it.
926 (linux_handle_syscall_trap): Mark the lwp as not stopped after
928 (wait_lwp): Mark the lwp as stopped here.
929 (stop_wait_callback): Mark the lwp as not stopped right after
930 resuming it. Don't mark lwps as stopped here.
931 (linux_nat_filter_event): Mark the lwp as stopped earlier.
932 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
934 2014-05-29 Pedro Alves <palves@redhat.com>
937 * infrun.c (resume): Determine how much to resume depending on
938 whether the caller wanted a step, not whether we can hardware step
939 the target. Mark all threads that we intend to run as running,
940 unless we're calling an inferior function.
941 (normal_stop): If the thread is running an infcall, don't finish
943 * target.c (target_resume): Don't mark threads as running here.
945 2014-05-28 Joel Brobecker <brobecker@adacore.com>
947 * serial.c (_initialize_serial): Remove support for
948 the "set remotebaud" and "show remotebaud" commands.
949 * NEWS: Add entry documenting the removal of that command.
951 2014-05-28 Yao Qi <yao@codesourcery.com>
953 * charset.c: Fix typo in comments.
955 2014-05-27 Gary Benson <gbenson@redhat.com>
957 * utils.c (internal_vproblem): Prompt for a bug report.
959 2014-05-26 Andy Wingo <wingo@igalia.com>
961 * guile/scm-arch.c (arscm_mark_arch_smob):
962 * guile/scm-block.c (bkscm_mark_block_smob)
963 (bkscm_mark_block_syms_progress_smob):
964 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
965 * guile/scm-exception.c (exscm_mark_exception_smob):
966 * guile/scm-frame.c (frscm_mark_frame_smob):
967 * guile/scm-iterator.c (itscm_mark_iterator_smob):
968 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
969 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
970 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
971 (ppscm_mark_pretty_printer_worker_smob):
972 * guile/scm-symbol.c (syscm_mark_symbol_smob):
973 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
974 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
975 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
977 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
980 2014-05-26 Andy Wingo <wingo@igalia.com>
981 Doug Evans <xdje42@gmail.com>
983 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
984 empty_base_class. All uses updated.
985 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
986 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
988 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
989 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
990 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
991 (gdbscm_gsmob_has_property_p, add_property_name)
992 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
993 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
994 (gdb-object-has-property?, gdb-object-properties): Remove.
995 (gdb-object-kind): Renamed from gsmob-kind.
997 2014-05-26 Andy Wingo <wingo@igalia.com>
999 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1000 * configure: Regenerate.
1002 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1004 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1006 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1008 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1009 (replay_memory_access_read_only, replay_memory_access_read_write)
1010 (replay_memory_access_types, replay_memory_access)
1011 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1012 (cmd_set_record_btrace, cmd_show_record_btrace)
1013 (cmd_show_replay_memory_access): New.
1014 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1015 (record_btrace_remove_breakpoint): Replace
1016 record_btrace_allow_memory_access with replay_memory_access.
1017 (_initialize_record_btrace): Add commands.
1018 * NEWS: Announce it.
1020 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1022 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1024 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1026 * MAINTAINERS (Write After Approval): Move self back from
1029 2014-05-22 Pedro Alves <palves@redhat.com>
1031 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1032 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1033 (disable_randomization, enum exec_direction_kind)
1034 (execution_direction, stop_registers, start_remote)
1035 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1036 (wait_for_inferior, normal_stop, get_last_target_status)
1037 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1038 (insert_step_resume_breakpoint_at_sal)
1039 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1040 (set_step_info, print_stop_event, signal_stop_state)
1041 (signal_print_state, signal_pass_state, signal_stop_update)
1042 (signal_print_update, signal_pass_update)
1043 (update_signals_program_target, clear_exit_convenience_vars)
1044 (displaced_step_dump_bytes, update_observer_mode)
1045 (signal_catch_update, gdb_signal_from_command): Move
1047 * infrun.h: ... to this new file.
1048 * amd64-tdep.c: Include infrun.h.
1049 * annotate.c: Include infrun.h.
1050 * arch-utils.c: Include infrun.h.
1051 * arm-linux-tdep.c: Include infrun.h.
1052 * arm-tdep.c: Include infrun.h.
1053 * break-catch-sig.c: Include infrun.h.
1054 * breakpoint.c: Include infrun.h.
1055 * common/agent.c: Include infrun.h instead of inferior.h.
1056 * corelow.c: Include infrun.h.
1057 * event-top.c: Include infrun.h.
1058 * go32-nat.c: Include infrun.h.
1059 * i386-tdep.c: Include infrun.h.
1060 * inf-loop.c: Include infrun.h.
1061 * infcall.c: Include infrun.h.
1062 * infcmd.c: Include infrun.h.
1063 * infrun.c: Include infrun.h.
1064 * linux-fork.c: Include infrun.h.
1065 * linux-nat.c: Include infrun.h.
1066 * linux-thread-db.c: Include infrun.h.
1067 * monitor.c: Include infrun.h.
1068 * nto-tdep.c: Include infrun.h.
1069 * procfs.c: Include infrun.h.
1070 * record-btrace.c: Include infrun.h.
1071 * record-full.c: Include infrun.h.
1072 * remote-m32r-sdi.c: Include infrun.h.
1073 * remote-mips.c: Include infrun.h.
1074 * remote-notif.c: Include infrun.h.
1075 * remote-sim.c: Include infrun.h.
1076 * remote.c: Include infrun.h.
1077 * reverse.c: Include infrun.h.
1078 * rs6000-tdep.c: Include infrun.h.
1079 * s390-linux-tdep.c: Include infrun.h.
1080 * solib-irix.c: Include infrun.h.
1081 * solib-osf.c: Include infrun.h.
1082 * solib-svr4.c: Include infrun.h.
1083 * target.c: Include infrun.h.
1084 * top.c: Include infrun.h.
1085 * windows-nat.c: Include infrun.h.
1086 * mi/mi-interp.c: Include infrun.h.
1087 * mi/mi-main.c: Include infrun.h.
1088 * python/py-threadevent.c: Include infrun.h.
1090 2014-05-22 Pedro Alves <palves@redhat.com>
1092 * infrun.c (handle_inferior_event): Store the exit code for
1093 --return-child-result here, instead of ...
1094 (print_exited_reason): ... here.
1096 2014-05-21 Pedro Alves <palves@redhat.com>
1099 * gdbthread.h (struct thread_control_state): New field
1101 * infrun.c (follow_fork): Copy the new thread control field to the
1103 (clear_proceed_status_thread): Clear the new thread control field.
1104 (proceed): Set the new thread control field.
1105 * interps.h (command_interp): Declare.
1106 * interps.c (command_interpreter): New global.
1107 (command_interp): New function.
1108 (interp_exec): Set `command_interpreter' while here.
1109 * cli-out.c (cli_uiout_dtor): New function.
1110 (cli_ui_out_impl): Install it.
1111 * mi/mi-interp.c: Include cli-out.h.
1112 (mi_cmd_interpreter_exec): Add comment.
1113 (restore_current_uiout_cleanup): New function.
1114 (ui_out_free_cleanup): New function.
1115 (mi_on_normal_stop): If finishing an execution command started by
1116 a CLI command, or any kind of breakpoint-like event triggered,
1117 print the stop event to the output (CLI) stream.
1118 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1120 2014-05-21 Pedro Alves <palves@redhat.com>
1122 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1123 current source line having changed.
1124 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1125 * infrun.c (normal_stop): Adjust call to
1126 set_current_sal_from_frame.
1127 * source.c (clear_lines_listed_range): New function.
1128 (set_current_source_symtab_and_line, identify_source_line): Clear
1129 the lines listed range.
1130 (line_info): Handle the first "info line" after the current source
1131 line having changed.
1132 * stack.c (print_stack_frame): Remove center handling.
1133 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1136 2014-05-21 Pedro Alves <palves@redhat.com>
1138 * inf-child.c (inf_child_mourn_inferior): New function.
1139 * inf-child.h (inf_child_mourn_inferior): New declaration.
1140 * darwin-nat.c (darwin_mourn_inferior): Use
1141 inf_child_mourn_inferior.
1142 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1143 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1144 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1145 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1146 * windows-nat.c (windows_mourn_inferior): Likewise.
1148 2014-05-21 Doug Evans <xdje42@gmail.com>
1150 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1152 2014-05-21 Doug Evans <xdje42@gmail.com>
1154 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1155 (gdbscm_out_of_range_error): Ditto.
1156 (gdbscm_memory_error): Ditto.
1157 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1158 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1159 (gdbscm_out_of_range_error): Update.
1160 (gdbscm_memory_error): Update.
1161 (gdbscm_scm_to_target_string_unsafe): Delete.
1163 2014-05-21 Pedro Alves <palves@redhat.com>
1165 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1167 (inf_child_open_target): New function.
1168 (inf_child_open): Use inf_child_open_target to push the target
1169 instead of erroring out.
1170 (inf_child_disconnect, inf_child_close)
1171 (inf_child_maybe_unpush_target): New functions.
1172 (inf_child_target): Install inf_child_disconnect and
1173 inf_child_close. Store a pointer to the returned object.
1174 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1176 * target.c (auto_connect_native_target): New global.
1177 (show_default_run_target): New function.
1178 (find_default_run_target): Return NULL if automatically connecting
1179 to the native target is disabled.
1180 (_initialize_target): Install set/show auto-connect-native-target.
1181 * NEWS: Mention "set auto-connect-native-target", and "target
1183 * linux-nat.c (super_close): New global.
1184 (linux_nat_close): Call super_close.
1185 (linux_nat_add_target): Store a pointer to the base class's
1187 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1188 inf_child_maybe_unpush.
1189 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1191 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1192 the inferior. Use inf_child_maybe_unpush_target.
1193 (inf_ttrace_attach): Don't push the target if it is already
1195 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1196 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1197 after mourning the inferior. Use inf_child_maybe_unpush_target.
1198 (darwin_attach_pid): Don't push the target if it is already
1200 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1201 mourning the inferior. Use inf_child_maybe_unpush_target.
1202 (gnu_detach): Use inf_child_maybe_unpush_target.
1203 * go32-nat.c (go32_create_inferior): Don't push the target if it
1205 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1206 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1207 (procfs_open): Rename to ...
1208 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1209 comments. Can target_preopen before changing node. Call
1210 inf_child_open_target to push the target explicitly.
1211 (procfs_attach): Don't push the target if it is already pushed.
1212 (procfs_detach): Use inf_child_maybe_unpush_target.
1213 (procfs_create_inferior): Don't push the target if it is already
1215 (nto_native_ops): New global.
1216 (procfs_open): Reimplement.
1217 (procfs_native_open): New function.
1218 (init_procfs_targets): Install procfs_native_open as to_open of
1219 "target native". Store a pointer to the "native" target in
1221 * procfs.c (procfs_attach): Don't push the target if it is already
1223 (procfs_detach): Use inf_child_maybe_unpush_target.
1224 (procfs_mourn_inferior): Only unpush the target after mourning the
1225 inferior. Use inf_child_maybe_unpush_target.
1226 (procfs_init_inferior): Don't push the target if it is already
1228 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1229 if it is already pushed.
1231 2014-05-21 Pedro Alves <palves@redhat.com>
1233 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1234 and "procfs" targets are now called "native" instead.
1236 2014-05-21 Pedro Alves <palves@redhat.com>
1238 * go32-nat.c (go32_open): Delete.
1239 (go32_target): Don't override the to_open method.
1241 2014-05-21 Pedro Alves <palves@redhat.com>
1243 * nto-procfs.c (procfs_can_run): New function.
1244 (nto_procfs_ops): New global.
1245 (init_procfs_targets): New, based on procfs_target. Install
1246 "target native" in addition to "target procfs".
1247 (_initialize_procfs): Call init_procfs_targets instead of adding
1250 2014-05-21 Pedro Alves <palves@redhat.com>
1252 * windows-nat.c (windows_target): Don't override to_shortname,
1253 to_longname or to_doc.
1255 2014-05-21 Pedro Alves <palves@redhat.com>
1257 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1260 2014-05-21 Pedro Alves <palves@redhat.com>
1262 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1263 to_shortname, to_longname or to_doc.
1265 2014-05-21 Pedro Alves <palves@redhat.com>
1267 * go32-nat.c (go32_target): Don't override to_shortname,
1268 to_longname or to_doc.
1270 2014-05-21 Pedro Alves <palves@redhat.com>
1272 * inf-child.c (inf_child_open): Remove mention of "child".
1273 (inf_child_target): Rename target to "native" instead of "child".
1275 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1277 * Makefile.in (SFILES): Delete "regset.c".
1278 (COMMON_OBS): Delete "regset.o".
1280 * regset.h (regset_alloc): Delete prototype.
1282 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1284 * sparc-linux-tdep.c (sparc32_linux_gregset)
1285 (sparc32_linux_fpregset): New static regset structures.
1286 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1287 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1289 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1290 (sparc64_linux_fpregset): New static regset structures.
1291 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1292 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1293 New static regset structures.
1294 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1295 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1296 New static regset structures.
1297 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1298 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1299 New static regset structures.
1300 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1301 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1302 New static regset structures.
1303 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1305 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1308 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1309 register maps ("regmaps") from "*regset" to "*regmap". Do this
1310 for all regmap types and variables.
1311 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1312 (sparc32_linux_supply_core_gregset)
1313 (sparc32_linux_collect_core_gregset)
1314 (sparc32_linux_supply_core_fpregset)
1315 (sparc32_linux_collect_core_fpregset): Likewise.
1316 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1317 (sparc_gregmap, sparc_fpregmap): ... these.
1318 (sparc_supply_gregset, sparc_collect_gregset)
1319 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1320 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1321 (_initialize_sparc_nat): Rename regmaps.
1322 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1323 (sparc_gregmap, sparc_fpregmap): ... these.
1324 (sparc_supply_gregset, sparc_collect_gregset)
1325 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1326 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1328 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1329 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1331 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1333 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1334 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1335 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1337 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1338 (sparc32_bsd_fpregset): Rename to...
1339 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1340 (sparc32_bsd_fpregmap): ... these.
1341 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1342 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1343 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1344 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1345 (struct sparc_gregmap, struct sparc_fpregmap)
1346 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1347 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1348 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1349 (sparc32_supply_regset, sparc32_collect_gregset)
1350 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1352 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1353 (sparc64_linux_ptrace_gregmap): ... this.
1354 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1355 (_initialize_sparc64_linux_nat): Rename regmaps.
1356 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1357 (sparc64_linux_core_gregmap): ... this.
1358 (sparc64_linux_supply_core_gregset)
1359 (sparc64_linux_collect_core_gregset)
1360 (sparc64_linux_supply_core_fpregset)
1361 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1362 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1363 (sparc64_sol2_fpregset): Rename to...
1364 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1365 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1366 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1368 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1369 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1370 (sparc64_bsd_fpregset): Rename to...
1371 (struct sparc_gregmap, sparc64_sol2_gregmap)
1372 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1373 (sparc64_bsd_fpregmap): ... these.
1374 (sparc64_supply_gregset, sparc64_collect_gregset)
1375 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1377 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1378 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1379 (sparc64fbsd_gregmap): ... this.
1380 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1381 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1383 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1384 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1385 (sparc64nbsd_collect_fpregset): Likewise.
1386 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1387 (sparc64nbsd_gregmap): ... this.
1388 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1390 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1391 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1392 (sparc64obsd_gregmap): ... this.
1393 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1395 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1396 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1397 (sparc32nbsd_gregmap): ... this.
1398 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1403 * score-tdep.c (score7_linux_gregset): New static regset
1405 (score7_linux_regset_from_core_section): Remove dynamic regset
1407 (score_gdbarch_init): Drop allocation of tdep structure.
1408 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1410 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1412 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1414 (am33_regset_from_core_section): Remove dynamic regset
1417 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1419 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1420 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1422 (mips_linux_regset_from_core_section): Remove dynamic regset
1424 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1425 'gregset64', 'fpregset', and 'fpregset64'.
1426 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1427 deleted tdep fields.
1429 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1431 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1433 (amd64_regset_from_core_section): Remove dynamic regset
1435 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1437 (amd64obsd_regset_from_core_section): Remove dynamic regset
1439 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1441 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1442 x86-common regset supply function.
1443 * i386-tdep.c (i386_collect_gregset): Make static.
1444 (i386_gregset): New global regset structure.
1445 (i386_fpregset, i386_xstateregset): New static regset structures.
1446 (i386_regset_from_core_section): Remove dynamic regset
1448 (i386_gdbarch_init): Remove initialization of tdep fields
1449 'gregset', 'fpregset', and 'xstateregset'.
1450 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1451 'fpregset', and 'xstateregset'.
1452 (i386_collect_gregset): Remove prototype.
1453 (i386_gregset): New declaration.
1454 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1456 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1459 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1461 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1462 (arm_linux_vfpregset): New static regset structures.
1463 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1465 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1466 and 'vfpregset' fields.
1468 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1471 (aarch64_linux_fpregset): New static regset structures.
1472 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1473 of regset structures.
1474 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * regset.h (struct regset): Remove gdbarch field.
1480 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1481 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1482 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1484 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1485 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1486 (ppc32_linux_vsxregset): Likewise.
1487 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1488 via the regcache instead of the regset.
1489 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1490 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1491 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1492 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1495 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1497 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1498 Constify structures.
1499 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1500 (alphanbsd_aout_gregset): Likewise.
1501 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1502 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1504 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1505 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1507 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1508 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1509 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1510 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1511 * m88k-tdep.c (m88k_gregset): Likewise.
1512 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1513 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1514 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1515 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1516 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1517 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1518 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1519 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1520 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1522 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1523 * sh-tdep.h (sh_corefile_gregset): Likewise.
1524 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1525 * vax-tdep.c (vax_gregset): Likewise.
1527 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 Fix TLS access for -static -pthread.
1530 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1531 (try_thread_db_load_1): Initialize it.
1532 (thread_db_get_thread_local_address): Call it if LM is zero.
1533 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1534 * target.h (struct target_ops) (to_get_thread_local_address): Add
1535 load_module_addr comment.
1537 2014-05-21 Pedro Alves <palves@redhat.com>
1539 * dcache.c (dcache_read_memory_partial): If reading the cache line
1540 fails, fallback to reading just the memory the caller wanted.
1542 2014-05-20 Doug Evans <dje@google.com>
1544 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1545 instead of get_current_arch.
1547 2014-05-20 Pedro Alves <palves@redhat.com>
1549 * NEWS: Mention that compare-sections now works with all targets.
1551 * remote.c (PACKET_qCRC): New enum value.
1552 (remote_verify_memory): Don't send qCRC if the target has no
1553 execution. Use packet_support/packet_ok. If the target doesn't
1554 support the qCRC packet, fallback to a deep memory copy.
1555 (compare_sections_command): Say "target image" instead of "remote
1557 (_initialize_remote): Add PACKET_qCRC to the list of config
1558 packets that have no associated command. Extend comment.
1559 * target.c (simple_verify_memory, default_verify_memory): New
1561 * target.h (struct target_ops) <to_verify_memory>: Default to
1562 default_verify_memory.
1563 (simple_verify_memory): New declaration.
1564 * target-delegates.c: Regenerate.
1566 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1568 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1570 2014-05-20 Hui Zhu <hui@codesourcery.com>
1571 Yao Qi <yao@codesourcery.com>
1574 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1575 and change address of sp and pc.
1577 2014-05-19 Tom Tromey <tromey@redhat.com>
1579 * gdbtypes.c (rank_function): Use XNEWVEC.
1580 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1582 2014-05-19 Doug Evans <dje@google.com>
1584 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1585 build_type_unit_groups and moved closer to only caller. Remove
1586 arguments. All references updated. Remove outdated .gdb_index
1588 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1589 build_type_psymtabs_1.
1591 2014-05-19 Doug Evans <dje@google.com>
1593 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1594 n_type_unit_groups, all_type_unit_groups. All uses removed.
1595 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1596 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1597 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1598 (add_type_unit_group_to_table): Delete.
1600 2014-05-19 Doug Evans <dje@google.com>
1602 * eval.c (evaluate_subexp_standard): Add some comments.
1604 2014-05-17 Doug Evans <xdje42@gmail.com>
1606 * progspace.c (remove_program_space): Delete, unused.
1607 * progspace.h (remove_program_space): Ditto.
1609 2014-05-17 Doug Evans <xdje42@gmail.com>
1611 * inferior.c (prune_inferiors): Fix comment.
1612 (remove_inferior_command): Call prune_program_spaces.
1614 2014-05-16 Doug Evans <dje@google.com>
1616 New command line option -D.
1618 * main.c (set_gdb_data_directory): New function.
1619 (captured_main): Recognize -D. Flag error for --data-directory "".
1620 Call set_gdb_data_directory.
1621 (print_gdb_help): Print --data-directory, -D.
1622 * main.h (set_gdb_data_directory): Declare.
1623 * top.c (staged_gdb_datadir): New static global.
1624 (set_gdb_datadir): Call set_gdb_data_directory
1625 (show_gdb_datadir): New function.
1626 (init_main): Update init of data-directory parameter.
1628 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1630 Import the "dirfd" gnulib module.
1631 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1632 * gnulib/aclocal.m4: Update.
1633 * gnulib/config.in: Update.
1634 * gnulib/configure: Update.
1635 * gnulib/import/Makefile.am: Update.
1636 * gnulib/import/Makefile.in: Update.
1637 * gnulib/import/dirfd.c: New.
1638 * gnulib/import/m4/dirfd.m4: New.
1639 * gnulib/import/m4/gnulib-cache.m4: Update.
1640 * gnulib/import/m4/gnulib-comp.m4: Update.
1642 2014-05-16 Pierre Muller <muller@sourceware.org>
1643 Yao Qi <yao@codesourcery.com>
1645 * valprint.c (print_wchar): Move the code on checking whether
1646 W is a printable wide char to the default branch of switch
1647 statement below. Call wchar_printable instead of gdb_iswprint.
1649 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1651 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1652 ldr.w and ldrd instructions.
1654 2014-05-15 Doug Evans <dje@google.com>
1656 * dwarf2read.c (read_structure_type): Delete outdated comments.
1658 2014-05-14 Tom Tromey <tromey@redhat.com>
1660 * macrocmd.c (print_macro_definition): Reindent.
1662 2014-05-13 Doug Evans <xdje42@gmail.com>
1664 * python/py-cmd.c (cmdpy_completer): Add comment.
1665 (completers): Make const.
1667 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1669 * infrun.c (resume): Remove should_resume (unused). Move up
1670 declaration of resume_ptid.
1672 2014-05-13 Tom Tromey <tromey@redhat.com>
1674 * language.h (unop_type_check): Remove.
1675 (binop_type_check): Don't declare.
1677 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1679 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1680 call to regcache_raw_collect.
1682 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1684 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1685 mi_console->quote as the quoting character.
1687 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1689 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1691 2014-04-29 Tom Tromey <tromey@redhat.com>
1693 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1694 "show debug varobj".
1696 2014-05-07 Kyle McMartin <kyle@redhat.com>
1698 Pushed by Joel Brobecker <brobecker@adacore.com>.
1699 * aarch64-tdep.c (aarch64_software_single_step): New function.
1700 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1701 with aarch64_software_single_step.
1703 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1707 2014-05-05 Keith Seitz <keiths@redhat.com>
1709 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1710 variable or history value is successfully parsed.
1712 2014-05-05 Yao Qi <yao@codesourcery.com>
1713 Pedro Alves <palves@redhat.com>
1715 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1716 address of blocks that intersects the requested range. Trim
1717 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1719 * ctf.c (ctf_xfer_partial): Likewise.
1721 2014-05-05 Yao Qi <yao@codesourcery.com>
1723 * printcmd.c (display_command): Remove the check to
1724 target_has_execution.
1726 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1728 * ppcobsd-nat.c: Include "obsd-nat.h".
1729 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1731 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1733 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1735 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1736 and 16-bit signed and unsigned arguments. Update comment.
1737 (stap_parse_probe_arguments): Extend code to handle such
1738 arguments. Use warning instead of complaint to notify about
1739 unrecognized bitness.
1741 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1743 PR breakpoints/16889
1744 * stap-probe.c (stap_parse_probe_arguments): Simplify
1745 check for non-prefixed probes (i.e., probes whose
1746 arguments do not start with "N@"). Always set the
1747 argument type to a sane value.
1749 2014-05-01 David Taylor <dtaylor@emc.com>
1751 * remote.c (compare_sections_command): Add -r option to compare
1752 all loadable read-only sections.
1754 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1756 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1757 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1759 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1760 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1761 Remove unused CORE_ADDR argument. Update all callers.
1763 2014-04-29 Pedro Alves <palves@redhat.com>
1765 * remote.c (struct packet_config) <detect>: Extend comment.
1766 (add_packet_config_cmd): Don't set the config's detect or support
1768 (init_all_packet_configs): Also initialize the config's 'detect'
1770 (reset_all_packet_configs_support): New function.
1771 (remote_open_1): Call reset_all_packet_configs_support instead of
1772 init_all_packet_configs.
1773 (_initialize_remote): Initialize all packet configs. Assert that
1774 all packets have an associated command, except a few known
1777 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1779 * dwarf2read.c (read_subrange_type): Handle dynamic
1780 DW_AT_lower_bound attributes.
1782 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1784 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1785 dynamic bounds before computing its upper bound.
1786 (ada_discrete_type_low_bound): Same as above with the lower bound.
1788 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1790 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1791 range types. Adjust the array handling implementation to
1792 take advantage of this change.
1793 (resolve_dynamic_range): New function, mostly extracted from
1794 resolve_dynamic_bounds.
1795 (resolve_dynamic_array): New function, mostly extracted from
1796 resolve_dynamic_bounds.
1797 (resolve_dynamic_bounds): Delete.
1798 (resolve_dynamic_type): Reimplement. Add handling of
1799 TYPE_CODE_RANGE types.
1801 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1803 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1804 handling of parallel ___XA types.
1806 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1808 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1809 unnecessary second call to static_unwrap_type.
1811 2014-04-27 Hui Zhu <hui@codesourcery.com>
1813 * stack.c (print_frame_info): Call do_gdb_disassembly with
1814 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1816 2014-04-26 Doug Evans <xdje42@gmail.com>
1818 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1820 2014-04-25 Pedro Alves <palves@redhat.com>
1823 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1824 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1825 and newline from built string.
1826 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1827 (linux_ptrace_attach_fail_reason): ... this.
1828 * linux-nat.c (linux_nat_attach): Adjust to use
1829 linux_ptrace_attach_fail_reason.
1831 2014-04-25 Pedro Alves <palves@redhat.com>
1833 * remote.c (struct remote_state): Remove multi_process_aware,
1834 non_stop_aware, cond_tracepoints, cond_breakpoints,
1835 breakpoint_commands, fast_tracepoints, static_tracepoints,
1836 install_in_trace, disconnected_tracing,
1837 enable_disable_tracepoints, string_tracing, and
1838 augmented_libraries_svr4_read fields.
1839 (remote_multi_process_p): Move further below in the file.
1840 (struct packet_config): Add comments.
1841 (update_packet_config): Delete function.
1842 (show_packet_config_cmd): Use packet_config_support.
1843 (add_packet_config_cmd): Use NULL as set callback.
1844 (packet_ok): "set remote foo-packet"-style commands no longer
1845 change config->supported -- adjust.
1846 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1847 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1848 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1849 (PACKET_QNonStop, PACKET_multiprocess_feature)
1850 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1851 (PACKET_DisconnectedTracing_feature)
1852 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1853 (set_remote_protocol_packet_cmd): Delete function.
1854 (packet_config_support, packet_support): New functions.
1855 (set_remote_protocol_Z_packet_cmd): Don't call
1856 update_packet_config.
1857 (remote_query_attached, remote_pass_signals)
1858 (remote_program_signals, remote_threads_info)
1859 (remote_threads_extra_info, remote_start_remote): Use
1861 (remote_start_remote): Use packet_config_support and
1863 (init_all_packet_configs): Set all packets to unknown support,
1864 instead of calling update_packet_config.
1865 (remote_check_symbols): Use packet_support.
1866 (remote_supported_packet): Unconditionally set the packet config's
1868 (remote_multi_process_feature, remote_non_stop_feature)
1869 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1870 (remote_breakpoint_commands_feature)
1871 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1872 (remote_install_in_trace_feature)
1873 (remote_disconnected_tracing_feature)
1874 (remote_enable_disable_tracepoint_feature)
1875 (remote_string_tracing_feature)
1876 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1877 (remote_protocol_features): Adjust to use remote_supported_packet
1878 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1879 "ConditionalTracepoints", "ConditionalBreakpoints",
1880 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1881 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1882 "EnableDisableTracepoints", and "tracenz".
1883 (remote_query_supported): Use packet_support.
1884 (remote_open_1): Adjust.
1885 (extended_remote_attach_1): Use packet_support. Switch on the
1886 result of packet_ok instead of checking whether the packet ended
1888 (remote_vcont_resume): Use packet_support.
1889 (remote_resume, remote_stop_ns, fetch_register_using_p)
1890 (remote_prepare_to_store, store_register_using_P)
1891 (check_binary_download, remote_write_bytes): Use packet_support.
1892 (remote_vkill): Use packet_support. Switch on the result of
1893 packet_ok instead of checking whether the packet ended up
1895 (extended_remote_supports_disable_randomization): Use
1897 (extended_remote_run): Switch on the result of packet_ok instead
1898 of checking whether the packet ended up disabled.
1899 (remote_insert_breakpoint, remote_remove_breakpoint)
1900 (remote_insert_watchpoint, remote_remove_watchpoint)
1901 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1903 (remote_search_memory): Use packet_config_support.
1904 (remote_get_thread_local_address, remote_get_tib_address)
1905 (remote_hostio_send_command, remote_can_execute_reverse): Use
1907 (remote_supports_cond_tracepoints)
1908 (remote_supports_cond_breakpoints)
1909 (remote_supports_fast_tracepoints)
1910 (remote_supports_static_tracepoints)
1911 (remote_supports_install_in_trace)
1912 (remote_supports_enable_disable_tracepoint)
1913 (remote_supports_string_tracing)
1914 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1915 the packet config says the feature is enabled or disabled.
1916 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1917 (remote_get_trace_status): Use packet_support.
1918 (remote_set_disconnected_tracing): Adjust to check whether the
1919 feature is enabled with packet_support.
1920 (remote_set_trace_buffer_size, remote_use_agent)
1921 (remote_can_use_agent, remote_supports_btrace): Use
1923 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1924 Use packet_config_support.
1925 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1926 the packet config says the feature is enabled or disabled.
1927 (set_range_stepping): Use packet_support.
1929 2014-04-25 Tom Tromey <tromey@redhat.com>
1931 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1934 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1936 * NEWS: Mention support for C99 variable length arrays.
1938 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1940 * ada-lang.c (standard_exc): Expand introductory comment.
1942 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1943 Walfred Tedeschi <walfred.tedeschi@intel.com>
1945 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1947 (amd64_linux_read_description): Add code to handle AVX512 xstate
1948 mask and return respective tdesc.
1949 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1950 and features/i386/x32-avx512-linux.c.
1951 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1952 (amd64_linux_core_read_description): Add code to handle AVX512
1953 xstate mask and return respective tdesc.
1954 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1955 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1957 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1958 (tdesc_amd64_avx512_linux): New prototype.
1959 (tdesc_x32_avx512_linux): Likewise.
1960 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1961 features/i386/x32-avx512.c.
1962 (amd64_ymm_avx512_names): New register names for pseudo
1964 (amd64_ymmh_avx512_names): New register names for raw registers
1966 (amd64_k_names): New register names for K registers.
1967 (amd64_zmmh_names): New register names for ZMM raw registers.
1968 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1969 (amd64_xmm_avx512_names): New register names for XMM16-31
1971 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1973 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1974 if feature is present.
1975 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1976 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1977 (AMD64_NUM_REGS): Adjust to new number of registers.
1978 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1979 registers supplied via XSTATE by AVX512 registers.
1980 (i386_linux_read_description): Add case for AVX512.
1981 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1982 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1983 (i386_linux_core_read_description): Add case for AVX512.
1984 (i386_linux_init_abi): Install supported register note section
1986 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1988 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1989 registers to be number of zmm7h + 1.
1990 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1991 * i386-tdep.c: Include features/i386/i386-avx512.c.
1992 (i386_zmm_names): Add ZMM pseudo register names array.
1993 (i386_zmmh_names): Add ZMM raw register names array.
1994 (i386_k_names): Add K raw register names array.
1995 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1996 registers. AVX512 has 16 more ZMM registers than there are YMM
1998 (i386_zmmh_regnum_p): Add function to look up register number of
2000 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2001 (i386_k_regnum_p): Likewise for K raw registers.
2002 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2003 registers added by AVX512.
2004 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2005 registers added by AVX512.
2006 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2008 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2009 (i386_pseudo_register_name): Add ZMM pseudo registers.
2010 (i386_zmm_type): Construct and return vector registers type for ZMM
2012 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2013 ZMM0-31 pseudo registers and K registers.
2014 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2015 and YMM16-31 registers from register cache.
2016 (i386_pseudo_register_write): Add code to write K, ZMM and
2018 (i386_register_reggroup_p): Add code to include/exclude AVX512
2019 registers in/from respective register groups.
2020 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2021 registers if feature is present in xcr0.
2022 (i386_gdbarch_init): Add code to initialize AVX512 feature
2023 variables in tdep structure, wire in pseudo registers and call
2024 initialize_tdesc_i386_avx512.
2025 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2027 (i386_regnum): Add AVX512 registers.
2028 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2029 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2030 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2031 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2033 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2034 (i386_ymm_avx512_regnum_p): Likewise.
2035 (i386_k_regnum_p): Likewise.
2036 (i386_zmm_regnum_p): Likewise.
2037 (i386_zmmh_regnum_p): Likewise.
2038 * i387-tdep.c : Update year in copyright notice.
2039 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2041 (XSAVE_YMM_AVX512_ADDR): New macro.
2042 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2044 (XSAVE_XMM_AVX512_ADDR): New macro.
2045 (xsave_avx512_k_offset): New table for K register offsets in
2047 (XSAVE_AVX512_K_ADDR): New macro.
2048 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2050 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2051 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2053 (i387_collect_xsave): Add code to collect AVX512 registers from
2055 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2056 of XMM16-31 registers.
2057 (I387_NUM_K_REGS): New define for number of K registers.
2058 (I387_K0_REGNUM): New define for K0 register number.
2059 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2060 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2061 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2063 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2064 (I387_XMM16_REGNUM): New define for XMM16 register number.
2065 (I387_YMM0_REGNUM): New define for YMM0 register number.
2066 (I387_KEND_REGNUM): New define for last K register number.
2067 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2068 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2070 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2072 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2074 * features/Makefile: Add AVX512 related files.
2075 * features/i386/32bit-avx512.xml: New file.
2076 * features/i386/64bit-avx512.xml: Likewise.
2077 * features/i386/amd64-avx512-linux.c: Likewise.
2078 * features/i386/amd64-avx512-linux.xml: Likewise.
2079 * features/i386/amd64-avx512.c: Likewise.
2080 * features/i386/amd64-avx512.xml: Likewise.
2081 * features/i386/i386-avx512-linux.c: Likewise.
2082 * features/i386/i386-avx512-linux.xml: Likewise.
2083 * features/i386/i386-avx512.c: Likewise.
2084 * features/i386/i386-avx512.xml: Likewise.
2085 * features/i386/x32-avx512-linux.c: Likewise.
2086 * features/i386/x32-avx512-linux.xml: Likewise.
2087 * features/i386/x32-avx512.c: Likewise.
2088 * features/i386/x32-avx512.xml: Likewise.
2089 * regformats/i386/amd64-avx512-linux.dat: New file.
2090 * regformats/i386/amd64-avx512.dat: Likewise.
2091 * regformats/i386/i386-avx512-linux.dat: Likewise.
2092 * regformats/i386/i386-avx512.dat: Likewise.
2093 * regformats/i386/x32-avx512-linux.dat: Likewise.
2094 * regformats/i386/x32-avx512.dat: Likewise.
2095 * NEWS: Add note about new support for AVX512.
2098 2014-04-23 Pedro Alves <palves@redhat.com>
2100 * breakpoint.c (insert_bp_location): Tolerate errors if the
2101 breakpoint is set in a user-loaded objfile.
2102 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2103 location is marked shlib_disabled. If the breakpoint is set in a
2104 user-loaded objfile is a GDB-side memory breakpoint, validate it
2105 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2106 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2108 * mem-break.c (memory_validate_breakpoint): New function.
2109 * objfiles.c (userloaded_objfile_contains_address_p): New
2111 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2112 * target.h (memory_validate_breakpoint): New declaration.
2114 2014-04-23 Pedro Alves <palves@redhat.com>
2116 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2117 the breakpoint is set in a shared library, only suppress
2118 errors for software breakpoints, not hardware breakpoints.
2120 2014-04-22 Pedro Alves <palves@redhat.com>
2122 * infrun.c (schedlock_applies): New function, factored out from
2123 find_thread_needs_step_over.
2124 (find_thread_needs_step_over): Use it.
2125 (switch_back_to_stepped_thread): Always clear trap_expected if the
2126 step over is finished. Return early if scheduler locking applies.
2127 Look for the stepping thread and a potential step-over thread with
2129 (currently_stepping_or_nexting_callback): Delete.
2131 2014-04-22 Nick Clifton <nickc@redhat.com>
2133 * NEWS: Mention that ARM sim now supports tracing.
2135 2014-04-22 Yao Qi <yao@codesourcery.com>
2137 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2139 * tracefile.c (tracefile_fetch_registers): ... it. New
2141 * tracefile.h (tracefile_fetch_registers): Declare.
2142 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2143 tracefile_fetch_registers.
2145 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2148 * windows-nat.c (thread_rec): Don't display a warning when
2149 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2150 fails for any reason, set th->suspended to -1, so that we don't
2151 try to resume such a thread. Also, don't return NULL in these
2152 cases, to avoid completely ruin the session due to "PC register is
2153 not available" error.
2154 (do_windows_fetch_inferior_registers): Check errors in
2155 GetThreadContext call.
2156 (windows_continue): Accept an additional argument KILLED; if not
2157 zero, ignore errors in the SetThreadContext call, since the
2158 inferior was killed and is shutting down.
2159 (windows_resume, get_windows_debug_event)
2160 (windows_create_inferior, windows_mourn_inferior)
2161 (windows_kill_inferior): All callers of windows_continue changed
2162 to adjust to its new calling sequence.
2164 2014-04-19 Yao Qi <yao@codesourcery.com>
2166 * ctf.c (ctf_open): Call post_create_inferior.
2168 2014-04-19 Yao Qi <yao@codesourcery.com>
2170 * ctf.c (handle_id): New static variable.
2171 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2172 value. Get the declaration of event "register" and get length
2173 of field "contents".
2175 2014-04-19 Yao Qi <yao@codesourcery.com>
2177 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2179 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2181 * valops.c (oload_method_static): Remove unnecessary argument
2182 METHOD. Update all callers.
2184 2014-04-18 Pedro alves <palves@redhat.com>
2185 Tom Tromey <tromey@redhat.com>
2188 * frame.c (get_prev_frame_1): Rename to ...
2189 (get_prev_frame_always): ... this, and make extern. Adjust.
2190 (skip_artificial_frames): Use get_prev_frame_always.
2191 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2192 (get_frame_unwind_stop_reason): Adjust to rename.
2193 * frame.h (get_prev_frame_always): Declare.
2194 * inline-frame.c: Include frame.h.
2195 (inline_frame_this_id): Use get_prev_frame_always.
2197 2014-04-18 Tristan Gingold <gingold@adacore.com>
2199 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2200 code by using bfd_mach_o_get_base_address.
2202 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2204 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2205 (spu_ax_pseudo_register_collect): New function.
2206 (spu_ax_pseudo_register_push_stack): Likewise.
2207 (spu_dwarf_reg_to_regnum): Likewise.
2208 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2210 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2212 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2213 Replace FRAME argument with FRAME_ID.
2214 * gdbarch.c, gdbarch.h: Regenerate.
2215 * findvar.c (default_value_from_register): Add GDBARCH argument;
2216 replace FRAME by FRAME_ID. No longer call get_frame_id.
2217 (value_from_register): Update call to gdbarch_value_from_register.
2218 * value.h (default_value_from_register): Update prototype.
2219 * s390-linux-tdep.c (s390_value_from_register): Update interface
2220 and call to default_value_from_register.
2221 * spu-tdep.c (spu_value_from_register): Likewise.
2223 * findvar.c (address_from_register): Remove TYPE argument.
2224 Do not call value_from_register; use gdbarch_value_from_register
2225 with null_frame_id instead.
2226 * value.h (address_from_register): Update prototype.
2227 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2228 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2229 address_from_register interface change.
2231 2014-04-17 Yao Qi <yao@codesourcery.com>
2233 * gdbtypes.h: Update comments to link to types and macros'
2236 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2238 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2240 2014-04-16 Keith Seitz <keiths@redhat.com>
2243 * dwarf2read.c (skip_one_die): Check that all relative-offset
2244 sibling DIEs fall within range of the current reader's buffer.
2245 (read_partial_die): Likewise.
2247 2014-04-16 Keith Seitz <keiths@redhat.com>
2250 * cp-namespace.c (lookup_symbol_file): If the type name of
2251 `this' is NULL, return immediately.
2253 2014-04-14 Keith Seitz <keiths@redhat.com>
2256 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2257 from symbol_matches_domain in symtab.c. All local callers
2258 of symbol_matches_domain updated.
2259 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2260 search STRUCT_DOMAIN.
2261 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2262 independently. standard_lookup will do that automatically.
2263 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2264 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2265 (cp_lookup_symbol_in_namespace): Likewise.
2266 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2267 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2268 may return a STRUCT_DOMAIN match.
2269 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2270 * cp-support.c: Include language.h.
2271 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2273 * psymtab.c (match_partial_symbol): Compare the requested
2274 domain with the symbol's domain directly.
2275 (lookup_partial_symbol): Likewise.
2276 * symtab.c (lookup_symbol_in_language): Explain when/why
2277 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2278 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2279 appropriate languages.
2280 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2281 and moved to ada-lang.c
2282 (lookup_block_symbol): Explain that this function only returns
2283 symbol matching the requested DOMAIN.
2284 Compare the requested domain with the symbol's domain directly.
2285 (iterate_over_symbols): Compare the requested domain with the
2286 symbol's domain directly.
2287 * symtab.h (symbol_matches_domain): Remove.
2289 2014-04-14 Tom Tromey <tromey@redhat.com>
2292 * c-exp.y (type_aggregate_p): New function.
2293 (qualified_name, classify_inner_name): Use it.
2294 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2295 and TYPE_TARGET_TYPE of an enum type.
2296 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2298 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2299 handle TYPE_DECLARED_CLASS.
2300 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2302 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2303 * valops.c (enum_constant_from_type): New function.
2304 (value_aggregate_elt): Use it.
2305 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2308 2014-04-14 Tom Tromey <tromey@redhat.com>
2310 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2311 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2313 * value.h (value_aggregate_elt): Update.
2315 2014-04-14 Tom Tromey <tromey@redhat.com>
2317 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2319 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2321 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2322 (evaluate_subexp_standard): Pass noside argument.
2323 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2324 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2325 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2326 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2327 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2329 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2331 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2332 points to a constant blob.
2334 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2336 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2337 property and store it as the high bound and flag the range accordingly.
2338 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2339 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2340 * gdbtypes.h (enum range_flags): New enum.
2341 (struct range_bounds): Add flags member.
2343 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2345 * c-typeprint.c (c_type_print_varspec_suffix): Added
2346 check for not yet resolved high bound. If unresolved, print
2347 "variable length" string to the console instead of random
2350 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2352 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2354 (ada_template_to_fixed_record_type_1): Likewise.
2355 (ada_to_fixed_type_1): Likewise.
2356 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2357 (cp_print_value): Likewise.
2358 * d-valprint.c (dynamic_array_type): Likewise.
2359 * findvar.c (address_of_variable): Likewise.
2360 * jv-valprint.c (java_value_print): Likewise.
2361 * valops.c (value_ind): Likewise.
2362 * value.c (coerce_ref): Likewise.
2364 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2366 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2367 value and retrieve the dynamic type size.
2369 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2371 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2372 passed to sizeof is dynamic evaluate the argument to compute the length.
2374 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2375 Joel Brobecker <brobecker@adacore.com>
2377 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2378 (dwarf2_evaluate_property): New function.
2379 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2380 * dwarf2read.c (attr_to_dynamic_prop): New function.
2381 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2383 * gdbtypes.c: Include dwarf2loc.h.
2384 (is_dynamic_type): New function.
2385 (resolve_dynamic_type): New function.
2386 (resolve_dynamic_bounds): New function.
2387 (get_type_length): New function.
2388 (check_typedef): Use get_type_length to compute type length.
2389 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2390 (TYPE_LOW_BOUND_KIND): New macro.
2391 (is_dynamic_type): New function prototype.
2392 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2393 to resolve dynamic properties of the type. Update comment.
2394 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2396 2014-04-14 Richard Henderson <rth@redhat.com>
2398 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2400 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2401 Doug Evans <xdje42@gmail.com>
2403 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2404 dereference TYPE_CODE_REF values.
2406 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2408 Revert the following changes due to regressions:
2410 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2411 (dwarf2_evaluate_property): New function.
2412 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2413 * dwarf2read.c (attr_to_dynamic_prop): New function.
2414 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2416 * gdbtypes.c: Include dwarf2loc.h.
2417 (is_dynamic_type): New function.
2418 (resolve_dynamic_type): New function.
2419 (resolve_dynamic_bounds): New function.
2420 (get_type_length): New function.
2421 (check_typedef): Use get_type_length to compute type length.
2422 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2423 (TYPE_LOW_BOUND_KIND): New macro.
2424 (is_dynamic_type): New function prototype.
2425 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2426 to resolve dynamic properties of the type. Update comment.
2427 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2429 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2430 passed to sizeof is dynamic evaluate the argument to compute the length.
2432 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2433 value and retrieve the dynamic type size.
2435 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2436 (ada_template_to_fixed_record_type_1): Likewise.
2437 (ada_to_fixed_type_1): Likewise.
2438 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2439 (cp_print_value): Likewise.
2440 * d-valprint.c (dynamic_array_type): Likewise.
2441 * eval.c (evaluate_subexp_with_coercion): Likewise.
2442 * findvar.c (address_of_variable): Likewise.
2443 * jv-valprint.c (java_value_print): Likewise.
2444 * valops.c (value_ind): Likewise.
2445 * value.c (coerce_ref): Likewise.
2447 * c-typeprint.c (c_type_print_varspec_suffix): Added
2448 check for not yet resolved high bound. If unresolved, print
2449 "variable length" string to the console instead of random
2452 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2453 property and store it as the high bound and flag the range accordingly.
2454 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2455 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2456 * gdbtypes.h (enum range_flags): New enum.
2457 (struct range_bounds): Add flags member.
2459 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2460 points to a constant blob.
2462 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2463 (evaluate_subexp_standard): Pass noside argument.
2464 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2465 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2466 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2467 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2468 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2470 2014-04-11 Keith Seitz <keiths@redhat.com>
2473 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2474 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2477 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2479 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2480 (evaluate_subexp_standard): Pass noside argument.
2481 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2482 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2483 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2484 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2485 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2487 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2489 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2490 points to a constant blob.
2492 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2494 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2495 property and store it as the high bound and flag the range accordingly.
2496 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2497 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2498 * gdbtypes.h (enum range_flags): New enum.
2499 (struct range_bounds): Add flags member.
2501 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2503 * c-typeprint.c (c_type_print_varspec_suffix): Added
2504 check for not yet resolved high bound. If unresolved, print
2505 "variable length" string to the console instead of random
2508 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2510 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2511 (ada_template_to_fixed_record_type_1): Likewise.
2512 (ada_to_fixed_type_1): Likewise.
2513 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2514 (cp_print_value): Likewise.
2515 * d-valprint.c (dynamic_array_type): Likewise.
2516 * eval.c (evaluate_subexp_with_coercion): Likewise.
2517 * findvar.c (address_of_variable): Likewise.
2518 * jv-valprint.c (java_value_print): Likewise.
2519 * valops.c (value_ind): Likewise.
2520 * value.c (coerce_ref): Likewise.
2522 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2524 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2525 value and retrieve the dynamic type size.
2527 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2529 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2530 passed to sizeof is dynamic evaluate the argument to compute the length.
2532 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2534 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2535 (dwarf2_evaluate_property): New function.
2536 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2537 * dwarf2read.c (attr_to_dynamic_prop): New function.
2538 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2540 * gdbtypes.c: Include dwarf2loc.h.
2541 (is_dynamic_type): New function.
2542 (resolve_dynamic_type): New function.
2543 (resolve_dynamic_bounds): New function.
2544 (get_type_length): New function.
2545 (check_typedef): Use get_type_length to compute type length.
2546 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2547 (TYPE_LOW_BOUND_KIND): New macro.
2548 (is_dynamic_type): New function prototype.
2549 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2550 to resolve dynamic properties of the type. Update comment.
2551 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2553 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2555 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2556 declaring high/low bounds and change uses accordingly. Call
2557 create_range_type instead of create_static_range_type.
2558 * gdbtypes.c (create_range_type): New function.
2559 (create_range_type): Convert bounds into struct bound_prop and pass
2560 them to create_range_type.
2561 * gdbtypes.h (struct bound_prop): New struct.
2562 (create_range_type): New function prototype.
2563 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2564 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2565 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2567 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2569 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2571 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2572 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2573 * ada-lang.c: All uses of create_range_type updated.
2574 * coffread.c: All uses of create_range_type updated.
2575 * dwarf2read.c: All uses of create_range_type updated.
2576 * f-exp.y: All uses of create_range_type updated.
2577 * m2-valprint.c: All uses of create_range_type updated.
2578 * mdebugread.c: All uses of create_range_type updated.
2579 * stabsread.c: All uses of create_range_type updated.
2580 * valops.c: All uses of create_range_type updated.
2581 * valprint.c: All uses of create_range_type updated.
2583 2014-04-10 Pedro Alves <palves@redhat.com>
2585 * breakpoint.c (single_step_breakpoints)
2586 (single_step_gdbarch): Move up in the file.
2587 (one_breakpoint_xfer_memory): New function, factored out from ...
2588 (breakpoint_xfer_memory): ... here. Also process single-step
2591 2014-04-09 Tristan Gingold <gingold@adacore.com>
2593 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2595 (darwin_decode_exception_message): Free port only after use.
2597 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2599 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2600 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2601 when setting the size of call_length.
2603 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2605 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2606 dereference TYPE_CODE_REF values.
2608 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2610 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2611 end of warning message.
2613 2014-04-03 Doug Evans <dje@google.com>
2615 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2616 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2618 2014-04-02 Alan Modra <amodra@gmail.com>
2620 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2621 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2622 (struct symbol_file_add_from_memory_args): Add size field.
2623 (find_vdso_size): New function.
2624 (add_vsyscall_page): Attempt to find vdso size.
2626 2014-04-01 Doug Evans <dje@google.com>
2628 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2630 2014-04-01 Tristan Gingold <gingold@adacore.com>
2632 * darwin-nat.c (darwin_encode_reply): Add prototype.
2633 (darwin_decode_exception_message): Reply to unknown inferiors.
2634 (darwin_decode_message): Handle message by id. Ignore message
2635 to unknown inferior.
2636 (darwin_wait): Discard unknown messages, add debug trace.
2638 2014-03-31 Doug Evans <dje@google.com>
2640 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2643 2014-03-31 Doug Evans <dje@google.com>
2645 New option "set print symbol-loading".
2647 * solib.c (solib_read_symbols): Only print symbol loading messages
2649 (solib_add): If symbol loading is in "brief" mode, notify user
2650 symbols are being loaded.
2651 (reload_shared_libraries_1): Ditto.
2652 * symfile.c (print_symbol_loading_off): New static global.
2653 (print_symbol_loading_brief): New static global.
2654 (print_symbol_loading_full): New static global.
2655 (print_symbol_loading_enums): New static global.
2656 (print_symbol_loading): New static global.
2657 (print_symbol_loading_p): New function.
2658 (symbol_file_add_with_addrs): Only print symbol loading messages
2660 (_initialize_symfile): Register "print symbol-loading" set/show
2662 * symfile.h (print_symbol_loading_p): Declare.
2664 2014-03-30 Doug Evans <xdje42@gmail.com>
2666 * infrun.c (set_last_target_status): New function.
2667 (handle_inferior_event): Call it.
2669 2014-03-30 Doug Evans <xdje42@gmail.com>
2671 * inferior.h (enum stop_kind): Improve comment.
2673 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2675 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2676 a reference, strip the reference layer before calling
2677 the lang_ops value_has_mutated callback.
2679 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2681 Remove some globals from our parser.
2682 * language.c (unk_lang_parser): Add "struct parser_state"
2684 * language.h (struct language_defn) <la_parser>: Likewise.
2685 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2686 (initialize_expout): Add "struct parser_state" argument.
2687 Rewrite function to use the parser state.
2688 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2689 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2690 write_exp_elt_longcst, write_exp_elt_dblcst,
2691 write_exp_elt_decfloatcst, write_exp_elt_type,
2692 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2693 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2694 write_dollar_variable): Likewise.
2695 (parse_exp_in_context_1): Use parser state.
2696 (insert_type_address_space): Add "struct parser_state" argument.
2698 (increase_expout_size): New function.
2699 * parser-defs.h: Forward declare "struct language_defn" and
2700 "struct parser_state".
2701 (expout, expout_size, expout_ptr): Remove extern declarations.
2702 (parse_gdbarch, parse_language): Rewrite macro declarations to
2703 accept the parser state.
2704 (struct parser_state): New struct.
2705 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2706 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2707 write_exp_elt_decfloatcst, write_exp_elt_type,
2708 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2709 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2710 write_exp_msymbol, write_dollar_variable,
2711 mark_struct_expression, insert_type_address_space): Add "struct
2712 parser_state" argument.
2713 (increase_expout_size): New function.
2714 * utils.c (do_clear_parser_state): New function.
2715 (make_cleanup_clear_parser_state): Likewise.
2716 * utils.h (make_cleanup_clear_parser_state): New function
2718 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2719 Update calls to write_exp* in order to pass the parser state.
2720 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2721 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2722 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2723 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2724 * stap-probe.c (stap_parse_register_operand): Likewise.
2725 (stap_parse_single_operand): Likewise.
2726 (stap_parse_argument_1): Likewise.
2727 (stap_parse_argument): Use parser state.
2728 * stap-probe.h: Include "parser-defs.h".
2729 (struct stap_parse_info) <pstate>: New field.
2730 * c-exp.y (parse_type): Rewrite to use parser state.
2731 (yyparse): Redefine to c_parse_internal.
2732 (pstate): New global variable.
2733 (parse_number): Add "struct parser_state" argument.
2734 (write_destructor_name): Likewise.
2735 (type_exp): Update calls to write_exp* and similars in order to
2737 (exp1, exp, variable, qualified_name, space_identifier,
2738 typename, typebase): Likewise.
2739 (write_destructor_name, parse_number, lex_one_token,
2740 classify_name, classify_inner_name, c_parse): Add "struct
2741 parser_state" argument. Update function to use parser state.
2742 * c-lang.h: Forward declare "struct parser_state".
2743 (c_parse): Add "struct parser_state" argument.
2744 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2745 (yyparse): Redefine macro to ada_parse_internal.
2746 (pstate): New variable.
2747 (write_int, write_object_renaming, write_var_or_type,
2748 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2749 type_int, type_long, type_long_long, type_float, type_double,
2750 type_long_double, type_char, type_boolean, type_system_address):
2751 Add "struct parser_state" argument.
2752 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2753 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2754 var_or_type, aggregate, aggregate_component_list,
2755 positional_list, others, component_group,
2756 component_associations): Update calls to write_exp* and similar
2757 functions in order to use parser state.
2758 (ada_parse, write_var_from_sym, write_int,
2759 write_exp_op_with_string, write_object_renaming,
2760 find_primitive_type, write_selectors, write_ambiguous_var,
2761 write_var_or_type, write_name_assoc, type_int, type_long,
2762 type_long_long, type_float, type_double, type_long_double,
2763 type_char, type_boolean, type_system_address): Add "struct
2764 parser_state" argument. Adjust function to use parser state.
2765 * ada-lang.c (parse): Likewise.
2766 * ada-lang.h: Forward declare "struct parser_state".
2767 (ada_parse): Add "struct parser_state" argument.
2768 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2769 calls to both functions.
2770 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2772 (yyparse): Redefine macro to f_parse_internal.
2773 (pstate): New variable.
2774 (parse_number): Add "struct parser_state" argument.
2775 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2776 and similars in order to use parser state.
2777 (parse_number): Adjust code to use parser state.
2779 (f_parse): New function.
2780 * f-lang.h: Forward declare "struct parser_state".
2781 (f_parse): Add "struct parser_state" argument.
2782 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2784 (yyparse): Redefine macro for java_parse_internal.
2785 (pstate): New variable.
2786 (push_expression_name, push_expression_name, insert_exp): Add
2787 "struct parser_state" argument.
2788 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2789 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2790 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2791 PostIncrementExpression, PostDecrementExpression,
2792 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2793 UnaryExpressionNotPlusMinus, CastExpression,
2794 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2795 RelationalExpression, EqualityExpression, AndExpression,
2796 ExclusiveOrExpression, InclusiveOrExpression,
2797 ConditionalAndExpression, ConditionalOrExpression,
2798 ConditionalExpression, Assignment, LeftHandSide): Update
2799 calls to write_exp* and similars in order to use parser state.
2800 (parse_number): Ajust code to use parser state.
2802 (java_parse): New function.
2803 (push_variable): Add "struct parser_state" argument. Adjust
2804 code to user parser state.
2805 (push_fieldnames, push_qualified_expression_name,
2806 push_expression_name, insert_exp): Likewise.
2807 * jv-lang.h: Forward declare "struct parser_state".
2808 (java_parse): Add "struct parser_state" argument.
2809 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2811 (yyparse): Redefine macro to m2_parse_internal.
2812 (pstate): New variable.
2813 (type_exp, exp, fblock, variable, type): Update calls to
2814 write_exp* and similars to use parser state.
2816 (m2_parse): New function.
2817 * m2-lang.h: Forward declare "struct parser_state".
2818 (m2_parse): Add "struct parser_state" argument.
2819 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2820 * objc-lang.h: Forward declare "struct parser_state".
2821 (end_msglist): Add "struct parser_state" argument.
2822 * p-exp.y (parse_type): Rewrite macro to use parser state.
2823 (yyparse): Redefine macro to pascal_parse_internal.
2824 (pstate): New variable.
2825 (parse_number): Add "struct parser_state" argument.
2826 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2827 write_exp* and similars in order to use parser state.
2828 (parse_number, yylex): Adjust code to use parser state.
2829 (pascal_parse): New function.
2830 * p-lang.h: Forward declare "struct parser_state".
2831 (pascal_parse): Add "struct parser_state" argument.
2832 * go-exp.y (parse_type): Rewrite macro to use parser state.
2833 (yyparse): Redefine macro to go_parse_internal.
2834 (pstate): New variable.
2835 (parse_number): Add "struct parser_state" argument.
2836 (type_exp, exp1, exp, variable, type): Update calls to
2837 write_exp* and similars in order to use parser state.
2838 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2839 to use parser state.
2840 (go_parse): Likewise.
2841 * go-lang.h: Forward declare "struct parser_state".
2842 (go_parse): Add "struct parser_state" argument.
2844 2014-03-27 Doug Evans <dje@google.com>
2846 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2848 2014-03-27 Doug Evans <dje@google.com>
2850 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2851 Remove argument abbrev_section. All callers updated.
2853 2014-03-27 Doug Evans <dje@google.com>
2855 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2856 addr_base, ranges_base.
2858 2014-03-26 Keith Seitz <keiths@redhat.com>
2860 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2861 types, not VAR_DOMAIN.
2863 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2865 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2867 * features/nios2-linux.c: Regenerated.
2868 * features/nios2.c: Regenerated.
2870 2014-03-25 Pedro Alves <palves@redhat.com>
2872 * cli/cli-script.c (script_from_file): Force the interpreter to
2875 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2877 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2878 small stack allocation.
2880 2014-03-24 Tristan Gingold <gingold@adacore.com>
2882 * darwin-nat.c (exc_server): Remove unused prototype.
2883 (darwin_dump_message): Correctly display data on x86_64.
2884 (darwin_encode_reply): Fix style.
2885 Add comments and fix indentation.
2887 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2889 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2891 2014-03-22 Doug Evans <xdje42@gmail.com>
2893 * infcmd.c: Whitespace fixes.
2894 (interrupt_command): Merge two function comments into one.
2896 2014-03-22 Doug Evans <xdje42@gmail.com>
2898 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2901 2014-03-22 Yao Qi <yao@codesourcery.com>
2903 * remote.c (target_read_live_memory): Remove.
2904 (memory_xfer_live_readonly_partial): Rename it to
2905 remote_xfer_live_readonly_partial. Remove argument 'object'.
2906 All callers updated. Call remote_read_bytes_1
2907 instead of target_read_live_memory.
2908 * tracepoint.c (set_traceframe_number): Remove.
2909 (make_cleanup_restore_traceframe_number): Likewise .
2910 * tracepoint.h (set_traceframe_number): Remove declaration.
2911 (make_cleanup_restore_traceframe_number): Likewise.
2913 2014-03-22 Yao Qi <yao@codesourcery.com>
2915 * remote.c (remote_read_bytes): Move code on reading from the
2917 (remote_read_bytes_1): ... here. New function.
2919 2014-03-22 Yao Qi <yao@codesourcery.com>
2921 * ctf.c (ctf_xfer_partial): Check the return value of
2922 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2923 return TARGET_XFER_UNAVAILABLE.
2924 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2925 * target.c (target_read_live_memory): Move it to remote.c.
2926 (memory_xfer_live_readonly_partial): Likewise.
2927 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2928 * remote.c (target_read_live_memory): Moved from target.c.
2929 (memory_xfer_live_readonly_partial): Likewise.
2930 (remote_read_bytes): Factored out from
2931 memory_xfer_partial_1.
2933 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2935 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2938 2014-03-21 Pedro Alves <palves@redhat.com>
2940 * infrun.c (normal_stop): Extend comment.
2942 2014-03-21 Hui Zhu <hui@codesourcery.com>
2943 Pedro Alves <palves@redhat.com>
2945 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2947 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2948 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2949 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2951 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2953 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2954 `z' formatted output modifier.
2956 2014-03-20 Tom Tromey <tromey@redhat.com>
2957 Sergio Durigan Junior <sergiodj@redhat.com>
2959 * probe.c (parse_probes): Turn assert into an ordinary error.
2960 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2961 exceptions when parsing probes. Rearrange the code for clarity.
2963 2014-03-20 Tom Tromey <tromey@redhat.com>
2966 * top.c (execute_command): Only dispatch events if the command
2969 2014-03-20 Tom Tromey <tromey@redhat.com>
2972 * infcall.c: Include event-top.h.
2973 (run_inferior_call): Call async_disable_stdin if needed.
2975 2014-03-20 Pedro Alves <palves@redhat.com>
2977 * infrun.c (prepare_to_proceed): Delete.
2978 (thread_still_needs_step_over): New function.
2979 (find_thread_needs_step_over): New function.
2980 (proceed): If the current thread needs a step-over, set its
2981 steping_over_breakpoint flag. Adjust to use
2982 find_thread_needs_step_over instead of prepare_to_proceed.
2983 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2984 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2986 (switch_back_to_stepped_thread): Step over breakpoints of all
2987 threads not the stepping thread, before switching back to the
2990 2014-03-20 Pedro Alves <palves@redhat.com>
2992 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2994 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2995 * infrun.c (saved_singlestep_ptid)
2996 (stepping_past_singlestep_breakpoint): Delete.
2997 (resume): Remove stepping_past_singlestep_breakpoint handling.
2998 (proceed): Store the prev_pc of the stepping thread too.
2999 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3001 (enum infwait_states): Delete infwait_thread_hop_state.
3002 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3004 (handle_inferior_event): Adjust.
3005 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3006 handling and the thread-hop code. Before removing single-step
3007 breakpoints, check whether the thread hit a single-step breakpoint
3008 of another thread. If it did, the trap is not a random signal.
3009 (switch_back_to_stepped_thread): If the event thread hit a
3010 single-step breakpoint, unblock it before switching to the
3011 stepping thread. Handle the case of the stepped thread having
3013 (keep_going): Handle the case of the current thread moving past a
3014 single-step breakpoint.
3016 2014-03-20 Pedro Alves <palves@redhat.com>
3019 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3020 are being stepped over.
3021 (breakpoint_address_match): Make extern.
3022 * breakpoint.h (breakpoint_address_match): New declaration.
3023 * inferior.h (stepping_past_instruction_at): New declaration.
3024 * infrun.c (struct step_over_info): New type.
3025 (step_over_info): New global.
3026 (set_step_over_info, clear_step_over_info)
3027 (stepping_past_instruction_at): New functions.
3028 (handle_inferior_event): Clear the step-over info when
3029 trap_expected is cleared.
3030 (resume): Remove now stale comment.
3031 (clear_proceed_status): Clear step-over info.
3032 (proceed): Adjust step-over handling to set or clear the step-over
3033 info instead of removing all breakpoints.
3034 (handle_signal_stop): When setting up a thread-hop, don't remove
3036 (stop_stepping): Clear step-over info.
3037 (keep_going): Adjust step-over handling to set or clear step-over
3038 info and then always inserting breakpoints, instead of removing
3039 all breakpoints when stepping over one.
3041 2014-03-20 Pedro Alves <palves@redhat.com>
3043 * infrun.c (previous_inferior_ptid): Adjust comment.
3044 (deferred_step_ptid): Delete.
3045 (infrun_thread_ptid_changed, prepare_to_proceed)
3046 (init_wait_for_inferior): Adjust.
3047 (handle_signal_stop): Delete deferred_step_ptid handling.
3049 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3052 * defs.h (sync_quit_force_run): New declaration.
3053 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3054 * event-top.c (async_sigterm_handler): New declaration.
3055 (async_sigterm_token): New variable.
3056 (async_init_signals): Create also async_sigterm_token.
3057 (async_sigterm_handler): New function.
3058 (sync_quit_force_run): New variable.
3059 (handle_sigterm): Replace quit_force call by other calls.
3060 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3062 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3064 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3065 offset into SPE pseudo registers.
3067 2014-03-18 Pedro Alves <palves@redhat.com>
3070 * inferior.h (print_stop_event): Declare.
3071 * infrun.c (print_stop_event): New, factored out from ...
3072 (normal_stop): ... this.
3073 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3074 of bpstat_print/print_stack_frame.
3076 2014-03-17 Tom Tromey <tromey@redhat.com>
3078 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3080 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3082 * ada-lang.c (decode_constrained_packed_array): Perform a
3083 minimal coercion for reference with coerce_ref instead of
3086 2014-03-17 Tristan Gingold <gingold@adacore.com>
3088 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3089 (darwin_solib_create_inferior_hook): Emit a warning if version
3092 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3094 * python/py-value.c (get_field_flag): Cast flag_name argument to
3095 PyObject_GetAttrString to support Python 2.4.
3097 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3100 (Global Maintainers): Remove Jan Kratochvil.
3102 2014-03-14 Pedro Alves <palves@redhat.com>
3104 * inferior.h (terminal_ours_for_output): Rename to ...
3105 (child_terminal_ours_for_output): ... this.
3106 (terminal_save_ours): Rename to ...
3107 (child_terminal_save_ours): ... this.
3108 (terminal_ours): Rename to ...
3109 (child_terminal_ours): ... this.
3110 (terminal_inferior): Rename to ...
3111 (child_terminal_inferior): ... this.
3112 (terminal_init_inferior): Rename to ...
3113 (child_terminal_init_inferior): ... this.
3114 (terminal_init_inferior_with_pgrp): Rename to ...
3115 (child_terminal_init_inferior_with_pgrp): ... this.
3116 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3117 (child_terminal_init_with_pgrp): ... this.
3118 (terminal_save_ours): Rename to ...
3119 (child_terminal_save_ours): ... this.
3120 (terminal_init_inferior): Rename to ...
3121 (child_terminal_init): ... this. Adjust.
3122 (terminal_inferior): Rename to ...
3123 (child_terminal_inferior): ... this.
3124 (terminal_ours_for_output): Rename to ...
3125 (child_terminal_ours_for_output): ... this. Adjust.
3126 (terminal_ours): Rename to ...
3127 (child_terminal_ours): ... this.
3128 (terminal_ours_1): Rename to ...
3129 (child_terminal_ours_1): ... this. Adjust.
3130 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3131 * windows-nat.c (do_initial_windows_stuff): Adjust.
3132 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3133 (gnu_terminal_init): ... this. Adjust.
3134 (gnu_target): Adjust.
3135 * inf-child.c (inf_child_target): Adjust.
3137 2014-03-13 Doug Evans <xdje42@gmail.com>
3140 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3143 2014-03-13 Doug Evans <xdje42@gmail.com>
3145 * value.c (record_latest_value): Call release_value_or_incref
3146 instead of release_value.
3148 2014-03-13 Pedro Alves <palves@redhat.com>
3150 * procfs.c (procfs_target): Don't override to_shortname,
3151 to_longname or to_doc.
3153 2014-03-13 Pedro Alves <palves@redhat.com>
3155 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3156 Unix in user visible strings.
3158 2014-03-12 Stan Shebs <stan@codesourcery.com>
3160 * gdbtypes.h: Annotate comments for Doxygen, add a page
3161 block comment with some general info.
3163 2014-03-12 Pedro Alves <palves@redhat.com>
3165 * infcmd.c (prepare_execution_command): New function, factored out
3166 from several execution commands.
3167 (run_command_1, continue_command, step_1, jump_command)
3168 (signal_command, until_command, advance_command, finish_command)
3169 (attach_command): Use prepare_execution_command.
3171 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3173 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3176 (struct arm_linux_thread_points): Removed.
3177 (struct arm_linux_process_info): New.
3178 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3179 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3180 (arm_linux_find_breakpoints_by_tid): Removed.
3181 (struct arch_lwp_info): New.
3182 (arm_linux_find_process_pid): New functions.
3183 (arm_linux_add_process): New functions.
3184 (arm_linux_process_info_get): New functions.
3185 (arm_linux_forget_process): New function.
3186 (arm_linux_get_debug_reg_state): New function.
3187 (struct update_registers_data): New.
3188 (update_registers_callback): New function.
3189 (arm_linux_insert_hw_breakpoint1): Updated.
3190 (arm_linux_remove_hw_breakpoint1): Updated.
3191 (arm_linux_insert_hw_breakpoint): Updated.
3192 (arm_linux_remove_hw_breakpoint): Updated.
3193 (arm_linux_insert_watchpoint): Updated.
3194 (arm_linux_remove_watchpoint): Updated.
3195 (arm_linux_new_thread): Updated.
3196 (arm_linux_prepare_to_resume): New function.
3197 (arm_linux_new_fork): New function.
3198 (_initialize_arm_linux_nat): Updated.
3200 2014-03-12 Pedro Alves <palves@redhat.com>
3202 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3204 2014-03-12 Tom Tromey <tromey@redhat.com>
3206 * inf-child.c (return_zero): New function.
3207 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3208 * aix-thread.c (aix_thread_inferior_created): New function.
3209 (aix_thread_attach): Remove.
3210 (init_aix_thread_ops): Don't set to_attach.
3211 (_initialize_aix_thread): Register inferior_created observer.
3212 * corelow.c (init_core_ops): Don't set to_attach or
3214 * exec.c (init_exec_ops): Don't set to_attach or
3216 * infcmd.c (run_command_1): Use find_run_target. Make direct
3218 (attach_command): Use find_attach_target. Make direct target
3220 * record-btrace.c (init_record_btrace_ops): Don't set
3222 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3224 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3225 set to_create_inferior.
3226 * target.c (complete_target_initialization): Add assertion.
3227 (target_create_inferior): Remove.
3228 (find_default_attach, find_default_create_inferior): Remove.
3229 (find_attach_target, find_run_target): New functions.
3230 (find_default_is_async_p, find_default_can_async_p)
3231 (target_supports_non_stop, target_attach): Remove.
3232 (init_dummy_target): Don't set to_create_inferior or
3233 to_supports_non_stop.
3234 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3235 TARGET_DEFAULT_FUNC.
3236 <to_create_inferior>: Add comment.
3237 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3238 TARGET_DEFAULT_RETURN.
3239 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3240 (find_attach_target, find_run_target): Declare.
3241 (target_create_inferior): Remove.
3242 (target_has_execution_1): Update comment.
3243 (target_supports_non_stop): Remove.
3244 * target-delegates.c: Rebuild.
3246 2014-03-12 Pedro Alves <palves@redhat.com>
3248 * inf-child.h: Update comment to not mention Unix.
3250 2014-03-12 Pedro Alves <palves@redhat.com>
3252 * inf-child.c: Update top comment to not mention Unix. Add
3253 generic comment describing how this target is meant to be used.
3254 (inf_child_post_attach, inf_child_post_startup_inferior)
3255 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3258 2014-03-12 Pedro Alves <palves@redhat.com>
3260 * nto-procfs.c: Include inf-child.h.
3261 (procfs_ops): Delete global.
3262 (procfs_can_run): Delete method.
3263 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3264 target pointer instead of referencing procfs_ops.
3265 (procfs_prepare_to_store): Delete.
3266 (init_procfs_ops): Delete function.
3267 (procfs_target): New function, based on init_procfs_ops, but
3268 inherit inf_child_target.
3269 (_initialize_procfs): Use procfs_target.
3271 2014-03-12 Pedro Alves <palves@redhat.com>
3273 * windows-nat.c: Include inf-child.h.
3274 (windows_ops): Delete global.
3275 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3277 (init_windows_ops): Delete function.
3278 (windows_target): New function, based on init_windows_ops, but
3279 inherit inf_child_target.
3280 (_initialize_windows_nat): Use windows_target. Install x86
3281 specific target methods here.
3283 2014-03-10 Doug Evans <xdje42@gmail.com>
3285 * guile/guile.c (call_initialize_gdb_module): New function.
3286 (initialize_guile): Replace call to scm_init_guile with call to
3289 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3291 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3292 in call to TYPE_CODE macro.
3294 2014-03-10 Jerome Guitton <guitton@adacore.com>
3296 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3297 Resolve tagged types to full view.
3299 2014-03-10 Hui Zhu <hui@codesourcery.com>
3301 * target.h (target_insert_breakpoint): Remove "hardware" from its
3304 2014-03-07 Doug Evans <dje@google.com>
3306 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3308 2014-03-07 Doug Evans <dje@google.com>
3310 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3311 Remove unused local comp_dir_attr. Assert exactly one of
3312 stub_comp_unit_die, stub_comp_dir is non-NULL.
3314 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3316 * target.h (complete_target_initialization, add_target):
3319 2014-03-07 Pedro Alves <palves@redhat.com>
3321 * go32-nat.c: Include inf-child.h.
3322 (go32_ops): Delete global.
3323 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3325 (go32_create_inferior): Push the passed in target pointer instead
3326 of referencing go32_ops.
3327 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3328 (go32_target): New function, based on init_go32_ops, but inherit
3330 (_initialize_go32_nat): Use go32_target. Move parts of
3333 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3335 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3336 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3337 SYMBOL_VALUE_ADDRESS.
3338 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3340 2014-03-06 Yao Qi <yao@codesourcery.com>
3342 * breakpoint.c (get_tracepoint_by_number): Remove argument
3343 optional_p. All callers updated. Adjust comments. Update
3345 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3347 2014-03-06 Yao Qi <yao@codesourcery.com>
3349 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3350 early if get_number returns zero. Use 'p' instead of 'args'.
3352 2014-03-06 Yao Qi <yao@codesourcery.com>
3354 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3357 2014-03-06 Yao Qi <yao@codesourcery.com>
3359 PR breakpoints/16508
3360 * tracepoint.c (check_trace_running): New function.
3361 (trace_find_command): Move code to check_trace_running and
3362 call check_trace_running.
3363 (trace_find_pc_command): Likewise.
3364 (trace_find_tracepoint_command): Likewise.
3365 (trace_find_line_command): Likewise.
3366 (trace_find_range_command): Likewise.
3367 * tracepoint.h (check_trace_running): Likewise.
3368 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3370 2014-03-06 Yao Qi <yao@codesourcery.com>
3372 * target.h (struct target_ops) <to_traceframe_info>: Use
3373 TARGET_DEFAULT_NORETURN (tcomplain ()).
3374 * target-delegates.c: Regenerated.
3376 2014-03-05 Pedro Alves <palves@redhat.com>
3379 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3380 void. Update comment.
3381 (dcache_xfer_memory): Delete.
3382 (dcache_read_memory_partial): New, based on the read bits of
3384 (dcache_update): Add status parameter. Use ULONGEST for len, and
3385 adjust. Discard cache lines if the reason for the update was
3387 * dcache.h (dcache_xfer_memory): Delete declaration.
3388 (dcache_read_memory_partial): New declaration.
3389 (dcache_update): Update prototype.
3390 * target.c (raw_memory_xfer_partial): Update the dcache here.
3391 (memory_xfer_partial_1): Don't handle dcache writes here.
3393 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3395 * remote-sim.c (gdbsim_load): Add const to prog.
3397 2014-03-03 Tom Tromey <tromey@redhat.com>
3399 * elfread.c (probe_key): Change to bfd_data.
3400 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3401 now per-BFD, not per-objfile.
3402 * stap-probe.c (stap_probe_destroy): Update comment.
3403 (handle_stap_probe): Allocate on the per-BFD obstack.
3405 2014-03-03 Tom Tromey <tromey@redhat.com>
3407 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3408 * breakpoint.c (create_longjmp_master_breakpoint): Use
3410 (add_location_to_breakpoint, bkpt_probe_insert_location)
3411 (bkpt_probe_remove_location): Update.
3412 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3413 * elfread.c (elf_symfile_relocate_probe): Remove.
3414 (elf_probe_fns): Update.
3415 (insert_exception_resume_breakpoint): Change type of "probe"
3416 parameter to bound_probe.
3417 (check_exception_resume): Update.
3418 * objfiles.c (objfile_relocate1): Don't relocate probes.
3419 * probe.c (bound_probe_s): New typedef.
3420 (parse_probes): Use get_probe_address. Set sal's objfile.
3421 (find_probe_by_pc): Return a bound_probe.
3422 (collect_probes): Return a VEC(bound_probe_s).
3423 (compare_probes): Update.
3424 (gen_ui_out_table_header_info): Change type of "probes"
3426 (info_probes_for_ops): Update.
3427 (get_probe_address): New function.
3428 (probe_safe_evaluate_at_pc): Update.
3429 * probe.h (struct probe_ops) <get_probe_address>: New field.
3430 <set_semaphore, clear_semaphore>: Add objfile parameter.
3431 (struct probe) <objfile>: Remove field.
3433 <address>: Update comment.
3434 (struct bound_probe): New.
3435 (find_probe_by_pc): Return a bound_probe.
3436 (get_probe_address): Declare.
3437 * solib-svr4.c (struct probe_and_action) <address>: New field.
3438 (hash_probe_and_action, equal_probe_and_action): Update.
3439 (register_solib_event_probe): Add address parameter.
3440 (solib_event_probe_at): Update.
3441 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3443 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3444 (stap_get_probe_address): New function.
3445 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3446 (compile_probe_arg): Update.
3447 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3449 (handle_stap_probe): Don't relocate the probe.
3450 (stap_relocate): Remove.
3451 (stap_gen_info_probes_table_values): Update.
3452 (stap_probe_ops): Remove stap_relocate.
3453 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3454 (debug_sym_probe_fns): Update.
3455 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3456 * symtab.c (init_sal): Use memset.
3457 * symtab.h (struct symtab_and_line) <objfile>: New field.
3458 * tracepoint.c (start_tracing, stop_tracing): Update.
3460 2014-03-03 Tom Tromey <tromey@redhat.com>
3462 * probe.h (parse_probes, find_probe_by_pc)
3463 (find_probes_in_objfile): Fix comments.
3465 2014-03-02 Doug Evans <xdje42@gmail.com>
3467 * infrun.c (handle_signal_stop): Replace test for
3468 TARGET_WAITKIND_STOPPED with an assert.
3470 2014-03-02 Doug Evans <xdje42@gmail.com>
3472 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3474 2014-03-02 Doug Evans <xdje42@gmail.com>
3476 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3478 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3480 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3482 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3484 * i386obsd-nat.c: Include "obsd-nat.h".
3485 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3487 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3489 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3491 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3493 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3495 * mips64obsd-nat.c: Include "obsd-nath".
3496 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3498 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3500 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3502 * amd64obsd-nat.c: Include "obsd-nat,h.
3503 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3505 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3507 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3509 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3510 (find_overload_match): Update call to find_oload_champ.
3511 (find_oload_champ_namespace_loop): Likewise
3513 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3515 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3517 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3518 * config/sparc/obsd64.mh: New file.
3519 * sparc64obsd-nat.c: New file.
3521 * obsd-nat.h: New file.
3522 * obsd-nat.c: New file.
3523 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3524 (ALLDEPFILES): Add obsd-nat.c.
3526 2014-02-28 Tom Tromey <tromey@redhat.com>
3528 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3529 * cli-out.h (cli_ui_out_impl): Now const.
3530 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3531 * ui-out.c (struct ui_out) <impl>: Now const.
3532 (default_ui_out_impl): Now const.
3533 (ui_out_new): Make 'impl' parameter const.
3534 * ui-out.h (ui_out_new): Update.
3536 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3538 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3540 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3542 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3544 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3546 Additional PR 8882 fix.
3547 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3549 2014-02-27 Pedro Alves <palves@redhat.com>
3551 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3554 2014-02-27 Pedro Alves <palves@redhat.com>
3557 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3558 * nat/linux-waitpid.c: Include string.h.
3559 (status_to_str): Moved here and made extern.
3560 * nat/linux-waitpid.h (status_to_str): New declaration.
3562 2014-02-27 Hui Zhu <hui@codesourcery.com>
3565 * infrun.c (ptid_match): Move ...
3566 * common/ptid.c (ptid_match): ... here.
3567 * inferior.h (ptid_match): Move ...
3568 * common/ptid.h (ptid_match): ... here.
3570 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3572 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3573 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3576 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3578 * obsd-tdep.c (obsd_auxv_parse): New function.
3579 (obsd_init_abi): Set auxv_parse.
3581 * gdbarch.sh (auxv_parse): New.
3582 * gdbarch.h: Regenerated.
3583 * gdbarch.c: Regenerated.
3584 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3586 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3588 * guile/scm-value.c (gdbscm_history_append_x): New function.
3589 (value_functions): Add it.
3591 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3593 * dwarf2read.c (attr_value_as_address): New function.
3594 (dwarf2_find_base_address, read_call_site_scope): Use
3595 attr_value_as_address in place of DW_ADDR.
3596 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3597 the low and high addresses. Slight rework of the handling
3598 of the high pc being a constant form, and limit it to
3599 DWARF verson 4 or higher.
3600 (dwarf2_record_block_ranges): Likewise.
3601 (read_partial_die): Likewise.
3602 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3604 2014-02-26 Tom Tromey <tromey@redhat.com>
3606 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3608 2014-02-26 Tom Tromey <tromey@redhat.com>
3610 * elfread.c (elf_read_minimal_symbols): Return early if
3611 minimal symbols have already been read. Add "ei" parameter.
3612 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3613 * minsyms.c (prim_record_minimal_symbol_full): Update.
3614 * objfiles.h (struct objstats) <n_minsyms>: Move...
3615 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3616 * symmisc.c (print_objfile_statistics): Update.
3618 2014-02-26 Tom Tromey <tromey@redhat.com>
3620 * elfread.c (elf_read_minimal_symbols): New function, from
3622 (elf_symfile_read): Call it.
3624 2014-02-26 Tom Tromey <tromey@redhat.com>
3626 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3627 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3628 (lookup_minimal_symbol_solib_trampoline)
3629 (lookup_minimal_symbol_by_pc_section_1)
3630 (lookup_minimal_symbol_and_objfile): Update.
3631 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3632 Don't allocate a minimal symbol if minsyms have already been read.
3633 (build_minimal_symbol_hash_tables): Update.
3634 (install_minimal_symbols): Do nothing if minsyms already read.
3635 Use the per-BFD obstack.
3636 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3637 * objfiles.c (allocate_objfile): Call
3638 terminate_minimal_symbol_table later.
3639 (have_minimal_symbols): Update.
3640 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3641 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3642 Move from struct objfile.
3643 <minsyms_read>: New field.
3644 (struct objfile) <msymbols, minimal_symbol_count,
3645 msymbol_hash, msymbol_demangled_hash>: Move.
3646 (ALL_OBJFILE_MSYMBOLS): Update.
3647 * symfile.c (read_symbols): Set minsyms_read.
3648 (reread_symbols): Update.
3649 * symmisc.c (dump_objfile, dump_msymbols): Update.
3651 2014-02-26 Tom Tromey <tromey@redhat.com>
3653 * minsyms.c (msymbols_sort): Remove.
3654 * minsyms.h (msymbols_sort): Remove.
3655 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3656 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3657 * elfread.c (elf_symtab_read): Don't add section offsets.
3658 * xcoffread.c (record_minimal_symbol): Don't add section offset
3659 to minimal symbol address.
3660 * somread.c (text_offset, data_offset): Remove.
3661 (som_symtab_read): Don't add section offsets to minimal symbol
3663 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3664 Don't add section offsets to minimal symbols.
3665 * coffread.c (coff_symtab_read): Don't add section offsets
3666 to minimal symbol addresses.
3667 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3668 to minimal symbol addresses.
3669 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3670 section offset to minimal symbol addresses.
3671 * mdebugread.c (parse_partial_symbols): Don't add section
3672 offset to minimal symbol addresses.
3673 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3674 offset to minimal symbol addresses.
3676 2014-02-26 Tom Tromey <tromey@redhat.com>
3678 * ada-lang.c (ada_main_name): Update.
3679 (ada_add_standard_exceptions): Update.
3680 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3681 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3682 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3683 * auxv.c (ld_so_xfer_auxv): Update.
3684 * avr-tdep.c (avr_scan_prologue): Update.
3685 * ax-gdb.c (gen_var_ref): Update.
3686 * blockframe.c (get_pc_function_start)
3687 (find_pc_partial_function_gnu_ifunc): Update.
3688 * breakpoint.c (create_overlay_event_breakpoint)
3689 (create_longjmp_master_breakpoint)
3690 (create_std_terminate_master_breakpoint)
3691 (create_exception_master_breakpoint): Update.
3692 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3693 * c-valprint.c (c_val_print): Update.
3694 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3695 * common/agent.c (agent_look_up_symbols): Update.
3696 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3697 * dwarf2loc.c (call_site_to_target_addr): Update.
3698 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3699 * elfread.c (elf_gnu_ifunc_record_cache)
3700 (elf_gnu_ifunc_resolve_by_got): Update.
3701 * findvar.c (default_read_var_value): Update.
3702 * frame.c (inside_main_func): Update.
3703 * frv-tdep.c (frv_frame_this_id): Update.
3704 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3705 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3707 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3708 (hppa_hpux_find_dummy_bpaddr): Update.
3709 * hppa-tdep.c (hppa_symbol_address): Update.
3710 * infcmd.c (until_next_command): Update.
3711 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3713 * linespec.c (minsym_found, add_minsym): Update.
3714 * linux-nat.c (get_signo): Update.
3715 * linux-thread-db.c (inferior_has_bug): Update.
3716 * m32c-tdep.c (m32c_return_value)
3717 (m32c_m16c_address_to_pointer): Update.
3718 * m32r-tdep.c (m32r_frame_this_id): Update.
3719 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3720 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3721 * maint.c (maintenance_translate_address): Update.
3722 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3723 (frob_address): New function.
3724 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3725 frob_address. Rename parameter to "pc_in".
3726 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3728 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3730 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3731 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3732 * objc-lang.c (find_objc_msgsend): Update.
3733 * objfiles.c (objfile_relocate1): Update.
3734 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3735 * p-valprint.c (pascal_val_print): Update.
3736 * parse.c (write_exp_msymbol): Update.
3737 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3738 (ppc_elfv2_skip_entrypoint): Update.
3739 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3740 * printcmd.c (build_address_symbolic, msym_info)
3741 (address_info): Update.
3742 * proc-service.c (ps_pglobal_lookup): Update.
3743 * psymtab.c (find_pc_sect_psymtab_closer)
3744 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3745 Change msymbol parameter to bound_minimal_symbol.
3746 * ravenscar-thread.c (get_running_thread_id): Update.
3747 * remote.c (remote_check_symbols): Update.
3748 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3750 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3751 * solib-dsbt.c (lm_base): Update.
3752 * solib-frv.c (lm_base, main_got): Update.
3753 * solib-irix.c (locate_base): Update.
3754 * solib-som.c (som_solib_create_inferior_hook)
3755 (link_map_start): Update.
3756 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3757 * solib-svr4.c (elf_locate_base, enable_break): Update.
3758 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3759 (flush_ea_cache): Update.
3760 * stabsread.c (define_symbol, scan_file_globals): Update.
3761 * stack.c (find_frame_funname): Update.
3762 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3763 (debug_qf_find_pc_sect_symtab): Update.
3764 * symfile.c (simple_read_overlay_table)
3765 (simple_overlay_update): Update.
3766 * symfile.h (struct quick_symbol_functions)
3767 <find_pc_sect_symtab>: Change type of msymbol to
3768 bound_minimal_symbol.
3769 * symmisc.c (dump_msymbols): Update.
3770 * symtab.c (find_pc_sect_symtab_via_partial)
3771 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3772 (search_symbols, print_msymbol_info): Update.
3773 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3774 (MSYMBOL_VALUE_ADDRESS): Redefine.
3775 (BMSYMBOL_VALUE_ADDRESS): New macro.
3776 * tracepoint.c (scope_info): Update.
3777 * tui/tui-disasm.c (tui_find_disassembly_address)
3778 (tui_get_begin_asm_address): Update.
3779 * valops.c (find_function_in_inferior): Update.
3780 * value.c (value_static_field, value_fn_field): Update.
3782 2014-02-26 Tom Tromey <tromey@redhat.com>
3784 * ada-lang.c (ada_update_initial_language): Update.
3785 (ada_main_name, ada_has_this_exception_support): Update.
3786 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3787 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3788 * arm-tdep.c (arm_skip_stub): Update.
3789 * auxv.c (ld_so_xfer_auxv): Update.
3790 * avr-tdep.c (avr_scan_prologue): Update.
3791 * ax-gdb.c (gen_var_ref): Update.
3792 * breakpoint.c (struct breakpoint_objfile_data)
3793 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3794 type to bound_minimal_symbol.
3795 (create_overlay_event_breakpoint)
3796 (create_longjmp_master_breakpoint)
3797 (create_std_terminate_master_breakpoint)
3798 (create_exception_master_breakpoint): Update.
3799 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3800 * c-exp.y (classify_name): Update.
3801 * coffread.c (coff_symfile_read): Update.
3802 * common/agent.c (agent_look_up_symbols): Update.
3803 * d-lang.c (d_main_name): Update.
3804 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3805 * dec-thread.c (enable_dec_thread): Update.
3806 * dwarf2loc.c (call_site_to_target_addr): Update.
3807 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3808 * eval.c (evaluate_subexp_standard): Update.
3809 * findvar.c (struct minsym_lookup_data) <result>: Change type
3810 to bound_minimal_symbol.
3812 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3813 * frame.c (inside_main_func): Update.
3814 * frv-tdep.c (frv_frame_this_id): Update.
3815 * gcore.c (call_target_sbrk): Update.
3816 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3817 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3819 * go-lang.c (go_main_name): Update.
3820 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3821 (hppa_hpux_find_import_stub_for_addr): Update.
3822 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3823 Update. Change return type.
3824 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3826 * jit.c (jit_breakpoint_re_set_internal): Update.
3827 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3829 * linux-nat.c (get_signo): Update.
3830 * linux-thread-db.c (inferior_has_bug): Update
3831 * m32c-tdep.c (m32c_return_value)
3832 (m32c_m16c_address_to_pointer): Update.
3833 * m32r-tdep.c (m32r_frame_this_id): Update.
3834 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3835 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3836 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3837 lookup_minimal_symbol. Change return type.
3838 (lookup_minimal_symbol): Remove.
3839 (lookup_bound_minimal_symbol): Update.
3840 (lookup_minimal_symbol_text): Change return type.
3841 (lookup_minimal_symbol_solib_trampoline): Change return type.
3842 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3843 (lookup_minimal_symbol_solib_trampoline): Change return type.
3844 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3845 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3846 (value_nsstring, find_imps): Update.
3847 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3848 * p-lang.c (pascal_main_name): Update.
3849 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3850 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3851 * proc-service.c (ps_pglobal_lookup): Update.
3852 * ravenscar-thread.c (get_running_thread_msymbol): Change
3854 (has_ravenscar_runtime, get_running_thread_id): Update.
3855 * remote.c (remote_check_symbols): Update.
3856 * sol-thread.c (ps_pglobal_lookup): Update.
3857 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3858 * solib-dsbt.c (lm_base): Update.
3859 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3861 * solib-irix.c (locate_base): Update.
3862 * solib-som.c (som_solib_create_inferior_hook)
3863 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3865 * solib-spu.c (spu_enable_break): Update.
3866 * solib-svr4.c (elf_locate_base, enable_break): Update.
3867 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3868 (flush_ea_cache): Update.
3869 * stabsread.c (define_symbol): Update.
3870 * symfile.c (simple_read_overlay_table): Update.
3871 * symtab.c (find_pc_sect_line): Update.
3872 * tracepoint.c (scope_info): Update.
3873 * tui-disasm.c (tui_get_begin_asm_address): Update.
3874 * value.c (value_static_field): Update.
3876 2014-02-26 Tom Tromey <tromey@redhat.com>
3878 * minsyms.c (prim_record_minimal_symbol_full): Use
3879 SET_MSYMBOL_VALUE_ADDRESS.
3880 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3881 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3882 SET_MSYMBOL_VALUE_ADDRESS.
3883 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3884 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3886 2014-02-26 Tom Tromey <tromey@redhat.com>
3888 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3889 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3890 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3891 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3892 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3893 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3894 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3895 * ada-lang.c (ada_main_name): Update.
3896 (ada_lookup_simple_minsym): Update.
3897 (ada_make_symbol_completion_list): Update.
3898 (ada_add_standard_exceptions): Update.
3899 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3900 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3901 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3902 * arm-tdep.c (skip_prologue_function): Update.
3903 (arm_skip_stack_protector, arm_skip_stub): Update.
3904 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3905 (arm_wince_skip_main_prologue): Update.
3906 * auxv.c (ld_so_xfer_auxv): Update.
3907 * avr-tdep.c (avr_scan_prologue): Update.
3908 * ax-gdb.c (gen_var_ref): Update.
3909 * block.c (call_site_for_pc): Update.
3910 * blockframe.c (get_pc_function_start): Update.
3911 (find_pc_partial_function_gnu_ifunc): Update.
3912 * breakpoint.c (create_overlay_event_breakpoint): Update.
3913 (create_longjmp_master_breakpoint): Update.
3914 (create_std_terminate_master_breakpoint): Update.
3915 (create_exception_master_breakpoint): Update.
3916 (resolve_sal_pc): Update.
3917 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3918 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3920 * c-valprint.c (c_val_print): Update.
3921 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3922 * coffread.c (coff_symfile_read): Update.
3923 * common/agent.c (agent_look_up_symbols): Update.
3924 * dbxread.c (find_stab_function_addr): Update.
3925 (end_psymtab): Update.
3926 * dwarf2loc.c (call_site_to_target_addr): Update.
3927 (func_verify_no_selftailcall): Update.
3928 (tailcall_dump): Update.
3929 (call_site_find_chain_1): Update.
3930 (dwarf_expr_reg_to_entry_parameter): Update.
3931 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3932 (elf_gnu_ifunc_resolve_by_got): Update.
3933 * f-valprint.c (info_common_command): Update.
3934 * findvar.c (read_var_value): Update.
3935 * frame.c (get_prev_frame_1): Update.
3936 (inside_main_func): Update.
3937 * frv-tdep.c (frv_skip_main_prologue): Update.
3938 (frv_frame_this_id): Update.
3939 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3940 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3941 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3942 (gnuv3_skip_trampoline): Update.
3943 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3944 (hppa64_hpux_in_solib_call_trampoline): Update.
3945 (hppa_hpux_skip_trampoline_code): Update.
3946 (hppa64_hpux_search_dummy_call_sequence): Update.
3947 (hppa_hpux_find_import_stub_for_addr): Update.
3948 (hppa_hpux_find_dummy_bpaddr): Update.
3949 * hppa-tdep.c (hppa_symbol_address)
3950 (hppa_lookup_stub_minimal_symbol): Update.
3951 * i386-tdep.c (i386_skip_main_prologue): Update.
3952 (i386_pe_skip_trampoline_code): Update.
3953 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3954 * infcall.c (get_function_name): Update.
3955 * infcmd.c (until_next_command): Update.
3956 * jit.c (jit_breakpoint_re_set_internal): Update.
3957 (jit_inferior_init): Update.
3958 * linespec.c (minsym_found): Update.
3959 (add_minsym): Update.
3960 * linux-fork.c (info_checkpoints_command): Update.
3961 * linux-nat.c (get_signo): Update.
3962 * linux-thread-db.c (inferior_has_bug): Update.
3963 * m32c-tdep.c (m32c_return_value): Update.
3964 (m32c_m16c_address_to_pointer): Update.
3965 (m32c_m16c_pointer_to_address): Update.
3966 * m32r-tdep.c (m32r_frame_this_id): Update.
3967 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3968 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3969 * maint.c (maintenance_translate_address): Update.
3970 * minsyms.c (add_minsym_to_hash_table): Update.
3971 (add_minsym_to_demangled_hash_table): Update.
3972 (msymbol_objfile): Update.
3973 (lookup_minimal_symbol): Update.
3974 (iterate_over_minimal_symbols): Update.
3975 (lookup_minimal_symbol_text): Update.
3976 (lookup_minimal_symbol_by_pc_name): Update.
3977 (lookup_minimal_symbol_solib_trampoline): Update.
3978 (lookup_minimal_symbol_by_pc_section_1): Update.
3979 (lookup_minimal_symbol_and_objfile): Update.
3980 (prim_record_minimal_symbol_full): Update.
3981 (compare_minimal_symbols): Update.
3982 (compact_minimal_symbols): Update.
3983 (build_minimal_symbol_hash_tables): Update.
3984 (install_minimal_symbols): Update.
3985 (terminate_minimal_symbol_table): Update.
3986 (find_solib_trampoline_target): Update.
3987 (minimal_symbol_upper_bound): Update.
3988 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3989 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3990 (mips_skip_pic_trampoline_code): Update.
3991 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3992 * objc-lang.c (selectors_info): Update.
3993 (classes_info): Update.
3994 (find_methods): Update.
3995 (find_imps): Update.
3996 (find_objc_msgsend): Update.
3997 * objfiles.c (objfile_relocate1): Update.
3998 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3999 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4000 * p-valprint.c (pascal_val_print): Update.
4001 * parse.c (write_exp_msymbol): Update.
4002 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4003 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4004 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4005 * printcmd.c (build_address_symbolic): Update.
4007 (address_info): Update.
4008 * proc-service.c (ps_pglobal_lookup): Update.
4009 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4010 (find_pc_sect_psymtab): Update.
4011 * python/py-framefilter.c (py_print_frame): Update.
4012 * ravenscar-thread.c (get_running_thread_id): Update.
4013 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4015 * remote.c (remote_check_symbols): Update.
4016 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4017 (rs6000_skip_trampoline_code): Update.
4018 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4019 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4020 * solib-dsbt.c (lm_base): Update.
4021 * solib-frv.c (lm_base): Update.
4023 * solib-irix.c (locate_base): Update.
4024 * solib-som.c (som_solib_create_inferior_hook): Update.
4025 (som_solib_desire_dynamic_linker_symbols): Update.
4026 (link_map_start): Update.
4027 * solib-spu.c (spu_enable_break): Update.
4028 (ocl_enable_break): Update.
4029 * solib-svr4.c (elf_locate_base): Update.
4030 (enable_break): Update.
4031 * spu-tdep.c (spu_get_overlay_table): Update.
4032 (spu_catch_start): Update.
4033 (flush_ea_cache): Update.
4034 * stabsread.c (define_symbol): Update.
4035 (scan_file_globals): Update.
4036 * stack.c (find_frame_funname): Update.
4037 (frame_info): Update.
4038 * symfile.c (simple_read_overlay_table): Update.
4039 (simple_overlay_update): Update.
4040 * symmisc.c (dump_msymbols): Update.
4041 * symtab.c (fixup_section): Update.
4042 (find_pc_sect_line): Update.
4043 (skip_prologue_sal): Update.
4044 (search_symbols): Update.
4045 (print_msymbol_info): Update.
4046 (rbreak_command): Update.
4047 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4048 (completion_list_objc_symbol): Update.
4049 (default_make_symbol_completion_list_break_on): Update.
4050 * tracepoint.c (scope_info): Update.
4051 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4052 (tui_get_begin_asm_address): Update.
4053 * valops.c (find_function_in_inferior): Update.
4054 * value.c (value_static_field): Update.
4055 (value_fn_field): Update.
4057 2014-02-26 Tom Tromey <tromey@redhat.com>
4059 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4060 bound minimal symbols. Move code that knows about minsym
4062 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4064 * minsyms.h (minimal_symbol_upper_bound): Declare.
4065 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4066 minimal_symbol_upper_bound.
4068 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4070 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4071 Use the type's name if its basic type does not have a tag.
4073 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4075 * dwarf2read.c (read_subrange_type): Add comment.
4077 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4079 * dwarf2read.c (update_enumeration_type_from_children): New
4080 function, mostly extracted from process_structure_scope.
4081 (read_enumeration_type): Call update_enumeration_type_from_children.
4082 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4083 and flag_flag_enum fields.
4085 2014-02-26 Pedro Alves <palves@redhat.com>
4087 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4088 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4089 to_xfer_partial method.
4091 2014-02-26 Pedro Alves <palves@redhat.com>
4093 * target.c (complete_target_initialization): Don't install
4094 default_xfer_partial as to_xfer_partial hook.
4096 (update_current_target): Don't INHERIT nor de_fault
4097 deprecated_xfer_memory. Delete de_fault macro.
4098 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4099 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4100 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4103 2014-02-26 Pedro Alves <palves@redhat.com>
4105 * go32-nat.c (my_write_child): New function.
4106 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4107 (go32_xfer_partial): New function.
4108 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4109 Instead install a to_xfer_partial hook.
4111 2014-02-26 Pedro Alves <palves@redhat.com>
4113 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4114 to_xfer_partial helper. Rewrite.
4115 (procfs_xfer_partial): New function.
4116 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4117 Install a to_xfer_partial hook.
4119 2014-02-26 Pedro Alves <palves@redhat.com>
4121 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4122 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4123 (m32r_xfer_partial): New function.
4124 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4125 Install a to_xfer_partial hook.
4127 2014-02-26 Pedro Alves <palves@redhat.com>
4129 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4131 (mips_xfer_partial): New function.
4132 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4133 hook. Install a to_xfer_partial hook.
4135 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4137 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4138 * gdbtypes.c (create_array_type_with_stride): New function,
4139 renaming create_array_type, but with an added parameter
4140 called "bit_stride".
4141 (create_array_type): Re-implement using
4142 create_array_type_with_stride.
4143 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4144 and DW_AT_bit_stride attributes.
4146 2014-02-26 Pedro Alves <palves@redhat.com>
4148 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4149 task-specific breakpoints.
4151 2014-02-25 Pedro Alves <palves@redhat.com>
4153 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4154 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4156 2014-02-25 Stan Shebs <stan@codesourcery.com>
4158 * defs.h: Annotate comments for Doxygen.
4160 2014-02-25 Tom Tromey <tromey@redhat.com>
4162 * target.h (target_ignore): Don't declare.
4163 * target.c (target_ignore): Remove.
4165 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4168 * auto-load.c (auto_load_objfile_script_1): Change filename to
4171 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4173 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4174 documentation. Adjust prototype to match the target_ops
4175 to_xfer_partial method. Adjust implementation accordingly.
4177 2014-02-25 Hui Zhu <hui@codesourcery.com>
4179 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4182 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4184 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4185 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4186 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4187 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4188 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4189 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4190 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4191 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4193 (rl78_register_type): Use a data pointer type for SP and
4194 new pseudo registers mentioned above. Use a 16 bit integer
4195 type for all other register pairs.
4196 (rl78_register_name, rl78_g10_register_name): Update for
4197 new pseudo registers.
4198 (rl78_pseudo_register_read): Likewise.
4199 (rl78_pseudo_register_write): Likewise.
4200 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4201 to the newly added pseudo registers.
4203 2014-02-24 Doug Evans <dje@google.com>
4205 * value.c (record_latest_value): Fix comment.
4206 * printcmd.c (print_command_1): Remove code to handle -1 return from
4207 record_latest_value.
4209 2014-02-24 Pedro Alves <palves@redhat.com>
4211 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4212 deprecated_xfer_memory hook.
4213 (procfs_xfer_partial): Call procfs_xfer_memory instead
4214 of the deprecated_xfer_memory target hook.
4215 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4218 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4220 * windows-nat.c (windows_xfer_shared_libraries): Return
4221 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4222 requested object is TARGET_OBJECT_LIBRARIES.
4224 2014-02-24 Yao Qi <yao@codesourcery.com>
4226 * target.h (enum target_xfer_status)
4227 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4228 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4230 * corefile.c (memory_error_message): User updated.
4231 * exec.c (section_table_read_available_memory): Likewise.
4232 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4233 * target.c (target_xfer_status_to_string): Likewise.
4234 (raw_memory_xfer_partial): Likewise.
4235 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4236 * valops.c (read_value_memory): Likewise.
4237 * exec.h: Update comments.
4239 2014-02-24 Yao Qi <yao@codesourcery.com>
4241 * target.c (target_xfer_status_to_string): Rename argument err
4243 * target.h (target_xfer_status_to_string): Update declaration.
4244 Replace target_xfer_error_to_string with
4245 target_xfer_status_to_string in comment.
4247 2014-02-24 Yao Qi <yao@codesourcery.com>
4249 * mips-linux-nat.c (super_close): Update its type.
4250 (mips_linux_close): Pass 'self' to super_close.
4252 2014-02-24 Yao Qi <yao@codesourcery.com>
4254 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4255 * corefile.c (read_memory): Adjusted.
4256 * target.c (target_write_with_progress): Adjusted.
4258 2014-02-23 Yao Qi <yao@codesourcery.com>
4262 2013-10-25 Yao Qi <yao@codesourcery.com>
4264 * remote.c (remote_traceframe_info): Return early if
4265 traceframe is not selected.
4267 2013-07-19 Yao Qi <yao@codesourcery.com>
4269 * target.c (update_current_target): Change the default action
4270 of 'to_traceframe_info' from tcomplain to return_zero.
4271 * target.h (struct target_ops) <to_traceframe_info>: Add more
4274 2014-02-23 Yao Qi <yao@codesourcery.com>
4276 * valops.c (read_value_memory): Rewrite it. Call
4277 target_xfer_partial in a loop.
4278 * exec.h (section_table_available_memory): Remove declaration.
4279 Move comments to ...
4280 * exec.c (section_table_available_memory): ... here. Make it
4283 2014-02-23 Yao Qi <yao@codesourcery.com>
4285 * exec.c (section_table_read_available_memory): New function.
4286 * exec.h (section_table_read_available_memory): Declare.
4287 * ctf.c (ctf_xfer_partial): Call
4288 section_table_read_available_memory.
4289 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4291 2014-02-23 Yao Qi <yao@codesourcery.com>
4293 * ctf.c (ctf_xfer_partial): Move code to ...
4294 * exec.c (exec_read_partial_read_only): ... it. New function.
4295 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4296 * tracefile.c: Include "exec.h".
4297 * exec.h (exec_read_partial_read_only): Declare.
4299 2014-02-23 Yao Qi <yao@codesourcery.com>
4301 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4302 (tfile_has_memory): Remove.
4303 (init_tfile_ops): Don't set fields to_has_all_memory and
4304 to_has_memory of tfile_ops.
4305 * tracefile.c (tracefile_has_all_memory): New function.
4306 (tracefile_has_memory): New function.
4307 (init_tracefile_ops): Initialize fields to_has_all_memory and
4308 to_has_memory of 'ops'.
4310 2014-02-23 Yao Qi <yao@codesourcery.com>
4312 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4313 (ctf_thread_alive, ctf_get_trace_status): Remove.
4314 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4316 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4317 (tfile_has_stack, tfile_has_registers): Remove.
4318 (tfile_thread_alive): Remove.
4319 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4321 * tracefile.c (tracefile_has_stack): New function.
4322 (tracefile_has_registers): New function.
4323 (tracefile_thread_alive): New function.
4324 (tracefile_get_trace_status): New function.
4325 (init_tracefile_ops): New function.
4326 * tracefile.h (init_tracefile_ops): Declare.
4328 2014-02-23 Yao Qi <yao@codesourcery.com>
4330 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4331 (O_LARGEFILE): Likewise.
4332 (tfile_ops): Likewise.
4333 (TRACE_HEADER_SIZE): Likewise.
4334 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4335 (cur_data_size): Likewise.
4336 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4337 (tfile_close, tfile_files_info): Likewise.
4338 (tfile_get_trace_status): Likewise.
4339 (tfile_get_tracepoint_status): Likewise.
4340 (tfile_get_traceframe_address): Likewise.
4341 (tfile_trace_find, match_blocktype): Likewise.
4342 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4343 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4344 (tfile_get_trace_state_variable_value): Likewise.
4345 (tfile_has_all_memory, tfile_has_memory): Likewise.
4346 (tfile_has_stack, tfile_has_registers): Likewise.
4347 (tfile_thread_alive, build_traceframe_info): Likewise.
4348 (tfile_traceframe_info, init_tfile_ops): Likewise.
4349 (_initialize_tracepoint): Don't call init_tfile_ops
4350 and add_target_with_completer.
4351 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4352 exec.h, completer.h and filenames.h.
4353 (_initialize_tracefile_tfile): New function.
4355 2014-02-23 Yao Qi <yao@codesourcery.com>
4357 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4359 (HFILES_NO_SRCDIR): Add tracefile.h.
4360 * ctf.c: Include "tracefile.h".
4361 * tracefile.h: New file.
4362 * tracefile.c: New file
4363 * tracefile-tfile.c: New file.
4364 * tracepoint.c: Include "tracefile.h".
4365 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4366 (stop_reason_names): Add const.
4367 (trace_file_writer_xfree): Move it to tracefile.c.
4368 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4369 (trace_save_ctf): Likewise.
4370 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4371 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4372 (tfile_write_header, tfile_write_regblock_type): Likewise.
4373 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4374 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4375 (tfile_write_raw_data, tfile_end): Likewise.
4376 (tfile_trace_file_writer_new): Likewise.
4377 (free_uploaded_tp): Make it extern.
4378 (free_uploaded_tsv): Make it extern.
4379 (_initialize_tracepoint): Move code to register command 'tsave'
4381 * tracepoint.h (stop_reason_names): Declare.
4382 (struct trace_frame_write_ops): Move it to tracefile.h.
4383 (struct trace_file_write_ops): Likewise.
4384 (struct trace_file_writer): Likewise.
4385 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4387 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4390 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4392 (get_cores_used_by_process): New parameter num_cores, use it.
4393 (linux_xfer_osdata_processes): Pass num_cores to it.
4394 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4397 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4399 * target.c (memory_xfer_partial): Fix length arg in call to
4400 breakpoint_xfer_memory.
4402 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4405 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4406 number comes after the + or - signs. Adjust length of register
4407 name to be extracted.
4409 2014-02-20 Tom Tromey <tromey@redhat.com>
4411 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4412 (ada_varobj_ops): Mark "extern".
4414 2014-02-20 Tom Tromey <tromey@redhat.com>
4416 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4418 2014-02-20 Doug Evans <xdje42@gmail.com>
4420 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4421 All callers updated.
4422 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4423 All callers updated.
4424 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4425 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4427 2014-02-20 lin zuojian <manjian2006@gmail.com>
4428 Joel Brobecker <brobecker@adacore.com>
4429 Doug Evans <xdje42@gmail.com>
4432 * dwarf2read.c (struct die_info): New member in_process.
4433 (reset_die_in_process): New function.
4434 (process_die): Set it at the start, reset when returning.
4435 (inherit_abstract_dies): Only call process_die if origin_child_die
4436 not already being processed.
4438 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4440 * windows-nat.c (handle_unload_dll): Add function documentation.
4441 (do_initial_windows_stuff): Add comment explaining why we wait
4442 until after inferior initialization has finished before
4443 processing all DLLs.
4445 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4447 * windows-nat.c (get_module_name): Delete.
4448 (windows_get_exec_module_filename): New function, mostly
4449 inspired from get_module_name.
4450 (windows_pid_to_exec_file): Replace call to get_module_name
4451 by call to windows_get_exec_module_filename.
4453 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4455 * windows-nat.c (handle_load_dll): Rewrite this function's
4456 introductory comment. Remove code using get_module_name
4457 to get the DLL's name.
4459 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4461 * windows-nat.c (get_windows_debug_event): Ignore
4462 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4463 if windows_initialization_done == 0.
4464 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4465 Adjust implementation to always load all DLLs.
4466 (do_initial_windows_stuff): Replace call to
4467 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4469 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4471 * windows-nat.c (_initialize_windows_nat): Deprecate the
4472 "dll-symbols" command. Turn the "add-shared-symbol-files"
4473 and "assf" aliases into commands, and deprecate them as well.
4474 * NEWS: Add entry explaining that "dll-symbols" and its two
4475 aliases are now deprecated.
4477 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4479 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4480 new-line in debug string. Remove trailing spaces.
4482 2014-02-19 Stan Shebs <stan@codesourcery.com>
4484 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4486 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4488 * NEWS: Add entry for the new feature
4489 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4492 2014-02-19 Stan Shebs <stan@codesourcery.com>
4494 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4496 2014-02-19 Pedro Alves <palves@redhat.com>
4498 * common/ptid.h (struct ptid): Mention that process_stratum
4499 targets should prefer ptid.lwp.
4501 2014-02-19 Pedro Alves <palves@redhat.com>
4503 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4504 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4505 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4506 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4507 store remote thread ids rather than ptid.tid.
4508 (_initialize_remote): Adjust.
4510 2014-02-19 Tom Tromey <tromey@redhat.com>
4512 * target.c (target_get_unwinder): Rewrite.
4513 (target_get_tailcall_unwinder): Rewrite.
4514 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4515 (record_btrace_to_get_tailcall_unwinder): New function.
4516 (init_record_btrace_ops): Update.
4517 * target.h (struct target_ops) <to_get_unwinder,
4518 to_get_tailcall_unwinder>: Now function pointers. Use
4519 TARGET_DEFAULT_RETURN.
4521 2014-02-19 Tom Tromey <tromey@redhat.com>
4523 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4525 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4527 2014-02-19 Tom Tromey <tromey@redhat.com>
4529 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4531 * target-delegates.c: Rebuild.
4532 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4533 TARGET_DEFAULT_FUNC.
4534 * target.c (default_target_decr_pc_after_break): Rename from
4535 forward_target_decr_pc_after_break. Simplify.
4536 (target_decr_pc_after_break): Rely on delegation.
4538 2014-02-19 Tom Tromey <tromey@redhat.com>
4540 * target.c (update_current_target): Do not INHERIT to_doc or
4541 to_magic. Do not de_fault to_open or to_close.
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * gcore.h (objfile_find_memory_regions): Declare.
4546 * gcore.c (objfile_find_memory_regions): No longer static. Add
4548 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4549 * exec.c: Include gcore.h.
4550 (exec_set_find_memory_regions): Remove.
4551 (exec_find_memory_regions): Remove.
4552 (exec_do_find_memory_regions): Remove.
4553 (init_exec_ops): Update.
4554 * defs.h (exec_set_find_memory_regions): Remove.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.h (struct target_ops) <to_extra_thread_info,
4560 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4561 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4562 not 0, in TARGET_DEFAULT_RETURN.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target.c (complete_target_initialization): Remove casts. Use
4567 return_zero_has_execution.
4568 (return_zero): Add "ignore" argument.
4569 (return_zero_has_execution): New function.
4570 (init_dummy_target): Remove casts. Use
4571 return_zero_has_execution.
4573 2014-02-19 Tom Tromey <tromey@redhat.com>
4575 * target.c (update_current_target): Update comments. Do not
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4582 * corelow.c (core_read_description): Delegate when needed.
4583 * remote.c (remote_read_description): Delegate when needed.
4584 * target-delegates.c: Rebuild.
4585 * target.c (target_read_description): Rewrite.
4586 * target.h (struct target_ops) <to_read_description>: Update
4587 comment. Use TARGET_DEFAULT_RETURN.
4589 2014-02-19 Tom Tromey <tromey@redhat.com>
4591 * target-delegates.c: Rebuild.
4592 * target.c (update_current_target): Don't inherit or default
4594 (find_default_run_target): Check against delegate_can_run.
4595 * target.h (struct target_ops) <to_can_run>: Use
4596 TARGET_DEFAULT_RETURN.
4598 2014-02-19 Tom Tromey <tromey@redhat.com>
4600 * target-delegates.c: Rebuild.
4601 * target.c (target_disconnect): Unconditionally delegate.
4602 * target.h (struct target_ops) <to_disconnect>: Use
4603 TARGET_DEFAULT_NORETURN.
4605 2014-02-19 Tom Tromey <tromey@redhat.com>
4607 * record.c (record_stop): Unconditionally delegate.
4608 * target-delegates.c: Rebuild.
4609 * target.c (target_stop_recording): Unconditionally delegate.
4610 * target.h (struct target_ops) <to_stop_recording>: Use
4611 TARGET_DEFAULT_IGNORE.
4613 2014-02-19 Tom Tromey <tromey@redhat.com>
4615 * target-delegates.c: Rebuild.
4616 * target.c (target_enable_btrace): Unconditionally delegate.
4617 * target.h (struct target_ops) <to_enable_btrace>: Use
4618 TARGET_DEFAULT_NORETURN.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target-delegates.c: Rebuild.
4623 * target.c (target_read_btrace): Unconditionally delegate.
4624 * target.h (struct target_ops) <to_read_btrace>: Use
4625 TARGET_DEFAULT_NORETURN.
4627 2014-02-19 Tom Tromey <tromey@redhat.com>
4629 * target-delegates.c: Rebuild.
4630 * target.c (target_teardown_btrace): Unconditionally delegate.
4631 * target.h (struct target_ops) <to_teardown_btrace>: Use
4632 TARGET_DEFAULT_NORETURN.
4634 2014-02-19 Tom Tromey <tromey@redhat.com>
4636 * target-delegates.c: Rebuild.
4637 * target.c (target_disable_btrace): Unconditionally delegate.
4638 * target.h (struct target_ops) <to_disable_btrace>: Use
4639 TARGET_DEFAULT_NORETURN.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target-delegates.c: Rebuild.
4644 * target.c (default_search_memory): New function.
4645 (simple_search_memory): Update comment.
4646 (target_search_memory): Unconditionally delegate.
4647 * target.h (struct target_ops) <to_search_memory>: Use
4648 TARGET_DEFAULT_FUNC.
4650 2014-02-19 Tom Tromey <tromey@redhat.com>
4652 * auxv.c (default_auxv_parse): No longer static.
4653 (target_auxv_parse): Unconditionally delegate.
4654 * auxv.h (default_auxv_parse): Declare.
4655 * target-delegates.c: Rebuild.
4656 * target.c: Include auxv.h.
4657 * target.h (struct target_ops) <to_auxv_parse>: Use
4658 TARGET_DEFAULT_FUNC.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target-delegates.c: Rebuild.
4663 * target.c (target_memory_map): Unconditionally delegate.
4664 * target.h (struct target_ops) <to_memory_map>: Use
4665 TARGET_DEFAULT_RETURN.
4667 2014-02-19 Tom Tromey <tromey@redhat.com>
4669 * target-delegates.c: Rebuild.
4670 * target.c (target_thread_alive): Unconditionally delegate.
4671 * target.h (struct target_ops) <to_thread_alive>: Use
4672 TARGET_DEFAULT_RETURN.
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target-delegates.c: Rebuild.
4677 * target.c (target_save_record): Unconditionally delegate.
4678 * target.h (struct target_ops) <to_save_record>: Use
4679 TARGET_DEFAULT_NORETURN.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target-delegates.c: Rebuild.
4684 * target.c (target_delete_record): Unconditionally delegate.
4685 * target.h (struct target_ops) <to_delete_record>: Use
4686 TARGET_DEFAULT_NORETURN.
4688 2014-02-19 Tom Tromey <tromey@redhat.com>
4690 * target-delegates.c: Rebuild.
4691 * target.c (target_record_is_replaying): Unconditionally
4693 * target.h (struct target_ops) <to_record_is_replaying>: Use
4694 TARGET_DEFAULT_RETURN.
4696 2014-02-19 Tom Tromey <tromey@redhat.com>
4698 * target-delegates.c: Rebuild.
4699 * target.c (target_goto_record_begin): Unconditionally delegate.
4700 * target.h (struct target_ops) <to_goto_record_begin>: Use
4701 TARGET_DEFAULT_NORETURN.
4703 2014-02-19 Tom Tromey <tromey@redhat.com>
4705 * target-delegates.c: Rebuild.
4706 * target.c (target_goto_record_end): Unconditionally delegate.
4707 * target.h (struct target_ops) <to_goto_record_end>: Use
4708 TARGET_DEFAULT_NORETURN.
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * target-delegates.c: Rebuild.
4713 * target.c (target_goto_record): Unconditionally delegate.
4714 * target.h (struct target_ops) <to_goto_record>: Use
4715 TARGET_DEFAULT_NORETURN.
4717 2014-02-19 Tom Tromey <tromey@redhat.com>
4719 * target-delegates.c: Rebuild.
4720 * target.c (target_insn_history): Unconditionally delegate.
4721 * target.h (struct target_ops) <to_insn_history>: Use
4722 TARGET_DEFAULT_NORETURN.
4724 2014-02-19 Tom Tromey <tromey@redhat.com>
4726 * target-delegates.c: Rebuild.
4727 * target.c (target_insn_history_from): Unconditionally delegate.
4728 * target.h (struct target_ops) <to_insn_history_from>: Use
4729 TARGET_DEFAULT_NORETURN.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * target-delegates.c: Rebuild.
4734 * target.c (target_insn_history_range): Unconditionally delegate.
4735 * target.h (struct target_ops) <to_insn_history_range>: Use
4736 TARGET_DEFAULT_NORETURN.
4738 2014-02-19 Tom Tromey <tromey@redhat.com>
4740 * target-delegates.c: Rebuild.
4741 * target.c (target_call_history): Unconditionally delegate.
4742 * target.h (struct target_ops) <to_call_history>: Use
4743 TARGET_DEFAULT_NORETURN.
4745 2014-02-19 Tom Tromey <tromey@redhat.com>
4747 * target-delegates.c: Rebuild.
4748 * target.c (target_call_history_from): Unconditionally delegate.
4749 * target.h (struct target_ops) <to_call_history_from>: Use
4750 TARGET_DEFAULT_NORETURN.
4752 2014-02-19 Tom Tromey <tromey@redhat.com>
4754 * target-delegates.c: Rebuild.
4755 * target.c (target_call_history_range): Unconditionally delegate.
4756 * target.h (struct target_ops) <to_call_history_range>: Use
4757 TARGET_DEFAULT_NORETURN.
4759 2014-02-19 Tom Tromey <tromey@redhat.com>
4761 * target-delegates.c: Rebuild.
4762 * target.c (target_verify_memory): Unconditionally delegate.
4763 * target.h (struct target_ops) <to_verify_memory>: Use
4764 TARGET_DEFAULT_NORETURN.
4766 2014-02-19 Tom Tromey <tromey@redhat.com>
4768 * target-delegates.c: Rebuild.
4769 * target.c (target_core_of_thread): Unconditionally delegate.
4770 * target.h (struct target_ops) <to_core_of_thread>: Use
4771 TARGET_DEFAULT_RETURN.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target-delegates.c: Rebuild.
4776 * target.c (target_flash_done): Unconditionally delegate.
4777 * target.h (struct target_ops) <to_flash_done>: Use
4778 TARGET_DEFAULT_NORETURN.
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target-delegates.c: Rebuild.
4783 * target.c (target_flash_erase): Unconditionally delegate.
4784 * target.h (struct target_ops) <to_flash_erase>: Use
4785 TARGET_DEFAULT_NORETURN.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target-delegates.c: Rebuild.
4790 * target.c (target_get_section_table): Unconditionally delegate.
4791 * target.h (struct target_ops) <to_get_section_table>: Use
4792 TARGET_DEFAULT_RETURN.
4794 2014-02-19 Tom Tromey <tromey@redhat.com>
4796 * target-delegates.c: Rebuild.
4797 * target.c (target_pid_to_str): Unconditionally delegate.
4798 (init_dummy_target): Don't initialize to_pid_to_str.
4799 (default_pid_to_str): Rename from dummy_pid_to_str.
4800 * target.h (struct target_ops) <to_pid_to_str>: Use
4801 TARGET_DEFAULT_FUNC.
4803 2014-02-19 Tom Tromey <tromey@redhat.com>
4805 * target-delegates.c: Rebuild.
4806 * target.c (target_find_new_threads): Unconditionally delegate.
4807 * target.h (struct target_ops) <to_find_new_threads>: Use
4808 TARGET_DEFAULT_RETURN.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target-delegates.c: Rebuild.
4813 * target.c (target_program_signals): Unconditionally delegate.
4814 * target.h (struct target_ops) <to_program_signals>: Use
4815 TARGET_DEFAULT_IGNORE.
4817 2014-02-19 Tom Tromey <tromey@redhat.com>
4819 * target-delegates.c: Rebuild.
4820 * target.c (target_pass_signals): Unconditionally delegate.
4821 * target.h (struct target_ops) <to_pass_signals>: Use
4822 TARGET_DEFAULT_IGNORE.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (default_mourn_inferior): New function.
4828 (target_mourn_inferior): Unconditionally delegate.
4829 * target.h (struct target_ops) <to_mourn_inferior>: Use
4830 TARGET_DEFAULT_FUNC.
4832 2014-02-19 Tom Tromey <tromey@redhat.com>
4834 * target-delegates.c: Rebuild.
4835 * target.c (default_follow_fork): New function.
4836 (target_follow_fork): Unconditionally delegate.
4837 * target.h (struct target_ops) <to_follow_fork>: Use
4838 TARGET_DEFAULT_FUNC.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target-delegates.c: Rebuild.
4843 * target.c (target_kill): Unconditionally delegate.
4844 * target.h (struct target_ops) <to_kill>: Use
4845 TARGET_DEFAULT_NORETURN.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (target_masked_watch_num_registers): Unconditionally
4852 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4853 Use TARGET_DEFAULT_RETURN.
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target-delegates.c: Rebuild.
4858 * target.c (target_remove_mask_watchpoint): Unconditionally
4860 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4861 TARGET_DEFAULT_RETURN.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target-delegates.c: Rebuild.
4866 * target.c (target_insert_mask_watchpoint): Unconditionally
4868 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4869 TARGET_DEFAULT_RETURN.
4871 2014-02-19 Tom Tromey <tromey@redhat.com>
4873 * target-delegates.c: Rebuild.
4874 * target.c (target_ranged_break_num_registers): Unconditionally
4876 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4877 Use TARGET_DEFAULT_RETURN.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target-delegates.c: Rebuild.
4882 * target.c (target_fetch_registers): Unconditionally delegate.
4883 * target.h (struct target_ops) <to_fetch_registers>: Use
4884 TARGET_DEFAULT_NORETURN.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (update_current_target): Don't inherit or default
4891 * target.h (struct target_ops) <to_stop>: Use
4892 TARGET_DEFAULT_IGNORE.
4894 2014-02-19 Tom Tromey <tromey@redhat.com>
4896 * target-delegates.c: Rebuild.
4897 * target.c (update_current_target): Don't inherit or default
4898 to_can_run_breakpoint_commands.
4899 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4900 Use TARGET_DEFAULT_RETURN.
4902 2014-02-19 Tom Tromey <tromey@redhat.com>
4904 * target-delegates.c: Rebuild.
4905 * target.c (update_current_target): Don't inherit or default
4906 to_supports_evaluation_of_breakpoint_conditions.
4907 * target.h (struct target_ops)
4908 <to_supports_evaluation_of_breakpoint_conditions>: Use
4909 TARGET_DEFAULT_RETURN.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target-delegates.c: Rebuild.
4914 * target.c (update_current_target): Don't inherit or default
4915 to_augmented_libraries_svr4_read.
4916 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4917 Use TARGET_DEFAULT_RETURN.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target-delegates.c: Rebuild.
4922 * target.c (update_current_target): Don't inherit or default
4924 * target.h (struct target_ops) <to_can_use_agent>: Use
4925 TARGET_DEFAULT_RETURN.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4932 * target.h (struct target_ops) <to_use_agent>: Use
4933 TARGET_DEFAULT_NORETURN.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (update_current_target): Don't inherit or default
4940 (return_null): Remove.
4941 * target.h (struct target_ops) <to_traceframe_info>: Use
4942 TARGET_DEFAULT_RETURN.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target-delegates.c: Rebuild.
4947 * target.c (update_current_target): Don't inherit or default
4948 to_static_tracepoint_markers_by_strid.
4949 * target.h (struct target_ops)
4950 <to_static_tracepoint_markers_by_strid>: Use
4951 TARGET_DEFAULT_NORETURN.
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target-delegates.c: Rebuild.
4956 * target.c (update_current_target): Don't inherit or default
4957 to_static_tracepoint_marker_at.
4958 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4959 Use TARGET_DEFAULT_RETURN.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target-delegates.c: Rebuild.
4964 * target.c (update_current_target): Don't inherit or default
4966 * target.h (struct target_ops) <to_set_permissions>: Use
4967 TARGET_DEFAULT_IGNORE.
4969 2014-02-19 Tom Tromey <tromey@redhat.com>
4971 * target-delegates.c: Rebuild.
4972 * target.c (update_current_target): Don't inherit or default
4974 * target.h (struct target_ops) <to_get_tib_address>: Use
4975 TARGET_DEFAULT_NORETURN.
4977 2014-02-19 Tom Tromey <tromey@redhat.com>
4979 * target-delegates.c: Rebuild.
4980 * target.c (update_current_target): Don't inherit or default
4982 * target.h (struct target_ops) <to_set_trace_notes>: Use
4983 TARGET_DEFAULT_RETURN.
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target-delegates.c: Rebuild.
4988 * target.c (update_current_target): Don't initialize
4989 to_set_trace_buffer_size.
4990 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4991 TARGET_DEFAULT_IGNORE.
4993 2014-02-19 Tom Tromey <tromey@redhat.com>
4995 * target-delegates.c: Rebuild.
4996 * target.c (update_current_target): Don't inherit or default
4997 to_set_circular_trace_buffer.
4998 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4999 TARGET_DEFAULT_IGNORE.
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target-delegates.c: Rebuild.
5004 * target.c (update_current_target): Don't inherit or default
5005 to_set_disconnected_tracing.
5006 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5007 TARGET_DEFAULT_IGNORE.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target-delegates.c: Rebuild.
5012 * target.c (update_current_target): Don't inherit or default
5013 to_get_min_fast_tracepoint_insn_len.
5014 (return_minus_one): Remove.
5015 * target.h (struct target_ops)
5016 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5018 2014-02-19 Tom Tromey <tromey@redhat.com>
5020 * target-delegates.c: Rebuild.
5021 * target.c (update_current_target): Don't inherit or default
5022 to_get_raw_trace_data.
5023 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5024 TARGET_DEFAULT_NORETURN.
5026 2014-02-19 Tom Tromey <tromey@redhat.com>
5028 * target-delegates.c: Rebuild.
5029 * target.c (update_current_target): Don't inherit or default
5030 to_upload_trace_state_variables.
5031 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5032 Use TARGET_DEFAULT_RETURN.
5034 2014-02-19 Tom Tromey <tromey@redhat.com>
5036 * target-delegates.c: Rebuild.
5037 * target.c (update_current_target): Don't inherit or default
5038 to_upload_tracepoints.
5039 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5040 TARGET_DEFAULT_RETURN.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target-delegates.c: Rebuild.
5045 * target.c (update_current_target): Don't inherit or default
5047 * target.h (struct target_ops) <to_save_trace_data>: Use
5048 TARGET_DEFAULT_NORETURN.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (update_current_target): Don't inherit or default
5054 to_get_trace_state_variable_value.
5055 * target.h (struct target_ops)
5056 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (update_current_target): Don't inherit or default
5063 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (update_current_target): Don't inherit or default
5070 * target.h (struct target_ops) <to_trace_stop>: Use
5071 TARGET_DEFAULT_NORETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (update_current_target): Don't inherit or default
5077 to_get_tracepoint_status.
5078 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5079 TARGET_DEFAULT_NORETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (update_current_target): Don't inherit or default
5085 to_get_trace_status.
5086 * target.h (struct target_ops) <to_get_trace_status>: Use
5087 TARGET_DEFAULT_RETURN.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (update_current_target): Don't inherit or default
5094 * target.h (struct target_ops) <to_trace_start>: Use
5095 TARGET_DEFAULT_NORETURN.
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target-delegates.c: Rebuild.
5100 * target.c (update_current_target): Don't inherit or default
5101 to_trace_set_readonly_regions.
5102 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5103 Use TARGET_DEFAULT_NORETURN.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * target-delegates.c: Rebuild.
5108 * target.c (update_current_target): Don't inherit or default
5109 to_disable_tracepoint.
5110 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5111 TARGET_DEFAULT_NORETURN.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (update_current_target): Don't inherit or default
5117 to_enable_tracepoint.
5118 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5119 TARGET_DEFAULT_NORETURN.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (update_current_target): Don't inherit or default
5125 to_download_trace_state_variable.
5126 * target.h (struct target_ops) <to_download_trace_state_variable>:
5127 Use TARGET_DEFAULT_NORETURN.
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target-delegates.c: Rebuild.
5132 * target.c (update_current_target): Don't inherit or default
5133 to_can_download_tracepoint.
5134 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5135 TARGET_DEFAULT_RETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (update_current_target): Don't inherit or default
5141 to_download_tracepoint.
5142 * target.h (struct target_ops) <to_download_tracepoint>: Use
5143 TARGET_DEFAULT_NORETURN.
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target-delegates.c: Rebuild.
5148 * target.c (update_current_target): Don't inherit or default
5150 * target.h (struct target_ops) <to_trace_init>: Use
5151 TARGET_DEFAULT_RETURN.
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target-delegates.c: Rebuild.
5156 * target.c (update_current_target): Don't inherit or default
5157 to_supports_string_tracing.
5158 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5159 TARGET_DEFAULT_RETURN.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * target-delegates.c: Rebuild.
5164 * target.c (update_current_target): Don't inherit or default
5165 to_supports_enable_disable_tracepoint.
5166 * target.h (struct target_ops)
5167 <to_supports_enable_disable_tracepoint>: Use
5168 TARGET_DEFAULT_RETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (update_current_target): Don't inherit or default
5174 to_supports_multi_process.
5175 * target.h (struct target_ops) <to_supports_multi_process>: Use
5176 TARGET_DEFAULT_RETURN.
5178 2014-02-19 Tom Tromey <tromey@redhat.com>
5180 * target-delegates.c: Rebuild.
5181 * target.c (update_current_target): Don't inherit or default
5182 to_get_ada_task_ptid.
5183 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5184 TARGET_DEFAULT_FUNC.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target-delegates.c: Rebuild.
5189 * target.c (update_current_target): Don't inherit or default
5190 to_thread_architecture.
5191 * target.h (struct target_ops) <to_thread_architecture>: Use
5192 TARGET_DEFAULT_FUNC.
5194 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target-delegates.c: Rebuild.
5197 * target.c (update_current_target): Don't inherit or default
5198 to_execution_direction.
5199 * target.h (struct target_ops) <to_execution_direction>: Use
5200 TARGET_DEFAULT_FUNC.
5202 2014-02-19 Tom Tromey <tromey@redhat.com>
5204 * target-delegates.c: Rebuild.
5205 * target.c (update_current_target): Don't inherit or default
5206 to_can_execute_reverse.
5207 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5208 TARGET_DEFAULT_RETURN.
5209 (target_can_execute_reverse): Unconditionally delegate.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (update_current_target): Don't inherit or default
5216 (dummy_goto_bookmark): Remove.
5217 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5218 * target.h (struct target_ops) <to_goto_bookmark>: Use
5219 TARGET_DEFAULT_NORETURN.
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * target-delegates.c: Rebuild.
5224 * target.c (update_current_target): Don't inherit or default
5226 (dummy_get_bookmark): Remove.
5227 (init_dummy_target): Don't inherit or default to_get_bookmark.
5228 * target.h (struct target_ops) <to_get_bookmark>: Use
5229 TARGET_DEFAULT_NORETURN
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target-delegates.c: Rebuild.
5234 * target.c (update_current_target): Don't inherit or default
5235 to_make_corefile_notes.
5236 (init_dummy_target): Don't initialize to_make_corefile_notes.
5237 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5238 TARGET_DEFAULT_FUNC.
5240 2014-02-19 Tom Tromey <tromey@redhat.com>
5242 * target-delegates.c: Rebuild.
5243 * target.c (update_current_target): Don't inherit or default
5244 to_find_memory_regions.
5245 (init_dummy_target): Don't initialize to_find_memory_regions.
5246 * target.h (struct target_ops) <to_find_memory_regions>: Use
5247 TARGET_DEFAULT_FUNC.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * target-delegates.c: Rebuild.
5252 * target.c (update_current_target): Don't inherit or default
5254 * target.h (struct target_ops) <to_log_command>: Use
5255 TARGET_DEFAULT_IGNORE.
5256 (target_log_command): Unconditionally delegate.
5258 2014-02-19 Tom Tromey <tromey@redhat.com>
5260 * target-delegates.c: Rebuild.
5261 * target.c (update_current_target): Don't inherit or default
5262 to_pid_to_exec_file.
5263 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5264 TARGET_DEFAULT_RETURN.
5266 2014-02-19 Tom Tromey <tromey@redhat.com>
5268 * target-delegates.c: Rebuild.
5269 * target.c (update_current_target): Don't inherit or default
5271 (target_thread_name): Unconditionally delegate.
5272 * target.h (struct target_ops) <to_thread_name>: Use
5273 TARGET_DEFAULT_RETURN.
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target-delegates.c: Rebuild.
5278 * target.c (update_current_target): Don't inherit or default
5279 to_extra_thread_info.
5280 * target.h (struct target_ops) <to_extra_thread_info>: Use
5281 TARGET_DEFAULT_RETURN.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target-delegates.c: Rebuild.
5286 * target.c (update_current_target): Don't inherit or default
5288 * target.h (struct target_ops) <to_has_exited>: Use
5289 TARGET_DEFAULT_RETURN..
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5293 * target-delegates.c: Rebuild.
5294 * target.c (update_current_target): Don't inherit or default
5295 to_set_syscall_catchpoint.
5296 (return_one): Remove.
5297 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5298 TARGET_DEFAULT_RETURN.
5300 2014-02-19 Tom Tromey <tromey@redhat.com>
5302 * target-delegates.c: Rebuild.
5303 * target.c (update_current_target): Don't inherit or default
5304 to_insert_exec_catchpoint.
5305 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5306 TARGET_DEFAULT_RETURN.
5308 2014-01-08 Tom Tromey <tromey@redhat.com>
5310 * target-delegates.c: Rebuild.
5311 * target.c (update_current_target): Don't inherit or default
5312 to_insert_exec_catchpoint.
5313 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5314 TARGET_DEFAULT_RETURN.
5316 2014-02-19 Tom Tromey <tromey@redhat.com>
5318 * target-delegates.c: Rebuild.
5319 * target.c (update_current_target): Don't inherit or default
5320 to_remove_vfork_catchpoint.
5321 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5322 TARGET_DEFAULT_RETURN.
5324 2014-02-19 Tom Tromey <tromey@redhat.com>
5326 * target-delegates.c: Rebuild.
5327 * target.c (update_current_target): Don't inherit or default
5328 to_insert_vfork_catchpoint.
5329 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5330 TARGET_DEFAULT_RETURN.
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target-delegates.c: Rebuild.
5335 * target.c (update_current_target): Don't inherit or default
5336 to_remove_fork_catchpoint.
5337 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5338 TARGET_DEFAULT_RETURN.
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target-delegates.c: Rebuild.
5343 * target.c (update_current_target): Don't inherit or default
5344 to_insert_fork_catchpoint.
5345 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5346 TARGET_DEFAULT_RETURN.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target-delegates.c: Rebuild.
5351 * target.c (update_current_target): Don't inherit or default
5352 to_post_startup_inferior.
5353 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5354 TARGET_DEFAULT_IGNORE.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target-delegates.c: Rebuild.
5359 * target.c (update_current_target): Don't inherit or default
5361 * target.h (struct target_ops) <to_load>: Use
5362 TARGET_DEFAULT_NORETURN.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (update_current_target): Don't inherit or default
5369 * target.h (struct target_ops) <to_terminal_info>: Use
5370 TARGET_DEFAULT_FUNC.
5372 2014-02-19 Tom Tromey <tromey@redhat.com>
5374 * target-delegates.c: Rebuild.
5375 * target.c (update_current_target): Don't inherit or default
5376 to_terminal_save_ours.
5377 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5378 TARGET_DEFAULT_IGNORE.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * target-delegates.c: Rebuild.
5383 * target.c (update_current_target): Don't inherit or default
5385 * target.h (struct target_ops) <to_terminal_ours>: Use
5386 TARGET_DEFAULT_IGNORE.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target-delegates.c: Rebuild.
5391 * target.c (update_current_target): Don't inherit or default
5392 to_terminal_ours_for_output.
5393 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5394 TARGET_DEFAULT_IGNORE.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target-delegates.c: Rebuild.
5399 * target.c (update_current_target): Don't inherit or default
5400 to_terminal_inferior.
5401 * target.h (struct target_ops) <to_terminal_inferior>: Use
5402 TARGET_DEFAULT_IGNORE.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target-delegates.c: Rebuild.
5407 * target.c (update_current_target): Don't inherit or default
5409 * target.h (struct target_ops) <to_terminal_init>: Use
5410 TARGET_DEFAULT_IGNORE.
5412 2014-02-19 Tom Tromey <tromey@redhat.com>
5414 * target-delegates.c: Rebuild.
5415 * target.c (update_current_target): Don't inherit or default
5416 to_can_accel_watchpoint_condition.
5417 * target.h (struct target_ops)
5418 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5420 2014-02-19 Tom Tromey <tromey@redhat.com>
5422 * target-delegates.c: Rebuild.
5423 * target.c (update_current_target): Don't inherit or default
5424 to_region_ok_for_hw_watchpoint.
5425 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5426 Use TARGET_DEFAULT_FUNC.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target-delegates.c: Rebuild.
5431 * target.c (update_current_target): Don't inherit or default
5432 to_watchpoint_addr_within_range.
5433 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5434 Use TARGET_DEFAULT_FUNC.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target-delegates.c: Rebuild.
5439 * target.c (update_current_target): Don't inherit or default
5440 to_remove_watchpoint.
5441 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5442 TARGET_DEFAULT_NORETURN.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target-delegates.c: Rebuild.
5447 * target.c (update_current_target): Don't inherit or default
5448 to_insert_watchpoint.
5449 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5450 TARGET_DEFAULT_RETURN.
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target-delegates.c: Rebuild.
5455 * target.c (update_current_target): Don't inherit or default
5456 to_remove_hw_breakpoint.
5457 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5458 TARGET_DEFAULT_RETURN.
5460 2014-02-19 Tom Tromey <tromey@redhat.com>
5462 * target-delegates.c: Rebuild.
5463 * target.c (update_current_target): Don't inherit or default
5464 to_insert_hw_breakpoint.
5465 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5466 TARGET_DEFAULT_RETURN.
5468 2014-02-19 Tom Tromey <tromey@redhat.com>
5470 * target-delegates.c: Rebuild.
5471 * target.c (update_current_target): Don't inherit or default
5472 to_can_use_hw_breakpoint.
5473 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5474 TARGET_DEFAULT_RETURN.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target-delegates.c: Rebuild.
5479 * target.c (update_current_target): Don't inherit or default
5481 * target.h (struct target_ops) <to_files_info>: Use
5482 TARGET_DEFAULT_IGNORE.
5484 2014-02-19 Tom Tromey <tromey@redhat.com>
5486 * target-delegates.c: Rebuild.
5487 * target.c (update_current_target): Don't inherit or default
5489 * target.h (struct target_ops) <to_store>: Use
5490 TARGET_DEFAULT_NORETURN.
5492 2014-02-19 Tom Tromey <tromey@redhat.com>
5494 * target-delegates.c: Rebuild.
5495 * target.c (update_current_target): Don't inherit or default
5497 * target.h (struct target_ops) <to_post_attach>: Use
5498 TARGET_DEFAULT_IGNORE.
5500 2014-02-19 Tom Tromey <tromey@redhat.com>
5502 * target-delegates.c: Rebuild.
5503 * target.c (update_current_target): Don't inherit or default
5505 (default_rcmd): New function.
5506 (do_monitor_command): Unconditionally delegate.
5507 * target.h (struct target_ops) <to_rmcd>: Use
5508 TARGET_DEFAULT_FUNC.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target-delegates.c: Rebuild.
5513 * target.c (init_dummy_target): Don't initialize to_attach.
5514 (target_attach): Unconditionally delegate.
5515 * target.h (struct target_ops) <to_attach>: Use
5516 TARGET_DEFAULT_FUNC.
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target-delegates.c: Rebuild.
5521 * target.c (target_detach): Unconditionally delegate.
5522 (init_dummy_target): Don't initialize to_detach.
5523 * target.h (struct target_ops) <to_detach>: Use
5524 TARGET_DEFAULT_IGNORE.
5526 2014-02-19 Tom Tromey <tromey@redhat.com>
5528 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5530 (target_augmented_libraries_svr4_read): Add argument.
5531 * target.c (update_current_target): Update.
5532 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target.h (struct target_ops) <to_call_history_range>: Add
5539 * target.c (target_call_history_range): Add argument.
5540 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5542 (record_btrace_call_history_from): Update.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * target.h (struct target_ops) <to_call_history_from>: Add
5548 * target.c (target_call_history_from): Add argument.
5549 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5552 2014-02-19 Tom Tromey <tromey@redhat.com>
5554 * target.h (struct target_ops) <to_call_history>: Add argument.
5555 * target.c (target_call_history): Add argument.
5556 * record-btrace.c (record_btrace_call_history): Add 'self'
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target.h (struct target_ops) <to_insn_history_range>: Add
5563 * target.c (target_insn_history_range): Add argument.
5564 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5566 (record_btrace_insn_history_from): Update.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target.h (struct target_ops) <to_insn_history_from>: Add
5572 * target.c (target_insn_history_from): Add argument.
5573 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5576 2014-02-19 Tom Tromey <tromey@redhat.com>
5578 * target.h (struct target_ops) <to_insn_history>: Add argument.
5579 * target.c (target_insn_history): Add argument.
5580 * record-btrace.c (record_btrace_insn_history): Add 'self'
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target.h (struct target_ops) <to_goto_record>: Add argument.
5586 * target.c (target_goto_record): Add argument.
5587 * record-full.c (record_full_goto): Add 'self' argument.
5588 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5592 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5593 * target.c (target_goto_record_end): Add argument.
5594 * record-full.c (record_full_goto_end): Add 'self' argument.
5595 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_goto_record_begin>: Add
5601 * target.c (target_goto_record_begin): Add argument.
5602 * record-full.c (record_full_goto_begin): Add 'self' argument.
5603 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_record_is_replaying>: Add
5610 * target.c (target_record_is_replaying): Add argument.
5611 * record-full.c (record_full_is_replaying): Add 'self' argument.
5612 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5614 (record_btrace_xfer_partial, record_btrace_store_registers)
5615 (record_btrace_prepare_to_store, record_btrace_resume)
5616 (record_btrace_wait, record_btrace_decr_pc_after_break)
5617 (record_btrace_find_new_threads, record_btrace_thread_alive):
5620 2014-02-19 Tom Tromey <tromey@redhat.com>
5622 * target.h (struct target_ops) <to_delete_record>: Add argument.
5623 * target.c (target_delete_record): Add argument.
5624 * record-full.c (record_full_delete): Add 'self' argument.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * target.h (struct target_ops) <to_save_record>: Add argument.
5629 * target.c (target_save_record): Add argument.
5630 * record-full.c (record_full_save): Add 'self' argument.
5631 (record_full_save): Add 'self' argument.
5633 2014-02-19 Tom Tromey <tromey@redhat.com>
5635 * target.h (struct target_ops) <to_info_record>: Add argument.
5636 * target.c (target_info_record): Add argument.
5637 * record.c (info_record_command): Add argument.
5638 * record-full.c (record_full_info): Add 'self' argument.
5639 * record-btrace.c (record_btrace_info): Add 'self' argument.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5644 * target.c (target_stop_recording): Add argument.
5645 * record.c (record_stop): Add argument.
5646 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5652 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5653 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5655 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5656 (_initialize_amd64_linux_nat): Use it.
5657 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5658 (_initialize_i386_linux_nat): Use it.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5663 * target.c (target_teardown_btrace): Add argument.
5664 * remote.c (remote_teardown_btrace): Add 'self' argument.
5665 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5667 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5673 * target.c (target_disable_btrace): Add argument.
5674 * remote.c (remote_disable_btrace): Add 'self' argument.
5675 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5677 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5680 2014-02-19 Tom Tromey <tromey@redhat.com>
5682 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5683 * target.c (target_enable_btrace): Add argument.
5684 * remote.c (remote_enable_btrace): Add 'self' argument.
5685 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5687 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5690 2014-02-19 Tom Tromey <tromey@redhat.com>
5692 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5693 (target_can_use_agent): Add argument.
5694 * target.c (update_current_target): Update.
5695 * remote.c (remote_can_use_agent): Add 'self' argument.
5696 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5698 2014-02-19 Tom Tromey <tromey@redhat.com>
5700 * target.h (struct target_ops) <to_use_agent>: Add argument.
5701 (target_use_agent): Add argument.
5702 * target.c (update_current_target): Update.
5703 * remote.c (remote_use_agent): Add 'self' argument.
5704 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5706 2014-02-19 Tom Tromey <tromey@redhat.com>
5708 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5709 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5710 (target_traceframe_info): Add argument.
5711 * target.c (update_current_target): Update.
5712 * remote.c (remote_traceframe_info): Add 'self' argument.
5713 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5717 * target.h (target_static_tracepoint_markers_by_strid): Add
5719 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5721 * target.c (update_current_target): Update.
5722 * remote.c (struct target_ops)
5723 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5724 * linux-nat.c (struct target_ops)
5725 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5727 2014-02-19 Tom Tromey <tromey@redhat.com>
5729 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5731 (target_static_tracepoint_marker_at): Add argument.
5732 * target.c (update_current_target): Update.
5733 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5739 (target_set_permissions): Add argument.
5740 * target.c (update_current_target): Update.
5741 * remote.c (remote_set_permissions): Add 'self' argument.
5742 (remote_start_remote): Update.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5747 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5748 (target_get_tib_address): Add argument.
5749 * target.c (update_current_target): Update.
5750 * remote.c (remote_get_tib_address): Add 'self' argument.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5755 (target_set_trace_notes): Add argument.
5756 * target.c (update_current_target): Update.
5757 * remote.c (remote_set_trace_notes): Add 'self' argument.
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5763 (target_set_trace_buffer_size): Add argument.
5764 * target.c (update_current_target): Update.
5765 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5771 (target_set_circular_trace_buffer): Add argument.
5772 * target.c (update_current_target): Update.
5773 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5780 (target_set_disconnected_tracing): Add argument.
5781 * target.c (update_current_target): Update.
5782 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.h (struct target_ops)
5787 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5788 (target_get_min_fast_tracepoint_insn_len): Add argument.
5789 * target.c (update_current_target): Update.
5790 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5797 (target_get_raw_trace_data): Add argument.
5798 * target.c (update_current_target): Update.
5799 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5805 (target_upload_trace_state_variables): Add argument.
5806 * target.c (update_current_target): Update.
5807 * remote.c (remote_upload_trace_state_variables): Add 'self'
5809 (remote_start_remote): Update.
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5813 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5815 (target_upload_tracepoints): Add argument.
5816 * target.c (update_current_target): Update.
5817 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5818 (remote_start_remote): Update.
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5823 (target_save_trace_data): Add argument.
5824 * target.c (update_current_target): Update.
5825 * remote.c (remote_save_trace_data): Add 'self' argument.
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5829 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5831 * target.h (struct target_ops)
5832 <to_get_trace_state_variable_value>: Add argument.
5833 (target_get_trace_state_variable_value): Add argument.
5834 * target.c (update_current_target): Update.
5835 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5837 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5842 * target.h (struct target_ops) <to_trace_find>: Add argument.
5843 (target_trace_find): Add argument.
5844 * target.c (update_current_target): Update.
5845 * remote.c (remote_trace_find): Add 'self' argument.
5846 * ctf.c (ctf_trace_find): Add 'self' argument.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5851 (target_trace_stop): Add argument.
5852 * target.c (update_current_target): Update.
5853 * remote.c (remote_trace_stop): Add 'self' argument.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5858 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5860 (target_get_tracepoint_status): Add argument.
5861 * target.c (update_current_target): Update.
5862 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5864 2014-02-19 Tom Tromey <tromey@redhat.com>
5866 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5867 * target.h (struct target_ops) <to_get_trace_status>: Add
5869 (target_get_trace_status): Add argument.
5870 * target.c (update_current_target): Update.
5871 * remote.c (remote_get_trace_status): Add 'self' argument.
5872 (remote_start_remote, remote_can_download_tracepoint): Update.
5873 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_trace_start>: Add argument.
5878 (target_trace_start): Add argument.
5879 * target.c (update_current_target): Update.
5880 * remote.c (remote_trace_start): Add 'self' argument.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5886 (target_trace_set_readonly_regions): Add argument.
5887 * target.c (update_current_target): Update.
5888 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5891 2014-02-19 Tom Tromey <tromey@redhat.com>
5893 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5895 (target_disable_tracepoint): Add argument.
5896 * target.c (update_current_target): Update.
5897 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5899 2014-02-19 Tom Tromey <tromey@redhat.com>
5901 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5903 (target_enable_tracepoint): Add argument.
5904 * target.c (update_current_target): Update.
5905 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target.h (struct target_ops) <to_download_trace_state_variable>:
5911 (target_download_trace_state_variable): Add argument.
5912 * target.c (update_current_target): Update.
5913 * remote.c (remote_download_trace_state_variable): Add 'self'
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5920 (target_can_download_tracepoint): Add argument.
5921 * target.c (update_current_target): Update.
5922 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target.h (struct target_ops) <to_download_tracepoint>: Add
5928 (target_download_tracepoint): Add argument.
5929 * target.c (update_current_target): Update.
5930 * remote.c (remote_download_tracepoint): Add 'self' argument.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * target.h (struct target_ops) <to_trace_init>: Add argument.
5935 (target_trace_init): Add argument.
5936 * target.c (update_current_target): Update.
5937 * remote.c (remote_trace_init): Add 'self' argument.
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5942 * target.c (target_fileio_readlink): Add argument.
5943 * remote.c (remote_hostio_readlink): Add 'self' argument.
5944 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5946 2014-02-19 Tom Tromey <tromey@redhat.com>
5948 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5949 * target.c (target_fileio_unlink): Add argument.
5950 * remote.c (remote_hostio_unlink): Add 'self' argument.
5951 (remote_file_delete): Update.
5952 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5956 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5957 * target.c (target_fileio_close): Add argument.
5958 * remote.c (remote_hostio_close): Add 'self' argument.
5959 (remote_hostio_close_cleanup): Update.
5960 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5962 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5967 * target.c (target_fileio_pread): Add argument.
5968 * remote.c (remote_hostio_pread): Add 'self' argument.
5969 (remote_bfd_iovec_pread, remote_file_get): Update.
5970 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5975 * target.c (target_fileio_pwrite): Add argument.
5976 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5977 (remote_file_put): Update.
5978 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5983 * target.c (target_fileio_open): Add argument.
5984 * remote.c (remote_hostio_open): Add 'self' argument.
5985 (remote_bfd_iovec_open): Add 'self' argument.
5986 (remote_file_put): Add 'self' argument.
5987 (remote_file_get): Add 'self' argument.
5988 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5994 (target_can_run_breakpoint_commands): Add argument.
5995 * target.c (update_current_target): Update.
5996 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5998 (remote_insert_breakpoint): Add 'self' argument.
5999 (remote_insert_hw_breakpoint): Add 'self' argument.
6000 (remote_can_run_breakpoint_commands): Add 'self' argument.
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6004 * target.h (struct target_ops)
6005 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6006 (target_supports_evaluation_of_breakpoint_conditions): Add
6008 * target.c (update_current_target): Update.
6009 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6011 (remote_insert_breakpoint): Add 'self' argument.
6012 (remote_insert_hw_breakpoint): Add 'self' argument.
6013 (remote_supports_cond_breakpoints): Add 'self' argument.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6019 (target_supports_string_tracing): Add argument.
6020 * target.c (update_current_target): Update.
6021 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target.h (struct target_ops)
6026 <to_supports_disable_randomization>: Add argument.
6027 * target.c (find_default_supports_disable_randomization): Add
6029 (target_supports_disable_randomization): Add argument.
6030 (find_default_supports_disable_randomization): Add 'self'
6032 * remote.c (extended_remote_supports_disable_randomization): Add
6034 (remote_supports_disable_randomization): Add 'self' argument.
6035 (extended_remote_create_inferior): Update.
6036 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target.h (struct target_ops)
6042 <to_supports_enable_disable_tracepoint>: Add argument.
6043 (target_supports_enable_disable_tracepoint): Add argument.
6044 * target.c (update_current_target): Update.
6045 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target.h (struct target_ops) <to_supports_multi_process>: Add
6052 (target_supports_multi_process): Add argument.
6053 * target.c (update_current_target): Update.
6054 * remote.c (remote_supports_multi_process): Add 'self' argument.
6055 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6057 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.h (struct target_ops) <to_execution_direction>: Add
6064 (target_execution_direction): Add argument.
6065 * target.c (default_execution_direction): Add 'self' argument.
6066 * record-full.c (record_full_execution_direction): Add 'self'
6069 2014-02-19 Tom Tromey <tromey@redhat.com>
6071 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6073 (target_can_execute_reverse): Add argument.
6074 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6075 * record-full.c (record_full_can_execute_reverse): Add 'self'
6077 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6083 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6085 (target_get_ada_task_ptid): Add argument.
6086 * target.c (update_current_target): Update.
6087 (default_get_ada_task_ptid): Add 'self' argument.
6088 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6089 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6090 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6092 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6094 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6096 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6098 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6099 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6105 (target_goto_bookmark): Add argument.
6106 * target.c (dummy_goto_bookmark): Add 'self' argument.
6107 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6112 (target_get_bookmark): Add argument.
6113 * target.c (dummy_get_bookmark): Add 'self' argument.
6114 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6120 (target_make_corefile_notes): Add argument.
6121 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6122 * procfs.c (procfs_make_note_section): Add 'self' argument.
6123 (procfs_make_note_section): Add 'self' argument.
6124 (procfs_make_note_section): Add 'self' argument.
6125 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6127 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6128 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6129 * exec.c (exec_make_note_section): Add 'self' argument.
6130 (exec_make_note_section): Add 'self' argument.
6132 2014-02-19 Tom Tromey <tromey@redhat.com>
6134 * target.h (struct target_ops) <to_find_memory_regions>: Add
6136 (target_find_memory_regions): Add argument.
6137 * target.c (dummy_find_memory_regions): Add 'self' argument.
6138 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6139 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6140 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6141 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6142 * exec. (exec_do_find_memory_regions): New global.
6143 (exec_set_find_memory_regions): Rewrite.
6144 (exec_find_memory_regions): New function.
6145 (init_exec_ops): Use exec_find_memory_regions.
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target.h (struct target_ops) <to_supports_non_stop>: Add
6151 * target.c (find_default_supports_non_stop): Add argument.
6152 (target_supports_non_stop): Add argument.
6153 (find_default_supports_non_stop): Add 'self' argument.
6154 * remote.c (remote_supports_non_stop): Add 'self' argument.
6155 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target.h (struct target_ops) <to_log_command>: Add argument.
6160 (target_log_command): Add argument.
6161 * serial.h (serial_log_command): Add 'self' argument.
6162 * serial.c (serial_log_command): Add 'self' argument.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6167 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6169 (target_pid_to_exec_file): Add argument.
6170 * target.c (debug_to_pid_to_exec_file): Add argument.
6171 (update_current_target): Update.
6172 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6173 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6174 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6175 (linux_handle_extended_wait): Update.
6176 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6177 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6178 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6179 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * target.h (struct target_ops) <to_rcmd>: Add argument.
6184 (target_rcmd): Add argument.
6185 * target.c (debug_to_rcmd): Add argument.
6186 (update_current_target, do_monitor_command): Update.
6187 * remote.c (remote_rcmd): Add 'self' argument.
6188 * monitor.c (monitor_rcmd): Add 'self' argument.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * windows-nat.c (windows_stop): Add 'self' argument.
6193 * target.h (struct target_ops) <to_stop>: Add argument.
6194 * target.c (target_stop): Add argument.
6195 (debug_to_stop): Add argument.
6196 (update_current_target): Update.
6197 * remote.c (remote_stop): Add 'self' argument.
6198 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6199 (gdbsim_cntrl_c): Update.
6200 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6201 * procfs.c (procfs_stop): Add 'self' argument.
6202 * nto-procfs.c (procfs_stop): Add 'self' argument.
6203 * monitor.c (monitor_stop): Add 'self' argument.
6204 (monitor_open): Update.
6205 * linux-nat.c (linux_nat_stop): Add argument.
6206 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6207 * gnu-nat.c (gnu_stop): Add 'self' argument.
6208 * darwin-nat.c (darwin_stop): Add 'self' argument.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target.h (struct target_ops) <to_thread_name>: Add argument.
6213 * target.c (target_thread_name): Add argument.
6214 (update_current_target): Update.
6215 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_extra_thread_info>: Add
6221 (target_extra_thread_info): Add argument.
6222 * target.c (update_current_target): Update.
6223 * remote.c (remote_threads_extra_info): Add 'self' argument.
6224 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6226 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6227 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6228 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6230 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6232 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6234 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.h (struct target_ops) <to_program_signals>: Add argument.
6240 * target.c (target_program_signals): Add argument.
6241 * remote.c (remote_program_signals): Add 'self' argument.
6243 2014-02-19 Tom Tromey <tromey@redhat.com>
6245 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6246 * target.c (target_pass_signals): Add argument.
6247 * remote.c (remote_pass_signals): Add 'self' argument.
6248 (remote_start_remote): Update.
6249 * procfs.c (procfs_pass_signals): Add 'self' argument.
6250 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6251 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6252 (linux_nat_create_inferior, linux_nat_attach): Update.
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * windows-nat.c (windows_can_run): Add 'self' argument.
6257 * target.h (struct target_ops) <to_can_run>: Add argument.
6258 (target_can_run): Add argument.
6259 * target.c (debug_to_can_run): Add argument.
6260 (update_current_target): Update.
6261 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6262 * inf-child.c (inf_child_can_run): Add 'self' argument.
6263 * go32-nat.c (go32_can_run): Add 'self' argument.
6265 2014-02-19 Tom Tromey <tromey@redhat.com>
6267 * target.h (struct target_ops) <to_has_exited>: Add argument.
6268 (target_has_exited): Add argument.
6269 * target.c (debug_to_has_exited): Add argument.
6270 (update_current_target): Update.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6276 (target_set_syscall_catchpoint): Add argument.
6277 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6279 * target.c (update_current_target): Update.
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6285 (target_remove_exec_catchpoint): Add argument.
6286 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6287 (update_current_target): Update.
6288 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6295 (target_insert_exec_catchpoint): Add argument.
6296 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6297 (update_current_target): Update.
6298 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6305 (target_remove_vfork_catchpoint): Add argument.
6306 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6307 (update_current_target): Update.
6308 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6313 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6315 (target_insert_vfork_catchpoint): Add argument.
6316 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6317 (update_current_target): Update.
6318 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6325 (target_remove_fork_catchpoint): Add argument.
6326 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6327 (update_current_target): Update.
6328 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6335 (target_insert_fork_catchpoint): Add argument.
6336 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6337 (update_current_target): Update.
6338 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6341 2014-02-19 Tom Tromey <tromey@redhat.com>
6343 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6345 (target_post_startup_inferior): Add argument.
6346 * target.c (debug_to_post_startup_inferior): Add argument.
6347 (update_current_target): Update.
6348 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6350 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6352 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6354 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6356 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6358 (super_post_startup_inferior): Likewise.
6359 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6361 (super_post_startup_inferior): Likewise.
6362 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6363 Add 'self' argument.
6364 (super_post_startup_inferior): Likewise.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target.h (struct target_ops) <to_load>: Add argument.
6369 * target.c (target_load): Add argument.
6370 (debug_to_load): Add argument.
6371 (update_current_target): Update.
6372 * remote.c (remote_load): Add 'self' argument.
6373 * remote-sim.c (gdbsim_load): Add 'self' argument.
6374 * remote-mips.c (mips_load): Add 'self' argument.
6375 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6376 * monitor.c (monitor_load): Add 'self' argument.
6377 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6382 (target_terminal_info): Add argument.
6383 * target.c (debug_to_terminal_info): Add argument.
6384 (default_terminal_info): Likewise.
6385 * inflow.c (child_terminal_info): Add 'self' argument.
6386 * inferior.h (child_terminal_info): Add 'self' argument.
6387 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6393 (target_terminal_save_ours): Add argument.
6394 * target.c (debug_to_terminal_save_ours): Add argument.
6395 (update_current_target): Update.
6396 * inflow.c (terminal_save_ours): Add 'self' argument.
6397 * inferior.h (terminal_save_ours): Add 'self' argument.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6402 (target_terminal_ours): Add argument.
6403 * target.c (debug_to_terminal_ours): Add argument.
6404 (update_current_target): Update.
6405 * remote.c (remote_terminal_ours): Add 'self' argument.
6406 (remote_close): Update.
6407 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6408 * inflow.c (terminal_ours): Add 'self' argument.
6409 * inferior.h (terminal_ours): Add 'self' argument.
6410 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6412 2014-02-19 Pedro Alves <palves@redhat.com>
6413 Tom Tromey <tromey@redhat.com>
6415 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6417 (target_terminal_ours_for_output): Add argument.
6418 * target.c (debug_to_terminal_ours_for_output): Add argument.
6419 (update_current_target): Update.
6420 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6421 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6422 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target.h (struct target_ops) <to_terminal_inferior>: Add
6428 * target.c (target_terminal_inferior): Add argument.
6429 (update_current_target): Update.
6430 * remote.c (remote_terminal_inferior): Add 'self' argument.
6431 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6432 * inflow.c (terminal_inferior): Add 'self' argument.
6433 * inferior.h (terminal_inferior): Add 'self' argument.
6434 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6435 (go32_terminal_inferior): Add 'self' argument.
6437 2014-02-19 Tom Tromey <tromey@redhat.com>
6439 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6440 (target_terminal_init): Add argument.
6441 * target.c (debug_to_terminal_init): Add argument.
6442 (update_current_target): Update.
6443 * inflow.c (terminal_init_inferior): Add 'self' argument.
6444 * inferior.h (terminal_init_inferior): Add 'self' argument.
6445 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6446 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target.h (struct target_ops)
6451 <to_can_accel_watchpoint_condition>: Add argument.
6452 (target_can_accel_watchpoint_condition): Add argument.
6453 * target.c (debug_to_can_accel_watchpoint_condition): Add
6455 (update_current_target): Update.
6456 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6463 (target_region_ok_for_hw_watchpoint): Add argument.
6464 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6465 (default_region_ok_for_hw_watchpoint): Add argument.
6466 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6467 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6469 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6471 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6473 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6475 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6477 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6479 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6480 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6482 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6483 Add 'self' argument.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6489 (target_insert_watchpoint): Add argument.
6490 * target.c (debug_to_insert_watchpoint): Add argument.
6491 (update_current_target): Update.
6492 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6493 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6494 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6495 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6496 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6497 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6499 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6500 (procfs_insert_hw_watchpoint): Add 'self' argument.
6501 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6503 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6505 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6507 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6508 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6510 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6513 2014-02-19 Tom Tromey <tromey@redhat.com>
6515 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6517 (target_remove_watchpoint): Add argument.
6518 * target.c (debug_to_remove_watchpoint): Add argument.
6519 (update_current_target): Update.
6520 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6521 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6522 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6523 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6524 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6525 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6527 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6528 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6530 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6532 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6534 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6535 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6537 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6544 (target_remove_hw_breakpoint): Add argument.
6545 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6546 (update_current_target): Update.
6547 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6548 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6550 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6551 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6553 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6560 (target_insert_hw_breakpoint): Add argument.
6561 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6562 (update_current_target): Update.
6563 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6564 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6566 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6567 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6568 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6570 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6577 (target_can_use_hardware_watchpoint): Add argument.
6578 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6579 (update_current_target): Update.
6580 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6582 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6584 * remote.c (remote_check_watch_resources): Add 'self' argument.
6585 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6586 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6588 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6589 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6591 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6593 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6595 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6597 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6599 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6601 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6602 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6604 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target.h (struct target_ops) <to_post_attach>: Add argument.
6610 (target_post_attach): Add argument.
6611 * target.c (debug_to_post_attach): Add argument.
6612 (update_current_target): Update.
6613 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6614 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6615 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6616 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6617 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * windows-nat.c (windows_close): Add 'self' argument.
6622 * tracepoint.c (tfile_close): Add 'self' argument.
6623 * target.h (struct target_ops) <to_close>: Add argument.
6624 * target.c (target_close): Add argument.
6625 (update_current_target): Update.
6626 * remote.c (remote_close): Add 'self' argument.
6627 * remote-sim.c (gdbsim_close): Add 'self' argument.
6628 * remote-mips.c (mips_close): Add 'self' argument.
6629 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6630 * record-full.c (record_full_close): Add 'self' argument.
6631 * record-btrace.c (record_btrace_close): Add 'self' argument.
6632 * monitor.h (monitor_close): Add 'self' argument.
6633 * monitor.c (monitor_close): Add 'self' argument.
6634 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6635 * linux-nat.c (linux_nat_close): Add argument.
6636 * go32-nat.c (go32_close): Add 'self' argument.
6637 * exec.c (exec_close_1): Add 'self' argument.
6638 * ctf.c (ctf_close): Add 'self' argument.
6639 * corelow.c (core_close): Add 'self' argument.
6640 (core_close_cleanup): Update.
6641 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6642 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6644 2014-02-19 Tom Tromey <tromey@redhat.com>
6646 * remote.c (remote_load): New function.
6647 (init_remote_ops): Use it.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6653 * common/linux-btrace.h (linux_supports_btrace): Update.
6654 * remote.c (remote_supports_btrace): Add "self" argument.
6655 * target-delegates.c: Rebuild.
6656 * target.c (target_supports_btrace): Remove.
6657 * target.h (struct target_ops) <to_supports_btrace>: Add
6658 target_ops argument.
6659 (target_supports_btrace): New define.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * record-full.c (record_full_beneath_to_resume_ops)
6664 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6665 (record_full_beneath_to_wait)
6666 (record_full_beneath_to_store_registers_ops)
6667 (record_full_beneath_to_store_registers)
6668 (record_full_beneath_to_xfer_partial_ops)
6669 (record_full_beneath_to_xfer_partial)
6670 (record_full_beneath_to_insert_breakpoint_ops)
6671 (record_full_beneath_to_insert_breakpoint)
6672 (record_full_beneath_to_remove_breakpoint_ops)
6673 (record_full_beneath_to_remove_breakpoint)
6674 (record_full_beneath_to_stopped_by_watchpoint)
6675 (record_full_beneath_to_stopped_data_address)
6676 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6677 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6678 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6679 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6680 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6681 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6682 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6683 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6684 (record_full_resume, record_full_wait_1)
6685 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6686 (record_full_store_registers, record_full_xfer_partial)
6687 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6688 (record_full_async, record_full_core_xfer_partial): Use target
6690 * target-delegates.c: Rebuild.
6691 * target.c (current_xfer_partial): Remove.
6692 (update_current_target): Do not INHERIT or de_fault
6693 to_insert_breakpoint, to_remove_breakpoint,
6694 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6695 to_is_async_p, to_async. Do not set to_xfer_partial field.
6696 (default_xfer_partial): Simplify.
6697 (current_xfer_partial): Remove.
6698 (target_wait, target_resume): Simplify.
6699 (find_default_can_async_p, find_default_is_async_p): Update.
6700 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6701 to_xfer_partial, to_stopped_by_watchpoint,
6702 to_stopped_data_address.
6703 (target_store_registers): Simplify.
6704 (forward_target_remove_breakpoint)
6705 (forward_target_insert_breakpoint): Remove.
6706 (target_remove_breakpoint, target_insert_breakpoint)
6707 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6708 * target.h (struct target_ops) <to_resume, to_wait,
6709 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6710 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6711 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6713 (forward_target_remove_breakpoint)
6714 (forward_target_insert_breakpoint): Remove.
6715 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6717 (record_btrace_insert_breakpoint): Delegate directly.
6719 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: New file.
6723 * target.c: Include target-delegates.c.
6724 (init_dummy_target): Call install_dummy_methods.
6725 (complete_target_initialization): Call install_delegators.
6726 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6727 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6728 * make-target-delegates: New file.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * record.c (find_record_target): Use find_target_at.
6733 * target.c (find_target_at): New function.
6734 * target.h (find_target_at): Declare.
6736 2014-02-19 Tom Tromey <tromey@redhat.com>
6738 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6740 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6742 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6743 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6745 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6747 * linux-nat.c (save_sigtrap): Update.
6748 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6749 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6750 (linux_nat_close): Update.
6751 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6753 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6755 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6756 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6757 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6758 (tmp_to_async): Add 'ops' argument.
6759 (record_full_stopped_by_watchpoint, record_full_async)
6760 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6762 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6763 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6764 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6765 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6766 (remote_is_async_p, remote_async): Add 'ops' argument.
6767 (remote_stopped_data_address): Update.
6768 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6769 * target.c (update_current_target)
6770 (find_default_can_async_p, find_default_is_async_p): Update.
6771 (init_dummy_target): Update.
6772 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6773 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6774 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6775 (target_can_async_p, target_is_async_p, target_async)
6776 (target_stopped_by_watchpoint): Update.
6778 2014-02-19 Yao Qi <yao@codesourcery.com>
6781 * gdbarch.sh: Remove startup_gdbarch.
6782 * gdbarch.c: Regenerated.
6783 * gdbarch.h: Likewise.
6785 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6787 * rl78-tdep.c (rl78_g10_register_name): New function.
6788 (rl78_return_value): Add g10 support.
6789 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6792 2014-02-17 Doug Evans <xdje42@gmail.com>
6794 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6795 (SUBDIR_GUILE_SRCS): Ditto.
6796 (scm-gsmob.o): Ditto.
6798 2014-02-17 Yao Qi <yao@codesourcery.com>
6800 * gnu-nat.c (ILL_RPC): Declare defined function.
6802 2014-02-17 Yao Qi <yao@codesourcery.com>
6804 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6805 mach_msg_type_number_t.
6806 (gnu_write_inferior): Likewise.
6808 2014-02-17 Yao Qi <yao@codesourcery.com>
6810 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6812 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6813 (inf_validate_procs, inf_signal): Likewise.
6814 (S_exception_raise_request): Likewise.
6815 (do_mach_notify_dead_name): Likewise.
6816 (steal_exc_port): Likewise.
6817 (gnu_read_inferior): Change 'copy_count''s type to
6818 mach_msg_type_number_t.
6819 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6822 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6824 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6825 flag. Adjust all users; in particular...
6826 (gnu_wait): ..., don't decrement its value in here...
6827 (gnu_create_inferior): ..., and instead set the flag in here,
6828 around the startup_inferior call, and call that one with
6829 START_INFERIOR_TRAPS_EXPECTED.
6831 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6832 (ILL_RPC): ... new macro.
6833 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6834 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6835 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6836 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6837 functions with ILL_RPC macro.
6838 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6839 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6840 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6841 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6842 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6843 (S_proc_getlogin_reply, S_proc_getsid_reply)
6844 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6845 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6846 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6847 (S_proc_getnports_reply, S_proc_is_important_reply)
6848 (S_proc_get_code_reply): New stub functions, generated with
6851 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6852 collected the type check structures.
6854 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6856 2014-02-14 Doug Evans <dje@google.com>
6858 * target.c (target_write_partial): Fix result type.
6860 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6862 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6863 the proper offsets to access fpregset_t.
6865 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6867 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6868 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6869 * h8300-tdep.c (setmachinelist): Remove global.
6870 * hppa-tdep.c (hppa_sigtramp): Remove global.
6871 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6872 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6873 * ravenscar-thread.c (update_target_observer): Remove global.
6874 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6876 2014-02-12 Tom Tromey <tromey@redhat.com>
6878 * common/rsp-low.c: Update comments.
6879 * common/rsp-low.h: Update comments.
6881 2014-02-12 Tom Tromey <tromey@redhat.com>
6883 * common/rsp-low.c (convert_ascii_to_int): Remove.
6884 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6886 2014-02-12 Tom Tromey <tromey@redhat.com>
6888 * common/rsp-low.h (unhexify): Don't declare.
6889 * common/rsp-low.c (unhexify): Remove.
6891 2014-02-12 Tom Tromey <tromey@redhat.com>
6893 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6894 * common/rsp-low.c (convert_int_to_ascii): Remove.
6896 2014-02-12 Tom Tromey <tromey@redhat.com>
6898 * common/rsp-low.h (hexify): Don't declare.
6899 * common/rsp-low.c (hexify): Remove.
6901 2014-02-12 Tom Tromey <tromey@redhat.com>
6903 * common/rsp-low.c (hexify): Never take strlen of argument.
6905 2014-02-12 Tom Tromey <tromey@redhat.com>
6907 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6908 * remote.c (extended_remote_run, remote_rcmd)
6909 (remote_download_trace_state_variable, remote_save_trace_data)
6910 (remote_set_trace_notes): Update.
6911 * tracepoint.c (encode_source_string, tfile_write_status)
6912 (tfile_write_uploaded_tsv): Update.
6914 2014-02-12 Tom Tromey <tromey@redhat.com>
6916 * tracepoint.c: Include rsp-low.h.
6917 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6918 * remote.c: Include rsp-low.h.
6919 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6920 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6921 (remote_unescape_input): Move to common/rsp-low.c.
6922 * common/rsp-low.h: New file.
6923 * common/rsp-low.c: New file.
6924 * Makefile.in (SFILES): Add common/rsp-low.c.
6925 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6926 (COMMON_OBS): Add rsp-low.o.
6927 (rsp-low.o): New target.
6929 2014-02-12 Tom Tromey <tromey@redhat.com>
6931 * utils.h: Include print-utils.h.
6932 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6933 (int_string, core_addr_to_string, core_addr_to_string_nz)
6934 (hex_string, hex_string_custom): Don't declare.
6935 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6936 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6937 (hex_string_custom, int_string, core_addr_to_string)
6938 (core_addr_to_string_nz, host_address_to_string): Move to
6939 common/print-utils.c.
6940 * common/print-utils.h: New file.
6941 * common/print-utils.c: New file
6942 * Makefile.in (SFILES): Add common/print-utils.c.
6943 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6944 (COMMON_OBS): Add print-utils.o.
6945 (print-utils.o): New target.
6947 2014-02-12 Tom Tromey <tromey@redhat.com>
6949 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6951 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6953 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6955 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6957 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6958 if a PT_IO ptrace request returns sucessfully but indicates that 0
6959 bytes were transferred.
6961 2014-02-12 Pedro Alves <palves@redhat.com>
6962 Kevin Buettner <kevinb@redhat.com>
6964 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6965 TYPE_INSTANCE_FLAG_CODE_SPACE.
6967 2014-02-12 Pedro Alves <palves@redhat.com>
6969 * h8300-tdep.c (pseudo_from_raw_register)
6970 (raw_from_pseudo_register): New functions.
6971 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6974 2014-02-12 Pedro Alves <palves@redhat.com>
6976 * h8300-tdep.c (h8300_register_sim_regno): New function.
6977 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6978 gdbarch_register_sim_regno hook.
6980 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6982 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6984 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6986 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6988 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6990 * obsd-tdep.h (obsd_init_abi): New prototype.
6991 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6992 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6993 (obsd_init_abi): New functions.
6994 * i386obsd-tdep.c: Include "obsd-tdep.h".
6995 (i386obsd_init_abi): Call obsd_init_abi.
6996 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6997 (amd64obsd_init_abi): Call obsd_init_abi.
6998 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6999 obsd-tdep.c to gdb_target_obs.
7001 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7003 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7004 double float arguments to 16-byte in the argument slots.
7006 2014-02-11 Doug Evans <xdje42@gmail.com>
7008 * configure.ac: Don't crash if pkg-config is not found and guile
7009 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7011 * configure: Regenerate.
7013 2014-02-11 Yao Qi <yao@codesourcery.com>
7015 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7016 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7017 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7018 * gnu-nat.c (gnu_xfer_memory): Likewise.
7019 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7020 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7021 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7022 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7024 2014-02-11 Yao Qi <yao@codesourcery.com>
7026 * target.h (enum target_xfer_error): Rename to ...
7027 (enum target_xfer_status): ... it. New. All users updated.
7028 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7030 (TARGET_XFER_STATUS_ERROR_P): New macro.
7031 (target_xfer_error_to_string): Remove declaration.
7032 (target_xfer_status_to_string): Declare.
7033 (target_xfer_partial_ftype): Adjust it.
7034 (struct target_ops) <to_xfer_partial>: Return
7035 target_xfer_status. Add argument xfered_len. Update
7037 * target.c (target_xfer_error_to_string): Rename to ...
7038 (target_xfer_status_to_string): ... it. New. All callers
7040 (target_read_live_memory): Likewise. Call target_xfer_partial
7041 instead of target_read.
7042 (memory_xfer_live_readonly_partial): Return
7043 target_xfer_status. Add argument xfered_len.
7044 (raw_memory_xfer_partial): Likewise.
7045 (memory_xfer_partial_1): Likewise.
7046 (memory_xfer_partial): Likewise.
7047 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7048 properly. Update debug message.
7049 (default_xfer_partial, current_xfer_partial): Likewise.
7050 (target_write_partial): Likewise.
7051 (target_read_partial): Likewise. All callers updated.
7052 (read_whatever_is_readable): Likewise.
7053 (target_write_with_progress): Likewise.
7054 (target_read_alloc_1): Likewise.
7056 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7057 * auxv.c (procfs_xfer_auxv): Likewise.
7058 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7059 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7060 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7061 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7062 * corefile.c (read_memory): Adjust.
7063 * corelow.c (core_xfer_partial): Likewise.
7064 * ctf.c (ctf_xfer_partial): Likewise.
7065 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7067 (darwin_xfer_partial): Likewise.
7068 * exec.c (section_table_xfer_memory_partial): Likewise. All
7070 (exec_xfer_partial): Likewise.
7071 * exec.h (section_table_xfer_memory_partial): Update
7073 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7075 (gnu_xfer_partial): Likewise.
7076 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7077 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7078 (ia64_hpux_xfer_solib_got): Likewise.
7079 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7080 type of 'partial_len' to ULONGEST.
7081 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7082 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7083 (linux_nat_xfer_partial): Likewise.
7084 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7085 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7086 * monitor.c (monitor_xfer_memory): Likewise.
7087 (monitor_xfer_partial): Likewise.
7088 * procfs.c (procfs_xfer_partial): Likewise.
7089 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7090 * record-full.c (record_full_xfer_partial): Likewise.
7091 (record_full_core_xfer_partial): Likewise.
7092 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7093 (gdbsim_xfer_partial): Likewise.
7094 * remote.c (remote_write_bytes_aux): Likewise. All callers
7096 (remote_write_bytes, remote_read_bytes): Likewise. All
7098 (remote_flash_erase): Likewise. All callers updated.
7099 (remote_write_qxfer): Likewise. All callers updated.
7100 (remote_read_qxfer): Likewise. All callers updated.
7101 (remote_xfer_partial): Likewise.
7102 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7103 (rs6000_xfer_shared_libraries): Likewise.
7104 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7105 (sol_thread_xfer_partial): Likewise.
7106 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7107 (sparc_xfer_partial): Likewise.
7108 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7110 (spu_xfer_partial): Likewise.
7111 * spu-multiarch.c (spu_xfer_partial): Likewise.
7112 * tracepoint.c (tfile_xfer_partial): Likewise.
7113 * windows-nat.c (windows_xfer_memory): Likewise.
7114 (windows_xfer_shared_libraries): Likewise.
7115 (windows_xfer_partial): Likewise.
7116 * valprint.c: Replace 'target_xfer_error' with
7117 'target_xfer_status' in comments.
7119 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7121 Checked in by Joel Brobecker <brobecker@adacore.com>.
7122 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7124 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7126 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7127 function parameters.
7129 2014-02-10 Will Newton <will.newton@linaro.org>
7131 * elfread.c (elf_rel_plt_read): Look for a .got section if
7132 looking up .got.plt fails.
7133 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7134 on address passed to elf_gnu_ifunc_record_cache.
7135 (elf_gnu_ifunc_resolve_addr): Likewise.
7136 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7138 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7140 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7141 (X_RETTURN): New macro.
7142 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7144 * sparc64-tdep.c (sparc64_init_abi): Hook
7145 sparc_in_function_epilogue_p.
7147 2014-02-10 Gary Benson <gbenson@redhat.com>
7149 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7150 Rename name_matcher to symbol_matcher.
7152 2014-02-10 Gary Benson <gbenson@redhat.com>
7154 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7155 Use expand_symtabs_file_matcher_ftype and
7156 expand_symtabs_symbol_matcher_ftype.
7158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7160 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7161 (struct ada_symbol_cache): New.
7162 (ada_free_symbol_cache): Forward declare.
7163 (struct ada_pspace_data): New.
7164 (ada_pspace_data_handle): New static global.
7165 (get_ada_pspace_data, ada_pspace_data_cleanup)
7166 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7167 (cache_space, cache): Delete, now folded inside struct
7169 (ada_get_symbol_cache): New function.
7170 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7172 (_initialize_ada_language): Remove initialization of cache_space.
7173 Move call to observer_attach_inferior_exit up, grouping it
7174 with the other observer registrations inside this function.
7175 Rename command to be more general. Add call to
7176 register_program_space_data_with_cleanup.
7178 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7180 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7181 ada_new_objfile_observer.
7182 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7183 (_initialize_tasks): Update uses of ada_new_objfile_observer
7184 and ada_tasks_normal_stop_observer.
7186 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7188 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7189 returned by the 'Length attribute to integer.
7191 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7193 * ada-lang.c (_initialize_ada_language): Initialize
7194 cache_space obstack.
7196 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7198 * ada-lang.c (HASH_SIZE): New macro.
7199 (struct cache_entry): New type.
7200 (cache_space, cache): New static globals.
7201 (ada_clear_symbol_cache, find_entry): New functions.
7202 (lookup_cached_symbol, cache_symbol): Implement.
7203 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7204 (_initialize_ada_language): Attach ada_new_objfile_observer
7205 and ada_free_objfile_observer.
7207 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7209 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7210 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7211 struct block * parameter.
7212 (ada_lookup_symbol_list_worker): Constify local variable "block".
7213 Remove cast which is no longer necessary.
7215 2014-02-10 Doug Evans <xdje42@gmail.com>
7217 Add Guile as an extension language.
7218 * NEWS: Mention Guile scripting.
7219 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7220 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7221 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7222 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7223 (CLIBS): Add GUILE_LIBS.
7224 (install-guile): New rule.
7225 (guile.o): New rule.
7226 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7227 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7228 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7229 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7230 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7231 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7232 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7233 * configure.ac: New option --with-guile.
7234 * configure: Regenerate.
7235 * config.in: Regenerate.
7236 * auto-load.c: Remove #include "python/python.h". Add #include
7237 "gdb/section-scripts.h".
7238 (source_section_scripts): Handle Guile scripts.
7239 (_initialize_auto_load): Add name of Guile objfile script to
7240 scripts-directory help text.
7241 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7242 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7243 (struct breakpoint): New member scm_bp_object.
7244 * defs.h (enum command_control_type): New value guile_control.
7245 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7247 (show_user): Update comment.
7248 (_initialize_cli_cmds): Update help text for "show user". Update help
7249 text for max-user-call-depth.
7250 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7252 (multi_line_command_p): Add guile_control.
7253 (print_command_lines): Handle guile_control.
7254 (execute_control_command, recurse_read_control_structure): Ditto.
7255 (process_next_line): Recognize "guile" commands.
7256 * disasm.c (gdb_disassemble_info): Make non-static.
7257 * disasm.h: #include "dis-asm.h".
7258 (struct gdbarch): Add forward decl.
7259 (gdb_disassemble_info): Declare.
7260 * extension.c: #include "guile/guile.h".
7261 (extension_languages): Add guile.
7262 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7263 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7264 * gdbtypes.c (get_unsigned_type_max): New function.
7265 (get_signed_type_minmax): New function.
7266 * gdbtypes.h (get_unsigned_type_max): Declare.
7267 (get_signed_type_minmax): Declare.
7268 * guile/README: New file.
7269 * guile/guile-internal.h: New file.
7270 * guile/guile.c: New file.
7271 * guile/guile.h: New file.
7272 * guile/scm-arch.c: New file.
7273 * guile/scm-auto-load.c: New file.
7274 * guile/scm-block.c: New file.
7275 * guile/scm-breakpoint.c: New file.
7276 * guile/scm-disasm.c: New file.
7277 * guile/scm-exception.c: New file.
7278 * guile/scm-frame.c: New file.
7279 * guile/scm-gsmob.c: New file.
7280 * guile/scm-iterator.c: New file.
7281 * guile/scm-lazy-string.c: New file.
7282 * guile/scm-math.c: New file.
7283 * guile/scm-objfile.c: New file.
7284 * guile/scm-ports.c: New file.
7285 * guile/scm-pretty-print.c: New file.
7286 * guile/scm-safe-call.c: New file.
7287 * guile/scm-string.c: New file.
7288 * guile/scm-symbol.c: New file.
7289 * guile/scm-symtab.c: New file.
7290 * guile/scm-type.c: New file.
7291 * guile/scm-utils.c: New file.
7292 * guile/scm-value.c: New file.
7293 * guile/lib/gdb.scm: New file.
7294 * guile/lib/gdb/boot.scm: New file.
7295 * guile/lib/gdb/experimental.scm: New file.
7296 * guile/lib/gdb/init.scm: New file.
7297 * guile/lib/gdb/iterator.scm: New file.
7298 * guile/lib/gdb/printing.scm: New file.
7299 * guile/lib/gdb/types.scm: New file.
7300 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7301 (VPATH): Add $(GUILE_SRCDIR).
7302 (GUILE_DIR): New variable.
7303 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7304 (all): Add stamp-guile dependency.
7305 (stamp-guile): New rule.
7306 (clean-guile, install-guile, uninstall-guile): New rules.
7307 (install-only): Add install-guile dependency.
7308 (uninstall): Add uninstall-guile dependency.
7309 (clean): Add clean-guile dependency.
7311 2014-02-09 Doug Evans <xdje42@gmail.com>
7313 Revert this patch (which I approved, mea culpa).
7315 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7317 * Makefile.in (all-lib): Remove.
7318 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7320 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7322 Fix Python stack corruption.
7323 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7326 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7328 * Makefile.in (all-lib): Remove.
7329 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7331 2014-02-07 Doug Evans <dje@google.com>
7333 * extension-priv.h (extension_language_script_ops): Add comment.
7334 (extension_language_ops): Add comment.
7335 (active_ext_lang_state): Fix typo in comment.
7337 2014-02-07 Pedro Alves <palves@redhat.com>
7339 PR breakpoints/16292
7340 * infrun.c (handle_signal_stop) <signal arrives while stepping
7341 over a breakpoint>: Switch back to the stepping thread.
7343 2014-02-07 Yao Qi <yao@codesourcery.com>
7345 * target.c (target_xfer_partial): Return zero if LEN is zero.
7347 2014-02-07 Yao Qi <yao@codesourcery.com>
7349 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7350 (ld_so_xfer_auxv): Likewise.
7351 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7352 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7353 * corelow.c (core_xfer_partial): Likewise.
7354 * ctf.c (ctf_xfer_partial): Likewise.
7355 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7356 (darwin_xfer_partial): Likewise.
7357 * exec.c (exec_xfer_partial): Likewise.
7358 * gnu-nat.c (gnu_xfer_partial): Likewise.
7359 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7360 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7361 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7362 * linux-nat.c (linux_xfer_siginfo): Likewise.
7363 (linux_proc_xfer_spu): Likewise.
7364 * procfs.c (procfs_xfer_partial): Likewise.
7365 * record-full.c (record_full_xfer_partial): Likewise.
7366 (record_full_core_xfer_partial): Likewise.
7367 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7368 * remote.c (remote_write_qxfer): Likewise.
7369 (remote_write_qxfer, remote_read_qxfer): Likewise.
7370 (remote_xfer_partial): Likewise.
7371 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7372 (rs6000_xfer_shared_libraries): Likewise.
7373 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7374 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7375 (spu_xfer_partial): Likewise.
7376 * target.c (memory_xfer_partial_1): Likewise.
7377 * tracepoint.c (tfile_xfer_partial): Likewise.
7378 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7379 (windows_xfer_partial): Likewise.
7381 2014-02-07 Yao Qi <yao@codesourcery.com>
7383 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7385 (core_xfer_shared_libraries_aix): Likewise.
7386 * gdbarch.c, gdbarch.h: Regenerated.
7387 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7388 ULONGEST. Change 'len_avail' type to ULONGEST.
7389 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7390 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7392 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7394 2014-02-07 Yao Qi <yao@codesourcery.com>
7396 * corefile.c (memory_error): Get 'exception' from ERR and pass
7397 'exception' to throw_error.
7399 2014-02-06 Doug Evans <xdje42@gmail.com>
7401 * configure.ac (libpython checking): Remove all but python.o from
7402 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7403 * configure: Regenerate.
7405 * Makefile.in (SFILES): Add extension.c.
7406 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7407 (COMMON_OBS): Add extension.o.
7408 * extension.h: New file.
7409 * extension-priv.h: New file.
7410 * extension.c: New file.
7412 * python/python-internal.h: #include "extension.h".
7413 (gdbpy_auto_load_enabled): Declare.
7414 (gdbpy_apply_val_pretty_printer): Declare.
7415 (gdbpy_apply_frame_filter): Declare.
7416 (gdbpy_preserve_values): Declare.
7417 (gdbpy_breakpoint_cond_says_stop): Declare.
7418 (gdbpy_breakpoint_has_cond): Declare.
7419 (void source_python_script_for_objfile): Delete.
7420 * python/python.c: #include "extension-priv.h".
7421 Delete inclusion of "observer.h".
7422 (extension_language_python): Moved here and renamed from
7423 script_language_python in py-auto-load.c.
7424 Redefined to be of type extension_language_defn.
7425 (python_extension_script_ops): New global.
7426 (python_extension_ops): New global.
7427 (struct python_env): New member previous_active.
7428 (restore_python_env): Call restore_active_ext_lang.
7429 (ensure_python_env): Call set_active_ext_lang.
7430 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7432 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7434 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7436 (gdbpy_eval_from_control_command): Renamed from
7437 eval_python_from_control_command, made static. New arg extlang.
7438 (gdbpy_source_script) Renamed from source_python_script, made static.
7440 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7441 result to int. New arg extlang.
7442 (gdbpy_source_objfile_script): Renamed from
7443 source_python_script_for_objfile, made static. New arg extlang.
7444 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7445 static. New args extlang, extlang_printers. Change result type to
7447 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7448 static. New arg extlang. Rename arg printers to extlang_printers
7449 and change type to ext_lang_type_printers *.
7450 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7451 static. Replace argument arg with extlang, extlang_printers.
7452 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7453 (!HAVE_PYTHON, source_python_script): Delete.
7454 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7455 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7456 (!HAVE_PYTHON, start_type_printers): Delete.
7457 (!HAVE_PYTHON, apply_type_printers): Delete.
7458 (!HAVE_PYTHON, free_type_printers): Delete.
7459 (_initialize_python): Delete call to observer_attach_before_prompt.
7460 (finalize_python): Set/restore active extension language.
7461 (gdbpy_finish_initialization) Renamed from
7462 finish_python_initialization, made static. New arg extlang.
7463 (gdbpy_initialized): New function.
7464 * python/python.h: #include "extension.h". Delete #include
7465 "value.h", "mi/mi-cmds.h".
7466 (extension_language_python): Declare.
7467 (GDBPY_AUTO_FILE_NAME): Delete.
7468 (enum py_bt_status): Moved to extension.h and renamed to
7470 (enum frame_filter_flags): Moved to extension.h.
7471 (enum py_frame_args): Moved to extension.h and renamed to
7472 ext_lang_frame_args.
7473 (finish_python_initialization): Delete.
7474 (eval_python_from_control_command): Delete.
7475 (source_python_script): Delete.
7476 (apply_val_pretty_printer): Delete.
7477 (apply_frame_filter): Delete.
7478 (preserve_python_values): Delete.
7479 (gdbpy_script_language_defn): Delete.
7480 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7481 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7483 * auto-load.c: #include "extension.h".
7484 (GDB_AUTO_FILE_NAME): Delete.
7485 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7486 (script_language_gdb): Delete, moved to extension.c and renamed to
7487 extension_language_gdb.
7488 (source_gdb_script_for_objfile): Delete.
7489 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7490 (loaded_script): Change type of language member to
7491 struct extension_language_defn *.
7492 (init_loaded_scripts_info): Initialize
7493 unsupported_script_warning_printed.
7494 (maybe_add_script): Make static. Change type of language arg to
7495 struct extension_language_defn *.
7496 (clear_section_scripts): Reset unsupported_script_warning_printed.
7497 (auto_load_objfile_script_1): Rewrite to use extension language API.
7498 (auto_load_objfile_script): Make public. Remove support-compiled-in
7499 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7500 (source_section_scripts): Rewrite to use extension language API.
7501 (load_auto_scripts_for_objfile): Rewrite to use
7502 auto_load_scripts_for_objfile.
7503 (collect_matching_scripts_data): Change type of language member to
7504 struct extension_language_defn *.
7505 (auto_load_info_scripts): Change type of language arg to
7506 struct extension_language_defn *.
7507 (unsupported_script_warning_print): New function.
7508 (script_not_found_warning_print): Make static.
7509 (_initialize_auto_load): Rewrite construction of scripts-directory
7511 * auto-load.h (struct objfile): Add forward decl.
7512 (struct script_language): Delete.
7513 (struct auto_load_pspace_info): Add forward decl.
7514 (struct extension_language_defn): Add forward decl.
7515 (maybe_add_script): Delete.
7516 (auto_load_objfile_script): Declare.
7517 (script_not_found_warning_print): Delete.
7518 (auto_load_info_scripts): Update prototype.
7519 (auto_load_gdb_scripts_enabled): Declare.
7520 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7521 auto_load_python_scripts_enabled and made public.
7522 (script_language_python): Delete, moved to python.c.
7523 (gdbpy_script_language_defn): Delete.
7524 (info_auto_load_python_scripts): Update to use
7525 extension_language_python.
7527 * breakpoint.c (condition_command): Replace call to
7528 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7529 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7530 with call to breakpoint_ext_lang_cond_says_stop.
7531 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7532 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7533 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7534 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7536 (local_setattro): Print name of extension language with existing
7539 * valprint.c (val_print, value_print): Update to call
7540 apply_ext_lang_val_pretty_printer.
7541 * cp-valprint.c (cp_print_value): Update call to
7542 apply_ext_lang_val_pretty_printer.
7543 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7544 (gdbpy_apply_val_pretty_printer): Renamed from
7545 apply_val_pretty_printer. New arg extlang.
7546 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7548 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7549 extension language API.
7550 * cli/cli-script.c (execute_control_command): Update to call
7551 eval_ext_lang_from_control_command.
7553 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7554 enum ext_lang_bt_status values. Update call to
7555 apply_ext_lang_frame_filter.
7556 (mi_cmd_stack_list_locals): Ditto.
7557 (mi_cmd_stack_list_args): Ditto.
7558 (mi_cmd_stack_list_variables): Ditto.
7559 * mi/mi-main.c: Delete #include "python/python-internal.h".
7560 Add #include "extension.h".
7561 (mi_cmd_list_features): Replace reference to python internal variable
7562 gdb_python_initialized with call to ext_lang_initialized_p.
7564 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7565 Update to use enum ext_lang_frame_args. Update to call
7566 apply_ext_lang_frame_filter.
7567 * python/py-framefilter.c (extract_sym): Update to use enum
7569 (extract_value, py_print_type, py_print_value): Ditto.
7570 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7571 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7572 (py_print_frame): Ditto.
7573 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7574 New arg extlang. Update to use enum ext_lang_bt_status.
7576 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7577 finish_python_initialization. Replace with call to
7578 finish_ext_lang_initialization.
7580 * typeprint.c (do_free_global_table): Update to call
7581 free_ext_lang_type_printers.
7582 (create_global_typedef_table): Update to call
7583 start_ext_lang_type_printers.
7584 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7585 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7586 (type_print_options): Change type of global_printers from "void *"
7587 to "struct ext_lang_type_printers *".
7589 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7590 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7591 (gdbpy_preserve_values): Renamed from preserve_python_values.
7593 (!HAVE_PYTHON, preserve_python_values): Delete.
7595 * utils.c (quit_flag): Delete, moved to extension.c.
7596 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7599 * eval.c: Delete #include "python/python.h".
7600 * main.c: Delete #include "python/python.h".
7602 * defs.h: Update comment.
7604 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7608 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7610 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7613 2014-02-05 Yao Qi <yao@codesourcery.com>
7615 * remote.c (remote_pass_signals): Remove local 'buf' and use
7617 (remote_program_signals): Likewise.
7619 2014-02-05 Yao Qi <yao@codesourcery.com>
7621 * ctf.c: Include "inferior.h" and "gdbthread.h".
7622 (CTF_PID): A new macro.
7623 (ctf_open): Call inferior_appeared and add_thread_silent.
7624 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7625 (ctf_thread_alive): New function.
7626 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7628 2014-02-05 Yao Qi <yao@codesourcery.com>
7632 2013-05-24 Yao Qi <yao@codesourcery.com>
7634 * tracepoint.c (TFILE_PID): Remove.
7635 (tfile_open): Don't add thread and inferior.
7636 (tfile_close): Don't set 'inferior_ptid'. Don't call
7637 exit_inferior_silent.
7638 (tfile_thread_alive): Remove.
7639 (init_tfile_ops): Don't set field 'to_thread_alive' of
7642 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7644 * remote.c (remote_start_remote): Call remote_check_symbols even
7645 if only symbol-file (not file) has been given.
7647 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7649 * gdbarch.sh (skip_entrypoint): New callback.
7650 * gdbarch.c, gdbarch.h: Regenerate.
7651 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7652 * infrun.c (fill_in_stop_func): Likewise.
7653 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7654 (ppc_elfv2_elf_make_msymbol_special): New function.
7655 (ppc_elfv2_skip_entrypoint): Likewise.
7656 (ppc_linux_init_abi): Install them for ELFv2.
7658 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7660 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7661 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7662 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7663 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7664 structures returned in GPRs.
7666 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7668 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7669 offset to the stack parameter list for the ELFv2 ABI.
7671 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7673 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7674 set_gdbarch_convert_from_func_ptr_addr and
7675 set_gdbarch_elf_make_msymbol_special for ELFv1.
7676 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7677 function descriptors on ELFv1.
7678 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7679 set up r12 at function entry.
7681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7683 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7684 (struct gdbarch_tdep): New member elf_abi.
7686 * rs6000-tdep.c: Include "elf/ppc64.h".
7687 (rs6000_gdbarch_init): Detect ELF ABI version.
7689 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7691 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7692 within a register pair holding a DFP 128-bit value on little-endian.
7693 (ppc64_sysv_abi_return_value_base): Likewise.
7694 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7695 (dfp_pseudo_register_write): Likewise.
7697 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7699 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7700 offset on little-endian when passing _Decimal32.
7701 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7703 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7705 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7706 of the overlapped FP register within the VSX register on little-
7708 (efpr_pseudo_register_write): Likewise.
7710 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7712 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7713 offset on little-endian when passing small structures.
7715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7717 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7718 (struct ppc64_sysv_argpos): New data structure.
7719 (ppc64_sysv_abi_push_float): Remove.
7720 (ppc64_sysv_abi_push_val): New function.
7721 (ppc64_sysv_abi_push_integer): Likewise.
7722 (ppc64_sysv_abi_push_freg): Likewise.
7723 (ppc64_sysv_abi_push_vreg): Likewise.
7724 (ppc64_sysv_abi_push_param): Likewise.
7725 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7726 (ppc64_sysv_abi_return_value_base): New function.
7727 (ppc64_sysv_abi_return_value): Refactor to use it.
7729 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7731 * NEWS: Document new target powerpc64le-*-linux*.
7733 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7735 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7736 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7738 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7739 register set used in ELF core dumps. Add floating-point register set.
7741 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7743 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7744 dwarf2_to_gdb[] table using symbolic constants. Adjust
7745 penultimate entry from number representing the PC register
7746 to symbolic constant representing the MDR register. Add
7747 constant for the PC register to the end of the table.
7749 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7751 * bsd-kvm.c: Include <sys/param.h>
7753 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7755 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7757 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7759 * ada-lang.h (clear_ada_sym_cache): Delete.
7761 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7763 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7765 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7767 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7768 the sigreturn register save area only if the syscall is
7771 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7773 * valops.c (value_slice): Minor reformatting.
7775 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7777 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7779 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7781 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7783 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7784 (ada_ignore_descriptive_types_p): New static global.
7785 (find_parallel_type_by_descriptive_type): Return immediately
7786 if ada_ignore_descriptive_types_p is set.
7787 (_initialize_ada_language): Register new commands "maintenance
7788 set ada", "maintenance show ada", "maintenance set ada
7789 ignore-descriptive-types" and "maintenance show ada
7790 ignore-descriptive-types".
7791 * NEWS: Add entry for new "maint ada set/show
7792 ignore-descriptive-types" commands.
7794 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7796 * record-btrace.c (record_btrace_close): Call btrace_teardown
7799 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7801 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7804 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7806 * ada-typeprint (type_is_full_subrange_of_target_type):
7808 (print_range): Add parameter bounds_prefered_p. If not set,
7809 try printing range types using the name of their base type.
7810 (print_range_type): Add parameter bounds_prefered_p.
7811 Use it in call to print_range.
7812 (print_array_type, ada_print_type): Update calls to print_range
7813 and print_range_type.
7815 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7817 * ada-typeprint.c (print_array_type, print_choices, print_range)
7818 (print_range_bound, print_dynamic_range_bound, print_range_type):
7821 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7823 * ada-typeprint.c (print_range): Add missing empty line
7824 after local declaration.
7826 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7828 * ada-valprint.c (print_optional_low_bound): Get index_type's
7829 target type for as long as it is a TYPE_CODE_RANGE.
7831 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7833 * procfs.c (procfs_make_note_section): Remove assertion and
7836 2014-01-24 Yao Qi <yao@codesourcery.com>
7838 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7839 * corelow.c (get_core_siginfo): Likewise.
7841 2014-01-24 Yao Qi <yao@codesourcery.com>
7843 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7844 ULONGEST. Don't check 'len' is negative.
7845 (remote_write_bytes): Change type of 'len' to ULONGEST.
7847 2014-01-23 Tom Tromey <tromey@redhat.com>
7850 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7851 Handle exception from frame.block.
7852 (FrameVars.fetch_frame_locals): Likewise.
7854 2014-01-23 Tom Tromey <tromey@redhat.com>
7857 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7858 on a NULL pointer. Move "goto error" to correct place.
7860 2014-01-23 Tom Tromey <tromey@redhat.com>
7863 * python/py-framefilter.c (apply_frame_filter): Call
7864 ensure_python_env after computing gdbarch.
7866 2014-01-23 Yao Qi <yao@codesourcery.com>
7868 * target.c (raw_memory_xfer_partial): Change argument type
7869 from void * to gdb_byte *.
7870 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7872 2014-01-22 Doug Evans <dje@google.com>
7874 New gdbserver option --debug-format=timestamp.
7877 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7879 * syscalls/s390x-linux.xml: New file.
7880 * syscalls/s390-linux.xml: New file.
7881 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7882 (XML_SYSCALL_FILENAME_S390X): Likewise.
7883 (op_svc): New enum value for SVC opcode.
7884 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7885 (s390_linux_get_syscall_number): New function.
7886 (s390_gdbarch_init): Register '*get_syscall_number' and the
7887 syscall xml file name.
7888 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7889 "s390-linux.xml" and "s390x-linux.xml".
7890 * NEWS: Announce new feature.
7892 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7894 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7896 2014-01-22 Pedro Alves <palves@redhat.com>
7898 * xtensa-config.c: Include defs.h.
7900 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7902 * common/common-utils.h: Add "ARI:" comment beside __func__
7905 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7907 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7908 documentation a bit.
7910 2014-01-21 Roland McGrath <mcgrathr@google.com>
7912 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7913 * configure: Regenerate.
7914 * aclocal.m4: Regenerate.
7915 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7916 New substituted variables.
7917 (install-strip): New target.
7918 (INSTALL_SCRIPT): New substituted variable.
7919 (FLAGS_TO_PASS): Add it.
7920 (install-only): Use $(INSTALL_SCRIPT) rather than
7921 $(INSTALL_PROGRAM) for gcore.
7923 2014-01-20 Tom Tromey <tromey@redhat.com>
7925 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7928 2014-01-20 Tom Tromey <tromey@redhat.com>
7930 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7931 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7932 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7933 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7934 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7935 (struct cmd_list_element) <flags>: Remove.
7936 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7937 doc_allocated>: New fields.
7938 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7940 * maint.c (maintenance_do_deprecate): Update.
7941 * top.c (execute_command): Update.
7943 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7945 * xtensa-linux-nat.c: Include asm/ptrace.h.
7947 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7949 * Makefile.in (SFILES): Add d-support.c.
7950 (COMMON_OBS): Add d-support.o.
7951 * d-lang.h (d_parse_symbol): Add comment, now defined in
7953 * d-lang.c (parse_call_convention)
7954 (parse_attributes, parse_function_types)
7955 (parse_function_args, parse_type, parse_identifier)
7956 (call_convention_p, d_parse_symbol): Move functions to ...
7957 * d-support.c: ... New file.
7959 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7961 * d-lang.h (d_parse_symbol): Add declaration.
7962 * d-lang.c (extract_identifiers)
7963 (extract_type_info): Remove functions.
7964 (parse_call_convention, parse_attributes)
7965 (parse_function_types, parse_function_args)
7966 (parse_type, parse_identifier, call_convention_p)
7967 (d_parse_symbol): New functions.
7968 (d_demangle): Use d_parse_symbol to demangle D symbols.
7970 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7972 * d-lang.h (struct builtin_d_type): New data type.
7973 (builtin_d_type): Add declaration.
7974 * d-lang.c (d_language_arch_info, build_d_types)
7975 (builtin_d_type): New functions.
7976 (enum d_primitive_types): New data type.
7977 (d_language_defn): Change c_language_arch_info to
7978 d_language_arch_info.
7979 (d_type_data): New static variable.
7980 (_initialize_d_language): Initialize d_type_data.
7982 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7984 * d-lang.h (d_main_name): Add declaration.
7985 * d-lang.c (d_main_name): New function.
7986 * symtab.c (find_main_name): Add call to d_main_name.
7988 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7990 * d-lang.c (d_language_defn): Change macro_expansion_c to
7993 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7995 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7997 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7999 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8000 gdb_exception" declaration.
8001 * remote.c (getpkt_or_notif_sane): Likewise.
8003 2014-01-17 Doug Evans <dje@google.com>
8005 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8006 function, contents of dirnames_to_char_ptr_vec_append moved here.
8007 (delim_string_to_char_ptr_vec): New function.
8008 (dirnames_to_char_ptr_vec_append): Rewrite.
8009 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8011 2014-01-17 Doug Evans <dje@google.com>
8013 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8015 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8016 #include "common-utils.h".
8017 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8018 * common/vec.h (VEC_ASSERT_PASS): Update.
8019 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8020 (MACH_CHECK_ERROR): Update.
8022 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8024 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8026 * gdbarch.h: Regenerate.
8028 2014-01-16 Tom Tromey <tromey@redhat.com>
8030 * value.c (struct value) <regnum>: Move earlier.
8032 2014-01-16 Tom Tromey <tromey@redhat.com>
8034 * remote.c (extended_remote_create_inferior): Rename from
8035 extended_remote_create_inferior_1. Add "ops" argument. Remove
8038 2014-01-16 Pedro Alves <palves@redhat.com>
8040 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8041 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8044 2014-01-16 Doug Evans <dje@google.com>
8046 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8050 * btrace.h (btrace_thread_flag): New.
8051 (struct btrace_thread_info) <flags>: New.
8052 * record-btrace.c (record_btrace_resume_thread)
8053 (record_btrace_find_thread_to_move, btrace_step_no_history)
8054 (btrace_step_stopped, record_btrace_start_replaying)
8055 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8056 (record_btrace_find_resume_thread): New.
8057 (record_btrace_resume, record_btrace_wait): Extend.
8058 (record_btrace_can_execute_reverse): New.
8059 (record_btrace_open): Fail in non-stop mode.
8060 (record_btrace_set_replay): Split into this, ...
8061 (record_btrace_stop_replaying): ... this, ...
8062 (record_btrace_clear_histories): ... and this.
8063 (init_record_btrace_ops): Init to_can_execute_reverse.
8064 * NEWS: Announce it.
8066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8068 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8069 (forward_target_decr_pc_after_break)
8070 (target_decr_pc_after_break): New.
8071 * target.c (forward_target_decr_pc_after_break)
8072 (target_decr_pc_after_break): New.
8073 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8074 instead of gdbarch_decr_pc_after_break.
8075 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8076 instead of gdbarch_decr_pc_after_break.
8077 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8078 instead of gdbarch_decr_pc_after_break.
8079 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8080 instead of gdbarch_decr_pc_after_break.
8081 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8082 instead of gdbarch_decr_pc_after_break.
8083 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8084 instead of gdbarch_decr_pc_after_break.
8086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8088 * btrace.c: Include regcache.h.
8089 (btrace_add_pc): New.
8090 (btrace_enable): Call btrace_add_pc.
8091 (btrace_is_empty): New.
8092 * btrace.h (btrace_is_empty): New.
8093 * record-btrace.c (require_btrace, record_btrace_info): Call
8096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8098 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8099 Support delta reads.
8100 (linux_disable_btrace): Change return type.
8101 * common/linux-btrace.h (linux_read_btrace): Change parameters
8102 and return type to allow error reporting. Update users.
8103 (linux_disable_btrace): Change return type. Update users.
8104 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8106 (btrace_error): New.
8107 (btrace_block) <begin>: Comment on BEGIN == 0.
8108 * btrace.c (btrace_compute_ftrace): Start from the end of
8110 (btrace_stitch_trace, btrace_clear_history): New.
8111 (btrace_fetch): Read delta trace, return if replaying.
8112 (btrace_clear): Move clear history code to btrace_clear_history.
8113 (parse_xml_btrace): Throw an error if parsing failed.
8114 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8115 and return type to allow error reporting.
8116 (target_read_btrace): Change parameters and return type to allow
8118 * target.c (target_read_btrace): Update.
8119 * remote.c (remote_read_btrace): Support delta reads. Pass
8121 * NEWS: Announce it.
8123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8125 * record.h (record_btrace_frame_unwind)
8126 (record_btrace_tailcall_frame_unwind): New declarations.
8127 * dwarf2-frame: Include record.h
8128 (dwarf2_frame_cfa): Throw an error for btrace frames.
8129 * record-btrace.c: Include hashtab.h.
8130 (btrace_get_bfun_name): New.
8131 (btrace_call_history): Call btrace_get_bfun_name.
8132 (struct btrace_frame_cache): New.
8134 (bfcache_hash, bfcache_eq, bfcache_new): New.
8135 (btrace_get_frame_function): New.
8136 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8137 (record_btrace_frame_this_id): Compute own id.
8138 (record_btrace_frame_prev_register): Provide PC, throw_error
8139 for all other registers.
8140 (record_btrace_frame_sniffer): Detect btrace frames.
8141 (record_btrace_tailcall_frame_sniffer): New.
8142 (record_btrace_frame_dealloc_cache): New.
8143 (record_btrace_frame_unwind): Add new functions.
8144 (record_btrace_tailcall_frame_unwind): New.
8145 (_initialize_record_btrace): Allocate cache.
8146 * btrace.c (btrace_clear): Call reinit_frame_cache.
8147 * NEWS: Announce it.
8149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8151 * record-btrace.c (record_btrace_set_replay)
8152 (record_btrace_goto_begin, record_btrace_goto_end)
8153 (record_btrace_goto): New.
8154 (init_record_btrace_ops): Initialize them.
8155 * NEWS: Announce it.
8157 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8159 * record-btrace.c (record_btrace_find_new_threads)
8160 (record_btrace_thread_alive): New.
8161 (init_record_btrace_ops): Initialize to_find_new_threads and
8164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8166 * record-btrace.c (record_btrace_resume): New.
8167 (record_btrace_wait): New.
8168 (init_record_btrace_ops): Initialize to_wait and to_resume.
8170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8172 * record-btrace.c (record_btrace_xfer_partial)
8173 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8174 (record_btrace_allow_memory_access): New.
8175 (init_record_btrace_ops): Initialize new methods.
8176 * target.c (raw_memory_xfer_partial): Bail out if target reports
8177 that this memory is not available.
8179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8181 * target.h (target_ops) <to_insert_breakpoint>
8182 <to_remove_breakpoint>: Add target_ops parameter.
8183 (forward_target_insert_breakpoint): New.
8184 (forward_target_remove_breakpoint): New.
8185 (memory_remove_breakpoint, memory_insert_breakpoint):
8186 Add target_ops parameter.
8187 * target.c (target_insert_breakpoint): Split into this and ...
8188 (forward_target_insert_breakpoint): ... this.
8189 (target_remove_breakpoint): Split into this and ...
8190 (forward_target_remove_breakpoint): ... this.
8191 (debug_to_insert_breakpoint): Add target_ops parameter.
8192 Call forward_target_insert_breakpoint.
8193 (debug_to_remove_breakpoint): Add target_ops parameter.
8194 Call forward_target_remove_breakpoint.
8195 (update_current_target): Do not inherit or default to_insert_breakpoint
8196 and to_remove_breakpoint.
8197 * corelow.c (ignore): Add target_ops parameter.
8198 * exec.c (ignore): Add target_ops parameter.
8199 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8200 Add target_ops parameter.
8201 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8202 Add target_ops parameter.
8203 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8204 Add target_ops parameter.
8205 * record-full.c (record_full_beneath_to_insert_breakpoint)
8206 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8207 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8208 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8209 (record_full_core_remove_breakpoint): Add target_ops parameter.
8211 (record_full_beneath_to_insert_breakpoint_ops)
8212 (record_full_beneath_to_remove_breakpoint_ops)
8213 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8214 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8215 tmp_to_remove_breakpoint_ops,
8216 record_full_beneath_to_insert_breakpoint_ops, and
8217 record_full_beneath_to_remove_breakpoint_ops.
8218 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8219 (m32r_remove_breakpoint): Add target_ops parameter.
8220 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8221 Add target_ops parameter.
8222 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8223 Add target_ops parameter.
8225 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8226 Markus Metzger <markus.t.metzger@intel.com>
8228 * record-btrace.c: Include frame-unwind.h.
8229 (record_btrace_frame_unwind_stop_reason)
8230 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8231 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8233 (init_record_btrace_ops): Install it.
8235 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8237 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8240 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8245 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8247 * frame-unwind.c: Include target.h.
8248 (frame_unwind_try_unwinder): New function with code from ...
8249 (frame_unwind_find_by_frame): ... here. New variable
8250 unwinder_from_target, call also target_get_unwinder)
8251 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8252 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8253 * target.h (struct target_ops): New fields to_get_unwinder and
8254 to_get_tailcall_unwinder.
8255 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8259 * record-btrace.c (record_btrace_fetch_registers)
8260 (record_btrace_store_registers)
8261 (record_btrace_to_prepare_to_store): New.
8262 (init_record_btrace_ops): Add the above.
8264 2014-01-16 Tom Tromey <tromey@redhat.com>
8266 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8267 * target.h (struct target_ops) <to_prepare_to_store>: Add
8269 (target_prepare_to_store): Add argument.
8270 * target.c (debug_to_prepare_to_store): Add argument.
8271 (update_current_target): Update.
8272 * remote.c (remote_prepare_to_store): Add 'self' argument.
8273 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8274 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8275 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8276 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8278 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8279 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8280 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8281 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8282 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8286 * btrace.h (replay) <replay>: New.
8287 (btrace_is_replaying): New.
8288 * btrace.c (btrace_clear): Free replay iterator.
8289 (btrace_is_replaying): New.
8290 * record-btrace.c (record_btrace_is_replaying): New.
8291 (record_btrace_info): Print insn number if replaying.
8292 (record_btrace_insn_history): Start at replay position.
8293 (record_btrace_call_history): Start at replay position.
8294 (init_record_btrace_ops): Init to_record_is_replaying.
8296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8298 * record-btrace.c (record_btrace_insn_history_range): Include
8300 (record_btrace_insn_history_from): Adjust range.
8301 (record_btrace_call_history_range): Include
8303 (record_btrace_call_history_from): Adjust range.
8304 * NEWS: Announce changes.
8306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8308 * record.h (enum record_print_flag)
8309 <record_print_indent_calls>: New.
8310 * record.c (get_call_history_modifiers): Recognize /c modifier.
8311 (_initialize_record): Document /c modifier.
8312 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8313 Reorder fields. Optionally indent the function name. Update
8315 * NEWS: Announce changes.
8317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8319 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8323 * btrace.c (ftrace_new_function): Start counting at one.
8324 * record-btrace.c (record_btrace_info): Adjust number of calls
8326 * NEWS: Announce it.
8328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8330 * record-btrace.c (btrace_call_history_insn_range): Print
8331 insn range as [begin, end].
8333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8335 * btrace.h (struct btrace_func_link): New.
8336 (enum btrace_function_flag): New.
8337 (struct btrace_inst): Rename to ...
8338 (struct btrace_insn): ...this. Update all users.
8339 (struct btrace_func) <ibegin, iend>: Remove.
8340 (struct btrace_func_link): New.
8341 (struct btrace_func): Rename to ...
8342 (struct btrace_function): ...this. Update all users.
8343 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8344 (number, level, flags>: New.
8345 (struct btrace_insn_iterator): Rename to ...
8346 (struct btrace_insn_history): ...this.
8348 (struct btrace_insn_iterator, btrace_call_iterator): New.
8349 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8350 (struct btrace_target_info) <begin, end, level>
8351 <insn_history, call_history>: New.
8352 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8353 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8354 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8355 (btrace_call_number, btrace_call_begin, btrace_call_end)
8356 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8357 (btrace_find_function_by_number, btrace_set_insn_history)
8358 (btrace_set_call_history): New.
8359 * btrace.c (btrace_init_insn_iterator)
8360 (btrace_init_func_iterator, compute_itrace): Remove.
8361 (ftrace_print_function_name, ftrace_print_filename)
8362 (ftrace_skip_file): Change
8364 (ftrace_init_func): Remove.
8365 (ftrace_debug): Use new btrace_function fields.
8366 (ftrace_function_switched): Also consider gaining and
8367 losing symbol information).
8368 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8369 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8370 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8372 (ftrace_new_function): Move. Remove debug print.
8373 (ftrace_update_lines, ftrace_update_insns): New.
8374 (ftrace_update_function): Check for call, ret, and jump.
8375 (compute_ftrace): Renamed to ...
8376 (btrace_compute_ftrace): ...this. Rewritten to compute call
8378 (btrace_fetch, btrace_clear): Updated.
8379 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8380 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8381 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8382 (btrace_call_number, btrace_call_begin, btrace_call_end)
8383 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8384 (btrace_find_function_by_number, btrace_set_insn_history)
8385 (btrace_set_call_history): New.
8386 * record-btrace.c (require_btrace): Use new btrace thread
8388 (record_btrace_info, btrace_insn_history)
8389 (record_btrace_insn_history, record_btrace_insn_history_range):
8390 Use new btrace thread info fields and new iterator.
8391 (btrace_func_history_src_line): Rename to ...
8392 (btrace_call_history_src_line): ...this. Use new btrace
8394 (btrace_func_history): Rename to ...
8395 (btrace_call_history): ...this. Use new btrace thread info
8396 fields and new iterator.
8397 (record_btrace_call_history, record_btrace_call_history_range):
8398 Use new btrace thread info fields and new iterator.
8400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8402 * frame.h (frame_id_build_unavailable_stack_special): New.
8403 * frame.c (frame_id_build_unavailable_stack_special): New.
8405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8407 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8408 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8409 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8411 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8412 (i386_insn_is_jump, i386_jmp_p): New.
8413 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8414 insn_is_jump to gdbarch.
8415 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8416 * gdbarch.h: Regenerated.
8417 * gdbarch.c: Regenerated.
8418 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8419 (default_insn_is_jump): New.
8420 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8421 (default_insn_is_jump): New.
8423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8425 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8427 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8428 (btrace_read_type) <btrace_read_new>: Change to ...
8429 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8433 * common/linux-btrace.c (linux_read_btrace): Free trace from
8436 2014-01-15 Doug Evans <dje@google.com>
8438 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8441 2014-01-15 Tom Tromey <tromey@redhat.com>
8443 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8444 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8445 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8446 (set_objfile_main_name): New function.
8447 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8448 language_of_main>: New fields.
8449 (set_objfile_main_name): Declare.
8450 * symtab.c (find_main_name): Loop over objfiles to find the main
8452 (set_main_name): Now static.
8453 (get_main_info): Add comment.
8454 * symtab.h (set_main_name): Don't declare.
8456 2014-01-15 Tom Tromey <tromey@redhat.com>
8458 * symtab.c (main_progspace_key): New global.
8459 (struct main_info): New.
8460 (name_of_main, language_of_main): Remove.
8461 (get_main_info, main_info_cleanup): New function.
8462 (set_main_name, main_name, main_language): Use get_main_info.
8463 (_initialize_symtab): Initialize main_progspace_key.
8465 2014-01-15 Tom Tromey <tromey@redhat.com>
8467 * dbxread.c (process_one_symbol): Update.
8468 * dwarf2read.c (read_partial_die): Update.
8469 * symfile.c (set_initial_language): Call main_language.
8470 * symtab.c (language_of_main): Now static.
8471 (set_main_name): Add 'lang' parameter.
8472 (find_main_name): Update.
8473 (main_language): New function.
8474 (symtab_observer_executable_changed): Update.
8475 * symtab.h (set_main_name): Update.
8476 (language_of_main): Remove.
8477 (main_language): Declare.
8479 2014-01-15 Tom Tromey <tromey@redhat.com>
8481 * symfile.c (init_entry_point_info): Use new "initialized" field.
8483 * objfiles.h (struct entry_point) <initialized>: New field.
8484 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8485 (struct objfile) <ei>: ...here. Remove.
8486 * objfiles.c (entry_point_address_query): Update.
8488 2014-01-15 Tom Tromey <tromey@redhat.com>
8490 * objfiles.c (entry_point_address_query): Relocate entry point
8492 (objfile_relocate1): Do not relocate entry point address.
8493 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8494 <the_bfd_section_index>: New field.
8495 * symfile.c (init_entry_point_info): Find the entry point's
8498 2014-01-15 Tom Tromey <tromey@redhat.com>
8500 * solib-frv.c (enable_break): Use entry_point_address_query.
8502 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8504 * NEWS: Add note on improved process record-replay on
8505 arm*-linux* targets.
8507 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8509 * arm-tdep.c (enum arm_record_result): New enum.
8510 (arm_record_unsupported_insn): New function.
8511 (arm_record_coproc_data_proc): Removed.
8512 (thumb2_record_ld_st_multiple): New function.
8513 (thumb2_record_ld_st_dual_ex_tbb): New function.
8514 (thumb2_record_data_proc_sreg_mimm): New function.
8515 (thumb2_record_ps_dest_generic): New function.
8516 (thumb2_record_branch_misc_cntrl): New function.
8517 (thumb2_record_str_single_data): New function.
8518 (thumb2_record_ld_mem_hints): New function.
8519 (thumb2_record_ld_word): New function.
8520 (thumb2_record_lmul_lmla_div): New function.
8521 (thumb2_record_decode_insn_handler): New function.
8522 (decode_insn): Add thumb32 instruction handlers.
8524 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8526 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8527 (struct arm_linux_record_tdep): Declare.
8528 (arm_canonicalize_syscall): New function.
8529 (arm_all_but_pc_registers_record): New function.
8530 (arm_linux_syscall_record): New function.
8531 (arm_linux_init_abi): Add syscall recording constructs.
8532 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8533 decoding. (arm_record_coproc_data_proc): Update arm syscall
8535 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8536 <arm_syscall_record>: New field.
8537 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8540 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8542 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8543 register for push instruction recording.
8545 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8547 * arm-tdep.c (thumb_record_misc): Update to correct logical
8548 error while recording ldm, ldmia and pop instructions.
8550 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8552 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8554 2014-01-15 Pedro Alves <palves@redhat.com>
8556 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8557 (go32_resume, go32_fetch_registers, store_register)
8558 (go32_store_registers, go32_prepare_to_store)
8559 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8560 (go32_create_inferior, go32_can_run, go32_terminal_init)
8561 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8564 2014-01-15 Tom Tromey <tromey@redhat.com>
8566 * target.h (async_callback_ftype): New typedef.
8567 (struct target_ops) <to_async>: Use it.
8569 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8571 * python/py-value.c (get_field_type): Remove unnecessary curly
8572 braces for single-statement if block.
8574 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8576 * python/py-type.c (convert_field): Add missing empty line
8579 2014-01-14 Doug Evans <dje@google.com>
8581 * symfile.h (expand_symtabs_matching): Renamed from
8582 expand_partial_symbol_names. Update prototype.
8583 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8584 * symfile.c (expand_symtabs_matching): Renamed from
8585 expand_partial_symbol_names. New args file_matcher, kind.
8586 Rename arg fun to symbol_matcher.
8587 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8588 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8589 ada_expand_partial_symbol_name.
8590 (ada_make_symbol_completion_list): Update to call
8591 expand_symtabs_matching.
8592 (ada_add_global_exceptions): Call expand_symtabs_matching.
8593 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8594 call map_symbol_filenames.
8595 * symtab.c (sources_info): Update to call map_symbol_filenames.
8596 (search_symbols): Call expand_symtabs_matching.
8597 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8598 (default_make_symbol_completion_list_break_on): Update to call
8599 expand_symtabs_matching.
8600 (make_source_files_completion_list): Update to call
8601 map_symbol_filenames.
8603 2014-01-14 Doug Evans <dje@google.com>
8605 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8606 (expand_symtabs_symbol_matcher_ftype): New typedef.
8607 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8608 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8609 * symfile.c (expand_partial_symbol_names): Update to use
8610 expand_symtabs_symbol_matcher_ftype.
8611 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8612 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8613 Arg name_matcher renamed to symbol_matcher.
8614 * psymtab.c (recursively_search_psymtabs): Update to use
8615 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8617 (expand_symtabs_matching_via_partial): Update to use
8618 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8619 Arg name_matcher renamed to symbol_matcher.
8621 2014-01-14 Doug Evans <dje@google.com>
8623 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8624 (map_partial_symbol_filenames): Ditto.
8625 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8626 (map_partial_symbol_filenames): Ditto.
8627 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8628 (map_partial_symbol_filenames): Ditto.
8629 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8630 (map_partial_symbol_filenames): Ditto.
8631 * symtab.c: Delete #include "psymtab.h".
8633 2014-01-14 Pedro Alves <palves@redhat.com>
8634 Tom Tromey <tromey@redhat.com>
8636 * infrun.c (use_displaced_stepping): Use find_record_target
8637 instead of RECORD_IS_USED.
8638 (adjust_pc_after_break): Use record_full_is_used instead of
8640 * record-btrace.c (record_btrace_open): Call record_preopen
8641 instead of checking RECORD_IS_USED.
8642 * record-full.c (record_full_shortname)
8643 (record_full_core_shortname): New globals.
8644 (record_full_is_used): New function.
8645 (find_full_open): Call record_preopen instead of checking
8647 (init_record_full_ops): Set the target's shortname to
8648 record_full_shortname.
8649 (init_record_full_core_ops): Set the target's shortname to
8650 record_full_core_shortname.
8651 * record-full.h (record_full_is_used): Declare.
8652 * record.c (find_record_target): Make extern.
8653 (record_preopen): New function.
8654 * record.h (RECORD_IS_USED): Delete macro.
8655 (find_record_target, record_preopen): Declare functions.
8657 2014-01-14 Yao Qi <yao@codesourcery.com>
8659 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8660 'len''s type to ULONGEST.
8661 (core_xfer_shared_libraries_aix): Likewise.
8662 * gdbarch.c, gdbarch.h: Regenerated.
8663 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8664 Change type of 'len' to ULONGEST.
8665 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8666 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8668 2014-01-14 Yao Qi <yao@codesourcery.com>
8670 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8671 type of 'len' to ULONGEST.
8672 (linux_xfer_osdata_processgroups): Likewise.
8673 (linux_xfer_osdata_threads): Likewise.
8674 (linux_xfer_osdata_fds): Likewise.
8675 (linux_xfer_osdata_isockets): Likewise.
8676 (linux_xfer_osdata_shm): Likewise.
8677 (linux_xfer_osdata_sem): Likewise.
8678 (linux_xfer_osdata_msg): Likewise.
8679 (linux_common_xfer_osdata): Likewise.
8680 (struct osdata_type) <getter>: Likewise.
8681 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8684 2014-01-14 Yao Qi <yao@codesourcery.com>
8686 * target.h (target_xfer_partial_ftype): Update.
8687 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8689 * aix-thread.c (aix_thread_xfer_partial): Change type of
8690 argument 'len' to ULONGEST.
8691 * auxv.c (procfs_xfer_auxv): Likewise.
8692 (ld_so_xfer_auxv): Likewise.
8693 (memory_xfer_auxv): Likewise.
8694 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8695 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8696 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8697 * corelow.c (core_xfer_partial): Likewise.
8698 * ctf.c (ctf_xfer_partial): Likewise.
8699 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8701 (darwin_read_dyld_info): Likewise.
8702 (darwin_xfer_partial): Likewise.
8703 * exec.c (section_table_xfer_memory_partial): Likewise.
8704 (exec_xfer_partial): Likewise.
8705 * exec.h (section_table_xfer_memory_partial): Update
8707 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8708 instead of plongest.
8709 (gnu_xfer_partial): Likewise.
8710 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8711 (ia64_hpux_xfer_solib_got): Likewise.
8712 (ia64_hpux_xfer_partial): Likewise.
8713 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8714 * inf-ptrace.c (inf_ptrace_xfer_partial):
8715 * inf-ttrace.c (inf_ttrace_xfer_partial):
8716 * linux-nat.c (linux_xfer_siginfo): Likewise.
8717 (linux_nat_xfer_partial): Likewise.
8718 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8719 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8720 * monitor.c (monitor_xfer_memory): Likewise.
8721 (monitor_xfer_partial): Likewise.
8722 * procfs.c (procfs_xfer_partial): Likewise.
8723 * record-full.c (record_full_xfer_partial): Likewise.
8724 (record_full_core_xfer_partial): Likewise.
8725 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8726 instead of plongest.
8727 (gdbsim_xfer_partial): Likewise.
8728 * remote.c (remote_xfer_partial): Likewise.
8729 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8730 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8732 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8733 (rs6000_xfer_shared_libraries): Likewise.
8734 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8735 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8736 (sparc_xfer_partial): Likewise.
8737 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8738 (spu_xfer_partial): Likewise.
8739 * spu-multiarch.c (spu_xfer_partial): Likewise.
8740 * target.c (target_read_live_memory): Likewise.
8741 (memory_xfer_live_readonly_partial): Likewise.
8742 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8743 (target_xfer_partial, default_xfer_partial): Likewise.
8744 (current_xfer_partial): Likewise.
8745 * tracepoint.c (tfile_xfer_partial): Likewise.
8746 * windows-nat.c (windows_xfer_memory): Likewise. Call
8747 pulongest instead of plongest.
8748 (windows_xfer_partial): Likewise.
8749 (windows_xfer_shared_libraries): Likewise.
8751 2014-01-14 Yao Qi <yao@codesourcery.com>
8753 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8754 target_xfer_partial_ftype.
8756 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8760 * valops.c (value_struct_elt_bitpos): New function
8761 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8762 object to 'None' if the field name is an empty string ("").
8763 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8764 attribute to look for a field when 'name' is 'None'.
8765 (get_field_type): New function
8767 2014-01-13 Doug Evans <dje@google.com>
8770 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8771 (try_open_dwop_file): Ditto.
8772 * gdb_bfd.c: #include "vec.h".
8773 (bfdp): New typedef.
8774 (struct gdb_bfd_data): New member included_bfds.
8775 (gdb_bfd_unref): Unref all included bfds.
8776 (gdb_bfd_record_inclusion): New function.
8777 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8779 2014-01-13 Tom Tromey <tromey@redhat.com>
8781 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8783 2014-01-13 Tom Tromey <tromey@redhat.com>
8785 * defs.h (use_windows): Remove.
8786 * gdb.c (main): Update.
8787 * main.c (captured_main, gdb_main): Update.
8788 * main.h (struct captured_main_args) <use_windows>: Remove.
8789 * top.c (use_windows): Remove.
8791 2014-01-13 Tom Tromey <tromey@redhat.com>
8793 * defs.h (deprecated_flush_hook): Remove.
8795 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8798 * linux-thread-db.c (try_thread_db_load): Add parameter
8799 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8800 (try_thread_db_load_from_pdir_1): Move it there from here.
8801 (try_thread_db_load_from_sdir): Update caller.
8802 (try_thread_db_load_from_dir): Move it there from here.
8804 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8806 * regformats/regdat.sh: Always rewrite the register file.
8808 2014-01-13 Pedro Alves <palves@redhat.com>
8810 * Makefile.in (CHECK_HEADERS): New variable.
8811 (check-headers:): New rule.
8813 2014-01-13 Tom Tromey <tromey@redhat.com>
8815 * cli/cli-setshow.c (do_set_command): Update.
8816 * defs.h (deprecated_set_hook): Remove.
8817 * top.c (deprecated_set_hook): Remove.
8819 2014-01-13 Pedro Alves <palves@redhat.com>
8821 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8822 the tracepoint if the PC is a pseudo-register.
8824 2014-01-13 Tom Tromey <tromey@redhat.com>
8826 * defs.h (XCALLOC): Remove.
8827 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8828 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8829 * dwarf2loc.c (allocate_piece_closure): Likewise.
8830 * elfread.c (elf_symfile_segments): Likewise.
8831 (elf_symfile_segments): Likewise.
8832 * gdbtypes.c (copy_type_recursive): Likewise.
8833 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8834 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8835 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8837 * mt-tdep.c (mt_gdbarch_init): Likewise.
8838 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8840 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8841 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8842 * registry.c (registry_alloc_data): Likewise.
8843 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8844 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8845 * serial.c (serial_fdopen_ops): Likewise.
8846 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8848 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8849 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8852 2014-01-13 Tom Tromey <tromey@redhat.com>
8854 * defs.h (XMALLOC): Remove.
8855 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8856 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8857 * cli-out.c (struct ui_out *): Likewise.
8858 * cli/cli-dump.c (add_dump_command): Likewise.
8859 (add_dump_command): Likewise.
8860 * complaints.c (get_complaints): Likewise.
8861 (find_complaint): Likewise.
8862 * dwarf2-frame.c (execute_cfa_program): Likewise.
8863 * dwarf2read.c (abbrev_table_read_table): Likewise.
8864 * gdbarch.sh: Likewise.
8865 * gdbarch.c: Rebuild.
8866 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8867 * interps.c (interp_new): Likewise.
8868 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8869 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8870 * mi/mi-console.c (mi_console_file_new): Likewise.
8871 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8872 * mi/mi-out.c (mi_out_new): Likewise.
8873 * mi/mi-parse.c (mi_parse): Likewise.
8874 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8875 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8876 * observer.c (xalloc_observer_list_node): Likewise.
8877 * regcache.c (regcache_xmalloc_1): Likewise.
8878 * reggroups.c (reggroup_new): Likewise.
8879 (_initialize_reggroup): Likewise.
8880 * registry.c (register_data_with_cleanup): Likewise.
8881 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8882 * ser-base.c (serial_ttystate): Likewise.
8883 * ser-mingw.c (make_pipe_state): Likewise.
8884 * ser-pipe.c (pipe_open): Likewise.
8885 * serial.c (serial_open): Likewise.
8886 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8887 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8888 (tui_alloc_win_info): Likewise.
8889 (tui_add_content_elements): Likewise.
8890 * tui/tui-file.c (tui_file_new): Likewise.
8891 * tui/tui-out.c (tui_out_new): Likewise.
8892 * ui-file.c (mem_file_new): Likewise.
8893 * ui-out.c (push_level): Likewise.
8894 (make_cleanup_ui_out_end): Likewise.
8895 (append_header_to_list): Likewise.
8896 (ui_out_new): Likewise.
8897 * user-regs.c (user_reg_add_builtin): Likewise.
8899 2014-01-13 Tom Tromey <tromey@redhat.com>
8901 * defs.h (XZALLOC): Remove.
8902 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8903 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8904 (get_ada_tasks_inferior_data): Likewise.
8905 * auto-load.c (get_auto_load_pspace_data): Likewise.
8906 * auxv.c (get_auxv_inferior_data): Likewise.
8907 * bfd-target.c (target_bfd_reopen): Likewise.
8908 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8909 (deprecated_insert_raw_breakpoint): Likewise.
8910 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8911 * corelow.c (core_open): Likewise.
8912 * darwin-nat.c (darwin_check_new_threads): Likewise.
8913 (darwin_attach_pid): Likewise.
8914 * dummy-frame.c (dummy_frame_push): Likewise.
8915 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8916 * dwarf2loc.c (allocate_piece_closure): Likewise.
8917 * elfread.c (elf_symfile_segments): Likewise.
8918 * eval.c (ptrmath_type_p): Likewise.
8919 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8920 * gdbtypes.c (alloc_type_arch): Likewise.
8921 (alloc_type_instance): Likewise.
8922 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8923 * inf-child.c (inf_child_can_use_agent): Likewise.
8924 * inflow.c (get_inflow_inferior_data): Likewise.
8925 * infrun.c (save_infcall_suspend_state): Likewise.
8926 * jit.c (jit_reader_load): Likewise.
8927 (get_jit_objfile_data): Likewise.
8928 (get_jit_program_space_data): Likewise.
8929 (jit_object_open_impl): Likewise.
8930 (jit_symtab_open_impl): Likewise.
8931 (jit_block_open_impl): Likewise.
8932 (jit_frame_sniffer): Likewise.
8933 * linux-fork.c (add_fork): Likewise.
8934 * maint.c (make_command_stats_cleanup): Likewise.
8935 * objfiles.c (get_objfile_pspace_data): Likewise.
8936 * opencl-lang.c (struct lval_closure): Likewise.
8937 * osdata.c (osdata_start_osdata): Likewise.
8938 * progspace.c (new_address_space): Likewise.
8939 (add_program_space): Likewise.
8940 * remote-sim.c (get_sim_inferior_data): Likewise.
8941 * sh-tdep.c (sh_gdbarch_init): Likewise.
8942 * skip.c (Ignore): Likewise.
8943 (skip_delete_command): Likewise.
8944 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8945 (library_list_start_library): Likewise.
8946 (solib_aix_current_sos): Likewise.
8947 * solib-darwin.c (get_darwin_info): Likewise.
8948 (darwin_current_sos): Likewise.
8949 * solib-dsbt.c (get_dsbt_info): Likewise.
8950 * solib-ia64-hpux.c (new_so_list): Likewise.
8951 (ia64_hpux_get_solib_linkage_addr): Likewise.
8952 * solib-spu.c (append_ocl_sos): Likewise.
8953 (spu_current_sos): Likewise.
8954 * solib-svr4.c (get_svr4_info): Likewise.
8955 (svr4_keep_data_in_core): Likewise.
8956 (library_list_start_library): Likewise.
8957 (svr4_default_sos): Likewise.
8958 (svr4_read_so_list): Likewise.
8959 * solib-target.c (library_list_start_library): Likewise.
8960 (solib_target_current_sos): Likewise.
8961 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8962 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8963 * symfile.c (default_symfile_segments): Likewise.
8964 * target-descriptions.c (tdesc_data_init): Likewise.
8965 (tdesc_create_reg): Likewise.
8966 (struct tdesc_type *): Likewise.
8967 (tdesc_create_vector): Likewise.
8968 (tdesc_set_struct_size): Likewise.
8969 (struct tdesc_type *): Likewise.
8970 (tdesc_free_feature): Likewise.
8971 (tdesc_create_feature): Likewise.
8972 * windows-nat.c (windows_add_thread): Likewise.
8973 (windows_make_so): Likewise.
8974 * xml-support.c (gdb_xml_body_text): Likewise.
8975 (gdb_xml_create_parser_and_cleanup): Likewise.
8976 (xml_process_xincludes): Likewise.
8977 * xml-syscall.c (allocate_syscalls_info): Likewise.
8978 (syscall_create_syscall_desc): Likewise.
8980 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8982 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8983 function, with code from i386_stap_parse_special_token.
8984 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8985 (i386_stap_parse_special_token): Move code to the two functions
8988 2014-01-09 Pedro Alves <palves@redhat.com>
8989 Hui Zhu <hui@codesourcery.com>
8992 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8993 bp_err_string. Don't mark the location shlib_disabled if the
8994 error thrown wasn't a generic or memory error. Catch errors
8995 thrown while inserting breakpoints in overlayed code. Output
8996 error message of software breakpoints.
8997 * remote.c (remote_insert_breakpoint): If this breakpoint has
8998 target-side commands but this stub doesn't support Z0 packets,
8999 throw NOT_SUPPORTED_ERROR error.
9000 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9001 * target.h (target_insert_breakpoint): Extend comment.
9002 (target_insert_hw_breakpoint): Add comment.
9004 2014-01-08 Pedro Alves <palves@redhat.com>
9006 * remote.c (remote_add_thread): Add threads silently if starting
9008 (remote_notice_new_inferior): If in all-stop, and starting up,
9009 don't call notice_new_inferior.
9010 (get_current_thread): New function, factored out from ...
9011 (add_current_inferior_and_thread): ... this. Adjust.
9012 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9013 found any thread, then select the remote's current thread as GDB's
9016 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9018 * NEWS: Create a new section for the next release branch.
9019 Rename the section of the current branch, now that it has
9022 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9024 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9025 * version.in: Bump version to 7.7.50.DATE-cvs.
9027 2014-01-08 Yao Qi <yao@codesourcery.com>
9029 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9030 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9031 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9033 2014-01-08 Yao Qi <yao@codesourcery.com>
9035 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9036 return value of bfd_get_filename to symbol_file_add_from_bfd.
9038 2014-01-08 Pierre Muller <muller@sourceware.org>
9041 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9042 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9043 to prim_record_mininal_symbol_and_info.
9044 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9045 in call to prim_record_minimal_symbol_and_info.
9046 (read_pe_exported_syms): Set index field of section_data.
9048 2014-01-07 Andrew Pinski <apinski@cavium.com>
9050 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9051 * features/aarch64.c: Regenerate.
9053 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9055 * target.c (return_null): Define.
9056 (update_current_target): Use it instead of return_zero for
9057 functions that return a pointer.
9059 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9061 * source.c (add_path): Fix check for duplicated paths in the previously
9064 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9066 * ada-lang.c: Remove duplicated include statements.
9067 * alphabsd-nat.c: Ditto.
9068 * amd64-darwin-tdep.c: Ditto.
9069 * amd64fbsd-nat.c: Ditto.
9070 * auto-load.c: Ditto.
9072 * breakpoint.c: Ditto.
9074 * fork-child.c: Ditto.
9075 * gdb_usleep.c: Ditto.
9076 * i386-darwin-tdep.c: Ditto.
9077 * i386fbsd-nat.c: Ditto.
9079 * inferior.c: Ditto.
9081 * linux-nat.c: Ditto.
9082 * linux-tdep.c: Ditto.
9083 * m68kbsd-nat.c: Ditto.
9084 * m68klinux-nat.c: Ditto.
9085 * microblaze-tdep.c: Ditto.
9086 * mips-linux-tdep.c: Ditto.
9087 * mn10300-tdep.c: Ditto.
9088 * nto-tdep.c: Ditto.
9089 * opencl-lang.c: Ditto.
9091 * printcmd.c: Ditto.
9092 * regcache.c: Ditto.
9093 * remote-m32r-sdi.c: Ditto.
9097 * tilegx-linux-nat.c: Ditto.
9098 * tilegx-tdep.c: Ditto.
9099 * tracepoint.c: Ditto.
9101 * vaxbsd-nat.c: Ditto.
9102 * windows-nat.c: Ditto.
9103 * xtensa-tdep.c: Ditto.
9105 2014-01-07 Yao Qi <yao@codesourcery.com>
9107 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9109 2014-01-07 Yao Qi <yao@codesourcery.com>
9110 Joel Brobecker <brobecker@adacore.com>
9112 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9113 (pdc_write_regs): Likewise.
9114 (fetch_regs_kernel_thread): Likewise.
9115 (store_regs_kernel_thread): Likewise.
9117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9119 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9120 tagged type objects to their actual type.
9122 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9124 * ada-valprint.c (print_field_values): Add "language" parameter.
9125 Update calls to print_field_values and print_variant_part.
9126 Pass new parameter "language" in call to val_print instead
9127 of "current_language". Replace call to ada_val_print by call
9129 (print_variant_part): Add "language" parameter.
9130 (ada_val_print_struct_union): Update call to print_field_values.
9132 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9134 * ada-valprint.c (ui_memcpy): Delete.
9135 (ada_print_floating): Update documentation. Add empty line
9136 between between function documentation and implementation.
9137 Delete variable "buffer". Use ui_file_xstrdup in place of
9138 ui_file_put. Minor adjustments following this change.
9140 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9142 * ada-valprint.c (ada_val_print_string): New function,
9143 extracted from ada_val_print_array.
9144 (ada_val_print_array): Replace extracted code by call
9145 to ada_val_print_string followed by a return. Move
9146 "else" branch to the function's top block.
9148 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9150 * ada-valprint.c (ada_val_print_array): Move implementation
9151 down. Rename parameter "offset" and "val" into "offset_aligned"
9152 and "original_value" respectively. Add parameter "offset".
9154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9156 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9157 re-organizing the code. Change the "???" message printed
9158 when target type is a TYPE_CODE_UNDEF into
9159 "<ref to undefined type>".
9161 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9163 * ada-valprint.c (print_record): Delete, implementation inlined...
9164 (ada_val_print_struct_union): ... here. Remove call to
9165 ada_check_typedef in inlined implementation.
9167 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9169 * ada-valprint.c (ada_val_print_gnat_array): New function,
9170 extracted from ada_val_print_1;
9171 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9172 (ada_val_print_flt, ada_val_print_struct_union)
9173 (ada_val_print_ref): Likewise.
9174 (ada_val_print_1): Delete variables i and elttype.
9175 Replace extracted-out code by call to corresponding
9178 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9180 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9184 * ada-valprint.c (ada_val_print_1): Replace calls to
9185 ada_val_print_1 by calls to val_print.
9187 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9189 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9190 Update calls to self accordingly. Replace calls to c_val_print
9191 by calls to val_print.
9193 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9195 * ada-valprint.c (print_record): Delete declaration.
9196 (adjust_type_signedness, ada_val_print_1): Likewise.
9197 (ada_val_print): Move function implementation down.
9198 (print_variant_part, print_field_values, print_record):
9199 Move function implementation up.
9201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9203 * python/py-type.c (typy_get_name): New function.
9204 (type_object_getset): Add entry for attribute "name".
9205 * NEWS: Add entry mentioning this new attribute.
9207 2014-01-07 Yao Qi <yao@codesourcery.com>
9209 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9212 2014-01-07 Yao Qi <yao@codesourcery.com>
9214 * gnu-nat.c (info_port_rights): Add qualifier const to
9217 2014-01-07 Yao Qi <yao@codesourcery.com>
9219 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9221 2014-01-07 Yao Qi <yao@codesourcery.com>
9223 * gnu-nat.c (make_inf) Update declaration.
9224 (make_inf): Make it static.
9225 (inf_set_traced): Likewise.
9226 (inf_port_to_thread, inf_task_died_status): Likewise.
9228 2014-01-07 Yao Qi <yao@codesourcery.com>
9230 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9232 2014-01-07 Yao Qi <yao@codesourcery.com>
9234 * gnu-nat.c (_initialize_gnu_nat): Declare.
9236 2014-01-07 Yao Qi <yao@codesourcery.com>
9238 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9240 (struct gdbarch_info) <byte_order>: Change type to
9242 <byte_order_for_code>: Likewise.
9243 * gdbarch.c, gdbarch.h: Regenerated.
9245 2014-01-06 Sasha Smundak <asmundak@google.com>
9247 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9249 2014-01-06 Tom Tromey <tromey@redhat.com>
9251 * doublest.c (convert_doublest_to_floatformat): Use const, not
9253 * somread.c (som_symtab_read): Likewise.
9255 2014-01-07 Hui Zhu <hui@codesourcery.com>
9257 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9258 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9259 (gdb_bfd_fopen): Ditto.
9260 (gdb_bfd_openr): Ditto.
9261 (gdb_bfd_openw): Ditto.
9262 (gdb_bfd_openr_iovec): Ditto.
9263 (gdb_bfd_fdopenr): Ditto.
9264 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9265 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9267 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9269 * symfile-mem.c (symbol_file_add_from_memory): Removed
9270 gdb_bfd_stash_filename.
9272 2014-01-03 Doug Evans <dje@google.com>
9274 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9277 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9279 Update year range in copyright notice of all files.
9281 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9283 * top.c (print_gdb_version): Set copyright year to 2014.
9285 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9287 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9289 For older changes see ChangeLog-2013.
9295 version-control: never