1 2014-06-18 Gary Benson <gbenson@redhat.com>
3 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4 New parameter. All uses updated.
6 2014-06-18 Gary Benson <gbenson@redhat.com>
8 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
11 2014-06-18 Gary Benson <gbenson@redhat.com>
13 * i386-nat.c (debug_printf): New macro.
14 (i386_get_debug_register_length): Likewise.
15 (TARGET_HAS_DR_LEN_8): Use above macro.
16 (i386_show_dr): Use debug_printf instead of puts_unfiltered
17 and printf_unfiltered. Use phex to format values.
19 2014-06-18 Gary Benson <gbenson@redhat.com>
21 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
24 2014-06-18 Gary Benson <gbenson@redhat.com>
26 * i386-nat.c: Comment changes.
28 2014-06-18 Gary Benson <gbenson@redhat.com>
30 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
32 2014-06-18 Gary Benson <gbenson@redhat.com>
34 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
35 (i386_insert_aligned_watchpoint): Likewise.
36 (i386_remove_aligned_watchpoint): Likewise.
37 (i386_handle_nonaligned_watchpoint): Likewise.
39 2014-06-18 Gary Benson <gbenson@redhat.com>
41 * i386-nat.c: Whitespace changes.
43 2014-06-17 Samuel Bronson <naesten@gmail.com>
45 * MAINTAINERS: Update Roland McGrath's email address.
46 Thanks to Sergio Durigan Junior for pointing out that he left
47 Red Hat a while ago, and giving me a current address.
49 2014-06-17 Tom Tromey <tromey@redhat.com>
51 * utils.h (savestring): Remove declaration.
53 2014-06-17 Tom Tromey <tromey@redhat.com>
55 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
57 2014-06-16 Keith Seitz <keiths@redhat.com>
60 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
61 to update the varobj if inferior_ptid is null_ptid.
63 2014-06-16 Tom Tromey <tromey@redhat.com>
65 * target.h (struct target_ops) <to_info_proc>: Make parameter
67 (target_info_proc): Update.
68 * target.c (target_info_proc): Make "args" const.
69 * procfs.c (procfs_info_proc): Update.
70 * linux-tdep.c (linux_info_proc): Update.
71 (linux_core_info_proc_mappings): Make "args" const.
72 (linux_core_info_proc): Update.
73 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
76 * corelow.c (core_info_proc): Update.
78 2014-06-16 Tom Tromey <tromey@redhat.com>
80 * target.h (struct target_ops) <to_disconnect>: Make parameter
82 (target_disconnect): Update.
83 * target.c (target_disconnect): Make "args" const.
84 * target-delegates.c: Rebuild.
85 * remote.c (remote_disconnect): Update.
86 * record.h (record_disconnect): Update.
87 * record.c (record_disconnect): Update.
88 * inf-child.c (inf_child_disconnect): Update.
90 2014-06-16 Tom Tromey <tromey@redhat.com>
92 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
93 * target.c (debug_to_rcmd, default_rcmd): Update.
94 * target-delegates.c: Rebuild.
95 * remote.c (remote_rcmd): Update.
96 * monitor.c (monitor_rcmd): Update.
98 2014-06-16 Pedro Alves <palves@redhat.com>
100 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
101 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
102 have OBJF_SHARED set.
103 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
104 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
105 instead of OBJF_USERLOADED.
106 * objfiles.h (OBJF_SHARED): Update comment.
107 (userloaded_objfile_contains_address_p): Rename to ...
108 (shared_objfile_contains_address_p): ... this, and update
110 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
112 (remove_symbol_file_command): Skip objfiles that don't have
115 2014-06-16 Tom Tromey <tromey@redhat.com>
117 * minsyms.h (prim_record_minimal_symbol)
118 (prim_record_minimal_symbol_and_info): Update comments.
120 2014-06-14 Eli Zaretskii <eliz@gnu.org>
122 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
123 or --without-guile, according to how GDB was built.
125 2014-06-13 Tom Tromey <tromey@redhat.com>
127 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
129 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
131 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
133 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
134 help_list.Pass all_commands, not -1, to help_list.
135 * cli/cli-dump.c (dump_command, append_command)
136 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
137 (binary_dump_command, binary_append_command): Pass all_commands,
138 not -1, to help_list.
139 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
141 * valprint.c (set_print, set_print_raw): Pass all_commands, not
143 * typeprint.c (set_print_type): Pass all_commands, not -1, to
145 * top.c (set_history): Pass all_commands, not -1, to help_list.
146 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
147 all_commands, not -1, to help_list.
148 * symfile.c (overlay_command): Pass all_commands, not -1, to
150 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
152 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
154 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
156 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
157 not -1, to help_list.
158 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
159 not -1, to help_list.
160 * maint.c (maintenance_command, maintenance_info_command)
161 (maintenance_print_command, maintenance_set_cmd): Pass
162 all_commands, not -1, to help_list.
163 * macrocmd.c (macro_command): Pass all_commands, not -1, to
165 * language.c (set_check): Pass all_commands, not -1, to help_list.
166 * infcmd.c (unset_command): Pass all_commands, not -1, to
168 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
170 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
172 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
174 * breakpoint.c (save_command): Pass all_commands, not -1, to
176 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
177 all_commands, not -1, to help_list.
179 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
181 * regcache.c (struct register_to_invalidate): New structure.
182 (do_register_invalidate, make_cleanup_regcache_invalidate): New
184 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
186 2014-06-12 Yao Qi <yao@codesourcery.com>
188 * varobj.c (varobj_get_num_children): Call
190 (varobj_list_children): Likewise.
191 (varobj_update): Likewise. Update comments.
193 2014-06-12 Yao Qi <yao@codesourcery.com>
195 * varobj.c (varobj_pretty_printed_p): Rename to ...
196 (varobj_is_dynamic_p): ... this. New function.
197 * varobj.h (varobj_pretty_printed_p): Remove declaration.
198 (varobj_is_dynamic_p): Declare.
199 * mi/mi-cmd-var.c (print_varobj): All callers updated.
200 (mi_print_value_p, varobj_update_one): Likewise.
202 2014-06-12 Pedro Alves <pedro@codesourcery.com>
203 Yao Qi <yao@codesourcery.com>
205 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
206 (varobj_get_iterator): Wrap up code for pretty-printer by
207 "#if HAVE_PYTHON" and "#endif".
208 (update_dynamic_varobj_children): Likewise.
210 2014-06-12 Pedro Alves <pedro@codesourcery.com>
211 Yao Qi <yao@codesourcery.com>
213 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
214 gdb_python_initialized is false. Move some code from varobj.c.
215 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
216 * varobj.c: Move "varobj-iter.h" inclusion earlier.
217 (struct varobj_item): Moved to varobj-iter.h".
218 (varobj_clear_saved_item): New function.
219 (update_dynamic_varobj_children): Move python-related code to
221 (free_variable): Call varobj_clear_saved_item and
224 2014-06-12 Pedro Alves <pedro@codesourcery.com>
225 Yao Qi <yao@codesourcery.com>
227 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
228 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
229 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
230 (py-varobj.o): New rule.
231 * python/py-varobj.c: New file.
232 * python/python-internal.h (py_varobj_get_iterator): Declare.
233 * varobj-iter.h: New file.
234 * varobj.c: Include "varobj-iter.h"
235 (struct varobj) <child_iter>: Change its type from "PyObject *"
236 to "struct varobj_iter *".
237 <saved_item>: Likewise.
238 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
239 [HAVE_PYTHON] (varobj_get_iterator): New function.
240 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
241 python-specific code to python/py-varobj.c.
242 (install_visualizer): Call varobj_iter_delete instead of
244 * varobj.h (varobj_ensure_python_env): Declare.
246 2014-06-12 Yao Qi <yao@codesourcery.com>
248 * varobj.c (struct varobj_item): New structure.
249 (create_child_with_value): Update declaration.
250 (varobj_add_child): Replace arguments 'name' and 'value' with
251 'item'. All callers updated.
252 (install_dynamic_child): Likewise.
253 (update_dynamic_varobj_children): Likewise.
254 (varobj_add_child): Likewise.
255 (create_child_with_value): Likewise.
257 2014-06-11 Joel Brobecker <brobecker@adacore.com>
259 * NEWS: Create a new section for the next release branch.
260 Rename the section of the current branch, now that it has
263 2014-06-11 Joel Brobecker <brobecker@adacore.com>
265 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
266 * version.in: Bump version to 7.8.50.DATE-cvs.
268 2014-06-11 Pedro Alves <palves@redhat.com>
271 * ser-mingw.c (net_windows_socket_check_pending): New function.
272 (net_windows_select_thread): Ignore spurious wakeups. Use
273 net_windows_socket_check_pending.
274 (net_windows_wait_handle): Check for pending events with
275 ioctlsocket, through net_windows_socket_check_pending, instead of
276 checking the socket's event.
278 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
280 * python/python-internal.h (gdb_PyObject_GetAttrString)
281 (gdb_PyObject_HasAttrString): New inline function definitions.
282 * py-value.c (get_field_flag): Remove the now unnecessary cast to
283 char * of the second argument to PyObject_GetAttrString.
285 2014-06-10 Joel Brobecker <brobecker@adacore.com>
287 * serial.c (serial_write): Fix index of character to be printed
288 in call to serial_logchar when serial debug traces are enabled.
290 2014-06-10 Joel Brobecker <brobecker@adacore.com>
292 * gdbtypes (resolve_dynamic_range): Add function description.
294 2014-06-09 Pedro Alves <palves@redhat.com>
296 * linux-nat.c (linux_child_follow_fork): Initialize status with
297 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
298 inner block. Only pass the signal to PTRACE_DETACH if in pass
301 2014-06-09 Gary Benson <gbenson@redhat.com>
303 * common/signals.c (gdb_signal_from_host): Reorder to separate
304 the always-available ANSI-standard signals from the signals that
306 (do_gdb_signal_to_host): Likewise.
307 * proc-events.c (signal_table): Likewise.
309 2014-06-08 Hui Zhu <hui@codesourcery.com>
311 * common/linux-ptrace.c (linux_disable_event_reporting): New
313 * common/linux-ptrace.h (linux_disable_event_reporting): New
315 * linux-nat.c (linux_child_follow_fork): Do a single step before
318 2014-06-07 Keith Seitz <keiths@redhat.com>
322 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
323 from symbol_matches_domain in symtab.c. All local callers
324 of symbol_matches_domain updated.
325 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
326 search STRUCT_DOMAIN.
327 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
328 independently. standard_lookup will do that automatically.
329 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
330 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
331 (cp_lookup_symbol_in_namespace): Likewise.
332 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
333 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
334 may return a STRUCT_DOMAIN match.
335 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
336 * cp-support.c: Include language.h.
337 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
339 * psymtab.c (match_partial_symbol): Compare the requested
340 domain with the symbol's domain directly.
341 (lookup_partial_symbol): Likewise.
342 * symtab.c (lookup_symbol_in_language): Explain when/why
343 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
344 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
345 appropriate languages.
346 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
347 and moved to ada-lang.c
348 (lookup_block_symbol): Explain that this function only returns
349 symbol matching the requested DOMAIN.
350 Compare the requested domain with the symbol's domain directly.
351 (iterate_over_symbols): Compare the requested domain with the
352 symbol's domain directly.
353 * symtab.h (symbol_matches_domain): Remove.
355 2014-06-06 Doug Evans <xdje42@gmail.com>
357 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
358 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
359 (gdbscm_guile_version_is_at_least): Declare.
360 (gdbscm_scm_string_to_int): Declare.
361 * guile/guile.c (gdbscm_guile_major_version): New global.
362 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
363 (guile_datadir): New static global.
364 (gdbscm_guile_data_directory): New function.
365 (initialize_scheme_side): Update.
366 (misc_guile_functions): Add guile-data-directory.
367 (initialize_gdb_module): Fetch guile version number.
368 * guile/lib/gdb.scm: Remove call to add-to-load-path.
369 * guile/lib/gdb/init.scm (%initialize!): Ditto.
370 * guile/lib/gdb/boot.scm: Use guile-data-directory.
371 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
373 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
374 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
375 * guile/scm-value.c (gdbscm_value_to_string): Only call
376 scm_port_conversion_strategy if Guile version >= 2.0.6.
378 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
380 * main.c (print_gdb_help): Add -q and --silent.
382 2014-06-06 Gary Benson <gbenson@redhat.com>
384 * common/signals.c: Remove preprocessor conditionals for
385 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
387 * proc-events.c: Likewise.
389 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
391 * symfile.c (symfile_free_objfile): Remove restriction to
393 * symfile-mem.c (symbol_file_add_from_memory): Call
394 add_target_sections_of_objfile.
396 2014-06-05 Ludovic Courtès <ludo@gnu.org>
398 * guile/scm-value.c (gdbscm_history_append_x): Use
399 'vlscm_get_value_smob_arg_unsafe' instead of
400 'vlscm_scm_to_value'.
402 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
405 * utils.c (printchar): Don't escape at all if quoter is NUL.
406 Update function documentation to clarify effect of parameter
408 * remote.c (escape_buffer): Pass '\\' as the quoter to
410 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
412 (mi_solib_unloaded): Same.
414 2014-06-05 Joel Brobecker <brobecker@adacore.com>
416 * development.sh: Delete.
417 * Makefile.in (config.status): Adjust dependency on development.sh.
418 * configure.ac: Adjust development.sh source call.
419 * configure: Regenerate.
421 2014-06-04 Doug Evans <xdje42@gmail.com>
423 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
424 is_scheme_bkpt, spec.
425 (bpscm_make_breakpoint_smob): Initialize new members.
426 (gdbscm_create_breakpoint_x): Split into two ...
427 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
428 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
429 (scheme_function breakpoint_functions): Update.
430 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
431 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
432 register-breakpoint!.
434 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
437 * mem-break.c (z_type_supported): Return zero if
438 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
440 2014-06-04 Tom Tromey <tromey@redhat.com>
442 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
443 value_from_contents_and_address_unresolved.
444 (ada_template_to_fixed_record_type_1): Likewise.
445 (ada_which_variant_applies): Likewise.
446 * value.h (value_from_contents_and_address_unresolved): Declare.
447 * value.c (value_from_contents_and_address_unresolved): New
449 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
450 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
451 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
453 2014-06-04 Tom Tromey <tromey@redhat.com>
455 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
457 2014-06-04 Tom Tromey <tromey@redhat.com>
459 * procfs.c (procfs_attach): Make "args" const.
460 * windows-nat.c (windows_attach): Make "args" const.
461 * nto-procfs.c (procfs_attach): Make "args" const.
462 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
463 * go32-nat.c (go32_attach): Make "args" const.
464 * gnu-nat.c (gnu_attach): Make "args" const.
465 * darwin-nat.c (darwin_attach): Make "args" const.
466 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
467 * linux-nat.c (linux_nat_attach): Make "args" const.
468 * remote.c (extended_remote_attach_1, extended_remote_attach):
470 * target.h (struct target_ops) <to_attach>: Make "args" const.
471 (find_default_attach): Likewise.
472 * utils.c (parse_pid_to_attach): Make "args" const.
473 * utils.h (parse_pid_to_attach): Update.
475 2014-06-04 Tom Tromey <tromey@redhat.com>
477 * target-delegates.c: Rebuild.
478 * target.c (default_thread_address_space): New function.
479 (target_thread_address_space): Simplify.
480 * target.h (struct target_ops) <to_thread_address_space>: Add
483 2014-06-04 Doug Evans <xdje42@gmail.com>
485 * guile/scm-type.c (type_smob): Remove duplicate typedef.
487 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
489 * record-btrace.c: Include event-loop.h and inf-loop.h.
490 (record_btrace_resume_exec_dir)
491 (record_btrace_async_inferior_event_handler)
492 (record_btrace_handle_async_inferior_event): New.
493 (record_btrace_open): Create async event handler.
494 (record_btrace_close): Delete async event handler.
495 (record_btrace_resume): Set record_btrace_resume_exec_dir,
496 Mark async event handler.
497 (record_btrace_execution_direction): New.
498 (init_record_btrace_ops): Initialize to_execution_direction.
500 2014-06-03 Doug Evans <xdje42@gmail.com>
502 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
503 (gdbscm_make_parameter): Ditto.
505 2014-06-03 Doug Evans <dje@google.com>
507 * exec.c (exec_close_1): Call clear_section_table instead of
508 resize_section_table.
509 (clear_section_table): New function.
510 (resize_section_table): Make static. Rename arg num_added to
512 * exec.h (clear_section_table): Declare.
513 (resize_section_table): Delete.
514 * progspace.c (release_program_space): Call clear_section_table
515 instead of resize_section_table.
517 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
519 * NEWS (Python Scripting): Add entry about the new xmethods
522 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
524 * python/py-xmethods.c: New file.
525 * python/py-objfile.c (objfile_object): New field 'xmethods'.
526 (objfpy_dealloc): XDECREF on the new xmethods field.
527 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
529 (objfpy_get_xmethods): New function.
530 (objfile_getset): New entry 'xmethods'.
531 * python/py-progspace.c (pspace_object): New field 'xmethods'.
532 (pspy_dealloc): XDECREF on the new xmethods field.
533 (pspy_new, pspace_to_pspace_object): Initialize xmethods
535 (pspy_get_xmethods): New function.
536 (pspace_getset): New entry 'xmethods'.
537 * python/python-internal.h: Add declarations for new functions.
538 * python/python.c (_initialize_python): Invoke
539 gdbpy_initialize_xmethods.
540 * python/lib/gdb/__init__.py (xmethods): New
542 * python/lib/gdb/xmethod.py: New file.
543 * python/lib/gdb/command/xmethods.py: New file.
545 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
547 * eval.c (evaluate_subexp_standard): Call the xmethod if the
548 best match method returned by find_overload_match is an xmethod.
549 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
550 the best matching operator returned by find_overload_match is an
552 * valops.c: #include "extension.h".
553 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
554 Return void. The list of matching source methods is returned in
555 "fn_list" and a vector of matching debug method workers is
556 returned in "xm_worker_vec". Update all callers.
557 (value_find_oload_method_list): Likewise.
558 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
559 non-NULL, then the index of the best matching method in this
560 vector is returned. Update all callers.
561 (find_overload_match): Include xmethods while performing overload
564 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
566 * defs.h (enum lval_type): New enumerator "lval_xcallable".
567 * extension-priv.h (struct extension_language_ops): Add the
569 * extension.c (new_xmethod_worker, clone_xmethod_worker,
570 get_matching_xmethod_workers, get_xmethod_argtypes,
571 invoke_xmethod, free_xmethod_worker,
572 free_xmethod_worker_vec): New functions.
573 * extension.h: #include "common/vec.h".
574 New function declarations.
575 (struct xmethod_worker): New struct.
576 (VEC (xmethod_worker_ptr)): New vector type.
577 (xmethod_worker_ptr): New typedef.
578 (xmethod_worker_vec): Likewise.
579 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
581 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
582 (struct builtin_type): New field "xmethod".
583 * valarith.c (value_ptradd): Assert that the value argument is not
585 * valops.c (value_must_coerce_to_target): Return 0 for
586 lval_xcallable values.
587 * value.c (struct value): New field XM_WORKER in the field
589 (value_address, value_raw_address): Return 0 for lval_xcallable
591 (set_value_address): Assert that the value is not an
593 (value_free): Free the associated xmethod worker when freeing
594 lval_xcallable values.
595 (set_value_component_location): Assert that the WHOLE value is not
597 (value_of_xmethod, call_xmethod): New functions.
598 * value.h: Declare "struct xmethod_worker".
599 Declare new functions value_of_xmethod, call_xmethod.
601 2014-06-03 Joel Brobecker <brobecker@adacore.com>
602 Pedro Alves <palves@redhat.com>
605 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
606 New function, extracted from software_breakpoint_inserted_here_p.
607 (software_breakpoint_inserted_here_p): Replace factored out code
608 by call to find_non_raw_software_breakpoint_inserted_here.
609 (bp_target_info_copy_insertion_state): New function.
610 (bkpt_insert_location): Handle the case of a single-step
611 breakpoint already inserted at the same address.
612 (bkpt_remove_location): Handle the case of a single-step
613 breakpoint still inserted at the same address.
614 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
615 breakpoint already inserted at the same address.
616 (deprecated_remove_raw_breakpoint): Handle the case of a
617 non-raw breakpoint still inserted at the same address.
618 (find_single_step_breakpoint): New function, extracted from
619 single_step_breakpoint_inserted_here_p.
620 (find_single_step_breakpoint): New function,
621 factored out from single_step_breakpoint_inserted_here_p.
622 (single_step_breakpoint_inserted_here_p): Reimplement.
624 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
626 Pushed by Joel Brobecker <brobecker@adacore.com>
627 * source.c (show_substitute_path_command): Fix display of matching
630 2014-06-03 Gary Benson <gbenson@redhat.com>
632 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
634 2014-06-02 Doug Evans <xdje42@gmail.com>
636 Add parameter support for Guile.
637 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
638 (SUBDIR_GUILE_SRCS): Add scm-param.c.
639 (scm-param.o): New rule.
640 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
641 (gdbscm_misc_error): Declare.
642 (gdbscm_canonicalize_command_name): Declare.
643 (gdbscm_scm_to_host_string): Declare.
644 (gdbscm_scm_from_host_string): Declare.
645 (gdbscm_initialize_parameters): Declare.
646 * guile/guile.c (initialize_gdb_module): Call
647 gdbscm_initialize_parameters.
648 * guile/lib/gdb.scm: Export parameter symbols.
649 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
650 cmdscm_canonicalize_name and made public. All callers updated.
651 * guile/scm-exception.c (gdbscm_misc_error): New function.
652 * guile/scm-param.c: New file.
653 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
654 (gdbscm_scm_to_host_string): New function.
655 (gdbscm_scm_from_host_string): New function.
656 * scm-utils.c (gdbscm_gc_dup_argv): New function.
658 2014-06-02 Doug Evans <xdje42@gmail.com>
660 Add command support for Guile.
661 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
662 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
663 (scm-cmd.o): New rule.
664 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
665 (gdbscm_user_error_p): Declare.
666 (gdbscm_parse_command_name): Declare.
667 (gdbscm_valid_command_class_p): Declare.
668 (gdbscm_initialize_commands): Declare.
669 * guile/guile.c (initialize_gdb_module): Call
670 gdbscm_initialize_commands.
671 * guile/lib/gdb.scm: Export command symbols.
672 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
673 (throw-user-error): New function.
674 * guile/scm-cmd.c: New file.
675 * guile/scm-exception.c (user_error_symbol): New static global.
676 (gdbscm_user_error_p): New function.
677 (gdbscm_initialize_exceptions): Set user_error_symbol.
678 * scm-utils.c (gdbscm_gc_xstrdup): New function.
680 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
682 * top.c (command_loop): Handle comments here...
683 (command_line_input): ... not here.
685 2014-06-02 Doug Evans <xdje42@gmail.com>
687 Add progspace support for Guile.
688 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
689 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
690 (scm-progspace.o): New rule.
691 * guile/guile-internal.h (pspace_smob): New typedef.
692 (psscm_pspace_smob_pretty_printers): Declare.
693 (psscm_pspace_smob_from_pspace): Declare.
694 (psscm_scm_from_pspace): Declare.
695 * guile/guile.c (initialize_gdb_module): Call
696 gdbscm_initialize_pspaces.
697 * guile/lib/gdb.scm: Export progspace symbols.
698 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
700 (append-pretty-printer!): Ditto.
701 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
703 * guile/scm-progspace.c: New file.
705 2014-06-03 Alan Modra <amodra@gmail.com>
707 * ppc64-tdep.c (ppc64_standard_linkage8): New.
708 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
710 2014-06-02 Doug Evans <dje@google.com>
712 Add support for skeletonless type units.
713 * dwarf2read.c (struct dwarf2_per_objfile): New member
714 n_allocated_type_units.
715 (struct dwarf2_per_objfile) <tu_stats>: New member
716 nr_all_type_units_reallocs.
717 (create_signatured_type_table_from_index): Initialize
718 n_allocated_type_units
719 (create_all_type_units): Ditto.
720 (add_type_unit): Move up in file. New arg slot.
721 All callers updated. Increase space for all_type_units more
723 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
724 (lookup_dwo_signatured_type): Handle skeletonless TUs.
725 (lookup_dwp_signatured_type): Ditto.
726 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
728 (build_type_psymtabs_1): Leave type_unit_groups as
729 NULL if no TUs present.
730 (print_tu_stats): New function.
731 (process_skeletonless_type_unit): New function.
732 (process_dwo_file_for_skeletonless_type_units): New
734 (process_skeletonless_type_units): New function.
735 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
736 Call print tu_stats if debugging enabled.
738 2014-06-02 Pedro Alves <palves@redhat.com>
740 * breakpoint.c (build_target_command_list): Don't build a command
741 list if we have any duplicate location that isn't a dprintf.
743 2014-06-02 Pedro Alves <palves@redhat.com>
745 * breakpoint.c (dprintf_breakpoint_hit): New function.
746 (initialize_breakpoint_ops): Install it as dprintf's
747 breakpoint_hit method.
749 2014-06-02 Joel Brobecker <brobecker@adacore.com>
751 * source.c (substitute_path_rule_matches): Simplify using
752 filename_ncmp instead of FILENAME_CMP.
754 2014-06-02 Joel Brobecker <brobecker@adacore.com>
756 * source.c (substitute_path_rule_matches): Remove trailing spaces.
758 2014-06-01 Ludovic Courtès <ludo@gnu.org>
760 * configure.ac: When Guile is available, check for the
761 availability of 'scm_new_smob'.
762 * configure, config.h.in: Regenerate.
763 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
766 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
768 * frame.c (struct frame_info): Add stop_string field.
769 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
770 (get_prev_frame_always): Old content moved into
771 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
772 TRY_CATCH, handle MEMORY_ERROR exceptions.
773 (frame_stop_reason_string): New function definition.
774 * frame.h (unwind_stop_reason_to_string): Extend comment to
775 mention frame_stop_reason_string.
776 (frame_stop_reason_string): New function declaration.
777 * stack.c (frame_info): Switch to frame_stop_reason_string.
778 (backtrace_command_1): Switch to frame_stop_reason_string.
779 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
780 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
781 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
783 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
785 * frame.c (frame_stop_reason_string): Rename to ...
786 (unwind_stop_reason_to_string): this.
787 * frame.h (frame_stop_reason_string): Rename to ...
788 (unwind_stop_reason_to_string): this.
789 * stack.c (frame_info): Update call to frame_stop_reason_string.
790 (backtrace_command_1): Likewise.
791 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
792 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
794 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
796 * frame.c (remove_prev_frame): New function.
797 (get_prev_frame_if_no_cycle): Create / discard cleanup using
800 2014-05-29 Pedro Alves <palves@redhat.com>
802 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
803 and make it const. When a single-step decays to a continue,
804 clear 'step', not 'hw_step'. Pass whether the caller wanted
805 to step to user_visible_resume_ptid, not what we ask the
808 2014-05-29 Pedro Alves <palves@redhat.com>
810 * infrun.c (process_event_stop_test, handle_step_into_function)
811 (handle_step_into_function_backward): Adjust.
812 Don't set the even thread's stop_step and call stop_waiting before
813 calling end_stepping_range. Instead do that ...
814 (end_stepping_range): ... here. Take an ecs pointer parameter.
816 2014-05-29 Pedro Alves <palves@redhat.com>
818 * infrun.c (stop_stepping): Rename to ...
819 (stop_waiting): ... this.
820 (proceed): Update comment.
821 (process_event_stop_test, handle_inferior_event)
822 (handle_signal_stop, handle_step_into_function)
823 (handle_step_into_function_backward): Update.
825 2014-05-29 Pedro Alves <palves@redhat.com>
827 * infcall.c (run_inferior_call): Don't check whether the current
828 thread is running after the proceed call.
830 2014-05-29 Pedro Alves <palves@redhat.com>
831 Tom Tromey <tromey@redhat.com>
833 * NEWS: Mention "maint set target-async", "set mi-async", and that
834 background execution commands are now always available.
835 * target.h (target_async_permitted): Update comment.
836 * target.c (target_async_permitted, target_async_permitted_1):
838 (set_target_async_command): Rename to ...
839 (maint_set_target_async_command): ... this.
840 (show_target_async_command): Rename to ...
841 (maint_show_target_async_command): ... this.
842 (_initialize_target): Adjust.
843 * infcmd.c (prepare_execution_command): Make extern.
844 * inferior.h (prepare_execution_command): Declare.
845 * infrun.c (set_observer_mode): Leave target async alone.
846 * mi/mi-interp.c (mi_interpreter_init): Install
847 mi_on_sync_execution_done as sync_execution_done observer.
848 (mi_on_sync_execution_done): New function.
849 (mi_execute_command_input_handler): Don't print the prompt if we
850 just started a synchronous command with an async target.
851 (mi_on_resume): Check sync_execution before printing prompt.
852 * mi/mi-main.h (mi_async_p): Declare.
853 * mi/mi-main.c: Include gdbcmd.h.
854 (mi_async_p): New function.
855 (mi_async, mi_async_1): New globals.
856 (set_mi_async_command, show_mi_async_command, mi_async): New
858 (exec_continue): Call prepare_execution_command.
859 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
860 (mi_execute_async_cli_command): Use mi_async_p.
861 (_initialize_mi_main): Install "set mi-async". Make
862 "target-async" a deprecated alias.
864 2014-05-29 Pedro Alves <palves@redhat.com>
866 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
867 (_initialize_cli_interp): Adjust.
868 * event-loop.c: Include "observer.h".
869 (start_event_loop): Notify 'command_error' observers instead of
870 calling display_gdb_prompt. Remove FIXME comment.
871 * event-top.c (display_gdb_prompt): Remove call into the
873 * inf-loop.c: Include "observer.h".
874 (inferior_event_handler): Notify 'command_error' observers instead
875 of calling display_gdb_prompt.
876 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
877 observers instead of calling display_gdb_prompt.
878 * interps.c (interp_set): Don't call display_gdb_prompt.
879 (current_interp_display_prompt_p): Delete.
880 * interps.h (interp_prompt_p): Delete declaration.
881 (interp_prompt_p_ftype): Delete.
882 (struct interp_procs) <prompt_proc_p>: Delete field.
883 (current_interp_display_prompt_p): Delete declaration.
884 * mi-interp.c (mi_interpreter_prompt_p): Delete.
885 (_initialize_mi_interp): Adjust.
886 * tui-interp.c (tui_init): Install 'sync_execution_done' and
887 'command_error' observers.
888 (tui_on_sync_execution_done, tui_on_command_error): New
890 (tui_display_prompt_p): Delete.
891 (_initialize_tui_interp): Adjust.
893 2014-05-29 Pedro Alves <palves@redhat.com>
896 * cli/cli-interp.c: Include infrun.h and observer.h.
897 (cli_uiout, cli_interp): New globals.
898 (cli_on_signal_received, cli_on_end_stepping_range)
899 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
901 (cli_interpreter_init): Install them as 'end_stepping_range',
902 'signal_received' 'signal_exited', 'exited' and 'no_history'
904 (_initialize_cli_interp): Remove cli_interp local.
905 * infrun.c (handle_inferior_event): Call the several stop reason
906 observers instead of printing the stop reason directly.
907 (end_stepping_range): New function.
908 (print_end_stepping_range_reason, print_signal_exited_reason)
909 (print_exited_reason, print_signal_received_reason)
910 (print_no_history_reason): Make static, and add an uiout
911 parameter. Print to that instead of to CURRENT_UIOUT.
912 * infrun.h (print_end_stepping_range_reason)
913 (print_signal_exited_reason, print_exited_reason)
914 (print_signal_received_reason print_no_history_reason): New
916 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
918 <cli_uiout>: New field.
919 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
920 uiout for CLI output. Install 'signal_received',
921 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
923 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
924 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
925 (mi_on_no_history): New functions.
926 (ui_out_free_cleanup): Delete function.
927 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
928 instead use the one already stored in the MI interpreter data.
930 * tui/tui-interp.c: Include infrun.h and observer.h.
931 (tui_interp): New global.
932 (tui_on_signal_received, tui_on_end_stepping_range)
933 (tui_on_signal_exited, tui_on_exited)
934 (tui_on_no_history): New functions.
935 (tui_init): Install them as 'end_stepping_range',
936 'signal_received' 'signal_exited', 'exited' and 'no_history'
938 (_initialize_tui_interp): Delete tui_interp local.
940 2014-05-29 Pedro Alves <palves@redhat.com>
943 * linux-nat.c (linux_nat_resume_callback): Rename the second
944 parameter to 'except'. Skip LP if it points to EXCEPT.
945 (linux_nat_resume): Don't mark the event lwp as not stopped
946 before resuming sibling lwps. Instead ask
947 linux_nat_resume_callback to skip the event lwp. Mark it as not
948 stopped after actually resuming it.
949 (linux_handle_syscall_trap): Mark the lwp as not stopped after
951 (wait_lwp): Mark the lwp as stopped here.
952 (stop_wait_callback): Mark the lwp as not stopped right after
953 resuming it. Don't mark lwps as stopped here.
954 (linux_nat_filter_event): Mark the lwp as stopped earlier.
955 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
957 2014-05-29 Pedro Alves <palves@redhat.com>
960 * infrun.c (resume): Determine how much to resume depending on
961 whether the caller wanted a step, not whether we can hardware step
962 the target. Mark all threads that we intend to run as running,
963 unless we're calling an inferior function.
964 (normal_stop): If the thread is running an infcall, don't finish
966 * target.c (target_resume): Don't mark threads as running here.
968 2014-05-28 Joel Brobecker <brobecker@adacore.com>
970 * serial.c (_initialize_serial): Remove support for
971 the "set remotebaud" and "show remotebaud" commands.
972 * NEWS: Add entry documenting the removal of that command.
974 2014-05-28 Yao Qi <yao@codesourcery.com>
976 * charset.c: Fix typo in comments.
978 2014-05-27 Gary Benson <gbenson@redhat.com>
980 * utils.c (internal_vproblem): Prompt for a bug report.
982 2014-05-26 Andy Wingo <wingo@igalia.com>
984 * guile/scm-arch.c (arscm_mark_arch_smob):
985 * guile/scm-block.c (bkscm_mark_block_smob)
986 (bkscm_mark_block_syms_progress_smob):
987 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
988 * guile/scm-exception.c (exscm_mark_exception_smob):
989 * guile/scm-frame.c (frscm_mark_frame_smob):
990 * guile/scm-iterator.c (itscm_mark_iterator_smob):
991 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
992 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
993 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
994 (ppscm_mark_pretty_printer_worker_smob):
995 * guile/scm-symbol.c (syscm_mark_symbol_smob):
996 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
997 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
998 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1000 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1003 2014-05-26 Andy Wingo <wingo@igalia.com>
1004 Doug Evans <xdje42@gmail.com>
1006 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1007 empty_base_class. All uses updated.
1008 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1009 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1011 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1012 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1013 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1014 (gdbscm_gsmob_has_property_p, add_property_name)
1015 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1016 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1017 (gdb-object-has-property?, gdb-object-properties): Remove.
1018 (gdb-object-kind): Renamed from gsmob-kind.
1020 2014-05-26 Andy Wingo <wingo@igalia.com>
1022 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1023 * configure: Regenerate.
1025 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1027 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1029 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1031 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1032 (replay_memory_access_read_only, replay_memory_access_read_write)
1033 (replay_memory_access_types, replay_memory_access)
1034 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1035 (cmd_set_record_btrace, cmd_show_record_btrace)
1036 (cmd_show_replay_memory_access): New.
1037 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1038 (record_btrace_remove_breakpoint): Replace
1039 record_btrace_allow_memory_access with replay_memory_access.
1040 (_initialize_record_btrace): Add commands.
1041 * NEWS: Announce it.
1043 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1045 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1047 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1049 * MAINTAINERS (Write After Approval): Move self back from
1052 2014-05-22 Pedro Alves <palves@redhat.com>
1054 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1055 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1056 (disable_randomization, enum exec_direction_kind)
1057 (execution_direction, stop_registers, start_remote)
1058 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1059 (wait_for_inferior, normal_stop, get_last_target_status)
1060 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1061 (insert_step_resume_breakpoint_at_sal)
1062 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1063 (set_step_info, print_stop_event, signal_stop_state)
1064 (signal_print_state, signal_pass_state, signal_stop_update)
1065 (signal_print_update, signal_pass_update)
1066 (update_signals_program_target, clear_exit_convenience_vars)
1067 (displaced_step_dump_bytes, update_observer_mode)
1068 (signal_catch_update, gdb_signal_from_command): Move
1070 * infrun.h: ... to this new file.
1071 * amd64-tdep.c: Include infrun.h.
1072 * annotate.c: Include infrun.h.
1073 * arch-utils.c: Include infrun.h.
1074 * arm-linux-tdep.c: Include infrun.h.
1075 * arm-tdep.c: Include infrun.h.
1076 * break-catch-sig.c: Include infrun.h.
1077 * breakpoint.c: Include infrun.h.
1078 * common/agent.c: Include infrun.h instead of inferior.h.
1079 * corelow.c: Include infrun.h.
1080 * event-top.c: Include infrun.h.
1081 * go32-nat.c: Include infrun.h.
1082 * i386-tdep.c: Include infrun.h.
1083 * inf-loop.c: Include infrun.h.
1084 * infcall.c: Include infrun.h.
1085 * infcmd.c: Include infrun.h.
1086 * infrun.c: Include infrun.h.
1087 * linux-fork.c: Include infrun.h.
1088 * linux-nat.c: Include infrun.h.
1089 * linux-thread-db.c: Include infrun.h.
1090 * monitor.c: Include infrun.h.
1091 * nto-tdep.c: Include infrun.h.
1092 * procfs.c: Include infrun.h.
1093 * record-btrace.c: Include infrun.h.
1094 * record-full.c: Include infrun.h.
1095 * remote-m32r-sdi.c: Include infrun.h.
1096 * remote-mips.c: Include infrun.h.
1097 * remote-notif.c: Include infrun.h.
1098 * remote-sim.c: Include infrun.h.
1099 * remote.c: Include infrun.h.
1100 * reverse.c: Include infrun.h.
1101 * rs6000-tdep.c: Include infrun.h.
1102 * s390-linux-tdep.c: Include infrun.h.
1103 * solib-irix.c: Include infrun.h.
1104 * solib-osf.c: Include infrun.h.
1105 * solib-svr4.c: Include infrun.h.
1106 * target.c: Include infrun.h.
1107 * top.c: Include infrun.h.
1108 * windows-nat.c: Include infrun.h.
1109 * mi/mi-interp.c: Include infrun.h.
1110 * mi/mi-main.c: Include infrun.h.
1111 * python/py-threadevent.c: Include infrun.h.
1113 2014-05-22 Pedro Alves <palves@redhat.com>
1115 * infrun.c (handle_inferior_event): Store the exit code for
1116 --return-child-result here, instead of ...
1117 (print_exited_reason): ... here.
1119 2014-05-21 Pedro Alves <palves@redhat.com>
1122 * gdbthread.h (struct thread_control_state): New field
1124 * infrun.c (follow_fork): Copy the new thread control field to the
1126 (clear_proceed_status_thread): Clear the new thread control field.
1127 (proceed): Set the new thread control field.
1128 * interps.h (command_interp): Declare.
1129 * interps.c (command_interpreter): New global.
1130 (command_interp): New function.
1131 (interp_exec): Set `command_interpreter' while here.
1132 * cli-out.c (cli_uiout_dtor): New function.
1133 (cli_ui_out_impl): Install it.
1134 * mi/mi-interp.c: Include cli-out.h.
1135 (mi_cmd_interpreter_exec): Add comment.
1136 (restore_current_uiout_cleanup): New function.
1137 (ui_out_free_cleanup): New function.
1138 (mi_on_normal_stop): If finishing an execution command started by
1139 a CLI command, or any kind of breakpoint-like event triggered,
1140 print the stop event to the output (CLI) stream.
1141 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1143 2014-05-21 Pedro Alves <palves@redhat.com>
1145 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1146 current source line having changed.
1147 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1148 * infrun.c (normal_stop): Adjust call to
1149 set_current_sal_from_frame.
1150 * source.c (clear_lines_listed_range): New function.
1151 (set_current_source_symtab_and_line, identify_source_line): Clear
1152 the lines listed range.
1153 (line_info): Handle the first "info line" after the current source
1154 line having changed.
1155 * stack.c (print_stack_frame): Remove center handling.
1156 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1159 2014-05-21 Pedro Alves <palves@redhat.com>
1161 * inf-child.c (inf_child_mourn_inferior): New function.
1162 * inf-child.h (inf_child_mourn_inferior): New declaration.
1163 * darwin-nat.c (darwin_mourn_inferior): Use
1164 inf_child_mourn_inferior.
1165 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1166 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1167 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1168 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1169 * windows-nat.c (windows_mourn_inferior): Likewise.
1171 2014-05-21 Doug Evans <xdje42@gmail.com>
1173 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1175 2014-05-21 Doug Evans <xdje42@gmail.com>
1177 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1178 (gdbscm_out_of_range_error): Ditto.
1179 (gdbscm_memory_error): Ditto.
1180 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1181 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1182 (gdbscm_out_of_range_error): Update.
1183 (gdbscm_memory_error): Update.
1184 (gdbscm_scm_to_target_string_unsafe): Delete.
1186 2014-05-21 Pedro Alves <palves@redhat.com>
1188 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1190 (inf_child_open_target): New function.
1191 (inf_child_open): Use inf_child_open_target to push the target
1192 instead of erroring out.
1193 (inf_child_disconnect, inf_child_close)
1194 (inf_child_maybe_unpush_target): New functions.
1195 (inf_child_target): Install inf_child_disconnect and
1196 inf_child_close. Store a pointer to the returned object.
1197 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1199 * target.c (auto_connect_native_target): New global.
1200 (show_default_run_target): New function.
1201 (find_default_run_target): Return NULL if automatically connecting
1202 to the native target is disabled.
1203 (_initialize_target): Install set/show auto-connect-native-target.
1204 * NEWS: Mention "set auto-connect-native-target", and "target
1206 * linux-nat.c (super_close): New global.
1207 (linux_nat_close): Call super_close.
1208 (linux_nat_add_target): Store a pointer to the base class's
1210 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1211 inf_child_maybe_unpush.
1212 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1214 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1215 the inferior. Use inf_child_maybe_unpush_target.
1216 (inf_ttrace_attach): Don't push the target if it is already
1218 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1219 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1220 after mourning the inferior. Use inf_child_maybe_unpush_target.
1221 (darwin_attach_pid): Don't push the target if it is already
1223 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1224 mourning the inferior. Use inf_child_maybe_unpush_target.
1225 (gnu_detach): Use inf_child_maybe_unpush_target.
1226 * go32-nat.c (go32_create_inferior): Don't push the target if it
1228 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1229 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1230 (procfs_open): Rename to ...
1231 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1232 comments. Can target_preopen before changing node. Call
1233 inf_child_open_target to push the target explicitly.
1234 (procfs_attach): Don't push the target if it is already pushed.
1235 (procfs_detach): Use inf_child_maybe_unpush_target.
1236 (procfs_create_inferior): Don't push the target if it is already
1238 (nto_native_ops): New global.
1239 (procfs_open): Reimplement.
1240 (procfs_native_open): New function.
1241 (init_procfs_targets): Install procfs_native_open as to_open of
1242 "target native". Store a pointer to the "native" target in
1244 * procfs.c (procfs_attach): Don't push the target if it is already
1246 (procfs_detach): Use inf_child_maybe_unpush_target.
1247 (procfs_mourn_inferior): Only unpush the target after mourning the
1248 inferior. Use inf_child_maybe_unpush_target.
1249 (procfs_init_inferior): Don't push the target if it is already
1251 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1252 if it is already pushed.
1254 2014-05-21 Pedro Alves <palves@redhat.com>
1256 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1257 and "procfs" targets are now called "native" instead.
1259 2014-05-21 Pedro Alves <palves@redhat.com>
1261 * go32-nat.c (go32_open): Delete.
1262 (go32_target): Don't override the to_open method.
1264 2014-05-21 Pedro Alves <palves@redhat.com>
1266 * nto-procfs.c (procfs_can_run): New function.
1267 (nto_procfs_ops): New global.
1268 (init_procfs_targets): New, based on procfs_target. Install
1269 "target native" in addition to "target procfs".
1270 (_initialize_procfs): Call init_procfs_targets instead of adding
1273 2014-05-21 Pedro Alves <palves@redhat.com>
1275 * windows-nat.c (windows_target): Don't override to_shortname,
1276 to_longname or to_doc.
1278 2014-05-21 Pedro Alves <palves@redhat.com>
1280 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1283 2014-05-21 Pedro Alves <palves@redhat.com>
1285 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1286 to_shortname, to_longname or to_doc.
1288 2014-05-21 Pedro Alves <palves@redhat.com>
1290 * go32-nat.c (go32_target): Don't override to_shortname,
1291 to_longname or to_doc.
1293 2014-05-21 Pedro Alves <palves@redhat.com>
1295 * inf-child.c (inf_child_open): Remove mention of "child".
1296 (inf_child_target): Rename target to "native" instead of "child".
1298 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1300 * Makefile.in (SFILES): Delete "regset.c".
1301 (COMMON_OBS): Delete "regset.o".
1303 * regset.h (regset_alloc): Delete prototype.
1305 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307 * sparc-linux-tdep.c (sparc32_linux_gregset)
1308 (sparc32_linux_fpregset): New static regset structures.
1309 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1310 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1312 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1313 (sparc64_linux_fpregset): New static regset structures.
1314 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1315 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1316 New static regset structures.
1317 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1318 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1319 New static regset structures.
1320 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1321 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1322 New static regset structures.
1323 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1324 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1325 New static regset structures.
1326 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1328 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1330 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1331 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1332 register maps ("regmaps") from "*regset" to "*regmap". Do this
1333 for all regmap types and variables.
1334 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1335 (sparc32_linux_supply_core_gregset)
1336 (sparc32_linux_collect_core_gregset)
1337 (sparc32_linux_supply_core_fpregset)
1338 (sparc32_linux_collect_core_fpregset): Likewise.
1339 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1340 (sparc_gregmap, sparc_fpregmap): ... these.
1341 (sparc_supply_gregset, sparc_collect_gregset)
1342 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1343 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1344 (_initialize_sparc_nat): Rename regmaps.
1345 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1346 (sparc_gregmap, sparc_fpregmap): ... these.
1347 (sparc_supply_gregset, sparc_collect_gregset)
1348 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1349 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1351 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1352 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1354 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1356 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1357 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1358 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1360 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1361 (sparc32_bsd_fpregset): Rename to...
1362 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1363 (sparc32_bsd_fpregmap): ... these.
1364 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1365 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1366 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1367 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1368 (struct sparc_gregmap, struct sparc_fpregmap)
1369 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1370 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1371 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1372 (sparc32_supply_regset, sparc32_collect_gregset)
1373 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1375 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1376 (sparc64_linux_ptrace_gregmap): ... this.
1377 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1378 (_initialize_sparc64_linux_nat): Rename regmaps.
1379 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1380 (sparc64_linux_core_gregmap): ... this.
1381 (sparc64_linux_supply_core_gregset)
1382 (sparc64_linux_collect_core_gregset)
1383 (sparc64_linux_supply_core_fpregset)
1384 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1385 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1386 (sparc64_sol2_fpregset): Rename to...
1387 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1388 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1389 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1391 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1392 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1393 (sparc64_bsd_fpregset): Rename to...
1394 (struct sparc_gregmap, sparc64_sol2_gregmap)
1395 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1396 (sparc64_bsd_fpregmap): ... these.
1397 (sparc64_supply_gregset, sparc64_collect_gregset)
1398 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1400 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1401 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1402 (sparc64fbsd_gregmap): ... this.
1403 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1404 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1406 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1407 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1408 (sparc64nbsd_collect_fpregset): Likewise.
1409 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1410 (sparc64nbsd_gregmap): ... this.
1411 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1413 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1414 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1415 (sparc64obsd_gregmap): ... this.
1416 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1418 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1419 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1420 (sparc32nbsd_gregmap): ... this.
1421 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1424 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1426 * score-tdep.c (score7_linux_gregset): New static regset
1428 (score7_linux_regset_from_core_section): Remove dynamic regset
1430 (score_gdbarch_init): Drop allocation of tdep structure.
1431 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1433 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1437 (am33_regset_from_core_section): Remove dynamic regset
1440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1442 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1443 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1445 (mips_linux_regset_from_core_section): Remove dynamic regset
1447 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1448 'gregset64', 'fpregset', and 'fpregset64'.
1449 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1450 deleted tdep fields.
1452 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1456 (amd64_regset_from_core_section): Remove dynamic regset
1458 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1460 (amd64obsd_regset_from_core_section): Remove dynamic regset
1462 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1464 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1465 x86-common regset supply function.
1466 * i386-tdep.c (i386_collect_gregset): Make static.
1467 (i386_gregset): New global regset structure.
1468 (i386_fpregset, i386_xstateregset): New static regset structures.
1469 (i386_regset_from_core_section): Remove dynamic regset
1471 (i386_gdbarch_init): Remove initialization of tdep fields
1472 'gregset', 'fpregset', and 'xstateregset'.
1473 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1474 'fpregset', and 'xstateregset'.
1475 (i386_collect_gregset): Remove prototype.
1476 (i386_gregset): New declaration.
1477 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1479 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1482 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1485 (arm_linux_vfpregset): New static regset structures.
1486 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1488 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1489 and 'vfpregset' fields.
1491 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1494 (aarch64_linux_fpregset): New static regset structures.
1495 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1496 of regset structures.
1497 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1500 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1502 * regset.h (struct regset): Remove gdbarch field.
1503 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1504 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1505 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1507 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1508 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1509 (ppc32_linux_vsxregset): Likewise.
1510 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1511 via the regcache instead of the regset.
1512 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1513 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1514 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1515 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1518 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1521 Constify structures.
1522 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1523 (alphanbsd_aout_gregset): Likewise.
1524 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1525 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1527 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1528 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1530 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1531 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1532 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1533 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1534 * m88k-tdep.c (m88k_gregset): Likewise.
1535 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1536 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1537 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1538 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1539 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1540 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1541 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1542 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1543 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1545 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1546 * sh-tdep.h (sh_corefile_gregset): Likewise.
1547 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1548 * vax-tdep.c (vax_gregset): Likewise.
1550 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1552 Fix TLS access for -static -pthread.
1553 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1554 (try_thread_db_load_1): Initialize it.
1555 (thread_db_get_thread_local_address): Call it if LM is zero.
1556 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1557 * target.h (struct target_ops) (to_get_thread_local_address): Add
1558 load_module_addr comment.
1560 2014-05-21 Pedro Alves <palves@redhat.com>
1562 * dcache.c (dcache_read_memory_partial): If reading the cache line
1563 fails, fallback to reading just the memory the caller wanted.
1565 2014-05-20 Doug Evans <dje@google.com>
1567 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1568 instead of get_current_arch.
1570 2014-05-20 Pedro Alves <palves@redhat.com>
1572 * NEWS: Mention that compare-sections now works with all targets.
1574 * remote.c (PACKET_qCRC): New enum value.
1575 (remote_verify_memory): Don't send qCRC if the target has no
1576 execution. Use packet_support/packet_ok. If the target doesn't
1577 support the qCRC packet, fallback to a deep memory copy.
1578 (compare_sections_command): Say "target image" instead of "remote
1580 (_initialize_remote): Add PACKET_qCRC to the list of config
1581 packets that have no associated command. Extend comment.
1582 * target.c (simple_verify_memory, default_verify_memory): New
1584 * target.h (struct target_ops) <to_verify_memory>: Default to
1585 default_verify_memory.
1586 (simple_verify_memory): New declaration.
1587 * target-delegates.c: Regenerate.
1589 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1591 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1593 2014-05-20 Hui Zhu <hui@codesourcery.com>
1594 Yao Qi <yao@codesourcery.com>
1597 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1598 and change address of sp and pc.
1600 2014-05-19 Tom Tromey <tromey@redhat.com>
1602 * gdbtypes.c (rank_function): Use XNEWVEC.
1603 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1605 2014-05-19 Doug Evans <dje@google.com>
1607 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1608 build_type_unit_groups and moved closer to only caller. Remove
1609 arguments. All references updated. Remove outdated .gdb_index
1611 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1612 build_type_psymtabs_1.
1614 2014-05-19 Doug Evans <dje@google.com>
1616 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1617 n_type_unit_groups, all_type_unit_groups. All uses removed.
1618 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1619 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1620 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1621 (add_type_unit_group_to_table): Delete.
1623 2014-05-19 Doug Evans <dje@google.com>
1625 * eval.c (evaluate_subexp_standard): Add some comments.
1627 2014-05-17 Doug Evans <xdje42@gmail.com>
1629 * progspace.c (remove_program_space): Delete, unused.
1630 * progspace.h (remove_program_space): Ditto.
1632 2014-05-17 Doug Evans <xdje42@gmail.com>
1634 * inferior.c (prune_inferiors): Fix comment.
1635 (remove_inferior_command): Call prune_program_spaces.
1637 2014-05-16 Doug Evans <dje@google.com>
1639 New command line option -D.
1641 * main.c (set_gdb_data_directory): New function.
1642 (captured_main): Recognize -D. Flag error for --data-directory "".
1643 Call set_gdb_data_directory.
1644 (print_gdb_help): Print --data-directory, -D.
1645 * main.h (set_gdb_data_directory): Declare.
1646 * top.c (staged_gdb_datadir): New static global.
1647 (set_gdb_datadir): Call set_gdb_data_directory
1648 (show_gdb_datadir): New function.
1649 (init_main): Update init of data-directory parameter.
1651 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1653 Import the "dirfd" gnulib module.
1654 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1655 * gnulib/aclocal.m4: Update.
1656 * gnulib/config.in: Update.
1657 * gnulib/configure: Update.
1658 * gnulib/import/Makefile.am: Update.
1659 * gnulib/import/Makefile.in: Update.
1660 * gnulib/import/dirfd.c: New.
1661 * gnulib/import/m4/dirfd.m4: New.
1662 * gnulib/import/m4/gnulib-cache.m4: Update.
1663 * gnulib/import/m4/gnulib-comp.m4: Update.
1665 2014-05-16 Pierre Muller <muller@sourceware.org>
1666 Yao Qi <yao@codesourcery.com>
1668 * valprint.c (print_wchar): Move the code on checking whether
1669 W is a printable wide char to the default branch of switch
1670 statement below. Call wchar_printable instead of gdb_iswprint.
1672 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1674 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1675 ldr.w and ldrd instructions.
1677 2014-05-15 Doug Evans <dje@google.com>
1679 * dwarf2read.c (read_structure_type): Delete outdated comments.
1681 2014-05-14 Tom Tromey <tromey@redhat.com>
1683 * macrocmd.c (print_macro_definition): Reindent.
1685 2014-05-13 Doug Evans <xdje42@gmail.com>
1687 * python/py-cmd.c (cmdpy_completer): Add comment.
1688 (completers): Make const.
1690 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1692 * infrun.c (resume): Remove should_resume (unused). Move up
1693 declaration of resume_ptid.
1695 2014-05-13 Tom Tromey <tromey@redhat.com>
1697 * language.h (unop_type_check): Remove.
1698 (binop_type_check): Don't declare.
1700 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1702 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1703 call to regcache_raw_collect.
1705 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1707 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1708 mi_console->quote as the quoting character.
1710 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1712 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1714 2014-04-29 Tom Tromey <tromey@redhat.com>
1716 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1717 "show debug varobj".
1719 2014-05-07 Kyle McMartin <kyle@redhat.com>
1721 Pushed by Joel Brobecker <brobecker@adacore.com>.
1722 * aarch64-tdep.c (aarch64_software_single_step): New function.
1723 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1724 with aarch64_software_single_step.
1726 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1730 2014-05-05 Keith Seitz <keiths@redhat.com>
1732 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1733 variable or history value is successfully parsed.
1735 2014-05-05 Yao Qi <yao@codesourcery.com>
1736 Pedro Alves <palves@redhat.com>
1738 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1739 address of blocks that intersects the requested range. Trim
1740 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1742 * ctf.c (ctf_xfer_partial): Likewise.
1744 2014-05-05 Yao Qi <yao@codesourcery.com>
1746 * printcmd.c (display_command): Remove the check to
1747 target_has_execution.
1749 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1751 * ppcobsd-nat.c: Include "obsd-nat.h".
1752 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1754 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1756 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1758 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1759 and 16-bit signed and unsigned arguments. Update comment.
1760 (stap_parse_probe_arguments): Extend code to handle such
1761 arguments. Use warning instead of complaint to notify about
1762 unrecognized bitness.
1764 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1766 PR breakpoints/16889
1767 * stap-probe.c (stap_parse_probe_arguments): Simplify
1768 check for non-prefixed probes (i.e., probes whose
1769 arguments do not start with "N@"). Always set the
1770 argument type to a sane value.
1772 2014-05-01 David Taylor <dtaylor@emc.com>
1774 * remote.c (compare_sections_command): Add -r option to compare
1775 all loadable read-only sections.
1777 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1779 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1780 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1782 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1783 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1784 Remove unused CORE_ADDR argument. Update all callers.
1786 2014-04-29 Pedro Alves <palves@redhat.com>
1788 * remote.c (struct packet_config) <detect>: Extend comment.
1789 (add_packet_config_cmd): Don't set the config's detect or support
1791 (init_all_packet_configs): Also initialize the config's 'detect'
1793 (reset_all_packet_configs_support): New function.
1794 (remote_open_1): Call reset_all_packet_configs_support instead of
1795 init_all_packet_configs.
1796 (_initialize_remote): Initialize all packet configs. Assert that
1797 all packets have an associated command, except a few known
1800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1802 * dwarf2read.c (read_subrange_type): Handle dynamic
1803 DW_AT_lower_bound attributes.
1805 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1807 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1808 dynamic bounds before computing its upper bound.
1809 (ada_discrete_type_low_bound): Same as above with the lower bound.
1811 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1813 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1814 range types. Adjust the array handling implementation to
1815 take advantage of this change.
1816 (resolve_dynamic_range): New function, mostly extracted from
1817 resolve_dynamic_bounds.
1818 (resolve_dynamic_array): New function, mostly extracted from
1819 resolve_dynamic_bounds.
1820 (resolve_dynamic_bounds): Delete.
1821 (resolve_dynamic_type): Reimplement. Add handling of
1822 TYPE_CODE_RANGE types.
1824 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1826 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1827 handling of parallel ___XA types.
1829 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1831 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1832 unnecessary second call to static_unwrap_type.
1834 2014-04-27 Hui Zhu <hui@codesourcery.com>
1836 * stack.c (print_frame_info): Call do_gdb_disassembly with
1837 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1839 2014-04-26 Doug Evans <xdje42@gmail.com>
1841 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1843 2014-04-25 Pedro Alves <palves@redhat.com>
1846 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1847 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1848 and newline from built string.
1849 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1850 (linux_ptrace_attach_fail_reason): ... this.
1851 * linux-nat.c (linux_nat_attach): Adjust to use
1852 linux_ptrace_attach_fail_reason.
1854 2014-04-25 Pedro Alves <palves@redhat.com>
1856 * remote.c (struct remote_state): Remove multi_process_aware,
1857 non_stop_aware, cond_tracepoints, cond_breakpoints,
1858 breakpoint_commands, fast_tracepoints, static_tracepoints,
1859 install_in_trace, disconnected_tracing,
1860 enable_disable_tracepoints, string_tracing, and
1861 augmented_libraries_svr4_read fields.
1862 (remote_multi_process_p): Move further below in the file.
1863 (struct packet_config): Add comments.
1864 (update_packet_config): Delete function.
1865 (show_packet_config_cmd): Use packet_config_support.
1866 (add_packet_config_cmd): Use NULL as set callback.
1867 (packet_ok): "set remote foo-packet"-style commands no longer
1868 change config->supported -- adjust.
1869 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1870 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1871 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1872 (PACKET_QNonStop, PACKET_multiprocess_feature)
1873 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1874 (PACKET_DisconnectedTracing_feature)
1875 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1876 (set_remote_protocol_packet_cmd): Delete function.
1877 (packet_config_support, packet_support): New functions.
1878 (set_remote_protocol_Z_packet_cmd): Don't call
1879 update_packet_config.
1880 (remote_query_attached, remote_pass_signals)
1881 (remote_program_signals, remote_threads_info)
1882 (remote_threads_extra_info, remote_start_remote): Use
1884 (remote_start_remote): Use packet_config_support and
1886 (init_all_packet_configs): Set all packets to unknown support,
1887 instead of calling update_packet_config.
1888 (remote_check_symbols): Use packet_support.
1889 (remote_supported_packet): Unconditionally set the packet config's
1891 (remote_multi_process_feature, remote_non_stop_feature)
1892 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1893 (remote_breakpoint_commands_feature)
1894 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1895 (remote_install_in_trace_feature)
1896 (remote_disconnected_tracing_feature)
1897 (remote_enable_disable_tracepoint_feature)
1898 (remote_string_tracing_feature)
1899 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1900 (remote_protocol_features): Adjust to use remote_supported_packet
1901 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1902 "ConditionalTracepoints", "ConditionalBreakpoints",
1903 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1904 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1905 "EnableDisableTracepoints", and "tracenz".
1906 (remote_query_supported): Use packet_support.
1907 (remote_open_1): Adjust.
1908 (extended_remote_attach_1): Use packet_support. Switch on the
1909 result of packet_ok instead of checking whether the packet ended
1911 (remote_vcont_resume): Use packet_support.
1912 (remote_resume, remote_stop_ns, fetch_register_using_p)
1913 (remote_prepare_to_store, store_register_using_P)
1914 (check_binary_download, remote_write_bytes): Use packet_support.
1915 (remote_vkill): Use packet_support. Switch on the result of
1916 packet_ok instead of checking whether the packet ended up
1918 (extended_remote_supports_disable_randomization): Use
1920 (extended_remote_run): Switch on the result of packet_ok instead
1921 of checking whether the packet ended up disabled.
1922 (remote_insert_breakpoint, remote_remove_breakpoint)
1923 (remote_insert_watchpoint, remote_remove_watchpoint)
1924 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1926 (remote_search_memory): Use packet_config_support.
1927 (remote_get_thread_local_address, remote_get_tib_address)
1928 (remote_hostio_send_command, remote_can_execute_reverse): Use
1930 (remote_supports_cond_tracepoints)
1931 (remote_supports_cond_breakpoints)
1932 (remote_supports_fast_tracepoints)
1933 (remote_supports_static_tracepoints)
1934 (remote_supports_install_in_trace)
1935 (remote_supports_enable_disable_tracepoint)
1936 (remote_supports_string_tracing)
1937 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1938 the packet config says the feature is enabled or disabled.
1939 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1940 (remote_get_trace_status): Use packet_support.
1941 (remote_set_disconnected_tracing): Adjust to check whether the
1942 feature is enabled with packet_support.
1943 (remote_set_trace_buffer_size, remote_use_agent)
1944 (remote_can_use_agent, remote_supports_btrace): Use
1946 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1947 Use packet_config_support.
1948 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1949 the packet config says the feature is enabled or disabled.
1950 (set_range_stepping): Use packet_support.
1952 2014-04-25 Tom Tromey <tromey@redhat.com>
1954 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1957 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1959 * NEWS: Mention support for C99 variable length arrays.
1961 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1963 * ada-lang.c (standard_exc): Expand introductory comment.
1965 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1966 Walfred Tedeschi <walfred.tedeschi@intel.com>
1968 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1970 (amd64_linux_read_description): Add code to handle AVX512 xstate
1971 mask and return respective tdesc.
1972 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1973 and features/i386/x32-avx512-linux.c.
1974 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1975 (amd64_linux_core_read_description): Add code to handle AVX512
1976 xstate mask and return respective tdesc.
1977 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1978 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1980 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1981 (tdesc_amd64_avx512_linux): New prototype.
1982 (tdesc_x32_avx512_linux): Likewise.
1983 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1984 features/i386/x32-avx512.c.
1985 (amd64_ymm_avx512_names): New register names for pseudo
1987 (amd64_ymmh_avx512_names): New register names for raw registers
1989 (amd64_k_names): New register names for K registers.
1990 (amd64_zmmh_names): New register names for ZMM raw registers.
1991 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1992 (amd64_xmm_avx512_names): New register names for XMM16-31
1994 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1996 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1997 if feature is present.
1998 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1999 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2000 (AMD64_NUM_REGS): Adjust to new number of registers.
2001 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2002 registers supplied via XSTATE by AVX512 registers.
2003 (i386_linux_read_description): Add case for AVX512.
2004 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2005 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2006 (i386_linux_core_read_description): Add case for AVX512.
2007 (i386_linux_init_abi): Install supported register note section
2009 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2011 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2012 registers to be number of zmm7h + 1.
2013 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2014 * i386-tdep.c: Include features/i386/i386-avx512.c.
2015 (i386_zmm_names): Add ZMM pseudo register names array.
2016 (i386_zmmh_names): Add ZMM raw register names array.
2017 (i386_k_names): Add K raw register names array.
2018 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2019 registers. AVX512 has 16 more ZMM registers than there are YMM
2021 (i386_zmmh_regnum_p): Add function to look up register number of
2023 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2024 (i386_k_regnum_p): Likewise for K raw registers.
2025 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2026 registers added by AVX512.
2027 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2028 registers added by AVX512.
2029 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2031 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2032 (i386_pseudo_register_name): Add ZMM pseudo registers.
2033 (i386_zmm_type): Construct and return vector registers type for ZMM
2035 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2036 ZMM0-31 pseudo registers and K registers.
2037 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2038 and YMM16-31 registers from register cache.
2039 (i386_pseudo_register_write): Add code to write K, ZMM and
2041 (i386_register_reggroup_p): Add code to include/exclude AVX512
2042 registers in/from respective register groups.
2043 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2044 registers if feature is present in xcr0.
2045 (i386_gdbarch_init): Add code to initialize AVX512 feature
2046 variables in tdep structure, wire in pseudo registers and call
2047 initialize_tdesc_i386_avx512.
2048 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2050 (i386_regnum): Add AVX512 registers.
2051 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2052 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2053 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2054 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2056 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2057 (i386_ymm_avx512_regnum_p): Likewise.
2058 (i386_k_regnum_p): Likewise.
2059 (i386_zmm_regnum_p): Likewise.
2060 (i386_zmmh_regnum_p): Likewise.
2061 * i387-tdep.c : Update year in copyright notice.
2062 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2064 (XSAVE_YMM_AVX512_ADDR): New macro.
2065 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2067 (XSAVE_XMM_AVX512_ADDR): New macro.
2068 (xsave_avx512_k_offset): New table for K register offsets in
2070 (XSAVE_AVX512_K_ADDR): New macro.
2071 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2073 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2074 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2076 (i387_collect_xsave): Add code to collect AVX512 registers from
2078 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2079 of XMM16-31 registers.
2080 (I387_NUM_K_REGS): New define for number of K registers.
2081 (I387_K0_REGNUM): New define for K0 register number.
2082 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2083 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2084 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2086 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2087 (I387_XMM16_REGNUM): New define for XMM16 register number.
2088 (I387_YMM0_REGNUM): New define for YMM0 register number.
2089 (I387_KEND_REGNUM): New define for last K register number.
2090 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2091 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2093 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2095 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2097 * features/Makefile: Add AVX512 related files.
2098 * features/i386/32bit-avx512.xml: New file.
2099 * features/i386/64bit-avx512.xml: Likewise.
2100 * features/i386/amd64-avx512-linux.c: Likewise.
2101 * features/i386/amd64-avx512-linux.xml: Likewise.
2102 * features/i386/amd64-avx512.c: Likewise.
2103 * features/i386/amd64-avx512.xml: Likewise.
2104 * features/i386/i386-avx512-linux.c: Likewise.
2105 * features/i386/i386-avx512-linux.xml: Likewise.
2106 * features/i386/i386-avx512.c: Likewise.
2107 * features/i386/i386-avx512.xml: Likewise.
2108 * features/i386/x32-avx512-linux.c: Likewise.
2109 * features/i386/x32-avx512-linux.xml: Likewise.
2110 * features/i386/x32-avx512.c: Likewise.
2111 * features/i386/x32-avx512.xml: Likewise.
2112 * regformats/i386/amd64-avx512-linux.dat: New file.
2113 * regformats/i386/amd64-avx512.dat: Likewise.
2114 * regformats/i386/i386-avx512-linux.dat: Likewise.
2115 * regformats/i386/i386-avx512.dat: Likewise.
2116 * regformats/i386/x32-avx512-linux.dat: Likewise.
2117 * regformats/i386/x32-avx512.dat: Likewise.
2118 * NEWS: Add note about new support for AVX512.
2121 2014-04-23 Pedro Alves <palves@redhat.com>
2123 * breakpoint.c (insert_bp_location): Tolerate errors if the
2124 breakpoint is set in a user-loaded objfile.
2125 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2126 location is marked shlib_disabled. If the breakpoint is set in a
2127 user-loaded objfile is a GDB-side memory breakpoint, validate it
2128 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2129 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2131 * mem-break.c (memory_validate_breakpoint): New function.
2132 * objfiles.c (userloaded_objfile_contains_address_p): New
2134 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2135 * target.h (memory_validate_breakpoint): New declaration.
2137 2014-04-23 Pedro Alves <palves@redhat.com>
2139 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2140 the breakpoint is set in a shared library, only suppress
2141 errors for software breakpoints, not hardware breakpoints.
2143 2014-04-22 Pedro Alves <palves@redhat.com>
2145 * infrun.c (schedlock_applies): New function, factored out from
2146 find_thread_needs_step_over.
2147 (find_thread_needs_step_over): Use it.
2148 (switch_back_to_stepped_thread): Always clear trap_expected if the
2149 step over is finished. Return early if scheduler locking applies.
2150 Look for the stepping thread and a potential step-over thread with
2152 (currently_stepping_or_nexting_callback): Delete.
2154 2014-04-22 Nick Clifton <nickc@redhat.com>
2156 * NEWS: Mention that ARM sim now supports tracing.
2158 2014-04-22 Yao Qi <yao@codesourcery.com>
2160 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2162 * tracefile.c (tracefile_fetch_registers): ... it. New
2164 * tracefile.h (tracefile_fetch_registers): Declare.
2165 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2166 tracefile_fetch_registers.
2168 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2171 * windows-nat.c (thread_rec): Don't display a warning when
2172 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2173 fails for any reason, set th->suspended to -1, so that we don't
2174 try to resume such a thread. Also, don't return NULL in these
2175 cases, to avoid completely ruin the session due to "PC register is
2176 not available" error.
2177 (do_windows_fetch_inferior_registers): Check errors in
2178 GetThreadContext call.
2179 (windows_continue): Accept an additional argument KILLED; if not
2180 zero, ignore errors in the SetThreadContext call, since the
2181 inferior was killed and is shutting down.
2182 (windows_resume, get_windows_debug_event)
2183 (windows_create_inferior, windows_mourn_inferior)
2184 (windows_kill_inferior): All callers of windows_continue changed
2185 to adjust to its new calling sequence.
2187 2014-04-19 Yao Qi <yao@codesourcery.com>
2189 * ctf.c (ctf_open): Call post_create_inferior.
2191 2014-04-19 Yao Qi <yao@codesourcery.com>
2193 * ctf.c (handle_id): New static variable.
2194 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2195 value. Get the declaration of event "register" and get length
2196 of field "contents".
2198 2014-04-19 Yao Qi <yao@codesourcery.com>
2200 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2202 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2204 * valops.c (oload_method_static): Remove unnecessary argument
2205 METHOD. Update all callers.
2207 2014-04-18 Pedro alves <palves@redhat.com>
2208 Tom Tromey <tromey@redhat.com>
2211 * frame.c (get_prev_frame_1): Rename to ...
2212 (get_prev_frame_always): ... this, and make extern. Adjust.
2213 (skip_artificial_frames): Use get_prev_frame_always.
2214 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2215 (get_frame_unwind_stop_reason): Adjust to rename.
2216 * frame.h (get_prev_frame_always): Declare.
2217 * inline-frame.c: Include frame.h.
2218 (inline_frame_this_id): Use get_prev_frame_always.
2220 2014-04-18 Tristan Gingold <gingold@adacore.com>
2222 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2223 code by using bfd_mach_o_get_base_address.
2225 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2227 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2228 (spu_ax_pseudo_register_collect): New function.
2229 (spu_ax_pseudo_register_push_stack): Likewise.
2230 (spu_dwarf_reg_to_regnum): Likewise.
2231 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2233 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2235 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2236 Replace FRAME argument with FRAME_ID.
2237 * gdbarch.c, gdbarch.h: Regenerate.
2238 * findvar.c (default_value_from_register): Add GDBARCH argument;
2239 replace FRAME by FRAME_ID. No longer call get_frame_id.
2240 (value_from_register): Update call to gdbarch_value_from_register.
2241 * value.h (default_value_from_register): Update prototype.
2242 * s390-linux-tdep.c (s390_value_from_register): Update interface
2243 and call to default_value_from_register.
2244 * spu-tdep.c (spu_value_from_register): Likewise.
2246 * findvar.c (address_from_register): Remove TYPE argument.
2247 Do not call value_from_register; use gdbarch_value_from_register
2248 with null_frame_id instead.
2249 * value.h (address_from_register): Update prototype.
2250 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2251 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2252 address_from_register interface change.
2254 2014-04-17 Yao Qi <yao@codesourcery.com>
2256 * gdbtypes.h: Update comments to link to types and macros'
2259 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2261 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2263 2014-04-16 Keith Seitz <keiths@redhat.com>
2266 * dwarf2read.c (skip_one_die): Check that all relative-offset
2267 sibling DIEs fall within range of the current reader's buffer.
2268 (read_partial_die): Likewise.
2270 2014-04-16 Keith Seitz <keiths@redhat.com>
2273 * cp-namespace.c (lookup_symbol_file): If the type name of
2274 `this' is NULL, return immediately.
2276 2014-04-14 Keith Seitz <keiths@redhat.com>
2279 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2280 from symbol_matches_domain in symtab.c. All local callers
2281 of symbol_matches_domain updated.
2282 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2283 search STRUCT_DOMAIN.
2284 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2285 independently. standard_lookup will do that automatically.
2286 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2287 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2288 (cp_lookup_symbol_in_namespace): Likewise.
2289 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2290 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2291 may return a STRUCT_DOMAIN match.
2292 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2293 * cp-support.c: Include language.h.
2294 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2296 * psymtab.c (match_partial_symbol): Compare the requested
2297 domain with the symbol's domain directly.
2298 (lookup_partial_symbol): Likewise.
2299 * symtab.c (lookup_symbol_in_language): Explain when/why
2300 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2301 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2302 appropriate languages.
2303 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2304 and moved to ada-lang.c
2305 (lookup_block_symbol): Explain that this function only returns
2306 symbol matching the requested DOMAIN.
2307 Compare the requested domain with the symbol's domain directly.
2308 (iterate_over_symbols): Compare the requested domain with the
2309 symbol's domain directly.
2310 * symtab.h (symbol_matches_domain): Remove.
2312 2014-04-14 Tom Tromey <tromey@redhat.com>
2315 * c-exp.y (type_aggregate_p): New function.
2316 (qualified_name, classify_inner_name): Use it.
2317 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2318 and TYPE_TARGET_TYPE of an enum type.
2319 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2321 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2322 handle TYPE_DECLARED_CLASS.
2323 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2325 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2326 * valops.c (enum_constant_from_type): New function.
2327 (value_aggregate_elt): Use it.
2328 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2331 2014-04-14 Tom Tromey <tromey@redhat.com>
2333 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2334 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2336 * value.h (value_aggregate_elt): Update.
2338 2014-04-14 Tom Tromey <tromey@redhat.com>
2340 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2342 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2344 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2345 (evaluate_subexp_standard): Pass noside argument.
2346 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2347 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2348 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2349 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2350 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2352 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2354 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2355 points to a constant blob.
2357 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2359 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2360 property and store it as the high bound and flag the range accordingly.
2361 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2362 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2363 * gdbtypes.h (enum range_flags): New enum.
2364 (struct range_bounds): Add flags member.
2366 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2368 * c-typeprint.c (c_type_print_varspec_suffix): Added
2369 check for not yet resolved high bound. If unresolved, print
2370 "variable length" string to the console instead of random
2373 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2375 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2377 (ada_template_to_fixed_record_type_1): Likewise.
2378 (ada_to_fixed_type_1): Likewise.
2379 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2380 (cp_print_value): Likewise.
2381 * d-valprint.c (dynamic_array_type): Likewise.
2382 * findvar.c (address_of_variable): Likewise.
2383 * jv-valprint.c (java_value_print): Likewise.
2384 * valops.c (value_ind): Likewise.
2385 * value.c (coerce_ref): Likewise.
2387 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2389 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2390 value and retrieve the dynamic type size.
2392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2394 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2395 passed to sizeof is dynamic evaluate the argument to compute the length.
2397 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2398 Joel Brobecker <brobecker@adacore.com>
2400 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2401 (dwarf2_evaluate_property): New function.
2402 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2403 * dwarf2read.c (attr_to_dynamic_prop): New function.
2404 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2406 * gdbtypes.c: Include dwarf2loc.h.
2407 (is_dynamic_type): New function.
2408 (resolve_dynamic_type): New function.
2409 (resolve_dynamic_bounds): New function.
2410 (get_type_length): New function.
2411 (check_typedef): Use get_type_length to compute type length.
2412 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2413 (TYPE_LOW_BOUND_KIND): New macro.
2414 (is_dynamic_type): New function prototype.
2415 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2416 to resolve dynamic properties of the type. Update comment.
2417 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2419 2014-04-14 Richard Henderson <rth@redhat.com>
2421 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2423 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2424 Doug Evans <xdje42@gmail.com>
2426 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2427 dereference TYPE_CODE_REF values.
2429 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2431 Revert the following changes due to regressions:
2433 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2434 (dwarf2_evaluate_property): New function.
2435 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2436 * dwarf2read.c (attr_to_dynamic_prop): New function.
2437 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2439 * gdbtypes.c: Include dwarf2loc.h.
2440 (is_dynamic_type): New function.
2441 (resolve_dynamic_type): New function.
2442 (resolve_dynamic_bounds): New function.
2443 (get_type_length): New function.
2444 (check_typedef): Use get_type_length to compute type length.
2445 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2446 (TYPE_LOW_BOUND_KIND): New macro.
2447 (is_dynamic_type): New function prototype.
2448 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2449 to resolve dynamic properties of the type. Update comment.
2450 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2452 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2453 passed to sizeof is dynamic evaluate the argument to compute the length.
2455 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2456 value and retrieve the dynamic type size.
2458 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2459 (ada_template_to_fixed_record_type_1): Likewise.
2460 (ada_to_fixed_type_1): Likewise.
2461 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2462 (cp_print_value): Likewise.
2463 * d-valprint.c (dynamic_array_type): Likewise.
2464 * eval.c (evaluate_subexp_with_coercion): Likewise.
2465 * findvar.c (address_of_variable): Likewise.
2466 * jv-valprint.c (java_value_print): Likewise.
2467 * valops.c (value_ind): Likewise.
2468 * value.c (coerce_ref): Likewise.
2470 * c-typeprint.c (c_type_print_varspec_suffix): Added
2471 check for not yet resolved high bound. If unresolved, print
2472 "variable length" string to the console instead of random
2475 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2476 property and store it as the high bound and flag the range accordingly.
2477 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2478 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2479 * gdbtypes.h (enum range_flags): New enum.
2480 (struct range_bounds): Add flags member.
2482 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2483 points to a constant blob.
2485 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2486 (evaluate_subexp_standard): Pass noside argument.
2487 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2488 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2489 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2490 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2491 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2493 2014-04-11 Keith Seitz <keiths@redhat.com>
2496 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2497 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2500 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2502 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2503 (evaluate_subexp_standard): Pass noside argument.
2504 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2505 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2506 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2507 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2508 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2510 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2512 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2513 points to a constant blob.
2515 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2517 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2518 property and store it as the high bound and flag the range accordingly.
2519 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2520 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2521 * gdbtypes.h (enum range_flags): New enum.
2522 (struct range_bounds): Add flags member.
2524 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2526 * c-typeprint.c (c_type_print_varspec_suffix): Added
2527 check for not yet resolved high bound. If unresolved, print
2528 "variable length" string to the console instead of random
2531 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2533 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2534 (ada_template_to_fixed_record_type_1): Likewise.
2535 (ada_to_fixed_type_1): Likewise.
2536 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2537 (cp_print_value): Likewise.
2538 * d-valprint.c (dynamic_array_type): Likewise.
2539 * eval.c (evaluate_subexp_with_coercion): Likewise.
2540 * findvar.c (address_of_variable): Likewise.
2541 * jv-valprint.c (java_value_print): Likewise.
2542 * valops.c (value_ind): Likewise.
2543 * value.c (coerce_ref): Likewise.
2545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2547 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2548 value and retrieve the dynamic type size.
2550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2552 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2553 passed to sizeof is dynamic evaluate the argument to compute the length.
2555 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2557 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2558 (dwarf2_evaluate_property): New function.
2559 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2560 * dwarf2read.c (attr_to_dynamic_prop): New function.
2561 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2563 * gdbtypes.c: Include dwarf2loc.h.
2564 (is_dynamic_type): New function.
2565 (resolve_dynamic_type): New function.
2566 (resolve_dynamic_bounds): New function.
2567 (get_type_length): New function.
2568 (check_typedef): Use get_type_length to compute type length.
2569 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2570 (TYPE_LOW_BOUND_KIND): New macro.
2571 (is_dynamic_type): New function prototype.
2572 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2573 to resolve dynamic properties of the type. Update comment.
2574 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2576 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2578 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2579 declaring high/low bounds and change uses accordingly. Call
2580 create_range_type instead of create_static_range_type.
2581 * gdbtypes.c (create_range_type): New function.
2582 (create_range_type): Convert bounds into struct bound_prop and pass
2583 them to create_range_type.
2584 * gdbtypes.h (struct bound_prop): New struct.
2585 (create_range_type): New function prototype.
2586 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2587 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2588 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2590 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2594 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2595 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2596 * ada-lang.c: All uses of create_range_type updated.
2597 * coffread.c: All uses of create_range_type updated.
2598 * dwarf2read.c: All uses of create_range_type updated.
2599 * f-exp.y: All uses of create_range_type updated.
2600 * m2-valprint.c: All uses of create_range_type updated.
2601 * mdebugread.c: All uses of create_range_type updated.
2602 * stabsread.c: All uses of create_range_type updated.
2603 * valops.c: All uses of create_range_type updated.
2604 * valprint.c: All uses of create_range_type updated.
2606 2014-04-10 Pedro Alves <palves@redhat.com>
2608 * breakpoint.c (single_step_breakpoints)
2609 (single_step_gdbarch): Move up in the file.
2610 (one_breakpoint_xfer_memory): New function, factored out from ...
2611 (breakpoint_xfer_memory): ... here. Also process single-step
2614 2014-04-09 Tristan Gingold <gingold@adacore.com>
2616 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2618 (darwin_decode_exception_message): Free port only after use.
2620 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2622 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2623 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2624 when setting the size of call_length.
2626 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2628 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2629 dereference TYPE_CODE_REF values.
2631 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2633 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2634 end of warning message.
2636 2014-04-03 Doug Evans <dje@google.com>
2638 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2639 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2641 2014-04-02 Alan Modra <amodra@gmail.com>
2643 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2644 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2645 (struct symbol_file_add_from_memory_args): Add size field.
2646 (find_vdso_size): New function.
2647 (add_vsyscall_page): Attempt to find vdso size.
2649 2014-04-01 Doug Evans <dje@google.com>
2651 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2653 2014-04-01 Tristan Gingold <gingold@adacore.com>
2655 * darwin-nat.c (darwin_encode_reply): Add prototype.
2656 (darwin_decode_exception_message): Reply to unknown inferiors.
2657 (darwin_decode_message): Handle message by id. Ignore message
2658 to unknown inferior.
2659 (darwin_wait): Discard unknown messages, add debug trace.
2661 2014-03-31 Doug Evans <dje@google.com>
2663 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2666 2014-03-31 Doug Evans <dje@google.com>
2668 New option "set print symbol-loading".
2670 * solib.c (solib_read_symbols): Only print symbol loading messages
2672 (solib_add): If symbol loading is in "brief" mode, notify user
2673 symbols are being loaded.
2674 (reload_shared_libraries_1): Ditto.
2675 * symfile.c (print_symbol_loading_off): New static global.
2676 (print_symbol_loading_brief): New static global.
2677 (print_symbol_loading_full): New static global.
2678 (print_symbol_loading_enums): New static global.
2679 (print_symbol_loading): New static global.
2680 (print_symbol_loading_p): New function.
2681 (symbol_file_add_with_addrs): Only print symbol loading messages
2683 (_initialize_symfile): Register "print symbol-loading" set/show
2685 * symfile.h (print_symbol_loading_p): Declare.
2687 2014-03-30 Doug Evans <xdje42@gmail.com>
2689 * infrun.c (set_last_target_status): New function.
2690 (handle_inferior_event): Call it.
2692 2014-03-30 Doug Evans <xdje42@gmail.com>
2694 * inferior.h (enum stop_kind): Improve comment.
2696 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2698 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2699 a reference, strip the reference layer before calling
2700 the lang_ops value_has_mutated callback.
2702 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2704 Remove some globals from our parser.
2705 * language.c (unk_lang_parser): Add "struct parser_state"
2707 * language.h (struct language_defn) <la_parser>: Likewise.
2708 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2709 (initialize_expout): Add "struct parser_state" argument.
2710 Rewrite function to use the parser state.
2711 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2712 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2713 write_exp_elt_longcst, write_exp_elt_dblcst,
2714 write_exp_elt_decfloatcst, write_exp_elt_type,
2715 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2716 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2717 write_dollar_variable): Likewise.
2718 (parse_exp_in_context_1): Use parser state.
2719 (insert_type_address_space): Add "struct parser_state" argument.
2721 (increase_expout_size): New function.
2722 * parser-defs.h: Forward declare "struct language_defn" and
2723 "struct parser_state".
2724 (expout, expout_size, expout_ptr): Remove extern declarations.
2725 (parse_gdbarch, parse_language): Rewrite macro declarations to
2726 accept the parser state.
2727 (struct parser_state): New struct.
2728 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2729 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2730 write_exp_elt_decfloatcst, write_exp_elt_type,
2731 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2732 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2733 write_exp_msymbol, write_dollar_variable,
2734 mark_struct_expression, insert_type_address_space): Add "struct
2735 parser_state" argument.
2736 (increase_expout_size): New function.
2737 * utils.c (do_clear_parser_state): New function.
2738 (make_cleanup_clear_parser_state): Likewise.
2739 * utils.h (make_cleanup_clear_parser_state): New function
2741 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2742 Update calls to write_exp* in order to pass the parser state.
2743 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2744 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2745 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2746 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2747 * stap-probe.c (stap_parse_register_operand): Likewise.
2748 (stap_parse_single_operand): Likewise.
2749 (stap_parse_argument_1): Likewise.
2750 (stap_parse_argument): Use parser state.
2751 * stap-probe.h: Include "parser-defs.h".
2752 (struct stap_parse_info) <pstate>: New field.
2753 * c-exp.y (parse_type): Rewrite to use parser state.
2754 (yyparse): Redefine to c_parse_internal.
2755 (pstate): New global variable.
2756 (parse_number): Add "struct parser_state" argument.
2757 (write_destructor_name): Likewise.
2758 (type_exp): Update calls to write_exp* and similars in order to
2760 (exp1, exp, variable, qualified_name, space_identifier,
2761 typename, typebase): Likewise.
2762 (write_destructor_name, parse_number, lex_one_token,
2763 classify_name, classify_inner_name, c_parse): Add "struct
2764 parser_state" argument. Update function to use parser state.
2765 * c-lang.h: Forward declare "struct parser_state".
2766 (c_parse): Add "struct parser_state" argument.
2767 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2768 (yyparse): Redefine macro to ada_parse_internal.
2769 (pstate): New variable.
2770 (write_int, write_object_renaming, write_var_or_type,
2771 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2772 type_int, type_long, type_long_long, type_float, type_double,
2773 type_long_double, type_char, type_boolean, type_system_address):
2774 Add "struct parser_state" argument.
2775 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2776 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2777 var_or_type, aggregate, aggregate_component_list,
2778 positional_list, others, component_group,
2779 component_associations): Update calls to write_exp* and similar
2780 functions in order to use parser state.
2781 (ada_parse, write_var_from_sym, write_int,
2782 write_exp_op_with_string, write_object_renaming,
2783 find_primitive_type, write_selectors, write_ambiguous_var,
2784 write_var_or_type, write_name_assoc, type_int, type_long,
2785 type_long_long, type_float, type_double, type_long_double,
2786 type_char, type_boolean, type_system_address): Add "struct
2787 parser_state" argument. Adjust function to use parser state.
2788 * ada-lang.c (parse): Likewise.
2789 * ada-lang.h: Forward declare "struct parser_state".
2790 (ada_parse): Add "struct parser_state" argument.
2791 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2792 calls to both functions.
2793 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2795 (yyparse): Redefine macro to f_parse_internal.
2796 (pstate): New variable.
2797 (parse_number): Add "struct parser_state" argument.
2798 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2799 and similars in order to use parser state.
2800 (parse_number): Adjust code to use parser state.
2802 (f_parse): New function.
2803 * f-lang.h: Forward declare "struct parser_state".
2804 (f_parse): Add "struct parser_state" argument.
2805 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2807 (yyparse): Redefine macro for java_parse_internal.
2808 (pstate): New variable.
2809 (push_expression_name, push_expression_name, insert_exp): Add
2810 "struct parser_state" argument.
2811 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2812 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2813 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2814 PostIncrementExpression, PostDecrementExpression,
2815 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2816 UnaryExpressionNotPlusMinus, CastExpression,
2817 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2818 RelationalExpression, EqualityExpression, AndExpression,
2819 ExclusiveOrExpression, InclusiveOrExpression,
2820 ConditionalAndExpression, ConditionalOrExpression,
2821 ConditionalExpression, Assignment, LeftHandSide): Update
2822 calls to write_exp* and similars in order to use parser state.
2823 (parse_number): Ajust code to use parser state.
2825 (java_parse): New function.
2826 (push_variable): Add "struct parser_state" argument. Adjust
2827 code to user parser state.
2828 (push_fieldnames, push_qualified_expression_name,
2829 push_expression_name, insert_exp): Likewise.
2830 * jv-lang.h: Forward declare "struct parser_state".
2831 (java_parse): Add "struct parser_state" argument.
2832 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2834 (yyparse): Redefine macro to m2_parse_internal.
2835 (pstate): New variable.
2836 (type_exp, exp, fblock, variable, type): Update calls to
2837 write_exp* and similars to use parser state.
2839 (m2_parse): New function.
2840 * m2-lang.h: Forward declare "struct parser_state".
2841 (m2_parse): Add "struct parser_state" argument.
2842 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2843 * objc-lang.h: Forward declare "struct parser_state".
2844 (end_msglist): Add "struct parser_state" argument.
2845 * p-exp.y (parse_type): Rewrite macro to use parser state.
2846 (yyparse): Redefine macro to pascal_parse_internal.
2847 (pstate): New variable.
2848 (parse_number): Add "struct parser_state" argument.
2849 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2850 write_exp* and similars in order to use parser state.
2851 (parse_number, yylex): Adjust code to use parser state.
2852 (pascal_parse): New function.
2853 * p-lang.h: Forward declare "struct parser_state".
2854 (pascal_parse): Add "struct parser_state" argument.
2855 * go-exp.y (parse_type): Rewrite macro to use parser state.
2856 (yyparse): Redefine macro to go_parse_internal.
2857 (pstate): New variable.
2858 (parse_number): Add "struct parser_state" argument.
2859 (type_exp, exp1, exp, variable, type): Update calls to
2860 write_exp* and similars in order to use parser state.
2861 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2862 to use parser state.
2863 (go_parse): Likewise.
2864 * go-lang.h: Forward declare "struct parser_state".
2865 (go_parse): Add "struct parser_state" argument.
2867 2014-03-27 Doug Evans <dje@google.com>
2869 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2871 2014-03-27 Doug Evans <dje@google.com>
2873 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2874 Remove argument abbrev_section. All callers updated.
2876 2014-03-27 Doug Evans <dje@google.com>
2878 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2879 addr_base, ranges_base.
2881 2014-03-26 Keith Seitz <keiths@redhat.com>
2883 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2884 types, not VAR_DOMAIN.
2886 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2888 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2890 * features/nios2-linux.c: Regenerated.
2891 * features/nios2.c: Regenerated.
2893 2014-03-25 Pedro Alves <palves@redhat.com>
2895 * cli/cli-script.c (script_from_file): Force the interpreter to
2898 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2900 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2901 small stack allocation.
2903 2014-03-24 Tristan Gingold <gingold@adacore.com>
2905 * darwin-nat.c (exc_server): Remove unused prototype.
2906 (darwin_dump_message): Correctly display data on x86_64.
2907 (darwin_encode_reply): Fix style.
2908 Add comments and fix indentation.
2910 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2912 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2914 2014-03-22 Doug Evans <xdje42@gmail.com>
2916 * infcmd.c: Whitespace fixes.
2917 (interrupt_command): Merge two function comments into one.
2919 2014-03-22 Doug Evans <xdje42@gmail.com>
2921 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2924 2014-03-22 Yao Qi <yao@codesourcery.com>
2926 * remote.c (target_read_live_memory): Remove.
2927 (memory_xfer_live_readonly_partial): Rename it to
2928 remote_xfer_live_readonly_partial. Remove argument 'object'.
2929 All callers updated. Call remote_read_bytes_1
2930 instead of target_read_live_memory.
2931 * tracepoint.c (set_traceframe_number): Remove.
2932 (make_cleanup_restore_traceframe_number): Likewise .
2933 * tracepoint.h (set_traceframe_number): Remove declaration.
2934 (make_cleanup_restore_traceframe_number): Likewise.
2936 2014-03-22 Yao Qi <yao@codesourcery.com>
2938 * remote.c (remote_read_bytes): Move code on reading from the
2940 (remote_read_bytes_1): ... here. New function.
2942 2014-03-22 Yao Qi <yao@codesourcery.com>
2944 * ctf.c (ctf_xfer_partial): Check the return value of
2945 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2946 return TARGET_XFER_UNAVAILABLE.
2947 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2948 * target.c (target_read_live_memory): Move it to remote.c.
2949 (memory_xfer_live_readonly_partial): Likewise.
2950 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2951 * remote.c (target_read_live_memory): Moved from target.c.
2952 (memory_xfer_live_readonly_partial): Likewise.
2953 (remote_read_bytes): Factored out from
2954 memory_xfer_partial_1.
2956 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2958 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2961 2014-03-21 Pedro Alves <palves@redhat.com>
2963 * infrun.c (normal_stop): Extend comment.
2965 2014-03-21 Hui Zhu <hui@codesourcery.com>
2966 Pedro Alves <palves@redhat.com>
2968 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2970 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2971 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2972 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2974 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2976 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2977 `z' formatted output modifier.
2979 2014-03-20 Tom Tromey <tromey@redhat.com>
2980 Sergio Durigan Junior <sergiodj@redhat.com>
2982 * probe.c (parse_probes): Turn assert into an ordinary error.
2983 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2984 exceptions when parsing probes. Rearrange the code for clarity.
2986 2014-03-20 Tom Tromey <tromey@redhat.com>
2989 * top.c (execute_command): Only dispatch events if the command
2992 2014-03-20 Tom Tromey <tromey@redhat.com>
2995 * infcall.c: Include event-top.h.
2996 (run_inferior_call): Call async_disable_stdin if needed.
2998 2014-03-20 Pedro Alves <palves@redhat.com>
3000 * infrun.c (prepare_to_proceed): Delete.
3001 (thread_still_needs_step_over): New function.
3002 (find_thread_needs_step_over): New function.
3003 (proceed): If the current thread needs a step-over, set its
3004 steping_over_breakpoint flag. Adjust to use
3005 find_thread_needs_step_over instead of prepare_to_proceed.
3006 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3007 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3009 (switch_back_to_stepped_thread): Step over breakpoints of all
3010 threads not the stepping thread, before switching back to the
3013 2014-03-20 Pedro Alves <palves@redhat.com>
3015 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3017 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3018 * infrun.c (saved_singlestep_ptid)
3019 (stepping_past_singlestep_breakpoint): Delete.
3020 (resume): Remove stepping_past_singlestep_breakpoint handling.
3021 (proceed): Store the prev_pc of the stepping thread too.
3022 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3024 (enum infwait_states): Delete infwait_thread_hop_state.
3025 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3027 (handle_inferior_event): Adjust.
3028 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3029 handling and the thread-hop code. Before removing single-step
3030 breakpoints, check whether the thread hit a single-step breakpoint
3031 of another thread. If it did, the trap is not a random signal.
3032 (switch_back_to_stepped_thread): If the event thread hit a
3033 single-step breakpoint, unblock it before switching to the
3034 stepping thread. Handle the case of the stepped thread having
3036 (keep_going): Handle the case of the current thread moving past a
3037 single-step breakpoint.
3039 2014-03-20 Pedro Alves <palves@redhat.com>
3042 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3043 are being stepped over.
3044 (breakpoint_address_match): Make extern.
3045 * breakpoint.h (breakpoint_address_match): New declaration.
3046 * inferior.h (stepping_past_instruction_at): New declaration.
3047 * infrun.c (struct step_over_info): New type.
3048 (step_over_info): New global.
3049 (set_step_over_info, clear_step_over_info)
3050 (stepping_past_instruction_at): New functions.
3051 (handle_inferior_event): Clear the step-over info when
3052 trap_expected is cleared.
3053 (resume): Remove now stale comment.
3054 (clear_proceed_status): Clear step-over info.
3055 (proceed): Adjust step-over handling to set or clear the step-over
3056 info instead of removing all breakpoints.
3057 (handle_signal_stop): When setting up a thread-hop, don't remove
3059 (stop_stepping): Clear step-over info.
3060 (keep_going): Adjust step-over handling to set or clear step-over
3061 info and then always inserting breakpoints, instead of removing
3062 all breakpoints when stepping over one.
3064 2014-03-20 Pedro Alves <palves@redhat.com>
3066 * infrun.c (previous_inferior_ptid): Adjust comment.
3067 (deferred_step_ptid): Delete.
3068 (infrun_thread_ptid_changed, prepare_to_proceed)
3069 (init_wait_for_inferior): Adjust.
3070 (handle_signal_stop): Delete deferred_step_ptid handling.
3072 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3075 * defs.h (sync_quit_force_run): New declaration.
3076 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3077 * event-top.c (async_sigterm_handler): New declaration.
3078 (async_sigterm_token): New variable.
3079 (async_init_signals): Create also async_sigterm_token.
3080 (async_sigterm_handler): New function.
3081 (sync_quit_force_run): New variable.
3082 (handle_sigterm): Replace quit_force call by other calls.
3083 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3085 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3087 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3088 offset into SPE pseudo registers.
3090 2014-03-18 Pedro Alves <palves@redhat.com>
3093 * inferior.h (print_stop_event): Declare.
3094 * infrun.c (print_stop_event): New, factored out from ...
3095 (normal_stop): ... this.
3096 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3097 of bpstat_print/print_stack_frame.
3099 2014-03-17 Tom Tromey <tromey@redhat.com>
3101 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3103 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3105 * ada-lang.c (decode_constrained_packed_array): Perform a
3106 minimal coercion for reference with coerce_ref instead of
3109 2014-03-17 Tristan Gingold <gingold@adacore.com>
3111 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3112 (darwin_solib_create_inferior_hook): Emit a warning if version
3115 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3117 * python/py-value.c (get_field_flag): Cast flag_name argument to
3118 PyObject_GetAttrString to support Python 2.4.
3120 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3122 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3123 (Global Maintainers): Remove Jan Kratochvil.
3125 2014-03-14 Pedro Alves <palves@redhat.com>
3127 * inferior.h (terminal_ours_for_output): Rename to ...
3128 (child_terminal_ours_for_output): ... this.
3129 (terminal_save_ours): Rename to ...
3130 (child_terminal_save_ours): ... this.
3131 (terminal_ours): Rename to ...
3132 (child_terminal_ours): ... this.
3133 (terminal_inferior): Rename to ...
3134 (child_terminal_inferior): ... this.
3135 (terminal_init_inferior): Rename to ...
3136 (child_terminal_init_inferior): ... this.
3137 (terminal_init_inferior_with_pgrp): Rename to ...
3138 (child_terminal_init_inferior_with_pgrp): ... this.
3139 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3140 (child_terminal_init_with_pgrp): ... this.
3141 (terminal_save_ours): Rename to ...
3142 (child_terminal_save_ours): ... this.
3143 (terminal_init_inferior): Rename to ...
3144 (child_terminal_init): ... this. Adjust.
3145 (terminal_inferior): Rename to ...
3146 (child_terminal_inferior): ... this.
3147 (terminal_ours_for_output): Rename to ...
3148 (child_terminal_ours_for_output): ... this. Adjust.
3149 (terminal_ours): Rename to ...
3150 (child_terminal_ours): ... this.
3151 (terminal_ours_1): Rename to ...
3152 (child_terminal_ours_1): ... this. Adjust.
3153 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3154 * windows-nat.c (do_initial_windows_stuff): Adjust.
3155 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3156 (gnu_terminal_init): ... this. Adjust.
3157 (gnu_target): Adjust.
3158 * inf-child.c (inf_child_target): Adjust.
3160 2014-03-13 Doug Evans <xdje42@gmail.com>
3163 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3166 2014-03-13 Doug Evans <xdje42@gmail.com>
3168 * value.c (record_latest_value): Call release_value_or_incref
3169 instead of release_value.
3171 2014-03-13 Pedro Alves <palves@redhat.com>
3173 * procfs.c (procfs_target): Don't override to_shortname,
3174 to_longname or to_doc.
3176 2014-03-13 Pedro Alves <palves@redhat.com>
3178 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3179 Unix in user visible strings.
3181 2014-03-12 Stan Shebs <stan@codesourcery.com>
3183 * gdbtypes.h: Annotate comments for Doxygen, add a page
3184 block comment with some general info.
3186 2014-03-12 Pedro Alves <palves@redhat.com>
3188 * infcmd.c (prepare_execution_command): New function, factored out
3189 from several execution commands.
3190 (run_command_1, continue_command, step_1, jump_command)
3191 (signal_command, until_command, advance_command, finish_command)
3192 (attach_command): Use prepare_execution_command.
3194 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3196 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3199 (struct arm_linux_thread_points): Removed.
3200 (struct arm_linux_process_info): New.
3201 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3202 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3203 (arm_linux_find_breakpoints_by_tid): Removed.
3204 (struct arch_lwp_info): New.
3205 (arm_linux_find_process_pid): New functions.
3206 (arm_linux_add_process): New functions.
3207 (arm_linux_process_info_get): New functions.
3208 (arm_linux_forget_process): New function.
3209 (arm_linux_get_debug_reg_state): New function.
3210 (struct update_registers_data): New.
3211 (update_registers_callback): New function.
3212 (arm_linux_insert_hw_breakpoint1): Updated.
3213 (arm_linux_remove_hw_breakpoint1): Updated.
3214 (arm_linux_insert_hw_breakpoint): Updated.
3215 (arm_linux_remove_hw_breakpoint): Updated.
3216 (arm_linux_insert_watchpoint): Updated.
3217 (arm_linux_remove_watchpoint): Updated.
3218 (arm_linux_new_thread): Updated.
3219 (arm_linux_prepare_to_resume): New function.
3220 (arm_linux_new_fork): New function.
3221 (_initialize_arm_linux_nat): Updated.
3223 2014-03-12 Pedro Alves <palves@redhat.com>
3225 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3227 2014-03-12 Tom Tromey <tromey@redhat.com>
3229 * inf-child.c (return_zero): New function.
3230 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3231 * aix-thread.c (aix_thread_inferior_created): New function.
3232 (aix_thread_attach): Remove.
3233 (init_aix_thread_ops): Don't set to_attach.
3234 (_initialize_aix_thread): Register inferior_created observer.
3235 * corelow.c (init_core_ops): Don't set to_attach or
3237 * exec.c (init_exec_ops): Don't set to_attach or
3239 * infcmd.c (run_command_1): Use find_run_target. Make direct
3241 (attach_command): Use find_attach_target. Make direct target
3243 * record-btrace.c (init_record_btrace_ops): Don't set
3245 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3247 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3248 set to_create_inferior.
3249 * target.c (complete_target_initialization): Add assertion.
3250 (target_create_inferior): Remove.
3251 (find_default_attach, find_default_create_inferior): Remove.
3252 (find_attach_target, find_run_target): New functions.
3253 (find_default_is_async_p, find_default_can_async_p)
3254 (target_supports_non_stop, target_attach): Remove.
3255 (init_dummy_target): Don't set to_create_inferior or
3256 to_supports_non_stop.
3257 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3258 TARGET_DEFAULT_FUNC.
3259 <to_create_inferior>: Add comment.
3260 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3261 TARGET_DEFAULT_RETURN.
3262 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3263 (find_attach_target, find_run_target): Declare.
3264 (target_create_inferior): Remove.
3265 (target_has_execution_1): Update comment.
3266 (target_supports_non_stop): Remove.
3267 * target-delegates.c: Rebuild.
3269 2014-03-12 Pedro Alves <palves@redhat.com>
3271 * inf-child.h: Update comment to not mention Unix.
3273 2014-03-12 Pedro Alves <palves@redhat.com>
3275 * inf-child.c: Update top comment to not mention Unix. Add
3276 generic comment describing how this target is meant to be used.
3277 (inf_child_post_attach, inf_child_post_startup_inferior)
3278 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3281 2014-03-12 Pedro Alves <palves@redhat.com>
3283 * nto-procfs.c: Include inf-child.h.
3284 (procfs_ops): Delete global.
3285 (procfs_can_run): Delete method.
3286 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3287 target pointer instead of referencing procfs_ops.
3288 (procfs_prepare_to_store): Delete.
3289 (init_procfs_ops): Delete function.
3290 (procfs_target): New function, based on init_procfs_ops, but
3291 inherit inf_child_target.
3292 (_initialize_procfs): Use procfs_target.
3294 2014-03-12 Pedro Alves <palves@redhat.com>
3296 * windows-nat.c: Include inf-child.h.
3297 (windows_ops): Delete global.
3298 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3300 (init_windows_ops): Delete function.
3301 (windows_target): New function, based on init_windows_ops, but
3302 inherit inf_child_target.
3303 (_initialize_windows_nat): Use windows_target. Install x86
3304 specific target methods here.
3306 2014-03-10 Doug Evans <xdje42@gmail.com>
3308 * guile/guile.c (call_initialize_gdb_module): New function.
3309 (initialize_guile): Replace call to scm_init_guile with call to
3312 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3314 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3315 in call to TYPE_CODE macro.
3317 2014-03-10 Jerome Guitton <guitton@adacore.com>
3319 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3320 Resolve tagged types to full view.
3322 2014-03-10 Hui Zhu <hui@codesourcery.com>
3324 * target.h (target_insert_breakpoint): Remove "hardware" from its
3327 2014-03-07 Doug Evans <dje@google.com>
3329 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3331 2014-03-07 Doug Evans <dje@google.com>
3333 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3334 Remove unused local comp_dir_attr. Assert exactly one of
3335 stub_comp_unit_die, stub_comp_dir is non-NULL.
3337 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3339 * target.h (complete_target_initialization, add_target):
3342 2014-03-07 Pedro Alves <palves@redhat.com>
3344 * go32-nat.c: Include inf-child.h.
3345 (go32_ops): Delete global.
3346 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3348 (go32_create_inferior): Push the passed in target pointer instead
3349 of referencing go32_ops.
3350 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3351 (go32_target): New function, based on init_go32_ops, but inherit
3353 (_initialize_go32_nat): Use go32_target. Move parts of
3356 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3358 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3359 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3360 SYMBOL_VALUE_ADDRESS.
3361 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3363 2014-03-06 Yao Qi <yao@codesourcery.com>
3365 * breakpoint.c (get_tracepoint_by_number): Remove argument
3366 optional_p. All callers updated. Adjust comments. Update
3368 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3370 2014-03-06 Yao Qi <yao@codesourcery.com>
3372 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3373 early if get_number returns zero. Use 'p' instead of 'args'.
3375 2014-03-06 Yao Qi <yao@codesourcery.com>
3377 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3380 2014-03-06 Yao Qi <yao@codesourcery.com>
3382 PR breakpoints/16508
3383 * tracepoint.c (check_trace_running): New function.
3384 (trace_find_command): Move code to check_trace_running and
3385 call check_trace_running.
3386 (trace_find_pc_command): Likewise.
3387 (trace_find_tracepoint_command): Likewise.
3388 (trace_find_line_command): Likewise.
3389 (trace_find_range_command): Likewise.
3390 * tracepoint.h (check_trace_running): Likewise.
3391 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3393 2014-03-06 Yao Qi <yao@codesourcery.com>
3395 * target.h (struct target_ops) <to_traceframe_info>: Use
3396 TARGET_DEFAULT_NORETURN (tcomplain ()).
3397 * target-delegates.c: Regenerated.
3399 2014-03-05 Pedro Alves <palves@redhat.com>
3402 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3403 void. Update comment.
3404 (dcache_xfer_memory): Delete.
3405 (dcache_read_memory_partial): New, based on the read bits of
3407 (dcache_update): Add status parameter. Use ULONGEST for len, and
3408 adjust. Discard cache lines if the reason for the update was
3410 * dcache.h (dcache_xfer_memory): Delete declaration.
3411 (dcache_read_memory_partial): New declaration.
3412 (dcache_update): Update prototype.
3413 * target.c (raw_memory_xfer_partial): Update the dcache here.
3414 (memory_xfer_partial_1): Don't handle dcache writes here.
3416 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3418 * remote-sim.c (gdbsim_load): Add const to prog.
3420 2014-03-03 Tom Tromey <tromey@redhat.com>
3422 * elfread.c (probe_key): Change to bfd_data.
3423 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3424 now per-BFD, not per-objfile.
3425 * stap-probe.c (stap_probe_destroy): Update comment.
3426 (handle_stap_probe): Allocate on the per-BFD obstack.
3428 2014-03-03 Tom Tromey <tromey@redhat.com>
3430 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3431 * breakpoint.c (create_longjmp_master_breakpoint): Use
3433 (add_location_to_breakpoint, bkpt_probe_insert_location)
3434 (bkpt_probe_remove_location): Update.
3435 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3436 * elfread.c (elf_symfile_relocate_probe): Remove.
3437 (elf_probe_fns): Update.
3438 (insert_exception_resume_breakpoint): Change type of "probe"
3439 parameter to bound_probe.
3440 (check_exception_resume): Update.
3441 * objfiles.c (objfile_relocate1): Don't relocate probes.
3442 * probe.c (bound_probe_s): New typedef.
3443 (parse_probes): Use get_probe_address. Set sal's objfile.
3444 (find_probe_by_pc): Return a bound_probe.
3445 (collect_probes): Return a VEC(bound_probe_s).
3446 (compare_probes): Update.
3447 (gen_ui_out_table_header_info): Change type of "probes"
3449 (info_probes_for_ops): Update.
3450 (get_probe_address): New function.
3451 (probe_safe_evaluate_at_pc): Update.
3452 * probe.h (struct probe_ops) <get_probe_address>: New field.
3453 <set_semaphore, clear_semaphore>: Add objfile parameter.
3454 (struct probe) <objfile>: Remove field.
3456 <address>: Update comment.
3457 (struct bound_probe): New.
3458 (find_probe_by_pc): Return a bound_probe.
3459 (get_probe_address): Declare.
3460 * solib-svr4.c (struct probe_and_action) <address>: New field.
3461 (hash_probe_and_action, equal_probe_and_action): Update.
3462 (register_solib_event_probe): Add address parameter.
3463 (solib_event_probe_at): Update.
3464 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3466 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3467 (stap_get_probe_address): New function.
3468 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3469 (compile_probe_arg): Update.
3470 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3472 (handle_stap_probe): Don't relocate the probe.
3473 (stap_relocate): Remove.
3474 (stap_gen_info_probes_table_values): Update.
3475 (stap_probe_ops): Remove stap_relocate.
3476 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3477 (debug_sym_probe_fns): Update.
3478 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3479 * symtab.c (init_sal): Use memset.
3480 * symtab.h (struct symtab_and_line) <objfile>: New field.
3481 * tracepoint.c (start_tracing, stop_tracing): Update.
3483 2014-03-03 Tom Tromey <tromey@redhat.com>
3485 * probe.h (parse_probes, find_probe_by_pc)
3486 (find_probes_in_objfile): Fix comments.
3488 2014-03-02 Doug Evans <xdje42@gmail.com>
3490 * infrun.c (handle_signal_stop): Replace test for
3491 TARGET_WAITKIND_STOPPED with an assert.
3493 2014-03-02 Doug Evans <xdje42@gmail.com>
3495 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3497 2014-03-02 Doug Evans <xdje42@gmail.com>
3499 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3501 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3503 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3505 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3507 * i386obsd-nat.c: Include "obsd-nat.h".
3508 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3510 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3514 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3516 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3518 * mips64obsd-nat.c: Include "obsd-nath".
3519 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3521 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3523 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3525 * amd64obsd-nat.c: Include "obsd-nat,h.
3526 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3528 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3530 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3532 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3533 (find_overload_match): Update call to find_oload_champ.
3534 (find_oload_champ_namespace_loop): Likewise
3536 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3538 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3540 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3541 * config/sparc/obsd64.mh: New file.
3542 * sparc64obsd-nat.c: New file.
3544 * obsd-nat.h: New file.
3545 * obsd-nat.c: New file.
3546 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3547 (ALLDEPFILES): Add obsd-nat.c.
3549 2014-02-28 Tom Tromey <tromey@redhat.com>
3551 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3552 * cli-out.h (cli_ui_out_impl): Now const.
3553 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3554 * ui-out.c (struct ui_out) <impl>: Now const.
3555 (default_ui_out_impl): Now const.
3556 (ui_out_new): Make 'impl' parameter const.
3557 * ui-out.h (ui_out_new): Update.
3559 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3561 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3563 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3565 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3567 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 Additional PR 8882 fix.
3570 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3572 2014-02-27 Pedro Alves <palves@redhat.com>
3574 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3577 2014-02-27 Pedro Alves <palves@redhat.com>
3580 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3581 * nat/linux-waitpid.c: Include string.h.
3582 (status_to_str): Moved here and made extern.
3583 * nat/linux-waitpid.h (status_to_str): New declaration.
3585 2014-02-27 Hui Zhu <hui@codesourcery.com>
3588 * infrun.c (ptid_match): Move ...
3589 * common/ptid.c (ptid_match): ... here.
3590 * inferior.h (ptid_match): Move ...
3591 * common/ptid.h (ptid_match): ... here.
3593 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3595 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3596 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3599 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3601 * obsd-tdep.c (obsd_auxv_parse): New function.
3602 (obsd_init_abi): Set auxv_parse.
3604 * gdbarch.sh (auxv_parse): New.
3605 * gdbarch.h: Regenerated.
3606 * gdbarch.c: Regenerated.
3607 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3609 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3611 * guile/scm-value.c (gdbscm_history_append_x): New function.
3612 (value_functions): Add it.
3614 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3616 * dwarf2read.c (attr_value_as_address): New function.
3617 (dwarf2_find_base_address, read_call_site_scope): Use
3618 attr_value_as_address in place of DW_ADDR.
3619 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3620 the low and high addresses. Slight rework of the handling
3621 of the high pc being a constant form, and limit it to
3622 DWARF verson 4 or higher.
3623 (dwarf2_record_block_ranges): Likewise.
3624 (read_partial_die): Likewise.
3625 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3627 2014-02-26 Tom Tromey <tromey@redhat.com>
3629 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3631 2014-02-26 Tom Tromey <tromey@redhat.com>
3633 * elfread.c (elf_read_minimal_symbols): Return early if
3634 minimal symbols have already been read. Add "ei" parameter.
3635 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3636 * minsyms.c (prim_record_minimal_symbol_full): Update.
3637 * objfiles.h (struct objstats) <n_minsyms>: Move...
3638 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3639 * symmisc.c (print_objfile_statistics): Update.
3641 2014-02-26 Tom Tromey <tromey@redhat.com>
3643 * elfread.c (elf_read_minimal_symbols): New function, from
3645 (elf_symfile_read): Call it.
3647 2014-02-26 Tom Tromey <tromey@redhat.com>
3649 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3650 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3651 (lookup_minimal_symbol_solib_trampoline)
3652 (lookup_minimal_symbol_by_pc_section_1)
3653 (lookup_minimal_symbol_and_objfile): Update.
3654 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3655 Don't allocate a minimal symbol if minsyms have already been read.
3656 (build_minimal_symbol_hash_tables): Update.
3657 (install_minimal_symbols): Do nothing if minsyms already read.
3658 Use the per-BFD obstack.
3659 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3660 * objfiles.c (allocate_objfile): Call
3661 terminate_minimal_symbol_table later.
3662 (have_minimal_symbols): Update.
3663 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3664 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3665 Move from struct objfile.
3666 <minsyms_read>: New field.
3667 (struct objfile) <msymbols, minimal_symbol_count,
3668 msymbol_hash, msymbol_demangled_hash>: Move.
3669 (ALL_OBJFILE_MSYMBOLS): Update.
3670 * symfile.c (read_symbols): Set minsyms_read.
3671 (reread_symbols): Update.
3672 * symmisc.c (dump_objfile, dump_msymbols): Update.
3674 2014-02-26 Tom Tromey <tromey@redhat.com>
3676 * minsyms.c (msymbols_sort): Remove.
3677 * minsyms.h (msymbols_sort): Remove.
3678 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3679 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3680 * elfread.c (elf_symtab_read): Don't add section offsets.
3681 * xcoffread.c (record_minimal_symbol): Don't add section offset
3682 to minimal symbol address.
3683 * somread.c (text_offset, data_offset): Remove.
3684 (som_symtab_read): Don't add section offsets to minimal symbol
3686 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3687 Don't add section offsets to minimal symbols.
3688 * coffread.c (coff_symtab_read): Don't add section offsets
3689 to minimal symbol addresses.
3690 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3691 to minimal symbol addresses.
3692 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3693 section offset to minimal symbol addresses.
3694 * mdebugread.c (parse_partial_symbols): Don't add section
3695 offset to minimal symbol addresses.
3696 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3697 offset to minimal symbol addresses.
3699 2014-02-26 Tom Tromey <tromey@redhat.com>
3701 * ada-lang.c (ada_main_name): Update.
3702 (ada_add_standard_exceptions): Update.
3703 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3704 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3705 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3706 * auxv.c (ld_so_xfer_auxv): Update.
3707 * avr-tdep.c (avr_scan_prologue): Update.
3708 * ax-gdb.c (gen_var_ref): Update.
3709 * blockframe.c (get_pc_function_start)
3710 (find_pc_partial_function_gnu_ifunc): Update.
3711 * breakpoint.c (create_overlay_event_breakpoint)
3712 (create_longjmp_master_breakpoint)
3713 (create_std_terminate_master_breakpoint)
3714 (create_exception_master_breakpoint): Update.
3715 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3716 * c-valprint.c (c_val_print): Update.
3717 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3718 * common/agent.c (agent_look_up_symbols): Update.
3719 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3720 * dwarf2loc.c (call_site_to_target_addr): Update.
3721 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3722 * elfread.c (elf_gnu_ifunc_record_cache)
3723 (elf_gnu_ifunc_resolve_by_got): Update.
3724 * findvar.c (default_read_var_value): Update.
3725 * frame.c (inside_main_func): Update.
3726 * frv-tdep.c (frv_frame_this_id): Update.
3727 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3728 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3730 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3731 (hppa_hpux_find_dummy_bpaddr): Update.
3732 * hppa-tdep.c (hppa_symbol_address): Update.
3733 * infcmd.c (until_next_command): Update.
3734 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3736 * linespec.c (minsym_found, add_minsym): Update.
3737 * linux-nat.c (get_signo): Update.
3738 * linux-thread-db.c (inferior_has_bug): Update.
3739 * m32c-tdep.c (m32c_return_value)
3740 (m32c_m16c_address_to_pointer): Update.
3741 * m32r-tdep.c (m32r_frame_this_id): Update.
3742 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3743 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3744 * maint.c (maintenance_translate_address): Update.
3745 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3746 (frob_address): New function.
3747 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3748 frob_address. Rename parameter to "pc_in".
3749 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3751 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3753 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3754 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3755 * objc-lang.c (find_objc_msgsend): Update.
3756 * objfiles.c (objfile_relocate1): Update.
3757 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3758 * p-valprint.c (pascal_val_print): Update.
3759 * parse.c (write_exp_msymbol): Update.
3760 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3761 (ppc_elfv2_skip_entrypoint): Update.
3762 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3763 * printcmd.c (build_address_symbolic, msym_info)
3764 (address_info): Update.
3765 * proc-service.c (ps_pglobal_lookup): Update.
3766 * psymtab.c (find_pc_sect_psymtab_closer)
3767 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3768 Change msymbol parameter to bound_minimal_symbol.
3769 * ravenscar-thread.c (get_running_thread_id): Update.
3770 * remote.c (remote_check_symbols): Update.
3771 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3773 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3774 * solib-dsbt.c (lm_base): Update.
3775 * solib-frv.c (lm_base, main_got): Update.
3776 * solib-irix.c (locate_base): Update.
3777 * solib-som.c (som_solib_create_inferior_hook)
3778 (link_map_start): Update.
3779 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3780 * solib-svr4.c (elf_locate_base, enable_break): Update.
3781 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3782 (flush_ea_cache): Update.
3783 * stabsread.c (define_symbol, scan_file_globals): Update.
3784 * stack.c (find_frame_funname): Update.
3785 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3786 (debug_qf_find_pc_sect_symtab): Update.
3787 * symfile.c (simple_read_overlay_table)
3788 (simple_overlay_update): Update.
3789 * symfile.h (struct quick_symbol_functions)
3790 <find_pc_sect_symtab>: Change type of msymbol to
3791 bound_minimal_symbol.
3792 * symmisc.c (dump_msymbols): Update.
3793 * symtab.c (find_pc_sect_symtab_via_partial)
3794 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3795 (search_symbols, print_msymbol_info): Update.
3796 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3797 (MSYMBOL_VALUE_ADDRESS): Redefine.
3798 (BMSYMBOL_VALUE_ADDRESS): New macro.
3799 * tracepoint.c (scope_info): Update.
3800 * tui/tui-disasm.c (tui_find_disassembly_address)
3801 (tui_get_begin_asm_address): Update.
3802 * valops.c (find_function_in_inferior): Update.
3803 * value.c (value_static_field, value_fn_field): Update.
3805 2014-02-26 Tom Tromey <tromey@redhat.com>
3807 * ada-lang.c (ada_update_initial_language): Update.
3808 (ada_main_name, ada_has_this_exception_support): Update.
3809 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3810 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3811 * arm-tdep.c (arm_skip_stub): Update.
3812 * auxv.c (ld_so_xfer_auxv): Update.
3813 * avr-tdep.c (avr_scan_prologue): Update.
3814 * ax-gdb.c (gen_var_ref): Update.
3815 * breakpoint.c (struct breakpoint_objfile_data)
3816 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3817 type to bound_minimal_symbol.
3818 (create_overlay_event_breakpoint)
3819 (create_longjmp_master_breakpoint)
3820 (create_std_terminate_master_breakpoint)
3821 (create_exception_master_breakpoint): Update.
3822 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3823 * c-exp.y (classify_name): Update.
3824 * coffread.c (coff_symfile_read): Update.
3825 * common/agent.c (agent_look_up_symbols): Update.
3826 * d-lang.c (d_main_name): Update.
3827 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3828 * dec-thread.c (enable_dec_thread): Update.
3829 * dwarf2loc.c (call_site_to_target_addr): Update.
3830 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3831 * eval.c (evaluate_subexp_standard): Update.
3832 * findvar.c (struct minsym_lookup_data) <result>: Change type
3833 to bound_minimal_symbol.
3835 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3836 * frame.c (inside_main_func): Update.
3837 * frv-tdep.c (frv_frame_this_id): Update.
3838 * gcore.c (call_target_sbrk): Update.
3839 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3840 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3842 * go-lang.c (go_main_name): Update.
3843 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3844 (hppa_hpux_find_import_stub_for_addr): Update.
3845 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3846 Update. Change return type.
3847 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3849 * jit.c (jit_breakpoint_re_set_internal): Update.
3850 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3852 * linux-nat.c (get_signo): Update.
3853 * linux-thread-db.c (inferior_has_bug): Update
3854 * m32c-tdep.c (m32c_return_value)
3855 (m32c_m16c_address_to_pointer): Update.
3856 * m32r-tdep.c (m32r_frame_this_id): Update.
3857 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3858 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3859 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3860 lookup_minimal_symbol. Change return type.
3861 (lookup_minimal_symbol): Remove.
3862 (lookup_bound_minimal_symbol): Update.
3863 (lookup_minimal_symbol_text): Change return type.
3864 (lookup_minimal_symbol_solib_trampoline): Change return type.
3865 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3866 (lookup_minimal_symbol_solib_trampoline): Change return type.
3867 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3868 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3869 (value_nsstring, find_imps): Update.
3870 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3871 * p-lang.c (pascal_main_name): Update.
3872 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3873 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3874 * proc-service.c (ps_pglobal_lookup): Update.
3875 * ravenscar-thread.c (get_running_thread_msymbol): Change
3877 (has_ravenscar_runtime, get_running_thread_id): Update.
3878 * remote.c (remote_check_symbols): Update.
3879 * sol-thread.c (ps_pglobal_lookup): Update.
3880 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3881 * solib-dsbt.c (lm_base): Update.
3882 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3884 * solib-irix.c (locate_base): Update.
3885 * solib-som.c (som_solib_create_inferior_hook)
3886 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3888 * solib-spu.c (spu_enable_break): Update.
3889 * solib-svr4.c (elf_locate_base, enable_break): Update.
3890 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3891 (flush_ea_cache): Update.
3892 * stabsread.c (define_symbol): Update.
3893 * symfile.c (simple_read_overlay_table): Update.
3894 * symtab.c (find_pc_sect_line): Update.
3895 * tracepoint.c (scope_info): Update.
3896 * tui-disasm.c (tui_get_begin_asm_address): Update.
3897 * value.c (value_static_field): Update.
3899 2014-02-26 Tom Tromey <tromey@redhat.com>
3901 * minsyms.c (prim_record_minimal_symbol_full): Use
3902 SET_MSYMBOL_VALUE_ADDRESS.
3903 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3904 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3905 SET_MSYMBOL_VALUE_ADDRESS.
3906 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3907 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3909 2014-02-26 Tom Tromey <tromey@redhat.com>
3911 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3912 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3913 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3914 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3915 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3916 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3917 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3918 * ada-lang.c (ada_main_name): Update.
3919 (ada_lookup_simple_minsym): Update.
3920 (ada_make_symbol_completion_list): Update.
3921 (ada_add_standard_exceptions): Update.
3922 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3923 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3924 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3925 * arm-tdep.c (skip_prologue_function): Update.
3926 (arm_skip_stack_protector, arm_skip_stub): Update.
3927 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3928 (arm_wince_skip_main_prologue): Update.
3929 * auxv.c (ld_so_xfer_auxv): Update.
3930 * avr-tdep.c (avr_scan_prologue): Update.
3931 * ax-gdb.c (gen_var_ref): Update.
3932 * block.c (call_site_for_pc): Update.
3933 * blockframe.c (get_pc_function_start): Update.
3934 (find_pc_partial_function_gnu_ifunc): Update.
3935 * breakpoint.c (create_overlay_event_breakpoint): Update.
3936 (create_longjmp_master_breakpoint): Update.
3937 (create_std_terminate_master_breakpoint): Update.
3938 (create_exception_master_breakpoint): Update.
3939 (resolve_sal_pc): Update.
3940 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3941 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3943 * c-valprint.c (c_val_print): Update.
3944 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3945 * coffread.c (coff_symfile_read): Update.
3946 * common/agent.c (agent_look_up_symbols): Update.
3947 * dbxread.c (find_stab_function_addr): Update.
3948 (end_psymtab): Update.
3949 * dwarf2loc.c (call_site_to_target_addr): Update.
3950 (func_verify_no_selftailcall): Update.
3951 (tailcall_dump): Update.
3952 (call_site_find_chain_1): Update.
3953 (dwarf_expr_reg_to_entry_parameter): Update.
3954 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3955 (elf_gnu_ifunc_resolve_by_got): Update.
3956 * f-valprint.c (info_common_command): Update.
3957 * findvar.c (read_var_value): Update.
3958 * frame.c (get_prev_frame_1): Update.
3959 (inside_main_func): Update.
3960 * frv-tdep.c (frv_skip_main_prologue): Update.
3961 (frv_frame_this_id): Update.
3962 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3963 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3964 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3965 (gnuv3_skip_trampoline): Update.
3966 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3967 (hppa64_hpux_in_solib_call_trampoline): Update.
3968 (hppa_hpux_skip_trampoline_code): Update.
3969 (hppa64_hpux_search_dummy_call_sequence): Update.
3970 (hppa_hpux_find_import_stub_for_addr): Update.
3971 (hppa_hpux_find_dummy_bpaddr): Update.
3972 * hppa-tdep.c (hppa_symbol_address)
3973 (hppa_lookup_stub_minimal_symbol): Update.
3974 * i386-tdep.c (i386_skip_main_prologue): Update.
3975 (i386_pe_skip_trampoline_code): Update.
3976 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3977 * infcall.c (get_function_name): Update.
3978 * infcmd.c (until_next_command): Update.
3979 * jit.c (jit_breakpoint_re_set_internal): Update.
3980 (jit_inferior_init): Update.
3981 * linespec.c (minsym_found): Update.
3982 (add_minsym): Update.
3983 * linux-fork.c (info_checkpoints_command): Update.
3984 * linux-nat.c (get_signo): Update.
3985 * linux-thread-db.c (inferior_has_bug): Update.
3986 * m32c-tdep.c (m32c_return_value): Update.
3987 (m32c_m16c_address_to_pointer): Update.
3988 (m32c_m16c_pointer_to_address): Update.
3989 * m32r-tdep.c (m32r_frame_this_id): Update.
3990 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3991 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3992 * maint.c (maintenance_translate_address): Update.
3993 * minsyms.c (add_minsym_to_hash_table): Update.
3994 (add_minsym_to_demangled_hash_table): Update.
3995 (msymbol_objfile): Update.
3996 (lookup_minimal_symbol): Update.
3997 (iterate_over_minimal_symbols): Update.
3998 (lookup_minimal_symbol_text): Update.
3999 (lookup_minimal_symbol_by_pc_name): Update.
4000 (lookup_minimal_symbol_solib_trampoline): Update.
4001 (lookup_minimal_symbol_by_pc_section_1): Update.
4002 (lookup_minimal_symbol_and_objfile): Update.
4003 (prim_record_minimal_symbol_full): Update.
4004 (compare_minimal_symbols): Update.
4005 (compact_minimal_symbols): Update.
4006 (build_minimal_symbol_hash_tables): Update.
4007 (install_minimal_symbols): Update.
4008 (terminate_minimal_symbol_table): Update.
4009 (find_solib_trampoline_target): Update.
4010 (minimal_symbol_upper_bound): Update.
4011 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4012 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4013 (mips_skip_pic_trampoline_code): Update.
4014 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4015 * objc-lang.c (selectors_info): Update.
4016 (classes_info): Update.
4017 (find_methods): Update.
4018 (find_imps): Update.
4019 (find_objc_msgsend): Update.
4020 * objfiles.c (objfile_relocate1): Update.
4021 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4022 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4023 * p-valprint.c (pascal_val_print): Update.
4024 * parse.c (write_exp_msymbol): Update.
4025 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4026 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4027 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4028 * printcmd.c (build_address_symbolic): Update.
4030 (address_info): Update.
4031 * proc-service.c (ps_pglobal_lookup): Update.
4032 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4033 (find_pc_sect_psymtab): Update.
4034 * python/py-framefilter.c (py_print_frame): Update.
4035 * ravenscar-thread.c (get_running_thread_id): Update.
4036 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4038 * remote.c (remote_check_symbols): Update.
4039 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4040 (rs6000_skip_trampoline_code): Update.
4041 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4042 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4043 * solib-dsbt.c (lm_base): Update.
4044 * solib-frv.c (lm_base): Update.
4046 * solib-irix.c (locate_base): Update.
4047 * solib-som.c (som_solib_create_inferior_hook): Update.
4048 (som_solib_desire_dynamic_linker_symbols): Update.
4049 (link_map_start): Update.
4050 * solib-spu.c (spu_enable_break): Update.
4051 (ocl_enable_break): Update.
4052 * solib-svr4.c (elf_locate_base): Update.
4053 (enable_break): Update.
4054 * spu-tdep.c (spu_get_overlay_table): Update.
4055 (spu_catch_start): Update.
4056 (flush_ea_cache): Update.
4057 * stabsread.c (define_symbol): Update.
4058 (scan_file_globals): Update.
4059 * stack.c (find_frame_funname): Update.
4060 (frame_info): Update.
4061 * symfile.c (simple_read_overlay_table): Update.
4062 (simple_overlay_update): Update.
4063 * symmisc.c (dump_msymbols): Update.
4064 * symtab.c (fixup_section): Update.
4065 (find_pc_sect_line): Update.
4066 (skip_prologue_sal): Update.
4067 (search_symbols): Update.
4068 (print_msymbol_info): Update.
4069 (rbreak_command): Update.
4070 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4071 (completion_list_objc_symbol): Update.
4072 (default_make_symbol_completion_list_break_on): Update.
4073 * tracepoint.c (scope_info): Update.
4074 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4075 (tui_get_begin_asm_address): Update.
4076 * valops.c (find_function_in_inferior): Update.
4077 * value.c (value_static_field): Update.
4078 (value_fn_field): Update.
4080 2014-02-26 Tom Tromey <tromey@redhat.com>
4082 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4083 bound minimal symbols. Move code that knows about minsym
4085 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4087 * minsyms.h (minimal_symbol_upper_bound): Declare.
4088 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4089 minimal_symbol_upper_bound.
4091 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4093 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4094 Use the type's name if its basic type does not have a tag.
4096 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4098 * dwarf2read.c (read_subrange_type): Add comment.
4100 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4102 * dwarf2read.c (update_enumeration_type_from_children): New
4103 function, mostly extracted from process_structure_scope.
4104 (read_enumeration_type): Call update_enumeration_type_from_children.
4105 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4106 and flag_flag_enum fields.
4108 2014-02-26 Pedro Alves <palves@redhat.com>
4110 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4111 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4112 to_xfer_partial method.
4114 2014-02-26 Pedro Alves <palves@redhat.com>
4116 * target.c (complete_target_initialization): Don't install
4117 default_xfer_partial as to_xfer_partial hook.
4119 (update_current_target): Don't INHERIT nor de_fault
4120 deprecated_xfer_memory. Delete de_fault macro.
4121 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4122 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4123 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4126 2014-02-26 Pedro Alves <palves@redhat.com>
4128 * go32-nat.c (my_write_child): New function.
4129 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4130 (go32_xfer_partial): New function.
4131 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4132 Instead install a to_xfer_partial hook.
4134 2014-02-26 Pedro Alves <palves@redhat.com>
4136 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4137 to_xfer_partial helper. Rewrite.
4138 (procfs_xfer_partial): New function.
4139 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4140 Install a to_xfer_partial hook.
4142 2014-02-26 Pedro Alves <palves@redhat.com>
4144 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4145 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4146 (m32r_xfer_partial): New function.
4147 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4148 Install a to_xfer_partial hook.
4150 2014-02-26 Pedro Alves <palves@redhat.com>
4152 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4154 (mips_xfer_partial): New function.
4155 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4156 hook. Install a to_xfer_partial hook.
4158 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4160 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4161 * gdbtypes.c (create_array_type_with_stride): New function,
4162 renaming create_array_type, but with an added parameter
4163 called "bit_stride".
4164 (create_array_type): Re-implement using
4165 create_array_type_with_stride.
4166 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4167 and DW_AT_bit_stride attributes.
4169 2014-02-26 Pedro Alves <palves@redhat.com>
4171 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4172 task-specific breakpoints.
4174 2014-02-25 Pedro Alves <palves@redhat.com>
4176 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4177 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4179 2014-02-25 Stan Shebs <stan@codesourcery.com>
4181 * defs.h: Annotate comments for Doxygen.
4183 2014-02-25 Tom Tromey <tromey@redhat.com>
4185 * target.h (target_ignore): Don't declare.
4186 * target.c (target_ignore): Remove.
4188 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4191 * auto-load.c (auto_load_objfile_script_1): Change filename to
4194 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4196 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4197 documentation. Adjust prototype to match the target_ops
4198 to_xfer_partial method. Adjust implementation accordingly.
4200 2014-02-25 Hui Zhu <hui@codesourcery.com>
4202 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4205 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4207 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4208 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4209 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4210 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4211 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4212 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4213 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4214 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4216 (rl78_register_type): Use a data pointer type for SP and
4217 new pseudo registers mentioned above. Use a 16 bit integer
4218 type for all other register pairs.
4219 (rl78_register_name, rl78_g10_register_name): Update for
4220 new pseudo registers.
4221 (rl78_pseudo_register_read): Likewise.
4222 (rl78_pseudo_register_write): Likewise.
4223 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4224 to the newly added pseudo registers.
4226 2014-02-24 Doug Evans <dje@google.com>
4228 * value.c (record_latest_value): Fix comment.
4229 * printcmd.c (print_command_1): Remove code to handle -1 return from
4230 record_latest_value.
4232 2014-02-24 Pedro Alves <palves@redhat.com>
4234 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4235 deprecated_xfer_memory hook.
4236 (procfs_xfer_partial): Call procfs_xfer_memory instead
4237 of the deprecated_xfer_memory target hook.
4238 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4241 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4243 * windows-nat.c (windows_xfer_shared_libraries): Return
4244 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4245 requested object is TARGET_OBJECT_LIBRARIES.
4247 2014-02-24 Yao Qi <yao@codesourcery.com>
4249 * target.h (enum target_xfer_status)
4250 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4251 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4253 * corefile.c (memory_error_message): User updated.
4254 * exec.c (section_table_read_available_memory): Likewise.
4255 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4256 * target.c (target_xfer_status_to_string): Likewise.
4257 (raw_memory_xfer_partial): Likewise.
4258 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4259 * valops.c (read_value_memory): Likewise.
4260 * exec.h: Update comments.
4262 2014-02-24 Yao Qi <yao@codesourcery.com>
4264 * target.c (target_xfer_status_to_string): Rename argument err
4266 * target.h (target_xfer_status_to_string): Update declaration.
4267 Replace target_xfer_error_to_string with
4268 target_xfer_status_to_string in comment.
4270 2014-02-24 Yao Qi <yao@codesourcery.com>
4272 * mips-linux-nat.c (super_close): Update its type.
4273 (mips_linux_close): Pass 'self' to super_close.
4275 2014-02-24 Yao Qi <yao@codesourcery.com>
4277 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4278 * corefile.c (read_memory): Adjusted.
4279 * target.c (target_write_with_progress): Adjusted.
4281 2014-02-23 Yao Qi <yao@codesourcery.com>
4285 2013-10-25 Yao Qi <yao@codesourcery.com>
4287 * remote.c (remote_traceframe_info): Return early if
4288 traceframe is not selected.
4290 2013-07-19 Yao Qi <yao@codesourcery.com>
4292 * target.c (update_current_target): Change the default action
4293 of 'to_traceframe_info' from tcomplain to return_zero.
4294 * target.h (struct target_ops) <to_traceframe_info>: Add more
4297 2014-02-23 Yao Qi <yao@codesourcery.com>
4299 * valops.c (read_value_memory): Rewrite it. Call
4300 target_xfer_partial in a loop.
4301 * exec.h (section_table_available_memory): Remove declaration.
4302 Move comments to ...
4303 * exec.c (section_table_available_memory): ... here. Make it
4306 2014-02-23 Yao Qi <yao@codesourcery.com>
4308 * exec.c (section_table_read_available_memory): New function.
4309 * exec.h (section_table_read_available_memory): Declare.
4310 * ctf.c (ctf_xfer_partial): Call
4311 section_table_read_available_memory.
4312 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4314 2014-02-23 Yao Qi <yao@codesourcery.com>
4316 * ctf.c (ctf_xfer_partial): Move code to ...
4317 * exec.c (exec_read_partial_read_only): ... it. New function.
4318 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4319 * tracefile.c: Include "exec.h".
4320 * exec.h (exec_read_partial_read_only): Declare.
4322 2014-02-23 Yao Qi <yao@codesourcery.com>
4324 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4325 (tfile_has_memory): Remove.
4326 (init_tfile_ops): Don't set fields to_has_all_memory and
4327 to_has_memory of tfile_ops.
4328 * tracefile.c (tracefile_has_all_memory): New function.
4329 (tracefile_has_memory): New function.
4330 (init_tracefile_ops): Initialize fields to_has_all_memory and
4331 to_has_memory of 'ops'.
4333 2014-02-23 Yao Qi <yao@codesourcery.com>
4335 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4336 (ctf_thread_alive, ctf_get_trace_status): Remove.
4337 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4339 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4340 (tfile_has_stack, tfile_has_registers): Remove.
4341 (tfile_thread_alive): Remove.
4342 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4344 * tracefile.c (tracefile_has_stack): New function.
4345 (tracefile_has_registers): New function.
4346 (tracefile_thread_alive): New function.
4347 (tracefile_get_trace_status): New function.
4348 (init_tracefile_ops): New function.
4349 * tracefile.h (init_tracefile_ops): Declare.
4351 2014-02-23 Yao Qi <yao@codesourcery.com>
4353 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4354 (O_LARGEFILE): Likewise.
4355 (tfile_ops): Likewise.
4356 (TRACE_HEADER_SIZE): Likewise.
4357 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4358 (cur_data_size): Likewise.
4359 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4360 (tfile_close, tfile_files_info): Likewise.
4361 (tfile_get_trace_status): Likewise.
4362 (tfile_get_tracepoint_status): Likewise.
4363 (tfile_get_traceframe_address): Likewise.
4364 (tfile_trace_find, match_blocktype): Likewise.
4365 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4366 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4367 (tfile_get_trace_state_variable_value): Likewise.
4368 (tfile_has_all_memory, tfile_has_memory): Likewise.
4369 (tfile_has_stack, tfile_has_registers): Likewise.
4370 (tfile_thread_alive, build_traceframe_info): Likewise.
4371 (tfile_traceframe_info, init_tfile_ops): Likewise.
4372 (_initialize_tracepoint): Don't call init_tfile_ops
4373 and add_target_with_completer.
4374 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4375 exec.h, completer.h and filenames.h.
4376 (_initialize_tracefile_tfile): New function.
4378 2014-02-23 Yao Qi <yao@codesourcery.com>
4380 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4382 (HFILES_NO_SRCDIR): Add tracefile.h.
4383 * ctf.c: Include "tracefile.h".
4384 * tracefile.h: New file.
4385 * tracefile.c: New file
4386 * tracefile-tfile.c: New file.
4387 * tracepoint.c: Include "tracefile.h".
4388 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4389 (stop_reason_names): Add const.
4390 (trace_file_writer_xfree): Move it to tracefile.c.
4391 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4392 (trace_save_ctf): Likewise.
4393 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4394 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4395 (tfile_write_header, tfile_write_regblock_type): Likewise.
4396 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4397 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4398 (tfile_write_raw_data, tfile_end): Likewise.
4399 (tfile_trace_file_writer_new): Likewise.
4400 (free_uploaded_tp): Make it extern.
4401 (free_uploaded_tsv): Make it extern.
4402 (_initialize_tracepoint): Move code to register command 'tsave'
4404 * tracepoint.h (stop_reason_names): Declare.
4405 (struct trace_frame_write_ops): Move it to tracefile.h.
4406 (struct trace_file_write_ops): Likewise.
4407 (struct trace_file_writer): Likewise.
4408 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4410 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4413 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4415 (get_cores_used_by_process): New parameter num_cores, use it.
4416 (linux_xfer_osdata_processes): Pass num_cores to it.
4417 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4420 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4422 * target.c (memory_xfer_partial): Fix length arg in call to
4423 breakpoint_xfer_memory.
4425 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4428 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4429 number comes after the + or - signs. Adjust length of register
4430 name to be extracted.
4432 2014-02-20 Tom Tromey <tromey@redhat.com>
4434 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4435 (ada_varobj_ops): Mark "extern".
4437 2014-02-20 Tom Tromey <tromey@redhat.com>
4439 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4441 2014-02-20 Doug Evans <xdje42@gmail.com>
4443 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4444 All callers updated.
4445 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4446 All callers updated.
4447 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4448 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4450 2014-02-20 lin zuojian <manjian2006@gmail.com>
4451 Joel Brobecker <brobecker@adacore.com>
4452 Doug Evans <xdje42@gmail.com>
4455 * dwarf2read.c (struct die_info): New member in_process.
4456 (reset_die_in_process): New function.
4457 (process_die): Set it at the start, reset when returning.
4458 (inherit_abstract_dies): Only call process_die if origin_child_die
4459 not already being processed.
4461 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4463 * windows-nat.c (handle_unload_dll): Add function documentation.
4464 (do_initial_windows_stuff): Add comment explaining why we wait
4465 until after inferior initialization has finished before
4466 processing all DLLs.
4468 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4470 * windows-nat.c (get_module_name): Delete.
4471 (windows_get_exec_module_filename): New function, mostly
4472 inspired from get_module_name.
4473 (windows_pid_to_exec_file): Replace call to get_module_name
4474 by call to windows_get_exec_module_filename.
4476 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4478 * windows-nat.c (handle_load_dll): Rewrite this function's
4479 introductory comment. Remove code using get_module_name
4480 to get the DLL's name.
4482 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4484 * windows-nat.c (get_windows_debug_event): Ignore
4485 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4486 if windows_initialization_done == 0.
4487 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4488 Adjust implementation to always load all DLLs.
4489 (do_initial_windows_stuff): Replace call to
4490 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4492 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4494 * windows-nat.c (_initialize_windows_nat): Deprecate the
4495 "dll-symbols" command. Turn the "add-shared-symbol-files"
4496 and "assf" aliases into commands, and deprecate them as well.
4497 * NEWS: Add entry explaining that "dll-symbols" and its two
4498 aliases are now deprecated.
4500 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4502 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4503 new-line in debug string. Remove trailing spaces.
4505 2014-02-19 Stan Shebs <stan@codesourcery.com>
4507 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4509 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4511 * NEWS: Add entry for the new feature
4512 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4515 2014-02-19 Stan Shebs <stan@codesourcery.com>
4517 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4519 2014-02-19 Pedro Alves <palves@redhat.com>
4521 * common/ptid.h (struct ptid): Mention that process_stratum
4522 targets should prefer ptid.lwp.
4524 2014-02-19 Pedro Alves <palves@redhat.com>
4526 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4527 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4528 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4529 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4530 store remote thread ids rather than ptid.tid.
4531 (_initialize_remote): Adjust.
4533 2014-02-19 Tom Tromey <tromey@redhat.com>
4535 * target.c (target_get_unwinder): Rewrite.
4536 (target_get_tailcall_unwinder): Rewrite.
4537 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4538 (record_btrace_to_get_tailcall_unwinder): New function.
4539 (init_record_btrace_ops): Update.
4540 * target.h (struct target_ops) <to_get_unwinder,
4541 to_get_tailcall_unwinder>: Now function pointers. Use
4542 TARGET_DEFAULT_RETURN.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4548 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4550 2014-02-19 Tom Tromey <tromey@redhat.com>
4552 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4554 * target-delegates.c: Rebuild.
4555 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4556 TARGET_DEFAULT_FUNC.
4557 * target.c (default_target_decr_pc_after_break): Rename from
4558 forward_target_decr_pc_after_break. Simplify.
4559 (target_decr_pc_after_break): Rely on delegation.
4561 2014-02-19 Tom Tromey <tromey@redhat.com>
4563 * target.c (update_current_target): Do not INHERIT to_doc or
4564 to_magic. Do not de_fault to_open or to_close.
4566 2014-02-19 Tom Tromey <tromey@redhat.com>
4568 * gcore.h (objfile_find_memory_regions): Declare.
4569 * gcore.c (objfile_find_memory_regions): No longer static. Add
4571 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4572 * exec.c: Include gcore.h.
4573 (exec_set_find_memory_regions): Remove.
4574 (exec_find_memory_regions): Remove.
4575 (exec_do_find_memory_regions): Remove.
4576 (init_exec_ops): Update.
4577 * defs.h (exec_set_find_memory_regions): Remove.
4579 2014-02-19 Tom Tromey <tromey@redhat.com>
4581 * target-delegates.c: Rebuild.
4582 * target.h (struct target_ops) <to_extra_thread_info,
4583 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4584 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4585 not 0, in TARGET_DEFAULT_RETURN.
4587 2014-02-19 Tom Tromey <tromey@redhat.com>
4589 * target.c (complete_target_initialization): Remove casts. Use
4590 return_zero_has_execution.
4591 (return_zero): Add "ignore" argument.
4592 (return_zero_has_execution): New function.
4593 (init_dummy_target): Remove casts. Use
4594 return_zero_has_execution.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target.c (update_current_target): Update comments. Do not
4601 2014-02-19 Tom Tromey <tromey@redhat.com>
4603 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4605 * corelow.c (core_read_description): Delegate when needed.
4606 * remote.c (remote_read_description): Delegate when needed.
4607 * target-delegates.c: Rebuild.
4608 * target.c (target_read_description): Rewrite.
4609 * target.h (struct target_ops) <to_read_description>: Update
4610 comment. Use TARGET_DEFAULT_RETURN.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target-delegates.c: Rebuild.
4615 * target.c (update_current_target): Don't inherit or default
4617 (find_default_run_target): Check against delegate_can_run.
4618 * target.h (struct target_ops) <to_can_run>: Use
4619 TARGET_DEFAULT_RETURN.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target-delegates.c: Rebuild.
4624 * target.c (target_disconnect): Unconditionally delegate.
4625 * target.h (struct target_ops) <to_disconnect>: Use
4626 TARGET_DEFAULT_NORETURN.
4628 2014-02-19 Tom Tromey <tromey@redhat.com>
4630 * record.c (record_stop): Unconditionally delegate.
4631 * target-delegates.c: Rebuild.
4632 * target.c (target_stop_recording): Unconditionally delegate.
4633 * target.h (struct target_ops) <to_stop_recording>: Use
4634 TARGET_DEFAULT_IGNORE.
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target-delegates.c: Rebuild.
4639 * target.c (target_enable_btrace): Unconditionally delegate.
4640 * target.h (struct target_ops) <to_enable_btrace>: Use
4641 TARGET_DEFAULT_NORETURN.
4643 2014-02-19 Tom Tromey <tromey@redhat.com>
4645 * target-delegates.c: Rebuild.
4646 * target.c (target_read_btrace): Unconditionally delegate.
4647 * target.h (struct target_ops) <to_read_btrace>: Use
4648 TARGET_DEFAULT_NORETURN.
4650 2014-02-19 Tom Tromey <tromey@redhat.com>
4652 * target-delegates.c: Rebuild.
4653 * target.c (target_teardown_btrace): Unconditionally delegate.
4654 * target.h (struct target_ops) <to_teardown_btrace>: Use
4655 TARGET_DEFAULT_NORETURN.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target-delegates.c: Rebuild.
4660 * target.c (target_disable_btrace): Unconditionally delegate.
4661 * target.h (struct target_ops) <to_disable_btrace>: Use
4662 TARGET_DEFAULT_NORETURN.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * target-delegates.c: Rebuild.
4667 * target.c (default_search_memory): New function.
4668 (simple_search_memory): Update comment.
4669 (target_search_memory): Unconditionally delegate.
4670 * target.h (struct target_ops) <to_search_memory>: Use
4671 TARGET_DEFAULT_FUNC.
4673 2014-02-19 Tom Tromey <tromey@redhat.com>
4675 * auxv.c (default_auxv_parse): No longer static.
4676 (target_auxv_parse): Unconditionally delegate.
4677 * auxv.h (default_auxv_parse): Declare.
4678 * target-delegates.c: Rebuild.
4679 * target.c: Include auxv.h.
4680 * target.h (struct target_ops) <to_auxv_parse>: Use
4681 TARGET_DEFAULT_FUNC.
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target-delegates.c: Rebuild.
4686 * target.c (target_memory_map): Unconditionally delegate.
4687 * target.h (struct target_ops) <to_memory_map>: Use
4688 TARGET_DEFAULT_RETURN.
4690 2014-02-19 Tom Tromey <tromey@redhat.com>
4692 * target-delegates.c: Rebuild.
4693 * target.c (target_thread_alive): Unconditionally delegate.
4694 * target.h (struct target_ops) <to_thread_alive>: Use
4695 TARGET_DEFAULT_RETURN.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target-delegates.c: Rebuild.
4700 * target.c (target_save_record): Unconditionally delegate.
4701 * target.h (struct target_ops) <to_save_record>: Use
4702 TARGET_DEFAULT_NORETURN.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target-delegates.c: Rebuild.
4707 * target.c (target_delete_record): Unconditionally delegate.
4708 * target.h (struct target_ops) <to_delete_record>: Use
4709 TARGET_DEFAULT_NORETURN.
4711 2014-02-19 Tom Tromey <tromey@redhat.com>
4713 * target-delegates.c: Rebuild.
4714 * target.c (target_record_is_replaying): Unconditionally
4716 * target.h (struct target_ops) <to_record_is_replaying>: Use
4717 TARGET_DEFAULT_RETURN.
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target-delegates.c: Rebuild.
4722 * target.c (target_goto_record_begin): Unconditionally delegate.
4723 * target.h (struct target_ops) <to_goto_record_begin>: Use
4724 TARGET_DEFAULT_NORETURN.
4726 2014-02-19 Tom Tromey <tromey@redhat.com>
4728 * target-delegates.c: Rebuild.
4729 * target.c (target_goto_record_end): Unconditionally delegate.
4730 * target.h (struct target_ops) <to_goto_record_end>: Use
4731 TARGET_DEFAULT_NORETURN.
4733 2014-02-19 Tom Tromey <tromey@redhat.com>
4735 * target-delegates.c: Rebuild.
4736 * target.c (target_goto_record): Unconditionally delegate.
4737 * target.h (struct target_ops) <to_goto_record>: Use
4738 TARGET_DEFAULT_NORETURN.
4740 2014-02-19 Tom Tromey <tromey@redhat.com>
4742 * target-delegates.c: Rebuild.
4743 * target.c (target_insn_history): Unconditionally delegate.
4744 * target.h (struct target_ops) <to_insn_history>: Use
4745 TARGET_DEFAULT_NORETURN.
4747 2014-02-19 Tom Tromey <tromey@redhat.com>
4749 * target-delegates.c: Rebuild.
4750 * target.c (target_insn_history_from): Unconditionally delegate.
4751 * target.h (struct target_ops) <to_insn_history_from>: Use
4752 TARGET_DEFAULT_NORETURN.
4754 2014-02-19 Tom Tromey <tromey@redhat.com>
4756 * target-delegates.c: Rebuild.
4757 * target.c (target_insn_history_range): Unconditionally delegate.
4758 * target.h (struct target_ops) <to_insn_history_range>: Use
4759 TARGET_DEFAULT_NORETURN.
4761 2014-02-19 Tom Tromey <tromey@redhat.com>
4763 * target-delegates.c: Rebuild.
4764 * target.c (target_call_history): Unconditionally delegate.
4765 * target.h (struct target_ops) <to_call_history>: Use
4766 TARGET_DEFAULT_NORETURN.
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target-delegates.c: Rebuild.
4771 * target.c (target_call_history_from): Unconditionally delegate.
4772 * target.h (struct target_ops) <to_call_history_from>: Use
4773 TARGET_DEFAULT_NORETURN.
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target-delegates.c: Rebuild.
4778 * target.c (target_call_history_range): Unconditionally delegate.
4779 * target.h (struct target_ops) <to_call_history_range>: Use
4780 TARGET_DEFAULT_NORETURN.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target-delegates.c: Rebuild.
4785 * target.c (target_verify_memory): Unconditionally delegate.
4786 * target.h (struct target_ops) <to_verify_memory>: Use
4787 TARGET_DEFAULT_NORETURN.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (target_core_of_thread): Unconditionally delegate.
4793 * target.h (struct target_ops) <to_core_of_thread>: Use
4794 TARGET_DEFAULT_RETURN.
4796 2014-02-19 Tom Tromey <tromey@redhat.com>
4798 * target-delegates.c: Rebuild.
4799 * target.c (target_flash_done): Unconditionally delegate.
4800 * target.h (struct target_ops) <to_flash_done>: Use
4801 TARGET_DEFAULT_NORETURN.
4803 2014-02-19 Tom Tromey <tromey@redhat.com>
4805 * target-delegates.c: Rebuild.
4806 * target.c (target_flash_erase): Unconditionally delegate.
4807 * target.h (struct target_ops) <to_flash_erase>: Use
4808 TARGET_DEFAULT_NORETURN.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target-delegates.c: Rebuild.
4813 * target.c (target_get_section_table): Unconditionally delegate.
4814 * target.h (struct target_ops) <to_get_section_table>: Use
4815 TARGET_DEFAULT_RETURN.
4817 2014-02-19 Tom Tromey <tromey@redhat.com>
4819 * target-delegates.c: Rebuild.
4820 * target.c (target_pid_to_str): Unconditionally delegate.
4821 (init_dummy_target): Don't initialize to_pid_to_str.
4822 (default_pid_to_str): Rename from dummy_pid_to_str.
4823 * target.h (struct target_ops) <to_pid_to_str>: Use
4824 TARGET_DEFAULT_FUNC.
4826 2014-02-19 Tom Tromey <tromey@redhat.com>
4828 * target-delegates.c: Rebuild.
4829 * target.c (target_find_new_threads): Unconditionally delegate.
4830 * target.h (struct target_ops) <to_find_new_threads>: Use
4831 TARGET_DEFAULT_RETURN.
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * target-delegates.c: Rebuild.
4836 * target.c (target_program_signals): Unconditionally delegate.
4837 * target.h (struct target_ops) <to_program_signals>: Use
4838 TARGET_DEFAULT_IGNORE.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target-delegates.c: Rebuild.
4843 * target.c (target_pass_signals): Unconditionally delegate.
4844 * target.h (struct target_ops) <to_pass_signals>: Use
4845 TARGET_DEFAULT_IGNORE.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (default_mourn_inferior): New function.
4851 (target_mourn_inferior): Unconditionally delegate.
4852 * target.h (struct target_ops) <to_mourn_inferior>: Use
4853 TARGET_DEFAULT_FUNC.
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target-delegates.c: Rebuild.
4858 * target.c (default_follow_fork): New function.
4859 (target_follow_fork): Unconditionally delegate.
4860 * target.h (struct target_ops) <to_follow_fork>: Use
4861 TARGET_DEFAULT_FUNC.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target-delegates.c: Rebuild.
4866 * target.c (target_kill): Unconditionally delegate.
4867 * target.h (struct target_ops) <to_kill>: Use
4868 TARGET_DEFAULT_NORETURN.
4870 2014-02-19 Tom Tromey <tromey@redhat.com>
4872 * target-delegates.c: Rebuild.
4873 * target.c (target_masked_watch_num_registers): Unconditionally
4875 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4876 Use TARGET_DEFAULT_RETURN.
4878 2014-02-19 Tom Tromey <tromey@redhat.com>
4880 * target-delegates.c: Rebuild.
4881 * target.c (target_remove_mask_watchpoint): Unconditionally
4883 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4884 TARGET_DEFAULT_RETURN.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (target_insert_mask_watchpoint): Unconditionally
4891 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4892 TARGET_DEFAULT_RETURN.
4894 2014-02-19 Tom Tromey <tromey@redhat.com>
4896 * target-delegates.c: Rebuild.
4897 * target.c (target_ranged_break_num_registers): Unconditionally
4899 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4900 Use TARGET_DEFAULT_RETURN.
4902 2014-02-19 Tom Tromey <tromey@redhat.com>
4904 * target-delegates.c: Rebuild.
4905 * target.c (target_fetch_registers): Unconditionally delegate.
4906 * target.h (struct target_ops) <to_fetch_registers>: Use
4907 TARGET_DEFAULT_NORETURN.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * target-delegates.c: Rebuild.
4912 * target.c (update_current_target): Don't inherit or default
4914 * target.h (struct target_ops) <to_stop>: Use
4915 TARGET_DEFAULT_IGNORE.
4917 2014-02-19 Tom Tromey <tromey@redhat.com>
4919 * target-delegates.c: Rebuild.
4920 * target.c (update_current_target): Don't inherit or default
4921 to_can_run_breakpoint_commands.
4922 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4923 Use TARGET_DEFAULT_RETURN.
4925 2014-02-19 Tom Tromey <tromey@redhat.com>
4927 * target-delegates.c: Rebuild.
4928 * target.c (update_current_target): Don't inherit or default
4929 to_supports_evaluation_of_breakpoint_conditions.
4930 * target.h (struct target_ops)
4931 <to_supports_evaluation_of_breakpoint_conditions>: Use
4932 TARGET_DEFAULT_RETURN.
4934 2014-02-19 Tom Tromey <tromey@redhat.com>
4936 * target-delegates.c: Rebuild.
4937 * target.c (update_current_target): Don't inherit or default
4938 to_augmented_libraries_svr4_read.
4939 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4940 Use TARGET_DEFAULT_RETURN.
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * target-delegates.c: Rebuild.
4945 * target.c (update_current_target): Don't inherit or default
4947 * target.h (struct target_ops) <to_can_use_agent>: Use
4948 TARGET_DEFAULT_RETURN.
4950 2014-02-19 Tom Tromey <tromey@redhat.com>
4952 * target-delegates.c: Rebuild.
4953 * target.c (update_current_target): Don't inherit or default
4955 * target.h (struct target_ops) <to_use_agent>: Use
4956 TARGET_DEFAULT_NORETURN.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * target-delegates.c: Rebuild.
4961 * target.c (update_current_target): Don't inherit or default
4963 (return_null): Remove.
4964 * target.h (struct target_ops) <to_traceframe_info>: Use
4965 TARGET_DEFAULT_RETURN.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: Rebuild.
4970 * target.c (update_current_target): Don't inherit or default
4971 to_static_tracepoint_markers_by_strid.
4972 * target.h (struct target_ops)
4973 <to_static_tracepoint_markers_by_strid>: Use
4974 TARGET_DEFAULT_NORETURN.
4976 2014-02-19 Tom Tromey <tromey@redhat.com>
4978 * target-delegates.c: Rebuild.
4979 * target.c (update_current_target): Don't inherit or default
4980 to_static_tracepoint_marker_at.
4981 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4982 Use TARGET_DEFAULT_RETURN.
4984 2014-02-19 Tom Tromey <tromey@redhat.com>
4986 * target-delegates.c: Rebuild.
4987 * target.c (update_current_target): Don't inherit or default
4989 * target.h (struct target_ops) <to_set_permissions>: Use
4990 TARGET_DEFAULT_IGNORE.
4992 2014-02-19 Tom Tromey <tromey@redhat.com>
4994 * target-delegates.c: Rebuild.
4995 * target.c (update_current_target): Don't inherit or default
4997 * target.h (struct target_ops) <to_get_tib_address>: Use
4998 TARGET_DEFAULT_NORETURN.
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * target-delegates.c: Rebuild.
5003 * target.c (update_current_target): Don't inherit or default
5005 * target.h (struct target_ops) <to_set_trace_notes>: Use
5006 TARGET_DEFAULT_RETURN.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target-delegates.c: Rebuild.
5011 * target.c (update_current_target): Don't initialize
5012 to_set_trace_buffer_size.
5013 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5014 TARGET_DEFAULT_IGNORE.
5016 2014-02-19 Tom Tromey <tromey@redhat.com>
5018 * target-delegates.c: Rebuild.
5019 * target.c (update_current_target): Don't inherit or default
5020 to_set_circular_trace_buffer.
5021 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5022 TARGET_DEFAULT_IGNORE.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target-delegates.c: Rebuild.
5027 * target.c (update_current_target): Don't inherit or default
5028 to_set_disconnected_tracing.
5029 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5030 TARGET_DEFAULT_IGNORE.
5032 2014-02-19 Tom Tromey <tromey@redhat.com>
5034 * target-delegates.c: Rebuild.
5035 * target.c (update_current_target): Don't inherit or default
5036 to_get_min_fast_tracepoint_insn_len.
5037 (return_minus_one): Remove.
5038 * target.h (struct target_ops)
5039 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * target-delegates.c: Rebuild.
5044 * target.c (update_current_target): Don't inherit or default
5045 to_get_raw_trace_data.
5046 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5047 TARGET_DEFAULT_NORETURN.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (update_current_target): Don't inherit or default
5053 to_upload_trace_state_variables.
5054 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5055 Use TARGET_DEFAULT_RETURN.
5057 2014-02-19 Tom Tromey <tromey@redhat.com>
5059 * target-delegates.c: Rebuild.
5060 * target.c (update_current_target): Don't inherit or default
5061 to_upload_tracepoints.
5062 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5063 TARGET_DEFAULT_RETURN.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (update_current_target): Don't inherit or default
5070 * target.h (struct target_ops) <to_save_trace_data>: Use
5071 TARGET_DEFAULT_NORETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (update_current_target): Don't inherit or default
5077 to_get_trace_state_variable_value.
5078 * target.h (struct target_ops)
5079 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (update_current_target): Don't inherit or default
5086 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5088 2014-02-19 Tom Tromey <tromey@redhat.com>
5090 * target-delegates.c: Rebuild.
5091 * target.c (update_current_target): Don't inherit or default
5093 * target.h (struct target_ops) <to_trace_stop>: Use
5094 TARGET_DEFAULT_NORETURN.
5096 2014-02-19 Tom Tromey <tromey@redhat.com>
5098 * target-delegates.c: Rebuild.
5099 * target.c (update_current_target): Don't inherit or default
5100 to_get_tracepoint_status.
5101 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5102 TARGET_DEFAULT_NORETURN.
5104 2014-02-19 Tom Tromey <tromey@redhat.com>
5106 * target-delegates.c: Rebuild.
5107 * target.c (update_current_target): Don't inherit or default
5108 to_get_trace_status.
5109 * target.h (struct target_ops) <to_get_trace_status>: Use
5110 TARGET_DEFAULT_RETURN.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: Rebuild.
5115 * target.c (update_current_target): Don't inherit or default
5117 * target.h (struct target_ops) <to_trace_start>: Use
5118 TARGET_DEFAULT_NORETURN.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (update_current_target): Don't inherit or default
5124 to_trace_set_readonly_regions.
5125 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5126 Use TARGET_DEFAULT_NORETURN.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (update_current_target): Don't inherit or default
5132 to_disable_tracepoint.
5133 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5134 TARGET_DEFAULT_NORETURN.
5136 2014-02-19 Tom Tromey <tromey@redhat.com>
5138 * target-delegates.c: Rebuild.
5139 * target.c (update_current_target): Don't inherit or default
5140 to_enable_tracepoint.
5141 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5142 TARGET_DEFAULT_NORETURN.
5144 2014-02-19 Tom Tromey <tromey@redhat.com>
5146 * target-delegates.c: Rebuild.
5147 * target.c (update_current_target): Don't inherit or default
5148 to_download_trace_state_variable.
5149 * target.h (struct target_ops) <to_download_trace_state_variable>:
5150 Use TARGET_DEFAULT_NORETURN.
5152 2014-02-19 Tom Tromey <tromey@redhat.com>
5154 * target-delegates.c: Rebuild.
5155 * target.c (update_current_target): Don't inherit or default
5156 to_can_download_tracepoint.
5157 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5158 TARGET_DEFAULT_RETURN.
5160 2014-02-19 Tom Tromey <tromey@redhat.com>
5162 * target-delegates.c: Rebuild.
5163 * target.c (update_current_target): Don't inherit or default
5164 to_download_tracepoint.
5165 * target.h (struct target_ops) <to_download_tracepoint>: Use
5166 TARGET_DEFAULT_NORETURN.
5168 2014-02-19 Tom Tromey <tromey@redhat.com>
5170 * target-delegates.c: Rebuild.
5171 * target.c (update_current_target): Don't inherit or default
5173 * target.h (struct target_ops) <to_trace_init>: Use
5174 TARGET_DEFAULT_RETURN.
5176 2014-02-19 Tom Tromey <tromey@redhat.com>
5178 * target-delegates.c: Rebuild.
5179 * target.c (update_current_target): Don't inherit or default
5180 to_supports_string_tracing.
5181 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5182 TARGET_DEFAULT_RETURN.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (update_current_target): Don't inherit or default
5188 to_supports_enable_disable_tracepoint.
5189 * target.h (struct target_ops)
5190 <to_supports_enable_disable_tracepoint>: Use
5191 TARGET_DEFAULT_RETURN.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * target-delegates.c: Rebuild.
5196 * target.c (update_current_target): Don't inherit or default
5197 to_supports_multi_process.
5198 * target.h (struct target_ops) <to_supports_multi_process>: Use
5199 TARGET_DEFAULT_RETURN.
5201 2014-02-19 Tom Tromey <tromey@redhat.com>
5203 * target-delegates.c: Rebuild.
5204 * target.c (update_current_target): Don't inherit or default
5205 to_get_ada_task_ptid.
5206 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5207 TARGET_DEFAULT_FUNC.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target-delegates.c: Rebuild.
5212 * target.c (update_current_target): Don't inherit or default
5213 to_thread_architecture.
5214 * target.h (struct target_ops) <to_thread_architecture>: Use
5215 TARGET_DEFAULT_FUNC.
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target-delegates.c: Rebuild.
5220 * target.c (update_current_target): Don't inherit or default
5221 to_execution_direction.
5222 * target.h (struct target_ops) <to_execution_direction>: Use
5223 TARGET_DEFAULT_FUNC.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target-delegates.c: Rebuild.
5228 * target.c (update_current_target): Don't inherit or default
5229 to_can_execute_reverse.
5230 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5231 TARGET_DEFAULT_RETURN.
5232 (target_can_execute_reverse): Unconditionally delegate.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (update_current_target): Don't inherit or default
5239 (dummy_goto_bookmark): Remove.
5240 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5241 * target.h (struct target_ops) <to_goto_bookmark>: Use
5242 TARGET_DEFAULT_NORETURN.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target-delegates.c: Rebuild.
5247 * target.c (update_current_target): Don't inherit or default
5249 (dummy_get_bookmark): Remove.
5250 (init_dummy_target): Don't inherit or default to_get_bookmark.
5251 * target.h (struct target_ops) <to_get_bookmark>: Use
5252 TARGET_DEFAULT_NORETURN
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * target-delegates.c: Rebuild.
5257 * target.c (update_current_target): Don't inherit or default
5258 to_make_corefile_notes.
5259 (init_dummy_target): Don't initialize to_make_corefile_notes.
5260 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5261 TARGET_DEFAULT_FUNC.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target-delegates.c: Rebuild.
5266 * target.c (update_current_target): Don't inherit or default
5267 to_find_memory_regions.
5268 (init_dummy_target): Don't initialize to_find_memory_regions.
5269 * target.h (struct target_ops) <to_find_memory_regions>: Use
5270 TARGET_DEFAULT_FUNC.
5272 2014-02-19 Tom Tromey <tromey@redhat.com>
5274 * target-delegates.c: Rebuild.
5275 * target.c (update_current_target): Don't inherit or default
5277 * target.h (struct target_ops) <to_log_command>: Use
5278 TARGET_DEFAULT_IGNORE.
5279 (target_log_command): Unconditionally delegate.
5281 2014-02-19 Tom Tromey <tromey@redhat.com>
5283 * target-delegates.c: Rebuild.
5284 * target.c (update_current_target): Don't inherit or default
5285 to_pid_to_exec_file.
5286 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5287 TARGET_DEFAULT_RETURN.
5289 2014-02-19 Tom Tromey <tromey@redhat.com>
5291 * target-delegates.c: Rebuild.
5292 * target.c (update_current_target): Don't inherit or default
5294 (target_thread_name): Unconditionally delegate.
5295 * target.h (struct target_ops) <to_thread_name>: Use
5296 TARGET_DEFAULT_RETURN.
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target-delegates.c: Rebuild.
5301 * target.c (update_current_target): Don't inherit or default
5302 to_extra_thread_info.
5303 * target.h (struct target_ops) <to_extra_thread_info>: Use
5304 TARGET_DEFAULT_RETURN.
5306 2014-02-19 Tom Tromey <tromey@redhat.com>
5308 * target-delegates.c: Rebuild.
5309 * target.c (update_current_target): Don't inherit or default
5311 * target.h (struct target_ops) <to_has_exited>: Use
5312 TARGET_DEFAULT_RETURN..
5314 2014-02-19 Tom Tromey <tromey@redhat.com>
5316 * target-delegates.c: Rebuild.
5317 * target.c (update_current_target): Don't inherit or default
5318 to_set_syscall_catchpoint.
5319 (return_one): Remove.
5320 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5321 TARGET_DEFAULT_RETURN.
5323 2014-02-19 Tom Tromey <tromey@redhat.com>
5325 * target-delegates.c: Rebuild.
5326 * target.c (update_current_target): Don't inherit or default
5327 to_insert_exec_catchpoint.
5328 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5329 TARGET_DEFAULT_RETURN.
5331 2014-01-08 Tom Tromey <tromey@redhat.com>
5333 * target-delegates.c: Rebuild.
5334 * target.c (update_current_target): Don't inherit or default
5335 to_insert_exec_catchpoint.
5336 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5337 TARGET_DEFAULT_RETURN.
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target-delegates.c: Rebuild.
5342 * target.c (update_current_target): Don't inherit or default
5343 to_remove_vfork_catchpoint.
5344 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5345 TARGET_DEFAULT_RETURN.
5347 2014-02-19 Tom Tromey <tromey@redhat.com>
5349 * target-delegates.c: Rebuild.
5350 * target.c (update_current_target): Don't inherit or default
5351 to_insert_vfork_catchpoint.
5352 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5353 TARGET_DEFAULT_RETURN.
5355 2014-02-19 Tom Tromey <tromey@redhat.com>
5357 * target-delegates.c: Rebuild.
5358 * target.c (update_current_target): Don't inherit or default
5359 to_remove_fork_catchpoint.
5360 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5361 TARGET_DEFAULT_RETURN.
5363 2014-02-19 Tom Tromey <tromey@redhat.com>
5365 * target-delegates.c: Rebuild.
5366 * target.c (update_current_target): Don't inherit or default
5367 to_insert_fork_catchpoint.
5368 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5369 TARGET_DEFAULT_RETURN.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target-delegates.c: Rebuild.
5374 * target.c (update_current_target): Don't inherit or default
5375 to_post_startup_inferior.
5376 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5377 TARGET_DEFAULT_IGNORE.
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target-delegates.c: Rebuild.
5382 * target.c (update_current_target): Don't inherit or default
5384 * target.h (struct target_ops) <to_load>: Use
5385 TARGET_DEFAULT_NORETURN.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target-delegates.c: Rebuild.
5390 * target.c (update_current_target): Don't inherit or default
5392 * target.h (struct target_ops) <to_terminal_info>: Use
5393 TARGET_DEFAULT_FUNC.
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target-delegates.c: Rebuild.
5398 * target.c (update_current_target): Don't inherit or default
5399 to_terminal_save_ours.
5400 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5401 TARGET_DEFAULT_IGNORE.
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target-delegates.c: Rebuild.
5406 * target.c (update_current_target): Don't inherit or default
5408 * target.h (struct target_ops) <to_terminal_ours>: Use
5409 TARGET_DEFAULT_IGNORE.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target-delegates.c: Rebuild.
5414 * target.c (update_current_target): Don't inherit or default
5415 to_terminal_ours_for_output.
5416 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5417 TARGET_DEFAULT_IGNORE.
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target-delegates.c: Rebuild.
5422 * target.c (update_current_target): Don't inherit or default
5423 to_terminal_inferior.
5424 * target.h (struct target_ops) <to_terminal_inferior>: Use
5425 TARGET_DEFAULT_IGNORE.
5427 2014-02-19 Tom Tromey <tromey@redhat.com>
5429 * target-delegates.c: Rebuild.
5430 * target.c (update_current_target): Don't inherit or default
5432 * target.h (struct target_ops) <to_terminal_init>: Use
5433 TARGET_DEFAULT_IGNORE.
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target-delegates.c: Rebuild.
5438 * target.c (update_current_target): Don't inherit or default
5439 to_can_accel_watchpoint_condition.
5440 * target.h (struct target_ops)
5441 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5443 2014-02-19 Tom Tromey <tromey@redhat.com>
5445 * target-delegates.c: Rebuild.
5446 * target.c (update_current_target): Don't inherit or default
5447 to_region_ok_for_hw_watchpoint.
5448 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5449 Use TARGET_DEFAULT_FUNC.
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target-delegates.c: Rebuild.
5454 * target.c (update_current_target): Don't inherit or default
5455 to_watchpoint_addr_within_range.
5456 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5457 Use TARGET_DEFAULT_FUNC.
5459 2014-02-19 Tom Tromey <tromey@redhat.com>
5461 * target-delegates.c: Rebuild.
5462 * target.c (update_current_target): Don't inherit or default
5463 to_remove_watchpoint.
5464 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5465 TARGET_DEFAULT_NORETURN.
5467 2014-02-19 Tom Tromey <tromey@redhat.com>
5469 * target-delegates.c: Rebuild.
5470 * target.c (update_current_target): Don't inherit or default
5471 to_insert_watchpoint.
5472 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5473 TARGET_DEFAULT_RETURN.
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target-delegates.c: Rebuild.
5478 * target.c (update_current_target): Don't inherit or default
5479 to_remove_hw_breakpoint.
5480 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5481 TARGET_DEFAULT_RETURN.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target-delegates.c: Rebuild.
5486 * target.c (update_current_target): Don't inherit or default
5487 to_insert_hw_breakpoint.
5488 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5489 TARGET_DEFAULT_RETURN.
5491 2014-02-19 Tom Tromey <tromey@redhat.com>
5493 * target-delegates.c: Rebuild.
5494 * target.c (update_current_target): Don't inherit or default
5495 to_can_use_hw_breakpoint.
5496 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5497 TARGET_DEFAULT_RETURN.
5499 2014-02-19 Tom Tromey <tromey@redhat.com>
5501 * target-delegates.c: Rebuild.
5502 * target.c (update_current_target): Don't inherit or default
5504 * target.h (struct target_ops) <to_files_info>: Use
5505 TARGET_DEFAULT_IGNORE.
5507 2014-02-19 Tom Tromey <tromey@redhat.com>
5509 * target-delegates.c: Rebuild.
5510 * target.c (update_current_target): Don't inherit or default
5512 * target.h (struct target_ops) <to_store>: Use
5513 TARGET_DEFAULT_NORETURN.
5515 2014-02-19 Tom Tromey <tromey@redhat.com>
5517 * target-delegates.c: Rebuild.
5518 * target.c (update_current_target): Don't inherit or default
5520 * target.h (struct target_ops) <to_post_attach>: Use
5521 TARGET_DEFAULT_IGNORE.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target-delegates.c: Rebuild.
5526 * target.c (update_current_target): Don't inherit or default
5528 (default_rcmd): New function.
5529 (do_monitor_command): Unconditionally delegate.
5530 * target.h (struct target_ops) <to_rmcd>: Use
5531 TARGET_DEFAULT_FUNC.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target-delegates.c: Rebuild.
5536 * target.c (init_dummy_target): Don't initialize to_attach.
5537 (target_attach): Unconditionally delegate.
5538 * target.h (struct target_ops) <to_attach>: Use
5539 TARGET_DEFAULT_FUNC.
5541 2014-02-19 Tom Tromey <tromey@redhat.com>
5543 * target-delegates.c: Rebuild.
5544 * target.c (target_detach): Unconditionally delegate.
5545 (init_dummy_target): Don't initialize to_detach.
5546 * target.h (struct target_ops) <to_detach>: Use
5547 TARGET_DEFAULT_IGNORE.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5553 (target_augmented_libraries_svr4_read): Add argument.
5554 * target.c (update_current_target): Update.
5555 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5558 2014-02-19 Tom Tromey <tromey@redhat.com>
5560 * target.h (struct target_ops) <to_call_history_range>: Add
5562 * target.c (target_call_history_range): Add argument.
5563 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5565 (record_btrace_call_history_from): Update.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target.h (struct target_ops) <to_call_history_from>: Add
5571 * target.c (target_call_history_from): Add argument.
5572 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target.h (struct target_ops) <to_call_history>: Add argument.
5578 * target.c (target_call_history): Add argument.
5579 * record-btrace.c (record_btrace_call_history): Add 'self'
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * target.h (struct target_ops) <to_insn_history_range>: Add
5586 * target.c (target_insn_history_range): Add argument.
5587 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5589 (record_btrace_insn_history_from): Update.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * target.h (struct target_ops) <to_insn_history_from>: Add
5595 * target.c (target_insn_history_from): Add argument.
5596 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * target.h (struct target_ops) <to_insn_history>: Add argument.
5602 * target.c (target_insn_history): Add argument.
5603 * record-btrace.c (record_btrace_insn_history): Add 'self'
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_goto_record>: Add argument.
5609 * target.c (target_goto_record): Add argument.
5610 * record-full.c (record_full_goto): Add 'self' argument.
5611 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5613 2014-02-19 Tom Tromey <tromey@redhat.com>
5615 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5616 * target.c (target_goto_record_end): Add argument.
5617 * record-full.c (record_full_goto_end): Add 'self' argument.
5618 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5620 2014-02-19 Tom Tromey <tromey@redhat.com>
5622 * target.h (struct target_ops) <to_goto_record_begin>: Add
5624 * target.c (target_goto_record_begin): Add argument.
5625 * record-full.c (record_full_goto_begin): Add 'self' argument.
5626 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target.h (struct target_ops) <to_record_is_replaying>: Add
5633 * target.c (target_record_is_replaying): Add argument.
5634 * record-full.c (record_full_is_replaying): Add 'self' argument.
5635 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5637 (record_btrace_xfer_partial, record_btrace_store_registers)
5638 (record_btrace_prepare_to_store, record_btrace_resume)
5639 (record_btrace_wait, record_btrace_decr_pc_after_break)
5640 (record_btrace_find_new_threads, record_btrace_thread_alive):
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * target.h (struct target_ops) <to_delete_record>: Add argument.
5646 * target.c (target_delete_record): Add argument.
5647 * record-full.c (record_full_delete): Add 'self' argument.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target.h (struct target_ops) <to_save_record>: Add argument.
5652 * target.c (target_save_record): Add argument.
5653 * record-full.c (record_full_save): Add 'self' argument.
5654 (record_full_save): Add 'self' argument.
5656 2014-02-19 Tom Tromey <tromey@redhat.com>
5658 * target.h (struct target_ops) <to_info_record>: Add argument.
5659 * target.c (target_info_record): Add argument.
5660 * record.c (info_record_command): Add argument.
5661 * record-full.c (record_full_info): Add 'self' argument.
5662 * record-btrace.c (record_btrace_info): Add 'self' argument.
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5667 * target.c (target_stop_recording): Add argument.
5668 * record.c (record_stop): Add argument.
5669 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5672 2014-02-19 Tom Tromey <tromey@redhat.com>
5674 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5675 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5676 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5678 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5679 (_initialize_amd64_linux_nat): Use it.
5680 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5681 (_initialize_i386_linux_nat): Use it.
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5686 * target.c (target_teardown_btrace): Add argument.
5687 * remote.c (remote_teardown_btrace): Add 'self' argument.
5688 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5690 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5696 * target.c (target_disable_btrace): Add argument.
5697 * remote.c (remote_disable_btrace): Add 'self' argument.
5698 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5700 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5706 * target.c (target_enable_btrace): Add argument.
5707 * remote.c (remote_enable_btrace): Add 'self' argument.
5708 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5710 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5716 (target_can_use_agent): Add argument.
5717 * target.c (update_current_target): Update.
5718 * remote.c (remote_can_use_agent): Add 'self' argument.
5719 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target.h (struct target_ops) <to_use_agent>: Add argument.
5724 (target_use_agent): Add argument.
5725 * target.c (update_current_target): Update.
5726 * remote.c (remote_use_agent): Add 'self' argument.
5727 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5732 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5733 (target_traceframe_info): Add argument.
5734 * target.c (update_current_target): Update.
5735 * remote.c (remote_traceframe_info): Add 'self' argument.
5736 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target.h (target_static_tracepoint_markers_by_strid): Add
5742 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5744 * target.c (update_current_target): Update.
5745 * remote.c (struct target_ops)
5746 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5747 * linux-nat.c (struct target_ops)
5748 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5754 (target_static_tracepoint_marker_at): Add argument.
5755 * target.c (update_current_target): Update.
5756 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5762 (target_set_permissions): Add argument.
5763 * target.c (update_current_target): Update.
5764 * remote.c (remote_set_permissions): Add 'self' argument.
5765 (remote_start_remote): Update.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5770 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5771 (target_get_tib_address): Add argument.
5772 * target.c (update_current_target): Update.
5773 * remote.c (remote_get_tib_address): Add 'self' argument.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5778 (target_set_trace_notes): Add argument.
5779 * target.c (update_current_target): Update.
5780 * remote.c (remote_set_trace_notes): Add 'self' argument.
5782 2014-02-19 Tom Tromey <tromey@redhat.com>
5784 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5786 (target_set_trace_buffer_size): Add argument.
5787 * target.c (update_current_target): Update.
5788 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5794 (target_set_circular_trace_buffer): Add argument.
5795 * target.c (update_current_target): Update.
5796 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5803 (target_set_disconnected_tracing): Add argument.
5804 * target.c (update_current_target): Update.
5805 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target.h (struct target_ops)
5810 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5811 (target_get_min_fast_tracepoint_insn_len): Add argument.
5812 * target.c (update_current_target): Update.
5813 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5816 2014-02-19 Tom Tromey <tromey@redhat.com>
5818 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5820 (target_get_raw_trace_data): Add argument.
5821 * target.c (update_current_target): Update.
5822 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5828 (target_upload_trace_state_variables): Add argument.
5829 * target.c (update_current_target): Update.
5830 * remote.c (remote_upload_trace_state_variables): Add 'self'
5832 (remote_start_remote): Update.
5834 2014-02-19 Tom Tromey <tromey@redhat.com>
5836 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5838 (target_upload_tracepoints): Add argument.
5839 * target.c (update_current_target): Update.
5840 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5841 (remote_start_remote): Update.
5843 2014-02-19 Tom Tromey <tromey@redhat.com>
5845 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5846 (target_save_trace_data): Add argument.
5847 * target.c (update_current_target): Update.
5848 * remote.c (remote_save_trace_data): Add 'self' argument.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5854 * target.h (struct target_ops)
5855 <to_get_trace_state_variable_value>: Add argument.
5856 (target_get_trace_state_variable_value): Add argument.
5857 * target.c (update_current_target): Update.
5858 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5860 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5865 * target.h (struct target_ops) <to_trace_find>: Add argument.
5866 (target_trace_find): Add argument.
5867 * target.c (update_current_target): Update.
5868 * remote.c (remote_trace_find): Add 'self' argument.
5869 * ctf.c (ctf_trace_find): Add 'self' argument.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5874 (target_trace_stop): Add argument.
5875 * target.c (update_current_target): Update.
5876 * remote.c (remote_trace_stop): Add 'self' argument.
5878 2014-02-19 Tom Tromey <tromey@redhat.com>
5880 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5881 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5883 (target_get_tracepoint_status): Add argument.
5884 * target.c (update_current_target): Update.
5885 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5890 * target.h (struct target_ops) <to_get_trace_status>: Add
5892 (target_get_trace_status): Add argument.
5893 * target.c (update_current_target): Update.
5894 * remote.c (remote_get_trace_status): Add 'self' argument.
5895 (remote_start_remote, remote_can_download_tracepoint): Update.
5896 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.h (struct target_ops) <to_trace_start>: Add argument.
5901 (target_trace_start): Add argument.
5902 * target.c (update_current_target): Update.
5903 * remote.c (remote_trace_start): Add 'self' argument.
5905 2014-02-19 Tom Tromey <tromey@redhat.com>
5907 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5909 (target_trace_set_readonly_regions): Add argument.
5910 * target.c (update_current_target): Update.
5911 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5918 (target_disable_tracepoint): Add argument.
5919 * target.c (update_current_target): Update.
5920 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5926 (target_enable_tracepoint): Add argument.
5927 * target.c (update_current_target): Update.
5928 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * target.h (struct target_ops) <to_download_trace_state_variable>:
5934 (target_download_trace_state_variable): Add argument.
5935 * target.c (update_current_target): Update.
5936 * remote.c (remote_download_trace_state_variable): Add 'self'
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5943 (target_can_download_tracepoint): Add argument.
5944 * target.c (update_current_target): Update.
5945 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target.h (struct target_ops) <to_download_tracepoint>: Add
5951 (target_download_tracepoint): Add argument.
5952 * target.c (update_current_target): Update.
5953 * remote.c (remote_download_tracepoint): Add 'self' argument.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * target.h (struct target_ops) <to_trace_init>: Add argument.
5958 (target_trace_init): Add argument.
5959 * target.c (update_current_target): Update.
5960 * remote.c (remote_trace_init): Add 'self' argument.
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5965 * target.c (target_fileio_readlink): Add argument.
5966 * remote.c (remote_hostio_readlink): Add 'self' argument.
5967 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5972 * target.c (target_fileio_unlink): Add argument.
5973 * remote.c (remote_hostio_unlink): Add 'self' argument.
5974 (remote_file_delete): Update.
5975 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5977 2014-02-19 Tom Tromey <tromey@redhat.com>
5979 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5980 * target.c (target_fileio_close): Add argument.
5981 * remote.c (remote_hostio_close): Add 'self' argument.
5982 (remote_hostio_close_cleanup): Update.
5983 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5985 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5987 2014-02-19 Tom Tromey <tromey@redhat.com>
5989 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5990 * target.c (target_fileio_pread): Add argument.
5991 * remote.c (remote_hostio_pread): Add 'self' argument.
5992 (remote_bfd_iovec_pread, remote_file_get): Update.
5993 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5998 * target.c (target_fileio_pwrite): Add argument.
5999 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6000 (remote_file_put): Update.
6001 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6006 * target.c (target_fileio_open): Add argument.
6007 * remote.c (remote_hostio_open): Add 'self' argument.
6008 (remote_bfd_iovec_open): Add 'self' argument.
6009 (remote_file_put): Add 'self' argument.
6010 (remote_file_get): Add 'self' argument.
6011 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6015 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6017 (target_can_run_breakpoint_commands): Add argument.
6018 * target.c (update_current_target): Update.
6019 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6021 (remote_insert_breakpoint): Add 'self' argument.
6022 (remote_insert_hw_breakpoint): Add 'self' argument.
6023 (remote_can_run_breakpoint_commands): Add 'self' argument.
6025 2014-02-19 Tom Tromey <tromey@redhat.com>
6027 * target.h (struct target_ops)
6028 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6029 (target_supports_evaluation_of_breakpoint_conditions): Add
6031 * target.c (update_current_target): Update.
6032 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6034 (remote_insert_breakpoint): Add 'self' argument.
6035 (remote_insert_hw_breakpoint): Add 'self' argument.
6036 (remote_supports_cond_breakpoints): Add 'self' argument.
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6042 (target_supports_string_tracing): Add argument.
6043 * target.c (update_current_target): Update.
6044 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6046 2014-02-19 Tom Tromey <tromey@redhat.com>
6048 * target.h (struct target_ops)
6049 <to_supports_disable_randomization>: Add argument.
6050 * target.c (find_default_supports_disable_randomization): Add
6052 (target_supports_disable_randomization): Add argument.
6053 (find_default_supports_disable_randomization): Add 'self'
6055 * remote.c (extended_remote_supports_disable_randomization): Add
6057 (remote_supports_disable_randomization): Add 'self' argument.
6058 (extended_remote_create_inferior): Update.
6059 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6062 2014-02-19 Tom Tromey <tromey@redhat.com>
6064 * target.h (struct target_ops)
6065 <to_supports_enable_disable_tracepoint>: Add argument.
6066 (target_supports_enable_disable_tracepoint): Add argument.
6067 * target.c (update_current_target): Update.
6068 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target.h (struct target_ops) <to_supports_multi_process>: Add
6075 (target_supports_multi_process): Add argument.
6076 * target.c (update_current_target): Update.
6077 * remote.c (remote_supports_multi_process): Add 'self' argument.
6078 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6080 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6083 2014-02-19 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops) <to_execution_direction>: Add
6087 (target_execution_direction): Add argument.
6088 * target.c (default_execution_direction): Add 'self' argument.
6089 * record-full.c (record_full_execution_direction): Add 'self'
6092 2014-02-19 Tom Tromey <tromey@redhat.com>
6094 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6096 (target_can_execute_reverse): Add argument.
6097 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6098 * record-full.c (record_full_can_execute_reverse): Add 'self'
6100 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6106 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6108 (target_get_ada_task_ptid): Add argument.
6109 * target.c (update_current_target): Update.
6110 (default_get_ada_task_ptid): Add 'self' argument.
6111 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6112 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6113 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6115 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6117 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6119 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6121 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6122 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6125 2014-02-19 Tom Tromey <tromey@redhat.com>
6127 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6128 (target_goto_bookmark): Add argument.
6129 * target.c (dummy_goto_bookmark): Add 'self' argument.
6130 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6132 2014-02-19 Tom Tromey <tromey@redhat.com>
6134 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6135 (target_get_bookmark): Add argument.
6136 * target.c (dummy_get_bookmark): Add 'self' argument.
6137 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6143 (target_make_corefile_notes): Add argument.
6144 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6145 * procfs.c (procfs_make_note_section): Add 'self' argument.
6146 (procfs_make_note_section): Add 'self' argument.
6147 (procfs_make_note_section): Add 'self' argument.
6148 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6150 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6151 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6152 * exec.c (exec_make_note_section): Add 'self' argument.
6153 (exec_make_note_section): Add 'self' argument.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target.h (struct target_ops) <to_find_memory_regions>: Add
6159 (target_find_memory_regions): Add argument.
6160 * target.c (dummy_find_memory_regions): Add 'self' argument.
6161 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6162 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6163 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6164 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6165 * exec. (exec_do_find_memory_regions): New global.
6166 (exec_set_find_memory_regions): Rewrite.
6167 (exec_find_memory_regions): New function.
6168 (init_exec_ops): Use exec_find_memory_regions.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target.h (struct target_ops) <to_supports_non_stop>: Add
6174 * target.c (find_default_supports_non_stop): Add argument.
6175 (target_supports_non_stop): Add argument.
6176 (find_default_supports_non_stop): Add 'self' argument.
6177 * remote.c (remote_supports_non_stop): Add 'self' argument.
6178 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target.h (struct target_ops) <to_log_command>: Add argument.
6183 (target_log_command): Add argument.
6184 * serial.h (serial_log_command): Add 'self' argument.
6185 * serial.c (serial_log_command): Add 'self' argument.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6190 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6192 (target_pid_to_exec_file): Add argument.
6193 * target.c (debug_to_pid_to_exec_file): Add argument.
6194 (update_current_target): Update.
6195 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6196 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6197 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6198 (linux_handle_extended_wait): Update.
6199 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6200 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6201 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6202 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_rcmd>: Add argument.
6207 (target_rcmd): Add argument.
6208 * target.c (debug_to_rcmd): Add argument.
6209 (update_current_target, do_monitor_command): Update.
6210 * remote.c (remote_rcmd): Add 'self' argument.
6211 * monitor.c (monitor_rcmd): Add 'self' argument.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * windows-nat.c (windows_stop): Add 'self' argument.
6216 * target.h (struct target_ops) <to_stop>: Add argument.
6217 * target.c (target_stop): Add argument.
6218 (debug_to_stop): Add argument.
6219 (update_current_target): Update.
6220 * remote.c (remote_stop): Add 'self' argument.
6221 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6222 (gdbsim_cntrl_c): Update.
6223 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6224 * procfs.c (procfs_stop): Add 'self' argument.
6225 * nto-procfs.c (procfs_stop): Add 'self' argument.
6226 * monitor.c (monitor_stop): Add 'self' argument.
6227 (monitor_open): Update.
6228 * linux-nat.c (linux_nat_stop): Add argument.
6229 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6230 * gnu-nat.c (gnu_stop): Add 'self' argument.
6231 * darwin-nat.c (darwin_stop): Add 'self' argument.
6233 2014-02-19 Tom Tromey <tromey@redhat.com>
6235 * target.h (struct target_ops) <to_thread_name>: Add argument.
6236 * target.c (target_thread_name): Add argument.
6237 (update_current_target): Update.
6238 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6240 2014-02-19 Tom Tromey <tromey@redhat.com>
6242 * target.h (struct target_ops) <to_extra_thread_info>: Add
6244 (target_extra_thread_info): Add argument.
6245 * target.c (update_current_target): Update.
6246 * remote.c (remote_threads_extra_info): Add 'self' argument.
6247 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6249 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6250 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6251 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6253 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6255 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6257 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target.h (struct target_ops) <to_program_signals>: Add argument.
6263 * target.c (target_program_signals): Add argument.
6264 * remote.c (remote_program_signals): Add 'self' argument.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6269 * target.c (target_pass_signals): Add argument.
6270 * remote.c (remote_pass_signals): Add 'self' argument.
6271 (remote_start_remote): Update.
6272 * procfs.c (procfs_pass_signals): Add 'self' argument.
6273 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6274 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6275 (linux_nat_create_inferior, linux_nat_attach): Update.
6277 2014-02-19 Tom Tromey <tromey@redhat.com>
6279 * windows-nat.c (windows_can_run): Add 'self' argument.
6280 * target.h (struct target_ops) <to_can_run>: Add argument.
6281 (target_can_run): Add argument.
6282 * target.c (debug_to_can_run): Add argument.
6283 (update_current_target): Update.
6284 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6285 * inf-child.c (inf_child_can_run): Add 'self' argument.
6286 * go32-nat.c (go32_can_run): Add 'self' argument.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target.h (struct target_ops) <to_has_exited>: Add argument.
6291 (target_has_exited): Add argument.
6292 * target.c (debug_to_has_exited): Add argument.
6293 (update_current_target): Update.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6299 (target_set_syscall_catchpoint): Add argument.
6300 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6302 * target.c (update_current_target): Update.
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6308 (target_remove_exec_catchpoint): Add argument.
6309 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6310 (update_current_target): Update.
6311 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6318 (target_insert_exec_catchpoint): Add argument.
6319 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6320 (update_current_target): Update.
6321 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6328 (target_remove_vfork_catchpoint): Add argument.
6329 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6330 (update_current_target): Update.
6331 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6338 (target_insert_vfork_catchpoint): Add argument.
6339 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6340 (update_current_target): Update.
6341 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6348 (target_remove_fork_catchpoint): Add argument.
6349 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6350 (update_current_target): Update.
6351 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6358 (target_insert_fork_catchpoint): Add argument.
6359 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6360 (update_current_target): Update.
6361 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6368 (target_post_startup_inferior): Add argument.
6369 * target.c (debug_to_post_startup_inferior): Add argument.
6370 (update_current_target): Update.
6371 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6373 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6375 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6377 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6379 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6381 (super_post_startup_inferior): Likewise.
6382 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6384 (super_post_startup_inferior): Likewise.
6385 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6386 Add 'self' argument.
6387 (super_post_startup_inferior): Likewise.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target.h (struct target_ops) <to_load>: Add argument.
6392 * target.c (target_load): Add argument.
6393 (debug_to_load): Add argument.
6394 (update_current_target): Update.
6395 * remote.c (remote_load): Add 'self' argument.
6396 * remote-sim.c (gdbsim_load): Add 'self' argument.
6397 * remote-mips.c (mips_load): Add 'self' argument.
6398 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6399 * monitor.c (monitor_load): Add 'self' argument.
6400 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6405 (target_terminal_info): Add argument.
6406 * target.c (debug_to_terminal_info): Add argument.
6407 (default_terminal_info): Likewise.
6408 * inflow.c (child_terminal_info): Add 'self' argument.
6409 * inferior.h (child_terminal_info): Add 'self' argument.
6410 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6416 (target_terminal_save_ours): Add argument.
6417 * target.c (debug_to_terminal_save_ours): Add argument.
6418 (update_current_target): Update.
6419 * inflow.c (terminal_save_ours): Add 'self' argument.
6420 * inferior.h (terminal_save_ours): Add 'self' argument.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6425 (target_terminal_ours): Add argument.
6426 * target.c (debug_to_terminal_ours): Add argument.
6427 (update_current_target): Update.
6428 * remote.c (remote_terminal_ours): Add 'self' argument.
6429 (remote_close): Update.
6430 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6431 * inflow.c (terminal_ours): Add 'self' argument.
6432 * inferior.h (terminal_ours): Add 'self' argument.
6433 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6435 2014-02-19 Pedro Alves <palves@redhat.com>
6436 Tom Tromey <tromey@redhat.com>
6438 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6440 (target_terminal_ours_for_output): Add argument.
6441 * target.c (debug_to_terminal_ours_for_output): Add argument.
6442 (update_current_target): Update.
6443 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6444 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6445 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6447 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target.h (struct target_ops) <to_terminal_inferior>: Add
6451 * target.c (target_terminal_inferior): Add argument.
6452 (update_current_target): Update.
6453 * remote.c (remote_terminal_inferior): Add 'self' argument.
6454 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6455 * inflow.c (terminal_inferior): Add 'self' argument.
6456 * inferior.h (terminal_inferior): Add 'self' argument.
6457 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6458 (go32_terminal_inferior): Add 'self' argument.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6463 (target_terminal_init): Add argument.
6464 * target.c (debug_to_terminal_init): Add argument.
6465 (update_current_target): Update.
6466 * inflow.c (terminal_init_inferior): Add 'self' argument.
6467 * inferior.h (terminal_init_inferior): Add 'self' argument.
6468 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6469 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target.h (struct target_ops)
6474 <to_can_accel_watchpoint_condition>: Add argument.
6475 (target_can_accel_watchpoint_condition): Add argument.
6476 * target.c (debug_to_can_accel_watchpoint_condition): Add
6478 (update_current_target): Update.
6479 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6486 (target_region_ok_for_hw_watchpoint): Add argument.
6487 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6488 (default_region_ok_for_hw_watchpoint): Add argument.
6489 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6490 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6492 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6494 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6496 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6498 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6500 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6502 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6503 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6505 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6506 Add 'self' argument.
6508 2014-02-19 Tom Tromey <tromey@redhat.com>
6510 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6512 (target_insert_watchpoint): Add argument.
6513 * target.c (debug_to_insert_watchpoint): Add argument.
6514 (update_current_target): Update.
6515 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6516 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6517 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6518 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6519 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6520 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6522 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6523 (procfs_insert_hw_watchpoint): Add 'self' argument.
6524 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6526 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6528 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6530 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6531 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6533 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6540 (target_remove_watchpoint): Add argument.
6541 * target.c (debug_to_remove_watchpoint): Add argument.
6542 (update_current_target): Update.
6543 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6544 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6545 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6546 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6547 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6548 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6550 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6551 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6553 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6555 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6557 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6558 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6560 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6563 2014-02-19 Tom Tromey <tromey@redhat.com>
6565 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6567 (target_remove_hw_breakpoint): Add argument.
6568 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6569 (update_current_target): Update.
6570 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6571 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6573 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6574 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6576 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6579 2014-02-19 Tom Tromey <tromey@redhat.com>
6581 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6583 (target_insert_hw_breakpoint): Add argument.
6584 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6585 (update_current_target): Update.
6586 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6587 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6589 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6590 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6591 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6593 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6598 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6600 (target_can_use_hardware_watchpoint): Add argument.
6601 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6602 (update_current_target): Update.
6603 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6605 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6607 * remote.c (remote_check_watch_resources): Add 'self' argument.
6608 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6609 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6611 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6612 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6614 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6616 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6618 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6620 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6622 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6624 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6625 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6627 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target.h (struct target_ops) <to_post_attach>: Add argument.
6633 (target_post_attach): Add argument.
6634 * target.c (debug_to_post_attach): Add argument.
6635 (update_current_target): Update.
6636 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6637 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6638 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6639 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6640 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * windows-nat.c (windows_close): Add 'self' argument.
6645 * tracepoint.c (tfile_close): Add 'self' argument.
6646 * target.h (struct target_ops) <to_close>: Add argument.
6647 * target.c (target_close): Add argument.
6648 (update_current_target): Update.
6649 * remote.c (remote_close): Add 'self' argument.
6650 * remote-sim.c (gdbsim_close): Add 'self' argument.
6651 * remote-mips.c (mips_close): Add 'self' argument.
6652 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6653 * record-full.c (record_full_close): Add 'self' argument.
6654 * record-btrace.c (record_btrace_close): Add 'self' argument.
6655 * monitor.h (monitor_close): Add 'self' argument.
6656 * monitor.c (monitor_close): Add 'self' argument.
6657 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6658 * linux-nat.c (linux_nat_close): Add argument.
6659 * go32-nat.c (go32_close): Add 'self' argument.
6660 * exec.c (exec_close_1): Add 'self' argument.
6661 * ctf.c (ctf_close): Add 'self' argument.
6662 * corelow.c (core_close): Add 'self' argument.
6663 (core_close_cleanup): Update.
6664 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6665 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6667 2014-02-19 Tom Tromey <tromey@redhat.com>
6669 * remote.c (remote_load): New function.
6670 (init_remote_ops): Use it.
6672 2014-02-19 Tom Tromey <tromey@redhat.com>
6674 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6676 * common/linux-btrace.h (linux_supports_btrace): Update.
6677 * remote.c (remote_supports_btrace): Add "self" argument.
6678 * target-delegates.c: Rebuild.
6679 * target.c (target_supports_btrace): Remove.
6680 * target.h (struct target_ops) <to_supports_btrace>: Add
6681 target_ops argument.
6682 (target_supports_btrace): New define.
6684 2014-02-19 Tom Tromey <tromey@redhat.com>
6686 * record-full.c (record_full_beneath_to_resume_ops)
6687 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6688 (record_full_beneath_to_wait)
6689 (record_full_beneath_to_store_registers_ops)
6690 (record_full_beneath_to_store_registers)
6691 (record_full_beneath_to_xfer_partial_ops)
6692 (record_full_beneath_to_xfer_partial)
6693 (record_full_beneath_to_insert_breakpoint_ops)
6694 (record_full_beneath_to_insert_breakpoint)
6695 (record_full_beneath_to_remove_breakpoint_ops)
6696 (record_full_beneath_to_remove_breakpoint)
6697 (record_full_beneath_to_stopped_by_watchpoint)
6698 (record_full_beneath_to_stopped_data_address)
6699 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6700 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6701 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6702 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6703 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6704 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6705 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6706 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6707 (record_full_resume, record_full_wait_1)
6708 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6709 (record_full_store_registers, record_full_xfer_partial)
6710 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6711 (record_full_async, record_full_core_xfer_partial): Use target
6713 * target-delegates.c: Rebuild.
6714 * target.c (current_xfer_partial): Remove.
6715 (update_current_target): Do not INHERIT or de_fault
6716 to_insert_breakpoint, to_remove_breakpoint,
6717 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6718 to_is_async_p, to_async. Do not set to_xfer_partial field.
6719 (default_xfer_partial): Simplify.
6720 (current_xfer_partial): Remove.
6721 (target_wait, target_resume): Simplify.
6722 (find_default_can_async_p, find_default_is_async_p): Update.
6723 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6724 to_xfer_partial, to_stopped_by_watchpoint,
6725 to_stopped_data_address.
6726 (target_store_registers): Simplify.
6727 (forward_target_remove_breakpoint)
6728 (forward_target_insert_breakpoint): Remove.
6729 (target_remove_breakpoint, target_insert_breakpoint)
6730 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6731 * target.h (struct target_ops) <to_resume, to_wait,
6732 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6733 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6734 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6736 (forward_target_remove_breakpoint)
6737 (forward_target_insert_breakpoint): Remove.
6738 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6740 (record_btrace_insert_breakpoint): Delegate directly.
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6745 * target-delegates.c: New file.
6746 * target.c: Include target-delegates.c.
6747 (init_dummy_target): Call install_dummy_methods.
6748 (complete_target_initialization): Call install_delegators.
6749 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6750 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6751 * make-target-delegates: New file.
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * record.c (find_record_target): Use find_target_at.
6756 * target.c (find_target_at): New function.
6757 * target.h (find_target_at): Declare.
6759 2014-02-19 Tom Tromey <tromey@redhat.com>
6761 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6763 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6765 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6766 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6768 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6770 * linux-nat.c (save_sigtrap): Update.
6771 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6772 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6773 (linux_nat_close): Update.
6774 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6776 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6778 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6779 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6780 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6781 (tmp_to_async): Add 'ops' argument.
6782 (record_full_stopped_by_watchpoint, record_full_async)
6783 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6785 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6786 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6787 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6788 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6789 (remote_is_async_p, remote_async): Add 'ops' argument.
6790 (remote_stopped_data_address): Update.
6791 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6792 * target.c (update_current_target)
6793 (find_default_can_async_p, find_default_is_async_p): Update.
6794 (init_dummy_target): Update.
6795 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6796 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6797 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6798 (target_can_async_p, target_is_async_p, target_async)
6799 (target_stopped_by_watchpoint): Update.
6801 2014-02-19 Yao Qi <yao@codesourcery.com>
6804 * gdbarch.sh: Remove startup_gdbarch.
6805 * gdbarch.c: Regenerated.
6806 * gdbarch.h: Likewise.
6808 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6810 * rl78-tdep.c (rl78_g10_register_name): New function.
6811 (rl78_return_value): Add g10 support.
6812 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6815 2014-02-17 Doug Evans <xdje42@gmail.com>
6817 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6818 (SUBDIR_GUILE_SRCS): Ditto.
6819 (scm-gsmob.o): Ditto.
6821 2014-02-17 Yao Qi <yao@codesourcery.com>
6823 * gnu-nat.c (ILL_RPC): Declare defined function.
6825 2014-02-17 Yao Qi <yao@codesourcery.com>
6827 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6828 mach_msg_type_number_t.
6829 (gnu_write_inferior): Likewise.
6831 2014-02-17 Yao Qi <yao@codesourcery.com>
6833 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6835 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6836 (inf_validate_procs, inf_signal): Likewise.
6837 (S_exception_raise_request): Likewise.
6838 (do_mach_notify_dead_name): Likewise.
6839 (steal_exc_port): Likewise.
6840 (gnu_read_inferior): Change 'copy_count''s type to
6841 mach_msg_type_number_t.
6842 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6845 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6847 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6848 flag. Adjust all users; in particular...
6849 (gnu_wait): ..., don't decrement its value in here...
6850 (gnu_create_inferior): ..., and instead set the flag in here,
6851 around the startup_inferior call, and call that one with
6852 START_INFERIOR_TRAPS_EXPECTED.
6854 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6855 (ILL_RPC): ... new macro.
6856 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6857 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6858 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6859 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6860 functions with ILL_RPC macro.
6861 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6862 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6863 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6864 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6865 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6866 (S_proc_getlogin_reply, S_proc_getsid_reply)
6867 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6868 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6869 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6870 (S_proc_getnports_reply, S_proc_is_important_reply)
6871 (S_proc_get_code_reply): New stub functions, generated with
6874 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6875 collected the type check structures.
6877 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6879 2014-02-14 Doug Evans <dje@google.com>
6881 * target.c (target_write_partial): Fix result type.
6883 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6885 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6886 the proper offsets to access fpregset_t.
6888 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6890 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6891 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6892 * h8300-tdep.c (setmachinelist): Remove global.
6893 * hppa-tdep.c (hppa_sigtramp): Remove global.
6894 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6895 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6896 * ravenscar-thread.c (update_target_observer): Remove global.
6897 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6899 2014-02-12 Tom Tromey <tromey@redhat.com>
6901 * common/rsp-low.c: Update comments.
6902 * common/rsp-low.h: Update comments.
6904 2014-02-12 Tom Tromey <tromey@redhat.com>
6906 * common/rsp-low.c (convert_ascii_to_int): Remove.
6907 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6909 2014-02-12 Tom Tromey <tromey@redhat.com>
6911 * common/rsp-low.h (unhexify): Don't declare.
6912 * common/rsp-low.c (unhexify): Remove.
6914 2014-02-12 Tom Tromey <tromey@redhat.com>
6916 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6917 * common/rsp-low.c (convert_int_to_ascii): Remove.
6919 2014-02-12 Tom Tromey <tromey@redhat.com>
6921 * common/rsp-low.h (hexify): Don't declare.
6922 * common/rsp-low.c (hexify): Remove.
6924 2014-02-12 Tom Tromey <tromey@redhat.com>
6926 * common/rsp-low.c (hexify): Never take strlen of argument.
6928 2014-02-12 Tom Tromey <tromey@redhat.com>
6930 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6931 * remote.c (extended_remote_run, remote_rcmd)
6932 (remote_download_trace_state_variable, remote_save_trace_data)
6933 (remote_set_trace_notes): Update.
6934 * tracepoint.c (encode_source_string, tfile_write_status)
6935 (tfile_write_uploaded_tsv): Update.
6937 2014-02-12 Tom Tromey <tromey@redhat.com>
6939 * tracepoint.c: Include rsp-low.h.
6940 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6941 * remote.c: Include rsp-low.h.
6942 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6943 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6944 (remote_unescape_input): Move to common/rsp-low.c.
6945 * common/rsp-low.h: New file.
6946 * common/rsp-low.c: New file.
6947 * Makefile.in (SFILES): Add common/rsp-low.c.
6948 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6949 (COMMON_OBS): Add rsp-low.o.
6950 (rsp-low.o): New target.
6952 2014-02-12 Tom Tromey <tromey@redhat.com>
6954 * utils.h: Include print-utils.h.
6955 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6956 (int_string, core_addr_to_string, core_addr_to_string_nz)
6957 (hex_string, hex_string_custom): Don't declare.
6958 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6959 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6960 (hex_string_custom, int_string, core_addr_to_string)
6961 (core_addr_to_string_nz, host_address_to_string): Move to
6962 common/print-utils.c.
6963 * common/print-utils.h: New file.
6964 * common/print-utils.c: New file
6965 * Makefile.in (SFILES): Add common/print-utils.c.
6966 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6967 (COMMON_OBS): Add print-utils.o.
6968 (print-utils.o): New target.
6970 2014-02-12 Tom Tromey <tromey@redhat.com>
6972 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6974 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6976 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6978 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6980 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6981 if a PT_IO ptrace request returns sucessfully but indicates that 0
6982 bytes were transferred.
6984 2014-02-12 Pedro Alves <palves@redhat.com>
6985 Kevin Buettner <kevinb@redhat.com>
6987 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6988 TYPE_INSTANCE_FLAG_CODE_SPACE.
6990 2014-02-12 Pedro Alves <palves@redhat.com>
6992 * h8300-tdep.c (pseudo_from_raw_register)
6993 (raw_from_pseudo_register): New functions.
6994 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6997 2014-02-12 Pedro Alves <palves@redhat.com>
6999 * h8300-tdep.c (h8300_register_sim_regno): New function.
7000 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7001 gdbarch_register_sim_regno hook.
7003 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7005 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7007 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7009 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7011 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7013 * obsd-tdep.h (obsd_init_abi): New prototype.
7014 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7015 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7016 (obsd_init_abi): New functions.
7017 * i386obsd-tdep.c: Include "obsd-tdep.h".
7018 (i386obsd_init_abi): Call obsd_init_abi.
7019 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7020 (amd64obsd_init_abi): Call obsd_init_abi.
7021 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7022 obsd-tdep.c to gdb_target_obs.
7024 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7026 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7027 double float arguments to 16-byte in the argument slots.
7029 2014-02-11 Doug Evans <xdje42@gmail.com>
7031 * configure.ac: Don't crash if pkg-config is not found and guile
7032 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7034 * configure: Regenerate.
7036 2014-02-11 Yao Qi <yao@codesourcery.com>
7038 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7039 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7040 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7041 * gnu-nat.c (gnu_xfer_memory): Likewise.
7042 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7043 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7045 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7047 2014-02-11 Yao Qi <yao@codesourcery.com>
7049 * target.h (enum target_xfer_error): Rename to ...
7050 (enum target_xfer_status): ... it. New. All users updated.
7051 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7053 (TARGET_XFER_STATUS_ERROR_P): New macro.
7054 (target_xfer_error_to_string): Remove declaration.
7055 (target_xfer_status_to_string): Declare.
7056 (target_xfer_partial_ftype): Adjust it.
7057 (struct target_ops) <to_xfer_partial>: Return
7058 target_xfer_status. Add argument xfered_len. Update
7060 * target.c (target_xfer_error_to_string): Rename to ...
7061 (target_xfer_status_to_string): ... it. New. All callers
7063 (target_read_live_memory): Likewise. Call target_xfer_partial
7064 instead of target_read.
7065 (memory_xfer_live_readonly_partial): Return
7066 target_xfer_status. Add argument xfered_len.
7067 (raw_memory_xfer_partial): Likewise.
7068 (memory_xfer_partial_1): Likewise.
7069 (memory_xfer_partial): Likewise.
7070 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7071 properly. Update debug message.
7072 (default_xfer_partial, current_xfer_partial): Likewise.
7073 (target_write_partial): Likewise.
7074 (target_read_partial): Likewise. All callers updated.
7075 (read_whatever_is_readable): Likewise.
7076 (target_write_with_progress): Likewise.
7077 (target_read_alloc_1): Likewise.
7079 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7080 * auxv.c (procfs_xfer_auxv): Likewise.
7081 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7082 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7083 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7084 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7085 * corefile.c (read_memory): Adjust.
7086 * corelow.c (core_xfer_partial): Likewise.
7087 * ctf.c (ctf_xfer_partial): Likewise.
7088 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7090 (darwin_xfer_partial): Likewise.
7091 * exec.c (section_table_xfer_memory_partial): Likewise. All
7093 (exec_xfer_partial): Likewise.
7094 * exec.h (section_table_xfer_memory_partial): Update
7096 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7098 (gnu_xfer_partial): Likewise.
7099 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7100 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7101 (ia64_hpux_xfer_solib_got): Likewise.
7102 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7103 type of 'partial_len' to ULONGEST.
7104 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7105 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7106 (linux_nat_xfer_partial): Likewise.
7107 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7108 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7109 * monitor.c (monitor_xfer_memory): Likewise.
7110 (monitor_xfer_partial): Likewise.
7111 * procfs.c (procfs_xfer_partial): Likewise.
7112 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7113 * record-full.c (record_full_xfer_partial): Likewise.
7114 (record_full_core_xfer_partial): Likewise.
7115 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7116 (gdbsim_xfer_partial): Likewise.
7117 * remote.c (remote_write_bytes_aux): Likewise. All callers
7119 (remote_write_bytes, remote_read_bytes): Likewise. All
7121 (remote_flash_erase): Likewise. All callers updated.
7122 (remote_write_qxfer): Likewise. All callers updated.
7123 (remote_read_qxfer): Likewise. All callers updated.
7124 (remote_xfer_partial): Likewise.
7125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7126 (rs6000_xfer_shared_libraries): Likewise.
7127 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7128 (sol_thread_xfer_partial): Likewise.
7129 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7130 (sparc_xfer_partial): Likewise.
7131 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7133 (spu_xfer_partial): Likewise.
7134 * spu-multiarch.c (spu_xfer_partial): Likewise.
7135 * tracepoint.c (tfile_xfer_partial): Likewise.
7136 * windows-nat.c (windows_xfer_memory): Likewise.
7137 (windows_xfer_shared_libraries): Likewise.
7138 (windows_xfer_partial): Likewise.
7139 * valprint.c: Replace 'target_xfer_error' with
7140 'target_xfer_status' in comments.
7142 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7144 Checked in by Joel Brobecker <brobecker@adacore.com>.
7145 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7147 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7149 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7150 function parameters.
7152 2014-02-10 Will Newton <will.newton@linaro.org>
7154 * elfread.c (elf_rel_plt_read): Look for a .got section if
7155 looking up .got.plt fails.
7156 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7157 on address passed to elf_gnu_ifunc_record_cache.
7158 (elf_gnu_ifunc_resolve_addr): Likewise.
7159 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7161 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7163 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7164 (X_RETTURN): New macro.
7165 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7167 * sparc64-tdep.c (sparc64_init_abi): Hook
7168 sparc_in_function_epilogue_p.
7170 2014-02-10 Gary Benson <gbenson@redhat.com>
7172 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7173 Rename name_matcher to symbol_matcher.
7175 2014-02-10 Gary Benson <gbenson@redhat.com>
7177 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7178 Use expand_symtabs_file_matcher_ftype and
7179 expand_symtabs_symbol_matcher_ftype.
7181 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7183 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7184 (struct ada_symbol_cache): New.
7185 (ada_free_symbol_cache): Forward declare.
7186 (struct ada_pspace_data): New.
7187 (ada_pspace_data_handle): New static global.
7188 (get_ada_pspace_data, ada_pspace_data_cleanup)
7189 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7190 (cache_space, cache): Delete, now folded inside struct
7192 (ada_get_symbol_cache): New function.
7193 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7195 (_initialize_ada_language): Remove initialization of cache_space.
7196 Move call to observer_attach_inferior_exit up, grouping it
7197 with the other observer registrations inside this function.
7198 Rename command to be more general. Add call to
7199 register_program_space_data_with_cleanup.
7201 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7203 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7204 ada_new_objfile_observer.
7205 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7206 (_initialize_tasks): Update uses of ada_new_objfile_observer
7207 and ada_tasks_normal_stop_observer.
7209 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7211 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7212 returned by the 'Length attribute to integer.
7214 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7216 * ada-lang.c (_initialize_ada_language): Initialize
7217 cache_space obstack.
7219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7221 * ada-lang.c (HASH_SIZE): New macro.
7222 (struct cache_entry): New type.
7223 (cache_space, cache): New static globals.
7224 (ada_clear_symbol_cache, find_entry): New functions.
7225 (lookup_cached_symbol, cache_symbol): Implement.
7226 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7227 (_initialize_ada_language): Attach ada_new_objfile_observer
7228 and ada_free_objfile_observer.
7230 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7232 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7233 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7234 struct block * parameter.
7235 (ada_lookup_symbol_list_worker): Constify local variable "block".
7236 Remove cast which is no longer necessary.
7238 2014-02-10 Doug Evans <xdje42@gmail.com>
7240 Add Guile as an extension language.
7241 * NEWS: Mention Guile scripting.
7242 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7243 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7244 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7245 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7246 (CLIBS): Add GUILE_LIBS.
7247 (install-guile): New rule.
7248 (guile.o): New rule.
7249 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7250 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7251 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7252 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7253 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7254 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7255 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7256 * configure.ac: New option --with-guile.
7257 * configure: Regenerate.
7258 * config.in: Regenerate.
7259 * auto-load.c: Remove #include "python/python.h". Add #include
7260 "gdb/section-scripts.h".
7261 (source_section_scripts): Handle Guile scripts.
7262 (_initialize_auto_load): Add name of Guile objfile script to
7263 scripts-directory help text.
7264 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7265 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7266 (struct breakpoint): New member scm_bp_object.
7267 * defs.h (enum command_control_type): New value guile_control.
7268 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7270 (show_user): Update comment.
7271 (_initialize_cli_cmds): Update help text for "show user". Update help
7272 text for max-user-call-depth.
7273 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7275 (multi_line_command_p): Add guile_control.
7276 (print_command_lines): Handle guile_control.
7277 (execute_control_command, recurse_read_control_structure): Ditto.
7278 (process_next_line): Recognize "guile" commands.
7279 * disasm.c (gdb_disassemble_info): Make non-static.
7280 * disasm.h: #include "dis-asm.h".
7281 (struct gdbarch): Add forward decl.
7282 (gdb_disassemble_info): Declare.
7283 * extension.c: #include "guile/guile.h".
7284 (extension_languages): Add guile.
7285 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7286 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7287 * gdbtypes.c (get_unsigned_type_max): New function.
7288 (get_signed_type_minmax): New function.
7289 * gdbtypes.h (get_unsigned_type_max): Declare.
7290 (get_signed_type_minmax): Declare.
7291 * guile/README: New file.
7292 * guile/guile-internal.h: New file.
7293 * guile/guile.c: New file.
7294 * guile/guile.h: New file.
7295 * guile/scm-arch.c: New file.
7296 * guile/scm-auto-load.c: New file.
7297 * guile/scm-block.c: New file.
7298 * guile/scm-breakpoint.c: New file.
7299 * guile/scm-disasm.c: New file.
7300 * guile/scm-exception.c: New file.
7301 * guile/scm-frame.c: New file.
7302 * guile/scm-gsmob.c: New file.
7303 * guile/scm-iterator.c: New file.
7304 * guile/scm-lazy-string.c: New file.
7305 * guile/scm-math.c: New file.
7306 * guile/scm-objfile.c: New file.
7307 * guile/scm-ports.c: New file.
7308 * guile/scm-pretty-print.c: New file.
7309 * guile/scm-safe-call.c: New file.
7310 * guile/scm-string.c: New file.
7311 * guile/scm-symbol.c: New file.
7312 * guile/scm-symtab.c: New file.
7313 * guile/scm-type.c: New file.
7314 * guile/scm-utils.c: New file.
7315 * guile/scm-value.c: New file.
7316 * guile/lib/gdb.scm: New file.
7317 * guile/lib/gdb/boot.scm: New file.
7318 * guile/lib/gdb/experimental.scm: New file.
7319 * guile/lib/gdb/init.scm: New file.
7320 * guile/lib/gdb/iterator.scm: New file.
7321 * guile/lib/gdb/printing.scm: New file.
7322 * guile/lib/gdb/types.scm: New file.
7323 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7324 (VPATH): Add $(GUILE_SRCDIR).
7325 (GUILE_DIR): New variable.
7326 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7327 (all): Add stamp-guile dependency.
7328 (stamp-guile): New rule.
7329 (clean-guile, install-guile, uninstall-guile): New rules.
7330 (install-only): Add install-guile dependency.
7331 (uninstall): Add uninstall-guile dependency.
7332 (clean): Add clean-guile dependency.
7334 2014-02-09 Doug Evans <xdje42@gmail.com>
7336 Revert this patch (which I approved, mea culpa).
7338 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7340 * Makefile.in (all-lib): Remove.
7341 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7343 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 Fix Python stack corruption.
7346 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7349 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7351 * Makefile.in (all-lib): Remove.
7352 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7354 2014-02-07 Doug Evans <dje@google.com>
7356 * extension-priv.h (extension_language_script_ops): Add comment.
7357 (extension_language_ops): Add comment.
7358 (active_ext_lang_state): Fix typo in comment.
7360 2014-02-07 Pedro Alves <palves@redhat.com>
7362 PR breakpoints/16292
7363 * infrun.c (handle_signal_stop) <signal arrives while stepping
7364 over a breakpoint>: Switch back to the stepping thread.
7366 2014-02-07 Yao Qi <yao@codesourcery.com>
7368 * target.c (target_xfer_partial): Return zero if LEN is zero.
7370 2014-02-07 Yao Qi <yao@codesourcery.com>
7372 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7373 (ld_so_xfer_auxv): Likewise.
7374 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7375 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7376 * corelow.c (core_xfer_partial): Likewise.
7377 * ctf.c (ctf_xfer_partial): Likewise.
7378 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7379 (darwin_xfer_partial): Likewise.
7380 * exec.c (exec_xfer_partial): Likewise.
7381 * gnu-nat.c (gnu_xfer_partial): Likewise.
7382 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7383 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7384 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7385 * linux-nat.c (linux_xfer_siginfo): Likewise.
7386 (linux_proc_xfer_spu): Likewise.
7387 * procfs.c (procfs_xfer_partial): Likewise.
7388 * record-full.c (record_full_xfer_partial): Likewise.
7389 (record_full_core_xfer_partial): Likewise.
7390 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7391 * remote.c (remote_write_qxfer): Likewise.
7392 (remote_write_qxfer, remote_read_qxfer): Likewise.
7393 (remote_xfer_partial): Likewise.
7394 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7395 (rs6000_xfer_shared_libraries): Likewise.
7396 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7397 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7398 (spu_xfer_partial): Likewise.
7399 * target.c (memory_xfer_partial_1): Likewise.
7400 * tracepoint.c (tfile_xfer_partial): Likewise.
7401 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7402 (windows_xfer_partial): Likewise.
7404 2014-02-07 Yao Qi <yao@codesourcery.com>
7406 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7408 (core_xfer_shared_libraries_aix): Likewise.
7409 * gdbarch.c, gdbarch.h: Regenerated.
7410 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7411 ULONGEST. Change 'len_avail' type to ULONGEST.
7412 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7413 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7415 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7417 2014-02-07 Yao Qi <yao@codesourcery.com>
7419 * corefile.c (memory_error): Get 'exception' from ERR and pass
7420 'exception' to throw_error.
7422 2014-02-06 Doug Evans <xdje42@gmail.com>
7424 * configure.ac (libpython checking): Remove all but python.o from
7425 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7426 * configure: Regenerate.
7428 * Makefile.in (SFILES): Add extension.c.
7429 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7430 (COMMON_OBS): Add extension.o.
7431 * extension.h: New file.
7432 * extension-priv.h: New file.
7433 * extension.c: New file.
7435 * python/python-internal.h: #include "extension.h".
7436 (gdbpy_auto_load_enabled): Declare.
7437 (gdbpy_apply_val_pretty_printer): Declare.
7438 (gdbpy_apply_frame_filter): Declare.
7439 (gdbpy_preserve_values): Declare.
7440 (gdbpy_breakpoint_cond_says_stop): Declare.
7441 (gdbpy_breakpoint_has_cond): Declare.
7442 (void source_python_script_for_objfile): Delete.
7443 * python/python.c: #include "extension-priv.h".
7444 Delete inclusion of "observer.h".
7445 (extension_language_python): Moved here and renamed from
7446 script_language_python in py-auto-load.c.
7447 Redefined to be of type extension_language_defn.
7448 (python_extension_script_ops): New global.
7449 (python_extension_ops): New global.
7450 (struct python_env): New member previous_active.
7451 (restore_python_env): Call restore_active_ext_lang.
7452 (ensure_python_env): Call set_active_ext_lang.
7453 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7455 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7457 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7459 (gdbpy_eval_from_control_command): Renamed from
7460 eval_python_from_control_command, made static. New arg extlang.
7461 (gdbpy_source_script) Renamed from source_python_script, made static.
7463 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7464 result to int. New arg extlang.
7465 (gdbpy_source_objfile_script): Renamed from
7466 source_python_script_for_objfile, made static. New arg extlang.
7467 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7468 static. New args extlang, extlang_printers. Change result type to
7470 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7471 static. New arg extlang. Rename arg printers to extlang_printers
7472 and change type to ext_lang_type_printers *.
7473 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7474 static. Replace argument arg with extlang, extlang_printers.
7475 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7476 (!HAVE_PYTHON, source_python_script): Delete.
7477 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7478 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7479 (!HAVE_PYTHON, start_type_printers): Delete.
7480 (!HAVE_PYTHON, apply_type_printers): Delete.
7481 (!HAVE_PYTHON, free_type_printers): Delete.
7482 (_initialize_python): Delete call to observer_attach_before_prompt.
7483 (finalize_python): Set/restore active extension language.
7484 (gdbpy_finish_initialization) Renamed from
7485 finish_python_initialization, made static. New arg extlang.
7486 (gdbpy_initialized): New function.
7487 * python/python.h: #include "extension.h". Delete #include
7488 "value.h", "mi/mi-cmds.h".
7489 (extension_language_python): Declare.
7490 (GDBPY_AUTO_FILE_NAME): Delete.
7491 (enum py_bt_status): Moved to extension.h and renamed to
7493 (enum frame_filter_flags): Moved to extension.h.
7494 (enum py_frame_args): Moved to extension.h and renamed to
7495 ext_lang_frame_args.
7496 (finish_python_initialization): Delete.
7497 (eval_python_from_control_command): Delete.
7498 (source_python_script): Delete.
7499 (apply_val_pretty_printer): Delete.
7500 (apply_frame_filter): Delete.
7501 (preserve_python_values): Delete.
7502 (gdbpy_script_language_defn): Delete.
7503 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7504 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7506 * auto-load.c: #include "extension.h".
7507 (GDB_AUTO_FILE_NAME): Delete.
7508 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7509 (script_language_gdb): Delete, moved to extension.c and renamed to
7510 extension_language_gdb.
7511 (source_gdb_script_for_objfile): Delete.
7512 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7513 (loaded_script): Change type of language member to
7514 struct extension_language_defn *.
7515 (init_loaded_scripts_info): Initialize
7516 unsupported_script_warning_printed.
7517 (maybe_add_script): Make static. Change type of language arg to
7518 struct extension_language_defn *.
7519 (clear_section_scripts): Reset unsupported_script_warning_printed.
7520 (auto_load_objfile_script_1): Rewrite to use extension language API.
7521 (auto_load_objfile_script): Make public. Remove support-compiled-in
7522 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7523 (source_section_scripts): Rewrite to use extension language API.
7524 (load_auto_scripts_for_objfile): Rewrite to use
7525 auto_load_scripts_for_objfile.
7526 (collect_matching_scripts_data): Change type of language member to
7527 struct extension_language_defn *.
7528 (auto_load_info_scripts): Change type of language arg to
7529 struct extension_language_defn *.
7530 (unsupported_script_warning_print): New function.
7531 (script_not_found_warning_print): Make static.
7532 (_initialize_auto_load): Rewrite construction of scripts-directory
7534 * auto-load.h (struct objfile): Add forward decl.
7535 (struct script_language): Delete.
7536 (struct auto_load_pspace_info): Add forward decl.
7537 (struct extension_language_defn): Add forward decl.
7538 (maybe_add_script): Delete.
7539 (auto_load_objfile_script): Declare.
7540 (script_not_found_warning_print): Delete.
7541 (auto_load_info_scripts): Update prototype.
7542 (auto_load_gdb_scripts_enabled): Declare.
7543 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7544 auto_load_python_scripts_enabled and made public.
7545 (script_language_python): Delete, moved to python.c.
7546 (gdbpy_script_language_defn): Delete.
7547 (info_auto_load_python_scripts): Update to use
7548 extension_language_python.
7550 * breakpoint.c (condition_command): Replace call to
7551 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7552 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7553 with call to breakpoint_ext_lang_cond_says_stop.
7554 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7555 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7556 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7557 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7559 (local_setattro): Print name of extension language with existing
7562 * valprint.c (val_print, value_print): Update to call
7563 apply_ext_lang_val_pretty_printer.
7564 * cp-valprint.c (cp_print_value): Update call to
7565 apply_ext_lang_val_pretty_printer.
7566 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7567 (gdbpy_apply_val_pretty_printer): Renamed from
7568 apply_val_pretty_printer. New arg extlang.
7569 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7571 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7572 extension language API.
7573 * cli/cli-script.c (execute_control_command): Update to call
7574 eval_ext_lang_from_control_command.
7576 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7577 enum ext_lang_bt_status values. Update call to
7578 apply_ext_lang_frame_filter.
7579 (mi_cmd_stack_list_locals): Ditto.
7580 (mi_cmd_stack_list_args): Ditto.
7581 (mi_cmd_stack_list_variables): Ditto.
7582 * mi/mi-main.c: Delete #include "python/python-internal.h".
7583 Add #include "extension.h".
7584 (mi_cmd_list_features): Replace reference to python internal variable
7585 gdb_python_initialized with call to ext_lang_initialized_p.
7587 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7588 Update to use enum ext_lang_frame_args. Update to call
7589 apply_ext_lang_frame_filter.
7590 * python/py-framefilter.c (extract_sym): Update to use enum
7592 (extract_value, py_print_type, py_print_value): Ditto.
7593 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7594 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7595 (py_print_frame): Ditto.
7596 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7597 New arg extlang. Update to use enum ext_lang_bt_status.
7599 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7600 finish_python_initialization. Replace with call to
7601 finish_ext_lang_initialization.
7603 * typeprint.c (do_free_global_table): Update to call
7604 free_ext_lang_type_printers.
7605 (create_global_typedef_table): Update to call
7606 start_ext_lang_type_printers.
7607 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7608 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7609 (type_print_options): Change type of global_printers from "void *"
7610 to "struct ext_lang_type_printers *".
7612 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7613 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7614 (gdbpy_preserve_values): Renamed from preserve_python_values.
7616 (!HAVE_PYTHON, preserve_python_values): Delete.
7618 * utils.c (quit_flag): Delete, moved to extension.c.
7619 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7622 * eval.c: Delete #include "python/python.h".
7623 * main.c: Delete #include "python/python.h".
7625 * defs.h: Update comment.
7627 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7631 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7633 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7636 2014-02-05 Yao Qi <yao@codesourcery.com>
7638 * remote.c (remote_pass_signals): Remove local 'buf' and use
7640 (remote_program_signals): Likewise.
7642 2014-02-05 Yao Qi <yao@codesourcery.com>
7644 * ctf.c: Include "inferior.h" and "gdbthread.h".
7645 (CTF_PID): A new macro.
7646 (ctf_open): Call inferior_appeared and add_thread_silent.
7647 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7648 (ctf_thread_alive): New function.
7649 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7651 2014-02-05 Yao Qi <yao@codesourcery.com>
7655 2013-05-24 Yao Qi <yao@codesourcery.com>
7657 * tracepoint.c (TFILE_PID): Remove.
7658 (tfile_open): Don't add thread and inferior.
7659 (tfile_close): Don't set 'inferior_ptid'. Don't call
7660 exit_inferior_silent.
7661 (tfile_thread_alive): Remove.
7662 (init_tfile_ops): Don't set field 'to_thread_alive' of
7665 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7667 * remote.c (remote_start_remote): Call remote_check_symbols even
7668 if only symbol-file (not file) has been given.
7670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7672 * gdbarch.sh (skip_entrypoint): New callback.
7673 * gdbarch.c, gdbarch.h: Regenerate.
7674 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7675 * infrun.c (fill_in_stop_func): Likewise.
7676 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7677 (ppc_elfv2_elf_make_msymbol_special): New function.
7678 (ppc_elfv2_skip_entrypoint): Likewise.
7679 (ppc_linux_init_abi): Install them for ELFv2.
7681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7683 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7684 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7685 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7686 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7687 structures returned in GPRs.
7689 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7691 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7692 offset to the stack parameter list for the ELFv2 ABI.
7694 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7696 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7697 set_gdbarch_convert_from_func_ptr_addr and
7698 set_gdbarch_elf_make_msymbol_special for ELFv1.
7699 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7700 function descriptors on ELFv1.
7701 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7702 set up r12 at function entry.
7704 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7706 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7707 (struct gdbarch_tdep): New member elf_abi.
7709 * rs6000-tdep.c: Include "elf/ppc64.h".
7710 (rs6000_gdbarch_init): Detect ELF ABI version.
7712 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7714 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7715 within a register pair holding a DFP 128-bit value on little-endian.
7716 (ppc64_sysv_abi_return_value_base): Likewise.
7717 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7718 (dfp_pseudo_register_write): Likewise.
7720 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7723 offset on little-endian when passing _Decimal32.
7724 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7726 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7728 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7729 of the overlapped FP register within the VSX register on little-
7731 (efpr_pseudo_register_write): Likewise.
7733 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7735 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7736 offset on little-endian when passing small structures.
7738 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7740 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7741 (struct ppc64_sysv_argpos): New data structure.
7742 (ppc64_sysv_abi_push_float): Remove.
7743 (ppc64_sysv_abi_push_val): New function.
7744 (ppc64_sysv_abi_push_integer): Likewise.
7745 (ppc64_sysv_abi_push_freg): Likewise.
7746 (ppc64_sysv_abi_push_vreg): Likewise.
7747 (ppc64_sysv_abi_push_param): Likewise.
7748 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7749 (ppc64_sysv_abi_return_value_base): New function.
7750 (ppc64_sysv_abi_return_value): Refactor to use it.
7752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7754 * NEWS: Document new target powerpc64le-*-linux*.
7756 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7758 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7759 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7761 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7762 register set used in ELF core dumps. Add floating-point register set.
7764 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7766 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7767 dwarf2_to_gdb[] table using symbolic constants. Adjust
7768 penultimate entry from number representing the PC register
7769 to symbolic constant representing the MDR register. Add
7770 constant for the PC register to the end of the table.
7772 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7774 * bsd-kvm.c: Include <sys/param.h>
7776 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7778 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7780 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7782 * ada-lang.h (clear_ada_sym_cache): Delete.
7784 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7786 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7788 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7790 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7791 the sigreturn register save area only if the syscall is
7794 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7796 * valops.c (value_slice): Minor reformatting.
7798 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7800 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7802 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7804 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7806 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7807 (ada_ignore_descriptive_types_p): New static global.
7808 (find_parallel_type_by_descriptive_type): Return immediately
7809 if ada_ignore_descriptive_types_p is set.
7810 (_initialize_ada_language): Register new commands "maintenance
7811 set ada", "maintenance show ada", "maintenance set ada
7812 ignore-descriptive-types" and "maintenance show ada
7813 ignore-descriptive-types".
7814 * NEWS: Add entry for new "maint ada set/show
7815 ignore-descriptive-types" commands.
7817 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7819 * record-btrace.c (record_btrace_close): Call btrace_teardown
7822 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7824 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7827 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7829 * ada-typeprint (type_is_full_subrange_of_target_type):
7831 (print_range): Add parameter bounds_prefered_p. If not set,
7832 try printing range types using the name of their base type.
7833 (print_range_type): Add parameter bounds_prefered_p.
7834 Use it in call to print_range.
7835 (print_array_type, ada_print_type): Update calls to print_range
7836 and print_range_type.
7838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7840 * ada-typeprint.c (print_array_type, print_choices, print_range)
7841 (print_range_bound, print_dynamic_range_bound, print_range_type):
7844 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7846 * ada-typeprint.c (print_range): Add missing empty line
7847 after local declaration.
7849 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7851 * ada-valprint.c (print_optional_low_bound): Get index_type's
7852 target type for as long as it is a TYPE_CODE_RANGE.
7854 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7856 * procfs.c (procfs_make_note_section): Remove assertion and
7859 2014-01-24 Yao Qi <yao@codesourcery.com>
7861 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7862 * corelow.c (get_core_siginfo): Likewise.
7864 2014-01-24 Yao Qi <yao@codesourcery.com>
7866 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7867 ULONGEST. Don't check 'len' is negative.
7868 (remote_write_bytes): Change type of 'len' to ULONGEST.
7870 2014-01-23 Tom Tromey <tromey@redhat.com>
7873 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7874 Handle exception from frame.block.
7875 (FrameVars.fetch_frame_locals): Likewise.
7877 2014-01-23 Tom Tromey <tromey@redhat.com>
7880 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7881 on a NULL pointer. Move "goto error" to correct place.
7883 2014-01-23 Tom Tromey <tromey@redhat.com>
7886 * python/py-framefilter.c (apply_frame_filter): Call
7887 ensure_python_env after computing gdbarch.
7889 2014-01-23 Yao Qi <yao@codesourcery.com>
7891 * target.c (raw_memory_xfer_partial): Change argument type
7892 from void * to gdb_byte *.
7893 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7895 2014-01-22 Doug Evans <dje@google.com>
7897 New gdbserver option --debug-format=timestamp.
7900 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7902 * syscalls/s390x-linux.xml: New file.
7903 * syscalls/s390-linux.xml: New file.
7904 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7905 (XML_SYSCALL_FILENAME_S390X): Likewise.
7906 (op_svc): New enum value for SVC opcode.
7907 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7908 (s390_linux_get_syscall_number): New function.
7909 (s390_gdbarch_init): Register '*get_syscall_number' and the
7910 syscall xml file name.
7911 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7912 "s390-linux.xml" and "s390x-linux.xml".
7913 * NEWS: Announce new feature.
7915 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7917 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7919 2014-01-22 Pedro Alves <palves@redhat.com>
7921 * xtensa-config.c: Include defs.h.
7923 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7925 * common/common-utils.h: Add "ARI:" comment beside __func__
7928 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7930 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7931 documentation a bit.
7933 2014-01-21 Roland McGrath <mcgrathr@google.com>
7935 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7936 * configure: Regenerate.
7937 * aclocal.m4: Regenerate.
7938 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7939 New substituted variables.
7940 (install-strip): New target.
7941 (INSTALL_SCRIPT): New substituted variable.
7942 (FLAGS_TO_PASS): Add it.
7943 (install-only): Use $(INSTALL_SCRIPT) rather than
7944 $(INSTALL_PROGRAM) for gcore.
7946 2014-01-20 Tom Tromey <tromey@redhat.com>
7948 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7951 2014-01-20 Tom Tromey <tromey@redhat.com>
7953 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7954 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7955 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7956 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7957 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7958 (struct cmd_list_element) <flags>: Remove.
7959 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7960 doc_allocated>: New fields.
7961 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7963 * maint.c (maintenance_do_deprecate): Update.
7964 * top.c (execute_command): Update.
7966 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7968 * xtensa-linux-nat.c: Include asm/ptrace.h.
7970 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7972 * Makefile.in (SFILES): Add d-support.c.
7973 (COMMON_OBS): Add d-support.o.
7974 * d-lang.h (d_parse_symbol): Add comment, now defined in
7976 * d-lang.c (parse_call_convention)
7977 (parse_attributes, parse_function_types)
7978 (parse_function_args, parse_type, parse_identifier)
7979 (call_convention_p, d_parse_symbol): Move functions to ...
7980 * d-support.c: ... New file.
7982 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7984 * d-lang.h (d_parse_symbol): Add declaration.
7985 * d-lang.c (extract_identifiers)
7986 (extract_type_info): Remove functions.
7987 (parse_call_convention, parse_attributes)
7988 (parse_function_types, parse_function_args)
7989 (parse_type, parse_identifier, call_convention_p)
7990 (d_parse_symbol): New functions.
7991 (d_demangle): Use d_parse_symbol to demangle D symbols.
7993 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7995 * d-lang.h (struct builtin_d_type): New data type.
7996 (builtin_d_type): Add declaration.
7997 * d-lang.c (d_language_arch_info, build_d_types)
7998 (builtin_d_type): New functions.
7999 (enum d_primitive_types): New data type.
8000 (d_language_defn): Change c_language_arch_info to
8001 d_language_arch_info.
8002 (d_type_data): New static variable.
8003 (_initialize_d_language): Initialize d_type_data.
8005 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8007 * d-lang.h (d_main_name): Add declaration.
8008 * d-lang.c (d_main_name): New function.
8009 * symtab.c (find_main_name): Add call to d_main_name.
8011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8013 * d-lang.c (d_language_defn): Change macro_expansion_c to
8016 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8018 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8020 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8022 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8023 gdb_exception" declaration.
8024 * remote.c (getpkt_or_notif_sane): Likewise.
8026 2014-01-17 Doug Evans <dje@google.com>
8028 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8029 function, contents of dirnames_to_char_ptr_vec_append moved here.
8030 (delim_string_to_char_ptr_vec): New function.
8031 (dirnames_to_char_ptr_vec_append): Rewrite.
8032 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8034 2014-01-17 Doug Evans <dje@google.com>
8036 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8038 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8039 #include "common-utils.h".
8040 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8041 * common/vec.h (VEC_ASSERT_PASS): Update.
8042 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8043 (MACH_CHECK_ERROR): Update.
8045 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8047 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8049 * gdbarch.h: Regenerate.
8051 2014-01-16 Tom Tromey <tromey@redhat.com>
8053 * value.c (struct value) <regnum>: Move earlier.
8055 2014-01-16 Tom Tromey <tromey@redhat.com>
8057 * remote.c (extended_remote_create_inferior): Rename from
8058 extended_remote_create_inferior_1. Add "ops" argument. Remove
8061 2014-01-16 Pedro Alves <palves@redhat.com>
8063 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8064 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8067 2014-01-16 Doug Evans <dje@google.com>
8069 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8073 * btrace.h (btrace_thread_flag): New.
8074 (struct btrace_thread_info) <flags>: New.
8075 * record-btrace.c (record_btrace_resume_thread)
8076 (record_btrace_find_thread_to_move, btrace_step_no_history)
8077 (btrace_step_stopped, record_btrace_start_replaying)
8078 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8079 (record_btrace_find_resume_thread): New.
8080 (record_btrace_resume, record_btrace_wait): Extend.
8081 (record_btrace_can_execute_reverse): New.
8082 (record_btrace_open): Fail in non-stop mode.
8083 (record_btrace_set_replay): Split into this, ...
8084 (record_btrace_stop_replaying): ... this, ...
8085 (record_btrace_clear_histories): ... and this.
8086 (init_record_btrace_ops): Init to_can_execute_reverse.
8087 * NEWS: Announce it.
8089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8091 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8092 (forward_target_decr_pc_after_break)
8093 (target_decr_pc_after_break): New.
8094 * target.c (forward_target_decr_pc_after_break)
8095 (target_decr_pc_after_break): New.
8096 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8097 instead of gdbarch_decr_pc_after_break.
8098 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8099 instead of gdbarch_decr_pc_after_break.
8100 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8101 instead of gdbarch_decr_pc_after_break.
8102 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8103 instead of gdbarch_decr_pc_after_break.
8104 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8105 instead of gdbarch_decr_pc_after_break.
8106 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8107 instead of gdbarch_decr_pc_after_break.
8109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8111 * btrace.c: Include regcache.h.
8112 (btrace_add_pc): New.
8113 (btrace_enable): Call btrace_add_pc.
8114 (btrace_is_empty): New.
8115 * btrace.h (btrace_is_empty): New.
8116 * record-btrace.c (require_btrace, record_btrace_info): Call
8119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8121 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8122 Support delta reads.
8123 (linux_disable_btrace): Change return type.
8124 * common/linux-btrace.h (linux_read_btrace): Change parameters
8125 and return type to allow error reporting. Update users.
8126 (linux_disable_btrace): Change return type. Update users.
8127 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8129 (btrace_error): New.
8130 (btrace_block) <begin>: Comment on BEGIN == 0.
8131 * btrace.c (btrace_compute_ftrace): Start from the end of
8133 (btrace_stitch_trace, btrace_clear_history): New.
8134 (btrace_fetch): Read delta trace, return if replaying.
8135 (btrace_clear): Move clear history code to btrace_clear_history.
8136 (parse_xml_btrace): Throw an error if parsing failed.
8137 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8138 and return type to allow error reporting.
8139 (target_read_btrace): Change parameters and return type to allow
8141 * target.c (target_read_btrace): Update.
8142 * remote.c (remote_read_btrace): Support delta reads. Pass
8144 * NEWS: Announce it.
8146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8148 * record.h (record_btrace_frame_unwind)
8149 (record_btrace_tailcall_frame_unwind): New declarations.
8150 * dwarf2-frame: Include record.h
8151 (dwarf2_frame_cfa): Throw an error for btrace frames.
8152 * record-btrace.c: Include hashtab.h.
8153 (btrace_get_bfun_name): New.
8154 (btrace_call_history): Call btrace_get_bfun_name.
8155 (struct btrace_frame_cache): New.
8157 (bfcache_hash, bfcache_eq, bfcache_new): New.
8158 (btrace_get_frame_function): New.
8159 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8160 (record_btrace_frame_this_id): Compute own id.
8161 (record_btrace_frame_prev_register): Provide PC, throw_error
8162 for all other registers.
8163 (record_btrace_frame_sniffer): Detect btrace frames.
8164 (record_btrace_tailcall_frame_sniffer): New.
8165 (record_btrace_frame_dealloc_cache): New.
8166 (record_btrace_frame_unwind): Add new functions.
8167 (record_btrace_tailcall_frame_unwind): New.
8168 (_initialize_record_btrace): Allocate cache.
8169 * btrace.c (btrace_clear): Call reinit_frame_cache.
8170 * NEWS: Announce it.
8172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8174 * record-btrace.c (record_btrace_set_replay)
8175 (record_btrace_goto_begin, record_btrace_goto_end)
8176 (record_btrace_goto): New.
8177 (init_record_btrace_ops): Initialize them.
8178 * NEWS: Announce it.
8180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8182 * record-btrace.c (record_btrace_find_new_threads)
8183 (record_btrace_thread_alive): New.
8184 (init_record_btrace_ops): Initialize to_find_new_threads and
8187 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8189 * record-btrace.c (record_btrace_resume): New.
8190 (record_btrace_wait): New.
8191 (init_record_btrace_ops): Initialize to_wait and to_resume.
8193 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8195 * record-btrace.c (record_btrace_xfer_partial)
8196 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8197 (record_btrace_allow_memory_access): New.
8198 (init_record_btrace_ops): Initialize new methods.
8199 * target.c (raw_memory_xfer_partial): Bail out if target reports
8200 that this memory is not available.
8202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8204 * target.h (target_ops) <to_insert_breakpoint>
8205 <to_remove_breakpoint>: Add target_ops parameter.
8206 (forward_target_insert_breakpoint): New.
8207 (forward_target_remove_breakpoint): New.
8208 (memory_remove_breakpoint, memory_insert_breakpoint):
8209 Add target_ops parameter.
8210 * target.c (target_insert_breakpoint): Split into this and ...
8211 (forward_target_insert_breakpoint): ... this.
8212 (target_remove_breakpoint): Split into this and ...
8213 (forward_target_remove_breakpoint): ... this.
8214 (debug_to_insert_breakpoint): Add target_ops parameter.
8215 Call forward_target_insert_breakpoint.
8216 (debug_to_remove_breakpoint): Add target_ops parameter.
8217 Call forward_target_remove_breakpoint.
8218 (update_current_target): Do not inherit or default to_insert_breakpoint
8219 and to_remove_breakpoint.
8220 * corelow.c (ignore): Add target_ops parameter.
8221 * exec.c (ignore): Add target_ops parameter.
8222 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8223 Add target_ops parameter.
8224 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8225 Add target_ops parameter.
8226 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8227 Add target_ops parameter.
8228 * record-full.c (record_full_beneath_to_insert_breakpoint)
8229 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8230 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8231 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8232 (record_full_core_remove_breakpoint): Add target_ops parameter.
8234 (record_full_beneath_to_insert_breakpoint_ops)
8235 (record_full_beneath_to_remove_breakpoint_ops)
8236 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8237 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8238 tmp_to_remove_breakpoint_ops,
8239 record_full_beneath_to_insert_breakpoint_ops, and
8240 record_full_beneath_to_remove_breakpoint_ops.
8241 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8242 (m32r_remove_breakpoint): Add target_ops parameter.
8243 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8244 Add target_ops parameter.
8245 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8246 Add target_ops parameter.
8248 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8249 Markus Metzger <markus.t.metzger@intel.com>
8251 * record-btrace.c: Include frame-unwind.h.
8252 (record_btrace_frame_unwind_stop_reason)
8253 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8254 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8256 (init_record_btrace_ops): Install it.
8258 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8263 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8265 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8268 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8270 * frame-unwind.c: Include target.h.
8271 (frame_unwind_try_unwinder): New function with code from ...
8272 (frame_unwind_find_by_frame): ... here. New variable
8273 unwinder_from_target, call also target_get_unwinder)
8274 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8275 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8276 * target.h (struct target_ops): New fields to_get_unwinder and
8277 to_get_tailcall_unwinder.
8278 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8282 * record-btrace.c (record_btrace_fetch_registers)
8283 (record_btrace_store_registers)
8284 (record_btrace_to_prepare_to_store): New.
8285 (init_record_btrace_ops): Add the above.
8287 2014-01-16 Tom Tromey <tromey@redhat.com>
8289 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8290 * target.h (struct target_ops) <to_prepare_to_store>: Add
8292 (target_prepare_to_store): Add argument.
8293 * target.c (debug_to_prepare_to_store): Add argument.
8294 (update_current_target): Update.
8295 * remote.c (remote_prepare_to_store): Add 'self' argument.
8296 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8297 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8298 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8299 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8301 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8302 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8303 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8304 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8305 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8307 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8309 * btrace.h (replay) <replay>: New.
8310 (btrace_is_replaying): New.
8311 * btrace.c (btrace_clear): Free replay iterator.
8312 (btrace_is_replaying): New.
8313 * record-btrace.c (record_btrace_is_replaying): New.
8314 (record_btrace_info): Print insn number if replaying.
8315 (record_btrace_insn_history): Start at replay position.
8316 (record_btrace_call_history): Start at replay position.
8317 (init_record_btrace_ops): Init to_record_is_replaying.
8319 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8321 * record-btrace.c (record_btrace_insn_history_range): Include
8323 (record_btrace_insn_history_from): Adjust range.
8324 (record_btrace_call_history_range): Include
8326 (record_btrace_call_history_from): Adjust range.
8327 * NEWS: Announce changes.
8329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8331 * record.h (enum record_print_flag)
8332 <record_print_indent_calls>: New.
8333 * record.c (get_call_history_modifiers): Recognize /c modifier.
8334 (_initialize_record): Document /c modifier.
8335 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8336 Reorder fields. Optionally indent the function name. Update
8338 * NEWS: Announce changes.
8340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8342 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8346 * btrace.c (ftrace_new_function): Start counting at one.
8347 * record-btrace.c (record_btrace_info): Adjust number of calls
8349 * NEWS: Announce it.
8351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8353 * record-btrace.c (btrace_call_history_insn_range): Print
8354 insn range as [begin, end].
8356 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8358 * btrace.h (struct btrace_func_link): New.
8359 (enum btrace_function_flag): New.
8360 (struct btrace_inst): Rename to ...
8361 (struct btrace_insn): ...this. Update all users.
8362 (struct btrace_func) <ibegin, iend>: Remove.
8363 (struct btrace_func_link): New.
8364 (struct btrace_func): Rename to ...
8365 (struct btrace_function): ...this. Update all users.
8366 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8367 (number, level, flags>: New.
8368 (struct btrace_insn_iterator): Rename to ...
8369 (struct btrace_insn_history): ...this.
8371 (struct btrace_insn_iterator, btrace_call_iterator): New.
8372 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8373 (struct btrace_target_info) <begin, end, level>
8374 <insn_history, call_history>: New.
8375 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8376 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8377 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8378 (btrace_call_number, btrace_call_begin, btrace_call_end)
8379 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8380 (btrace_find_function_by_number, btrace_set_insn_history)
8381 (btrace_set_call_history): New.
8382 * btrace.c (btrace_init_insn_iterator)
8383 (btrace_init_func_iterator, compute_itrace): Remove.
8384 (ftrace_print_function_name, ftrace_print_filename)
8385 (ftrace_skip_file): Change
8387 (ftrace_init_func): Remove.
8388 (ftrace_debug): Use new btrace_function fields.
8389 (ftrace_function_switched): Also consider gaining and
8390 losing symbol information).
8391 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8392 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8393 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8395 (ftrace_new_function): Move. Remove debug print.
8396 (ftrace_update_lines, ftrace_update_insns): New.
8397 (ftrace_update_function): Check for call, ret, and jump.
8398 (compute_ftrace): Renamed to ...
8399 (btrace_compute_ftrace): ...this. Rewritten to compute call
8401 (btrace_fetch, btrace_clear): Updated.
8402 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8403 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8404 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8405 (btrace_call_number, btrace_call_begin, btrace_call_end)
8406 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8407 (btrace_find_function_by_number, btrace_set_insn_history)
8408 (btrace_set_call_history): New.
8409 * record-btrace.c (require_btrace): Use new btrace thread
8411 (record_btrace_info, btrace_insn_history)
8412 (record_btrace_insn_history, record_btrace_insn_history_range):
8413 Use new btrace thread info fields and new iterator.
8414 (btrace_func_history_src_line): Rename to ...
8415 (btrace_call_history_src_line): ...this. Use new btrace
8417 (btrace_func_history): Rename to ...
8418 (btrace_call_history): ...this. Use new btrace thread info
8419 fields and new iterator.
8420 (record_btrace_call_history, record_btrace_call_history_range):
8421 Use new btrace thread info fields and new iterator.
8423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8425 * frame.h (frame_id_build_unavailable_stack_special): New.
8426 * frame.c (frame_id_build_unavailable_stack_special): New.
8428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8430 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8431 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8432 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8434 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8435 (i386_insn_is_jump, i386_jmp_p): New.
8436 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8437 insn_is_jump to gdbarch.
8438 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8439 * gdbarch.h: Regenerated.
8440 * gdbarch.c: Regenerated.
8441 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8442 (default_insn_is_jump): New.
8443 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8444 (default_insn_is_jump): New.
8446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8448 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8450 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8451 (btrace_read_type) <btrace_read_new>: Change to ...
8452 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8456 * common/linux-btrace.c (linux_read_btrace): Free trace from
8459 2014-01-15 Doug Evans <dje@google.com>
8461 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8464 2014-01-15 Tom Tromey <tromey@redhat.com>
8466 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8467 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8468 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8469 (set_objfile_main_name): New function.
8470 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8471 language_of_main>: New fields.
8472 (set_objfile_main_name): Declare.
8473 * symtab.c (find_main_name): Loop over objfiles to find the main
8475 (set_main_name): Now static.
8476 (get_main_info): Add comment.
8477 * symtab.h (set_main_name): Don't declare.
8479 2014-01-15 Tom Tromey <tromey@redhat.com>
8481 * symtab.c (main_progspace_key): New global.
8482 (struct main_info): New.
8483 (name_of_main, language_of_main): Remove.
8484 (get_main_info, main_info_cleanup): New function.
8485 (set_main_name, main_name, main_language): Use get_main_info.
8486 (_initialize_symtab): Initialize main_progspace_key.
8488 2014-01-15 Tom Tromey <tromey@redhat.com>
8490 * dbxread.c (process_one_symbol): Update.
8491 * dwarf2read.c (read_partial_die): Update.
8492 * symfile.c (set_initial_language): Call main_language.
8493 * symtab.c (language_of_main): Now static.
8494 (set_main_name): Add 'lang' parameter.
8495 (find_main_name): Update.
8496 (main_language): New function.
8497 (symtab_observer_executable_changed): Update.
8498 * symtab.h (set_main_name): Update.
8499 (language_of_main): Remove.
8500 (main_language): Declare.
8502 2014-01-15 Tom Tromey <tromey@redhat.com>
8504 * symfile.c (init_entry_point_info): Use new "initialized" field.
8506 * objfiles.h (struct entry_point) <initialized>: New field.
8507 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8508 (struct objfile) <ei>: ...here. Remove.
8509 * objfiles.c (entry_point_address_query): Update.
8511 2014-01-15 Tom Tromey <tromey@redhat.com>
8513 * objfiles.c (entry_point_address_query): Relocate entry point
8515 (objfile_relocate1): Do not relocate entry point address.
8516 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8517 <the_bfd_section_index>: New field.
8518 * symfile.c (init_entry_point_info): Find the entry point's
8521 2014-01-15 Tom Tromey <tromey@redhat.com>
8523 * solib-frv.c (enable_break): Use entry_point_address_query.
8525 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8527 * NEWS: Add note on improved process record-replay on
8528 arm*-linux* targets.
8530 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8532 * arm-tdep.c (enum arm_record_result): New enum.
8533 (arm_record_unsupported_insn): New function.
8534 (arm_record_coproc_data_proc): Removed.
8535 (thumb2_record_ld_st_multiple): New function.
8536 (thumb2_record_ld_st_dual_ex_tbb): New function.
8537 (thumb2_record_data_proc_sreg_mimm): New function.
8538 (thumb2_record_ps_dest_generic): New function.
8539 (thumb2_record_branch_misc_cntrl): New function.
8540 (thumb2_record_str_single_data): New function.
8541 (thumb2_record_ld_mem_hints): New function.
8542 (thumb2_record_ld_word): New function.
8543 (thumb2_record_lmul_lmla_div): New function.
8544 (thumb2_record_decode_insn_handler): New function.
8545 (decode_insn): Add thumb32 instruction handlers.
8547 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8549 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8550 (struct arm_linux_record_tdep): Declare.
8551 (arm_canonicalize_syscall): New function.
8552 (arm_all_but_pc_registers_record): New function.
8553 (arm_linux_syscall_record): New function.
8554 (arm_linux_init_abi): Add syscall recording constructs.
8555 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8556 decoding. (arm_record_coproc_data_proc): Update arm syscall
8558 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8559 <arm_syscall_record>: New field.
8560 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8563 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8565 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8566 register for push instruction recording.
8568 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8570 * arm-tdep.c (thumb_record_misc): Update to correct logical
8571 error while recording ldm, ldmia and pop instructions.
8573 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8575 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8577 2014-01-15 Pedro Alves <palves@redhat.com>
8579 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8580 (go32_resume, go32_fetch_registers, store_register)
8581 (go32_store_registers, go32_prepare_to_store)
8582 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8583 (go32_create_inferior, go32_can_run, go32_terminal_init)
8584 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8587 2014-01-15 Tom Tromey <tromey@redhat.com>
8589 * target.h (async_callback_ftype): New typedef.
8590 (struct target_ops) <to_async>: Use it.
8592 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8594 * python/py-value.c (get_field_type): Remove unnecessary curly
8595 braces for single-statement if block.
8597 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8599 * python/py-type.c (convert_field): Add missing empty line
8602 2014-01-14 Doug Evans <dje@google.com>
8604 * symfile.h (expand_symtabs_matching): Renamed from
8605 expand_partial_symbol_names. Update prototype.
8606 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8607 * symfile.c (expand_symtabs_matching): Renamed from
8608 expand_partial_symbol_names. New args file_matcher, kind.
8609 Rename arg fun to symbol_matcher.
8610 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8611 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8612 ada_expand_partial_symbol_name.
8613 (ada_make_symbol_completion_list): Update to call
8614 expand_symtabs_matching.
8615 (ada_add_global_exceptions): Call expand_symtabs_matching.
8616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8617 call map_symbol_filenames.
8618 * symtab.c (sources_info): Update to call map_symbol_filenames.
8619 (search_symbols): Call expand_symtabs_matching.
8620 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8621 (default_make_symbol_completion_list_break_on): Update to call
8622 expand_symtabs_matching.
8623 (make_source_files_completion_list): Update to call
8624 map_symbol_filenames.
8626 2014-01-14 Doug Evans <dje@google.com>
8628 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8629 (expand_symtabs_symbol_matcher_ftype): New typedef.
8630 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8631 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8632 * symfile.c (expand_partial_symbol_names): Update to use
8633 expand_symtabs_symbol_matcher_ftype.
8634 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8635 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8636 Arg name_matcher renamed to symbol_matcher.
8637 * psymtab.c (recursively_search_psymtabs): Update to use
8638 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8640 (expand_symtabs_matching_via_partial): Update to use
8641 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8642 Arg name_matcher renamed to symbol_matcher.
8644 2014-01-14 Doug Evans <dje@google.com>
8646 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8647 (map_partial_symbol_filenames): Ditto.
8648 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8649 (map_partial_symbol_filenames): Ditto.
8650 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8651 (map_partial_symbol_filenames): Ditto.
8652 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8653 (map_partial_symbol_filenames): Ditto.
8654 * symtab.c: Delete #include "psymtab.h".
8656 2014-01-14 Pedro Alves <palves@redhat.com>
8657 Tom Tromey <tromey@redhat.com>
8659 * infrun.c (use_displaced_stepping): Use find_record_target
8660 instead of RECORD_IS_USED.
8661 (adjust_pc_after_break): Use record_full_is_used instead of
8663 * record-btrace.c (record_btrace_open): Call record_preopen
8664 instead of checking RECORD_IS_USED.
8665 * record-full.c (record_full_shortname)
8666 (record_full_core_shortname): New globals.
8667 (record_full_is_used): New function.
8668 (find_full_open): Call record_preopen instead of checking
8670 (init_record_full_ops): Set the target's shortname to
8671 record_full_shortname.
8672 (init_record_full_core_ops): Set the target's shortname to
8673 record_full_core_shortname.
8674 * record-full.h (record_full_is_used): Declare.
8675 * record.c (find_record_target): Make extern.
8676 (record_preopen): New function.
8677 * record.h (RECORD_IS_USED): Delete macro.
8678 (find_record_target, record_preopen): Declare functions.
8680 2014-01-14 Yao Qi <yao@codesourcery.com>
8682 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8683 'len''s type to ULONGEST.
8684 (core_xfer_shared_libraries_aix): Likewise.
8685 * gdbarch.c, gdbarch.h: Regenerated.
8686 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8687 Change type of 'len' to ULONGEST.
8688 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8689 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8691 2014-01-14 Yao Qi <yao@codesourcery.com>
8693 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8694 type of 'len' to ULONGEST.
8695 (linux_xfer_osdata_processgroups): Likewise.
8696 (linux_xfer_osdata_threads): Likewise.
8697 (linux_xfer_osdata_fds): Likewise.
8698 (linux_xfer_osdata_isockets): Likewise.
8699 (linux_xfer_osdata_shm): Likewise.
8700 (linux_xfer_osdata_sem): Likewise.
8701 (linux_xfer_osdata_msg): Likewise.
8702 (linux_common_xfer_osdata): Likewise.
8703 (struct osdata_type) <getter>: Likewise.
8704 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8707 2014-01-14 Yao Qi <yao@codesourcery.com>
8709 * target.h (target_xfer_partial_ftype): Update.
8710 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8712 * aix-thread.c (aix_thread_xfer_partial): Change type of
8713 argument 'len' to ULONGEST.
8714 * auxv.c (procfs_xfer_auxv): Likewise.
8715 (ld_so_xfer_auxv): Likewise.
8716 (memory_xfer_auxv): Likewise.
8717 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8718 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8719 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8720 * corelow.c (core_xfer_partial): Likewise.
8721 * ctf.c (ctf_xfer_partial): Likewise.
8722 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8724 (darwin_read_dyld_info): Likewise.
8725 (darwin_xfer_partial): Likewise.
8726 * exec.c (section_table_xfer_memory_partial): Likewise.
8727 (exec_xfer_partial): Likewise.
8728 * exec.h (section_table_xfer_memory_partial): Update
8730 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8731 instead of plongest.
8732 (gnu_xfer_partial): Likewise.
8733 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8734 (ia64_hpux_xfer_solib_got): Likewise.
8735 (ia64_hpux_xfer_partial): Likewise.
8736 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8737 * inf-ptrace.c (inf_ptrace_xfer_partial):
8738 * inf-ttrace.c (inf_ttrace_xfer_partial):
8739 * linux-nat.c (linux_xfer_siginfo): Likewise.
8740 (linux_nat_xfer_partial): Likewise.
8741 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8742 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8743 * monitor.c (monitor_xfer_memory): Likewise.
8744 (monitor_xfer_partial): Likewise.
8745 * procfs.c (procfs_xfer_partial): Likewise.
8746 * record-full.c (record_full_xfer_partial): Likewise.
8747 (record_full_core_xfer_partial): Likewise.
8748 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8749 instead of plongest.
8750 (gdbsim_xfer_partial): Likewise.
8751 * remote.c (remote_xfer_partial): Likewise.
8752 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8753 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8755 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8756 (rs6000_xfer_shared_libraries): Likewise.
8757 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8758 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8759 (sparc_xfer_partial): Likewise.
8760 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8761 (spu_xfer_partial): Likewise.
8762 * spu-multiarch.c (spu_xfer_partial): Likewise.
8763 * target.c (target_read_live_memory): Likewise.
8764 (memory_xfer_live_readonly_partial): Likewise.
8765 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8766 (target_xfer_partial, default_xfer_partial): Likewise.
8767 (current_xfer_partial): Likewise.
8768 * tracepoint.c (tfile_xfer_partial): Likewise.
8769 * windows-nat.c (windows_xfer_memory): Likewise. Call
8770 pulongest instead of plongest.
8771 (windows_xfer_partial): Likewise.
8772 (windows_xfer_shared_libraries): Likewise.
8774 2014-01-14 Yao Qi <yao@codesourcery.com>
8776 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8777 target_xfer_partial_ftype.
8779 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8783 * valops.c (value_struct_elt_bitpos): New function
8784 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8785 object to 'None' if the field name is an empty string ("").
8786 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8787 attribute to look for a field when 'name' is 'None'.
8788 (get_field_type): New function
8790 2014-01-13 Doug Evans <dje@google.com>
8793 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8794 (try_open_dwop_file): Ditto.
8795 * gdb_bfd.c: #include "vec.h".
8796 (bfdp): New typedef.
8797 (struct gdb_bfd_data): New member included_bfds.
8798 (gdb_bfd_unref): Unref all included bfds.
8799 (gdb_bfd_record_inclusion): New function.
8800 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8802 2014-01-13 Tom Tromey <tromey@redhat.com>
8804 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8806 2014-01-13 Tom Tromey <tromey@redhat.com>
8808 * defs.h (use_windows): Remove.
8809 * gdb.c (main): Update.
8810 * main.c (captured_main, gdb_main): Update.
8811 * main.h (struct captured_main_args) <use_windows>: Remove.
8812 * top.c (use_windows): Remove.
8814 2014-01-13 Tom Tromey <tromey@redhat.com>
8816 * defs.h (deprecated_flush_hook): Remove.
8818 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8821 * linux-thread-db.c (try_thread_db_load): Add parameter
8822 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8823 (try_thread_db_load_from_pdir_1): Move it there from here.
8824 (try_thread_db_load_from_sdir): Update caller.
8825 (try_thread_db_load_from_dir): Move it there from here.
8827 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8829 * regformats/regdat.sh: Always rewrite the register file.
8831 2014-01-13 Pedro Alves <palves@redhat.com>
8833 * Makefile.in (CHECK_HEADERS): New variable.
8834 (check-headers:): New rule.
8836 2014-01-13 Tom Tromey <tromey@redhat.com>
8838 * cli/cli-setshow.c (do_set_command): Update.
8839 * defs.h (deprecated_set_hook): Remove.
8840 * top.c (deprecated_set_hook): Remove.
8842 2014-01-13 Pedro Alves <palves@redhat.com>
8844 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8845 the tracepoint if the PC is a pseudo-register.
8847 2014-01-13 Tom Tromey <tromey@redhat.com>
8849 * defs.h (XCALLOC): Remove.
8850 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8851 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8852 * dwarf2loc.c (allocate_piece_closure): Likewise.
8853 * elfread.c (elf_symfile_segments): Likewise.
8854 (elf_symfile_segments): Likewise.
8855 * gdbtypes.c (copy_type_recursive): Likewise.
8856 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8857 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8858 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8860 * mt-tdep.c (mt_gdbarch_init): Likewise.
8861 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8863 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8864 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8865 * registry.c (registry_alloc_data): Likewise.
8866 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8867 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8868 * serial.c (serial_fdopen_ops): Likewise.
8869 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8871 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8872 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8875 2014-01-13 Tom Tromey <tromey@redhat.com>
8877 * defs.h (XMALLOC): Remove.
8878 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8879 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8880 * cli-out.c (struct ui_out *): Likewise.
8881 * cli/cli-dump.c (add_dump_command): Likewise.
8882 (add_dump_command): Likewise.
8883 * complaints.c (get_complaints): Likewise.
8884 (find_complaint): Likewise.
8885 * dwarf2-frame.c (execute_cfa_program): Likewise.
8886 * dwarf2read.c (abbrev_table_read_table): Likewise.
8887 * gdbarch.sh: Likewise.
8888 * gdbarch.c: Rebuild.
8889 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8890 * interps.c (interp_new): Likewise.
8891 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8892 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8893 * mi/mi-console.c (mi_console_file_new): Likewise.
8894 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8895 * mi/mi-out.c (mi_out_new): Likewise.
8896 * mi/mi-parse.c (mi_parse): Likewise.
8897 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8898 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8899 * observer.c (xalloc_observer_list_node): Likewise.
8900 * regcache.c (regcache_xmalloc_1): Likewise.
8901 * reggroups.c (reggroup_new): Likewise.
8902 (_initialize_reggroup): Likewise.
8903 * registry.c (register_data_with_cleanup): Likewise.
8904 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8905 * ser-base.c (serial_ttystate): Likewise.
8906 * ser-mingw.c (make_pipe_state): Likewise.
8907 * ser-pipe.c (pipe_open): Likewise.
8908 * serial.c (serial_open): Likewise.
8909 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8910 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8911 (tui_alloc_win_info): Likewise.
8912 (tui_add_content_elements): Likewise.
8913 * tui/tui-file.c (tui_file_new): Likewise.
8914 * tui/tui-out.c (tui_out_new): Likewise.
8915 * ui-file.c (mem_file_new): Likewise.
8916 * ui-out.c (push_level): Likewise.
8917 (make_cleanup_ui_out_end): Likewise.
8918 (append_header_to_list): Likewise.
8919 (ui_out_new): Likewise.
8920 * user-regs.c (user_reg_add_builtin): Likewise.
8922 2014-01-13 Tom Tromey <tromey@redhat.com>
8924 * defs.h (XZALLOC): Remove.
8925 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8926 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8927 (get_ada_tasks_inferior_data): Likewise.
8928 * auto-load.c (get_auto_load_pspace_data): Likewise.
8929 * auxv.c (get_auxv_inferior_data): Likewise.
8930 * bfd-target.c (target_bfd_reopen): Likewise.
8931 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8932 (deprecated_insert_raw_breakpoint): Likewise.
8933 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8934 * corelow.c (core_open): Likewise.
8935 * darwin-nat.c (darwin_check_new_threads): Likewise.
8936 (darwin_attach_pid): Likewise.
8937 * dummy-frame.c (dummy_frame_push): Likewise.
8938 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8939 * dwarf2loc.c (allocate_piece_closure): Likewise.
8940 * elfread.c (elf_symfile_segments): Likewise.
8941 * eval.c (ptrmath_type_p): Likewise.
8942 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8943 * gdbtypes.c (alloc_type_arch): Likewise.
8944 (alloc_type_instance): Likewise.
8945 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8946 * inf-child.c (inf_child_can_use_agent): Likewise.
8947 * inflow.c (get_inflow_inferior_data): Likewise.
8948 * infrun.c (save_infcall_suspend_state): Likewise.
8949 * jit.c (jit_reader_load): Likewise.
8950 (get_jit_objfile_data): Likewise.
8951 (get_jit_program_space_data): Likewise.
8952 (jit_object_open_impl): Likewise.
8953 (jit_symtab_open_impl): Likewise.
8954 (jit_block_open_impl): Likewise.
8955 (jit_frame_sniffer): Likewise.
8956 * linux-fork.c (add_fork): Likewise.
8957 * maint.c (make_command_stats_cleanup): Likewise.
8958 * objfiles.c (get_objfile_pspace_data): Likewise.
8959 * opencl-lang.c (struct lval_closure): Likewise.
8960 * osdata.c (osdata_start_osdata): Likewise.
8961 * progspace.c (new_address_space): Likewise.
8962 (add_program_space): Likewise.
8963 * remote-sim.c (get_sim_inferior_data): Likewise.
8964 * sh-tdep.c (sh_gdbarch_init): Likewise.
8965 * skip.c (Ignore): Likewise.
8966 (skip_delete_command): Likewise.
8967 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8968 (library_list_start_library): Likewise.
8969 (solib_aix_current_sos): Likewise.
8970 * solib-darwin.c (get_darwin_info): Likewise.
8971 (darwin_current_sos): Likewise.
8972 * solib-dsbt.c (get_dsbt_info): Likewise.
8973 * solib-ia64-hpux.c (new_so_list): Likewise.
8974 (ia64_hpux_get_solib_linkage_addr): Likewise.
8975 * solib-spu.c (append_ocl_sos): Likewise.
8976 (spu_current_sos): Likewise.
8977 * solib-svr4.c (get_svr4_info): Likewise.
8978 (svr4_keep_data_in_core): Likewise.
8979 (library_list_start_library): Likewise.
8980 (svr4_default_sos): Likewise.
8981 (svr4_read_so_list): Likewise.
8982 * solib-target.c (library_list_start_library): Likewise.
8983 (solib_target_current_sos): Likewise.
8984 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8985 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8986 * symfile.c (default_symfile_segments): Likewise.
8987 * target-descriptions.c (tdesc_data_init): Likewise.
8988 (tdesc_create_reg): Likewise.
8989 (struct tdesc_type *): Likewise.
8990 (tdesc_create_vector): Likewise.
8991 (tdesc_set_struct_size): Likewise.
8992 (struct tdesc_type *): Likewise.
8993 (tdesc_free_feature): Likewise.
8994 (tdesc_create_feature): Likewise.
8995 * windows-nat.c (windows_add_thread): Likewise.
8996 (windows_make_so): Likewise.
8997 * xml-support.c (gdb_xml_body_text): Likewise.
8998 (gdb_xml_create_parser_and_cleanup): Likewise.
8999 (xml_process_xincludes): Likewise.
9000 * xml-syscall.c (allocate_syscalls_info): Likewise.
9001 (syscall_create_syscall_desc): Likewise.
9003 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9005 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9006 function, with code from i386_stap_parse_special_token.
9007 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9008 (i386_stap_parse_special_token): Move code to the two functions
9011 2014-01-09 Pedro Alves <palves@redhat.com>
9012 Hui Zhu <hui@codesourcery.com>
9015 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9016 bp_err_string. Don't mark the location shlib_disabled if the
9017 error thrown wasn't a generic or memory error. Catch errors
9018 thrown while inserting breakpoints in overlayed code. Output
9019 error message of software breakpoints.
9020 * remote.c (remote_insert_breakpoint): If this breakpoint has
9021 target-side commands but this stub doesn't support Z0 packets,
9022 throw NOT_SUPPORTED_ERROR error.
9023 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9024 * target.h (target_insert_breakpoint): Extend comment.
9025 (target_insert_hw_breakpoint): Add comment.
9027 2014-01-08 Pedro Alves <palves@redhat.com>
9029 * remote.c (remote_add_thread): Add threads silently if starting
9031 (remote_notice_new_inferior): If in all-stop, and starting up,
9032 don't call notice_new_inferior.
9033 (get_current_thread): New function, factored out from ...
9034 (add_current_inferior_and_thread): ... this. Adjust.
9035 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9036 found any thread, then select the remote's current thread as GDB's
9039 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9041 * NEWS: Create a new section for the next release branch.
9042 Rename the section of the current branch, now that it has
9045 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9047 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9048 * version.in: Bump version to 7.7.50.DATE-cvs.
9050 2014-01-08 Yao Qi <yao@codesourcery.com>
9052 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9053 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9054 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9056 2014-01-08 Yao Qi <yao@codesourcery.com>
9058 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9059 return value of bfd_get_filename to symbol_file_add_from_bfd.
9061 2014-01-08 Pierre Muller <muller@sourceware.org>
9064 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9065 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9066 to prim_record_mininal_symbol_and_info.
9067 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9068 in call to prim_record_minimal_symbol_and_info.
9069 (read_pe_exported_syms): Set index field of section_data.
9071 2014-01-07 Andrew Pinski <apinski@cavium.com>
9073 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9074 * features/aarch64.c: Regenerate.
9076 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9078 * target.c (return_null): Define.
9079 (update_current_target): Use it instead of return_zero for
9080 functions that return a pointer.
9082 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9084 * source.c (add_path): Fix check for duplicated paths in the previously
9087 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9089 * ada-lang.c: Remove duplicated include statements.
9090 * alphabsd-nat.c: Ditto.
9091 * amd64-darwin-tdep.c: Ditto.
9092 * amd64fbsd-nat.c: Ditto.
9093 * auto-load.c: Ditto.
9095 * breakpoint.c: Ditto.
9097 * fork-child.c: Ditto.
9098 * gdb_usleep.c: Ditto.
9099 * i386-darwin-tdep.c: Ditto.
9100 * i386fbsd-nat.c: Ditto.
9102 * inferior.c: Ditto.
9104 * linux-nat.c: Ditto.
9105 * linux-tdep.c: Ditto.
9106 * m68kbsd-nat.c: Ditto.
9107 * m68klinux-nat.c: Ditto.
9108 * microblaze-tdep.c: Ditto.
9109 * mips-linux-tdep.c: Ditto.
9110 * mn10300-tdep.c: Ditto.
9111 * nto-tdep.c: Ditto.
9112 * opencl-lang.c: Ditto.
9114 * printcmd.c: Ditto.
9115 * regcache.c: Ditto.
9116 * remote-m32r-sdi.c: Ditto.
9120 * tilegx-linux-nat.c: Ditto.
9121 * tilegx-tdep.c: Ditto.
9122 * tracepoint.c: Ditto.
9124 * vaxbsd-nat.c: Ditto.
9125 * windows-nat.c: Ditto.
9126 * xtensa-tdep.c: Ditto.
9128 2014-01-07 Yao Qi <yao@codesourcery.com>
9130 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9132 2014-01-07 Yao Qi <yao@codesourcery.com>
9133 Joel Brobecker <brobecker@adacore.com>
9135 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9136 (pdc_write_regs): Likewise.
9137 (fetch_regs_kernel_thread): Likewise.
9138 (store_regs_kernel_thread): Likewise.
9140 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9142 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9143 tagged type objects to their actual type.
9145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9147 * ada-valprint.c (print_field_values): Add "language" parameter.
9148 Update calls to print_field_values and print_variant_part.
9149 Pass new parameter "language" in call to val_print instead
9150 of "current_language". Replace call to ada_val_print by call
9152 (print_variant_part): Add "language" parameter.
9153 (ada_val_print_struct_union): Update call to print_field_values.
9155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9157 * ada-valprint.c (ui_memcpy): Delete.
9158 (ada_print_floating): Update documentation. Add empty line
9159 between between function documentation and implementation.
9160 Delete variable "buffer". Use ui_file_xstrdup in place of
9161 ui_file_put. Minor adjustments following this change.
9163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9165 * ada-valprint.c (ada_val_print_string): New function,
9166 extracted from ada_val_print_array.
9167 (ada_val_print_array): Replace extracted code by call
9168 to ada_val_print_string followed by a return. Move
9169 "else" branch to the function's top block.
9171 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9173 * ada-valprint.c (ada_val_print_array): Move implementation
9174 down. Rename parameter "offset" and "val" into "offset_aligned"
9175 and "original_value" respectively. Add parameter "offset".
9177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9179 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9180 re-organizing the code. Change the "???" message printed
9181 when target type is a TYPE_CODE_UNDEF into
9182 "<ref to undefined type>".
9184 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9186 * ada-valprint.c (print_record): Delete, implementation inlined...
9187 (ada_val_print_struct_union): ... here. Remove call to
9188 ada_check_typedef in inlined implementation.
9190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9192 * ada-valprint.c (ada_val_print_gnat_array): New function,
9193 extracted from ada_val_print_1;
9194 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9195 (ada_val_print_flt, ada_val_print_struct_union)
9196 (ada_val_print_ref): Likewise.
9197 (ada_val_print_1): Delete variables i and elttype.
9198 Replace extracted-out code by call to corresponding
9201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9203 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9207 * ada-valprint.c (ada_val_print_1): Replace calls to
9208 ada_val_print_1 by calls to val_print.
9210 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9212 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9213 Update calls to self accordingly. Replace calls to c_val_print
9214 by calls to val_print.
9216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9218 * ada-valprint.c (print_record): Delete declaration.
9219 (adjust_type_signedness, ada_val_print_1): Likewise.
9220 (ada_val_print): Move function implementation down.
9221 (print_variant_part, print_field_values, print_record):
9222 Move function implementation up.
9224 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9226 * python/py-type.c (typy_get_name): New function.
9227 (type_object_getset): Add entry for attribute "name".
9228 * NEWS: Add entry mentioning this new attribute.
9230 2014-01-07 Yao Qi <yao@codesourcery.com>
9232 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9235 2014-01-07 Yao Qi <yao@codesourcery.com>
9237 * gnu-nat.c (info_port_rights): Add qualifier const to
9240 2014-01-07 Yao Qi <yao@codesourcery.com>
9242 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9244 2014-01-07 Yao Qi <yao@codesourcery.com>
9246 * gnu-nat.c (make_inf) Update declaration.
9247 (make_inf): Make it static.
9248 (inf_set_traced): Likewise.
9249 (inf_port_to_thread, inf_task_died_status): Likewise.
9251 2014-01-07 Yao Qi <yao@codesourcery.com>
9253 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9255 2014-01-07 Yao Qi <yao@codesourcery.com>
9257 * gnu-nat.c (_initialize_gnu_nat): Declare.
9259 2014-01-07 Yao Qi <yao@codesourcery.com>
9261 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9263 (struct gdbarch_info) <byte_order>: Change type to
9265 <byte_order_for_code>: Likewise.
9266 * gdbarch.c, gdbarch.h: Regenerated.
9268 2014-01-06 Sasha Smundak <asmundak@google.com>
9270 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9272 2014-01-06 Tom Tromey <tromey@redhat.com>
9274 * doublest.c (convert_doublest_to_floatformat): Use const, not
9276 * somread.c (som_symtab_read): Likewise.
9278 2014-01-07 Hui Zhu <hui@codesourcery.com>
9280 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9281 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9282 (gdb_bfd_fopen): Ditto.
9283 (gdb_bfd_openr): Ditto.
9284 (gdb_bfd_openw): Ditto.
9285 (gdb_bfd_openr_iovec): Ditto.
9286 (gdb_bfd_fdopenr): Ditto.
9287 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9288 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9290 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9292 * symfile-mem.c (symbol_file_add_from_memory): Removed
9293 gdb_bfd_stash_filename.
9295 2014-01-03 Doug Evans <dje@google.com>
9297 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9300 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9302 Update year range in copyright notice of all files.
9304 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9306 * top.c (print_gdb_version): Set copyright year to 2014.
9308 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9310 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9312 For older changes see ChangeLog-2013.
9318 version-control: never