1 2014-06-18 Gary Benson <gbenson@redhat.com>
3 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6 2014-06-18 Gary Benson <gbenson@redhat.com>
8 * i386-nat.c (debug_printf): New macro.
9 (i386_get_debug_register_length): Likewise.
10 (TARGET_HAS_DR_LEN_8): Use above macro.
11 (i386_show_dr): Use debug_printf instead of puts_unfiltered
12 and printf_unfiltered. Use phex to format values.
14 2014-06-18 Gary Benson <gbenson@redhat.com>
16 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
19 2014-06-18 Gary Benson <gbenson@redhat.com>
21 * i386-nat.c: Comment changes.
23 2014-06-18 Gary Benson <gbenson@redhat.com>
25 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
27 2014-06-18 Gary Benson <gbenson@redhat.com>
29 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
30 (i386_insert_aligned_watchpoint): Likewise.
31 (i386_remove_aligned_watchpoint): Likewise.
32 (i386_handle_nonaligned_watchpoint): Likewise.
34 2014-06-18 Gary Benson <gbenson@redhat.com>
36 * i386-nat.c: Whitespace changes.
38 2014-06-17 Samuel Bronson <naesten@gmail.com>
40 * MAINTAINERS: Update Roland McGrath's email address.
41 Thanks to Sergio Durigan Junior for pointing out that he left
42 Red Hat a while ago, and giving me a current address.
44 2014-06-17 Tom Tromey <tromey@redhat.com>
46 * utils.h (savestring): Remove declaration.
48 2014-06-17 Tom Tromey <tromey@redhat.com>
50 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
52 2014-06-16 Keith Seitz <keiths@redhat.com>
55 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
56 to update the varobj if inferior_ptid is null_ptid.
58 2014-06-16 Tom Tromey <tromey@redhat.com>
60 * target.h (struct target_ops) <to_info_proc>: Make parameter
62 (target_info_proc): Update.
63 * target.c (target_info_proc): Make "args" const.
64 * procfs.c (procfs_info_proc): Update.
65 * linux-tdep.c (linux_info_proc): Update.
66 (linux_core_info_proc_mappings): Make "args" const.
67 (linux_core_info_proc): Update.
68 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
71 * corelow.c (core_info_proc): Update.
73 2014-06-16 Tom Tromey <tromey@redhat.com>
75 * target.h (struct target_ops) <to_disconnect>: Make parameter
77 (target_disconnect): Update.
78 * target.c (target_disconnect): Make "args" const.
79 * target-delegates.c: Rebuild.
80 * remote.c (remote_disconnect): Update.
81 * record.h (record_disconnect): Update.
82 * record.c (record_disconnect): Update.
83 * inf-child.c (inf_child_disconnect): Update.
85 2014-06-16 Tom Tromey <tromey@redhat.com>
87 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
88 * target.c (debug_to_rcmd, default_rcmd): Update.
89 * target-delegates.c: Rebuild.
90 * remote.c (remote_rcmd): Update.
91 * monitor.c (monitor_rcmd): Update.
93 2014-06-16 Pedro Alves <palves@redhat.com>
95 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
96 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
98 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
99 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
100 instead of OBJF_USERLOADED.
101 * objfiles.h (OBJF_SHARED): Update comment.
102 (userloaded_objfile_contains_address_p): Rename to ...
103 (shared_objfile_contains_address_p): ... this, and update
105 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
107 (remove_symbol_file_command): Skip objfiles that don't have
110 2014-06-16 Tom Tromey <tromey@redhat.com>
112 * minsyms.h (prim_record_minimal_symbol)
113 (prim_record_minimal_symbol_and_info): Update comments.
115 2014-06-14 Eli Zaretskii <eliz@gnu.org>
117 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
118 or --without-guile, according to how GDB was built.
120 2014-06-13 Tom Tromey <tromey@redhat.com>
122 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
124 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
126 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
128 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
129 help_list.Pass all_commands, not -1, to help_list.
130 * cli/cli-dump.c (dump_command, append_command)
131 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
132 (binary_dump_command, binary_append_command): Pass all_commands,
133 not -1, to help_list.
134 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
136 * valprint.c (set_print, set_print_raw): Pass all_commands, not
138 * typeprint.c (set_print_type): Pass all_commands, not -1, to
140 * top.c (set_history): Pass all_commands, not -1, to help_list.
141 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
142 all_commands, not -1, to help_list.
143 * symfile.c (overlay_command): Pass all_commands, not -1, to
145 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
147 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
149 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
151 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
152 not -1, to help_list.
153 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
154 not -1, to help_list.
155 * maint.c (maintenance_command, maintenance_info_command)
156 (maintenance_print_command, maintenance_set_cmd): Pass
157 all_commands, not -1, to help_list.
158 * macrocmd.c (macro_command): Pass all_commands, not -1, to
160 * language.c (set_check): Pass all_commands, not -1, to help_list.
161 * infcmd.c (unset_command): Pass all_commands, not -1, to
163 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
165 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
167 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
169 * breakpoint.c (save_command): Pass all_commands, not -1, to
171 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
172 all_commands, not -1, to help_list.
174 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
176 * regcache.c (struct register_to_invalidate): New structure.
177 (do_register_invalidate, make_cleanup_regcache_invalidate): New
179 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
181 2014-06-12 Yao Qi <yao@codesourcery.com>
183 * varobj.c (varobj_get_num_children): Call
185 (varobj_list_children): Likewise.
186 (varobj_update): Likewise. Update comments.
188 2014-06-12 Yao Qi <yao@codesourcery.com>
190 * varobj.c (varobj_pretty_printed_p): Rename to ...
191 (varobj_is_dynamic_p): ... this. New function.
192 * varobj.h (varobj_pretty_printed_p): Remove declaration.
193 (varobj_is_dynamic_p): Declare.
194 * mi/mi-cmd-var.c (print_varobj): All callers updated.
195 (mi_print_value_p, varobj_update_one): Likewise.
197 2014-06-12 Pedro Alves <pedro@codesourcery.com>
198 Yao Qi <yao@codesourcery.com>
200 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
201 (varobj_get_iterator): Wrap up code for pretty-printer by
202 "#if HAVE_PYTHON" and "#endif".
203 (update_dynamic_varobj_children): Likewise.
205 2014-06-12 Pedro Alves <pedro@codesourcery.com>
206 Yao Qi <yao@codesourcery.com>
208 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
209 gdb_python_initialized is false. Move some code from varobj.c.
210 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
211 * varobj.c: Move "varobj-iter.h" inclusion earlier.
212 (struct varobj_item): Moved to varobj-iter.h".
213 (varobj_clear_saved_item): New function.
214 (update_dynamic_varobj_children): Move python-related code to
216 (free_variable): Call varobj_clear_saved_item and
219 2014-06-12 Pedro Alves <pedro@codesourcery.com>
220 Yao Qi <yao@codesourcery.com>
222 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
223 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
224 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
225 (py-varobj.o): New rule.
226 * python/py-varobj.c: New file.
227 * python/python-internal.h (py_varobj_get_iterator): Declare.
228 * varobj-iter.h: New file.
229 * varobj.c: Include "varobj-iter.h"
230 (struct varobj) <child_iter>: Change its type from "PyObject *"
231 to "struct varobj_iter *".
232 <saved_item>: Likewise.
233 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
234 [HAVE_PYTHON] (varobj_get_iterator): New function.
235 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
236 python-specific code to python/py-varobj.c.
237 (install_visualizer): Call varobj_iter_delete instead of
239 * varobj.h (varobj_ensure_python_env): Declare.
241 2014-06-12 Yao Qi <yao@codesourcery.com>
243 * varobj.c (struct varobj_item): New structure.
244 (create_child_with_value): Update declaration.
245 (varobj_add_child): Replace arguments 'name' and 'value' with
246 'item'. All callers updated.
247 (install_dynamic_child): Likewise.
248 (update_dynamic_varobj_children): Likewise.
249 (varobj_add_child): Likewise.
250 (create_child_with_value): Likewise.
252 2014-06-11 Joel Brobecker <brobecker@adacore.com>
254 * NEWS: Create a new section for the next release branch.
255 Rename the section of the current branch, now that it has
258 2014-06-11 Joel Brobecker <brobecker@adacore.com>
260 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
261 * version.in: Bump version to 7.8.50.DATE-cvs.
263 2014-06-11 Pedro Alves <palves@redhat.com>
266 * ser-mingw.c (net_windows_socket_check_pending): New function.
267 (net_windows_select_thread): Ignore spurious wakeups. Use
268 net_windows_socket_check_pending.
269 (net_windows_wait_handle): Check for pending events with
270 ioctlsocket, through net_windows_socket_check_pending, instead of
271 checking the socket's event.
273 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
275 * python/python-internal.h (gdb_PyObject_GetAttrString)
276 (gdb_PyObject_HasAttrString): New inline function definitions.
277 * py-value.c (get_field_flag): Remove the now unnecessary cast to
278 char * of the second argument to PyObject_GetAttrString.
280 2014-06-10 Joel Brobecker <brobecker@adacore.com>
282 * serial.c (serial_write): Fix index of character to be printed
283 in call to serial_logchar when serial debug traces are enabled.
285 2014-06-10 Joel Brobecker <brobecker@adacore.com>
287 * gdbtypes (resolve_dynamic_range): Add function description.
289 2014-06-09 Pedro Alves <palves@redhat.com>
291 * linux-nat.c (linux_child_follow_fork): Initialize status with
292 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
293 inner block. Only pass the signal to PTRACE_DETACH if in pass
296 2014-06-09 Gary Benson <gbenson@redhat.com>
298 * common/signals.c (gdb_signal_from_host): Reorder to separate
299 the always-available ANSI-standard signals from the signals that
301 (do_gdb_signal_to_host): Likewise.
302 * proc-events.c (signal_table): Likewise.
304 2014-06-08 Hui Zhu <hui@codesourcery.com>
306 * common/linux-ptrace.c (linux_disable_event_reporting): New
308 * common/linux-ptrace.h (linux_disable_event_reporting): New
310 * linux-nat.c (linux_child_follow_fork): Do a single step before
313 2014-06-07 Keith Seitz <keiths@redhat.com>
317 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
318 from symbol_matches_domain in symtab.c. All local callers
319 of symbol_matches_domain updated.
320 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
321 search STRUCT_DOMAIN.
322 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
323 independently. standard_lookup will do that automatically.
324 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
325 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
326 (cp_lookup_symbol_in_namespace): Likewise.
327 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
328 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
329 may return a STRUCT_DOMAIN match.
330 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
331 * cp-support.c: Include language.h.
332 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
334 * psymtab.c (match_partial_symbol): Compare the requested
335 domain with the symbol's domain directly.
336 (lookup_partial_symbol): Likewise.
337 * symtab.c (lookup_symbol_in_language): Explain when/why
338 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
339 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
340 appropriate languages.
341 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
342 and moved to ada-lang.c
343 (lookup_block_symbol): Explain that this function only returns
344 symbol matching the requested DOMAIN.
345 Compare the requested domain with the symbol's domain directly.
346 (iterate_over_symbols): Compare the requested domain with the
347 symbol's domain directly.
348 * symtab.h (symbol_matches_domain): Remove.
350 2014-06-06 Doug Evans <xdje42@gmail.com>
352 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
353 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
354 (gdbscm_guile_version_is_at_least): Declare.
355 (gdbscm_scm_string_to_int): Declare.
356 * guile/guile.c (gdbscm_guile_major_version): New global.
357 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
358 (guile_datadir): New static global.
359 (gdbscm_guile_data_directory): New function.
360 (initialize_scheme_side): Update.
361 (misc_guile_functions): Add guile-data-directory.
362 (initialize_gdb_module): Fetch guile version number.
363 * guile/lib/gdb.scm: Remove call to add-to-load-path.
364 * guile/lib/gdb/init.scm (%initialize!): Ditto.
365 * guile/lib/gdb/boot.scm: Use guile-data-directory.
366 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
368 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
369 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
370 * guile/scm-value.c (gdbscm_value_to_string): Only call
371 scm_port_conversion_strategy if Guile version >= 2.0.6.
373 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
375 * main.c (print_gdb_help): Add -q and --silent.
377 2014-06-06 Gary Benson <gbenson@redhat.com>
379 * common/signals.c: Remove preprocessor conditionals for
380 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
382 * proc-events.c: Likewise.
384 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
386 * symfile.c (symfile_free_objfile): Remove restriction to
388 * symfile-mem.c (symbol_file_add_from_memory): Call
389 add_target_sections_of_objfile.
391 2014-06-05 Ludovic Courtès <ludo@gnu.org>
393 * guile/scm-value.c (gdbscm_history_append_x): Use
394 'vlscm_get_value_smob_arg_unsafe' instead of
395 'vlscm_scm_to_value'.
397 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
400 * utils.c (printchar): Don't escape at all if quoter is NUL.
401 Update function documentation to clarify effect of parameter
403 * remote.c (escape_buffer): Pass '\\' as the quoter to
405 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
407 (mi_solib_unloaded): Same.
409 2014-06-05 Joel Brobecker <brobecker@adacore.com>
411 * development.sh: Delete.
412 * Makefile.in (config.status): Adjust dependency on development.sh.
413 * configure.ac: Adjust development.sh source call.
414 * configure: Regenerate.
416 2014-06-04 Doug Evans <xdje42@gmail.com>
418 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
419 is_scheme_bkpt, spec.
420 (bpscm_make_breakpoint_smob): Initialize new members.
421 (gdbscm_create_breakpoint_x): Split into two ...
422 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
423 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
424 (scheme_function breakpoint_functions): Update.
425 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
426 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
427 register-breakpoint!.
429 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
432 * mem-break.c (z_type_supported): Return zero if
433 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
435 2014-06-04 Tom Tromey <tromey@redhat.com>
437 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
438 value_from_contents_and_address_unresolved.
439 (ada_template_to_fixed_record_type_1): Likewise.
440 (ada_which_variant_applies): Likewise.
441 * value.h (value_from_contents_and_address_unresolved): Declare.
442 * value.c (value_from_contents_and_address_unresolved): New
444 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
445 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
446 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
448 2014-06-04 Tom Tromey <tromey@redhat.com>
450 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
452 2014-06-04 Tom Tromey <tromey@redhat.com>
454 * procfs.c (procfs_attach): Make "args" const.
455 * windows-nat.c (windows_attach): Make "args" const.
456 * nto-procfs.c (procfs_attach): Make "args" const.
457 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
458 * go32-nat.c (go32_attach): Make "args" const.
459 * gnu-nat.c (gnu_attach): Make "args" const.
460 * darwin-nat.c (darwin_attach): Make "args" const.
461 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
462 * linux-nat.c (linux_nat_attach): Make "args" const.
463 * remote.c (extended_remote_attach_1, extended_remote_attach):
465 * target.h (struct target_ops) <to_attach>: Make "args" const.
466 (find_default_attach): Likewise.
467 * utils.c (parse_pid_to_attach): Make "args" const.
468 * utils.h (parse_pid_to_attach): Update.
470 2014-06-04 Tom Tromey <tromey@redhat.com>
472 * target-delegates.c: Rebuild.
473 * target.c (default_thread_address_space): New function.
474 (target_thread_address_space): Simplify.
475 * target.h (struct target_ops) <to_thread_address_space>: Add
478 2014-06-04 Doug Evans <xdje42@gmail.com>
480 * guile/scm-type.c (type_smob): Remove duplicate typedef.
482 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
484 * record-btrace.c: Include event-loop.h and inf-loop.h.
485 (record_btrace_resume_exec_dir)
486 (record_btrace_async_inferior_event_handler)
487 (record_btrace_handle_async_inferior_event): New.
488 (record_btrace_open): Create async event handler.
489 (record_btrace_close): Delete async event handler.
490 (record_btrace_resume): Set record_btrace_resume_exec_dir,
491 Mark async event handler.
492 (record_btrace_execution_direction): New.
493 (init_record_btrace_ops): Initialize to_execution_direction.
495 2014-06-03 Doug Evans <xdje42@gmail.com>
497 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
498 (gdbscm_make_parameter): Ditto.
500 2014-06-03 Doug Evans <dje@google.com>
502 * exec.c (exec_close_1): Call clear_section_table instead of
503 resize_section_table.
504 (clear_section_table): New function.
505 (resize_section_table): Make static. Rename arg num_added to
507 * exec.h (clear_section_table): Declare.
508 (resize_section_table): Delete.
509 * progspace.c (release_program_space): Call clear_section_table
510 instead of resize_section_table.
512 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
514 * NEWS (Python Scripting): Add entry about the new xmethods
517 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
519 * python/py-xmethods.c: New file.
520 * python/py-objfile.c (objfile_object): New field 'xmethods'.
521 (objfpy_dealloc): XDECREF on the new xmethods field.
522 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
524 (objfpy_get_xmethods): New function.
525 (objfile_getset): New entry 'xmethods'.
526 * python/py-progspace.c (pspace_object): New field 'xmethods'.
527 (pspy_dealloc): XDECREF on the new xmethods field.
528 (pspy_new, pspace_to_pspace_object): Initialize xmethods
530 (pspy_get_xmethods): New function.
531 (pspace_getset): New entry 'xmethods'.
532 * python/python-internal.h: Add declarations for new functions.
533 * python/python.c (_initialize_python): Invoke
534 gdbpy_initialize_xmethods.
535 * python/lib/gdb/__init__.py (xmethods): New
537 * python/lib/gdb/xmethod.py: New file.
538 * python/lib/gdb/command/xmethods.py: New file.
540 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
542 * eval.c (evaluate_subexp_standard): Call the xmethod if the
543 best match method returned by find_overload_match is an xmethod.
544 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
545 the best matching operator returned by find_overload_match is an
547 * valops.c: #include "extension.h".
548 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
549 Return void. The list of matching source methods is returned in
550 "fn_list" and a vector of matching debug method workers is
551 returned in "xm_worker_vec". Update all callers.
552 (value_find_oload_method_list): Likewise.
553 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
554 non-NULL, then the index of the best matching method in this
555 vector is returned. Update all callers.
556 (find_overload_match): Include xmethods while performing overload
559 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
561 * defs.h (enum lval_type): New enumerator "lval_xcallable".
562 * extension-priv.h (struct extension_language_ops): Add the
564 * extension.c (new_xmethod_worker, clone_xmethod_worker,
565 get_matching_xmethod_workers, get_xmethod_argtypes,
566 invoke_xmethod, free_xmethod_worker,
567 free_xmethod_worker_vec): New functions.
568 * extension.h: #include "common/vec.h".
569 New function declarations.
570 (struct xmethod_worker): New struct.
571 (VEC (xmethod_worker_ptr)): New vector type.
572 (xmethod_worker_ptr): New typedef.
573 (xmethod_worker_vec): Likewise.
574 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
576 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
577 (struct builtin_type): New field "xmethod".
578 * valarith.c (value_ptradd): Assert that the value argument is not
580 * valops.c (value_must_coerce_to_target): Return 0 for
581 lval_xcallable values.
582 * value.c (struct value): New field XM_WORKER in the field
584 (value_address, value_raw_address): Return 0 for lval_xcallable
586 (set_value_address): Assert that the value is not an
588 (value_free): Free the associated xmethod worker when freeing
589 lval_xcallable values.
590 (set_value_component_location): Assert that the WHOLE value is not
592 (value_of_xmethod, call_xmethod): New functions.
593 * value.h: Declare "struct xmethod_worker".
594 Declare new functions value_of_xmethod, call_xmethod.
596 2014-06-03 Joel Brobecker <brobecker@adacore.com>
597 Pedro Alves <palves@redhat.com>
600 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
601 New function, extracted from software_breakpoint_inserted_here_p.
602 (software_breakpoint_inserted_here_p): Replace factored out code
603 by call to find_non_raw_software_breakpoint_inserted_here.
604 (bp_target_info_copy_insertion_state): New function.
605 (bkpt_insert_location): Handle the case of a single-step
606 breakpoint already inserted at the same address.
607 (bkpt_remove_location): Handle the case of a single-step
608 breakpoint still inserted at the same address.
609 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
610 breakpoint already inserted at the same address.
611 (deprecated_remove_raw_breakpoint): Handle the case of a
612 non-raw breakpoint still inserted at the same address.
613 (find_single_step_breakpoint): New function, extracted from
614 single_step_breakpoint_inserted_here_p.
615 (find_single_step_breakpoint): New function,
616 factored out from single_step_breakpoint_inserted_here_p.
617 (single_step_breakpoint_inserted_here_p): Reimplement.
619 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
621 Pushed by Joel Brobecker <brobecker@adacore.com>
622 * source.c (show_substitute_path_command): Fix display of matching
625 2014-06-03 Gary Benson <gbenson@redhat.com>
627 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
629 2014-06-02 Doug Evans <xdje42@gmail.com>
631 Add parameter support for Guile.
632 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
633 (SUBDIR_GUILE_SRCS): Add scm-param.c.
634 (scm-param.o): New rule.
635 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
636 (gdbscm_misc_error): Declare.
637 (gdbscm_canonicalize_command_name): Declare.
638 (gdbscm_scm_to_host_string): Declare.
639 (gdbscm_scm_from_host_string): Declare.
640 (gdbscm_initialize_parameters): Declare.
641 * guile/guile.c (initialize_gdb_module): Call
642 gdbscm_initialize_parameters.
643 * guile/lib/gdb.scm: Export parameter symbols.
644 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
645 cmdscm_canonicalize_name and made public. All callers updated.
646 * guile/scm-exception.c (gdbscm_misc_error): New function.
647 * guile/scm-param.c: New file.
648 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
649 (gdbscm_scm_to_host_string): New function.
650 (gdbscm_scm_from_host_string): New function.
651 * scm-utils.c (gdbscm_gc_dup_argv): New function.
653 2014-06-02 Doug Evans <xdje42@gmail.com>
655 Add command support for Guile.
656 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
657 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
658 (scm-cmd.o): New rule.
659 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
660 (gdbscm_user_error_p): Declare.
661 (gdbscm_parse_command_name): Declare.
662 (gdbscm_valid_command_class_p): Declare.
663 (gdbscm_initialize_commands): Declare.
664 * guile/guile.c (initialize_gdb_module): Call
665 gdbscm_initialize_commands.
666 * guile/lib/gdb.scm: Export command symbols.
667 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
668 (throw-user-error): New function.
669 * guile/scm-cmd.c: New file.
670 * guile/scm-exception.c (user_error_symbol): New static global.
671 (gdbscm_user_error_p): New function.
672 (gdbscm_initialize_exceptions): Set user_error_symbol.
673 * scm-utils.c (gdbscm_gc_xstrdup): New function.
675 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
677 * top.c (command_loop): Handle comments here...
678 (command_line_input): ... not here.
680 2014-06-02 Doug Evans <xdje42@gmail.com>
682 Add progspace support for Guile.
683 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
684 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
685 (scm-progspace.o): New rule.
686 * guile/guile-internal.h (pspace_smob): New typedef.
687 (psscm_pspace_smob_pretty_printers): Declare.
688 (psscm_pspace_smob_from_pspace): Declare.
689 (psscm_scm_from_pspace): Declare.
690 * guile/guile.c (initialize_gdb_module): Call
691 gdbscm_initialize_pspaces.
692 * guile/lib/gdb.scm: Export progspace symbols.
693 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
695 (append-pretty-printer!): Ditto.
696 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
698 * guile/scm-progspace.c: New file.
700 2014-06-03 Alan Modra <amodra@gmail.com>
702 * ppc64-tdep.c (ppc64_standard_linkage8): New.
703 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
705 2014-06-02 Doug Evans <dje@google.com>
707 Add support for skeletonless type units.
708 * dwarf2read.c (struct dwarf2_per_objfile): New member
709 n_allocated_type_units.
710 (struct dwarf2_per_objfile) <tu_stats>: New member
711 nr_all_type_units_reallocs.
712 (create_signatured_type_table_from_index): Initialize
713 n_allocated_type_units
714 (create_all_type_units): Ditto.
715 (add_type_unit): Move up in file. New arg slot.
716 All callers updated. Increase space for all_type_units more
718 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
719 (lookup_dwo_signatured_type): Handle skeletonless TUs.
720 (lookup_dwp_signatured_type): Ditto.
721 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
723 (build_type_psymtabs_1): Leave type_unit_groups as
724 NULL if no TUs present.
725 (print_tu_stats): New function.
726 (process_skeletonless_type_unit): New function.
727 (process_dwo_file_for_skeletonless_type_units): New
729 (process_skeletonless_type_units): New function.
730 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
731 Call print tu_stats if debugging enabled.
733 2014-06-02 Pedro Alves <palves@redhat.com>
735 * breakpoint.c (build_target_command_list): Don't build a command
736 list if we have any duplicate location that isn't a dprintf.
738 2014-06-02 Pedro Alves <palves@redhat.com>
740 * breakpoint.c (dprintf_breakpoint_hit): New function.
741 (initialize_breakpoint_ops): Install it as dprintf's
742 breakpoint_hit method.
744 2014-06-02 Joel Brobecker <brobecker@adacore.com>
746 * source.c (substitute_path_rule_matches): Simplify using
747 filename_ncmp instead of FILENAME_CMP.
749 2014-06-02 Joel Brobecker <brobecker@adacore.com>
751 * source.c (substitute_path_rule_matches): Remove trailing spaces.
753 2014-06-01 Ludovic Courtès <ludo@gnu.org>
755 * configure.ac: When Guile is available, check for the
756 availability of 'scm_new_smob'.
757 * configure, config.h.in: Regenerate.
758 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
761 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
763 * frame.c (struct frame_info): Add stop_string field.
764 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
765 (get_prev_frame_always): Old content moved into
766 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
767 TRY_CATCH, handle MEMORY_ERROR exceptions.
768 (frame_stop_reason_string): New function definition.
769 * frame.h (unwind_stop_reason_to_string): Extend comment to
770 mention frame_stop_reason_string.
771 (frame_stop_reason_string): New function declaration.
772 * stack.c (frame_info): Switch to frame_stop_reason_string.
773 (backtrace_command_1): Switch to frame_stop_reason_string.
774 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
775 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
776 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
778 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
780 * frame.c (frame_stop_reason_string): Rename to ...
781 (unwind_stop_reason_to_string): this.
782 * frame.h (frame_stop_reason_string): Rename to ...
783 (unwind_stop_reason_to_string): this.
784 * stack.c (frame_info): Update call to frame_stop_reason_string.
785 (backtrace_command_1): Likewise.
786 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
787 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
789 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
791 * frame.c (remove_prev_frame): New function.
792 (get_prev_frame_if_no_cycle): Create / discard cleanup using
795 2014-05-29 Pedro Alves <palves@redhat.com>
797 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
798 and make it const. When a single-step decays to a continue,
799 clear 'step', not 'hw_step'. Pass whether the caller wanted
800 to step to user_visible_resume_ptid, not what we ask the
803 2014-05-29 Pedro Alves <palves@redhat.com>
805 * infrun.c (process_event_stop_test, handle_step_into_function)
806 (handle_step_into_function_backward): Adjust.
807 Don't set the even thread's stop_step and call stop_waiting before
808 calling end_stepping_range. Instead do that ...
809 (end_stepping_range): ... here. Take an ecs pointer parameter.
811 2014-05-29 Pedro Alves <palves@redhat.com>
813 * infrun.c (stop_stepping): Rename to ...
814 (stop_waiting): ... this.
815 (proceed): Update comment.
816 (process_event_stop_test, handle_inferior_event)
817 (handle_signal_stop, handle_step_into_function)
818 (handle_step_into_function_backward): Update.
820 2014-05-29 Pedro Alves <palves@redhat.com>
822 * infcall.c (run_inferior_call): Don't check whether the current
823 thread is running after the proceed call.
825 2014-05-29 Pedro Alves <palves@redhat.com>
826 Tom Tromey <tromey@redhat.com>
828 * NEWS: Mention "maint set target-async", "set mi-async", and that
829 background execution commands are now always available.
830 * target.h (target_async_permitted): Update comment.
831 * target.c (target_async_permitted, target_async_permitted_1):
833 (set_target_async_command): Rename to ...
834 (maint_set_target_async_command): ... this.
835 (show_target_async_command): Rename to ...
836 (maint_show_target_async_command): ... this.
837 (_initialize_target): Adjust.
838 * infcmd.c (prepare_execution_command): Make extern.
839 * inferior.h (prepare_execution_command): Declare.
840 * infrun.c (set_observer_mode): Leave target async alone.
841 * mi/mi-interp.c (mi_interpreter_init): Install
842 mi_on_sync_execution_done as sync_execution_done observer.
843 (mi_on_sync_execution_done): New function.
844 (mi_execute_command_input_handler): Don't print the prompt if we
845 just started a synchronous command with an async target.
846 (mi_on_resume): Check sync_execution before printing prompt.
847 * mi/mi-main.h (mi_async_p): Declare.
848 * mi/mi-main.c: Include gdbcmd.h.
849 (mi_async_p): New function.
850 (mi_async, mi_async_1): New globals.
851 (set_mi_async_command, show_mi_async_command, mi_async): New
853 (exec_continue): Call prepare_execution_command.
854 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
855 (mi_execute_async_cli_command): Use mi_async_p.
856 (_initialize_mi_main): Install "set mi-async". Make
857 "target-async" a deprecated alias.
859 2014-05-29 Pedro Alves <palves@redhat.com>
861 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
862 (_initialize_cli_interp): Adjust.
863 * event-loop.c: Include "observer.h".
864 (start_event_loop): Notify 'command_error' observers instead of
865 calling display_gdb_prompt. Remove FIXME comment.
866 * event-top.c (display_gdb_prompt): Remove call into the
868 * inf-loop.c: Include "observer.h".
869 (inferior_event_handler): Notify 'command_error' observers instead
870 of calling display_gdb_prompt.
871 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
872 observers instead of calling display_gdb_prompt.
873 * interps.c (interp_set): Don't call display_gdb_prompt.
874 (current_interp_display_prompt_p): Delete.
875 * interps.h (interp_prompt_p): Delete declaration.
876 (interp_prompt_p_ftype): Delete.
877 (struct interp_procs) <prompt_proc_p>: Delete field.
878 (current_interp_display_prompt_p): Delete declaration.
879 * mi-interp.c (mi_interpreter_prompt_p): Delete.
880 (_initialize_mi_interp): Adjust.
881 * tui-interp.c (tui_init): Install 'sync_execution_done' and
882 'command_error' observers.
883 (tui_on_sync_execution_done, tui_on_command_error): New
885 (tui_display_prompt_p): Delete.
886 (_initialize_tui_interp): Adjust.
888 2014-05-29 Pedro Alves <palves@redhat.com>
891 * cli/cli-interp.c: Include infrun.h and observer.h.
892 (cli_uiout, cli_interp): New globals.
893 (cli_on_signal_received, cli_on_end_stepping_range)
894 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
896 (cli_interpreter_init): Install them as 'end_stepping_range',
897 'signal_received' 'signal_exited', 'exited' and 'no_history'
899 (_initialize_cli_interp): Remove cli_interp local.
900 * infrun.c (handle_inferior_event): Call the several stop reason
901 observers instead of printing the stop reason directly.
902 (end_stepping_range): New function.
903 (print_end_stepping_range_reason, print_signal_exited_reason)
904 (print_exited_reason, print_signal_received_reason)
905 (print_no_history_reason): Make static, and add an uiout
906 parameter. Print to that instead of to CURRENT_UIOUT.
907 * infrun.h (print_end_stepping_range_reason)
908 (print_signal_exited_reason, print_exited_reason)
909 (print_signal_received_reason print_no_history_reason): New
911 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
913 <cli_uiout>: New field.
914 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
915 uiout for CLI output. Install 'signal_received',
916 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
918 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
919 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
920 (mi_on_no_history): New functions.
921 (ui_out_free_cleanup): Delete function.
922 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
923 instead use the one already stored in the MI interpreter data.
925 * tui/tui-interp.c: Include infrun.h and observer.h.
926 (tui_interp): New global.
927 (tui_on_signal_received, tui_on_end_stepping_range)
928 (tui_on_signal_exited, tui_on_exited)
929 (tui_on_no_history): New functions.
930 (tui_init): Install them as 'end_stepping_range',
931 'signal_received' 'signal_exited', 'exited' and 'no_history'
933 (_initialize_tui_interp): Delete tui_interp local.
935 2014-05-29 Pedro Alves <palves@redhat.com>
938 * linux-nat.c (linux_nat_resume_callback): Rename the second
939 parameter to 'except'. Skip LP if it points to EXCEPT.
940 (linux_nat_resume): Don't mark the event lwp as not stopped
941 before resuming sibling lwps. Instead ask
942 linux_nat_resume_callback to skip the event lwp. Mark it as not
943 stopped after actually resuming it.
944 (linux_handle_syscall_trap): Mark the lwp as not stopped after
946 (wait_lwp): Mark the lwp as stopped here.
947 (stop_wait_callback): Mark the lwp as not stopped right after
948 resuming it. Don't mark lwps as stopped here.
949 (linux_nat_filter_event): Mark the lwp as stopped earlier.
950 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
952 2014-05-29 Pedro Alves <palves@redhat.com>
955 * infrun.c (resume): Determine how much to resume depending on
956 whether the caller wanted a step, not whether we can hardware step
957 the target. Mark all threads that we intend to run as running,
958 unless we're calling an inferior function.
959 (normal_stop): If the thread is running an infcall, don't finish
961 * target.c (target_resume): Don't mark threads as running here.
963 2014-05-28 Joel Brobecker <brobecker@adacore.com>
965 * serial.c (_initialize_serial): Remove support for
966 the "set remotebaud" and "show remotebaud" commands.
967 * NEWS: Add entry documenting the removal of that command.
969 2014-05-28 Yao Qi <yao@codesourcery.com>
971 * charset.c: Fix typo in comments.
973 2014-05-27 Gary Benson <gbenson@redhat.com>
975 * utils.c (internal_vproblem): Prompt for a bug report.
977 2014-05-26 Andy Wingo <wingo@igalia.com>
979 * guile/scm-arch.c (arscm_mark_arch_smob):
980 * guile/scm-block.c (bkscm_mark_block_smob)
981 (bkscm_mark_block_syms_progress_smob):
982 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
983 * guile/scm-exception.c (exscm_mark_exception_smob):
984 * guile/scm-frame.c (frscm_mark_frame_smob):
985 * guile/scm-iterator.c (itscm_mark_iterator_smob):
986 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
987 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
988 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
989 (ppscm_mark_pretty_printer_worker_smob):
990 * guile/scm-symbol.c (syscm_mark_symbol_smob):
991 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
992 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
993 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
995 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
998 2014-05-26 Andy Wingo <wingo@igalia.com>
999 Doug Evans <xdje42@gmail.com>
1001 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1002 empty_base_class. All uses updated.
1003 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1004 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1006 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1007 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1008 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1009 (gdbscm_gsmob_has_property_p, add_property_name)
1010 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1011 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1012 (gdb-object-has-property?, gdb-object-properties): Remove.
1013 (gdb-object-kind): Renamed from gsmob-kind.
1015 2014-05-26 Andy Wingo <wingo@igalia.com>
1017 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1018 * configure: Regenerate.
1020 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1022 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1024 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1026 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1027 (replay_memory_access_read_only, replay_memory_access_read_write)
1028 (replay_memory_access_types, replay_memory_access)
1029 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1030 (cmd_set_record_btrace, cmd_show_record_btrace)
1031 (cmd_show_replay_memory_access): New.
1032 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1033 (record_btrace_remove_breakpoint): Replace
1034 record_btrace_allow_memory_access with replay_memory_access.
1035 (_initialize_record_btrace): Add commands.
1036 * NEWS: Announce it.
1038 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1040 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1042 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1044 * MAINTAINERS (Write After Approval): Move self back from
1047 2014-05-22 Pedro Alves <palves@redhat.com>
1049 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1050 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1051 (disable_randomization, enum exec_direction_kind)
1052 (execution_direction, stop_registers, start_remote)
1053 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1054 (wait_for_inferior, normal_stop, get_last_target_status)
1055 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1056 (insert_step_resume_breakpoint_at_sal)
1057 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1058 (set_step_info, print_stop_event, signal_stop_state)
1059 (signal_print_state, signal_pass_state, signal_stop_update)
1060 (signal_print_update, signal_pass_update)
1061 (update_signals_program_target, clear_exit_convenience_vars)
1062 (displaced_step_dump_bytes, update_observer_mode)
1063 (signal_catch_update, gdb_signal_from_command): Move
1065 * infrun.h: ... to this new file.
1066 * amd64-tdep.c: Include infrun.h.
1067 * annotate.c: Include infrun.h.
1068 * arch-utils.c: Include infrun.h.
1069 * arm-linux-tdep.c: Include infrun.h.
1070 * arm-tdep.c: Include infrun.h.
1071 * break-catch-sig.c: Include infrun.h.
1072 * breakpoint.c: Include infrun.h.
1073 * common/agent.c: Include infrun.h instead of inferior.h.
1074 * corelow.c: Include infrun.h.
1075 * event-top.c: Include infrun.h.
1076 * go32-nat.c: Include infrun.h.
1077 * i386-tdep.c: Include infrun.h.
1078 * inf-loop.c: Include infrun.h.
1079 * infcall.c: Include infrun.h.
1080 * infcmd.c: Include infrun.h.
1081 * infrun.c: Include infrun.h.
1082 * linux-fork.c: Include infrun.h.
1083 * linux-nat.c: Include infrun.h.
1084 * linux-thread-db.c: Include infrun.h.
1085 * monitor.c: Include infrun.h.
1086 * nto-tdep.c: Include infrun.h.
1087 * procfs.c: Include infrun.h.
1088 * record-btrace.c: Include infrun.h.
1089 * record-full.c: Include infrun.h.
1090 * remote-m32r-sdi.c: Include infrun.h.
1091 * remote-mips.c: Include infrun.h.
1092 * remote-notif.c: Include infrun.h.
1093 * remote-sim.c: Include infrun.h.
1094 * remote.c: Include infrun.h.
1095 * reverse.c: Include infrun.h.
1096 * rs6000-tdep.c: Include infrun.h.
1097 * s390-linux-tdep.c: Include infrun.h.
1098 * solib-irix.c: Include infrun.h.
1099 * solib-osf.c: Include infrun.h.
1100 * solib-svr4.c: Include infrun.h.
1101 * target.c: Include infrun.h.
1102 * top.c: Include infrun.h.
1103 * windows-nat.c: Include infrun.h.
1104 * mi/mi-interp.c: Include infrun.h.
1105 * mi/mi-main.c: Include infrun.h.
1106 * python/py-threadevent.c: Include infrun.h.
1108 2014-05-22 Pedro Alves <palves@redhat.com>
1110 * infrun.c (handle_inferior_event): Store the exit code for
1111 --return-child-result here, instead of ...
1112 (print_exited_reason): ... here.
1114 2014-05-21 Pedro Alves <palves@redhat.com>
1117 * gdbthread.h (struct thread_control_state): New field
1119 * infrun.c (follow_fork): Copy the new thread control field to the
1121 (clear_proceed_status_thread): Clear the new thread control field.
1122 (proceed): Set the new thread control field.
1123 * interps.h (command_interp): Declare.
1124 * interps.c (command_interpreter): New global.
1125 (command_interp): New function.
1126 (interp_exec): Set `command_interpreter' while here.
1127 * cli-out.c (cli_uiout_dtor): New function.
1128 (cli_ui_out_impl): Install it.
1129 * mi/mi-interp.c: Include cli-out.h.
1130 (mi_cmd_interpreter_exec): Add comment.
1131 (restore_current_uiout_cleanup): New function.
1132 (ui_out_free_cleanup): New function.
1133 (mi_on_normal_stop): If finishing an execution command started by
1134 a CLI command, or any kind of breakpoint-like event triggered,
1135 print the stop event to the output (CLI) stream.
1136 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1138 2014-05-21 Pedro Alves <palves@redhat.com>
1140 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1141 current source line having changed.
1142 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1143 * infrun.c (normal_stop): Adjust call to
1144 set_current_sal_from_frame.
1145 * source.c (clear_lines_listed_range): New function.
1146 (set_current_source_symtab_and_line, identify_source_line): Clear
1147 the lines listed range.
1148 (line_info): Handle the first "info line" after the current source
1149 line having changed.
1150 * stack.c (print_stack_frame): Remove center handling.
1151 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1154 2014-05-21 Pedro Alves <palves@redhat.com>
1156 * inf-child.c (inf_child_mourn_inferior): New function.
1157 * inf-child.h (inf_child_mourn_inferior): New declaration.
1158 * darwin-nat.c (darwin_mourn_inferior): Use
1159 inf_child_mourn_inferior.
1160 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1161 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1162 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1163 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1164 * windows-nat.c (windows_mourn_inferior): Likewise.
1166 2014-05-21 Doug Evans <xdje42@gmail.com>
1168 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1170 2014-05-21 Doug Evans <xdje42@gmail.com>
1172 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1173 (gdbscm_out_of_range_error): Ditto.
1174 (gdbscm_memory_error): Ditto.
1175 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1176 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1177 (gdbscm_out_of_range_error): Update.
1178 (gdbscm_memory_error): Update.
1179 (gdbscm_scm_to_target_string_unsafe): Delete.
1181 2014-05-21 Pedro Alves <palves@redhat.com>
1183 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1185 (inf_child_open_target): New function.
1186 (inf_child_open): Use inf_child_open_target to push the target
1187 instead of erroring out.
1188 (inf_child_disconnect, inf_child_close)
1189 (inf_child_maybe_unpush_target): New functions.
1190 (inf_child_target): Install inf_child_disconnect and
1191 inf_child_close. Store a pointer to the returned object.
1192 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1194 * target.c (auto_connect_native_target): New global.
1195 (show_default_run_target): New function.
1196 (find_default_run_target): Return NULL if automatically connecting
1197 to the native target is disabled.
1198 (_initialize_target): Install set/show auto-connect-native-target.
1199 * NEWS: Mention "set auto-connect-native-target", and "target
1201 * linux-nat.c (super_close): New global.
1202 (linux_nat_close): Call super_close.
1203 (linux_nat_add_target): Store a pointer to the base class's
1205 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1206 inf_child_maybe_unpush.
1207 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1209 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1210 the inferior. Use inf_child_maybe_unpush_target.
1211 (inf_ttrace_attach): Don't push the target if it is already
1213 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1214 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1215 after mourning the inferior. Use inf_child_maybe_unpush_target.
1216 (darwin_attach_pid): Don't push the target if it is already
1218 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1219 mourning the inferior. Use inf_child_maybe_unpush_target.
1220 (gnu_detach): Use inf_child_maybe_unpush_target.
1221 * go32-nat.c (go32_create_inferior): Don't push the target if it
1223 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1224 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1225 (procfs_open): Rename to ...
1226 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1227 comments. Can target_preopen before changing node. Call
1228 inf_child_open_target to push the target explicitly.
1229 (procfs_attach): Don't push the target if it is already pushed.
1230 (procfs_detach): Use inf_child_maybe_unpush_target.
1231 (procfs_create_inferior): Don't push the target if it is already
1233 (nto_native_ops): New global.
1234 (procfs_open): Reimplement.
1235 (procfs_native_open): New function.
1236 (init_procfs_targets): Install procfs_native_open as to_open of
1237 "target native". Store a pointer to the "native" target in
1239 * procfs.c (procfs_attach): Don't push the target if it is already
1241 (procfs_detach): Use inf_child_maybe_unpush_target.
1242 (procfs_mourn_inferior): Only unpush the target after mourning the
1243 inferior. Use inf_child_maybe_unpush_target.
1244 (procfs_init_inferior): Don't push the target if it is already
1246 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1247 if it is already pushed.
1249 2014-05-21 Pedro Alves <palves@redhat.com>
1251 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1252 and "procfs" targets are now called "native" instead.
1254 2014-05-21 Pedro Alves <palves@redhat.com>
1256 * go32-nat.c (go32_open): Delete.
1257 (go32_target): Don't override the to_open method.
1259 2014-05-21 Pedro Alves <palves@redhat.com>
1261 * nto-procfs.c (procfs_can_run): New function.
1262 (nto_procfs_ops): New global.
1263 (init_procfs_targets): New, based on procfs_target. Install
1264 "target native" in addition to "target procfs".
1265 (_initialize_procfs): Call init_procfs_targets instead of adding
1268 2014-05-21 Pedro Alves <palves@redhat.com>
1270 * windows-nat.c (windows_target): Don't override to_shortname,
1271 to_longname or to_doc.
1273 2014-05-21 Pedro Alves <palves@redhat.com>
1275 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1278 2014-05-21 Pedro Alves <palves@redhat.com>
1280 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1281 to_shortname, to_longname or to_doc.
1283 2014-05-21 Pedro Alves <palves@redhat.com>
1285 * go32-nat.c (go32_target): Don't override to_shortname,
1286 to_longname or to_doc.
1288 2014-05-21 Pedro Alves <palves@redhat.com>
1290 * inf-child.c (inf_child_open): Remove mention of "child".
1291 (inf_child_target): Rename target to "native" instead of "child".
1293 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1295 * Makefile.in (SFILES): Delete "regset.c".
1296 (COMMON_OBS): Delete "regset.o".
1298 * regset.h (regset_alloc): Delete prototype.
1300 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1302 * sparc-linux-tdep.c (sparc32_linux_gregset)
1303 (sparc32_linux_fpregset): New static regset structures.
1304 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1305 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1307 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1308 (sparc64_linux_fpregset): New static regset structures.
1309 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1310 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1311 New static regset structures.
1312 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1313 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1314 New static regset structures.
1315 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1316 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1317 New static regset structures.
1318 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1319 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1320 New static regset structures.
1321 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1323 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1325 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1326 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1327 register maps ("regmaps") from "*regset" to "*regmap". Do this
1328 for all regmap types and variables.
1329 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1330 (sparc32_linux_supply_core_gregset)
1331 (sparc32_linux_collect_core_gregset)
1332 (sparc32_linux_supply_core_fpregset)
1333 (sparc32_linux_collect_core_fpregset): Likewise.
1334 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1335 (sparc_gregmap, sparc_fpregmap): ... these.
1336 (sparc_supply_gregset, sparc_collect_gregset)
1337 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1338 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1339 (_initialize_sparc_nat): Rename regmaps.
1340 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1341 (sparc_gregmap, sparc_fpregmap): ... these.
1342 (sparc_supply_gregset, sparc_collect_gregset)
1343 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1344 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1346 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1347 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1349 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1351 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1352 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1353 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1355 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1356 (sparc32_bsd_fpregset): Rename to...
1357 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1358 (sparc32_bsd_fpregmap): ... these.
1359 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1360 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1361 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1362 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1363 (struct sparc_gregmap, struct sparc_fpregmap)
1364 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1365 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1366 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1367 (sparc32_supply_regset, sparc32_collect_gregset)
1368 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1370 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1371 (sparc64_linux_ptrace_gregmap): ... this.
1372 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1373 (_initialize_sparc64_linux_nat): Rename regmaps.
1374 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1375 (sparc64_linux_core_gregmap): ... this.
1376 (sparc64_linux_supply_core_gregset)
1377 (sparc64_linux_collect_core_gregset)
1378 (sparc64_linux_supply_core_fpregset)
1379 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1380 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1381 (sparc64_sol2_fpregset): Rename to...
1382 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1383 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1384 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1386 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1387 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1388 (sparc64_bsd_fpregset): Rename to...
1389 (struct sparc_gregmap, sparc64_sol2_gregmap)
1390 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1391 (sparc64_bsd_fpregmap): ... these.
1392 (sparc64_supply_gregset, sparc64_collect_gregset)
1393 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1395 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1396 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1397 (sparc64fbsd_gregmap): ... this.
1398 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1399 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1401 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1402 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1403 (sparc64nbsd_collect_fpregset): Likewise.
1404 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1405 (sparc64nbsd_gregmap): ... this.
1406 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1408 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1409 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1410 (sparc64obsd_gregmap): ... this.
1411 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1413 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1414 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1415 (sparc32nbsd_gregmap): ... this.
1416 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1419 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1421 * score-tdep.c (score7_linux_gregset): New static regset
1423 (score7_linux_regset_from_core_section): Remove dynamic regset
1425 (score_gdbarch_init): Drop allocation of tdep structure.
1426 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1428 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1430 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1432 (am33_regset_from_core_section): Remove dynamic regset
1435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1437 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1438 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1440 (mips_linux_regset_from_core_section): Remove dynamic regset
1442 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1443 'gregset64', 'fpregset', and 'fpregset64'.
1444 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1445 deleted tdep fields.
1447 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1451 (amd64_regset_from_core_section): Remove dynamic regset
1453 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1455 (amd64obsd_regset_from_core_section): Remove dynamic regset
1457 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1459 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1460 x86-common regset supply function.
1461 * i386-tdep.c (i386_collect_gregset): Make static.
1462 (i386_gregset): New global regset structure.
1463 (i386_fpregset, i386_xstateregset): New static regset structures.
1464 (i386_regset_from_core_section): Remove dynamic regset
1466 (i386_gdbarch_init): Remove initialization of tdep fields
1467 'gregset', 'fpregset', and 'xstateregset'.
1468 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1469 'fpregset', and 'xstateregset'.
1470 (i386_collect_gregset): Remove prototype.
1471 (i386_gregset): New declaration.
1472 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1474 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1480 (arm_linux_vfpregset): New static regset structures.
1481 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1483 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1484 and 'vfpregset' fields.
1486 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1489 (aarch64_linux_fpregset): New static regset structures.
1490 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1491 of regset structures.
1492 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1495 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1497 * regset.h (struct regset): Remove gdbarch field.
1498 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1499 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1500 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1502 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1503 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1504 (ppc32_linux_vsxregset): Likewise.
1505 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1506 via the regcache instead of the regset.
1507 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1508 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1509 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1510 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1513 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1516 Constify structures.
1517 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1518 (alphanbsd_aout_gregset): Likewise.
1519 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1520 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1522 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1523 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1525 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1526 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1527 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1528 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1529 * m88k-tdep.c (m88k_gregset): Likewise.
1530 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1531 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1532 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1533 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1534 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1535 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1536 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1537 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1538 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1540 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1541 * sh-tdep.h (sh_corefile_gregset): Likewise.
1542 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1543 * vax-tdep.c (vax_gregset): Likewise.
1545 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1547 Fix TLS access for -static -pthread.
1548 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1549 (try_thread_db_load_1): Initialize it.
1550 (thread_db_get_thread_local_address): Call it if LM is zero.
1551 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1552 * target.h (struct target_ops) (to_get_thread_local_address): Add
1553 load_module_addr comment.
1555 2014-05-21 Pedro Alves <palves@redhat.com>
1557 * dcache.c (dcache_read_memory_partial): If reading the cache line
1558 fails, fallback to reading just the memory the caller wanted.
1560 2014-05-20 Doug Evans <dje@google.com>
1562 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1563 instead of get_current_arch.
1565 2014-05-20 Pedro Alves <palves@redhat.com>
1567 * NEWS: Mention that compare-sections now works with all targets.
1569 * remote.c (PACKET_qCRC): New enum value.
1570 (remote_verify_memory): Don't send qCRC if the target has no
1571 execution. Use packet_support/packet_ok. If the target doesn't
1572 support the qCRC packet, fallback to a deep memory copy.
1573 (compare_sections_command): Say "target image" instead of "remote
1575 (_initialize_remote): Add PACKET_qCRC to the list of config
1576 packets that have no associated command. Extend comment.
1577 * target.c (simple_verify_memory, default_verify_memory): New
1579 * target.h (struct target_ops) <to_verify_memory>: Default to
1580 default_verify_memory.
1581 (simple_verify_memory): New declaration.
1582 * target-delegates.c: Regenerate.
1584 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1586 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1588 2014-05-20 Hui Zhu <hui@codesourcery.com>
1589 Yao Qi <yao@codesourcery.com>
1592 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1593 and change address of sp and pc.
1595 2014-05-19 Tom Tromey <tromey@redhat.com>
1597 * gdbtypes.c (rank_function): Use XNEWVEC.
1598 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1600 2014-05-19 Doug Evans <dje@google.com>
1602 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1603 build_type_unit_groups and moved closer to only caller. Remove
1604 arguments. All references updated. Remove outdated .gdb_index
1606 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1607 build_type_psymtabs_1.
1609 2014-05-19 Doug Evans <dje@google.com>
1611 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1612 n_type_unit_groups, all_type_unit_groups. All uses removed.
1613 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1614 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1615 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1616 (add_type_unit_group_to_table): Delete.
1618 2014-05-19 Doug Evans <dje@google.com>
1620 * eval.c (evaluate_subexp_standard): Add some comments.
1622 2014-05-17 Doug Evans <xdje42@gmail.com>
1624 * progspace.c (remove_program_space): Delete, unused.
1625 * progspace.h (remove_program_space): Ditto.
1627 2014-05-17 Doug Evans <xdje42@gmail.com>
1629 * inferior.c (prune_inferiors): Fix comment.
1630 (remove_inferior_command): Call prune_program_spaces.
1632 2014-05-16 Doug Evans <dje@google.com>
1634 New command line option -D.
1636 * main.c (set_gdb_data_directory): New function.
1637 (captured_main): Recognize -D. Flag error for --data-directory "".
1638 Call set_gdb_data_directory.
1639 (print_gdb_help): Print --data-directory, -D.
1640 * main.h (set_gdb_data_directory): Declare.
1641 * top.c (staged_gdb_datadir): New static global.
1642 (set_gdb_datadir): Call set_gdb_data_directory
1643 (show_gdb_datadir): New function.
1644 (init_main): Update init of data-directory parameter.
1646 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1648 Import the "dirfd" gnulib module.
1649 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1650 * gnulib/aclocal.m4: Update.
1651 * gnulib/config.in: Update.
1652 * gnulib/configure: Update.
1653 * gnulib/import/Makefile.am: Update.
1654 * gnulib/import/Makefile.in: Update.
1655 * gnulib/import/dirfd.c: New.
1656 * gnulib/import/m4/dirfd.m4: New.
1657 * gnulib/import/m4/gnulib-cache.m4: Update.
1658 * gnulib/import/m4/gnulib-comp.m4: Update.
1660 2014-05-16 Pierre Muller <muller@sourceware.org>
1661 Yao Qi <yao@codesourcery.com>
1663 * valprint.c (print_wchar): Move the code on checking whether
1664 W is a printable wide char to the default branch of switch
1665 statement below. Call wchar_printable instead of gdb_iswprint.
1667 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1669 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1670 ldr.w and ldrd instructions.
1672 2014-05-15 Doug Evans <dje@google.com>
1674 * dwarf2read.c (read_structure_type): Delete outdated comments.
1676 2014-05-14 Tom Tromey <tromey@redhat.com>
1678 * macrocmd.c (print_macro_definition): Reindent.
1680 2014-05-13 Doug Evans <xdje42@gmail.com>
1682 * python/py-cmd.c (cmdpy_completer): Add comment.
1683 (completers): Make const.
1685 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1687 * infrun.c (resume): Remove should_resume (unused). Move up
1688 declaration of resume_ptid.
1690 2014-05-13 Tom Tromey <tromey@redhat.com>
1692 * language.h (unop_type_check): Remove.
1693 (binop_type_check): Don't declare.
1695 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1697 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1698 call to regcache_raw_collect.
1700 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1702 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1703 mi_console->quote as the quoting character.
1705 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1707 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1709 2014-04-29 Tom Tromey <tromey@redhat.com>
1711 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1712 "show debug varobj".
1714 2014-05-07 Kyle McMartin <kyle@redhat.com>
1716 Pushed by Joel Brobecker <brobecker@adacore.com>.
1717 * aarch64-tdep.c (aarch64_software_single_step): New function.
1718 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1719 with aarch64_software_single_step.
1721 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1725 2014-05-05 Keith Seitz <keiths@redhat.com>
1727 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1728 variable or history value is successfully parsed.
1730 2014-05-05 Yao Qi <yao@codesourcery.com>
1731 Pedro Alves <palves@redhat.com>
1733 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1734 address of blocks that intersects the requested range. Trim
1735 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1737 * ctf.c (ctf_xfer_partial): Likewise.
1739 2014-05-05 Yao Qi <yao@codesourcery.com>
1741 * printcmd.c (display_command): Remove the check to
1742 target_has_execution.
1744 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1746 * ppcobsd-nat.c: Include "obsd-nat.h".
1747 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1749 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1751 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1753 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1754 and 16-bit signed and unsigned arguments. Update comment.
1755 (stap_parse_probe_arguments): Extend code to handle such
1756 arguments. Use warning instead of complaint to notify about
1757 unrecognized bitness.
1759 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1761 PR breakpoints/16889
1762 * stap-probe.c (stap_parse_probe_arguments): Simplify
1763 check for non-prefixed probes (i.e., probes whose
1764 arguments do not start with "N@"). Always set the
1765 argument type to a sane value.
1767 2014-05-01 David Taylor <dtaylor@emc.com>
1769 * remote.c (compare_sections_command): Add -r option to compare
1770 all loadable read-only sections.
1772 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1774 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1775 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1777 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1778 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1779 Remove unused CORE_ADDR argument. Update all callers.
1781 2014-04-29 Pedro Alves <palves@redhat.com>
1783 * remote.c (struct packet_config) <detect>: Extend comment.
1784 (add_packet_config_cmd): Don't set the config's detect or support
1786 (init_all_packet_configs): Also initialize the config's 'detect'
1788 (reset_all_packet_configs_support): New function.
1789 (remote_open_1): Call reset_all_packet_configs_support instead of
1790 init_all_packet_configs.
1791 (_initialize_remote): Initialize all packet configs. Assert that
1792 all packets have an associated command, except a few known
1795 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1797 * dwarf2read.c (read_subrange_type): Handle dynamic
1798 DW_AT_lower_bound attributes.
1800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1802 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1803 dynamic bounds before computing its upper bound.
1804 (ada_discrete_type_low_bound): Same as above with the lower bound.
1806 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1808 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1809 range types. Adjust the array handling implementation to
1810 take advantage of this change.
1811 (resolve_dynamic_range): New function, mostly extracted from
1812 resolve_dynamic_bounds.
1813 (resolve_dynamic_array): New function, mostly extracted from
1814 resolve_dynamic_bounds.
1815 (resolve_dynamic_bounds): Delete.
1816 (resolve_dynamic_type): Reimplement. Add handling of
1817 TYPE_CODE_RANGE types.
1819 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1821 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1822 handling of parallel ___XA types.
1824 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1826 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1827 unnecessary second call to static_unwrap_type.
1829 2014-04-27 Hui Zhu <hui@codesourcery.com>
1831 * stack.c (print_frame_info): Call do_gdb_disassembly with
1832 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1834 2014-04-26 Doug Evans <xdje42@gmail.com>
1836 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1838 2014-04-25 Pedro Alves <palves@redhat.com>
1841 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1842 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1843 and newline from built string.
1844 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1845 (linux_ptrace_attach_fail_reason): ... this.
1846 * linux-nat.c (linux_nat_attach): Adjust to use
1847 linux_ptrace_attach_fail_reason.
1849 2014-04-25 Pedro Alves <palves@redhat.com>
1851 * remote.c (struct remote_state): Remove multi_process_aware,
1852 non_stop_aware, cond_tracepoints, cond_breakpoints,
1853 breakpoint_commands, fast_tracepoints, static_tracepoints,
1854 install_in_trace, disconnected_tracing,
1855 enable_disable_tracepoints, string_tracing, and
1856 augmented_libraries_svr4_read fields.
1857 (remote_multi_process_p): Move further below in the file.
1858 (struct packet_config): Add comments.
1859 (update_packet_config): Delete function.
1860 (show_packet_config_cmd): Use packet_config_support.
1861 (add_packet_config_cmd): Use NULL as set callback.
1862 (packet_ok): "set remote foo-packet"-style commands no longer
1863 change config->supported -- adjust.
1864 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1865 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1866 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1867 (PACKET_QNonStop, PACKET_multiprocess_feature)
1868 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1869 (PACKET_DisconnectedTracing_feature)
1870 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1871 (set_remote_protocol_packet_cmd): Delete function.
1872 (packet_config_support, packet_support): New functions.
1873 (set_remote_protocol_Z_packet_cmd): Don't call
1874 update_packet_config.
1875 (remote_query_attached, remote_pass_signals)
1876 (remote_program_signals, remote_threads_info)
1877 (remote_threads_extra_info, remote_start_remote): Use
1879 (remote_start_remote): Use packet_config_support and
1881 (init_all_packet_configs): Set all packets to unknown support,
1882 instead of calling update_packet_config.
1883 (remote_check_symbols): Use packet_support.
1884 (remote_supported_packet): Unconditionally set the packet config's
1886 (remote_multi_process_feature, remote_non_stop_feature)
1887 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1888 (remote_breakpoint_commands_feature)
1889 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1890 (remote_install_in_trace_feature)
1891 (remote_disconnected_tracing_feature)
1892 (remote_enable_disable_tracepoint_feature)
1893 (remote_string_tracing_feature)
1894 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1895 (remote_protocol_features): Adjust to use remote_supported_packet
1896 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1897 "ConditionalTracepoints", "ConditionalBreakpoints",
1898 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1899 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1900 "EnableDisableTracepoints", and "tracenz".
1901 (remote_query_supported): Use packet_support.
1902 (remote_open_1): Adjust.
1903 (extended_remote_attach_1): Use packet_support. Switch on the
1904 result of packet_ok instead of checking whether the packet ended
1906 (remote_vcont_resume): Use packet_support.
1907 (remote_resume, remote_stop_ns, fetch_register_using_p)
1908 (remote_prepare_to_store, store_register_using_P)
1909 (check_binary_download, remote_write_bytes): Use packet_support.
1910 (remote_vkill): Use packet_support. Switch on the result of
1911 packet_ok instead of checking whether the packet ended up
1913 (extended_remote_supports_disable_randomization): Use
1915 (extended_remote_run): Switch on the result of packet_ok instead
1916 of checking whether the packet ended up disabled.
1917 (remote_insert_breakpoint, remote_remove_breakpoint)
1918 (remote_insert_watchpoint, remote_remove_watchpoint)
1919 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1921 (remote_search_memory): Use packet_config_support.
1922 (remote_get_thread_local_address, remote_get_tib_address)
1923 (remote_hostio_send_command, remote_can_execute_reverse): Use
1925 (remote_supports_cond_tracepoints)
1926 (remote_supports_cond_breakpoints)
1927 (remote_supports_fast_tracepoints)
1928 (remote_supports_static_tracepoints)
1929 (remote_supports_install_in_trace)
1930 (remote_supports_enable_disable_tracepoint)
1931 (remote_supports_string_tracing)
1932 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1933 the packet config says the feature is enabled or disabled.
1934 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1935 (remote_get_trace_status): Use packet_support.
1936 (remote_set_disconnected_tracing): Adjust to check whether the
1937 feature is enabled with packet_support.
1938 (remote_set_trace_buffer_size, remote_use_agent)
1939 (remote_can_use_agent, remote_supports_btrace): Use
1941 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1942 Use packet_config_support.
1943 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1944 the packet config says the feature is enabled or disabled.
1945 (set_range_stepping): Use packet_support.
1947 2014-04-25 Tom Tromey <tromey@redhat.com>
1949 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1952 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1954 * NEWS: Mention support for C99 variable length arrays.
1956 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1958 * ada-lang.c (standard_exc): Expand introductory comment.
1960 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1961 Walfred Tedeschi <walfred.tedeschi@intel.com>
1963 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1965 (amd64_linux_read_description): Add code to handle AVX512 xstate
1966 mask and return respective tdesc.
1967 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1968 and features/i386/x32-avx512-linux.c.
1969 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1970 (amd64_linux_core_read_description): Add code to handle AVX512
1971 xstate mask and return respective tdesc.
1972 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1973 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1975 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1976 (tdesc_amd64_avx512_linux): New prototype.
1977 (tdesc_x32_avx512_linux): Likewise.
1978 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1979 features/i386/x32-avx512.c.
1980 (amd64_ymm_avx512_names): New register names for pseudo
1982 (amd64_ymmh_avx512_names): New register names for raw registers
1984 (amd64_k_names): New register names for K registers.
1985 (amd64_zmmh_names): New register names for ZMM raw registers.
1986 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1987 (amd64_xmm_avx512_names): New register names for XMM16-31
1989 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1991 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1992 if feature is present.
1993 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1994 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1995 (AMD64_NUM_REGS): Adjust to new number of registers.
1996 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1997 registers supplied via XSTATE by AVX512 registers.
1998 (i386_linux_read_description): Add case for AVX512.
1999 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2000 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2001 (i386_linux_core_read_description): Add case for AVX512.
2002 (i386_linux_init_abi): Install supported register note section
2004 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2006 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2007 registers to be number of zmm7h + 1.
2008 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2009 * i386-tdep.c: Include features/i386/i386-avx512.c.
2010 (i386_zmm_names): Add ZMM pseudo register names array.
2011 (i386_zmmh_names): Add ZMM raw register names array.
2012 (i386_k_names): Add K raw register names array.
2013 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2014 registers. AVX512 has 16 more ZMM registers than there are YMM
2016 (i386_zmmh_regnum_p): Add function to look up register number of
2018 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2019 (i386_k_regnum_p): Likewise for K raw registers.
2020 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2021 registers added by AVX512.
2022 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2023 registers added by AVX512.
2024 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2026 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2027 (i386_pseudo_register_name): Add ZMM pseudo registers.
2028 (i386_zmm_type): Construct and return vector registers type for ZMM
2030 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2031 ZMM0-31 pseudo registers and K registers.
2032 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2033 and YMM16-31 registers from register cache.
2034 (i386_pseudo_register_write): Add code to write K, ZMM and
2036 (i386_register_reggroup_p): Add code to include/exclude AVX512
2037 registers in/from respective register groups.
2038 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2039 registers if feature is present in xcr0.
2040 (i386_gdbarch_init): Add code to initialize AVX512 feature
2041 variables in tdep structure, wire in pseudo registers and call
2042 initialize_tdesc_i386_avx512.
2043 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2045 (i386_regnum): Add AVX512 registers.
2046 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2047 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2048 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2049 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2051 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2052 (i386_ymm_avx512_regnum_p): Likewise.
2053 (i386_k_regnum_p): Likewise.
2054 (i386_zmm_regnum_p): Likewise.
2055 (i386_zmmh_regnum_p): Likewise.
2056 * i387-tdep.c : Update year in copyright notice.
2057 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2059 (XSAVE_YMM_AVX512_ADDR): New macro.
2060 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2062 (XSAVE_XMM_AVX512_ADDR): New macro.
2063 (xsave_avx512_k_offset): New table for K register offsets in
2065 (XSAVE_AVX512_K_ADDR): New macro.
2066 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2068 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2069 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2071 (i387_collect_xsave): Add code to collect AVX512 registers from
2073 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2074 of XMM16-31 registers.
2075 (I387_NUM_K_REGS): New define for number of K registers.
2076 (I387_K0_REGNUM): New define for K0 register number.
2077 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2078 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2079 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2081 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2082 (I387_XMM16_REGNUM): New define for XMM16 register number.
2083 (I387_YMM0_REGNUM): New define for YMM0 register number.
2084 (I387_KEND_REGNUM): New define for last K register number.
2085 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2086 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2088 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2090 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2092 * features/Makefile: Add AVX512 related files.
2093 * features/i386/32bit-avx512.xml: New file.
2094 * features/i386/64bit-avx512.xml: Likewise.
2095 * features/i386/amd64-avx512-linux.c: Likewise.
2096 * features/i386/amd64-avx512-linux.xml: Likewise.
2097 * features/i386/amd64-avx512.c: Likewise.
2098 * features/i386/amd64-avx512.xml: Likewise.
2099 * features/i386/i386-avx512-linux.c: Likewise.
2100 * features/i386/i386-avx512-linux.xml: Likewise.
2101 * features/i386/i386-avx512.c: Likewise.
2102 * features/i386/i386-avx512.xml: Likewise.
2103 * features/i386/x32-avx512-linux.c: Likewise.
2104 * features/i386/x32-avx512-linux.xml: Likewise.
2105 * features/i386/x32-avx512.c: Likewise.
2106 * features/i386/x32-avx512.xml: Likewise.
2107 * regformats/i386/amd64-avx512-linux.dat: New file.
2108 * regformats/i386/amd64-avx512.dat: Likewise.
2109 * regformats/i386/i386-avx512-linux.dat: Likewise.
2110 * regformats/i386/i386-avx512.dat: Likewise.
2111 * regformats/i386/x32-avx512-linux.dat: Likewise.
2112 * regformats/i386/x32-avx512.dat: Likewise.
2113 * NEWS: Add note about new support for AVX512.
2116 2014-04-23 Pedro Alves <palves@redhat.com>
2118 * breakpoint.c (insert_bp_location): Tolerate errors if the
2119 breakpoint is set in a user-loaded objfile.
2120 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2121 location is marked shlib_disabled. If the breakpoint is set in a
2122 user-loaded objfile is a GDB-side memory breakpoint, validate it
2123 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2124 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2126 * mem-break.c (memory_validate_breakpoint): New function.
2127 * objfiles.c (userloaded_objfile_contains_address_p): New
2129 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2130 * target.h (memory_validate_breakpoint): New declaration.
2132 2014-04-23 Pedro Alves <palves@redhat.com>
2134 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2135 the breakpoint is set in a shared library, only suppress
2136 errors for software breakpoints, not hardware breakpoints.
2138 2014-04-22 Pedro Alves <palves@redhat.com>
2140 * infrun.c (schedlock_applies): New function, factored out from
2141 find_thread_needs_step_over.
2142 (find_thread_needs_step_over): Use it.
2143 (switch_back_to_stepped_thread): Always clear trap_expected if the
2144 step over is finished. Return early if scheduler locking applies.
2145 Look for the stepping thread and a potential step-over thread with
2147 (currently_stepping_or_nexting_callback): Delete.
2149 2014-04-22 Nick Clifton <nickc@redhat.com>
2151 * NEWS: Mention that ARM sim now supports tracing.
2153 2014-04-22 Yao Qi <yao@codesourcery.com>
2155 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2157 * tracefile.c (tracefile_fetch_registers): ... it. New
2159 * tracefile.h (tracefile_fetch_registers): Declare.
2160 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2161 tracefile_fetch_registers.
2163 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2166 * windows-nat.c (thread_rec): Don't display a warning when
2167 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2168 fails for any reason, set th->suspended to -1, so that we don't
2169 try to resume such a thread. Also, don't return NULL in these
2170 cases, to avoid completely ruin the session due to "PC register is
2171 not available" error.
2172 (do_windows_fetch_inferior_registers): Check errors in
2173 GetThreadContext call.
2174 (windows_continue): Accept an additional argument KILLED; if not
2175 zero, ignore errors in the SetThreadContext call, since the
2176 inferior was killed and is shutting down.
2177 (windows_resume, get_windows_debug_event)
2178 (windows_create_inferior, windows_mourn_inferior)
2179 (windows_kill_inferior): All callers of windows_continue changed
2180 to adjust to its new calling sequence.
2182 2014-04-19 Yao Qi <yao@codesourcery.com>
2184 * ctf.c (ctf_open): Call post_create_inferior.
2186 2014-04-19 Yao Qi <yao@codesourcery.com>
2188 * ctf.c (handle_id): New static variable.
2189 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2190 value. Get the declaration of event "register" and get length
2191 of field "contents".
2193 2014-04-19 Yao Qi <yao@codesourcery.com>
2195 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2197 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2199 * valops.c (oload_method_static): Remove unnecessary argument
2200 METHOD. Update all callers.
2202 2014-04-18 Pedro alves <palves@redhat.com>
2203 Tom Tromey <tromey@redhat.com>
2206 * frame.c (get_prev_frame_1): Rename to ...
2207 (get_prev_frame_always): ... this, and make extern. Adjust.
2208 (skip_artificial_frames): Use get_prev_frame_always.
2209 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2210 (get_frame_unwind_stop_reason): Adjust to rename.
2211 * frame.h (get_prev_frame_always): Declare.
2212 * inline-frame.c: Include frame.h.
2213 (inline_frame_this_id): Use get_prev_frame_always.
2215 2014-04-18 Tristan Gingold <gingold@adacore.com>
2217 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2218 code by using bfd_mach_o_get_base_address.
2220 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2222 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2223 (spu_ax_pseudo_register_collect): New function.
2224 (spu_ax_pseudo_register_push_stack): Likewise.
2225 (spu_dwarf_reg_to_regnum): Likewise.
2226 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2228 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2230 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2231 Replace FRAME argument with FRAME_ID.
2232 * gdbarch.c, gdbarch.h: Regenerate.
2233 * findvar.c (default_value_from_register): Add GDBARCH argument;
2234 replace FRAME by FRAME_ID. No longer call get_frame_id.
2235 (value_from_register): Update call to gdbarch_value_from_register.
2236 * value.h (default_value_from_register): Update prototype.
2237 * s390-linux-tdep.c (s390_value_from_register): Update interface
2238 and call to default_value_from_register.
2239 * spu-tdep.c (spu_value_from_register): Likewise.
2241 * findvar.c (address_from_register): Remove TYPE argument.
2242 Do not call value_from_register; use gdbarch_value_from_register
2243 with null_frame_id instead.
2244 * value.h (address_from_register): Update prototype.
2245 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2246 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2247 address_from_register interface change.
2249 2014-04-17 Yao Qi <yao@codesourcery.com>
2251 * gdbtypes.h: Update comments to link to types and macros'
2254 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2256 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2258 2014-04-16 Keith Seitz <keiths@redhat.com>
2261 * dwarf2read.c (skip_one_die): Check that all relative-offset
2262 sibling DIEs fall within range of the current reader's buffer.
2263 (read_partial_die): Likewise.
2265 2014-04-16 Keith Seitz <keiths@redhat.com>
2268 * cp-namespace.c (lookup_symbol_file): If the type name of
2269 `this' is NULL, return immediately.
2271 2014-04-14 Keith Seitz <keiths@redhat.com>
2274 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2275 from symbol_matches_domain in symtab.c. All local callers
2276 of symbol_matches_domain updated.
2277 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2278 search STRUCT_DOMAIN.
2279 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2280 independently. standard_lookup will do that automatically.
2281 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2282 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2283 (cp_lookup_symbol_in_namespace): Likewise.
2284 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2285 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2286 may return a STRUCT_DOMAIN match.
2287 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2288 * cp-support.c: Include language.h.
2289 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2291 * psymtab.c (match_partial_symbol): Compare the requested
2292 domain with the symbol's domain directly.
2293 (lookup_partial_symbol): Likewise.
2294 * symtab.c (lookup_symbol_in_language): Explain when/why
2295 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2296 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2297 appropriate languages.
2298 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2299 and moved to ada-lang.c
2300 (lookup_block_symbol): Explain that this function only returns
2301 symbol matching the requested DOMAIN.
2302 Compare the requested domain with the symbol's domain directly.
2303 (iterate_over_symbols): Compare the requested domain with the
2304 symbol's domain directly.
2305 * symtab.h (symbol_matches_domain): Remove.
2307 2014-04-14 Tom Tromey <tromey@redhat.com>
2310 * c-exp.y (type_aggregate_p): New function.
2311 (qualified_name, classify_inner_name): Use it.
2312 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2313 and TYPE_TARGET_TYPE of an enum type.
2314 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2316 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2317 handle TYPE_DECLARED_CLASS.
2318 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2320 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2321 * valops.c (enum_constant_from_type): New function.
2322 (value_aggregate_elt): Use it.
2323 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2326 2014-04-14 Tom Tromey <tromey@redhat.com>
2328 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2329 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2331 * value.h (value_aggregate_elt): Update.
2333 2014-04-14 Tom Tromey <tromey@redhat.com>
2335 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2337 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2339 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2340 (evaluate_subexp_standard): Pass noside argument.
2341 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2342 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2343 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2344 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2345 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2347 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2349 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2350 points to a constant blob.
2352 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2354 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2355 property and store it as the high bound and flag the range accordingly.
2356 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2357 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2358 * gdbtypes.h (enum range_flags): New enum.
2359 (struct range_bounds): Add flags member.
2361 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2363 * c-typeprint.c (c_type_print_varspec_suffix): Added
2364 check for not yet resolved high bound. If unresolved, print
2365 "variable length" string to the console instead of random
2368 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2370 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2372 (ada_template_to_fixed_record_type_1): Likewise.
2373 (ada_to_fixed_type_1): Likewise.
2374 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2375 (cp_print_value): Likewise.
2376 * d-valprint.c (dynamic_array_type): Likewise.
2377 * findvar.c (address_of_variable): Likewise.
2378 * jv-valprint.c (java_value_print): Likewise.
2379 * valops.c (value_ind): Likewise.
2380 * value.c (coerce_ref): Likewise.
2382 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2384 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2385 value and retrieve the dynamic type size.
2387 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2389 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2390 passed to sizeof is dynamic evaluate the argument to compute the length.
2392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2393 Joel Brobecker <brobecker@adacore.com>
2395 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2396 (dwarf2_evaluate_property): New function.
2397 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2398 * dwarf2read.c (attr_to_dynamic_prop): New function.
2399 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2401 * gdbtypes.c: Include dwarf2loc.h.
2402 (is_dynamic_type): New function.
2403 (resolve_dynamic_type): New function.
2404 (resolve_dynamic_bounds): New function.
2405 (get_type_length): New function.
2406 (check_typedef): Use get_type_length to compute type length.
2407 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2408 (TYPE_LOW_BOUND_KIND): New macro.
2409 (is_dynamic_type): New function prototype.
2410 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2411 to resolve dynamic properties of the type. Update comment.
2412 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2414 2014-04-14 Richard Henderson <rth@redhat.com>
2416 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2418 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2419 Doug Evans <xdje42@gmail.com>
2421 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2422 dereference TYPE_CODE_REF values.
2424 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2426 Revert the following changes due to regressions:
2428 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2429 (dwarf2_evaluate_property): New function.
2430 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2431 * dwarf2read.c (attr_to_dynamic_prop): New function.
2432 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2434 * gdbtypes.c: Include dwarf2loc.h.
2435 (is_dynamic_type): New function.
2436 (resolve_dynamic_type): New function.
2437 (resolve_dynamic_bounds): New function.
2438 (get_type_length): New function.
2439 (check_typedef): Use get_type_length to compute type length.
2440 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2441 (TYPE_LOW_BOUND_KIND): New macro.
2442 (is_dynamic_type): New function prototype.
2443 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2444 to resolve dynamic properties of the type. Update comment.
2445 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2447 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2448 passed to sizeof is dynamic evaluate the argument to compute the length.
2450 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2451 value and retrieve the dynamic type size.
2453 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2454 (ada_template_to_fixed_record_type_1): Likewise.
2455 (ada_to_fixed_type_1): Likewise.
2456 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2457 (cp_print_value): Likewise.
2458 * d-valprint.c (dynamic_array_type): Likewise.
2459 * eval.c (evaluate_subexp_with_coercion): Likewise.
2460 * findvar.c (address_of_variable): Likewise.
2461 * jv-valprint.c (java_value_print): Likewise.
2462 * valops.c (value_ind): Likewise.
2463 * value.c (coerce_ref): Likewise.
2465 * c-typeprint.c (c_type_print_varspec_suffix): Added
2466 check for not yet resolved high bound. If unresolved, print
2467 "variable length" string to the console instead of random
2470 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2471 property and store it as the high bound and flag the range accordingly.
2472 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2473 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2474 * gdbtypes.h (enum range_flags): New enum.
2475 (struct range_bounds): Add flags member.
2477 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2478 points to a constant blob.
2480 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2481 (evaluate_subexp_standard): Pass noside argument.
2482 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2483 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2484 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2485 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2486 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2488 2014-04-11 Keith Seitz <keiths@redhat.com>
2491 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2492 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2495 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2497 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2498 (evaluate_subexp_standard): Pass noside argument.
2499 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2500 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2501 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2502 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2503 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2505 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2507 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2508 points to a constant blob.
2510 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2512 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2513 property and store it as the high bound and flag the range accordingly.
2514 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2515 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2516 * gdbtypes.h (enum range_flags): New enum.
2517 (struct range_bounds): Add flags member.
2519 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2521 * c-typeprint.c (c_type_print_varspec_suffix): Added
2522 check for not yet resolved high bound. If unresolved, print
2523 "variable length" string to the console instead of random
2526 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2528 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2529 (ada_template_to_fixed_record_type_1): Likewise.
2530 (ada_to_fixed_type_1): Likewise.
2531 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2532 (cp_print_value): Likewise.
2533 * d-valprint.c (dynamic_array_type): Likewise.
2534 * eval.c (evaluate_subexp_with_coercion): Likewise.
2535 * findvar.c (address_of_variable): Likewise.
2536 * jv-valprint.c (java_value_print): Likewise.
2537 * valops.c (value_ind): Likewise.
2538 * value.c (coerce_ref): Likewise.
2540 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2542 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2543 value and retrieve the dynamic type size.
2545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2547 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2548 passed to sizeof is dynamic evaluate the argument to compute the length.
2550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2552 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2553 (dwarf2_evaluate_property): New function.
2554 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2555 * dwarf2read.c (attr_to_dynamic_prop): New function.
2556 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2558 * gdbtypes.c: Include dwarf2loc.h.
2559 (is_dynamic_type): New function.
2560 (resolve_dynamic_type): New function.
2561 (resolve_dynamic_bounds): New function.
2562 (get_type_length): New function.
2563 (check_typedef): Use get_type_length to compute type length.
2564 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2565 (TYPE_LOW_BOUND_KIND): New macro.
2566 (is_dynamic_type): New function prototype.
2567 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2568 to resolve dynamic properties of the type. Update comment.
2569 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2571 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2573 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2574 declaring high/low bounds and change uses accordingly. Call
2575 create_range_type instead of create_static_range_type.
2576 * gdbtypes.c (create_range_type): New function.
2577 (create_range_type): Convert bounds into struct bound_prop and pass
2578 them to create_range_type.
2579 * gdbtypes.h (struct bound_prop): New struct.
2580 (create_range_type): New function prototype.
2581 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2582 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2583 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2585 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2589 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2590 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2591 * ada-lang.c: All uses of create_range_type updated.
2592 * coffread.c: All uses of create_range_type updated.
2593 * dwarf2read.c: All uses of create_range_type updated.
2594 * f-exp.y: All uses of create_range_type updated.
2595 * m2-valprint.c: All uses of create_range_type updated.
2596 * mdebugread.c: All uses of create_range_type updated.
2597 * stabsread.c: All uses of create_range_type updated.
2598 * valops.c: All uses of create_range_type updated.
2599 * valprint.c: All uses of create_range_type updated.
2601 2014-04-10 Pedro Alves <palves@redhat.com>
2603 * breakpoint.c (single_step_breakpoints)
2604 (single_step_gdbarch): Move up in the file.
2605 (one_breakpoint_xfer_memory): New function, factored out from ...
2606 (breakpoint_xfer_memory): ... here. Also process single-step
2609 2014-04-09 Tristan Gingold <gingold@adacore.com>
2611 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2613 (darwin_decode_exception_message): Free port only after use.
2615 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2617 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2618 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2619 when setting the size of call_length.
2621 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2623 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2624 dereference TYPE_CODE_REF values.
2626 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2628 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2629 end of warning message.
2631 2014-04-03 Doug Evans <dje@google.com>
2633 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2634 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2636 2014-04-02 Alan Modra <amodra@gmail.com>
2638 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2639 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2640 (struct symbol_file_add_from_memory_args): Add size field.
2641 (find_vdso_size): New function.
2642 (add_vsyscall_page): Attempt to find vdso size.
2644 2014-04-01 Doug Evans <dje@google.com>
2646 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2648 2014-04-01 Tristan Gingold <gingold@adacore.com>
2650 * darwin-nat.c (darwin_encode_reply): Add prototype.
2651 (darwin_decode_exception_message): Reply to unknown inferiors.
2652 (darwin_decode_message): Handle message by id. Ignore message
2653 to unknown inferior.
2654 (darwin_wait): Discard unknown messages, add debug trace.
2656 2014-03-31 Doug Evans <dje@google.com>
2658 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2661 2014-03-31 Doug Evans <dje@google.com>
2663 New option "set print symbol-loading".
2665 * solib.c (solib_read_symbols): Only print symbol loading messages
2667 (solib_add): If symbol loading is in "brief" mode, notify user
2668 symbols are being loaded.
2669 (reload_shared_libraries_1): Ditto.
2670 * symfile.c (print_symbol_loading_off): New static global.
2671 (print_symbol_loading_brief): New static global.
2672 (print_symbol_loading_full): New static global.
2673 (print_symbol_loading_enums): New static global.
2674 (print_symbol_loading): New static global.
2675 (print_symbol_loading_p): New function.
2676 (symbol_file_add_with_addrs): Only print symbol loading messages
2678 (_initialize_symfile): Register "print symbol-loading" set/show
2680 * symfile.h (print_symbol_loading_p): Declare.
2682 2014-03-30 Doug Evans <xdje42@gmail.com>
2684 * infrun.c (set_last_target_status): New function.
2685 (handle_inferior_event): Call it.
2687 2014-03-30 Doug Evans <xdje42@gmail.com>
2689 * inferior.h (enum stop_kind): Improve comment.
2691 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2693 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2694 a reference, strip the reference layer before calling
2695 the lang_ops value_has_mutated callback.
2697 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2699 Remove some globals from our parser.
2700 * language.c (unk_lang_parser): Add "struct parser_state"
2702 * language.h (struct language_defn) <la_parser>: Likewise.
2703 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2704 (initialize_expout): Add "struct parser_state" argument.
2705 Rewrite function to use the parser state.
2706 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2707 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2708 write_exp_elt_longcst, write_exp_elt_dblcst,
2709 write_exp_elt_decfloatcst, write_exp_elt_type,
2710 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2711 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2712 write_dollar_variable): Likewise.
2713 (parse_exp_in_context_1): Use parser state.
2714 (insert_type_address_space): Add "struct parser_state" argument.
2716 (increase_expout_size): New function.
2717 * parser-defs.h: Forward declare "struct language_defn" and
2718 "struct parser_state".
2719 (expout, expout_size, expout_ptr): Remove extern declarations.
2720 (parse_gdbarch, parse_language): Rewrite macro declarations to
2721 accept the parser state.
2722 (struct parser_state): New struct.
2723 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2724 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2725 write_exp_elt_decfloatcst, write_exp_elt_type,
2726 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2727 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2728 write_exp_msymbol, write_dollar_variable,
2729 mark_struct_expression, insert_type_address_space): Add "struct
2730 parser_state" argument.
2731 (increase_expout_size): New function.
2732 * utils.c (do_clear_parser_state): New function.
2733 (make_cleanup_clear_parser_state): Likewise.
2734 * utils.h (make_cleanup_clear_parser_state): New function
2736 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2737 Update calls to write_exp* in order to pass the parser state.
2738 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2739 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2740 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2741 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2742 * stap-probe.c (stap_parse_register_operand): Likewise.
2743 (stap_parse_single_operand): Likewise.
2744 (stap_parse_argument_1): Likewise.
2745 (stap_parse_argument): Use parser state.
2746 * stap-probe.h: Include "parser-defs.h".
2747 (struct stap_parse_info) <pstate>: New field.
2748 * c-exp.y (parse_type): Rewrite to use parser state.
2749 (yyparse): Redefine to c_parse_internal.
2750 (pstate): New global variable.
2751 (parse_number): Add "struct parser_state" argument.
2752 (write_destructor_name): Likewise.
2753 (type_exp): Update calls to write_exp* and similars in order to
2755 (exp1, exp, variable, qualified_name, space_identifier,
2756 typename, typebase): Likewise.
2757 (write_destructor_name, parse_number, lex_one_token,
2758 classify_name, classify_inner_name, c_parse): Add "struct
2759 parser_state" argument. Update function to use parser state.
2760 * c-lang.h: Forward declare "struct parser_state".
2761 (c_parse): Add "struct parser_state" argument.
2762 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2763 (yyparse): Redefine macro to ada_parse_internal.
2764 (pstate): New variable.
2765 (write_int, write_object_renaming, write_var_or_type,
2766 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2767 type_int, type_long, type_long_long, type_float, type_double,
2768 type_long_double, type_char, type_boolean, type_system_address):
2769 Add "struct parser_state" argument.
2770 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2771 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2772 var_or_type, aggregate, aggregate_component_list,
2773 positional_list, others, component_group,
2774 component_associations): Update calls to write_exp* and similar
2775 functions in order to use parser state.
2776 (ada_parse, write_var_from_sym, write_int,
2777 write_exp_op_with_string, write_object_renaming,
2778 find_primitive_type, write_selectors, write_ambiguous_var,
2779 write_var_or_type, write_name_assoc, type_int, type_long,
2780 type_long_long, type_float, type_double, type_long_double,
2781 type_char, type_boolean, type_system_address): Add "struct
2782 parser_state" argument. Adjust function to use parser state.
2783 * ada-lang.c (parse): Likewise.
2784 * ada-lang.h: Forward declare "struct parser_state".
2785 (ada_parse): Add "struct parser_state" argument.
2786 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2787 calls to both functions.
2788 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2790 (yyparse): Redefine macro to f_parse_internal.
2791 (pstate): New variable.
2792 (parse_number): Add "struct parser_state" argument.
2793 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2794 and similars in order to use parser state.
2795 (parse_number): Adjust code to use parser state.
2797 (f_parse): New function.
2798 * f-lang.h: Forward declare "struct parser_state".
2799 (f_parse): Add "struct parser_state" argument.
2800 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2802 (yyparse): Redefine macro for java_parse_internal.
2803 (pstate): New variable.
2804 (push_expression_name, push_expression_name, insert_exp): Add
2805 "struct parser_state" argument.
2806 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2807 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2808 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2809 PostIncrementExpression, PostDecrementExpression,
2810 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2811 UnaryExpressionNotPlusMinus, CastExpression,
2812 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2813 RelationalExpression, EqualityExpression, AndExpression,
2814 ExclusiveOrExpression, InclusiveOrExpression,
2815 ConditionalAndExpression, ConditionalOrExpression,
2816 ConditionalExpression, Assignment, LeftHandSide): Update
2817 calls to write_exp* and similars in order to use parser state.
2818 (parse_number): Ajust code to use parser state.
2820 (java_parse): New function.
2821 (push_variable): Add "struct parser_state" argument. Adjust
2822 code to user parser state.
2823 (push_fieldnames, push_qualified_expression_name,
2824 push_expression_name, insert_exp): Likewise.
2825 * jv-lang.h: Forward declare "struct parser_state".
2826 (java_parse): Add "struct parser_state" argument.
2827 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2829 (yyparse): Redefine macro to m2_parse_internal.
2830 (pstate): New variable.
2831 (type_exp, exp, fblock, variable, type): Update calls to
2832 write_exp* and similars to use parser state.
2834 (m2_parse): New function.
2835 * m2-lang.h: Forward declare "struct parser_state".
2836 (m2_parse): Add "struct parser_state" argument.
2837 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2838 * objc-lang.h: Forward declare "struct parser_state".
2839 (end_msglist): Add "struct parser_state" argument.
2840 * p-exp.y (parse_type): Rewrite macro to use parser state.
2841 (yyparse): Redefine macro to pascal_parse_internal.
2842 (pstate): New variable.
2843 (parse_number): Add "struct parser_state" argument.
2844 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2845 write_exp* and similars in order to use parser state.
2846 (parse_number, yylex): Adjust code to use parser state.
2847 (pascal_parse): New function.
2848 * p-lang.h: Forward declare "struct parser_state".
2849 (pascal_parse): Add "struct parser_state" argument.
2850 * go-exp.y (parse_type): Rewrite macro to use parser state.
2851 (yyparse): Redefine macro to go_parse_internal.
2852 (pstate): New variable.
2853 (parse_number): Add "struct parser_state" argument.
2854 (type_exp, exp1, exp, variable, type): Update calls to
2855 write_exp* and similars in order to use parser state.
2856 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2857 to use parser state.
2858 (go_parse): Likewise.
2859 * go-lang.h: Forward declare "struct parser_state".
2860 (go_parse): Add "struct parser_state" argument.
2862 2014-03-27 Doug Evans <dje@google.com>
2864 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2866 2014-03-27 Doug Evans <dje@google.com>
2868 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2869 Remove argument abbrev_section. All callers updated.
2871 2014-03-27 Doug Evans <dje@google.com>
2873 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2874 addr_base, ranges_base.
2876 2014-03-26 Keith Seitz <keiths@redhat.com>
2878 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2879 types, not VAR_DOMAIN.
2881 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2883 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2885 * features/nios2-linux.c: Regenerated.
2886 * features/nios2.c: Regenerated.
2888 2014-03-25 Pedro Alves <palves@redhat.com>
2890 * cli/cli-script.c (script_from_file): Force the interpreter to
2893 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2895 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2896 small stack allocation.
2898 2014-03-24 Tristan Gingold <gingold@adacore.com>
2900 * darwin-nat.c (exc_server): Remove unused prototype.
2901 (darwin_dump_message): Correctly display data on x86_64.
2902 (darwin_encode_reply): Fix style.
2903 Add comments and fix indentation.
2905 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2907 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2909 2014-03-22 Doug Evans <xdje42@gmail.com>
2911 * infcmd.c: Whitespace fixes.
2912 (interrupt_command): Merge two function comments into one.
2914 2014-03-22 Doug Evans <xdje42@gmail.com>
2916 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2919 2014-03-22 Yao Qi <yao@codesourcery.com>
2921 * remote.c (target_read_live_memory): Remove.
2922 (memory_xfer_live_readonly_partial): Rename it to
2923 remote_xfer_live_readonly_partial. Remove argument 'object'.
2924 All callers updated. Call remote_read_bytes_1
2925 instead of target_read_live_memory.
2926 * tracepoint.c (set_traceframe_number): Remove.
2927 (make_cleanup_restore_traceframe_number): Likewise .
2928 * tracepoint.h (set_traceframe_number): Remove declaration.
2929 (make_cleanup_restore_traceframe_number): Likewise.
2931 2014-03-22 Yao Qi <yao@codesourcery.com>
2933 * remote.c (remote_read_bytes): Move code on reading from the
2935 (remote_read_bytes_1): ... here. New function.
2937 2014-03-22 Yao Qi <yao@codesourcery.com>
2939 * ctf.c (ctf_xfer_partial): Check the return value of
2940 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2941 return TARGET_XFER_UNAVAILABLE.
2942 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2943 * target.c (target_read_live_memory): Move it to remote.c.
2944 (memory_xfer_live_readonly_partial): Likewise.
2945 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2946 * remote.c (target_read_live_memory): Moved from target.c.
2947 (memory_xfer_live_readonly_partial): Likewise.
2948 (remote_read_bytes): Factored out from
2949 memory_xfer_partial_1.
2951 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2953 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2956 2014-03-21 Pedro Alves <palves@redhat.com>
2958 * infrun.c (normal_stop): Extend comment.
2960 2014-03-21 Hui Zhu <hui@codesourcery.com>
2961 Pedro Alves <palves@redhat.com>
2963 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2965 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2966 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2967 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2969 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2971 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2972 `z' formatted output modifier.
2974 2014-03-20 Tom Tromey <tromey@redhat.com>
2975 Sergio Durigan Junior <sergiodj@redhat.com>
2977 * probe.c (parse_probes): Turn assert into an ordinary error.
2978 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2979 exceptions when parsing probes. Rearrange the code for clarity.
2981 2014-03-20 Tom Tromey <tromey@redhat.com>
2984 * top.c (execute_command): Only dispatch events if the command
2987 2014-03-20 Tom Tromey <tromey@redhat.com>
2990 * infcall.c: Include event-top.h.
2991 (run_inferior_call): Call async_disable_stdin if needed.
2993 2014-03-20 Pedro Alves <palves@redhat.com>
2995 * infrun.c (prepare_to_proceed): Delete.
2996 (thread_still_needs_step_over): New function.
2997 (find_thread_needs_step_over): New function.
2998 (proceed): If the current thread needs a step-over, set its
2999 steping_over_breakpoint flag. Adjust to use
3000 find_thread_needs_step_over instead of prepare_to_proceed.
3001 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3002 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3004 (switch_back_to_stepped_thread): Step over breakpoints of all
3005 threads not the stepping thread, before switching back to the
3008 2014-03-20 Pedro Alves <palves@redhat.com>
3010 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3012 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3013 * infrun.c (saved_singlestep_ptid)
3014 (stepping_past_singlestep_breakpoint): Delete.
3015 (resume): Remove stepping_past_singlestep_breakpoint handling.
3016 (proceed): Store the prev_pc of the stepping thread too.
3017 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3019 (enum infwait_states): Delete infwait_thread_hop_state.
3020 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3022 (handle_inferior_event): Adjust.
3023 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3024 handling and the thread-hop code. Before removing single-step
3025 breakpoints, check whether the thread hit a single-step breakpoint
3026 of another thread. If it did, the trap is not a random signal.
3027 (switch_back_to_stepped_thread): If the event thread hit a
3028 single-step breakpoint, unblock it before switching to the
3029 stepping thread. Handle the case of the stepped thread having
3031 (keep_going): Handle the case of the current thread moving past a
3032 single-step breakpoint.
3034 2014-03-20 Pedro Alves <palves@redhat.com>
3037 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3038 are being stepped over.
3039 (breakpoint_address_match): Make extern.
3040 * breakpoint.h (breakpoint_address_match): New declaration.
3041 * inferior.h (stepping_past_instruction_at): New declaration.
3042 * infrun.c (struct step_over_info): New type.
3043 (step_over_info): New global.
3044 (set_step_over_info, clear_step_over_info)
3045 (stepping_past_instruction_at): New functions.
3046 (handle_inferior_event): Clear the step-over info when
3047 trap_expected is cleared.
3048 (resume): Remove now stale comment.
3049 (clear_proceed_status): Clear step-over info.
3050 (proceed): Adjust step-over handling to set or clear the step-over
3051 info instead of removing all breakpoints.
3052 (handle_signal_stop): When setting up a thread-hop, don't remove
3054 (stop_stepping): Clear step-over info.
3055 (keep_going): Adjust step-over handling to set or clear step-over
3056 info and then always inserting breakpoints, instead of removing
3057 all breakpoints when stepping over one.
3059 2014-03-20 Pedro Alves <palves@redhat.com>
3061 * infrun.c (previous_inferior_ptid): Adjust comment.
3062 (deferred_step_ptid): Delete.
3063 (infrun_thread_ptid_changed, prepare_to_proceed)
3064 (init_wait_for_inferior): Adjust.
3065 (handle_signal_stop): Delete deferred_step_ptid handling.
3067 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3070 * defs.h (sync_quit_force_run): New declaration.
3071 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3072 * event-top.c (async_sigterm_handler): New declaration.
3073 (async_sigterm_token): New variable.
3074 (async_init_signals): Create also async_sigterm_token.
3075 (async_sigterm_handler): New function.
3076 (sync_quit_force_run): New variable.
3077 (handle_sigterm): Replace quit_force call by other calls.
3078 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3080 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3082 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3083 offset into SPE pseudo registers.
3085 2014-03-18 Pedro Alves <palves@redhat.com>
3088 * inferior.h (print_stop_event): Declare.
3089 * infrun.c (print_stop_event): New, factored out from ...
3090 (normal_stop): ... this.
3091 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3092 of bpstat_print/print_stack_frame.
3094 2014-03-17 Tom Tromey <tromey@redhat.com>
3096 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3098 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3100 * ada-lang.c (decode_constrained_packed_array): Perform a
3101 minimal coercion for reference with coerce_ref instead of
3104 2014-03-17 Tristan Gingold <gingold@adacore.com>
3106 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3107 (darwin_solib_create_inferior_hook): Emit a warning if version
3110 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3112 * python/py-value.c (get_field_flag): Cast flag_name argument to
3113 PyObject_GetAttrString to support Python 2.4.
3115 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3118 (Global Maintainers): Remove Jan Kratochvil.
3120 2014-03-14 Pedro Alves <palves@redhat.com>
3122 * inferior.h (terminal_ours_for_output): Rename to ...
3123 (child_terminal_ours_for_output): ... this.
3124 (terminal_save_ours): Rename to ...
3125 (child_terminal_save_ours): ... this.
3126 (terminal_ours): Rename to ...
3127 (child_terminal_ours): ... this.
3128 (terminal_inferior): Rename to ...
3129 (child_terminal_inferior): ... this.
3130 (terminal_init_inferior): Rename to ...
3131 (child_terminal_init_inferior): ... this.
3132 (terminal_init_inferior_with_pgrp): Rename to ...
3133 (child_terminal_init_inferior_with_pgrp): ... this.
3134 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3135 (child_terminal_init_with_pgrp): ... this.
3136 (terminal_save_ours): Rename to ...
3137 (child_terminal_save_ours): ... this.
3138 (terminal_init_inferior): Rename to ...
3139 (child_terminal_init): ... this. Adjust.
3140 (terminal_inferior): Rename to ...
3141 (child_terminal_inferior): ... this.
3142 (terminal_ours_for_output): Rename to ...
3143 (child_terminal_ours_for_output): ... this. Adjust.
3144 (terminal_ours): Rename to ...
3145 (child_terminal_ours): ... this.
3146 (terminal_ours_1): Rename to ...
3147 (child_terminal_ours_1): ... this. Adjust.
3148 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3149 * windows-nat.c (do_initial_windows_stuff): Adjust.
3150 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3151 (gnu_terminal_init): ... this. Adjust.
3152 (gnu_target): Adjust.
3153 * inf-child.c (inf_child_target): Adjust.
3155 2014-03-13 Doug Evans <xdje42@gmail.com>
3158 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3161 2014-03-13 Doug Evans <xdje42@gmail.com>
3163 * value.c (record_latest_value): Call release_value_or_incref
3164 instead of release_value.
3166 2014-03-13 Pedro Alves <palves@redhat.com>
3168 * procfs.c (procfs_target): Don't override to_shortname,
3169 to_longname or to_doc.
3171 2014-03-13 Pedro Alves <palves@redhat.com>
3173 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3174 Unix in user visible strings.
3176 2014-03-12 Stan Shebs <stan@codesourcery.com>
3178 * gdbtypes.h: Annotate comments for Doxygen, add a page
3179 block comment with some general info.
3181 2014-03-12 Pedro Alves <palves@redhat.com>
3183 * infcmd.c (prepare_execution_command): New function, factored out
3184 from several execution commands.
3185 (run_command_1, continue_command, step_1, jump_command)
3186 (signal_command, until_command, advance_command, finish_command)
3187 (attach_command): Use prepare_execution_command.
3189 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3191 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3194 (struct arm_linux_thread_points): Removed.
3195 (struct arm_linux_process_info): New.
3196 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3197 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3198 (arm_linux_find_breakpoints_by_tid): Removed.
3199 (struct arch_lwp_info): New.
3200 (arm_linux_find_process_pid): New functions.
3201 (arm_linux_add_process): New functions.
3202 (arm_linux_process_info_get): New functions.
3203 (arm_linux_forget_process): New function.
3204 (arm_linux_get_debug_reg_state): New function.
3205 (struct update_registers_data): New.
3206 (update_registers_callback): New function.
3207 (arm_linux_insert_hw_breakpoint1): Updated.
3208 (arm_linux_remove_hw_breakpoint1): Updated.
3209 (arm_linux_insert_hw_breakpoint): Updated.
3210 (arm_linux_remove_hw_breakpoint): Updated.
3211 (arm_linux_insert_watchpoint): Updated.
3212 (arm_linux_remove_watchpoint): Updated.
3213 (arm_linux_new_thread): Updated.
3214 (arm_linux_prepare_to_resume): New function.
3215 (arm_linux_new_fork): New function.
3216 (_initialize_arm_linux_nat): Updated.
3218 2014-03-12 Pedro Alves <palves@redhat.com>
3220 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3222 2014-03-12 Tom Tromey <tromey@redhat.com>
3224 * inf-child.c (return_zero): New function.
3225 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3226 * aix-thread.c (aix_thread_inferior_created): New function.
3227 (aix_thread_attach): Remove.
3228 (init_aix_thread_ops): Don't set to_attach.
3229 (_initialize_aix_thread): Register inferior_created observer.
3230 * corelow.c (init_core_ops): Don't set to_attach or
3232 * exec.c (init_exec_ops): Don't set to_attach or
3234 * infcmd.c (run_command_1): Use find_run_target. Make direct
3236 (attach_command): Use find_attach_target. Make direct target
3238 * record-btrace.c (init_record_btrace_ops): Don't set
3240 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3242 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3243 set to_create_inferior.
3244 * target.c (complete_target_initialization): Add assertion.
3245 (target_create_inferior): Remove.
3246 (find_default_attach, find_default_create_inferior): Remove.
3247 (find_attach_target, find_run_target): New functions.
3248 (find_default_is_async_p, find_default_can_async_p)
3249 (target_supports_non_stop, target_attach): Remove.
3250 (init_dummy_target): Don't set to_create_inferior or
3251 to_supports_non_stop.
3252 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3253 TARGET_DEFAULT_FUNC.
3254 <to_create_inferior>: Add comment.
3255 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3256 TARGET_DEFAULT_RETURN.
3257 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3258 (find_attach_target, find_run_target): Declare.
3259 (target_create_inferior): Remove.
3260 (target_has_execution_1): Update comment.
3261 (target_supports_non_stop): Remove.
3262 * target-delegates.c: Rebuild.
3264 2014-03-12 Pedro Alves <palves@redhat.com>
3266 * inf-child.h: Update comment to not mention Unix.
3268 2014-03-12 Pedro Alves <palves@redhat.com>
3270 * inf-child.c: Update top comment to not mention Unix. Add
3271 generic comment describing how this target is meant to be used.
3272 (inf_child_post_attach, inf_child_post_startup_inferior)
3273 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3276 2014-03-12 Pedro Alves <palves@redhat.com>
3278 * nto-procfs.c: Include inf-child.h.
3279 (procfs_ops): Delete global.
3280 (procfs_can_run): Delete method.
3281 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3282 target pointer instead of referencing procfs_ops.
3283 (procfs_prepare_to_store): Delete.
3284 (init_procfs_ops): Delete function.
3285 (procfs_target): New function, based on init_procfs_ops, but
3286 inherit inf_child_target.
3287 (_initialize_procfs): Use procfs_target.
3289 2014-03-12 Pedro Alves <palves@redhat.com>
3291 * windows-nat.c: Include inf-child.h.
3292 (windows_ops): Delete global.
3293 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3295 (init_windows_ops): Delete function.
3296 (windows_target): New function, based on init_windows_ops, but
3297 inherit inf_child_target.
3298 (_initialize_windows_nat): Use windows_target. Install x86
3299 specific target methods here.
3301 2014-03-10 Doug Evans <xdje42@gmail.com>
3303 * guile/guile.c (call_initialize_gdb_module): New function.
3304 (initialize_guile): Replace call to scm_init_guile with call to
3307 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3309 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3310 in call to TYPE_CODE macro.
3312 2014-03-10 Jerome Guitton <guitton@adacore.com>
3314 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3315 Resolve tagged types to full view.
3317 2014-03-10 Hui Zhu <hui@codesourcery.com>
3319 * target.h (target_insert_breakpoint): Remove "hardware" from its
3322 2014-03-07 Doug Evans <dje@google.com>
3324 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3326 2014-03-07 Doug Evans <dje@google.com>
3328 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3329 Remove unused local comp_dir_attr. Assert exactly one of
3330 stub_comp_unit_die, stub_comp_dir is non-NULL.
3332 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3334 * target.h (complete_target_initialization, add_target):
3337 2014-03-07 Pedro Alves <palves@redhat.com>
3339 * go32-nat.c: Include inf-child.h.
3340 (go32_ops): Delete global.
3341 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3343 (go32_create_inferior): Push the passed in target pointer instead
3344 of referencing go32_ops.
3345 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3346 (go32_target): New function, based on init_go32_ops, but inherit
3348 (_initialize_go32_nat): Use go32_target. Move parts of
3351 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3353 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3354 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3355 SYMBOL_VALUE_ADDRESS.
3356 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3358 2014-03-06 Yao Qi <yao@codesourcery.com>
3360 * breakpoint.c (get_tracepoint_by_number): Remove argument
3361 optional_p. All callers updated. Adjust comments. Update
3363 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3365 2014-03-06 Yao Qi <yao@codesourcery.com>
3367 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3368 early if get_number returns zero. Use 'p' instead of 'args'.
3370 2014-03-06 Yao Qi <yao@codesourcery.com>
3372 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3375 2014-03-06 Yao Qi <yao@codesourcery.com>
3377 PR breakpoints/16508
3378 * tracepoint.c (check_trace_running): New function.
3379 (trace_find_command): Move code to check_trace_running and
3380 call check_trace_running.
3381 (trace_find_pc_command): Likewise.
3382 (trace_find_tracepoint_command): Likewise.
3383 (trace_find_line_command): Likewise.
3384 (trace_find_range_command): Likewise.
3385 * tracepoint.h (check_trace_running): Likewise.
3386 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3388 2014-03-06 Yao Qi <yao@codesourcery.com>
3390 * target.h (struct target_ops) <to_traceframe_info>: Use
3391 TARGET_DEFAULT_NORETURN (tcomplain ()).
3392 * target-delegates.c: Regenerated.
3394 2014-03-05 Pedro Alves <palves@redhat.com>
3397 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3398 void. Update comment.
3399 (dcache_xfer_memory): Delete.
3400 (dcache_read_memory_partial): New, based on the read bits of
3402 (dcache_update): Add status parameter. Use ULONGEST for len, and
3403 adjust. Discard cache lines if the reason for the update was
3405 * dcache.h (dcache_xfer_memory): Delete declaration.
3406 (dcache_read_memory_partial): New declaration.
3407 (dcache_update): Update prototype.
3408 * target.c (raw_memory_xfer_partial): Update the dcache here.
3409 (memory_xfer_partial_1): Don't handle dcache writes here.
3411 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3413 * remote-sim.c (gdbsim_load): Add const to prog.
3415 2014-03-03 Tom Tromey <tromey@redhat.com>
3417 * elfread.c (probe_key): Change to bfd_data.
3418 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3419 now per-BFD, not per-objfile.
3420 * stap-probe.c (stap_probe_destroy): Update comment.
3421 (handle_stap_probe): Allocate on the per-BFD obstack.
3423 2014-03-03 Tom Tromey <tromey@redhat.com>
3425 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3426 * breakpoint.c (create_longjmp_master_breakpoint): Use
3428 (add_location_to_breakpoint, bkpt_probe_insert_location)
3429 (bkpt_probe_remove_location): Update.
3430 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3431 * elfread.c (elf_symfile_relocate_probe): Remove.
3432 (elf_probe_fns): Update.
3433 (insert_exception_resume_breakpoint): Change type of "probe"
3434 parameter to bound_probe.
3435 (check_exception_resume): Update.
3436 * objfiles.c (objfile_relocate1): Don't relocate probes.
3437 * probe.c (bound_probe_s): New typedef.
3438 (parse_probes): Use get_probe_address. Set sal's objfile.
3439 (find_probe_by_pc): Return a bound_probe.
3440 (collect_probes): Return a VEC(bound_probe_s).
3441 (compare_probes): Update.
3442 (gen_ui_out_table_header_info): Change type of "probes"
3444 (info_probes_for_ops): Update.
3445 (get_probe_address): New function.
3446 (probe_safe_evaluate_at_pc): Update.
3447 * probe.h (struct probe_ops) <get_probe_address>: New field.
3448 <set_semaphore, clear_semaphore>: Add objfile parameter.
3449 (struct probe) <objfile>: Remove field.
3451 <address>: Update comment.
3452 (struct bound_probe): New.
3453 (find_probe_by_pc): Return a bound_probe.
3454 (get_probe_address): Declare.
3455 * solib-svr4.c (struct probe_and_action) <address>: New field.
3456 (hash_probe_and_action, equal_probe_and_action): Update.
3457 (register_solib_event_probe): Add address parameter.
3458 (solib_event_probe_at): Update.
3459 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3461 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3462 (stap_get_probe_address): New function.
3463 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3464 (compile_probe_arg): Update.
3465 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3467 (handle_stap_probe): Don't relocate the probe.
3468 (stap_relocate): Remove.
3469 (stap_gen_info_probes_table_values): Update.
3470 (stap_probe_ops): Remove stap_relocate.
3471 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3472 (debug_sym_probe_fns): Update.
3473 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3474 * symtab.c (init_sal): Use memset.
3475 * symtab.h (struct symtab_and_line) <objfile>: New field.
3476 * tracepoint.c (start_tracing, stop_tracing): Update.
3478 2014-03-03 Tom Tromey <tromey@redhat.com>
3480 * probe.h (parse_probes, find_probe_by_pc)
3481 (find_probes_in_objfile): Fix comments.
3483 2014-03-02 Doug Evans <xdje42@gmail.com>
3485 * infrun.c (handle_signal_stop): Replace test for
3486 TARGET_WAITKIND_STOPPED with an assert.
3488 2014-03-02 Doug Evans <xdje42@gmail.com>
3490 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3492 2014-03-02 Doug Evans <xdje42@gmail.com>
3494 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3496 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3498 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3500 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3502 * i386obsd-nat.c: Include "obsd-nat.h".
3503 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3505 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3507 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3509 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3511 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3513 * mips64obsd-nat.c: Include "obsd-nath".
3514 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3516 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3518 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3520 * amd64obsd-nat.c: Include "obsd-nat,h.
3521 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3523 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3525 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3527 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3528 (find_overload_match): Update call to find_oload_champ.
3529 (find_oload_champ_namespace_loop): Likewise
3531 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3533 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3535 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3536 * config/sparc/obsd64.mh: New file.
3537 * sparc64obsd-nat.c: New file.
3539 * obsd-nat.h: New file.
3540 * obsd-nat.c: New file.
3541 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3542 (ALLDEPFILES): Add obsd-nat.c.
3544 2014-02-28 Tom Tromey <tromey@redhat.com>
3546 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3547 * cli-out.h (cli_ui_out_impl): Now const.
3548 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3549 * ui-out.c (struct ui_out) <impl>: Now const.
3550 (default_ui_out_impl): Now const.
3551 (ui_out_new): Make 'impl' parameter const.
3552 * ui-out.h (ui_out_new): Update.
3554 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3556 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3558 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3560 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3562 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3564 Additional PR 8882 fix.
3565 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3567 2014-02-27 Pedro Alves <palves@redhat.com>
3569 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3572 2014-02-27 Pedro Alves <palves@redhat.com>
3575 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3576 * nat/linux-waitpid.c: Include string.h.
3577 (status_to_str): Moved here and made extern.
3578 * nat/linux-waitpid.h (status_to_str): New declaration.
3580 2014-02-27 Hui Zhu <hui@codesourcery.com>
3583 * infrun.c (ptid_match): Move ...
3584 * common/ptid.c (ptid_match): ... here.
3585 * inferior.h (ptid_match): Move ...
3586 * common/ptid.h (ptid_match): ... here.
3588 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3590 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3591 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3594 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3596 * obsd-tdep.c (obsd_auxv_parse): New function.
3597 (obsd_init_abi): Set auxv_parse.
3599 * gdbarch.sh (auxv_parse): New.
3600 * gdbarch.h: Regenerated.
3601 * gdbarch.c: Regenerated.
3602 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3604 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3606 * guile/scm-value.c (gdbscm_history_append_x): New function.
3607 (value_functions): Add it.
3609 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3611 * dwarf2read.c (attr_value_as_address): New function.
3612 (dwarf2_find_base_address, read_call_site_scope): Use
3613 attr_value_as_address in place of DW_ADDR.
3614 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3615 the low and high addresses. Slight rework of the handling
3616 of the high pc being a constant form, and limit it to
3617 DWARF verson 4 or higher.
3618 (dwarf2_record_block_ranges): Likewise.
3619 (read_partial_die): Likewise.
3620 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3622 2014-02-26 Tom Tromey <tromey@redhat.com>
3624 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3626 2014-02-26 Tom Tromey <tromey@redhat.com>
3628 * elfread.c (elf_read_minimal_symbols): Return early if
3629 minimal symbols have already been read. Add "ei" parameter.
3630 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3631 * minsyms.c (prim_record_minimal_symbol_full): Update.
3632 * objfiles.h (struct objstats) <n_minsyms>: Move...
3633 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3634 * symmisc.c (print_objfile_statistics): Update.
3636 2014-02-26 Tom Tromey <tromey@redhat.com>
3638 * elfread.c (elf_read_minimal_symbols): New function, from
3640 (elf_symfile_read): Call it.
3642 2014-02-26 Tom Tromey <tromey@redhat.com>
3644 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3645 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3646 (lookup_minimal_symbol_solib_trampoline)
3647 (lookup_minimal_symbol_by_pc_section_1)
3648 (lookup_minimal_symbol_and_objfile): Update.
3649 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3650 Don't allocate a minimal symbol if minsyms have already been read.
3651 (build_minimal_symbol_hash_tables): Update.
3652 (install_minimal_symbols): Do nothing if minsyms already read.
3653 Use the per-BFD obstack.
3654 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3655 * objfiles.c (allocate_objfile): Call
3656 terminate_minimal_symbol_table later.
3657 (have_minimal_symbols): Update.
3658 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3659 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3660 Move from struct objfile.
3661 <minsyms_read>: New field.
3662 (struct objfile) <msymbols, minimal_symbol_count,
3663 msymbol_hash, msymbol_demangled_hash>: Move.
3664 (ALL_OBJFILE_MSYMBOLS): Update.
3665 * symfile.c (read_symbols): Set minsyms_read.
3666 (reread_symbols): Update.
3667 * symmisc.c (dump_objfile, dump_msymbols): Update.
3669 2014-02-26 Tom Tromey <tromey@redhat.com>
3671 * minsyms.c (msymbols_sort): Remove.
3672 * minsyms.h (msymbols_sort): Remove.
3673 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3674 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3675 * elfread.c (elf_symtab_read): Don't add section offsets.
3676 * xcoffread.c (record_minimal_symbol): Don't add section offset
3677 to minimal symbol address.
3678 * somread.c (text_offset, data_offset): Remove.
3679 (som_symtab_read): Don't add section offsets to minimal symbol
3681 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3682 Don't add section offsets to minimal symbols.
3683 * coffread.c (coff_symtab_read): Don't add section offsets
3684 to minimal symbol addresses.
3685 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3686 to minimal symbol addresses.
3687 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3688 section offset to minimal symbol addresses.
3689 * mdebugread.c (parse_partial_symbols): Don't add section
3690 offset to minimal symbol addresses.
3691 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3692 offset to minimal symbol addresses.
3694 2014-02-26 Tom Tromey <tromey@redhat.com>
3696 * ada-lang.c (ada_main_name): Update.
3697 (ada_add_standard_exceptions): Update.
3698 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3699 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3700 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3701 * auxv.c (ld_so_xfer_auxv): Update.
3702 * avr-tdep.c (avr_scan_prologue): Update.
3703 * ax-gdb.c (gen_var_ref): Update.
3704 * blockframe.c (get_pc_function_start)
3705 (find_pc_partial_function_gnu_ifunc): Update.
3706 * breakpoint.c (create_overlay_event_breakpoint)
3707 (create_longjmp_master_breakpoint)
3708 (create_std_terminate_master_breakpoint)
3709 (create_exception_master_breakpoint): Update.
3710 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3711 * c-valprint.c (c_val_print): Update.
3712 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3713 * common/agent.c (agent_look_up_symbols): Update.
3714 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3715 * dwarf2loc.c (call_site_to_target_addr): Update.
3716 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3717 * elfread.c (elf_gnu_ifunc_record_cache)
3718 (elf_gnu_ifunc_resolve_by_got): Update.
3719 * findvar.c (default_read_var_value): Update.
3720 * frame.c (inside_main_func): Update.
3721 * frv-tdep.c (frv_frame_this_id): Update.
3722 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3723 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3725 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3726 (hppa_hpux_find_dummy_bpaddr): Update.
3727 * hppa-tdep.c (hppa_symbol_address): Update.
3728 * infcmd.c (until_next_command): Update.
3729 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3731 * linespec.c (minsym_found, add_minsym): Update.
3732 * linux-nat.c (get_signo): Update.
3733 * linux-thread-db.c (inferior_has_bug): Update.
3734 * m32c-tdep.c (m32c_return_value)
3735 (m32c_m16c_address_to_pointer): Update.
3736 * m32r-tdep.c (m32r_frame_this_id): Update.
3737 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3738 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3739 * maint.c (maintenance_translate_address): Update.
3740 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3741 (frob_address): New function.
3742 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3743 frob_address. Rename parameter to "pc_in".
3744 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3746 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3748 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3749 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3750 * objc-lang.c (find_objc_msgsend): Update.
3751 * objfiles.c (objfile_relocate1): Update.
3752 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3753 * p-valprint.c (pascal_val_print): Update.
3754 * parse.c (write_exp_msymbol): Update.
3755 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3756 (ppc_elfv2_skip_entrypoint): Update.
3757 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3758 * printcmd.c (build_address_symbolic, msym_info)
3759 (address_info): Update.
3760 * proc-service.c (ps_pglobal_lookup): Update.
3761 * psymtab.c (find_pc_sect_psymtab_closer)
3762 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3763 Change msymbol parameter to bound_minimal_symbol.
3764 * ravenscar-thread.c (get_running_thread_id): Update.
3765 * remote.c (remote_check_symbols): Update.
3766 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3768 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3769 * solib-dsbt.c (lm_base): Update.
3770 * solib-frv.c (lm_base, main_got): Update.
3771 * solib-irix.c (locate_base): Update.
3772 * solib-som.c (som_solib_create_inferior_hook)
3773 (link_map_start): Update.
3774 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3775 * solib-svr4.c (elf_locate_base, enable_break): Update.
3776 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3777 (flush_ea_cache): Update.
3778 * stabsread.c (define_symbol, scan_file_globals): Update.
3779 * stack.c (find_frame_funname): Update.
3780 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3781 (debug_qf_find_pc_sect_symtab): Update.
3782 * symfile.c (simple_read_overlay_table)
3783 (simple_overlay_update): Update.
3784 * symfile.h (struct quick_symbol_functions)
3785 <find_pc_sect_symtab>: Change type of msymbol to
3786 bound_minimal_symbol.
3787 * symmisc.c (dump_msymbols): Update.
3788 * symtab.c (find_pc_sect_symtab_via_partial)
3789 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3790 (search_symbols, print_msymbol_info): Update.
3791 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3792 (MSYMBOL_VALUE_ADDRESS): Redefine.
3793 (BMSYMBOL_VALUE_ADDRESS): New macro.
3794 * tracepoint.c (scope_info): Update.
3795 * tui/tui-disasm.c (tui_find_disassembly_address)
3796 (tui_get_begin_asm_address): Update.
3797 * valops.c (find_function_in_inferior): Update.
3798 * value.c (value_static_field, value_fn_field): Update.
3800 2014-02-26 Tom Tromey <tromey@redhat.com>
3802 * ada-lang.c (ada_update_initial_language): Update.
3803 (ada_main_name, ada_has_this_exception_support): Update.
3804 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3805 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3806 * arm-tdep.c (arm_skip_stub): Update.
3807 * auxv.c (ld_so_xfer_auxv): Update.
3808 * avr-tdep.c (avr_scan_prologue): Update.
3809 * ax-gdb.c (gen_var_ref): Update.
3810 * breakpoint.c (struct breakpoint_objfile_data)
3811 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3812 type to bound_minimal_symbol.
3813 (create_overlay_event_breakpoint)
3814 (create_longjmp_master_breakpoint)
3815 (create_std_terminate_master_breakpoint)
3816 (create_exception_master_breakpoint): Update.
3817 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3818 * c-exp.y (classify_name): Update.
3819 * coffread.c (coff_symfile_read): Update.
3820 * common/agent.c (agent_look_up_symbols): Update.
3821 * d-lang.c (d_main_name): Update.
3822 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3823 * dec-thread.c (enable_dec_thread): Update.
3824 * dwarf2loc.c (call_site_to_target_addr): Update.
3825 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3826 * eval.c (evaluate_subexp_standard): Update.
3827 * findvar.c (struct minsym_lookup_data) <result>: Change type
3828 to bound_minimal_symbol.
3830 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3831 * frame.c (inside_main_func): Update.
3832 * frv-tdep.c (frv_frame_this_id): Update.
3833 * gcore.c (call_target_sbrk): Update.
3834 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3835 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3837 * go-lang.c (go_main_name): Update.
3838 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3839 (hppa_hpux_find_import_stub_for_addr): Update.
3840 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3841 Update. Change return type.
3842 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3844 * jit.c (jit_breakpoint_re_set_internal): Update.
3845 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3847 * linux-nat.c (get_signo): Update.
3848 * linux-thread-db.c (inferior_has_bug): Update
3849 * m32c-tdep.c (m32c_return_value)
3850 (m32c_m16c_address_to_pointer): Update.
3851 * m32r-tdep.c (m32r_frame_this_id): Update.
3852 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3853 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3854 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3855 lookup_minimal_symbol. Change return type.
3856 (lookup_minimal_symbol): Remove.
3857 (lookup_bound_minimal_symbol): Update.
3858 (lookup_minimal_symbol_text): Change return type.
3859 (lookup_minimal_symbol_solib_trampoline): Change return type.
3860 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3861 (lookup_minimal_symbol_solib_trampoline): Change return type.
3862 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3863 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3864 (value_nsstring, find_imps): Update.
3865 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3866 * p-lang.c (pascal_main_name): Update.
3867 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3868 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3869 * proc-service.c (ps_pglobal_lookup): Update.
3870 * ravenscar-thread.c (get_running_thread_msymbol): Change
3872 (has_ravenscar_runtime, get_running_thread_id): Update.
3873 * remote.c (remote_check_symbols): Update.
3874 * sol-thread.c (ps_pglobal_lookup): Update.
3875 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3876 * solib-dsbt.c (lm_base): Update.
3877 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3879 * solib-irix.c (locate_base): Update.
3880 * solib-som.c (som_solib_create_inferior_hook)
3881 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3883 * solib-spu.c (spu_enable_break): Update.
3884 * solib-svr4.c (elf_locate_base, enable_break): Update.
3885 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3886 (flush_ea_cache): Update.
3887 * stabsread.c (define_symbol): Update.
3888 * symfile.c (simple_read_overlay_table): Update.
3889 * symtab.c (find_pc_sect_line): Update.
3890 * tracepoint.c (scope_info): Update.
3891 * tui-disasm.c (tui_get_begin_asm_address): Update.
3892 * value.c (value_static_field): Update.
3894 2014-02-26 Tom Tromey <tromey@redhat.com>
3896 * minsyms.c (prim_record_minimal_symbol_full): Use
3897 SET_MSYMBOL_VALUE_ADDRESS.
3898 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3899 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3900 SET_MSYMBOL_VALUE_ADDRESS.
3901 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3902 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3904 2014-02-26 Tom Tromey <tromey@redhat.com>
3906 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3907 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3908 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3909 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3910 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3911 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3912 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3913 * ada-lang.c (ada_main_name): Update.
3914 (ada_lookup_simple_minsym): Update.
3915 (ada_make_symbol_completion_list): Update.
3916 (ada_add_standard_exceptions): Update.
3917 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3918 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3919 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3920 * arm-tdep.c (skip_prologue_function): Update.
3921 (arm_skip_stack_protector, arm_skip_stub): Update.
3922 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3923 (arm_wince_skip_main_prologue): Update.
3924 * auxv.c (ld_so_xfer_auxv): Update.
3925 * avr-tdep.c (avr_scan_prologue): Update.
3926 * ax-gdb.c (gen_var_ref): Update.
3927 * block.c (call_site_for_pc): Update.
3928 * blockframe.c (get_pc_function_start): Update.
3929 (find_pc_partial_function_gnu_ifunc): Update.
3930 * breakpoint.c (create_overlay_event_breakpoint): Update.
3931 (create_longjmp_master_breakpoint): Update.
3932 (create_std_terminate_master_breakpoint): Update.
3933 (create_exception_master_breakpoint): Update.
3934 (resolve_sal_pc): Update.
3935 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3936 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3938 * c-valprint.c (c_val_print): Update.
3939 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3940 * coffread.c (coff_symfile_read): Update.
3941 * common/agent.c (agent_look_up_symbols): Update.
3942 * dbxread.c (find_stab_function_addr): Update.
3943 (end_psymtab): Update.
3944 * dwarf2loc.c (call_site_to_target_addr): Update.
3945 (func_verify_no_selftailcall): Update.
3946 (tailcall_dump): Update.
3947 (call_site_find_chain_1): Update.
3948 (dwarf_expr_reg_to_entry_parameter): Update.
3949 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3950 (elf_gnu_ifunc_resolve_by_got): Update.
3951 * f-valprint.c (info_common_command): Update.
3952 * findvar.c (read_var_value): Update.
3953 * frame.c (get_prev_frame_1): Update.
3954 (inside_main_func): Update.
3955 * frv-tdep.c (frv_skip_main_prologue): Update.
3956 (frv_frame_this_id): Update.
3957 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3958 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3959 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3960 (gnuv3_skip_trampoline): Update.
3961 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3962 (hppa64_hpux_in_solib_call_trampoline): Update.
3963 (hppa_hpux_skip_trampoline_code): Update.
3964 (hppa64_hpux_search_dummy_call_sequence): Update.
3965 (hppa_hpux_find_import_stub_for_addr): Update.
3966 (hppa_hpux_find_dummy_bpaddr): Update.
3967 * hppa-tdep.c (hppa_symbol_address)
3968 (hppa_lookup_stub_minimal_symbol): Update.
3969 * i386-tdep.c (i386_skip_main_prologue): Update.
3970 (i386_pe_skip_trampoline_code): Update.
3971 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3972 * infcall.c (get_function_name): Update.
3973 * infcmd.c (until_next_command): Update.
3974 * jit.c (jit_breakpoint_re_set_internal): Update.
3975 (jit_inferior_init): Update.
3976 * linespec.c (minsym_found): Update.
3977 (add_minsym): Update.
3978 * linux-fork.c (info_checkpoints_command): Update.
3979 * linux-nat.c (get_signo): Update.
3980 * linux-thread-db.c (inferior_has_bug): Update.
3981 * m32c-tdep.c (m32c_return_value): Update.
3982 (m32c_m16c_address_to_pointer): Update.
3983 (m32c_m16c_pointer_to_address): Update.
3984 * m32r-tdep.c (m32r_frame_this_id): Update.
3985 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3986 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3987 * maint.c (maintenance_translate_address): Update.
3988 * minsyms.c (add_minsym_to_hash_table): Update.
3989 (add_minsym_to_demangled_hash_table): Update.
3990 (msymbol_objfile): Update.
3991 (lookup_minimal_symbol): Update.
3992 (iterate_over_minimal_symbols): Update.
3993 (lookup_minimal_symbol_text): Update.
3994 (lookup_minimal_symbol_by_pc_name): Update.
3995 (lookup_minimal_symbol_solib_trampoline): Update.
3996 (lookup_minimal_symbol_by_pc_section_1): Update.
3997 (lookup_minimal_symbol_and_objfile): Update.
3998 (prim_record_minimal_symbol_full): Update.
3999 (compare_minimal_symbols): Update.
4000 (compact_minimal_symbols): Update.
4001 (build_minimal_symbol_hash_tables): Update.
4002 (install_minimal_symbols): Update.
4003 (terminate_minimal_symbol_table): Update.
4004 (find_solib_trampoline_target): Update.
4005 (minimal_symbol_upper_bound): Update.
4006 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4007 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4008 (mips_skip_pic_trampoline_code): Update.
4009 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4010 * objc-lang.c (selectors_info): Update.
4011 (classes_info): Update.
4012 (find_methods): Update.
4013 (find_imps): Update.
4014 (find_objc_msgsend): Update.
4015 * objfiles.c (objfile_relocate1): Update.
4016 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4017 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4018 * p-valprint.c (pascal_val_print): Update.
4019 * parse.c (write_exp_msymbol): Update.
4020 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4021 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4022 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4023 * printcmd.c (build_address_symbolic): Update.
4025 (address_info): Update.
4026 * proc-service.c (ps_pglobal_lookup): Update.
4027 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4028 (find_pc_sect_psymtab): Update.
4029 * python/py-framefilter.c (py_print_frame): Update.
4030 * ravenscar-thread.c (get_running_thread_id): Update.
4031 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4033 * remote.c (remote_check_symbols): Update.
4034 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4035 (rs6000_skip_trampoline_code): Update.
4036 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4037 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4038 * solib-dsbt.c (lm_base): Update.
4039 * solib-frv.c (lm_base): Update.
4041 * solib-irix.c (locate_base): Update.
4042 * solib-som.c (som_solib_create_inferior_hook): Update.
4043 (som_solib_desire_dynamic_linker_symbols): Update.
4044 (link_map_start): Update.
4045 * solib-spu.c (spu_enable_break): Update.
4046 (ocl_enable_break): Update.
4047 * solib-svr4.c (elf_locate_base): Update.
4048 (enable_break): Update.
4049 * spu-tdep.c (spu_get_overlay_table): Update.
4050 (spu_catch_start): Update.
4051 (flush_ea_cache): Update.
4052 * stabsread.c (define_symbol): Update.
4053 (scan_file_globals): Update.
4054 * stack.c (find_frame_funname): Update.
4055 (frame_info): Update.
4056 * symfile.c (simple_read_overlay_table): Update.
4057 (simple_overlay_update): Update.
4058 * symmisc.c (dump_msymbols): Update.
4059 * symtab.c (fixup_section): Update.
4060 (find_pc_sect_line): Update.
4061 (skip_prologue_sal): Update.
4062 (search_symbols): Update.
4063 (print_msymbol_info): Update.
4064 (rbreak_command): Update.
4065 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4066 (completion_list_objc_symbol): Update.
4067 (default_make_symbol_completion_list_break_on): Update.
4068 * tracepoint.c (scope_info): Update.
4069 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4070 (tui_get_begin_asm_address): Update.
4071 * valops.c (find_function_in_inferior): Update.
4072 * value.c (value_static_field): Update.
4073 (value_fn_field): Update.
4075 2014-02-26 Tom Tromey <tromey@redhat.com>
4077 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4078 bound minimal symbols. Move code that knows about minsym
4080 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4082 * minsyms.h (minimal_symbol_upper_bound): Declare.
4083 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4084 minimal_symbol_upper_bound.
4086 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4088 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4089 Use the type's name if its basic type does not have a tag.
4091 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4093 * dwarf2read.c (read_subrange_type): Add comment.
4095 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4097 * dwarf2read.c (update_enumeration_type_from_children): New
4098 function, mostly extracted from process_structure_scope.
4099 (read_enumeration_type): Call update_enumeration_type_from_children.
4100 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4101 and flag_flag_enum fields.
4103 2014-02-26 Pedro Alves <palves@redhat.com>
4105 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4106 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4107 to_xfer_partial method.
4109 2014-02-26 Pedro Alves <palves@redhat.com>
4111 * target.c (complete_target_initialization): Don't install
4112 default_xfer_partial as to_xfer_partial hook.
4114 (update_current_target): Don't INHERIT nor de_fault
4115 deprecated_xfer_memory. Delete de_fault macro.
4116 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4117 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4118 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4121 2014-02-26 Pedro Alves <palves@redhat.com>
4123 * go32-nat.c (my_write_child): New function.
4124 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4125 (go32_xfer_partial): New function.
4126 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4127 Instead install a to_xfer_partial hook.
4129 2014-02-26 Pedro Alves <palves@redhat.com>
4131 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4132 to_xfer_partial helper. Rewrite.
4133 (procfs_xfer_partial): New function.
4134 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4135 Install a to_xfer_partial hook.
4137 2014-02-26 Pedro Alves <palves@redhat.com>
4139 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4140 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4141 (m32r_xfer_partial): New function.
4142 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4143 Install a to_xfer_partial hook.
4145 2014-02-26 Pedro Alves <palves@redhat.com>
4147 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4149 (mips_xfer_partial): New function.
4150 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4151 hook. Install a to_xfer_partial hook.
4153 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4155 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4156 * gdbtypes.c (create_array_type_with_stride): New function,
4157 renaming create_array_type, but with an added parameter
4158 called "bit_stride".
4159 (create_array_type): Re-implement using
4160 create_array_type_with_stride.
4161 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4162 and DW_AT_bit_stride attributes.
4164 2014-02-26 Pedro Alves <palves@redhat.com>
4166 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4167 task-specific breakpoints.
4169 2014-02-25 Pedro Alves <palves@redhat.com>
4171 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4172 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4174 2014-02-25 Stan Shebs <stan@codesourcery.com>
4176 * defs.h: Annotate comments for Doxygen.
4178 2014-02-25 Tom Tromey <tromey@redhat.com>
4180 * target.h (target_ignore): Don't declare.
4181 * target.c (target_ignore): Remove.
4183 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4186 * auto-load.c (auto_load_objfile_script_1): Change filename to
4189 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4191 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4192 documentation. Adjust prototype to match the target_ops
4193 to_xfer_partial method. Adjust implementation accordingly.
4195 2014-02-25 Hui Zhu <hui@codesourcery.com>
4197 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4200 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4202 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4203 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4204 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4205 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4206 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4207 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4208 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4209 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4211 (rl78_register_type): Use a data pointer type for SP and
4212 new pseudo registers mentioned above. Use a 16 bit integer
4213 type for all other register pairs.
4214 (rl78_register_name, rl78_g10_register_name): Update for
4215 new pseudo registers.
4216 (rl78_pseudo_register_read): Likewise.
4217 (rl78_pseudo_register_write): Likewise.
4218 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4219 to the newly added pseudo registers.
4221 2014-02-24 Doug Evans <dje@google.com>
4223 * value.c (record_latest_value): Fix comment.
4224 * printcmd.c (print_command_1): Remove code to handle -1 return from
4225 record_latest_value.
4227 2014-02-24 Pedro Alves <palves@redhat.com>
4229 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4230 deprecated_xfer_memory hook.
4231 (procfs_xfer_partial): Call procfs_xfer_memory instead
4232 of the deprecated_xfer_memory target hook.
4233 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4236 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4238 * windows-nat.c (windows_xfer_shared_libraries): Return
4239 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4240 requested object is TARGET_OBJECT_LIBRARIES.
4242 2014-02-24 Yao Qi <yao@codesourcery.com>
4244 * target.h (enum target_xfer_status)
4245 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4246 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4248 * corefile.c (memory_error_message): User updated.
4249 * exec.c (section_table_read_available_memory): Likewise.
4250 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4251 * target.c (target_xfer_status_to_string): Likewise.
4252 (raw_memory_xfer_partial): Likewise.
4253 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4254 * valops.c (read_value_memory): Likewise.
4255 * exec.h: Update comments.
4257 2014-02-24 Yao Qi <yao@codesourcery.com>
4259 * target.c (target_xfer_status_to_string): Rename argument err
4261 * target.h (target_xfer_status_to_string): Update declaration.
4262 Replace target_xfer_error_to_string with
4263 target_xfer_status_to_string in comment.
4265 2014-02-24 Yao Qi <yao@codesourcery.com>
4267 * mips-linux-nat.c (super_close): Update its type.
4268 (mips_linux_close): Pass 'self' to super_close.
4270 2014-02-24 Yao Qi <yao@codesourcery.com>
4272 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4273 * corefile.c (read_memory): Adjusted.
4274 * target.c (target_write_with_progress): Adjusted.
4276 2014-02-23 Yao Qi <yao@codesourcery.com>
4280 2013-10-25 Yao Qi <yao@codesourcery.com>
4282 * remote.c (remote_traceframe_info): Return early if
4283 traceframe is not selected.
4285 2013-07-19 Yao Qi <yao@codesourcery.com>
4287 * target.c (update_current_target): Change the default action
4288 of 'to_traceframe_info' from tcomplain to return_zero.
4289 * target.h (struct target_ops) <to_traceframe_info>: Add more
4292 2014-02-23 Yao Qi <yao@codesourcery.com>
4294 * valops.c (read_value_memory): Rewrite it. Call
4295 target_xfer_partial in a loop.
4296 * exec.h (section_table_available_memory): Remove declaration.
4297 Move comments to ...
4298 * exec.c (section_table_available_memory): ... here. Make it
4301 2014-02-23 Yao Qi <yao@codesourcery.com>
4303 * exec.c (section_table_read_available_memory): New function.
4304 * exec.h (section_table_read_available_memory): Declare.
4305 * ctf.c (ctf_xfer_partial): Call
4306 section_table_read_available_memory.
4307 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4309 2014-02-23 Yao Qi <yao@codesourcery.com>
4311 * ctf.c (ctf_xfer_partial): Move code to ...
4312 * exec.c (exec_read_partial_read_only): ... it. New function.
4313 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4314 * tracefile.c: Include "exec.h".
4315 * exec.h (exec_read_partial_read_only): Declare.
4317 2014-02-23 Yao Qi <yao@codesourcery.com>
4319 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4320 (tfile_has_memory): Remove.
4321 (init_tfile_ops): Don't set fields to_has_all_memory and
4322 to_has_memory of tfile_ops.
4323 * tracefile.c (tracefile_has_all_memory): New function.
4324 (tracefile_has_memory): New function.
4325 (init_tracefile_ops): Initialize fields to_has_all_memory and
4326 to_has_memory of 'ops'.
4328 2014-02-23 Yao Qi <yao@codesourcery.com>
4330 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4331 (ctf_thread_alive, ctf_get_trace_status): Remove.
4332 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4334 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4335 (tfile_has_stack, tfile_has_registers): Remove.
4336 (tfile_thread_alive): Remove.
4337 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4339 * tracefile.c (tracefile_has_stack): New function.
4340 (tracefile_has_registers): New function.
4341 (tracefile_thread_alive): New function.
4342 (tracefile_get_trace_status): New function.
4343 (init_tracefile_ops): New function.
4344 * tracefile.h (init_tracefile_ops): Declare.
4346 2014-02-23 Yao Qi <yao@codesourcery.com>
4348 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4349 (O_LARGEFILE): Likewise.
4350 (tfile_ops): Likewise.
4351 (TRACE_HEADER_SIZE): Likewise.
4352 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4353 (cur_data_size): Likewise.
4354 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4355 (tfile_close, tfile_files_info): Likewise.
4356 (tfile_get_trace_status): Likewise.
4357 (tfile_get_tracepoint_status): Likewise.
4358 (tfile_get_traceframe_address): Likewise.
4359 (tfile_trace_find, match_blocktype): Likewise.
4360 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4361 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4362 (tfile_get_trace_state_variable_value): Likewise.
4363 (tfile_has_all_memory, tfile_has_memory): Likewise.
4364 (tfile_has_stack, tfile_has_registers): Likewise.
4365 (tfile_thread_alive, build_traceframe_info): Likewise.
4366 (tfile_traceframe_info, init_tfile_ops): Likewise.
4367 (_initialize_tracepoint): Don't call init_tfile_ops
4368 and add_target_with_completer.
4369 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4370 exec.h, completer.h and filenames.h.
4371 (_initialize_tracefile_tfile): New function.
4373 2014-02-23 Yao Qi <yao@codesourcery.com>
4375 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4377 (HFILES_NO_SRCDIR): Add tracefile.h.
4378 * ctf.c: Include "tracefile.h".
4379 * tracefile.h: New file.
4380 * tracefile.c: New file
4381 * tracefile-tfile.c: New file.
4382 * tracepoint.c: Include "tracefile.h".
4383 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4384 (stop_reason_names): Add const.
4385 (trace_file_writer_xfree): Move it to tracefile.c.
4386 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4387 (trace_save_ctf): Likewise.
4388 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4389 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4390 (tfile_write_header, tfile_write_regblock_type): Likewise.
4391 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4392 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4393 (tfile_write_raw_data, tfile_end): Likewise.
4394 (tfile_trace_file_writer_new): Likewise.
4395 (free_uploaded_tp): Make it extern.
4396 (free_uploaded_tsv): Make it extern.
4397 (_initialize_tracepoint): Move code to register command 'tsave'
4399 * tracepoint.h (stop_reason_names): Declare.
4400 (struct trace_frame_write_ops): Move it to tracefile.h.
4401 (struct trace_file_write_ops): Likewise.
4402 (struct trace_file_writer): Likewise.
4403 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4405 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4408 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4410 (get_cores_used_by_process): New parameter num_cores, use it.
4411 (linux_xfer_osdata_processes): Pass num_cores to it.
4412 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4415 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4417 * target.c (memory_xfer_partial): Fix length arg in call to
4418 breakpoint_xfer_memory.
4420 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4423 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4424 number comes after the + or - signs. Adjust length of register
4425 name to be extracted.
4427 2014-02-20 Tom Tromey <tromey@redhat.com>
4429 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4430 (ada_varobj_ops): Mark "extern".
4432 2014-02-20 Tom Tromey <tromey@redhat.com>
4434 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4436 2014-02-20 Doug Evans <xdje42@gmail.com>
4438 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4439 All callers updated.
4440 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4441 All callers updated.
4442 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4443 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4445 2014-02-20 lin zuojian <manjian2006@gmail.com>
4446 Joel Brobecker <brobecker@adacore.com>
4447 Doug Evans <xdje42@gmail.com>
4450 * dwarf2read.c (struct die_info): New member in_process.
4451 (reset_die_in_process): New function.
4452 (process_die): Set it at the start, reset when returning.
4453 (inherit_abstract_dies): Only call process_die if origin_child_die
4454 not already being processed.
4456 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4458 * windows-nat.c (handle_unload_dll): Add function documentation.
4459 (do_initial_windows_stuff): Add comment explaining why we wait
4460 until after inferior initialization has finished before
4461 processing all DLLs.
4463 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4465 * windows-nat.c (get_module_name): Delete.
4466 (windows_get_exec_module_filename): New function, mostly
4467 inspired from get_module_name.
4468 (windows_pid_to_exec_file): Replace call to get_module_name
4469 by call to windows_get_exec_module_filename.
4471 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4473 * windows-nat.c (handle_load_dll): Rewrite this function's
4474 introductory comment. Remove code using get_module_name
4475 to get the DLL's name.
4477 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4479 * windows-nat.c (get_windows_debug_event): Ignore
4480 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4481 if windows_initialization_done == 0.
4482 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4483 Adjust implementation to always load all DLLs.
4484 (do_initial_windows_stuff): Replace call to
4485 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4487 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4489 * windows-nat.c (_initialize_windows_nat): Deprecate the
4490 "dll-symbols" command. Turn the "add-shared-symbol-files"
4491 and "assf" aliases into commands, and deprecate them as well.
4492 * NEWS: Add entry explaining that "dll-symbols" and its two
4493 aliases are now deprecated.
4495 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4497 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4498 new-line in debug string. Remove trailing spaces.
4500 2014-02-19 Stan Shebs <stan@codesourcery.com>
4502 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4504 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4506 * NEWS: Add entry for the new feature
4507 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4510 2014-02-19 Stan Shebs <stan@codesourcery.com>
4512 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4514 2014-02-19 Pedro Alves <palves@redhat.com>
4516 * common/ptid.h (struct ptid): Mention that process_stratum
4517 targets should prefer ptid.lwp.
4519 2014-02-19 Pedro Alves <palves@redhat.com>
4521 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4522 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4523 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4524 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4525 store remote thread ids rather than ptid.tid.
4526 (_initialize_remote): Adjust.
4528 2014-02-19 Tom Tromey <tromey@redhat.com>
4530 * target.c (target_get_unwinder): Rewrite.
4531 (target_get_tailcall_unwinder): Rewrite.
4532 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4533 (record_btrace_to_get_tailcall_unwinder): New function.
4534 (init_record_btrace_ops): Update.
4535 * target.h (struct target_ops) <to_get_unwinder,
4536 to_get_tailcall_unwinder>: Now function pointers. Use
4537 TARGET_DEFAULT_RETURN.
4539 2014-02-19 Tom Tromey <tromey@redhat.com>
4541 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4543 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4545 2014-02-19 Tom Tromey <tromey@redhat.com>
4547 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4549 * target-delegates.c: Rebuild.
4550 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4551 TARGET_DEFAULT_FUNC.
4552 * target.c (default_target_decr_pc_after_break): Rename from
4553 forward_target_decr_pc_after_break. Simplify.
4554 (target_decr_pc_after_break): Rely on delegation.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target.c (update_current_target): Do not INHERIT to_doc or
4559 to_magic. Do not de_fault to_open or to_close.
4561 2014-02-19 Tom Tromey <tromey@redhat.com>
4563 * gcore.h (objfile_find_memory_regions): Declare.
4564 * gcore.c (objfile_find_memory_regions): No longer static. Add
4566 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4567 * exec.c: Include gcore.h.
4568 (exec_set_find_memory_regions): Remove.
4569 (exec_find_memory_regions): Remove.
4570 (exec_do_find_memory_regions): Remove.
4571 (init_exec_ops): Update.
4572 * defs.h (exec_set_find_memory_regions): Remove.
4574 2014-02-19 Tom Tromey <tromey@redhat.com>
4576 * target-delegates.c: Rebuild.
4577 * target.h (struct target_ops) <to_extra_thread_info,
4578 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4579 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4580 not 0, in TARGET_DEFAULT_RETURN.
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * target.c (complete_target_initialization): Remove casts. Use
4585 return_zero_has_execution.
4586 (return_zero): Add "ignore" argument.
4587 (return_zero_has_execution): New function.
4588 (init_dummy_target): Remove casts. Use
4589 return_zero_has_execution.
4591 2014-02-19 Tom Tromey <tromey@redhat.com>
4593 * target.c (update_current_target): Update comments. Do not
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4600 * corelow.c (core_read_description): Delegate when needed.
4601 * remote.c (remote_read_description): Delegate when needed.
4602 * target-delegates.c: Rebuild.
4603 * target.c (target_read_description): Rewrite.
4604 * target.h (struct target_ops) <to_read_description>: Update
4605 comment. Use TARGET_DEFAULT_RETURN.
4607 2014-02-19 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (update_current_target): Don't inherit or default
4612 (find_default_run_target): Check against delegate_can_run.
4613 * target.h (struct target_ops) <to_can_run>: Use
4614 TARGET_DEFAULT_RETURN.
4616 2014-02-19 Tom Tromey <tromey@redhat.com>
4618 * target-delegates.c: Rebuild.
4619 * target.c (target_disconnect): Unconditionally delegate.
4620 * target.h (struct target_ops) <to_disconnect>: Use
4621 TARGET_DEFAULT_NORETURN.
4623 2014-02-19 Tom Tromey <tromey@redhat.com>
4625 * record.c (record_stop): Unconditionally delegate.
4626 * target-delegates.c: Rebuild.
4627 * target.c (target_stop_recording): Unconditionally delegate.
4628 * target.h (struct target_ops) <to_stop_recording>: Use
4629 TARGET_DEFAULT_IGNORE.
4631 2014-02-19 Tom Tromey <tromey@redhat.com>
4633 * target-delegates.c: Rebuild.
4634 * target.c (target_enable_btrace): Unconditionally delegate.
4635 * target.h (struct target_ops) <to_enable_btrace>: Use
4636 TARGET_DEFAULT_NORETURN.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * target-delegates.c: Rebuild.
4641 * target.c (target_read_btrace): Unconditionally delegate.
4642 * target.h (struct target_ops) <to_read_btrace>: Use
4643 TARGET_DEFAULT_NORETURN.
4645 2014-02-19 Tom Tromey <tromey@redhat.com>
4647 * target-delegates.c: Rebuild.
4648 * target.c (target_teardown_btrace): Unconditionally delegate.
4649 * target.h (struct target_ops) <to_teardown_btrace>: Use
4650 TARGET_DEFAULT_NORETURN.
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * target-delegates.c: Rebuild.
4655 * target.c (target_disable_btrace): Unconditionally delegate.
4656 * target.h (struct target_ops) <to_disable_btrace>: Use
4657 TARGET_DEFAULT_NORETURN.
4659 2014-02-19 Tom Tromey <tromey@redhat.com>
4661 * target-delegates.c: Rebuild.
4662 * target.c (default_search_memory): New function.
4663 (simple_search_memory): Update comment.
4664 (target_search_memory): Unconditionally delegate.
4665 * target.h (struct target_ops) <to_search_memory>: Use
4666 TARGET_DEFAULT_FUNC.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * auxv.c (default_auxv_parse): No longer static.
4671 (target_auxv_parse): Unconditionally delegate.
4672 * auxv.h (default_auxv_parse): Declare.
4673 * target-delegates.c: Rebuild.
4674 * target.c: Include auxv.h.
4675 * target.h (struct target_ops) <to_auxv_parse>: Use
4676 TARGET_DEFAULT_FUNC.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (target_memory_map): Unconditionally delegate.
4682 * target.h (struct target_ops) <to_memory_map>: Use
4683 TARGET_DEFAULT_RETURN.
4685 2014-02-19 Tom Tromey <tromey@redhat.com>
4687 * target-delegates.c: Rebuild.
4688 * target.c (target_thread_alive): Unconditionally delegate.
4689 * target.h (struct target_ops) <to_thread_alive>: Use
4690 TARGET_DEFAULT_RETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (target_save_record): Unconditionally delegate.
4696 * target.h (struct target_ops) <to_save_record>: Use
4697 TARGET_DEFAULT_NORETURN.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target-delegates.c: Rebuild.
4702 * target.c (target_delete_record): Unconditionally delegate.
4703 * target.h (struct target_ops) <to_delete_record>: Use
4704 TARGET_DEFAULT_NORETURN.
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * target-delegates.c: Rebuild.
4709 * target.c (target_record_is_replaying): Unconditionally
4711 * target.h (struct target_ops) <to_record_is_replaying>: Use
4712 TARGET_DEFAULT_RETURN.
4714 2014-02-19 Tom Tromey <tromey@redhat.com>
4716 * target-delegates.c: Rebuild.
4717 * target.c (target_goto_record_begin): Unconditionally delegate.
4718 * target.h (struct target_ops) <to_goto_record_begin>: Use
4719 TARGET_DEFAULT_NORETURN.
4721 2014-02-19 Tom Tromey <tromey@redhat.com>
4723 * target-delegates.c: Rebuild.
4724 * target.c (target_goto_record_end): Unconditionally delegate.
4725 * target.h (struct target_ops) <to_goto_record_end>: Use
4726 TARGET_DEFAULT_NORETURN.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target-delegates.c: Rebuild.
4731 * target.c (target_goto_record): Unconditionally delegate.
4732 * target.h (struct target_ops) <to_goto_record>: Use
4733 TARGET_DEFAULT_NORETURN.
4735 2014-02-19 Tom Tromey <tromey@redhat.com>
4737 * target-delegates.c: Rebuild.
4738 * target.c (target_insn_history): Unconditionally delegate.
4739 * target.h (struct target_ops) <to_insn_history>: Use
4740 TARGET_DEFAULT_NORETURN.
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target-delegates.c: Rebuild.
4745 * target.c (target_insn_history_from): Unconditionally delegate.
4746 * target.h (struct target_ops) <to_insn_history_from>: Use
4747 TARGET_DEFAULT_NORETURN.
4749 2014-02-19 Tom Tromey <tromey@redhat.com>
4751 * target-delegates.c: Rebuild.
4752 * target.c (target_insn_history_range): Unconditionally delegate.
4753 * target.h (struct target_ops) <to_insn_history_range>: Use
4754 TARGET_DEFAULT_NORETURN.
4756 2014-02-19 Tom Tromey <tromey@redhat.com>
4758 * target-delegates.c: Rebuild.
4759 * target.c (target_call_history): Unconditionally delegate.
4760 * target.h (struct target_ops) <to_call_history>: Use
4761 TARGET_DEFAULT_NORETURN.
4763 2014-02-19 Tom Tromey <tromey@redhat.com>
4765 * target-delegates.c: Rebuild.
4766 * target.c (target_call_history_from): Unconditionally delegate.
4767 * target.h (struct target_ops) <to_call_history_from>: Use
4768 TARGET_DEFAULT_NORETURN.
4770 2014-02-19 Tom Tromey <tromey@redhat.com>
4772 * target-delegates.c: Rebuild.
4773 * target.c (target_call_history_range): Unconditionally delegate.
4774 * target.h (struct target_ops) <to_call_history_range>: Use
4775 TARGET_DEFAULT_NORETURN.
4777 2014-02-19 Tom Tromey <tromey@redhat.com>
4779 * target-delegates.c: Rebuild.
4780 * target.c (target_verify_memory): Unconditionally delegate.
4781 * target.h (struct target_ops) <to_verify_memory>: Use
4782 TARGET_DEFAULT_NORETURN.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target-delegates.c: Rebuild.
4787 * target.c (target_core_of_thread): Unconditionally delegate.
4788 * target.h (struct target_ops) <to_core_of_thread>: Use
4789 TARGET_DEFAULT_RETURN.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target-delegates.c: Rebuild.
4794 * target.c (target_flash_done): Unconditionally delegate.
4795 * target.h (struct target_ops) <to_flash_done>: Use
4796 TARGET_DEFAULT_NORETURN.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * target-delegates.c: Rebuild.
4801 * target.c (target_flash_erase): Unconditionally delegate.
4802 * target.h (struct target_ops) <to_flash_erase>: Use
4803 TARGET_DEFAULT_NORETURN.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.c (target_get_section_table): Unconditionally delegate.
4809 * target.h (struct target_ops) <to_get_section_table>: Use
4810 TARGET_DEFAULT_RETURN.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (target_pid_to_str): Unconditionally delegate.
4816 (init_dummy_target): Don't initialize to_pid_to_str.
4817 (default_pid_to_str): Rename from dummy_pid_to_str.
4818 * target.h (struct target_ops) <to_pid_to_str>: Use
4819 TARGET_DEFAULT_FUNC.
4821 2014-02-19 Tom Tromey <tromey@redhat.com>
4823 * target-delegates.c: Rebuild.
4824 * target.c (target_find_new_threads): Unconditionally delegate.
4825 * target.h (struct target_ops) <to_find_new_threads>: Use
4826 TARGET_DEFAULT_RETURN.
4828 2014-02-19 Tom Tromey <tromey@redhat.com>
4830 * target-delegates.c: Rebuild.
4831 * target.c (target_program_signals): Unconditionally delegate.
4832 * target.h (struct target_ops) <to_program_signals>: Use
4833 TARGET_DEFAULT_IGNORE.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target-delegates.c: Rebuild.
4838 * target.c (target_pass_signals): Unconditionally delegate.
4839 * target.h (struct target_ops) <to_pass_signals>: Use
4840 TARGET_DEFAULT_IGNORE.
4842 2014-02-19 Tom Tromey <tromey@redhat.com>
4844 * target-delegates.c: Rebuild.
4845 * target.c (default_mourn_inferior): New function.
4846 (target_mourn_inferior): Unconditionally delegate.
4847 * target.h (struct target_ops) <to_mourn_inferior>: Use
4848 TARGET_DEFAULT_FUNC.
4850 2014-02-19 Tom Tromey <tromey@redhat.com>
4852 * target-delegates.c: Rebuild.
4853 * target.c (default_follow_fork): New function.
4854 (target_follow_fork): Unconditionally delegate.
4855 * target.h (struct target_ops) <to_follow_fork>: Use
4856 TARGET_DEFAULT_FUNC.
4858 2014-02-19 Tom Tromey <tromey@redhat.com>
4860 * target-delegates.c: Rebuild.
4861 * target.c (target_kill): Unconditionally delegate.
4862 * target.h (struct target_ops) <to_kill>: Use
4863 TARGET_DEFAULT_NORETURN.
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target-delegates.c: Rebuild.
4868 * target.c (target_masked_watch_num_registers): Unconditionally
4870 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4871 Use TARGET_DEFAULT_RETURN.
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target-delegates.c: Rebuild.
4876 * target.c (target_remove_mask_watchpoint): Unconditionally
4878 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4879 TARGET_DEFAULT_RETURN.
4881 2014-02-19 Tom Tromey <tromey@redhat.com>
4883 * target-delegates.c: Rebuild.
4884 * target.c (target_insert_mask_watchpoint): Unconditionally
4886 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4887 TARGET_DEFAULT_RETURN.
4889 2014-02-19 Tom Tromey <tromey@redhat.com>
4891 * target-delegates.c: Rebuild.
4892 * target.c (target_ranged_break_num_registers): Unconditionally
4894 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4895 Use TARGET_DEFAULT_RETURN.
4897 2014-02-19 Tom Tromey <tromey@redhat.com>
4899 * target-delegates.c: Rebuild.
4900 * target.c (target_fetch_registers): Unconditionally delegate.
4901 * target.h (struct target_ops) <to_fetch_registers>: Use
4902 TARGET_DEFAULT_NORETURN.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4906 * target-delegates.c: Rebuild.
4907 * target.c (update_current_target): Don't inherit or default
4909 * target.h (struct target_ops) <to_stop>: Use
4910 TARGET_DEFAULT_IGNORE.
4912 2014-02-19 Tom Tromey <tromey@redhat.com>
4914 * target-delegates.c: Rebuild.
4915 * target.c (update_current_target): Don't inherit or default
4916 to_can_run_breakpoint_commands.
4917 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4918 Use TARGET_DEFAULT_RETURN.
4920 2014-02-19 Tom Tromey <tromey@redhat.com>
4922 * target-delegates.c: Rebuild.
4923 * target.c (update_current_target): Don't inherit or default
4924 to_supports_evaluation_of_breakpoint_conditions.
4925 * target.h (struct target_ops)
4926 <to_supports_evaluation_of_breakpoint_conditions>: Use
4927 TARGET_DEFAULT_RETURN.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * target-delegates.c: Rebuild.
4932 * target.c (update_current_target): Don't inherit or default
4933 to_augmented_libraries_svr4_read.
4934 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4935 Use TARGET_DEFAULT_RETURN.
4937 2014-02-19 Tom Tromey <tromey@redhat.com>
4939 * target-delegates.c: Rebuild.
4940 * target.c (update_current_target): Don't inherit or default
4942 * target.h (struct target_ops) <to_can_use_agent>: Use
4943 TARGET_DEFAULT_RETURN.
4945 2014-02-19 Tom Tromey <tromey@redhat.com>
4947 * target-delegates.c: Rebuild.
4948 * target.c (update_current_target): Don't inherit or default
4950 * target.h (struct target_ops) <to_use_agent>: 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
4958 (return_null): Remove.
4959 * target.h (struct target_ops) <to_traceframe_info>: Use
4960 TARGET_DEFAULT_RETURN.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target-delegates.c: Rebuild.
4965 * target.c (update_current_target): Don't inherit or default
4966 to_static_tracepoint_markers_by_strid.
4967 * target.h (struct target_ops)
4968 <to_static_tracepoint_markers_by_strid>: Use
4969 TARGET_DEFAULT_NORETURN.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target-delegates.c: Rebuild.
4974 * target.c (update_current_target): Don't inherit or default
4975 to_static_tracepoint_marker_at.
4976 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4977 Use TARGET_DEFAULT_RETURN.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target-delegates.c: Rebuild.
4982 * target.c (update_current_target): Don't inherit or default
4984 * target.h (struct target_ops) <to_set_permissions>: Use
4985 TARGET_DEFAULT_IGNORE.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target-delegates.c: Rebuild.
4990 * target.c (update_current_target): Don't inherit or default
4992 * target.h (struct target_ops) <to_get_tib_address>: Use
4993 TARGET_DEFAULT_NORETURN.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * target-delegates.c: Rebuild.
4998 * target.c (update_current_target): Don't inherit or default
5000 * target.h (struct target_ops) <to_set_trace_notes>: Use
5001 TARGET_DEFAULT_RETURN.
5003 2014-02-19 Tom Tromey <tromey@redhat.com>
5005 * target-delegates.c: Rebuild.
5006 * target.c (update_current_target): Don't initialize
5007 to_set_trace_buffer_size.
5008 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5009 TARGET_DEFAULT_IGNORE.
5011 2014-02-19 Tom Tromey <tromey@redhat.com>
5013 * target-delegates.c: Rebuild.
5014 * target.c (update_current_target): Don't inherit or default
5015 to_set_circular_trace_buffer.
5016 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5017 TARGET_DEFAULT_IGNORE.
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target-delegates.c: Rebuild.
5022 * target.c (update_current_target): Don't inherit or default
5023 to_set_disconnected_tracing.
5024 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5025 TARGET_DEFAULT_IGNORE.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target-delegates.c: Rebuild.
5030 * target.c (update_current_target): Don't inherit or default
5031 to_get_min_fast_tracepoint_insn_len.
5032 (return_minus_one): Remove.
5033 * target.h (struct target_ops)
5034 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target-delegates.c: Rebuild.
5039 * target.c (update_current_target): Don't inherit or default
5040 to_get_raw_trace_data.
5041 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5042 TARGET_DEFAULT_NORETURN.
5044 2014-02-19 Tom Tromey <tromey@redhat.com>
5046 * target-delegates.c: Rebuild.
5047 * target.c (update_current_target): Don't inherit or default
5048 to_upload_trace_state_variables.
5049 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5050 Use TARGET_DEFAULT_RETURN.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (update_current_target): Don't inherit or default
5056 to_upload_tracepoints.
5057 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5058 TARGET_DEFAULT_RETURN.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * target-delegates.c: Rebuild.
5063 * target.c (update_current_target): Don't inherit or default
5065 * target.h (struct target_ops) <to_save_trace_data>: Use
5066 TARGET_DEFAULT_NORETURN.
5068 2014-02-19 Tom Tromey <tromey@redhat.com>
5070 * target-delegates.c: Rebuild.
5071 * target.c (update_current_target): Don't inherit or default
5072 to_get_trace_state_variable_value.
5073 * target.h (struct target_ops)
5074 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5078 * target-delegates.c: Rebuild.
5079 * target.c (update_current_target): Don't inherit or default
5081 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5083 2014-02-19 Tom Tromey <tromey@redhat.com>
5085 * target-delegates.c: Rebuild.
5086 * target.c (update_current_target): Don't inherit or default
5088 * target.h (struct target_ops) <to_trace_stop>: Use
5089 TARGET_DEFAULT_NORETURN.
5091 2014-02-19 Tom Tromey <tromey@redhat.com>
5093 * target-delegates.c: Rebuild.
5094 * target.c (update_current_target): Don't inherit or default
5095 to_get_tracepoint_status.
5096 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5097 TARGET_DEFAULT_NORETURN.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target-delegates.c: Rebuild.
5102 * target.c (update_current_target): Don't inherit or default
5103 to_get_trace_status.
5104 * target.h (struct target_ops) <to_get_trace_status>: Use
5105 TARGET_DEFAULT_RETURN.
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target-delegates.c: Rebuild.
5110 * target.c (update_current_target): Don't inherit or default
5112 * target.h (struct target_ops) <to_trace_start>: Use
5113 TARGET_DEFAULT_NORETURN.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target-delegates.c: Rebuild.
5118 * target.c (update_current_target): Don't inherit or default
5119 to_trace_set_readonly_regions.
5120 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5121 Use TARGET_DEFAULT_NORETURN.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target-delegates.c: Rebuild.
5126 * target.c (update_current_target): Don't inherit or default
5127 to_disable_tracepoint.
5128 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5129 TARGET_DEFAULT_NORETURN.
5131 2014-02-19 Tom Tromey <tromey@redhat.com>
5133 * target-delegates.c: Rebuild.
5134 * target.c (update_current_target): Don't inherit or default
5135 to_enable_tracepoint.
5136 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5137 TARGET_DEFAULT_NORETURN.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target-delegates.c: Rebuild.
5142 * target.c (update_current_target): Don't inherit or default
5143 to_download_trace_state_variable.
5144 * target.h (struct target_ops) <to_download_trace_state_variable>:
5145 Use TARGET_DEFAULT_NORETURN.
5147 2014-02-19 Tom Tromey <tromey@redhat.com>
5149 * target-delegates.c: Rebuild.
5150 * target.c (update_current_target): Don't inherit or default
5151 to_can_download_tracepoint.
5152 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5153 TARGET_DEFAULT_RETURN.
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target-delegates.c: Rebuild.
5158 * target.c (update_current_target): Don't inherit or default
5159 to_download_tracepoint.
5160 * target.h (struct target_ops) <to_download_tracepoint>: Use
5161 TARGET_DEFAULT_NORETURN.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * target-delegates.c: Rebuild.
5166 * target.c (update_current_target): Don't inherit or default
5168 * target.h (struct target_ops) <to_trace_init>: Use
5169 TARGET_DEFAULT_RETURN.
5171 2014-02-19 Tom Tromey <tromey@redhat.com>
5173 * target-delegates.c: Rebuild.
5174 * target.c (update_current_target): Don't inherit or default
5175 to_supports_string_tracing.
5176 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5177 TARGET_DEFAULT_RETURN.
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target-delegates.c: Rebuild.
5182 * target.c (update_current_target): Don't inherit or default
5183 to_supports_enable_disable_tracepoint.
5184 * target.h (struct target_ops)
5185 <to_supports_enable_disable_tracepoint>: Use
5186 TARGET_DEFAULT_RETURN.
5188 2014-02-19 Tom Tromey <tromey@redhat.com>
5190 * target-delegates.c: Rebuild.
5191 * target.c (update_current_target): Don't inherit or default
5192 to_supports_multi_process.
5193 * target.h (struct target_ops) <to_supports_multi_process>: Use
5194 TARGET_DEFAULT_RETURN.
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target-delegates.c: Rebuild.
5199 * target.c (update_current_target): Don't inherit or default
5200 to_get_ada_task_ptid.
5201 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5202 TARGET_DEFAULT_FUNC.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target-delegates.c: Rebuild.
5207 * target.c (update_current_target): Don't inherit or default
5208 to_thread_architecture.
5209 * target.h (struct target_ops) <to_thread_architecture>: Use
5210 TARGET_DEFAULT_FUNC.
5212 2014-02-19 Tom Tromey <tromey@redhat.com>
5214 * target-delegates.c: Rebuild.
5215 * target.c (update_current_target): Don't inherit or default
5216 to_execution_direction.
5217 * target.h (struct target_ops) <to_execution_direction>: Use
5218 TARGET_DEFAULT_FUNC.
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target-delegates.c: Rebuild.
5223 * target.c (update_current_target): Don't inherit or default
5224 to_can_execute_reverse.
5225 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5226 TARGET_DEFAULT_RETURN.
5227 (target_can_execute_reverse): Unconditionally delegate.
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target-delegates.c: Rebuild.
5232 * target.c (update_current_target): Don't inherit or default
5234 (dummy_goto_bookmark): Remove.
5235 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5236 * target.h (struct target_ops) <to_goto_bookmark>: Use
5237 TARGET_DEFAULT_NORETURN.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target-delegates.c: Rebuild.
5242 * target.c (update_current_target): Don't inherit or default
5244 (dummy_get_bookmark): Remove.
5245 (init_dummy_target): Don't inherit or default to_get_bookmark.
5246 * target.h (struct target_ops) <to_get_bookmark>: Use
5247 TARGET_DEFAULT_NORETURN
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
5253 to_make_corefile_notes.
5254 (init_dummy_target): Don't initialize to_make_corefile_notes.
5255 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5256 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
5263 (init_dummy_target): Don't initialize to_find_memory_regions.
5264 * target.h (struct target_ops) <to_find_memory_regions>: Use
5265 TARGET_DEFAULT_FUNC.
5267 2014-02-19 Tom Tromey <tromey@redhat.com>
5269 * target-delegates.c: Rebuild.
5270 * target.c (update_current_target): Don't inherit or default
5272 * target.h (struct target_ops) <to_log_command>: Use
5273 TARGET_DEFAULT_IGNORE.
5274 (target_log_command): Unconditionally delegate.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target-delegates.c: Rebuild.
5279 * target.c (update_current_target): Don't inherit or default
5280 to_pid_to_exec_file.
5281 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5282 TARGET_DEFAULT_RETURN.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target-delegates.c: Rebuild.
5287 * target.c (update_current_target): Don't inherit or default
5289 (target_thread_name): Unconditionally delegate.
5290 * target.h (struct target_ops) <to_thread_name>: Use
5291 TARGET_DEFAULT_RETURN.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target-delegates.c: Rebuild.
5296 * target.c (update_current_target): Don't inherit or default
5297 to_extra_thread_info.
5298 * target.h (struct target_ops) <to_extra_thread_info>: Use
5299 TARGET_DEFAULT_RETURN.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target-delegates.c: Rebuild.
5304 * target.c (update_current_target): Don't inherit or default
5306 * target.h (struct target_ops) <to_has_exited>: Use
5307 TARGET_DEFAULT_RETURN..
5309 2014-02-19 Tom Tromey <tromey@redhat.com>
5311 * target-delegates.c: Rebuild.
5312 * target.c (update_current_target): Don't inherit or default
5313 to_set_syscall_catchpoint.
5314 (return_one): Remove.
5315 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5316 TARGET_DEFAULT_RETURN.
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target-delegates.c: Rebuild.
5321 * target.c (update_current_target): Don't inherit or default
5322 to_insert_exec_catchpoint.
5323 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5324 TARGET_DEFAULT_RETURN.
5326 2014-01-08 Tom Tromey <tromey@redhat.com>
5328 * target-delegates.c: Rebuild.
5329 * target.c (update_current_target): Don't inherit or default
5330 to_insert_exec_catchpoint.
5331 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5332 TARGET_DEFAULT_RETURN.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * target-delegates.c: Rebuild.
5337 * target.c (update_current_target): Don't inherit or default
5338 to_remove_vfork_catchpoint.
5339 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5340 TARGET_DEFAULT_RETURN.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target-delegates.c: Rebuild.
5345 * target.c (update_current_target): Don't inherit or default
5346 to_insert_vfork_catchpoint.
5347 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5348 TARGET_DEFAULT_RETURN.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * target-delegates.c: Rebuild.
5353 * target.c (update_current_target): Don't inherit or default
5354 to_remove_fork_catchpoint.
5355 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5356 TARGET_DEFAULT_RETURN.
5358 2014-02-19 Tom Tromey <tromey@redhat.com>
5360 * target-delegates.c: Rebuild.
5361 * target.c (update_current_target): Don't inherit or default
5362 to_insert_fork_catchpoint.
5363 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5364 TARGET_DEFAULT_RETURN.
5366 2014-02-19 Tom Tromey <tromey@redhat.com>
5368 * target-delegates.c: Rebuild.
5369 * target.c (update_current_target): Don't inherit or default
5370 to_post_startup_inferior.
5371 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5372 TARGET_DEFAULT_IGNORE.
5374 2014-02-19 Tom Tromey <tromey@redhat.com>
5376 * target-delegates.c: Rebuild.
5377 * target.c (update_current_target): Don't inherit or default
5379 * target.h (struct target_ops) <to_load>: Use
5380 TARGET_DEFAULT_NORETURN.
5382 2014-02-19 Tom Tromey <tromey@redhat.com>
5384 * target-delegates.c: Rebuild.
5385 * target.c (update_current_target): Don't inherit or default
5387 * target.h (struct target_ops) <to_terminal_info>: Use
5388 TARGET_DEFAULT_FUNC.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target-delegates.c: Rebuild.
5393 * target.c (update_current_target): Don't inherit or default
5394 to_terminal_save_ours.
5395 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5396 TARGET_DEFAULT_IGNORE.
5398 2014-02-19 Tom Tromey <tromey@redhat.com>
5400 * target-delegates.c: Rebuild.
5401 * target.c (update_current_target): Don't inherit or default
5403 * target.h (struct target_ops) <to_terminal_ours>: Use
5404 TARGET_DEFAULT_IGNORE.
5406 2014-02-19 Tom Tromey <tromey@redhat.com>
5408 * target-delegates.c: Rebuild.
5409 * target.c (update_current_target): Don't inherit or default
5410 to_terminal_ours_for_output.
5411 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5412 TARGET_DEFAULT_IGNORE.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target-delegates.c: Rebuild.
5417 * target.c (update_current_target): Don't inherit or default
5418 to_terminal_inferior.
5419 * target.h (struct target_ops) <to_terminal_inferior>: Use
5420 TARGET_DEFAULT_IGNORE.
5422 2014-02-19 Tom Tromey <tromey@redhat.com>
5424 * target-delegates.c: Rebuild.
5425 * target.c (update_current_target): Don't inherit or default
5427 * target.h (struct target_ops) <to_terminal_init>: Use
5428 TARGET_DEFAULT_IGNORE.
5430 2014-02-19 Tom Tromey <tromey@redhat.com>
5432 * target-delegates.c: Rebuild.
5433 * target.c (update_current_target): Don't inherit or default
5434 to_can_accel_watchpoint_condition.
5435 * target.h (struct target_ops)
5436 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5438 2014-02-19 Tom Tromey <tromey@redhat.com>
5440 * target-delegates.c: Rebuild.
5441 * target.c (update_current_target): Don't inherit or default
5442 to_region_ok_for_hw_watchpoint.
5443 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5444 Use TARGET_DEFAULT_FUNC.
5446 2014-02-19 Tom Tromey <tromey@redhat.com>
5448 * target-delegates.c: Rebuild.
5449 * target.c (update_current_target): Don't inherit or default
5450 to_watchpoint_addr_within_range.
5451 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5452 Use TARGET_DEFAULT_FUNC.
5454 2014-02-19 Tom Tromey <tromey@redhat.com>
5456 * target-delegates.c: Rebuild.
5457 * target.c (update_current_target): Don't inherit or default
5458 to_remove_watchpoint.
5459 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5460 TARGET_DEFAULT_NORETURN.
5462 2014-02-19 Tom Tromey <tromey@redhat.com>
5464 * target-delegates.c: Rebuild.
5465 * target.c (update_current_target): Don't inherit or default
5466 to_insert_watchpoint.
5467 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5468 TARGET_DEFAULT_RETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5474 to_remove_hw_breakpoint.
5475 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5476 TARGET_DEFAULT_RETURN.
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target-delegates.c: Rebuild.
5481 * target.c (update_current_target): Don't inherit or default
5482 to_insert_hw_breakpoint.
5483 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5484 TARGET_DEFAULT_RETURN.
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target-delegates.c: Rebuild.
5489 * target.c (update_current_target): Don't inherit or default
5490 to_can_use_hw_breakpoint.
5491 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5492 TARGET_DEFAULT_RETURN.
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target-delegates.c: Rebuild.
5497 * target.c (update_current_target): Don't inherit or default
5499 * target.h (struct target_ops) <to_files_info>: Use
5500 TARGET_DEFAULT_IGNORE.
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target-delegates.c: Rebuild.
5505 * target.c (update_current_target): Don't inherit or default
5507 * target.h (struct target_ops) <to_store>: Use
5508 TARGET_DEFAULT_NORETURN.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target-delegates.c: Rebuild.
5513 * target.c (update_current_target): Don't inherit or default
5515 * target.h (struct target_ops) <to_post_attach>: Use
5516 TARGET_DEFAULT_IGNORE.
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target-delegates.c: Rebuild.
5521 * target.c (update_current_target): Don't inherit or default
5523 (default_rcmd): New function.
5524 (do_monitor_command): Unconditionally delegate.
5525 * target.h (struct target_ops) <to_rmcd>: Use
5526 TARGET_DEFAULT_FUNC.
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target-delegates.c: Rebuild.
5531 * target.c (init_dummy_target): Don't initialize to_attach.
5532 (target_attach): Unconditionally delegate.
5533 * target.h (struct target_ops) <to_attach>: Use
5534 TARGET_DEFAULT_FUNC.
5536 2014-02-19 Tom Tromey <tromey@redhat.com>
5538 * target-delegates.c: Rebuild.
5539 * target.c (target_detach): Unconditionally delegate.
5540 (init_dummy_target): Don't initialize to_detach.
5541 * target.h (struct target_ops) <to_detach>: Use
5542 TARGET_DEFAULT_IGNORE.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5548 (target_augmented_libraries_svr4_read): Add argument.
5549 * target.c (update_current_target): Update.
5550 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5555 * target.h (struct target_ops) <to_call_history_range>: Add
5557 * target.c (target_call_history_range): Add argument.
5558 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5560 (record_btrace_call_history_from): Update.
5562 2014-02-19 Tom Tromey <tromey@redhat.com>
5564 * target.h (struct target_ops) <to_call_history_from>: Add
5566 * target.c (target_call_history_from): Add argument.
5567 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5570 2014-02-19 Tom Tromey <tromey@redhat.com>
5572 * target.h (struct target_ops) <to_call_history>: Add argument.
5573 * target.c (target_call_history): Add argument.
5574 * record-btrace.c (record_btrace_call_history): Add 'self'
5577 2014-02-19 Tom Tromey <tromey@redhat.com>
5579 * target.h (struct target_ops) <to_insn_history_range>: Add
5581 * target.c (target_insn_history_range): Add argument.
5582 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5584 (record_btrace_insn_history_from): Update.
5586 2014-02-19 Tom Tromey <tromey@redhat.com>
5588 * target.h (struct target_ops) <to_insn_history_from>: Add
5590 * target.c (target_insn_history_from): Add argument.
5591 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5594 2014-02-19 Tom Tromey <tromey@redhat.com>
5596 * target.h (struct target_ops) <to_insn_history>: Add argument.
5597 * target.c (target_insn_history): Add argument.
5598 * record-btrace.c (record_btrace_insn_history): Add 'self'
5601 2014-02-19 Tom Tromey <tromey@redhat.com>
5603 * target.h (struct target_ops) <to_goto_record>: Add argument.
5604 * target.c (target_goto_record): Add argument.
5605 * record-full.c (record_full_goto): Add 'self' argument.
5606 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5610 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5611 * target.c (target_goto_record_end): Add argument.
5612 * record-full.c (record_full_goto_end): Add 'self' argument.
5613 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target.h (struct target_ops) <to_goto_record_begin>: Add
5619 * target.c (target_goto_record_begin): Add argument.
5620 * record-full.c (record_full_goto_begin): Add 'self' argument.
5621 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target.h (struct target_ops) <to_record_is_replaying>: Add
5628 * target.c (target_record_is_replaying): Add argument.
5629 * record-full.c (record_full_is_replaying): Add 'self' argument.
5630 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5632 (record_btrace_xfer_partial, record_btrace_store_registers)
5633 (record_btrace_prepare_to_store, record_btrace_resume)
5634 (record_btrace_wait, record_btrace_decr_pc_after_break)
5635 (record_btrace_find_new_threads, record_btrace_thread_alive):
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target.h (struct target_ops) <to_delete_record>: Add argument.
5641 * target.c (target_delete_record): Add argument.
5642 * record-full.c (record_full_delete): Add 'self' argument.
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target.h (struct target_ops) <to_save_record>: Add argument.
5647 * target.c (target_save_record): Add argument.
5648 * record-full.c (record_full_save): Add 'self' argument.
5649 (record_full_save): Add 'self' argument.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_info_record>: Add argument.
5654 * target.c (target_info_record): Add argument.
5655 * record.c (info_record_command): Add argument.
5656 * record-full.c (record_full_info): Add 'self' argument.
5657 * record-btrace.c (record_btrace_info): Add 'self' argument.
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5662 * target.c (target_stop_recording): Add argument.
5663 * record.c (record_stop): Add argument.
5664 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5667 2014-02-19 Tom Tromey <tromey@redhat.com>
5669 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5670 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5671 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5673 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5674 (_initialize_amd64_linux_nat): Use it.
5675 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5676 (_initialize_i386_linux_nat): Use it.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5681 * target.c (target_teardown_btrace): Add argument.
5682 * remote.c (remote_teardown_btrace): Add 'self' argument.
5683 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5685 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5688 2014-02-19 Tom Tromey <tromey@redhat.com>
5690 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5691 * target.c (target_disable_btrace): Add argument.
5692 * remote.c (remote_disable_btrace): Add 'self' argument.
5693 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5695 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5698 2014-02-19 Tom Tromey <tromey@redhat.com>
5700 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5701 * target.c (target_enable_btrace): Add argument.
5702 * remote.c (remote_enable_btrace): Add 'self' argument.
5703 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5705 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5711 (target_can_use_agent): Add argument.
5712 * target.c (update_current_target): Update.
5713 * remote.c (remote_can_use_agent): Add 'self' argument.
5714 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_use_agent>: Add argument.
5719 (target_use_agent): Add argument.
5720 * target.c (update_current_target): Update.
5721 * remote.c (remote_use_agent): Add 'self' argument.
5722 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5727 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5728 (target_traceframe_info): Add argument.
5729 * target.c (update_current_target): Update.
5730 * remote.c (remote_traceframe_info): Add 'self' argument.
5731 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target.h (target_static_tracepoint_markers_by_strid): Add
5737 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5739 * target.c (update_current_target): Update.
5740 * remote.c (struct target_ops)
5741 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5742 * linux-nat.c (struct target_ops)
5743 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5749 (target_static_tracepoint_marker_at): Add argument.
5750 * target.c (update_current_target): Update.
5751 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5757 (target_set_permissions): Add argument.
5758 * target.c (update_current_target): Update.
5759 * remote.c (remote_set_permissions): Add 'self' argument.
5760 (remote_start_remote): Update.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5765 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5766 (target_get_tib_address): Add argument.
5767 * target.c (update_current_target): Update.
5768 * remote.c (remote_get_tib_address): Add 'self' argument.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5773 (target_set_trace_notes): Add argument.
5774 * target.c (update_current_target): Update.
5775 * remote.c (remote_set_trace_notes): Add 'self' argument.
5777 2014-02-19 Tom Tromey <tromey@redhat.com>
5779 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5781 (target_set_trace_buffer_size): Add argument.
5782 * target.c (update_current_target): Update.
5783 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5785 2014-02-19 Tom Tromey <tromey@redhat.com>
5787 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5789 (target_set_circular_trace_buffer): Add argument.
5790 * target.c (update_current_target): Update.
5791 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5798 (target_set_disconnected_tracing): Add argument.
5799 * target.c (update_current_target): Update.
5800 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5802 2014-02-19 Tom Tromey <tromey@redhat.com>
5804 * target.h (struct target_ops)
5805 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5806 (target_get_min_fast_tracepoint_insn_len): Add argument.
5807 * target.c (update_current_target): Update.
5808 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5813 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5815 (target_get_raw_trace_data): Add argument.
5816 * target.c (update_current_target): Update.
5817 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5823 (target_upload_trace_state_variables): Add argument.
5824 * target.c (update_current_target): Update.
5825 * remote.c (remote_upload_trace_state_variables): Add 'self'
5827 (remote_start_remote): Update.
5829 2014-02-19 Tom Tromey <tromey@redhat.com>
5831 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5833 (target_upload_tracepoints): Add argument.
5834 * target.c (update_current_target): Update.
5835 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5836 (remote_start_remote): Update.
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5841 (target_save_trace_data): Add argument.
5842 * target.c (update_current_target): Update.
5843 * remote.c (remote_save_trace_data): Add 'self' argument.
5845 2014-02-19 Tom Tromey <tromey@redhat.com>
5847 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5849 * target.h (struct target_ops)
5850 <to_get_trace_state_variable_value>: Add argument.
5851 (target_get_trace_state_variable_value): Add argument.
5852 * target.c (update_current_target): Update.
5853 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5855 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5860 * target.h (struct target_ops) <to_trace_find>: Add argument.
5861 (target_trace_find): Add argument.
5862 * target.c (update_current_target): Update.
5863 * remote.c (remote_trace_find): Add 'self' argument.
5864 * ctf.c (ctf_trace_find): Add 'self' argument.
5866 2014-02-19 Tom Tromey <tromey@redhat.com>
5868 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5869 (target_trace_stop): Add argument.
5870 * target.c (update_current_target): Update.
5871 * remote.c (remote_trace_stop): Add 'self' argument.
5873 2014-02-19 Tom Tromey <tromey@redhat.com>
5875 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5876 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5878 (target_get_tracepoint_status): Add argument.
5879 * target.c (update_current_target): Update.
5880 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5885 * target.h (struct target_ops) <to_get_trace_status>: Add
5887 (target_get_trace_status): Add argument.
5888 * target.c (update_current_target): Update.
5889 * remote.c (remote_get_trace_status): Add 'self' argument.
5890 (remote_start_remote, remote_can_download_tracepoint): Update.
5891 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5893 2014-02-19 Tom Tromey <tromey@redhat.com>
5895 * target.h (struct target_ops) <to_trace_start>: Add argument.
5896 (target_trace_start): Add argument.
5897 * target.c (update_current_target): Update.
5898 * remote.c (remote_trace_start): Add 'self' argument.
5900 2014-02-19 Tom Tromey <tromey@redhat.com>
5902 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5904 (target_trace_set_readonly_regions): Add argument.
5905 * target.c (update_current_target): Update.
5906 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5909 2014-02-19 Tom Tromey <tromey@redhat.com>
5911 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5913 (target_disable_tracepoint): Add argument.
5914 * target.c (update_current_target): Update.
5915 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5917 2014-02-19 Tom Tromey <tromey@redhat.com>
5919 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5921 (target_enable_tracepoint): Add argument.
5922 * target.c (update_current_target): Update.
5923 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target.h (struct target_ops) <to_download_trace_state_variable>:
5929 (target_download_trace_state_variable): Add argument.
5930 * target.c (update_current_target): Update.
5931 * remote.c (remote_download_trace_state_variable): Add 'self'
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5938 (target_can_download_tracepoint): Add argument.
5939 * target.c (update_current_target): Update.
5940 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5942 2014-02-19 Tom Tromey <tromey@redhat.com>
5944 * target.h (struct target_ops) <to_download_tracepoint>: Add
5946 (target_download_tracepoint): Add argument.
5947 * target.c (update_current_target): Update.
5948 * remote.c (remote_download_tracepoint): Add 'self' argument.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target.h (struct target_ops) <to_trace_init>: Add argument.
5953 (target_trace_init): Add argument.
5954 * target.c (update_current_target): Update.
5955 * remote.c (remote_trace_init): Add 'self' argument.
5957 2014-02-19 Tom Tromey <tromey@redhat.com>
5959 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5960 * target.c (target_fileio_readlink): Add argument.
5961 * remote.c (remote_hostio_readlink): Add 'self' argument.
5962 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5967 * target.c (target_fileio_unlink): Add argument.
5968 * remote.c (remote_hostio_unlink): Add 'self' argument.
5969 (remote_file_delete): Update.
5970 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5975 * target.c (target_fileio_close): Add argument.
5976 * remote.c (remote_hostio_close): Add 'self' argument.
5977 (remote_hostio_close_cleanup): Update.
5978 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5980 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5985 * target.c (target_fileio_pread): Add argument.
5986 * remote.c (remote_hostio_pread): Add 'self' argument.
5987 (remote_bfd_iovec_pread, remote_file_get): Update.
5988 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5993 * target.c (target_fileio_pwrite): Add argument.
5994 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5995 (remote_file_put): Update.
5996 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5998 2014-02-19 Tom Tromey <tromey@redhat.com>
6000 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6001 * target.c (target_fileio_open): Add argument.
6002 * remote.c (remote_hostio_open): Add 'self' argument.
6003 (remote_bfd_iovec_open): Add 'self' argument.
6004 (remote_file_put): Add 'self' argument.
6005 (remote_file_get): Add 'self' argument.
6006 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6012 (target_can_run_breakpoint_commands): Add argument.
6013 * target.c (update_current_target): Update.
6014 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6016 (remote_insert_breakpoint): Add 'self' argument.
6017 (remote_insert_hw_breakpoint): Add 'self' argument.
6018 (remote_can_run_breakpoint_commands): Add 'self' argument.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target.h (struct target_ops)
6023 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6024 (target_supports_evaluation_of_breakpoint_conditions): Add
6026 * target.c (update_current_target): Update.
6027 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6029 (remote_insert_breakpoint): Add 'self' argument.
6030 (remote_insert_hw_breakpoint): Add 'self' argument.
6031 (remote_supports_cond_breakpoints): Add 'self' argument.
6033 2014-02-19 Tom Tromey <tromey@redhat.com>
6035 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6037 (target_supports_string_tracing): Add argument.
6038 * target.c (update_current_target): Update.
6039 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6041 2014-02-19 Tom Tromey <tromey@redhat.com>
6043 * target.h (struct target_ops)
6044 <to_supports_disable_randomization>: Add argument.
6045 * target.c (find_default_supports_disable_randomization): Add
6047 (target_supports_disable_randomization): Add argument.
6048 (find_default_supports_disable_randomization): Add 'self'
6050 * remote.c (extended_remote_supports_disable_randomization): Add
6052 (remote_supports_disable_randomization): Add 'self' argument.
6053 (extended_remote_create_inferior): Update.
6054 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target.h (struct target_ops)
6060 <to_supports_enable_disable_tracepoint>: Add argument.
6061 (target_supports_enable_disable_tracepoint): Add argument.
6062 * target.c (update_current_target): Update.
6063 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target.h (struct target_ops) <to_supports_multi_process>: Add
6070 (target_supports_multi_process): Add argument.
6071 * target.c (update_current_target): Update.
6072 * remote.c (remote_supports_multi_process): Add 'self' argument.
6073 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6075 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6078 2014-02-19 Tom Tromey <tromey@redhat.com>
6080 * target.h (struct target_ops) <to_execution_direction>: Add
6082 (target_execution_direction): Add argument.
6083 * target.c (default_execution_direction): Add 'self' argument.
6084 * record-full.c (record_full_execution_direction): Add 'self'
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6091 (target_can_execute_reverse): Add argument.
6092 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6093 * record-full.c (record_full_can_execute_reverse): Add 'self'
6095 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6101 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6103 (target_get_ada_task_ptid): Add argument.
6104 * target.c (update_current_target): Update.
6105 (default_get_ada_task_ptid): Add 'self' argument.
6106 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6107 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6108 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6110 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6112 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6114 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6116 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6117 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6123 (target_goto_bookmark): Add argument.
6124 * target.c (dummy_goto_bookmark): Add 'self' argument.
6125 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6130 (target_get_bookmark): Add argument.
6131 * target.c (dummy_get_bookmark): Add 'self' argument.
6132 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6134 2014-02-19 Tom Tromey <tromey@redhat.com>
6136 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6138 (target_make_corefile_notes): Add argument.
6139 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6140 * procfs.c (procfs_make_note_section): Add 'self' argument.
6141 (procfs_make_note_section): Add 'self' argument.
6142 (procfs_make_note_section): Add 'self' argument.
6143 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6145 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6146 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6147 * exec.c (exec_make_note_section): Add 'self' argument.
6148 (exec_make_note_section): Add 'self' argument.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_find_memory_regions>: Add
6154 (target_find_memory_regions): Add argument.
6155 * target.c (dummy_find_memory_regions): Add 'self' argument.
6156 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6157 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6158 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6159 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6160 * exec. (exec_do_find_memory_regions): New global.
6161 (exec_set_find_memory_regions): Rewrite.
6162 (exec_find_memory_regions): New function.
6163 (init_exec_ops): Use exec_find_memory_regions.
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_supports_non_stop>: Add
6169 * target.c (find_default_supports_non_stop): Add argument.
6170 (target_supports_non_stop): Add argument.
6171 (find_default_supports_non_stop): Add 'self' argument.
6172 * remote.c (remote_supports_non_stop): Add 'self' argument.
6173 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target.h (struct target_ops) <to_log_command>: Add argument.
6178 (target_log_command): Add argument.
6179 * serial.h (serial_log_command): Add 'self' argument.
6180 * serial.c (serial_log_command): Add 'self' argument.
6182 2014-02-19 Tom Tromey <tromey@redhat.com>
6184 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6185 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6187 (target_pid_to_exec_file): Add argument.
6188 * target.c (debug_to_pid_to_exec_file): Add argument.
6189 (update_current_target): Update.
6190 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6191 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6192 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6193 (linux_handle_extended_wait): Update.
6194 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6195 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6196 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6197 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6199 2014-02-19 Tom Tromey <tromey@redhat.com>
6201 * target.h (struct target_ops) <to_rcmd>: Add argument.
6202 (target_rcmd): Add argument.
6203 * target.c (debug_to_rcmd): Add argument.
6204 (update_current_target, do_monitor_command): Update.
6205 * remote.c (remote_rcmd): Add 'self' argument.
6206 * monitor.c (monitor_rcmd): Add 'self' argument.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * windows-nat.c (windows_stop): Add 'self' argument.
6211 * target.h (struct target_ops) <to_stop>: Add argument.
6212 * target.c (target_stop): Add argument.
6213 (debug_to_stop): Add argument.
6214 (update_current_target): Update.
6215 * remote.c (remote_stop): Add 'self' argument.
6216 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6217 (gdbsim_cntrl_c): Update.
6218 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6219 * procfs.c (procfs_stop): Add 'self' argument.
6220 * nto-procfs.c (procfs_stop): Add 'self' argument.
6221 * monitor.c (monitor_stop): Add 'self' argument.
6222 (monitor_open): Update.
6223 * linux-nat.c (linux_nat_stop): Add argument.
6224 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6225 * gnu-nat.c (gnu_stop): Add 'self' argument.
6226 * darwin-nat.c (darwin_stop): Add 'self' argument.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops) <to_thread_name>: Add argument.
6231 * target.c (target_thread_name): Add argument.
6232 (update_current_target): Update.
6233 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6235 2014-02-19 Tom Tromey <tromey@redhat.com>
6237 * target.h (struct target_ops) <to_extra_thread_info>: Add
6239 (target_extra_thread_info): Add argument.
6240 * target.c (update_current_target): Update.
6241 * remote.c (remote_threads_extra_info): Add 'self' argument.
6242 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6244 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6245 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6246 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6248 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6250 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6252 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target.h (struct target_ops) <to_program_signals>: Add argument.
6258 * target.c (target_program_signals): Add argument.
6259 * remote.c (remote_program_signals): Add 'self' argument.
6261 2014-02-19 Tom Tromey <tromey@redhat.com>
6263 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6264 * target.c (target_pass_signals): Add argument.
6265 * remote.c (remote_pass_signals): Add 'self' argument.
6266 (remote_start_remote): Update.
6267 * procfs.c (procfs_pass_signals): Add 'self' argument.
6268 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6269 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6270 (linux_nat_create_inferior, linux_nat_attach): Update.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * windows-nat.c (windows_can_run): Add 'self' argument.
6275 * target.h (struct target_ops) <to_can_run>: Add argument.
6276 (target_can_run): Add argument.
6277 * target.c (debug_to_can_run): Add argument.
6278 (update_current_target): Update.
6279 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6280 * inf-child.c (inf_child_can_run): Add 'self' argument.
6281 * go32-nat.c (go32_can_run): Add 'self' argument.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target.h (struct target_ops) <to_has_exited>: Add argument.
6286 (target_has_exited): Add argument.
6287 * target.c (debug_to_has_exited): Add argument.
6288 (update_current_target): Update.
6290 2014-02-19 Tom Tromey <tromey@redhat.com>
6292 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6294 (target_set_syscall_catchpoint): Add argument.
6295 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6297 * target.c (update_current_target): Update.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6303 (target_remove_exec_catchpoint): Add argument.
6304 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6305 (update_current_target): Update.
6306 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6311 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6313 (target_insert_exec_catchpoint): Add argument.
6314 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6315 (update_current_target): Update.
6316 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6319 2014-02-19 Tom Tromey <tromey@redhat.com>
6321 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6323 (target_remove_vfork_catchpoint): Add argument.
6324 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6325 (update_current_target): Update.
6326 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6333 (target_insert_vfork_catchpoint): Add argument.
6334 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6335 (update_current_target): Update.
6336 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6343 (target_remove_fork_catchpoint): Add argument.
6344 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6345 (update_current_target): Update.
6346 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6349 2014-02-19 Tom Tromey <tromey@redhat.com>
6351 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6353 (target_insert_fork_catchpoint): Add argument.
6354 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6355 (update_current_target): Update.
6356 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6363 (target_post_startup_inferior): Add argument.
6364 * target.c (debug_to_post_startup_inferior): Add argument.
6365 (update_current_target): Update.
6366 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6368 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6370 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6372 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6374 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6376 (super_post_startup_inferior): Likewise.
6377 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6379 (super_post_startup_inferior): Likewise.
6380 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6381 Add 'self' argument.
6382 (super_post_startup_inferior): Likewise.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target.h (struct target_ops) <to_load>: Add argument.
6387 * target.c (target_load): Add argument.
6388 (debug_to_load): Add argument.
6389 (update_current_target): Update.
6390 * remote.c (remote_load): Add 'self' argument.
6391 * remote-sim.c (gdbsim_load): Add 'self' argument.
6392 * remote-mips.c (mips_load): Add 'self' argument.
6393 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6394 * monitor.c (monitor_load): Add 'self' argument.
6395 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6397 2014-02-19 Tom Tromey <tromey@redhat.com>
6399 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6400 (target_terminal_info): Add argument.
6401 * target.c (debug_to_terminal_info): Add argument.
6402 (default_terminal_info): Likewise.
6403 * inflow.c (child_terminal_info): Add 'self' argument.
6404 * inferior.h (child_terminal_info): Add 'self' argument.
6405 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6407 2014-02-19 Tom Tromey <tromey@redhat.com>
6409 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6411 (target_terminal_save_ours): Add argument.
6412 * target.c (debug_to_terminal_save_ours): Add argument.
6413 (update_current_target): Update.
6414 * inflow.c (terminal_save_ours): Add 'self' argument.
6415 * inferior.h (terminal_save_ours): Add 'self' argument.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6420 (target_terminal_ours): Add argument.
6421 * target.c (debug_to_terminal_ours): Add argument.
6422 (update_current_target): Update.
6423 * remote.c (remote_terminal_ours): Add 'self' argument.
6424 (remote_close): Update.
6425 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6426 * inflow.c (terminal_ours): Add 'self' argument.
6427 * inferior.h (terminal_ours): Add 'self' argument.
6428 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6430 2014-02-19 Pedro Alves <palves@redhat.com>
6431 Tom Tromey <tromey@redhat.com>
6433 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6435 (target_terminal_ours_for_output): Add argument.
6436 * target.c (debug_to_terminal_ours_for_output): Add argument.
6437 (update_current_target): Update.
6438 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6439 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6440 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target.h (struct target_ops) <to_terminal_inferior>: Add
6446 * target.c (target_terminal_inferior): Add argument.
6447 (update_current_target): Update.
6448 * remote.c (remote_terminal_inferior): Add 'self' argument.
6449 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6450 * inflow.c (terminal_inferior): Add 'self' argument.
6451 * inferior.h (terminal_inferior): Add 'self' argument.
6452 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6453 (go32_terminal_inferior): Add 'self' argument.
6455 2014-02-19 Tom Tromey <tromey@redhat.com>
6457 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6458 (target_terminal_init): Add argument.
6459 * target.c (debug_to_terminal_init): Add argument.
6460 (update_current_target): Update.
6461 * inflow.c (terminal_init_inferior): Add 'self' argument.
6462 * inferior.h (terminal_init_inferior): Add 'self' argument.
6463 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6464 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target.h (struct target_ops)
6469 <to_can_accel_watchpoint_condition>: Add argument.
6470 (target_can_accel_watchpoint_condition): Add argument.
6471 * target.c (debug_to_can_accel_watchpoint_condition): Add
6473 (update_current_target): Update.
6474 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6481 (target_region_ok_for_hw_watchpoint): Add argument.
6482 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6483 (default_region_ok_for_hw_watchpoint): Add argument.
6484 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6485 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6487 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6489 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6491 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6493 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6495 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6497 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6498 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6500 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6501 Add 'self' argument.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6507 (target_insert_watchpoint): Add argument.
6508 * target.c (debug_to_insert_watchpoint): Add argument.
6509 (update_current_target): Update.
6510 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6511 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6512 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6513 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6514 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6515 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6517 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6518 (procfs_insert_hw_watchpoint): Add 'self' argument.
6519 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6521 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6523 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6525 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6526 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6528 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6531 2014-02-19 Tom Tromey <tromey@redhat.com>
6533 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6535 (target_remove_watchpoint): Add argument.
6536 * target.c (debug_to_remove_watchpoint): Add argument.
6537 (update_current_target): Update.
6538 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6539 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6540 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6541 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6542 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6543 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6545 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6546 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6548 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6550 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6552 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6553 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6555 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6562 (target_remove_hw_breakpoint): Add argument.
6563 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6564 (update_current_target): Update.
6565 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6566 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6568 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6569 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6571 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6578 (target_insert_hw_breakpoint): Add argument.
6579 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6580 (update_current_target): Update.
6581 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6582 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6584 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6585 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6586 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6588 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6595 (target_can_use_hardware_watchpoint): Add argument.
6596 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6597 (update_current_target): Update.
6598 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6600 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6602 * remote.c (remote_check_watch_resources): Add 'self' argument.
6603 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6604 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6606 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6607 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6609 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6611 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6613 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6615 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6617 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6619 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6620 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6622 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6627 * target.h (struct target_ops) <to_post_attach>: Add argument.
6628 (target_post_attach): Add argument.
6629 * target.c (debug_to_post_attach): Add argument.
6630 (update_current_target): Update.
6631 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6632 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6633 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6634 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6635 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6637 2014-02-19 Tom Tromey <tromey@redhat.com>
6639 * windows-nat.c (windows_close): Add 'self' argument.
6640 * tracepoint.c (tfile_close): Add 'self' argument.
6641 * target.h (struct target_ops) <to_close>: Add argument.
6642 * target.c (target_close): Add argument.
6643 (update_current_target): Update.
6644 * remote.c (remote_close): Add 'self' argument.
6645 * remote-sim.c (gdbsim_close): Add 'self' argument.
6646 * remote-mips.c (mips_close): Add 'self' argument.
6647 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6648 * record-full.c (record_full_close): Add 'self' argument.
6649 * record-btrace.c (record_btrace_close): Add 'self' argument.
6650 * monitor.h (monitor_close): Add 'self' argument.
6651 * monitor.c (monitor_close): Add 'self' argument.
6652 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6653 * linux-nat.c (linux_nat_close): Add argument.
6654 * go32-nat.c (go32_close): Add 'self' argument.
6655 * exec.c (exec_close_1): Add 'self' argument.
6656 * ctf.c (ctf_close): Add 'self' argument.
6657 * corelow.c (core_close): Add 'self' argument.
6658 (core_close_cleanup): Update.
6659 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6660 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6662 2014-02-19 Tom Tromey <tromey@redhat.com>
6664 * remote.c (remote_load): New function.
6665 (init_remote_ops): Use it.
6667 2014-02-19 Tom Tromey <tromey@redhat.com>
6669 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6671 * common/linux-btrace.h (linux_supports_btrace): Update.
6672 * remote.c (remote_supports_btrace): Add "self" argument.
6673 * target-delegates.c: Rebuild.
6674 * target.c (target_supports_btrace): Remove.
6675 * target.h (struct target_ops) <to_supports_btrace>: Add
6676 target_ops argument.
6677 (target_supports_btrace): New define.
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * record-full.c (record_full_beneath_to_resume_ops)
6682 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6683 (record_full_beneath_to_wait)
6684 (record_full_beneath_to_store_registers_ops)
6685 (record_full_beneath_to_store_registers)
6686 (record_full_beneath_to_xfer_partial_ops)
6687 (record_full_beneath_to_xfer_partial)
6688 (record_full_beneath_to_insert_breakpoint_ops)
6689 (record_full_beneath_to_insert_breakpoint)
6690 (record_full_beneath_to_remove_breakpoint_ops)
6691 (record_full_beneath_to_remove_breakpoint)
6692 (record_full_beneath_to_stopped_by_watchpoint)
6693 (record_full_beneath_to_stopped_data_address)
6694 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6695 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6696 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6697 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6698 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6699 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6700 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6701 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6702 (record_full_resume, record_full_wait_1)
6703 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6704 (record_full_store_registers, record_full_xfer_partial)
6705 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6706 (record_full_async, record_full_core_xfer_partial): Use target
6708 * target-delegates.c: Rebuild.
6709 * target.c (current_xfer_partial): Remove.
6710 (update_current_target): Do not INHERIT or de_fault
6711 to_insert_breakpoint, to_remove_breakpoint,
6712 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6713 to_is_async_p, to_async. Do not set to_xfer_partial field.
6714 (default_xfer_partial): Simplify.
6715 (current_xfer_partial): Remove.
6716 (target_wait, target_resume): Simplify.
6717 (find_default_can_async_p, find_default_is_async_p): Update.
6718 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6719 to_xfer_partial, to_stopped_by_watchpoint,
6720 to_stopped_data_address.
6721 (target_store_registers): Simplify.
6722 (forward_target_remove_breakpoint)
6723 (forward_target_insert_breakpoint): Remove.
6724 (target_remove_breakpoint, target_insert_breakpoint)
6725 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6726 * target.h (struct target_ops) <to_resume, to_wait,
6727 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6728 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6729 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6731 (forward_target_remove_breakpoint)
6732 (forward_target_insert_breakpoint): Remove.
6733 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6735 (record_btrace_insert_breakpoint): Delegate directly.
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target-delegates.c: New file.
6741 * target.c: Include target-delegates.c.
6742 (init_dummy_target): Call install_dummy_methods.
6743 (complete_target_initialization): Call install_delegators.
6744 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6745 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6746 * make-target-delegates: New file.
6748 2014-02-19 Tom Tromey <tromey@redhat.com>
6750 * record.c (find_record_target): Use find_target_at.
6751 * target.c (find_target_at): New function.
6752 * target.h (find_target_at): Declare.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6758 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6760 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6761 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6763 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6765 * linux-nat.c (save_sigtrap): Update.
6766 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6767 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6768 (linux_nat_close): Update.
6769 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6771 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6773 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6774 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6775 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6776 (tmp_to_async): Add 'ops' argument.
6777 (record_full_stopped_by_watchpoint, record_full_async)
6778 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6780 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6781 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6782 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6783 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6784 (remote_is_async_p, remote_async): Add 'ops' argument.
6785 (remote_stopped_data_address): Update.
6786 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6787 * target.c (update_current_target)
6788 (find_default_can_async_p, find_default_is_async_p): Update.
6789 (init_dummy_target): Update.
6790 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6791 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6792 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6793 (target_can_async_p, target_is_async_p, target_async)
6794 (target_stopped_by_watchpoint): Update.
6796 2014-02-19 Yao Qi <yao@codesourcery.com>
6799 * gdbarch.sh: Remove startup_gdbarch.
6800 * gdbarch.c: Regenerated.
6801 * gdbarch.h: Likewise.
6803 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6805 * rl78-tdep.c (rl78_g10_register_name): New function.
6806 (rl78_return_value): Add g10 support.
6807 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6810 2014-02-17 Doug Evans <xdje42@gmail.com>
6812 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6813 (SUBDIR_GUILE_SRCS): Ditto.
6814 (scm-gsmob.o): Ditto.
6816 2014-02-17 Yao Qi <yao@codesourcery.com>
6818 * gnu-nat.c (ILL_RPC): Declare defined function.
6820 2014-02-17 Yao Qi <yao@codesourcery.com>
6822 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6823 mach_msg_type_number_t.
6824 (gnu_write_inferior): Likewise.
6826 2014-02-17 Yao Qi <yao@codesourcery.com>
6828 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6830 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6831 (inf_validate_procs, inf_signal): Likewise.
6832 (S_exception_raise_request): Likewise.
6833 (do_mach_notify_dead_name): Likewise.
6834 (steal_exc_port): Likewise.
6835 (gnu_read_inferior): Change 'copy_count''s type to
6836 mach_msg_type_number_t.
6837 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6840 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6842 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6843 flag. Adjust all users; in particular...
6844 (gnu_wait): ..., don't decrement its value in here...
6845 (gnu_create_inferior): ..., and instead set the flag in here,
6846 around the startup_inferior call, and call that one with
6847 START_INFERIOR_TRAPS_EXPECTED.
6849 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6850 (ILL_RPC): ... new macro.
6851 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6852 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6853 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6854 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6855 functions with ILL_RPC macro.
6856 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6857 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6858 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6859 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6860 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6861 (S_proc_getlogin_reply, S_proc_getsid_reply)
6862 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6863 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6864 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6865 (S_proc_getnports_reply, S_proc_is_important_reply)
6866 (S_proc_get_code_reply): New stub functions, generated with
6869 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6870 collected the type check structures.
6872 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6874 2014-02-14 Doug Evans <dje@google.com>
6876 * target.c (target_write_partial): Fix result type.
6878 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6880 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6881 the proper offsets to access fpregset_t.
6883 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6885 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6886 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6887 * h8300-tdep.c (setmachinelist): Remove global.
6888 * hppa-tdep.c (hppa_sigtramp): Remove global.
6889 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6890 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6891 * ravenscar-thread.c (update_target_observer): Remove global.
6892 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6894 2014-02-12 Tom Tromey <tromey@redhat.com>
6896 * common/rsp-low.c: Update comments.
6897 * common/rsp-low.h: Update comments.
6899 2014-02-12 Tom Tromey <tromey@redhat.com>
6901 * common/rsp-low.c (convert_ascii_to_int): Remove.
6902 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6904 2014-02-12 Tom Tromey <tromey@redhat.com>
6906 * common/rsp-low.h (unhexify): Don't declare.
6907 * common/rsp-low.c (unhexify): Remove.
6909 2014-02-12 Tom Tromey <tromey@redhat.com>
6911 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6912 * common/rsp-low.c (convert_int_to_ascii): Remove.
6914 2014-02-12 Tom Tromey <tromey@redhat.com>
6916 * common/rsp-low.h (hexify): Don't declare.
6917 * common/rsp-low.c (hexify): Remove.
6919 2014-02-12 Tom Tromey <tromey@redhat.com>
6921 * common/rsp-low.c (hexify): Never take strlen of argument.
6923 2014-02-12 Tom Tromey <tromey@redhat.com>
6925 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6926 * remote.c (extended_remote_run, remote_rcmd)
6927 (remote_download_trace_state_variable, remote_save_trace_data)
6928 (remote_set_trace_notes): Update.
6929 * tracepoint.c (encode_source_string, tfile_write_status)
6930 (tfile_write_uploaded_tsv): Update.
6932 2014-02-12 Tom Tromey <tromey@redhat.com>
6934 * tracepoint.c: Include rsp-low.h.
6935 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6936 * remote.c: Include rsp-low.h.
6937 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6938 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6939 (remote_unescape_input): Move to common/rsp-low.c.
6940 * common/rsp-low.h: New file.
6941 * common/rsp-low.c: New file.
6942 * Makefile.in (SFILES): Add common/rsp-low.c.
6943 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6944 (COMMON_OBS): Add rsp-low.o.
6945 (rsp-low.o): New target.
6947 2014-02-12 Tom Tromey <tromey@redhat.com>
6949 * utils.h: Include print-utils.h.
6950 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6951 (int_string, core_addr_to_string, core_addr_to_string_nz)
6952 (hex_string, hex_string_custom): Don't declare.
6953 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6954 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6955 (hex_string_custom, int_string, core_addr_to_string)
6956 (core_addr_to_string_nz, host_address_to_string): Move to
6957 common/print-utils.c.
6958 * common/print-utils.h: New file.
6959 * common/print-utils.c: New file
6960 * Makefile.in (SFILES): Add common/print-utils.c.
6961 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6962 (COMMON_OBS): Add print-utils.o.
6963 (print-utils.o): New target.
6965 2014-02-12 Tom Tromey <tromey@redhat.com>
6967 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6969 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6971 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6973 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6975 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6976 if a PT_IO ptrace request returns sucessfully but indicates that 0
6977 bytes were transferred.
6979 2014-02-12 Pedro Alves <palves@redhat.com>
6980 Kevin Buettner <kevinb@redhat.com>
6982 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6983 TYPE_INSTANCE_FLAG_CODE_SPACE.
6985 2014-02-12 Pedro Alves <palves@redhat.com>
6987 * h8300-tdep.c (pseudo_from_raw_register)
6988 (raw_from_pseudo_register): New functions.
6989 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6992 2014-02-12 Pedro Alves <palves@redhat.com>
6994 * h8300-tdep.c (h8300_register_sim_regno): New function.
6995 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6996 gdbarch_register_sim_regno hook.
6998 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7000 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7002 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7004 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7006 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7008 * obsd-tdep.h (obsd_init_abi): New prototype.
7009 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7010 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7011 (obsd_init_abi): New functions.
7012 * i386obsd-tdep.c: Include "obsd-tdep.h".
7013 (i386obsd_init_abi): Call obsd_init_abi.
7014 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7015 (amd64obsd_init_abi): Call obsd_init_abi.
7016 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7017 obsd-tdep.c to gdb_target_obs.
7019 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7021 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7022 double float arguments to 16-byte in the argument slots.
7024 2014-02-11 Doug Evans <xdje42@gmail.com>
7026 * configure.ac: Don't crash if pkg-config is not found and guile
7027 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7029 * configure: Regenerate.
7031 2014-02-11 Yao Qi <yao@codesourcery.com>
7033 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7034 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7035 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7036 * gnu-nat.c (gnu_xfer_memory): Likewise.
7037 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7038 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7039 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7040 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7042 2014-02-11 Yao Qi <yao@codesourcery.com>
7044 * target.h (enum target_xfer_error): Rename to ...
7045 (enum target_xfer_status): ... it. New. All users updated.
7046 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7048 (TARGET_XFER_STATUS_ERROR_P): New macro.
7049 (target_xfer_error_to_string): Remove declaration.
7050 (target_xfer_status_to_string): Declare.
7051 (target_xfer_partial_ftype): Adjust it.
7052 (struct target_ops) <to_xfer_partial>: Return
7053 target_xfer_status. Add argument xfered_len. Update
7055 * target.c (target_xfer_error_to_string): Rename to ...
7056 (target_xfer_status_to_string): ... it. New. All callers
7058 (target_read_live_memory): Likewise. Call target_xfer_partial
7059 instead of target_read.
7060 (memory_xfer_live_readonly_partial): Return
7061 target_xfer_status. Add argument xfered_len.
7062 (raw_memory_xfer_partial): Likewise.
7063 (memory_xfer_partial_1): Likewise.
7064 (memory_xfer_partial): Likewise.
7065 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7066 properly. Update debug message.
7067 (default_xfer_partial, current_xfer_partial): Likewise.
7068 (target_write_partial): Likewise.
7069 (target_read_partial): Likewise. All callers updated.
7070 (read_whatever_is_readable): Likewise.
7071 (target_write_with_progress): Likewise.
7072 (target_read_alloc_1): Likewise.
7074 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7075 * auxv.c (procfs_xfer_auxv): Likewise.
7076 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7077 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7078 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7079 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7080 * corefile.c (read_memory): Adjust.
7081 * corelow.c (core_xfer_partial): Likewise.
7082 * ctf.c (ctf_xfer_partial): Likewise.
7083 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7085 (darwin_xfer_partial): Likewise.
7086 * exec.c (section_table_xfer_memory_partial): Likewise. All
7088 (exec_xfer_partial): Likewise.
7089 * exec.h (section_table_xfer_memory_partial): Update
7091 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7093 (gnu_xfer_partial): Likewise.
7094 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7095 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7096 (ia64_hpux_xfer_solib_got): Likewise.
7097 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7098 type of 'partial_len' to ULONGEST.
7099 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7100 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7101 (linux_nat_xfer_partial): Likewise.
7102 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7103 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7104 * monitor.c (monitor_xfer_memory): Likewise.
7105 (monitor_xfer_partial): Likewise.
7106 * procfs.c (procfs_xfer_partial): Likewise.
7107 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7108 * record-full.c (record_full_xfer_partial): Likewise.
7109 (record_full_core_xfer_partial): Likewise.
7110 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7111 (gdbsim_xfer_partial): Likewise.
7112 * remote.c (remote_write_bytes_aux): Likewise. All callers
7114 (remote_write_bytes, remote_read_bytes): Likewise. All
7116 (remote_flash_erase): Likewise. All callers updated.
7117 (remote_write_qxfer): Likewise. All callers updated.
7118 (remote_read_qxfer): Likewise. All callers updated.
7119 (remote_xfer_partial): Likewise.
7120 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7121 (rs6000_xfer_shared_libraries): Likewise.
7122 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7123 (sol_thread_xfer_partial): Likewise.
7124 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7125 (sparc_xfer_partial): Likewise.
7126 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7128 (spu_xfer_partial): Likewise.
7129 * spu-multiarch.c (spu_xfer_partial): Likewise.
7130 * tracepoint.c (tfile_xfer_partial): Likewise.
7131 * windows-nat.c (windows_xfer_memory): Likewise.
7132 (windows_xfer_shared_libraries): Likewise.
7133 (windows_xfer_partial): Likewise.
7134 * valprint.c: Replace 'target_xfer_error' with
7135 'target_xfer_status' in comments.
7137 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7139 Checked in by Joel Brobecker <brobecker@adacore.com>.
7140 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7142 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7144 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7145 function parameters.
7147 2014-02-10 Will Newton <will.newton@linaro.org>
7149 * elfread.c (elf_rel_plt_read): Look for a .got section if
7150 looking up .got.plt fails.
7151 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7152 on address passed to elf_gnu_ifunc_record_cache.
7153 (elf_gnu_ifunc_resolve_addr): Likewise.
7154 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7156 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7158 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7159 (X_RETTURN): New macro.
7160 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7162 * sparc64-tdep.c (sparc64_init_abi): Hook
7163 sparc_in_function_epilogue_p.
7165 2014-02-10 Gary Benson <gbenson@redhat.com>
7167 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7168 Rename name_matcher to symbol_matcher.
7170 2014-02-10 Gary Benson <gbenson@redhat.com>
7172 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7173 Use expand_symtabs_file_matcher_ftype and
7174 expand_symtabs_symbol_matcher_ftype.
7176 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7178 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7179 (struct ada_symbol_cache): New.
7180 (ada_free_symbol_cache): Forward declare.
7181 (struct ada_pspace_data): New.
7182 (ada_pspace_data_handle): New static global.
7183 (get_ada_pspace_data, ada_pspace_data_cleanup)
7184 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7185 (cache_space, cache): Delete, now folded inside struct
7187 (ada_get_symbol_cache): New function.
7188 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7190 (_initialize_ada_language): Remove initialization of cache_space.
7191 Move call to observer_attach_inferior_exit up, grouping it
7192 with the other observer registrations inside this function.
7193 Rename command to be more general. Add call to
7194 register_program_space_data_with_cleanup.
7196 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7198 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7199 ada_new_objfile_observer.
7200 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7201 (_initialize_tasks): Update uses of ada_new_objfile_observer
7202 and ada_tasks_normal_stop_observer.
7204 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7206 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7207 returned by the 'Length attribute to integer.
7209 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7211 * ada-lang.c (_initialize_ada_language): Initialize
7212 cache_space obstack.
7214 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7216 * ada-lang.c (HASH_SIZE): New macro.
7217 (struct cache_entry): New type.
7218 (cache_space, cache): New static globals.
7219 (ada_clear_symbol_cache, find_entry): New functions.
7220 (lookup_cached_symbol, cache_symbol): Implement.
7221 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7222 (_initialize_ada_language): Attach ada_new_objfile_observer
7223 and ada_free_objfile_observer.
7225 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7227 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7228 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7229 struct block * parameter.
7230 (ada_lookup_symbol_list_worker): Constify local variable "block".
7231 Remove cast which is no longer necessary.
7233 2014-02-10 Doug Evans <xdje42@gmail.com>
7235 Add Guile as an extension language.
7236 * NEWS: Mention Guile scripting.
7237 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7238 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7239 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7240 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7241 (CLIBS): Add GUILE_LIBS.
7242 (install-guile): New rule.
7243 (guile.o): New rule.
7244 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7245 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7246 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7247 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7248 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7249 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7250 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7251 * configure.ac: New option --with-guile.
7252 * configure: Regenerate.
7253 * config.in: Regenerate.
7254 * auto-load.c: Remove #include "python/python.h". Add #include
7255 "gdb/section-scripts.h".
7256 (source_section_scripts): Handle Guile scripts.
7257 (_initialize_auto_load): Add name of Guile objfile script to
7258 scripts-directory help text.
7259 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7260 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7261 (struct breakpoint): New member scm_bp_object.
7262 * defs.h (enum command_control_type): New value guile_control.
7263 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7265 (show_user): Update comment.
7266 (_initialize_cli_cmds): Update help text for "show user". Update help
7267 text for max-user-call-depth.
7268 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7270 (multi_line_command_p): Add guile_control.
7271 (print_command_lines): Handle guile_control.
7272 (execute_control_command, recurse_read_control_structure): Ditto.
7273 (process_next_line): Recognize "guile" commands.
7274 * disasm.c (gdb_disassemble_info): Make non-static.
7275 * disasm.h: #include "dis-asm.h".
7276 (struct gdbarch): Add forward decl.
7277 (gdb_disassemble_info): Declare.
7278 * extension.c: #include "guile/guile.h".
7279 (extension_languages): Add guile.
7280 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7281 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7282 * gdbtypes.c (get_unsigned_type_max): New function.
7283 (get_signed_type_minmax): New function.
7284 * gdbtypes.h (get_unsigned_type_max): Declare.
7285 (get_signed_type_minmax): Declare.
7286 * guile/README: New file.
7287 * guile/guile-internal.h: New file.
7288 * guile/guile.c: New file.
7289 * guile/guile.h: New file.
7290 * guile/scm-arch.c: New file.
7291 * guile/scm-auto-load.c: New file.
7292 * guile/scm-block.c: New file.
7293 * guile/scm-breakpoint.c: New file.
7294 * guile/scm-disasm.c: New file.
7295 * guile/scm-exception.c: New file.
7296 * guile/scm-frame.c: New file.
7297 * guile/scm-gsmob.c: New file.
7298 * guile/scm-iterator.c: New file.
7299 * guile/scm-lazy-string.c: New file.
7300 * guile/scm-math.c: New file.
7301 * guile/scm-objfile.c: New file.
7302 * guile/scm-ports.c: New file.
7303 * guile/scm-pretty-print.c: New file.
7304 * guile/scm-safe-call.c: New file.
7305 * guile/scm-string.c: New file.
7306 * guile/scm-symbol.c: New file.
7307 * guile/scm-symtab.c: New file.
7308 * guile/scm-type.c: New file.
7309 * guile/scm-utils.c: New file.
7310 * guile/scm-value.c: New file.
7311 * guile/lib/gdb.scm: New file.
7312 * guile/lib/gdb/boot.scm: New file.
7313 * guile/lib/gdb/experimental.scm: New file.
7314 * guile/lib/gdb/init.scm: New file.
7315 * guile/lib/gdb/iterator.scm: New file.
7316 * guile/lib/gdb/printing.scm: New file.
7317 * guile/lib/gdb/types.scm: New file.
7318 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7319 (VPATH): Add $(GUILE_SRCDIR).
7320 (GUILE_DIR): New variable.
7321 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7322 (all): Add stamp-guile dependency.
7323 (stamp-guile): New rule.
7324 (clean-guile, install-guile, uninstall-guile): New rules.
7325 (install-only): Add install-guile dependency.
7326 (uninstall): Add uninstall-guile dependency.
7327 (clean): Add clean-guile dependency.
7329 2014-02-09 Doug Evans <xdje42@gmail.com>
7331 Revert this patch (which I approved, mea culpa).
7333 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7335 * Makefile.in (all-lib): Remove.
7336 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7338 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7340 Fix Python stack corruption.
7341 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7344 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7346 * Makefile.in (all-lib): Remove.
7347 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7349 2014-02-07 Doug Evans <dje@google.com>
7351 * extension-priv.h (extension_language_script_ops): Add comment.
7352 (extension_language_ops): Add comment.
7353 (active_ext_lang_state): Fix typo in comment.
7355 2014-02-07 Pedro Alves <palves@redhat.com>
7357 PR breakpoints/16292
7358 * infrun.c (handle_signal_stop) <signal arrives while stepping
7359 over a breakpoint>: Switch back to the stepping thread.
7361 2014-02-07 Yao Qi <yao@codesourcery.com>
7363 * target.c (target_xfer_partial): Return zero if LEN is zero.
7365 2014-02-07 Yao Qi <yao@codesourcery.com>
7367 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7368 (ld_so_xfer_auxv): Likewise.
7369 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7370 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7371 * corelow.c (core_xfer_partial): Likewise.
7372 * ctf.c (ctf_xfer_partial): Likewise.
7373 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7374 (darwin_xfer_partial): Likewise.
7375 * exec.c (exec_xfer_partial): Likewise.
7376 * gnu-nat.c (gnu_xfer_partial): Likewise.
7377 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7378 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7379 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7380 * linux-nat.c (linux_xfer_siginfo): Likewise.
7381 (linux_proc_xfer_spu): Likewise.
7382 * procfs.c (procfs_xfer_partial): Likewise.
7383 * record-full.c (record_full_xfer_partial): Likewise.
7384 (record_full_core_xfer_partial): Likewise.
7385 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7386 * remote.c (remote_write_qxfer): Likewise.
7387 (remote_write_qxfer, remote_read_qxfer): Likewise.
7388 (remote_xfer_partial): Likewise.
7389 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7390 (rs6000_xfer_shared_libraries): Likewise.
7391 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7392 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7393 (spu_xfer_partial): Likewise.
7394 * target.c (memory_xfer_partial_1): Likewise.
7395 * tracepoint.c (tfile_xfer_partial): Likewise.
7396 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7397 (windows_xfer_partial): Likewise.
7399 2014-02-07 Yao Qi <yao@codesourcery.com>
7401 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7403 (core_xfer_shared_libraries_aix): Likewise.
7404 * gdbarch.c, gdbarch.h: Regenerated.
7405 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7406 ULONGEST. Change 'len_avail' type to ULONGEST.
7407 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7408 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7410 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7412 2014-02-07 Yao Qi <yao@codesourcery.com>
7414 * corefile.c (memory_error): Get 'exception' from ERR and pass
7415 'exception' to throw_error.
7417 2014-02-06 Doug Evans <xdje42@gmail.com>
7419 * configure.ac (libpython checking): Remove all but python.o from
7420 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7421 * configure: Regenerate.
7423 * Makefile.in (SFILES): Add extension.c.
7424 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7425 (COMMON_OBS): Add extension.o.
7426 * extension.h: New file.
7427 * extension-priv.h: New file.
7428 * extension.c: New file.
7430 * python/python-internal.h: #include "extension.h".
7431 (gdbpy_auto_load_enabled): Declare.
7432 (gdbpy_apply_val_pretty_printer): Declare.
7433 (gdbpy_apply_frame_filter): Declare.
7434 (gdbpy_preserve_values): Declare.
7435 (gdbpy_breakpoint_cond_says_stop): Declare.
7436 (gdbpy_breakpoint_has_cond): Declare.
7437 (void source_python_script_for_objfile): Delete.
7438 * python/python.c: #include "extension-priv.h".
7439 Delete inclusion of "observer.h".
7440 (extension_language_python): Moved here and renamed from
7441 script_language_python in py-auto-load.c.
7442 Redefined to be of type extension_language_defn.
7443 (python_extension_script_ops): New global.
7444 (python_extension_ops): New global.
7445 (struct python_env): New member previous_active.
7446 (restore_python_env): Call restore_active_ext_lang.
7447 (ensure_python_env): Call set_active_ext_lang.
7448 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7450 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7452 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7454 (gdbpy_eval_from_control_command): Renamed from
7455 eval_python_from_control_command, made static. New arg extlang.
7456 (gdbpy_source_script) Renamed from source_python_script, made static.
7458 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7459 result to int. New arg extlang.
7460 (gdbpy_source_objfile_script): Renamed from
7461 source_python_script_for_objfile, made static. New arg extlang.
7462 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7463 static. New args extlang, extlang_printers. Change result type to
7465 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7466 static. New arg extlang. Rename arg printers to extlang_printers
7467 and change type to ext_lang_type_printers *.
7468 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7469 static. Replace argument arg with extlang, extlang_printers.
7470 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7471 (!HAVE_PYTHON, source_python_script): Delete.
7472 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7473 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7474 (!HAVE_PYTHON, start_type_printers): Delete.
7475 (!HAVE_PYTHON, apply_type_printers): Delete.
7476 (!HAVE_PYTHON, free_type_printers): Delete.
7477 (_initialize_python): Delete call to observer_attach_before_prompt.
7478 (finalize_python): Set/restore active extension language.
7479 (gdbpy_finish_initialization) Renamed from
7480 finish_python_initialization, made static. New arg extlang.
7481 (gdbpy_initialized): New function.
7482 * python/python.h: #include "extension.h". Delete #include
7483 "value.h", "mi/mi-cmds.h".
7484 (extension_language_python): Declare.
7485 (GDBPY_AUTO_FILE_NAME): Delete.
7486 (enum py_bt_status): Moved to extension.h and renamed to
7488 (enum frame_filter_flags): Moved to extension.h.
7489 (enum py_frame_args): Moved to extension.h and renamed to
7490 ext_lang_frame_args.
7491 (finish_python_initialization): Delete.
7492 (eval_python_from_control_command): Delete.
7493 (source_python_script): Delete.
7494 (apply_val_pretty_printer): Delete.
7495 (apply_frame_filter): Delete.
7496 (preserve_python_values): Delete.
7497 (gdbpy_script_language_defn): Delete.
7498 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7499 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7501 * auto-load.c: #include "extension.h".
7502 (GDB_AUTO_FILE_NAME): Delete.
7503 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7504 (script_language_gdb): Delete, moved to extension.c and renamed to
7505 extension_language_gdb.
7506 (source_gdb_script_for_objfile): Delete.
7507 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7508 (loaded_script): Change type of language member to
7509 struct extension_language_defn *.
7510 (init_loaded_scripts_info): Initialize
7511 unsupported_script_warning_printed.
7512 (maybe_add_script): Make static. Change type of language arg to
7513 struct extension_language_defn *.
7514 (clear_section_scripts): Reset unsupported_script_warning_printed.
7515 (auto_load_objfile_script_1): Rewrite to use extension language API.
7516 (auto_load_objfile_script): Make public. Remove support-compiled-in
7517 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7518 (source_section_scripts): Rewrite to use extension language API.
7519 (load_auto_scripts_for_objfile): Rewrite to use
7520 auto_load_scripts_for_objfile.
7521 (collect_matching_scripts_data): Change type of language member to
7522 struct extension_language_defn *.
7523 (auto_load_info_scripts): Change type of language arg to
7524 struct extension_language_defn *.
7525 (unsupported_script_warning_print): New function.
7526 (script_not_found_warning_print): Make static.
7527 (_initialize_auto_load): Rewrite construction of scripts-directory
7529 * auto-load.h (struct objfile): Add forward decl.
7530 (struct script_language): Delete.
7531 (struct auto_load_pspace_info): Add forward decl.
7532 (struct extension_language_defn): Add forward decl.
7533 (maybe_add_script): Delete.
7534 (auto_load_objfile_script): Declare.
7535 (script_not_found_warning_print): Delete.
7536 (auto_load_info_scripts): Update prototype.
7537 (auto_load_gdb_scripts_enabled): Declare.
7538 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7539 auto_load_python_scripts_enabled and made public.
7540 (script_language_python): Delete, moved to python.c.
7541 (gdbpy_script_language_defn): Delete.
7542 (info_auto_load_python_scripts): Update to use
7543 extension_language_python.
7545 * breakpoint.c (condition_command): Replace call to
7546 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7547 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7548 with call to breakpoint_ext_lang_cond_says_stop.
7549 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7550 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7551 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7552 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7554 (local_setattro): Print name of extension language with existing
7557 * valprint.c (val_print, value_print): Update to call
7558 apply_ext_lang_val_pretty_printer.
7559 * cp-valprint.c (cp_print_value): Update call to
7560 apply_ext_lang_val_pretty_printer.
7561 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7562 (gdbpy_apply_val_pretty_printer): Renamed from
7563 apply_val_pretty_printer. New arg extlang.
7564 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7566 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7567 extension language API.
7568 * cli/cli-script.c (execute_control_command): Update to call
7569 eval_ext_lang_from_control_command.
7571 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7572 enum ext_lang_bt_status values. Update call to
7573 apply_ext_lang_frame_filter.
7574 (mi_cmd_stack_list_locals): Ditto.
7575 (mi_cmd_stack_list_args): Ditto.
7576 (mi_cmd_stack_list_variables): Ditto.
7577 * mi/mi-main.c: Delete #include "python/python-internal.h".
7578 Add #include "extension.h".
7579 (mi_cmd_list_features): Replace reference to python internal variable
7580 gdb_python_initialized with call to ext_lang_initialized_p.
7582 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7583 Update to use enum ext_lang_frame_args. Update to call
7584 apply_ext_lang_frame_filter.
7585 * python/py-framefilter.c (extract_sym): Update to use enum
7587 (extract_value, py_print_type, py_print_value): Ditto.
7588 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7589 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7590 (py_print_frame): Ditto.
7591 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7592 New arg extlang. Update to use enum ext_lang_bt_status.
7594 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7595 finish_python_initialization. Replace with call to
7596 finish_ext_lang_initialization.
7598 * typeprint.c (do_free_global_table): Update to call
7599 free_ext_lang_type_printers.
7600 (create_global_typedef_table): Update to call
7601 start_ext_lang_type_printers.
7602 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7603 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7604 (type_print_options): Change type of global_printers from "void *"
7605 to "struct ext_lang_type_printers *".
7607 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7608 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7609 (gdbpy_preserve_values): Renamed from preserve_python_values.
7611 (!HAVE_PYTHON, preserve_python_values): Delete.
7613 * utils.c (quit_flag): Delete, moved to extension.c.
7614 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7617 * eval.c: Delete #include "python/python.h".
7618 * main.c: Delete #include "python/python.h".
7620 * defs.h: Update comment.
7622 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7626 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7628 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7631 2014-02-05 Yao Qi <yao@codesourcery.com>
7633 * remote.c (remote_pass_signals): Remove local 'buf' and use
7635 (remote_program_signals): Likewise.
7637 2014-02-05 Yao Qi <yao@codesourcery.com>
7639 * ctf.c: Include "inferior.h" and "gdbthread.h".
7640 (CTF_PID): A new macro.
7641 (ctf_open): Call inferior_appeared and add_thread_silent.
7642 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7643 (ctf_thread_alive): New function.
7644 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7646 2014-02-05 Yao Qi <yao@codesourcery.com>
7650 2013-05-24 Yao Qi <yao@codesourcery.com>
7652 * tracepoint.c (TFILE_PID): Remove.
7653 (tfile_open): Don't add thread and inferior.
7654 (tfile_close): Don't set 'inferior_ptid'. Don't call
7655 exit_inferior_silent.
7656 (tfile_thread_alive): Remove.
7657 (init_tfile_ops): Don't set field 'to_thread_alive' of
7660 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7662 * remote.c (remote_start_remote): Call remote_check_symbols even
7663 if only symbol-file (not file) has been given.
7665 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7667 * gdbarch.sh (skip_entrypoint): New callback.
7668 * gdbarch.c, gdbarch.h: Regenerate.
7669 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7670 * infrun.c (fill_in_stop_func): Likewise.
7671 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7672 (ppc_elfv2_elf_make_msymbol_special): New function.
7673 (ppc_elfv2_skip_entrypoint): Likewise.
7674 (ppc_linux_init_abi): Install them for ELFv2.
7676 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7678 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7679 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7680 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7681 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7682 structures returned in GPRs.
7684 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7686 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7687 offset to the stack parameter list for the ELFv2 ABI.
7689 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7691 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7692 set_gdbarch_convert_from_func_ptr_addr and
7693 set_gdbarch_elf_make_msymbol_special for ELFv1.
7694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7695 function descriptors on ELFv1.
7696 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7697 set up r12 at function entry.
7699 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7701 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7702 (struct gdbarch_tdep): New member elf_abi.
7704 * rs6000-tdep.c: Include "elf/ppc64.h".
7705 (rs6000_gdbarch_init): Detect ELF ABI version.
7707 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7709 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7710 within a register pair holding a DFP 128-bit value on little-endian.
7711 (ppc64_sysv_abi_return_value_base): Likewise.
7712 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7713 (dfp_pseudo_register_write): Likewise.
7715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7717 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7718 offset on little-endian when passing _Decimal32.
7719 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7721 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7723 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7724 of the overlapped FP register within the VSX register on little-
7726 (efpr_pseudo_register_write): Likewise.
7728 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7730 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7731 offset on little-endian when passing small structures.
7733 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7735 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7736 (struct ppc64_sysv_argpos): New data structure.
7737 (ppc64_sysv_abi_push_float): Remove.
7738 (ppc64_sysv_abi_push_val): New function.
7739 (ppc64_sysv_abi_push_integer): Likewise.
7740 (ppc64_sysv_abi_push_freg): Likewise.
7741 (ppc64_sysv_abi_push_vreg): Likewise.
7742 (ppc64_sysv_abi_push_param): Likewise.
7743 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7744 (ppc64_sysv_abi_return_value_base): New function.
7745 (ppc64_sysv_abi_return_value): Refactor to use it.
7747 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7749 * NEWS: Document new target powerpc64le-*-linux*.
7751 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7753 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7754 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7756 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7757 register set used in ELF core dumps. Add floating-point register set.
7759 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7761 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7762 dwarf2_to_gdb[] table using symbolic constants. Adjust
7763 penultimate entry from number representing the PC register
7764 to symbolic constant representing the MDR register. Add
7765 constant for the PC register to the end of the table.
7767 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7769 * bsd-kvm.c: Include <sys/param.h>
7771 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7773 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7775 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7777 * ada-lang.h (clear_ada_sym_cache): Delete.
7779 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7781 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7783 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7785 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7786 the sigreturn register save area only if the syscall is
7789 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7791 * valops.c (value_slice): Minor reformatting.
7793 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7795 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7797 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7799 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7801 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7802 (ada_ignore_descriptive_types_p): New static global.
7803 (find_parallel_type_by_descriptive_type): Return immediately
7804 if ada_ignore_descriptive_types_p is set.
7805 (_initialize_ada_language): Register new commands "maintenance
7806 set ada", "maintenance show ada", "maintenance set ada
7807 ignore-descriptive-types" and "maintenance show ada
7808 ignore-descriptive-types".
7809 * NEWS: Add entry for new "maint ada set/show
7810 ignore-descriptive-types" commands.
7812 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7814 * record-btrace.c (record_btrace_close): Call btrace_teardown
7817 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7819 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7822 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7824 * ada-typeprint (type_is_full_subrange_of_target_type):
7826 (print_range): Add parameter bounds_prefered_p. If not set,
7827 try printing range types using the name of their base type.
7828 (print_range_type): Add parameter bounds_prefered_p.
7829 Use it in call to print_range.
7830 (print_array_type, ada_print_type): Update calls to print_range
7831 and print_range_type.
7833 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7835 * ada-typeprint.c (print_array_type, print_choices, print_range)
7836 (print_range_bound, print_dynamic_range_bound, print_range_type):
7839 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7841 * ada-typeprint.c (print_range): Add missing empty line
7842 after local declaration.
7844 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7846 * ada-valprint.c (print_optional_low_bound): Get index_type's
7847 target type for as long as it is a TYPE_CODE_RANGE.
7849 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7851 * procfs.c (procfs_make_note_section): Remove assertion and
7854 2014-01-24 Yao Qi <yao@codesourcery.com>
7856 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7857 * corelow.c (get_core_siginfo): Likewise.
7859 2014-01-24 Yao Qi <yao@codesourcery.com>
7861 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7862 ULONGEST. Don't check 'len' is negative.
7863 (remote_write_bytes): Change type of 'len' to ULONGEST.
7865 2014-01-23 Tom Tromey <tromey@redhat.com>
7868 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7869 Handle exception from frame.block.
7870 (FrameVars.fetch_frame_locals): Likewise.
7872 2014-01-23 Tom Tromey <tromey@redhat.com>
7875 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7876 on a NULL pointer. Move "goto error" to correct place.
7878 2014-01-23 Tom Tromey <tromey@redhat.com>
7881 * python/py-framefilter.c (apply_frame_filter): Call
7882 ensure_python_env after computing gdbarch.
7884 2014-01-23 Yao Qi <yao@codesourcery.com>
7886 * target.c (raw_memory_xfer_partial): Change argument type
7887 from void * to gdb_byte *.
7888 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7890 2014-01-22 Doug Evans <dje@google.com>
7892 New gdbserver option --debug-format=timestamp.
7895 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7897 * syscalls/s390x-linux.xml: New file.
7898 * syscalls/s390-linux.xml: New file.
7899 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7900 (XML_SYSCALL_FILENAME_S390X): Likewise.
7901 (op_svc): New enum value for SVC opcode.
7902 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7903 (s390_linux_get_syscall_number): New function.
7904 (s390_gdbarch_init): Register '*get_syscall_number' and the
7905 syscall xml file name.
7906 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7907 "s390-linux.xml" and "s390x-linux.xml".
7908 * NEWS: Announce new feature.
7910 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7912 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7914 2014-01-22 Pedro Alves <palves@redhat.com>
7916 * xtensa-config.c: Include defs.h.
7918 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7920 * common/common-utils.h: Add "ARI:" comment beside __func__
7923 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7925 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7926 documentation a bit.
7928 2014-01-21 Roland McGrath <mcgrathr@google.com>
7930 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7931 * configure: Regenerate.
7932 * aclocal.m4: Regenerate.
7933 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7934 New substituted variables.
7935 (install-strip): New target.
7936 (INSTALL_SCRIPT): New substituted variable.
7937 (FLAGS_TO_PASS): Add it.
7938 (install-only): Use $(INSTALL_SCRIPT) rather than
7939 $(INSTALL_PROGRAM) for gcore.
7941 2014-01-20 Tom Tromey <tromey@redhat.com>
7943 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7946 2014-01-20 Tom Tromey <tromey@redhat.com>
7948 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7949 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7950 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7951 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7952 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7953 (struct cmd_list_element) <flags>: Remove.
7954 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7955 doc_allocated>: New fields.
7956 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7958 * maint.c (maintenance_do_deprecate): Update.
7959 * top.c (execute_command): Update.
7961 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7963 * xtensa-linux-nat.c: Include asm/ptrace.h.
7965 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7967 * Makefile.in (SFILES): Add d-support.c.
7968 (COMMON_OBS): Add d-support.o.
7969 * d-lang.h (d_parse_symbol): Add comment, now defined in
7971 * d-lang.c (parse_call_convention)
7972 (parse_attributes, parse_function_types)
7973 (parse_function_args, parse_type, parse_identifier)
7974 (call_convention_p, d_parse_symbol): Move functions to ...
7975 * d-support.c: ... New file.
7977 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7979 * d-lang.h (d_parse_symbol): Add declaration.
7980 * d-lang.c (extract_identifiers)
7981 (extract_type_info): Remove functions.
7982 (parse_call_convention, parse_attributes)
7983 (parse_function_types, parse_function_args)
7984 (parse_type, parse_identifier, call_convention_p)
7985 (d_parse_symbol): New functions.
7986 (d_demangle): Use d_parse_symbol to demangle D symbols.
7988 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7990 * d-lang.h (struct builtin_d_type): New data type.
7991 (builtin_d_type): Add declaration.
7992 * d-lang.c (d_language_arch_info, build_d_types)
7993 (builtin_d_type): New functions.
7994 (enum d_primitive_types): New data type.
7995 (d_language_defn): Change c_language_arch_info to
7996 d_language_arch_info.
7997 (d_type_data): New static variable.
7998 (_initialize_d_language): Initialize d_type_data.
8000 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8002 * d-lang.h (d_main_name): Add declaration.
8003 * d-lang.c (d_main_name): New function.
8004 * symtab.c (find_main_name): Add call to d_main_name.
8006 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8008 * d-lang.c (d_language_defn): Change macro_expansion_c to
8011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8013 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8015 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8017 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8018 gdb_exception" declaration.
8019 * remote.c (getpkt_or_notif_sane): Likewise.
8021 2014-01-17 Doug Evans <dje@google.com>
8023 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8024 function, contents of dirnames_to_char_ptr_vec_append moved here.
8025 (delim_string_to_char_ptr_vec): New function.
8026 (dirnames_to_char_ptr_vec_append): Rewrite.
8027 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8029 2014-01-17 Doug Evans <dje@google.com>
8031 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8033 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8034 #include "common-utils.h".
8035 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8036 * common/vec.h (VEC_ASSERT_PASS): Update.
8037 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8038 (MACH_CHECK_ERROR): Update.
8040 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8042 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8044 * gdbarch.h: Regenerate.
8046 2014-01-16 Tom Tromey <tromey@redhat.com>
8048 * value.c (struct value) <regnum>: Move earlier.
8050 2014-01-16 Tom Tromey <tromey@redhat.com>
8052 * remote.c (extended_remote_create_inferior): Rename from
8053 extended_remote_create_inferior_1. Add "ops" argument. Remove
8056 2014-01-16 Pedro Alves <palves@redhat.com>
8058 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8059 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8062 2014-01-16 Doug Evans <dje@google.com>
8064 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8068 * btrace.h (btrace_thread_flag): New.
8069 (struct btrace_thread_info) <flags>: New.
8070 * record-btrace.c (record_btrace_resume_thread)
8071 (record_btrace_find_thread_to_move, btrace_step_no_history)
8072 (btrace_step_stopped, record_btrace_start_replaying)
8073 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8074 (record_btrace_find_resume_thread): New.
8075 (record_btrace_resume, record_btrace_wait): Extend.
8076 (record_btrace_can_execute_reverse): New.
8077 (record_btrace_open): Fail in non-stop mode.
8078 (record_btrace_set_replay): Split into this, ...
8079 (record_btrace_stop_replaying): ... this, ...
8080 (record_btrace_clear_histories): ... and this.
8081 (init_record_btrace_ops): Init to_can_execute_reverse.
8082 * NEWS: Announce it.
8084 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8086 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8087 (forward_target_decr_pc_after_break)
8088 (target_decr_pc_after_break): New.
8089 * target.c (forward_target_decr_pc_after_break)
8090 (target_decr_pc_after_break): New.
8091 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8092 instead of gdbarch_decr_pc_after_break.
8093 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8094 instead of gdbarch_decr_pc_after_break.
8095 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8096 instead of gdbarch_decr_pc_after_break.
8097 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8098 instead of gdbarch_decr_pc_after_break.
8099 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8100 instead of gdbarch_decr_pc_after_break.
8101 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8102 instead of gdbarch_decr_pc_after_break.
8104 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8106 * btrace.c: Include regcache.h.
8107 (btrace_add_pc): New.
8108 (btrace_enable): Call btrace_add_pc.
8109 (btrace_is_empty): New.
8110 * btrace.h (btrace_is_empty): New.
8111 * record-btrace.c (require_btrace, record_btrace_info): Call
8114 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8116 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8117 Support delta reads.
8118 (linux_disable_btrace): Change return type.
8119 * common/linux-btrace.h (linux_read_btrace): Change parameters
8120 and return type to allow error reporting. Update users.
8121 (linux_disable_btrace): Change return type. Update users.
8122 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8124 (btrace_error): New.
8125 (btrace_block) <begin>: Comment on BEGIN == 0.
8126 * btrace.c (btrace_compute_ftrace): Start from the end of
8128 (btrace_stitch_trace, btrace_clear_history): New.
8129 (btrace_fetch): Read delta trace, return if replaying.
8130 (btrace_clear): Move clear history code to btrace_clear_history.
8131 (parse_xml_btrace): Throw an error if parsing failed.
8132 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8133 and return type to allow error reporting.
8134 (target_read_btrace): Change parameters and return type to allow
8136 * target.c (target_read_btrace): Update.
8137 * remote.c (remote_read_btrace): Support delta reads. Pass
8139 * NEWS: Announce it.
8141 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8143 * record.h (record_btrace_frame_unwind)
8144 (record_btrace_tailcall_frame_unwind): New declarations.
8145 * dwarf2-frame: Include record.h
8146 (dwarf2_frame_cfa): Throw an error for btrace frames.
8147 * record-btrace.c: Include hashtab.h.
8148 (btrace_get_bfun_name): New.
8149 (btrace_call_history): Call btrace_get_bfun_name.
8150 (struct btrace_frame_cache): New.
8152 (bfcache_hash, bfcache_eq, bfcache_new): New.
8153 (btrace_get_frame_function): New.
8154 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8155 (record_btrace_frame_this_id): Compute own id.
8156 (record_btrace_frame_prev_register): Provide PC, throw_error
8157 for all other registers.
8158 (record_btrace_frame_sniffer): Detect btrace frames.
8159 (record_btrace_tailcall_frame_sniffer): New.
8160 (record_btrace_frame_dealloc_cache): New.
8161 (record_btrace_frame_unwind): Add new functions.
8162 (record_btrace_tailcall_frame_unwind): New.
8163 (_initialize_record_btrace): Allocate cache.
8164 * btrace.c (btrace_clear): Call reinit_frame_cache.
8165 * NEWS: Announce it.
8167 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8169 * record-btrace.c (record_btrace_set_replay)
8170 (record_btrace_goto_begin, record_btrace_goto_end)
8171 (record_btrace_goto): New.
8172 (init_record_btrace_ops): Initialize them.
8173 * NEWS: Announce it.
8175 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8177 * record-btrace.c (record_btrace_find_new_threads)
8178 (record_btrace_thread_alive): New.
8179 (init_record_btrace_ops): Initialize to_find_new_threads and
8182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8184 * record-btrace.c (record_btrace_resume): New.
8185 (record_btrace_wait): New.
8186 (init_record_btrace_ops): Initialize to_wait and to_resume.
8188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8190 * record-btrace.c (record_btrace_xfer_partial)
8191 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8192 (record_btrace_allow_memory_access): New.
8193 (init_record_btrace_ops): Initialize new methods.
8194 * target.c (raw_memory_xfer_partial): Bail out if target reports
8195 that this memory is not available.
8197 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8199 * target.h (target_ops) <to_insert_breakpoint>
8200 <to_remove_breakpoint>: Add target_ops parameter.
8201 (forward_target_insert_breakpoint): New.
8202 (forward_target_remove_breakpoint): New.
8203 (memory_remove_breakpoint, memory_insert_breakpoint):
8204 Add target_ops parameter.
8205 * target.c (target_insert_breakpoint): Split into this and ...
8206 (forward_target_insert_breakpoint): ... this.
8207 (target_remove_breakpoint): Split into this and ...
8208 (forward_target_remove_breakpoint): ... this.
8209 (debug_to_insert_breakpoint): Add target_ops parameter.
8210 Call forward_target_insert_breakpoint.
8211 (debug_to_remove_breakpoint): Add target_ops parameter.
8212 Call forward_target_remove_breakpoint.
8213 (update_current_target): Do not inherit or default to_insert_breakpoint
8214 and to_remove_breakpoint.
8215 * corelow.c (ignore): Add target_ops parameter.
8216 * exec.c (ignore): Add target_ops parameter.
8217 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8218 Add target_ops parameter.
8219 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8220 Add target_ops parameter.
8221 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8222 Add target_ops parameter.
8223 * record-full.c (record_full_beneath_to_insert_breakpoint)
8224 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8225 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8226 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8227 (record_full_core_remove_breakpoint): Add target_ops parameter.
8229 (record_full_beneath_to_insert_breakpoint_ops)
8230 (record_full_beneath_to_remove_breakpoint_ops)
8231 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8232 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8233 tmp_to_remove_breakpoint_ops,
8234 record_full_beneath_to_insert_breakpoint_ops, and
8235 record_full_beneath_to_remove_breakpoint_ops.
8236 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8237 (m32r_remove_breakpoint): Add target_ops parameter.
8238 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8239 Add target_ops parameter.
8240 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8241 Add target_ops parameter.
8243 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8244 Markus Metzger <markus.t.metzger@intel.com>
8246 * record-btrace.c: Include frame-unwind.h.
8247 (record_btrace_frame_unwind_stop_reason)
8248 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8249 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8251 (init_record_btrace_ops): Install it.
8253 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8255 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8258 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8263 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8265 * frame-unwind.c: Include target.h.
8266 (frame_unwind_try_unwinder): New function with code from ...
8267 (frame_unwind_find_by_frame): ... here. New variable
8268 unwinder_from_target, call also target_get_unwinder)
8269 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8270 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8271 * target.h (struct target_ops): New fields to_get_unwinder and
8272 to_get_tailcall_unwinder.
8273 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8277 * record-btrace.c (record_btrace_fetch_registers)
8278 (record_btrace_store_registers)
8279 (record_btrace_to_prepare_to_store): New.
8280 (init_record_btrace_ops): Add the above.
8282 2014-01-16 Tom Tromey <tromey@redhat.com>
8284 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8285 * target.h (struct target_ops) <to_prepare_to_store>: Add
8287 (target_prepare_to_store): Add argument.
8288 * target.c (debug_to_prepare_to_store): Add argument.
8289 (update_current_target): Update.
8290 * remote.c (remote_prepare_to_store): Add 'self' argument.
8291 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8292 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8293 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8294 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8296 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8297 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8298 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8299 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8300 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8304 * btrace.h (replay) <replay>: New.
8305 (btrace_is_replaying): New.
8306 * btrace.c (btrace_clear): Free replay iterator.
8307 (btrace_is_replaying): New.
8308 * record-btrace.c (record_btrace_is_replaying): New.
8309 (record_btrace_info): Print insn number if replaying.
8310 (record_btrace_insn_history): Start at replay position.
8311 (record_btrace_call_history): Start at replay position.
8312 (init_record_btrace_ops): Init to_record_is_replaying.
8314 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8316 * record-btrace.c (record_btrace_insn_history_range): Include
8318 (record_btrace_insn_history_from): Adjust range.
8319 (record_btrace_call_history_range): Include
8321 (record_btrace_call_history_from): Adjust range.
8322 * NEWS: Announce changes.
8324 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8326 * record.h (enum record_print_flag)
8327 <record_print_indent_calls>: New.
8328 * record.c (get_call_history_modifiers): Recognize /c modifier.
8329 (_initialize_record): Document /c modifier.
8330 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8331 Reorder fields. Optionally indent the function name. Update
8333 * NEWS: Announce changes.
8335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8337 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8341 * btrace.c (ftrace_new_function): Start counting at one.
8342 * record-btrace.c (record_btrace_info): Adjust number of calls
8344 * NEWS: Announce it.
8346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8348 * record-btrace.c (btrace_call_history_insn_range): Print
8349 insn range as [begin, end].
8351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8353 * btrace.h (struct btrace_func_link): New.
8354 (enum btrace_function_flag): New.
8355 (struct btrace_inst): Rename to ...
8356 (struct btrace_insn): ...this. Update all users.
8357 (struct btrace_func) <ibegin, iend>: Remove.
8358 (struct btrace_func_link): New.
8359 (struct btrace_func): Rename to ...
8360 (struct btrace_function): ...this. Update all users.
8361 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8362 (number, level, flags>: New.
8363 (struct btrace_insn_iterator): Rename to ...
8364 (struct btrace_insn_history): ...this.
8366 (struct btrace_insn_iterator, btrace_call_iterator): New.
8367 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8368 (struct btrace_target_info) <begin, end, level>
8369 <insn_history, call_history>: New.
8370 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8371 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8372 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8373 (btrace_call_number, btrace_call_begin, btrace_call_end)
8374 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8375 (btrace_find_function_by_number, btrace_set_insn_history)
8376 (btrace_set_call_history): New.
8377 * btrace.c (btrace_init_insn_iterator)
8378 (btrace_init_func_iterator, compute_itrace): Remove.
8379 (ftrace_print_function_name, ftrace_print_filename)
8380 (ftrace_skip_file): Change
8382 (ftrace_init_func): Remove.
8383 (ftrace_debug): Use new btrace_function fields.
8384 (ftrace_function_switched): Also consider gaining and
8385 losing symbol information).
8386 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8387 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8388 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8390 (ftrace_new_function): Move. Remove debug print.
8391 (ftrace_update_lines, ftrace_update_insns): New.
8392 (ftrace_update_function): Check for call, ret, and jump.
8393 (compute_ftrace): Renamed to ...
8394 (btrace_compute_ftrace): ...this. Rewritten to compute call
8396 (btrace_fetch, btrace_clear): Updated.
8397 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8398 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8399 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8400 (btrace_call_number, btrace_call_begin, btrace_call_end)
8401 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8402 (btrace_find_function_by_number, btrace_set_insn_history)
8403 (btrace_set_call_history): New.
8404 * record-btrace.c (require_btrace): Use new btrace thread
8406 (record_btrace_info, btrace_insn_history)
8407 (record_btrace_insn_history, record_btrace_insn_history_range):
8408 Use new btrace thread info fields and new iterator.
8409 (btrace_func_history_src_line): Rename to ...
8410 (btrace_call_history_src_line): ...this. Use new btrace
8412 (btrace_func_history): Rename to ...
8413 (btrace_call_history): ...this. Use new btrace thread info
8414 fields and new iterator.
8415 (record_btrace_call_history, record_btrace_call_history_range):
8416 Use new btrace thread info fields and new iterator.
8418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8420 * frame.h (frame_id_build_unavailable_stack_special): New.
8421 * frame.c (frame_id_build_unavailable_stack_special): New.
8423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8425 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8426 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8427 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8429 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8430 (i386_insn_is_jump, i386_jmp_p): New.
8431 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8432 insn_is_jump to gdbarch.
8433 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8434 * gdbarch.h: Regenerated.
8435 * gdbarch.c: Regenerated.
8436 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8437 (default_insn_is_jump): New.
8438 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8439 (default_insn_is_jump): New.
8441 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8443 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8445 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8446 (btrace_read_type) <btrace_read_new>: Change to ...
8447 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8451 * common/linux-btrace.c (linux_read_btrace): Free trace from
8454 2014-01-15 Doug Evans <dje@google.com>
8456 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8459 2014-01-15 Tom Tromey <tromey@redhat.com>
8461 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8462 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8463 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8464 (set_objfile_main_name): New function.
8465 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8466 language_of_main>: New fields.
8467 (set_objfile_main_name): Declare.
8468 * symtab.c (find_main_name): Loop over objfiles to find the main
8470 (set_main_name): Now static.
8471 (get_main_info): Add comment.
8472 * symtab.h (set_main_name): Don't declare.
8474 2014-01-15 Tom Tromey <tromey@redhat.com>
8476 * symtab.c (main_progspace_key): New global.
8477 (struct main_info): New.
8478 (name_of_main, language_of_main): Remove.
8479 (get_main_info, main_info_cleanup): New function.
8480 (set_main_name, main_name, main_language): Use get_main_info.
8481 (_initialize_symtab): Initialize main_progspace_key.
8483 2014-01-15 Tom Tromey <tromey@redhat.com>
8485 * dbxread.c (process_one_symbol): Update.
8486 * dwarf2read.c (read_partial_die): Update.
8487 * symfile.c (set_initial_language): Call main_language.
8488 * symtab.c (language_of_main): Now static.
8489 (set_main_name): Add 'lang' parameter.
8490 (find_main_name): Update.
8491 (main_language): New function.
8492 (symtab_observer_executable_changed): Update.
8493 * symtab.h (set_main_name): Update.
8494 (language_of_main): Remove.
8495 (main_language): Declare.
8497 2014-01-15 Tom Tromey <tromey@redhat.com>
8499 * symfile.c (init_entry_point_info): Use new "initialized" field.
8501 * objfiles.h (struct entry_point) <initialized>: New field.
8502 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8503 (struct objfile) <ei>: ...here. Remove.
8504 * objfiles.c (entry_point_address_query): Update.
8506 2014-01-15 Tom Tromey <tromey@redhat.com>
8508 * objfiles.c (entry_point_address_query): Relocate entry point
8510 (objfile_relocate1): Do not relocate entry point address.
8511 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8512 <the_bfd_section_index>: New field.
8513 * symfile.c (init_entry_point_info): Find the entry point's
8516 2014-01-15 Tom Tromey <tromey@redhat.com>
8518 * solib-frv.c (enable_break): Use entry_point_address_query.
8520 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8522 * NEWS: Add note on improved process record-replay on
8523 arm*-linux* targets.
8525 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8527 * arm-tdep.c (enum arm_record_result): New enum.
8528 (arm_record_unsupported_insn): New function.
8529 (arm_record_coproc_data_proc): Removed.
8530 (thumb2_record_ld_st_multiple): New function.
8531 (thumb2_record_ld_st_dual_ex_tbb): New function.
8532 (thumb2_record_data_proc_sreg_mimm): New function.
8533 (thumb2_record_ps_dest_generic): New function.
8534 (thumb2_record_branch_misc_cntrl): New function.
8535 (thumb2_record_str_single_data): New function.
8536 (thumb2_record_ld_mem_hints): New function.
8537 (thumb2_record_ld_word): New function.
8538 (thumb2_record_lmul_lmla_div): New function.
8539 (thumb2_record_decode_insn_handler): New function.
8540 (decode_insn): Add thumb32 instruction handlers.
8542 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8544 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8545 (struct arm_linux_record_tdep): Declare.
8546 (arm_canonicalize_syscall): New function.
8547 (arm_all_but_pc_registers_record): New function.
8548 (arm_linux_syscall_record): New function.
8549 (arm_linux_init_abi): Add syscall recording constructs.
8550 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8551 decoding. (arm_record_coproc_data_proc): Update arm syscall
8553 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8554 <arm_syscall_record>: New field.
8555 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8558 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8560 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8561 register for push instruction recording.
8563 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8565 * arm-tdep.c (thumb_record_misc): Update to correct logical
8566 error while recording ldm, ldmia and pop instructions.
8568 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8570 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8572 2014-01-15 Pedro Alves <palves@redhat.com>
8574 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8575 (go32_resume, go32_fetch_registers, store_register)
8576 (go32_store_registers, go32_prepare_to_store)
8577 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8578 (go32_create_inferior, go32_can_run, go32_terminal_init)
8579 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8582 2014-01-15 Tom Tromey <tromey@redhat.com>
8584 * target.h (async_callback_ftype): New typedef.
8585 (struct target_ops) <to_async>: Use it.
8587 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8589 * python/py-value.c (get_field_type): Remove unnecessary curly
8590 braces for single-statement if block.
8592 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8594 * python/py-type.c (convert_field): Add missing empty line
8597 2014-01-14 Doug Evans <dje@google.com>
8599 * symfile.h (expand_symtabs_matching): Renamed from
8600 expand_partial_symbol_names. Update prototype.
8601 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8602 * symfile.c (expand_symtabs_matching): Renamed from
8603 expand_partial_symbol_names. New args file_matcher, kind.
8604 Rename arg fun to symbol_matcher.
8605 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8606 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8607 ada_expand_partial_symbol_name.
8608 (ada_make_symbol_completion_list): Update to call
8609 expand_symtabs_matching.
8610 (ada_add_global_exceptions): Call expand_symtabs_matching.
8611 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8612 call map_symbol_filenames.
8613 * symtab.c (sources_info): Update to call map_symbol_filenames.
8614 (search_symbols): Call expand_symtabs_matching.
8615 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8616 (default_make_symbol_completion_list_break_on): Update to call
8617 expand_symtabs_matching.
8618 (make_source_files_completion_list): Update to call
8619 map_symbol_filenames.
8621 2014-01-14 Doug Evans <dje@google.com>
8623 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8624 (expand_symtabs_symbol_matcher_ftype): New typedef.
8625 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8626 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8627 * symfile.c (expand_partial_symbol_names): Update to use
8628 expand_symtabs_symbol_matcher_ftype.
8629 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8630 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8631 Arg name_matcher renamed to symbol_matcher.
8632 * psymtab.c (recursively_search_psymtabs): Update to use
8633 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8635 (expand_symtabs_matching_via_partial): Update to use
8636 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8637 Arg name_matcher renamed to symbol_matcher.
8639 2014-01-14 Doug Evans <dje@google.com>
8641 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8642 (map_partial_symbol_filenames): Ditto.
8643 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8644 (map_partial_symbol_filenames): Ditto.
8645 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8646 (map_partial_symbol_filenames): Ditto.
8647 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8648 (map_partial_symbol_filenames): Ditto.
8649 * symtab.c: Delete #include "psymtab.h".
8651 2014-01-14 Pedro Alves <palves@redhat.com>
8652 Tom Tromey <tromey@redhat.com>
8654 * infrun.c (use_displaced_stepping): Use find_record_target
8655 instead of RECORD_IS_USED.
8656 (adjust_pc_after_break): Use record_full_is_used instead of
8658 * record-btrace.c (record_btrace_open): Call record_preopen
8659 instead of checking RECORD_IS_USED.
8660 * record-full.c (record_full_shortname)
8661 (record_full_core_shortname): New globals.
8662 (record_full_is_used): New function.
8663 (find_full_open): Call record_preopen instead of checking
8665 (init_record_full_ops): Set the target's shortname to
8666 record_full_shortname.
8667 (init_record_full_core_ops): Set the target's shortname to
8668 record_full_core_shortname.
8669 * record-full.h (record_full_is_used): Declare.
8670 * record.c (find_record_target): Make extern.
8671 (record_preopen): New function.
8672 * record.h (RECORD_IS_USED): Delete macro.
8673 (find_record_target, record_preopen): Declare functions.
8675 2014-01-14 Yao Qi <yao@codesourcery.com>
8677 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8678 'len''s type to ULONGEST.
8679 (core_xfer_shared_libraries_aix): Likewise.
8680 * gdbarch.c, gdbarch.h: Regenerated.
8681 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8682 Change type of 'len' to ULONGEST.
8683 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8684 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8686 2014-01-14 Yao Qi <yao@codesourcery.com>
8688 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8689 type of 'len' to ULONGEST.
8690 (linux_xfer_osdata_processgroups): Likewise.
8691 (linux_xfer_osdata_threads): Likewise.
8692 (linux_xfer_osdata_fds): Likewise.
8693 (linux_xfer_osdata_isockets): Likewise.
8694 (linux_xfer_osdata_shm): Likewise.
8695 (linux_xfer_osdata_sem): Likewise.
8696 (linux_xfer_osdata_msg): Likewise.
8697 (linux_common_xfer_osdata): Likewise.
8698 (struct osdata_type) <getter>: Likewise.
8699 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8702 2014-01-14 Yao Qi <yao@codesourcery.com>
8704 * target.h (target_xfer_partial_ftype): Update.
8705 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8707 * aix-thread.c (aix_thread_xfer_partial): Change type of
8708 argument 'len' to ULONGEST.
8709 * auxv.c (procfs_xfer_auxv): Likewise.
8710 (ld_so_xfer_auxv): Likewise.
8711 (memory_xfer_auxv): Likewise.
8712 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8713 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8714 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8715 * corelow.c (core_xfer_partial): Likewise.
8716 * ctf.c (ctf_xfer_partial): Likewise.
8717 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8719 (darwin_read_dyld_info): Likewise.
8720 (darwin_xfer_partial): Likewise.
8721 * exec.c (section_table_xfer_memory_partial): Likewise.
8722 (exec_xfer_partial): Likewise.
8723 * exec.h (section_table_xfer_memory_partial): Update
8725 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8726 instead of plongest.
8727 (gnu_xfer_partial): Likewise.
8728 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8729 (ia64_hpux_xfer_solib_got): Likewise.
8730 (ia64_hpux_xfer_partial): Likewise.
8731 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8732 * inf-ptrace.c (inf_ptrace_xfer_partial):
8733 * inf-ttrace.c (inf_ttrace_xfer_partial):
8734 * linux-nat.c (linux_xfer_siginfo): Likewise.
8735 (linux_nat_xfer_partial): Likewise.
8736 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8737 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8738 * monitor.c (monitor_xfer_memory): Likewise.
8739 (monitor_xfer_partial): Likewise.
8740 * procfs.c (procfs_xfer_partial): Likewise.
8741 * record-full.c (record_full_xfer_partial): Likewise.
8742 (record_full_core_xfer_partial): Likewise.
8743 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8744 instead of plongest.
8745 (gdbsim_xfer_partial): Likewise.
8746 * remote.c (remote_xfer_partial): Likewise.
8747 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8748 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8750 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8751 (rs6000_xfer_shared_libraries): Likewise.
8752 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8753 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8754 (sparc_xfer_partial): Likewise.
8755 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8756 (spu_xfer_partial): Likewise.
8757 * spu-multiarch.c (spu_xfer_partial): Likewise.
8758 * target.c (target_read_live_memory): Likewise.
8759 (memory_xfer_live_readonly_partial): Likewise.
8760 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8761 (target_xfer_partial, default_xfer_partial): Likewise.
8762 (current_xfer_partial): Likewise.
8763 * tracepoint.c (tfile_xfer_partial): Likewise.
8764 * windows-nat.c (windows_xfer_memory): Likewise. Call
8765 pulongest instead of plongest.
8766 (windows_xfer_partial): Likewise.
8767 (windows_xfer_shared_libraries): Likewise.
8769 2014-01-14 Yao Qi <yao@codesourcery.com>
8771 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8772 target_xfer_partial_ftype.
8774 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8778 * valops.c (value_struct_elt_bitpos): New function
8779 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8780 object to 'None' if the field name is an empty string ("").
8781 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8782 attribute to look for a field when 'name' is 'None'.
8783 (get_field_type): New function
8785 2014-01-13 Doug Evans <dje@google.com>
8788 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8789 (try_open_dwop_file): Ditto.
8790 * gdb_bfd.c: #include "vec.h".
8791 (bfdp): New typedef.
8792 (struct gdb_bfd_data): New member included_bfds.
8793 (gdb_bfd_unref): Unref all included bfds.
8794 (gdb_bfd_record_inclusion): New function.
8795 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8797 2014-01-13 Tom Tromey <tromey@redhat.com>
8799 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8801 2014-01-13 Tom Tromey <tromey@redhat.com>
8803 * defs.h (use_windows): Remove.
8804 * gdb.c (main): Update.
8805 * main.c (captured_main, gdb_main): Update.
8806 * main.h (struct captured_main_args) <use_windows>: Remove.
8807 * top.c (use_windows): Remove.
8809 2014-01-13 Tom Tromey <tromey@redhat.com>
8811 * defs.h (deprecated_flush_hook): Remove.
8813 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8816 * linux-thread-db.c (try_thread_db_load): Add parameter
8817 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8818 (try_thread_db_load_from_pdir_1): Move it there from here.
8819 (try_thread_db_load_from_sdir): Update caller.
8820 (try_thread_db_load_from_dir): Move it there from here.
8822 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8824 * regformats/regdat.sh: Always rewrite the register file.
8826 2014-01-13 Pedro Alves <palves@redhat.com>
8828 * Makefile.in (CHECK_HEADERS): New variable.
8829 (check-headers:): New rule.
8831 2014-01-13 Tom Tromey <tromey@redhat.com>
8833 * cli/cli-setshow.c (do_set_command): Update.
8834 * defs.h (deprecated_set_hook): Remove.
8835 * top.c (deprecated_set_hook): Remove.
8837 2014-01-13 Pedro Alves <palves@redhat.com>
8839 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8840 the tracepoint if the PC is a pseudo-register.
8842 2014-01-13 Tom Tromey <tromey@redhat.com>
8844 * defs.h (XCALLOC): Remove.
8845 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8846 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8847 * dwarf2loc.c (allocate_piece_closure): Likewise.
8848 * elfread.c (elf_symfile_segments): Likewise.
8849 (elf_symfile_segments): Likewise.
8850 * gdbtypes.c (copy_type_recursive): Likewise.
8851 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8852 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8853 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8855 * mt-tdep.c (mt_gdbarch_init): Likewise.
8856 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8858 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8859 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8860 * registry.c (registry_alloc_data): Likewise.
8861 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8862 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8863 * serial.c (serial_fdopen_ops): Likewise.
8864 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8866 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8867 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8870 2014-01-13 Tom Tromey <tromey@redhat.com>
8872 * defs.h (XMALLOC): Remove.
8873 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8874 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8875 * cli-out.c (struct ui_out *): Likewise.
8876 * cli/cli-dump.c (add_dump_command): Likewise.
8877 (add_dump_command): Likewise.
8878 * complaints.c (get_complaints): Likewise.
8879 (find_complaint): Likewise.
8880 * dwarf2-frame.c (execute_cfa_program): Likewise.
8881 * dwarf2read.c (abbrev_table_read_table): Likewise.
8882 * gdbarch.sh: Likewise.
8883 * gdbarch.c: Rebuild.
8884 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8885 * interps.c (interp_new): Likewise.
8886 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8887 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8888 * mi/mi-console.c (mi_console_file_new): Likewise.
8889 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8890 * mi/mi-out.c (mi_out_new): Likewise.
8891 * mi/mi-parse.c (mi_parse): Likewise.
8892 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8893 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8894 * observer.c (xalloc_observer_list_node): Likewise.
8895 * regcache.c (regcache_xmalloc_1): Likewise.
8896 * reggroups.c (reggroup_new): Likewise.
8897 (_initialize_reggroup): Likewise.
8898 * registry.c (register_data_with_cleanup): Likewise.
8899 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8900 * ser-base.c (serial_ttystate): Likewise.
8901 * ser-mingw.c (make_pipe_state): Likewise.
8902 * ser-pipe.c (pipe_open): Likewise.
8903 * serial.c (serial_open): Likewise.
8904 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8905 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8906 (tui_alloc_win_info): Likewise.
8907 (tui_add_content_elements): Likewise.
8908 * tui/tui-file.c (tui_file_new): Likewise.
8909 * tui/tui-out.c (tui_out_new): Likewise.
8910 * ui-file.c (mem_file_new): Likewise.
8911 * ui-out.c (push_level): Likewise.
8912 (make_cleanup_ui_out_end): Likewise.
8913 (append_header_to_list): Likewise.
8914 (ui_out_new): Likewise.
8915 * user-regs.c (user_reg_add_builtin): Likewise.
8917 2014-01-13 Tom Tromey <tromey@redhat.com>
8919 * defs.h (XZALLOC): Remove.
8920 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8921 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8922 (get_ada_tasks_inferior_data): Likewise.
8923 * auto-load.c (get_auto_load_pspace_data): Likewise.
8924 * auxv.c (get_auxv_inferior_data): Likewise.
8925 * bfd-target.c (target_bfd_reopen): Likewise.
8926 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8927 (deprecated_insert_raw_breakpoint): Likewise.
8928 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8929 * corelow.c (core_open): Likewise.
8930 * darwin-nat.c (darwin_check_new_threads): Likewise.
8931 (darwin_attach_pid): Likewise.
8932 * dummy-frame.c (dummy_frame_push): Likewise.
8933 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8934 * dwarf2loc.c (allocate_piece_closure): Likewise.
8935 * elfread.c (elf_symfile_segments): Likewise.
8936 * eval.c (ptrmath_type_p): Likewise.
8937 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8938 * gdbtypes.c (alloc_type_arch): Likewise.
8939 (alloc_type_instance): Likewise.
8940 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8941 * inf-child.c (inf_child_can_use_agent): Likewise.
8942 * inflow.c (get_inflow_inferior_data): Likewise.
8943 * infrun.c (save_infcall_suspend_state): Likewise.
8944 * jit.c (jit_reader_load): Likewise.
8945 (get_jit_objfile_data): Likewise.
8946 (get_jit_program_space_data): Likewise.
8947 (jit_object_open_impl): Likewise.
8948 (jit_symtab_open_impl): Likewise.
8949 (jit_block_open_impl): Likewise.
8950 (jit_frame_sniffer): Likewise.
8951 * linux-fork.c (add_fork): Likewise.
8952 * maint.c (make_command_stats_cleanup): Likewise.
8953 * objfiles.c (get_objfile_pspace_data): Likewise.
8954 * opencl-lang.c (struct lval_closure): Likewise.
8955 * osdata.c (osdata_start_osdata): Likewise.
8956 * progspace.c (new_address_space): Likewise.
8957 (add_program_space): Likewise.
8958 * remote-sim.c (get_sim_inferior_data): Likewise.
8959 * sh-tdep.c (sh_gdbarch_init): Likewise.
8960 * skip.c (Ignore): Likewise.
8961 (skip_delete_command): Likewise.
8962 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8963 (library_list_start_library): Likewise.
8964 (solib_aix_current_sos): Likewise.
8965 * solib-darwin.c (get_darwin_info): Likewise.
8966 (darwin_current_sos): Likewise.
8967 * solib-dsbt.c (get_dsbt_info): Likewise.
8968 * solib-ia64-hpux.c (new_so_list): Likewise.
8969 (ia64_hpux_get_solib_linkage_addr): Likewise.
8970 * solib-spu.c (append_ocl_sos): Likewise.
8971 (spu_current_sos): Likewise.
8972 * solib-svr4.c (get_svr4_info): Likewise.
8973 (svr4_keep_data_in_core): Likewise.
8974 (library_list_start_library): Likewise.
8975 (svr4_default_sos): Likewise.
8976 (svr4_read_so_list): Likewise.
8977 * solib-target.c (library_list_start_library): Likewise.
8978 (solib_target_current_sos): Likewise.
8979 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8980 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8981 * symfile.c (default_symfile_segments): Likewise.
8982 * target-descriptions.c (tdesc_data_init): Likewise.
8983 (tdesc_create_reg): Likewise.
8984 (struct tdesc_type *): Likewise.
8985 (tdesc_create_vector): Likewise.
8986 (tdesc_set_struct_size): Likewise.
8987 (struct tdesc_type *): Likewise.
8988 (tdesc_free_feature): Likewise.
8989 (tdesc_create_feature): Likewise.
8990 * windows-nat.c (windows_add_thread): Likewise.
8991 (windows_make_so): Likewise.
8992 * xml-support.c (gdb_xml_body_text): Likewise.
8993 (gdb_xml_create_parser_and_cleanup): Likewise.
8994 (xml_process_xincludes): Likewise.
8995 * xml-syscall.c (allocate_syscalls_info): Likewise.
8996 (syscall_create_syscall_desc): Likewise.
8998 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9000 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9001 function, with code from i386_stap_parse_special_token.
9002 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9003 (i386_stap_parse_special_token): Move code to the two functions
9006 2014-01-09 Pedro Alves <palves@redhat.com>
9007 Hui Zhu <hui@codesourcery.com>
9010 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9011 bp_err_string. Don't mark the location shlib_disabled if the
9012 error thrown wasn't a generic or memory error. Catch errors
9013 thrown while inserting breakpoints in overlayed code. Output
9014 error message of software breakpoints.
9015 * remote.c (remote_insert_breakpoint): If this breakpoint has
9016 target-side commands but this stub doesn't support Z0 packets,
9017 throw NOT_SUPPORTED_ERROR error.
9018 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9019 * target.h (target_insert_breakpoint): Extend comment.
9020 (target_insert_hw_breakpoint): Add comment.
9022 2014-01-08 Pedro Alves <palves@redhat.com>
9024 * remote.c (remote_add_thread): Add threads silently if starting
9026 (remote_notice_new_inferior): If in all-stop, and starting up,
9027 don't call notice_new_inferior.
9028 (get_current_thread): New function, factored out from ...
9029 (add_current_inferior_and_thread): ... this. Adjust.
9030 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9031 found any thread, then select the remote's current thread as GDB's
9034 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9036 * NEWS: Create a new section for the next release branch.
9037 Rename the section of the current branch, now that it has
9040 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9042 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9043 * version.in: Bump version to 7.7.50.DATE-cvs.
9045 2014-01-08 Yao Qi <yao@codesourcery.com>
9047 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9048 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9049 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9051 2014-01-08 Yao Qi <yao@codesourcery.com>
9053 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9054 return value of bfd_get_filename to symbol_file_add_from_bfd.
9056 2014-01-08 Pierre Muller <muller@sourceware.org>
9059 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9060 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9061 to prim_record_mininal_symbol_and_info.
9062 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9063 in call to prim_record_minimal_symbol_and_info.
9064 (read_pe_exported_syms): Set index field of section_data.
9066 2014-01-07 Andrew Pinski <apinski@cavium.com>
9068 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9069 * features/aarch64.c: Regenerate.
9071 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9073 * target.c (return_null): Define.
9074 (update_current_target): Use it instead of return_zero for
9075 functions that return a pointer.
9077 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9079 * source.c (add_path): Fix check for duplicated paths in the previously
9082 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9084 * ada-lang.c: Remove duplicated include statements.
9085 * alphabsd-nat.c: Ditto.
9086 * amd64-darwin-tdep.c: Ditto.
9087 * amd64fbsd-nat.c: Ditto.
9088 * auto-load.c: Ditto.
9090 * breakpoint.c: Ditto.
9092 * fork-child.c: Ditto.
9093 * gdb_usleep.c: Ditto.
9094 * i386-darwin-tdep.c: Ditto.
9095 * i386fbsd-nat.c: Ditto.
9097 * inferior.c: Ditto.
9099 * linux-nat.c: Ditto.
9100 * linux-tdep.c: Ditto.
9101 * m68kbsd-nat.c: Ditto.
9102 * m68klinux-nat.c: Ditto.
9103 * microblaze-tdep.c: Ditto.
9104 * mips-linux-tdep.c: Ditto.
9105 * mn10300-tdep.c: Ditto.
9106 * nto-tdep.c: Ditto.
9107 * opencl-lang.c: Ditto.
9109 * printcmd.c: Ditto.
9110 * regcache.c: Ditto.
9111 * remote-m32r-sdi.c: Ditto.
9115 * tilegx-linux-nat.c: Ditto.
9116 * tilegx-tdep.c: Ditto.
9117 * tracepoint.c: Ditto.
9119 * vaxbsd-nat.c: Ditto.
9120 * windows-nat.c: Ditto.
9121 * xtensa-tdep.c: Ditto.
9123 2014-01-07 Yao Qi <yao@codesourcery.com>
9125 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9127 2014-01-07 Yao Qi <yao@codesourcery.com>
9128 Joel Brobecker <brobecker@adacore.com>
9130 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9131 (pdc_write_regs): Likewise.
9132 (fetch_regs_kernel_thread): Likewise.
9133 (store_regs_kernel_thread): Likewise.
9135 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9137 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9138 tagged type objects to their actual type.
9140 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9142 * ada-valprint.c (print_field_values): Add "language" parameter.
9143 Update calls to print_field_values and print_variant_part.
9144 Pass new parameter "language" in call to val_print instead
9145 of "current_language". Replace call to ada_val_print by call
9147 (print_variant_part): Add "language" parameter.
9148 (ada_val_print_struct_union): Update call to print_field_values.
9150 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9152 * ada-valprint.c (ui_memcpy): Delete.
9153 (ada_print_floating): Update documentation. Add empty line
9154 between between function documentation and implementation.
9155 Delete variable "buffer". Use ui_file_xstrdup in place of
9156 ui_file_put. Minor adjustments following this change.
9158 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9160 * ada-valprint.c (ada_val_print_string): New function,
9161 extracted from ada_val_print_array.
9162 (ada_val_print_array): Replace extracted code by call
9163 to ada_val_print_string followed by a return. Move
9164 "else" branch to the function's top block.
9166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9168 * ada-valprint.c (ada_val_print_array): Move implementation
9169 down. Rename parameter "offset" and "val" into "offset_aligned"
9170 and "original_value" respectively. Add parameter "offset".
9172 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9174 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9175 re-organizing the code. Change the "???" message printed
9176 when target type is a TYPE_CODE_UNDEF into
9177 "<ref to undefined type>".
9179 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9181 * ada-valprint.c (print_record): Delete, implementation inlined...
9182 (ada_val_print_struct_union): ... here. Remove call to
9183 ada_check_typedef in inlined implementation.
9185 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9187 * ada-valprint.c (ada_val_print_gnat_array): New function,
9188 extracted from ada_val_print_1;
9189 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9190 (ada_val_print_flt, ada_val_print_struct_union)
9191 (ada_val_print_ref): Likewise.
9192 (ada_val_print_1): Delete variables i and elttype.
9193 Replace extracted-out code by call to corresponding
9196 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9198 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9202 * ada-valprint.c (ada_val_print_1): Replace calls to
9203 ada_val_print_1 by calls to val_print.
9205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9207 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9208 Update calls to self accordingly. Replace calls to c_val_print
9209 by calls to val_print.
9211 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9213 * ada-valprint.c (print_record): Delete declaration.
9214 (adjust_type_signedness, ada_val_print_1): Likewise.
9215 (ada_val_print): Move function implementation down.
9216 (print_variant_part, print_field_values, print_record):
9217 Move function implementation up.
9219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9221 * python/py-type.c (typy_get_name): New function.
9222 (type_object_getset): Add entry for attribute "name".
9223 * NEWS: Add entry mentioning this new attribute.
9225 2014-01-07 Yao Qi <yao@codesourcery.com>
9227 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9230 2014-01-07 Yao Qi <yao@codesourcery.com>
9232 * gnu-nat.c (info_port_rights): Add qualifier const to
9235 2014-01-07 Yao Qi <yao@codesourcery.com>
9237 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9239 2014-01-07 Yao Qi <yao@codesourcery.com>
9241 * gnu-nat.c (make_inf) Update declaration.
9242 (make_inf): Make it static.
9243 (inf_set_traced): Likewise.
9244 (inf_port_to_thread, inf_task_died_status): Likewise.
9246 2014-01-07 Yao Qi <yao@codesourcery.com>
9248 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9250 2014-01-07 Yao Qi <yao@codesourcery.com>
9252 * gnu-nat.c (_initialize_gnu_nat): Declare.
9254 2014-01-07 Yao Qi <yao@codesourcery.com>
9256 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9258 (struct gdbarch_info) <byte_order>: Change type to
9260 <byte_order_for_code>: Likewise.
9261 * gdbarch.c, gdbarch.h: Regenerated.
9263 2014-01-06 Sasha Smundak <asmundak@google.com>
9265 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9267 2014-01-06 Tom Tromey <tromey@redhat.com>
9269 * doublest.c (convert_doublest_to_floatformat): Use const, not
9271 * somread.c (som_symtab_read): Likewise.
9273 2014-01-07 Hui Zhu <hui@codesourcery.com>
9275 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9276 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9277 (gdb_bfd_fopen): Ditto.
9278 (gdb_bfd_openr): Ditto.
9279 (gdb_bfd_openw): Ditto.
9280 (gdb_bfd_openr_iovec): Ditto.
9281 (gdb_bfd_fdopenr): Ditto.
9282 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9283 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9285 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9287 * symfile-mem.c (symbol_file_add_from_memory): Removed
9288 gdb_bfd_stash_filename.
9290 2014-01-03 Doug Evans <dje@google.com>
9292 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9295 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9297 Update year range in copyright notice of all files.
9299 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9301 * top.c (print_gdb_version): Set copyright year to 2014.
9303 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9305 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9307 For older changes see ChangeLog-2013.
9313 version-control: never