1 2014-06-18 Gary Benson <gbenson@redhat.com>
3 * nat/i386-dregs.h: New file.
4 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5 * i386-nat.h (i386-dregs.h): New include.
6 (DR_FIRSTADDR): Now in i386-dregs.h.
7 (DR_LASTADDR): Likewise.
10 (DR_CONTROL): Likewise.
11 (i386_debug_reg_state): Likewise.
12 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
14 2014-06-18 Don Breazeal <donb@codesourcery.com>
16 * breakpoint.c (set_longjmp_breakpoint): Call
17 momentary_breakpoint_from_master with additional argument.
18 (set_longjmp_breakpoint_for_call_dummy): Call
19 momentary_breakpoint_from_master with additional argument.
20 (set_std_terminate_breakpoint): Call
21 momentary_breakpoint_from_master with additional argument.
22 (momentary_breakpoint_from_master): Add argument to function
23 definition and use it to initialize structure member flag.
24 (clone_momentary_breakpoint): Call
25 momentary_breakpoint_from_master with additional argument.
26 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
27 member flags set in momentary_breakpoint_from_master.
29 2014-06-18 Gary Benson <gbenson@redhat.com>
31 * i386-nat.c (i386_show_dr): Renamed to
32 i386_dr_show and made nonstatic. All uses updated.
33 (i386_length_and_rw_bits): Renamed to
34 i386_dr_length_and_rw_bits and made nonstatic.
36 (i386_insert_aligned_watchpoint): Renamed to
37 i386_dr_insert_aligned_watchpoint and made nonstatic.
39 (i386_remove_aligned_watchpoint): Renamed to
40 i386_dr_remove_aligned_watchpoint and made nonstatic.
42 (i386_update_inferior_debug_regs): Renamed to
43 i386_dr_update_inferior_debug_regs and made nonstatic.
46 2014-06-18 Gary Benson <gbenson@redhat.com>
48 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
49 (i386_dr_low_can_set_control): Likewise.
50 (i386_dr_low_set_addr): Likewise.
51 (i386_dr_low_set_control): Likewise.
52 (i386_dr_low_get_addr): Likewise.
53 (i386_dr_low_get_status): Likewise.
54 (i386_dr_low_get_control): Likewise.
55 (i386_insert_aligned_watchpoint): Use new macros.
56 (i386_update_inferior_debug_regs): Likewise.
57 (i386_stopped_data_address): Likewise.
59 2014-06-18 Gary Benson <gbenson@redhat.com>
61 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
62 New parameter. All uses updated.
64 2014-06-18 Gary Benson <gbenson@redhat.com>
66 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
69 2014-06-18 Gary Benson <gbenson@redhat.com>
71 * i386-nat.c (debug_printf): New macro.
72 (i386_get_debug_register_length): Likewise.
73 (TARGET_HAS_DR_LEN_8): Use above macro.
74 (i386_show_dr): Use debug_printf instead of puts_unfiltered
75 and printf_unfiltered. Use phex to format values.
77 2014-06-18 Gary Benson <gbenson@redhat.com>
79 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
82 2014-06-18 Gary Benson <gbenson@redhat.com>
84 * i386-nat.c: Comment changes.
86 2014-06-18 Gary Benson <gbenson@redhat.com>
88 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
90 2014-06-18 Gary Benson <gbenson@redhat.com>
92 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
93 (i386_insert_aligned_watchpoint): Likewise.
94 (i386_remove_aligned_watchpoint): Likewise.
95 (i386_handle_nonaligned_watchpoint): Likewise.
97 2014-06-18 Gary Benson <gbenson@redhat.com>
99 * i386-nat.c: Whitespace changes.
101 2014-06-17 Samuel Bronson <naesten@gmail.com>
103 * MAINTAINERS: Update Roland McGrath's email address.
104 Thanks to Sergio Durigan Junior for pointing out that he left
105 Red Hat a while ago, and giving me a current address.
107 2014-06-17 Tom Tromey <tromey@redhat.com>
109 * utils.h (savestring): Remove declaration.
111 2014-06-17 Tom Tromey <tromey@redhat.com>
113 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
115 2014-06-16 Keith Seitz <keiths@redhat.com>
118 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
119 to update the varobj if inferior_ptid is null_ptid.
121 2014-06-16 Tom Tromey <tromey@redhat.com>
123 * target.h (struct target_ops) <to_info_proc>: Make parameter
125 (target_info_proc): Update.
126 * target.c (target_info_proc): Make "args" const.
127 * procfs.c (procfs_info_proc): Update.
128 * linux-tdep.c (linux_info_proc): Update.
129 (linux_core_info_proc_mappings): Make "args" const.
130 (linux_core_info_proc): Update.
131 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
132 * gdbarch.c: Rebuild.
133 * gdbarch.h: Rebuild.
134 * corelow.c (core_info_proc): Update.
136 2014-06-16 Tom Tromey <tromey@redhat.com>
138 * target.h (struct target_ops) <to_disconnect>: Make parameter
140 (target_disconnect): Update.
141 * target.c (target_disconnect): Make "args" const.
142 * target-delegates.c: Rebuild.
143 * remote.c (remote_disconnect): Update.
144 * record.h (record_disconnect): Update.
145 * record.c (record_disconnect): Update.
146 * inf-child.c (inf_child_disconnect): Update.
148 2014-06-16 Tom Tromey <tromey@redhat.com>
150 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
151 * target.c (debug_to_rcmd, default_rcmd): Update.
152 * target-delegates.c: Rebuild.
153 * remote.c (remote_rcmd): Update.
154 * monitor.c (monitor_rcmd): Update.
156 2014-06-16 Pedro Alves <palves@redhat.com>
158 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
159 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
160 have OBJF_SHARED set.
161 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
162 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
163 instead of OBJF_USERLOADED.
164 * objfiles.h (OBJF_SHARED): Update comment.
165 (userloaded_objfile_contains_address_p): Rename to ...
166 (shared_objfile_contains_address_p): ... this, and update
168 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
170 (remove_symbol_file_command): Skip objfiles that don't have
173 2014-06-16 Tom Tromey <tromey@redhat.com>
175 * minsyms.h (prim_record_minimal_symbol)
176 (prim_record_minimal_symbol_and_info): Update comments.
178 2014-06-14 Eli Zaretskii <eliz@gnu.org>
180 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
181 or --without-guile, according to how GDB was built.
183 2014-06-13 Tom Tromey <tromey@redhat.com>
185 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
187 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
189 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
191 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
192 help_list.Pass all_commands, not -1, to help_list.
193 * cli/cli-dump.c (dump_command, append_command)
194 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
195 (binary_dump_command, binary_append_command): Pass all_commands,
196 not -1, to help_list.
197 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
199 * valprint.c (set_print, set_print_raw): Pass all_commands, not
201 * typeprint.c (set_print_type): Pass all_commands, not -1, to
203 * top.c (set_history): Pass all_commands, not -1, to help_list.
204 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
205 all_commands, not -1, to help_list.
206 * symfile.c (overlay_command): Pass all_commands, not -1, to
208 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
210 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
212 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
214 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
215 not -1, to help_list.
216 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
217 not -1, to help_list.
218 * maint.c (maintenance_command, maintenance_info_command)
219 (maintenance_print_command, maintenance_set_cmd): Pass
220 all_commands, not -1, to help_list.
221 * macrocmd.c (macro_command): Pass all_commands, not -1, to
223 * language.c (set_check): Pass all_commands, not -1, to help_list.
224 * infcmd.c (unset_command): Pass all_commands, not -1, to
226 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
228 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
230 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
232 * breakpoint.c (save_command): Pass all_commands, not -1, to
234 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
235 all_commands, not -1, to help_list.
237 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
239 * regcache.c (struct register_to_invalidate): New structure.
240 (do_register_invalidate, make_cleanup_regcache_invalidate): New
242 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
244 2014-06-12 Yao Qi <yao@codesourcery.com>
246 * varobj.c (varobj_get_num_children): Call
248 (varobj_list_children): Likewise.
249 (varobj_update): Likewise. Update comments.
251 2014-06-12 Yao Qi <yao@codesourcery.com>
253 * varobj.c (varobj_pretty_printed_p): Rename to ...
254 (varobj_is_dynamic_p): ... this. New function.
255 * varobj.h (varobj_pretty_printed_p): Remove declaration.
256 (varobj_is_dynamic_p): Declare.
257 * mi/mi-cmd-var.c (print_varobj): All callers updated.
258 (mi_print_value_p, varobj_update_one): Likewise.
260 2014-06-12 Pedro Alves <pedro@codesourcery.com>
261 Yao Qi <yao@codesourcery.com>
263 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
264 (varobj_get_iterator): Wrap up code for pretty-printer by
265 "#if HAVE_PYTHON" and "#endif".
266 (update_dynamic_varobj_children): Likewise.
268 2014-06-12 Pedro Alves <pedro@codesourcery.com>
269 Yao Qi <yao@codesourcery.com>
271 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
272 gdb_python_initialized is false. Move some code from varobj.c.
273 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
274 * varobj.c: Move "varobj-iter.h" inclusion earlier.
275 (struct varobj_item): Moved to varobj-iter.h".
276 (varobj_clear_saved_item): New function.
277 (update_dynamic_varobj_children): Move python-related code to
279 (free_variable): Call varobj_clear_saved_item and
282 2014-06-12 Pedro Alves <pedro@codesourcery.com>
283 Yao Qi <yao@codesourcery.com>
285 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
286 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
287 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
288 (py-varobj.o): New rule.
289 * python/py-varobj.c: New file.
290 * python/python-internal.h (py_varobj_get_iterator): Declare.
291 * varobj-iter.h: New file.
292 * varobj.c: Include "varobj-iter.h"
293 (struct varobj) <child_iter>: Change its type from "PyObject *"
294 to "struct varobj_iter *".
295 <saved_item>: Likewise.
296 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
297 [HAVE_PYTHON] (varobj_get_iterator): New function.
298 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
299 python-specific code to python/py-varobj.c.
300 (install_visualizer): Call varobj_iter_delete instead of
302 * varobj.h (varobj_ensure_python_env): Declare.
304 2014-06-12 Yao Qi <yao@codesourcery.com>
306 * varobj.c (struct varobj_item): New structure.
307 (create_child_with_value): Update declaration.
308 (varobj_add_child): Replace arguments 'name' and 'value' with
309 'item'. All callers updated.
310 (install_dynamic_child): Likewise.
311 (update_dynamic_varobj_children): Likewise.
312 (varobj_add_child): Likewise.
313 (create_child_with_value): Likewise.
315 2014-06-11 Joel Brobecker <brobecker@adacore.com>
317 * NEWS: Create a new section for the next release branch.
318 Rename the section of the current branch, now that it has
321 2014-06-11 Joel Brobecker <brobecker@adacore.com>
323 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
324 * version.in: Bump version to 7.8.50.DATE-cvs.
326 2014-06-11 Pedro Alves <palves@redhat.com>
329 * ser-mingw.c (net_windows_socket_check_pending): New function.
330 (net_windows_select_thread): Ignore spurious wakeups. Use
331 net_windows_socket_check_pending.
332 (net_windows_wait_handle): Check for pending events with
333 ioctlsocket, through net_windows_socket_check_pending, instead of
334 checking the socket's event.
336 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
338 * python/python-internal.h (gdb_PyObject_GetAttrString)
339 (gdb_PyObject_HasAttrString): New inline function definitions.
340 * py-value.c (get_field_flag): Remove the now unnecessary cast to
341 char * of the second argument to PyObject_GetAttrString.
343 2014-06-10 Joel Brobecker <brobecker@adacore.com>
345 * serial.c (serial_write): Fix index of character to be printed
346 in call to serial_logchar when serial debug traces are enabled.
348 2014-06-10 Joel Brobecker <brobecker@adacore.com>
350 * gdbtypes (resolve_dynamic_range): Add function description.
352 2014-06-09 Pedro Alves <palves@redhat.com>
354 * linux-nat.c (linux_child_follow_fork): Initialize status with
355 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
356 inner block. Only pass the signal to PTRACE_DETACH if in pass
359 2014-06-09 Gary Benson <gbenson@redhat.com>
361 * common/signals.c (gdb_signal_from_host): Reorder to separate
362 the always-available ANSI-standard signals from the signals that
364 (do_gdb_signal_to_host): Likewise.
365 * proc-events.c (signal_table): Likewise.
367 2014-06-08 Hui Zhu <hui@codesourcery.com>
369 * common/linux-ptrace.c (linux_disable_event_reporting): New
371 * common/linux-ptrace.h (linux_disable_event_reporting): New
373 * linux-nat.c (linux_child_follow_fork): Do a single step before
376 2014-06-07 Keith Seitz <keiths@redhat.com>
380 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
381 from symbol_matches_domain in symtab.c. All local callers
382 of symbol_matches_domain updated.
383 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
384 search STRUCT_DOMAIN.
385 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
386 independently. standard_lookup will do that automatically.
387 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
388 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
389 (cp_lookup_symbol_in_namespace): Likewise.
390 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
391 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
392 may return a STRUCT_DOMAIN match.
393 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
394 * cp-support.c: Include language.h.
395 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
397 * psymtab.c (match_partial_symbol): Compare the requested
398 domain with the symbol's domain directly.
399 (lookup_partial_symbol): Likewise.
400 * symtab.c (lookup_symbol_in_language): Explain when/why
401 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
402 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
403 appropriate languages.
404 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
405 and moved to ada-lang.c
406 (lookup_block_symbol): Explain that this function only returns
407 symbol matching the requested DOMAIN.
408 Compare the requested domain with the symbol's domain directly.
409 (iterate_over_symbols): Compare the requested domain with the
410 symbol's domain directly.
411 * symtab.h (symbol_matches_domain): Remove.
413 2014-06-06 Doug Evans <xdje42@gmail.com>
415 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
416 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
417 (gdbscm_guile_version_is_at_least): Declare.
418 (gdbscm_scm_string_to_int): Declare.
419 * guile/guile.c (gdbscm_guile_major_version): New global.
420 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
421 (guile_datadir): New static global.
422 (gdbscm_guile_data_directory): New function.
423 (initialize_scheme_side): Update.
424 (misc_guile_functions): Add guile-data-directory.
425 (initialize_gdb_module): Fetch guile version number.
426 * guile/lib/gdb.scm: Remove call to add-to-load-path.
427 * guile/lib/gdb/init.scm (%initialize!): Ditto.
428 * guile/lib/gdb/boot.scm: Use guile-data-directory.
429 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
431 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
432 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
433 * guile/scm-value.c (gdbscm_value_to_string): Only call
434 scm_port_conversion_strategy if Guile version >= 2.0.6.
436 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
438 * main.c (print_gdb_help): Add -q and --silent.
440 2014-06-06 Gary Benson <gbenson@redhat.com>
442 * common/signals.c: Remove preprocessor conditionals for
443 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
445 * proc-events.c: Likewise.
447 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
449 * symfile.c (symfile_free_objfile): Remove restriction to
451 * symfile-mem.c (symbol_file_add_from_memory): Call
452 add_target_sections_of_objfile.
454 2014-06-05 Ludovic Courtès <ludo@gnu.org>
456 * guile/scm-value.c (gdbscm_history_append_x): Use
457 'vlscm_get_value_smob_arg_unsafe' instead of
458 'vlscm_scm_to_value'.
460 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
463 * utils.c (printchar): Don't escape at all if quoter is NUL.
464 Update function documentation to clarify effect of parameter
466 * remote.c (escape_buffer): Pass '\\' as the quoter to
468 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
470 (mi_solib_unloaded): Same.
472 2014-06-05 Joel Brobecker <brobecker@adacore.com>
474 * development.sh: Delete.
475 * Makefile.in (config.status): Adjust dependency on development.sh.
476 * configure.ac: Adjust development.sh source call.
477 * configure: Regenerate.
479 2014-06-04 Doug Evans <xdje42@gmail.com>
481 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
482 is_scheme_bkpt, spec.
483 (bpscm_make_breakpoint_smob): Initialize new members.
484 (gdbscm_create_breakpoint_x): Split into two ...
485 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
486 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
487 (scheme_function breakpoint_functions): Update.
488 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
489 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
490 register-breakpoint!.
492 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
495 * mem-break.c (z_type_supported): Return zero if
496 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
498 2014-06-04 Tom Tromey <tromey@redhat.com>
500 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
501 value_from_contents_and_address_unresolved.
502 (ada_template_to_fixed_record_type_1): Likewise.
503 (ada_which_variant_applies): Likewise.
504 * value.h (value_from_contents_and_address_unresolved): Declare.
505 * value.c (value_from_contents_and_address_unresolved): New
507 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
508 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
509 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
511 2014-06-04 Tom Tromey <tromey@redhat.com>
513 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
515 2014-06-04 Tom Tromey <tromey@redhat.com>
517 * procfs.c (procfs_attach): Make "args" const.
518 * windows-nat.c (windows_attach): Make "args" const.
519 * nto-procfs.c (procfs_attach): Make "args" const.
520 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
521 * go32-nat.c (go32_attach): Make "args" const.
522 * gnu-nat.c (gnu_attach): Make "args" const.
523 * darwin-nat.c (darwin_attach): Make "args" const.
524 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
525 * linux-nat.c (linux_nat_attach): Make "args" const.
526 * remote.c (extended_remote_attach_1, extended_remote_attach):
528 * target.h (struct target_ops) <to_attach>: Make "args" const.
529 (find_default_attach): Likewise.
530 * utils.c (parse_pid_to_attach): Make "args" const.
531 * utils.h (parse_pid_to_attach): Update.
533 2014-06-04 Tom Tromey <tromey@redhat.com>
535 * target-delegates.c: Rebuild.
536 * target.c (default_thread_address_space): New function.
537 (target_thread_address_space): Simplify.
538 * target.h (struct target_ops) <to_thread_address_space>: Add
541 2014-06-04 Doug Evans <xdje42@gmail.com>
543 * guile/scm-type.c (type_smob): Remove duplicate typedef.
545 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
547 * record-btrace.c: Include event-loop.h and inf-loop.h.
548 (record_btrace_resume_exec_dir)
549 (record_btrace_async_inferior_event_handler)
550 (record_btrace_handle_async_inferior_event): New.
551 (record_btrace_open): Create async event handler.
552 (record_btrace_close): Delete async event handler.
553 (record_btrace_resume): Set record_btrace_resume_exec_dir,
554 Mark async event handler.
555 (record_btrace_execution_direction): New.
556 (init_record_btrace_ops): Initialize to_execution_direction.
558 2014-06-03 Doug Evans <xdje42@gmail.com>
560 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
561 (gdbscm_make_parameter): Ditto.
563 2014-06-03 Doug Evans <dje@google.com>
565 * exec.c (exec_close_1): Call clear_section_table instead of
566 resize_section_table.
567 (clear_section_table): New function.
568 (resize_section_table): Make static. Rename arg num_added to
570 * exec.h (clear_section_table): Declare.
571 (resize_section_table): Delete.
572 * progspace.c (release_program_space): Call clear_section_table
573 instead of resize_section_table.
575 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
577 * NEWS (Python Scripting): Add entry about the new xmethods
580 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
582 * python/py-xmethods.c: New file.
583 * python/py-objfile.c (objfile_object): New field 'xmethods'.
584 (objfpy_dealloc): XDECREF on the new xmethods field.
585 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
587 (objfpy_get_xmethods): New function.
588 (objfile_getset): New entry 'xmethods'.
589 * python/py-progspace.c (pspace_object): New field 'xmethods'.
590 (pspy_dealloc): XDECREF on the new xmethods field.
591 (pspy_new, pspace_to_pspace_object): Initialize xmethods
593 (pspy_get_xmethods): New function.
594 (pspace_getset): New entry 'xmethods'.
595 * python/python-internal.h: Add declarations for new functions.
596 * python/python.c (_initialize_python): Invoke
597 gdbpy_initialize_xmethods.
598 * python/lib/gdb/__init__.py (xmethods): New
600 * python/lib/gdb/xmethod.py: New file.
601 * python/lib/gdb/command/xmethods.py: New file.
603 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
605 * eval.c (evaluate_subexp_standard): Call the xmethod if the
606 best match method returned by find_overload_match is an xmethod.
607 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
608 the best matching operator returned by find_overload_match is an
610 * valops.c: #include "extension.h".
611 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
612 Return void. The list of matching source methods is returned in
613 "fn_list" and a vector of matching debug method workers is
614 returned in "xm_worker_vec". Update all callers.
615 (value_find_oload_method_list): Likewise.
616 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
617 non-NULL, then the index of the best matching method in this
618 vector is returned. Update all callers.
619 (find_overload_match): Include xmethods while performing overload
622 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
624 * defs.h (enum lval_type): New enumerator "lval_xcallable".
625 * extension-priv.h (struct extension_language_ops): Add the
627 * extension.c (new_xmethod_worker, clone_xmethod_worker,
628 get_matching_xmethod_workers, get_xmethod_argtypes,
629 invoke_xmethod, free_xmethod_worker,
630 free_xmethod_worker_vec): New functions.
631 * extension.h: #include "common/vec.h".
632 New function declarations.
633 (struct xmethod_worker): New struct.
634 (VEC (xmethod_worker_ptr)): New vector type.
635 (xmethod_worker_ptr): New typedef.
636 (xmethod_worker_vec): Likewise.
637 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
639 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
640 (struct builtin_type): New field "xmethod".
641 * valarith.c (value_ptradd): Assert that the value argument is not
643 * valops.c (value_must_coerce_to_target): Return 0 for
644 lval_xcallable values.
645 * value.c (struct value): New field XM_WORKER in the field
647 (value_address, value_raw_address): Return 0 for lval_xcallable
649 (set_value_address): Assert that the value is not an
651 (value_free): Free the associated xmethod worker when freeing
652 lval_xcallable values.
653 (set_value_component_location): Assert that the WHOLE value is not
655 (value_of_xmethod, call_xmethod): New functions.
656 * value.h: Declare "struct xmethod_worker".
657 Declare new functions value_of_xmethod, call_xmethod.
659 2014-06-03 Joel Brobecker <brobecker@adacore.com>
660 Pedro Alves <palves@redhat.com>
663 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
664 New function, extracted from software_breakpoint_inserted_here_p.
665 (software_breakpoint_inserted_here_p): Replace factored out code
666 by call to find_non_raw_software_breakpoint_inserted_here.
667 (bp_target_info_copy_insertion_state): New function.
668 (bkpt_insert_location): Handle the case of a single-step
669 breakpoint already inserted at the same address.
670 (bkpt_remove_location): Handle the case of a single-step
671 breakpoint still inserted at the same address.
672 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
673 breakpoint already inserted at the same address.
674 (deprecated_remove_raw_breakpoint): Handle the case of a
675 non-raw breakpoint still inserted at the same address.
676 (find_single_step_breakpoint): New function, extracted from
677 single_step_breakpoint_inserted_here_p.
678 (find_single_step_breakpoint): New function,
679 factored out from single_step_breakpoint_inserted_here_p.
680 (single_step_breakpoint_inserted_here_p): Reimplement.
682 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
684 Pushed by Joel Brobecker <brobecker@adacore.com>
685 * source.c (show_substitute_path_command): Fix display of matching
688 2014-06-03 Gary Benson <gbenson@redhat.com>
690 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
692 2014-06-02 Doug Evans <xdje42@gmail.com>
694 Add parameter support for Guile.
695 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
696 (SUBDIR_GUILE_SRCS): Add scm-param.c.
697 (scm-param.o): New rule.
698 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
699 (gdbscm_misc_error): Declare.
700 (gdbscm_canonicalize_command_name): Declare.
701 (gdbscm_scm_to_host_string): Declare.
702 (gdbscm_scm_from_host_string): Declare.
703 (gdbscm_initialize_parameters): Declare.
704 * guile/guile.c (initialize_gdb_module): Call
705 gdbscm_initialize_parameters.
706 * guile/lib/gdb.scm: Export parameter symbols.
707 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
708 cmdscm_canonicalize_name and made public. All callers updated.
709 * guile/scm-exception.c (gdbscm_misc_error): New function.
710 * guile/scm-param.c: New file.
711 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
712 (gdbscm_scm_to_host_string): New function.
713 (gdbscm_scm_from_host_string): New function.
714 * scm-utils.c (gdbscm_gc_dup_argv): New function.
716 2014-06-02 Doug Evans <xdje42@gmail.com>
718 Add command support for Guile.
719 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
720 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
721 (scm-cmd.o): New rule.
722 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
723 (gdbscm_user_error_p): Declare.
724 (gdbscm_parse_command_name): Declare.
725 (gdbscm_valid_command_class_p): Declare.
726 (gdbscm_initialize_commands): Declare.
727 * guile/guile.c (initialize_gdb_module): Call
728 gdbscm_initialize_commands.
729 * guile/lib/gdb.scm: Export command symbols.
730 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
731 (throw-user-error): New function.
732 * guile/scm-cmd.c: New file.
733 * guile/scm-exception.c (user_error_symbol): New static global.
734 (gdbscm_user_error_p): New function.
735 (gdbscm_initialize_exceptions): Set user_error_symbol.
736 * scm-utils.c (gdbscm_gc_xstrdup): New function.
738 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
740 * top.c (command_loop): Handle comments here...
741 (command_line_input): ... not here.
743 2014-06-02 Doug Evans <xdje42@gmail.com>
745 Add progspace support for Guile.
746 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
747 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
748 (scm-progspace.o): New rule.
749 * guile/guile-internal.h (pspace_smob): New typedef.
750 (psscm_pspace_smob_pretty_printers): Declare.
751 (psscm_pspace_smob_from_pspace): Declare.
752 (psscm_scm_from_pspace): Declare.
753 * guile/guile.c (initialize_gdb_module): Call
754 gdbscm_initialize_pspaces.
755 * guile/lib/gdb.scm: Export progspace symbols.
756 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
758 (append-pretty-printer!): Ditto.
759 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
761 * guile/scm-progspace.c: New file.
763 2014-06-03 Alan Modra <amodra@gmail.com>
765 * ppc64-tdep.c (ppc64_standard_linkage8): New.
766 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
768 2014-06-02 Doug Evans <dje@google.com>
770 Add support for skeletonless type units.
771 * dwarf2read.c (struct dwarf2_per_objfile): New member
772 n_allocated_type_units.
773 (struct dwarf2_per_objfile) <tu_stats>: New member
774 nr_all_type_units_reallocs.
775 (create_signatured_type_table_from_index): Initialize
776 n_allocated_type_units
777 (create_all_type_units): Ditto.
778 (add_type_unit): Move up in file. New arg slot.
779 All callers updated. Increase space for all_type_units more
781 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
782 (lookup_dwo_signatured_type): Handle skeletonless TUs.
783 (lookup_dwp_signatured_type): Ditto.
784 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
786 (build_type_psymtabs_1): Leave type_unit_groups as
787 NULL if no TUs present.
788 (print_tu_stats): New function.
789 (process_skeletonless_type_unit): New function.
790 (process_dwo_file_for_skeletonless_type_units): New
792 (process_skeletonless_type_units): New function.
793 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
794 Call print tu_stats if debugging enabled.
796 2014-06-02 Pedro Alves <palves@redhat.com>
798 * breakpoint.c (build_target_command_list): Don't build a command
799 list if we have any duplicate location that isn't a dprintf.
801 2014-06-02 Pedro Alves <palves@redhat.com>
803 * breakpoint.c (dprintf_breakpoint_hit): New function.
804 (initialize_breakpoint_ops): Install it as dprintf's
805 breakpoint_hit method.
807 2014-06-02 Joel Brobecker <brobecker@adacore.com>
809 * source.c (substitute_path_rule_matches): Simplify using
810 filename_ncmp instead of FILENAME_CMP.
812 2014-06-02 Joel Brobecker <brobecker@adacore.com>
814 * source.c (substitute_path_rule_matches): Remove trailing spaces.
816 2014-06-01 Ludovic Courtès <ludo@gnu.org>
818 * configure.ac: When Guile is available, check for the
819 availability of 'scm_new_smob'.
820 * configure, config.h.in: Regenerate.
821 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
824 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
826 * frame.c (struct frame_info): Add stop_string field.
827 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
828 (get_prev_frame_always): Old content moved into
829 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
830 TRY_CATCH, handle MEMORY_ERROR exceptions.
831 (frame_stop_reason_string): New function definition.
832 * frame.h (unwind_stop_reason_to_string): Extend comment to
833 mention frame_stop_reason_string.
834 (frame_stop_reason_string): New function declaration.
835 * stack.c (frame_info): Switch to frame_stop_reason_string.
836 (backtrace_command_1): Switch to frame_stop_reason_string.
837 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
838 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
839 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
841 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
843 * frame.c (frame_stop_reason_string): Rename to ...
844 (unwind_stop_reason_to_string): this.
845 * frame.h (frame_stop_reason_string): Rename to ...
846 (unwind_stop_reason_to_string): this.
847 * stack.c (frame_info): Update call to frame_stop_reason_string.
848 (backtrace_command_1): Likewise.
849 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
850 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
852 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
854 * frame.c (remove_prev_frame): New function.
855 (get_prev_frame_if_no_cycle): Create / discard cleanup using
858 2014-05-29 Pedro Alves <palves@redhat.com>
860 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
861 and make it const. When a single-step decays to a continue,
862 clear 'step', not 'hw_step'. Pass whether the caller wanted
863 to step to user_visible_resume_ptid, not what we ask the
866 2014-05-29 Pedro Alves <palves@redhat.com>
868 * infrun.c (process_event_stop_test, handle_step_into_function)
869 (handle_step_into_function_backward): Adjust.
870 Don't set the even thread's stop_step and call stop_waiting before
871 calling end_stepping_range. Instead do that ...
872 (end_stepping_range): ... here. Take an ecs pointer parameter.
874 2014-05-29 Pedro Alves <palves@redhat.com>
876 * infrun.c (stop_stepping): Rename to ...
877 (stop_waiting): ... this.
878 (proceed): Update comment.
879 (process_event_stop_test, handle_inferior_event)
880 (handle_signal_stop, handle_step_into_function)
881 (handle_step_into_function_backward): Update.
883 2014-05-29 Pedro Alves <palves@redhat.com>
885 * infcall.c (run_inferior_call): Don't check whether the current
886 thread is running after the proceed call.
888 2014-05-29 Pedro Alves <palves@redhat.com>
889 Tom Tromey <tromey@redhat.com>
891 * NEWS: Mention "maint set target-async", "set mi-async", and that
892 background execution commands are now always available.
893 * target.h (target_async_permitted): Update comment.
894 * target.c (target_async_permitted, target_async_permitted_1):
896 (set_target_async_command): Rename to ...
897 (maint_set_target_async_command): ... this.
898 (show_target_async_command): Rename to ...
899 (maint_show_target_async_command): ... this.
900 (_initialize_target): Adjust.
901 * infcmd.c (prepare_execution_command): Make extern.
902 * inferior.h (prepare_execution_command): Declare.
903 * infrun.c (set_observer_mode): Leave target async alone.
904 * mi/mi-interp.c (mi_interpreter_init): Install
905 mi_on_sync_execution_done as sync_execution_done observer.
906 (mi_on_sync_execution_done): New function.
907 (mi_execute_command_input_handler): Don't print the prompt if we
908 just started a synchronous command with an async target.
909 (mi_on_resume): Check sync_execution before printing prompt.
910 * mi/mi-main.h (mi_async_p): Declare.
911 * mi/mi-main.c: Include gdbcmd.h.
912 (mi_async_p): New function.
913 (mi_async, mi_async_1): New globals.
914 (set_mi_async_command, show_mi_async_command, mi_async): New
916 (exec_continue): Call prepare_execution_command.
917 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
918 (mi_execute_async_cli_command): Use mi_async_p.
919 (_initialize_mi_main): Install "set mi-async". Make
920 "target-async" a deprecated alias.
922 2014-05-29 Pedro Alves <palves@redhat.com>
924 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
925 (_initialize_cli_interp): Adjust.
926 * event-loop.c: Include "observer.h".
927 (start_event_loop): Notify 'command_error' observers instead of
928 calling display_gdb_prompt. Remove FIXME comment.
929 * event-top.c (display_gdb_prompt): Remove call into the
931 * inf-loop.c: Include "observer.h".
932 (inferior_event_handler): Notify 'command_error' observers instead
933 of calling display_gdb_prompt.
934 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
935 observers instead of calling display_gdb_prompt.
936 * interps.c (interp_set): Don't call display_gdb_prompt.
937 (current_interp_display_prompt_p): Delete.
938 * interps.h (interp_prompt_p): Delete declaration.
939 (interp_prompt_p_ftype): Delete.
940 (struct interp_procs) <prompt_proc_p>: Delete field.
941 (current_interp_display_prompt_p): Delete declaration.
942 * mi-interp.c (mi_interpreter_prompt_p): Delete.
943 (_initialize_mi_interp): Adjust.
944 * tui-interp.c (tui_init): Install 'sync_execution_done' and
945 'command_error' observers.
946 (tui_on_sync_execution_done, tui_on_command_error): New
948 (tui_display_prompt_p): Delete.
949 (_initialize_tui_interp): Adjust.
951 2014-05-29 Pedro Alves <palves@redhat.com>
954 * cli/cli-interp.c: Include infrun.h and observer.h.
955 (cli_uiout, cli_interp): New globals.
956 (cli_on_signal_received, cli_on_end_stepping_range)
957 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
959 (cli_interpreter_init): Install them as 'end_stepping_range',
960 'signal_received' 'signal_exited', 'exited' and 'no_history'
962 (_initialize_cli_interp): Remove cli_interp local.
963 * infrun.c (handle_inferior_event): Call the several stop reason
964 observers instead of printing the stop reason directly.
965 (end_stepping_range): New function.
966 (print_end_stepping_range_reason, print_signal_exited_reason)
967 (print_exited_reason, print_signal_received_reason)
968 (print_no_history_reason): Make static, and add an uiout
969 parameter. Print to that instead of to CURRENT_UIOUT.
970 * infrun.h (print_end_stepping_range_reason)
971 (print_signal_exited_reason, print_exited_reason)
972 (print_signal_received_reason print_no_history_reason): New
974 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
976 <cli_uiout>: New field.
977 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
978 uiout for CLI output. Install 'signal_received',
979 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
981 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
982 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
983 (mi_on_no_history): New functions.
984 (ui_out_free_cleanup): Delete function.
985 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
986 instead use the one already stored in the MI interpreter data.
988 * tui/tui-interp.c: Include infrun.h and observer.h.
989 (tui_interp): New global.
990 (tui_on_signal_received, tui_on_end_stepping_range)
991 (tui_on_signal_exited, tui_on_exited)
992 (tui_on_no_history): New functions.
993 (tui_init): Install them as 'end_stepping_range',
994 'signal_received' 'signal_exited', 'exited' and 'no_history'
996 (_initialize_tui_interp): Delete tui_interp local.
998 2014-05-29 Pedro Alves <palves@redhat.com>
1001 * linux-nat.c (linux_nat_resume_callback): Rename the second
1002 parameter to 'except'. Skip LP if it points to EXCEPT.
1003 (linux_nat_resume): Don't mark the event lwp as not stopped
1004 before resuming sibling lwps. Instead ask
1005 linux_nat_resume_callback to skip the event lwp. Mark it as not
1006 stopped after actually resuming it.
1007 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1009 (wait_lwp): Mark the lwp as stopped here.
1010 (stop_wait_callback): Mark the lwp as not stopped right after
1011 resuming it. Don't mark lwps as stopped here.
1012 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1013 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1015 2014-05-29 Pedro Alves <palves@redhat.com>
1018 * infrun.c (resume): Determine how much to resume depending on
1019 whether the caller wanted a step, not whether we can hardware step
1020 the target. Mark all threads that we intend to run as running,
1021 unless we're calling an inferior function.
1022 (normal_stop): If the thread is running an infcall, don't finish
1024 * target.c (target_resume): Don't mark threads as running here.
1026 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1028 * serial.c (_initialize_serial): Remove support for
1029 the "set remotebaud" and "show remotebaud" commands.
1030 * NEWS: Add entry documenting the removal of that command.
1032 2014-05-28 Yao Qi <yao@codesourcery.com>
1034 * charset.c: Fix typo in comments.
1036 2014-05-27 Gary Benson <gbenson@redhat.com>
1038 * utils.c (internal_vproblem): Prompt for a bug report.
1040 2014-05-26 Andy Wingo <wingo@igalia.com>
1042 * guile/scm-arch.c (arscm_mark_arch_smob):
1043 * guile/scm-block.c (bkscm_mark_block_smob)
1044 (bkscm_mark_block_syms_progress_smob):
1045 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1046 * guile/scm-exception.c (exscm_mark_exception_smob):
1047 * guile/scm-frame.c (frscm_mark_frame_smob):
1048 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1049 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1050 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1051 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1052 (ppscm_mark_pretty_printer_worker_smob):
1053 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1054 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1055 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1056 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1058 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1061 2014-05-26 Andy Wingo <wingo@igalia.com>
1062 Doug Evans <xdje42@gmail.com>
1064 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1065 empty_base_class. All uses updated.
1066 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1067 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1069 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1070 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1071 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1072 (gdbscm_gsmob_has_property_p, add_property_name)
1073 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1074 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1075 (gdb-object-has-property?, gdb-object-properties): Remove.
1076 (gdb-object-kind): Renamed from gsmob-kind.
1078 2014-05-26 Andy Wingo <wingo@igalia.com>
1080 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1081 * configure: Regenerate.
1083 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1085 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1087 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1089 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1090 (replay_memory_access_read_only, replay_memory_access_read_write)
1091 (replay_memory_access_types, replay_memory_access)
1092 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1093 (cmd_set_record_btrace, cmd_show_record_btrace)
1094 (cmd_show_replay_memory_access): New.
1095 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1096 (record_btrace_remove_breakpoint): Replace
1097 record_btrace_allow_memory_access with replay_memory_access.
1098 (_initialize_record_btrace): Add commands.
1099 * NEWS: Announce it.
1101 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1103 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1105 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1107 * MAINTAINERS (Write After Approval): Move self back from
1110 2014-05-22 Pedro Alves <palves@redhat.com>
1112 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1113 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1114 (disable_randomization, enum exec_direction_kind)
1115 (execution_direction, stop_registers, start_remote)
1116 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1117 (wait_for_inferior, normal_stop, get_last_target_status)
1118 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1119 (insert_step_resume_breakpoint_at_sal)
1120 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1121 (set_step_info, print_stop_event, signal_stop_state)
1122 (signal_print_state, signal_pass_state, signal_stop_update)
1123 (signal_print_update, signal_pass_update)
1124 (update_signals_program_target, clear_exit_convenience_vars)
1125 (displaced_step_dump_bytes, update_observer_mode)
1126 (signal_catch_update, gdb_signal_from_command): Move
1128 * infrun.h: ... to this new file.
1129 * amd64-tdep.c: Include infrun.h.
1130 * annotate.c: Include infrun.h.
1131 * arch-utils.c: Include infrun.h.
1132 * arm-linux-tdep.c: Include infrun.h.
1133 * arm-tdep.c: Include infrun.h.
1134 * break-catch-sig.c: Include infrun.h.
1135 * breakpoint.c: Include infrun.h.
1136 * common/agent.c: Include infrun.h instead of inferior.h.
1137 * corelow.c: Include infrun.h.
1138 * event-top.c: Include infrun.h.
1139 * go32-nat.c: Include infrun.h.
1140 * i386-tdep.c: Include infrun.h.
1141 * inf-loop.c: Include infrun.h.
1142 * infcall.c: Include infrun.h.
1143 * infcmd.c: Include infrun.h.
1144 * infrun.c: Include infrun.h.
1145 * linux-fork.c: Include infrun.h.
1146 * linux-nat.c: Include infrun.h.
1147 * linux-thread-db.c: Include infrun.h.
1148 * monitor.c: Include infrun.h.
1149 * nto-tdep.c: Include infrun.h.
1150 * procfs.c: Include infrun.h.
1151 * record-btrace.c: Include infrun.h.
1152 * record-full.c: Include infrun.h.
1153 * remote-m32r-sdi.c: Include infrun.h.
1154 * remote-mips.c: Include infrun.h.
1155 * remote-notif.c: Include infrun.h.
1156 * remote-sim.c: Include infrun.h.
1157 * remote.c: Include infrun.h.
1158 * reverse.c: Include infrun.h.
1159 * rs6000-tdep.c: Include infrun.h.
1160 * s390-linux-tdep.c: Include infrun.h.
1161 * solib-irix.c: Include infrun.h.
1162 * solib-osf.c: Include infrun.h.
1163 * solib-svr4.c: Include infrun.h.
1164 * target.c: Include infrun.h.
1165 * top.c: Include infrun.h.
1166 * windows-nat.c: Include infrun.h.
1167 * mi/mi-interp.c: Include infrun.h.
1168 * mi/mi-main.c: Include infrun.h.
1169 * python/py-threadevent.c: Include infrun.h.
1171 2014-05-22 Pedro Alves <palves@redhat.com>
1173 * infrun.c (handle_inferior_event): Store the exit code for
1174 --return-child-result here, instead of ...
1175 (print_exited_reason): ... here.
1177 2014-05-21 Pedro Alves <palves@redhat.com>
1180 * gdbthread.h (struct thread_control_state): New field
1182 * infrun.c (follow_fork): Copy the new thread control field to the
1184 (clear_proceed_status_thread): Clear the new thread control field.
1185 (proceed): Set the new thread control field.
1186 * interps.h (command_interp): Declare.
1187 * interps.c (command_interpreter): New global.
1188 (command_interp): New function.
1189 (interp_exec): Set `command_interpreter' while here.
1190 * cli-out.c (cli_uiout_dtor): New function.
1191 (cli_ui_out_impl): Install it.
1192 * mi/mi-interp.c: Include cli-out.h.
1193 (mi_cmd_interpreter_exec): Add comment.
1194 (restore_current_uiout_cleanup): New function.
1195 (ui_out_free_cleanup): New function.
1196 (mi_on_normal_stop): If finishing an execution command started by
1197 a CLI command, or any kind of breakpoint-like event triggered,
1198 print the stop event to the output (CLI) stream.
1199 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1201 2014-05-21 Pedro Alves <palves@redhat.com>
1203 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1204 current source line having changed.
1205 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1206 * infrun.c (normal_stop): Adjust call to
1207 set_current_sal_from_frame.
1208 * source.c (clear_lines_listed_range): New function.
1209 (set_current_source_symtab_and_line, identify_source_line): Clear
1210 the lines listed range.
1211 (line_info): Handle the first "info line" after the current source
1212 line having changed.
1213 * stack.c (print_stack_frame): Remove center handling.
1214 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1217 2014-05-21 Pedro Alves <palves@redhat.com>
1219 * inf-child.c (inf_child_mourn_inferior): New function.
1220 * inf-child.h (inf_child_mourn_inferior): New declaration.
1221 * darwin-nat.c (darwin_mourn_inferior): Use
1222 inf_child_mourn_inferior.
1223 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1224 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1225 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1226 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1227 * windows-nat.c (windows_mourn_inferior): Likewise.
1229 2014-05-21 Doug Evans <xdje42@gmail.com>
1231 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1233 2014-05-21 Doug Evans <xdje42@gmail.com>
1235 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1236 (gdbscm_out_of_range_error): Ditto.
1237 (gdbscm_memory_error): Ditto.
1238 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1239 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1240 (gdbscm_out_of_range_error): Update.
1241 (gdbscm_memory_error): Update.
1242 (gdbscm_scm_to_target_string_unsafe): Delete.
1244 2014-05-21 Pedro Alves <palves@redhat.com>
1246 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1248 (inf_child_open_target): New function.
1249 (inf_child_open): Use inf_child_open_target to push the target
1250 instead of erroring out.
1251 (inf_child_disconnect, inf_child_close)
1252 (inf_child_maybe_unpush_target): New functions.
1253 (inf_child_target): Install inf_child_disconnect and
1254 inf_child_close. Store a pointer to the returned object.
1255 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1257 * target.c (auto_connect_native_target): New global.
1258 (show_default_run_target): New function.
1259 (find_default_run_target): Return NULL if automatically connecting
1260 to the native target is disabled.
1261 (_initialize_target): Install set/show auto-connect-native-target.
1262 * NEWS: Mention "set auto-connect-native-target", and "target
1264 * linux-nat.c (super_close): New global.
1265 (linux_nat_close): Call super_close.
1266 (linux_nat_add_target): Store a pointer to the base class's
1268 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1269 inf_child_maybe_unpush.
1270 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1272 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1273 the inferior. Use inf_child_maybe_unpush_target.
1274 (inf_ttrace_attach): Don't push the target if it is already
1276 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1277 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1278 after mourning the inferior. Use inf_child_maybe_unpush_target.
1279 (darwin_attach_pid): Don't push the target if it is already
1281 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1282 mourning the inferior. Use inf_child_maybe_unpush_target.
1283 (gnu_detach): Use inf_child_maybe_unpush_target.
1284 * go32-nat.c (go32_create_inferior): Don't push the target if it
1286 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1287 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1288 (procfs_open): Rename to ...
1289 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1290 comments. Can target_preopen before changing node. Call
1291 inf_child_open_target to push the target explicitly.
1292 (procfs_attach): Don't push the target if it is already pushed.
1293 (procfs_detach): Use inf_child_maybe_unpush_target.
1294 (procfs_create_inferior): Don't push the target if it is already
1296 (nto_native_ops): New global.
1297 (procfs_open): Reimplement.
1298 (procfs_native_open): New function.
1299 (init_procfs_targets): Install procfs_native_open as to_open of
1300 "target native". Store a pointer to the "native" target in
1302 * procfs.c (procfs_attach): Don't push the target if it is already
1304 (procfs_detach): Use inf_child_maybe_unpush_target.
1305 (procfs_mourn_inferior): Only unpush the target after mourning the
1306 inferior. Use inf_child_maybe_unpush_target.
1307 (procfs_init_inferior): Don't push the target if it is already
1309 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1310 if it is already pushed.
1312 2014-05-21 Pedro Alves <palves@redhat.com>
1314 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1315 and "procfs" targets are now called "native" instead.
1317 2014-05-21 Pedro Alves <palves@redhat.com>
1319 * go32-nat.c (go32_open): Delete.
1320 (go32_target): Don't override the to_open method.
1322 2014-05-21 Pedro Alves <palves@redhat.com>
1324 * nto-procfs.c (procfs_can_run): New function.
1325 (nto_procfs_ops): New global.
1326 (init_procfs_targets): New, based on procfs_target. Install
1327 "target native" in addition to "target procfs".
1328 (_initialize_procfs): Call init_procfs_targets instead of adding
1331 2014-05-21 Pedro Alves <palves@redhat.com>
1333 * windows-nat.c (windows_target): Don't override to_shortname,
1334 to_longname or to_doc.
1336 2014-05-21 Pedro Alves <palves@redhat.com>
1338 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1341 2014-05-21 Pedro Alves <palves@redhat.com>
1343 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1344 to_shortname, to_longname or to_doc.
1346 2014-05-21 Pedro Alves <palves@redhat.com>
1348 * go32-nat.c (go32_target): Don't override to_shortname,
1349 to_longname or to_doc.
1351 2014-05-21 Pedro Alves <palves@redhat.com>
1353 * inf-child.c (inf_child_open): Remove mention of "child".
1354 (inf_child_target): Rename target to "native" instead of "child".
1356 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1358 * Makefile.in (SFILES): Delete "regset.c".
1359 (COMMON_OBS): Delete "regset.o".
1361 * regset.h (regset_alloc): Delete prototype.
1363 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1365 * sparc-linux-tdep.c (sparc32_linux_gregset)
1366 (sparc32_linux_fpregset): New static regset structures.
1367 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1368 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1370 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1371 (sparc64_linux_fpregset): New static regset structures.
1372 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1373 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1374 New static regset structures.
1375 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1376 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1377 New static regset structures.
1378 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1379 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1380 New static regset structures.
1381 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1382 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1383 New static regset structures.
1384 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1386 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1389 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1390 register maps ("regmaps") from "*regset" to "*regmap". Do this
1391 for all regmap types and variables.
1392 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1393 (sparc32_linux_supply_core_gregset)
1394 (sparc32_linux_collect_core_gregset)
1395 (sparc32_linux_supply_core_fpregset)
1396 (sparc32_linux_collect_core_fpregset): Likewise.
1397 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1398 (sparc_gregmap, sparc_fpregmap): ... these.
1399 (sparc_supply_gregset, sparc_collect_gregset)
1400 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1401 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1402 (_initialize_sparc_nat): Rename regmaps.
1403 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1404 (sparc_gregmap, sparc_fpregmap): ... these.
1405 (sparc_supply_gregset, sparc_collect_gregset)
1406 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1407 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1409 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1410 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1412 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1414 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1415 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1416 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1418 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1419 (sparc32_bsd_fpregset): Rename to...
1420 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1421 (sparc32_bsd_fpregmap): ... these.
1422 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1423 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1424 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1425 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1426 (struct sparc_gregmap, struct sparc_fpregmap)
1427 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1428 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1429 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1430 (sparc32_supply_regset, sparc32_collect_gregset)
1431 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1433 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1434 (sparc64_linux_ptrace_gregmap): ... this.
1435 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1436 (_initialize_sparc64_linux_nat): Rename regmaps.
1437 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1438 (sparc64_linux_core_gregmap): ... this.
1439 (sparc64_linux_supply_core_gregset)
1440 (sparc64_linux_collect_core_gregset)
1441 (sparc64_linux_supply_core_fpregset)
1442 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1443 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1444 (sparc64_sol2_fpregset): Rename to...
1445 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1446 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1447 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1449 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1450 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1451 (sparc64_bsd_fpregset): Rename to...
1452 (struct sparc_gregmap, sparc64_sol2_gregmap)
1453 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1454 (sparc64_bsd_fpregmap): ... these.
1455 (sparc64_supply_gregset, sparc64_collect_gregset)
1456 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1458 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1459 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1460 (sparc64fbsd_gregmap): ... this.
1461 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1462 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1464 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1465 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1466 (sparc64nbsd_collect_fpregset): Likewise.
1467 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1468 (sparc64nbsd_gregmap): ... this.
1469 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1471 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1472 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1473 (sparc64obsd_gregmap): ... this.
1474 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1476 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1477 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1478 (sparc32nbsd_gregmap): ... this.
1479 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1482 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484 * score-tdep.c (score7_linux_gregset): New static regset
1486 (score7_linux_regset_from_core_section): Remove dynamic regset
1488 (score_gdbarch_init): Drop allocation of tdep structure.
1489 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1491 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1495 (am33_regset_from_core_section): Remove dynamic regset
1498 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1500 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1501 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1503 (mips_linux_regset_from_core_section): Remove dynamic regset
1505 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1506 'gregset64', 'fpregset', and 'fpregset64'.
1507 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1508 deleted tdep fields.
1510 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1512 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1514 (amd64_regset_from_core_section): Remove dynamic regset
1516 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1518 (amd64obsd_regset_from_core_section): Remove dynamic regset
1520 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1522 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1523 x86-common regset supply function.
1524 * i386-tdep.c (i386_collect_gregset): Make static.
1525 (i386_gregset): New global regset structure.
1526 (i386_fpregset, i386_xstateregset): New static regset structures.
1527 (i386_regset_from_core_section): Remove dynamic regset
1529 (i386_gdbarch_init): Remove initialization of tdep fields
1530 'gregset', 'fpregset', and 'xstateregset'.
1531 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1532 'fpregset', and 'xstateregset'.
1533 (i386_collect_gregset): Remove prototype.
1534 (i386_gregset): New declaration.
1535 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1537 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1543 (arm_linux_vfpregset): New static regset structures.
1544 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1546 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1547 and 'vfpregset' fields.
1549 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1551 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1552 (aarch64_linux_fpregset): New static regset structures.
1553 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1554 of regset structures.
1555 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1558 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1560 * regset.h (struct regset): Remove gdbarch field.
1561 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1562 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1563 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1565 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1566 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1567 (ppc32_linux_vsxregset): Likewise.
1568 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1569 via the regcache instead of the regset.
1570 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1571 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1572 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1573 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1576 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1578 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1579 Constify structures.
1580 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1581 (alphanbsd_aout_gregset): Likewise.
1582 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1583 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1585 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1586 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1588 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1589 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1590 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1591 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1592 * m88k-tdep.c (m88k_gregset): Likewise.
1593 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1594 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1595 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1596 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1597 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1598 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1599 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1600 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1601 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1603 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1604 * sh-tdep.h (sh_corefile_gregset): Likewise.
1605 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1606 * vax-tdep.c (vax_gregset): Likewise.
1608 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1610 Fix TLS access for -static -pthread.
1611 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1612 (try_thread_db_load_1): Initialize it.
1613 (thread_db_get_thread_local_address): Call it if LM is zero.
1614 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1615 * target.h (struct target_ops) (to_get_thread_local_address): Add
1616 load_module_addr comment.
1618 2014-05-21 Pedro Alves <palves@redhat.com>
1620 * dcache.c (dcache_read_memory_partial): If reading the cache line
1621 fails, fallback to reading just the memory the caller wanted.
1623 2014-05-20 Doug Evans <dje@google.com>
1625 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1626 instead of get_current_arch.
1628 2014-05-20 Pedro Alves <palves@redhat.com>
1630 * NEWS: Mention that compare-sections now works with all targets.
1632 * remote.c (PACKET_qCRC): New enum value.
1633 (remote_verify_memory): Don't send qCRC if the target has no
1634 execution. Use packet_support/packet_ok. If the target doesn't
1635 support the qCRC packet, fallback to a deep memory copy.
1636 (compare_sections_command): Say "target image" instead of "remote
1638 (_initialize_remote): Add PACKET_qCRC to the list of config
1639 packets that have no associated command. Extend comment.
1640 * target.c (simple_verify_memory, default_verify_memory): New
1642 * target.h (struct target_ops) <to_verify_memory>: Default to
1643 default_verify_memory.
1644 (simple_verify_memory): New declaration.
1645 * target-delegates.c: Regenerate.
1647 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1649 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1651 2014-05-20 Hui Zhu <hui@codesourcery.com>
1652 Yao Qi <yao@codesourcery.com>
1655 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1656 and change address of sp and pc.
1658 2014-05-19 Tom Tromey <tromey@redhat.com>
1660 * gdbtypes.c (rank_function): Use XNEWVEC.
1661 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1663 2014-05-19 Doug Evans <dje@google.com>
1665 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1666 build_type_unit_groups and moved closer to only caller. Remove
1667 arguments. All references updated. Remove outdated .gdb_index
1669 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1670 build_type_psymtabs_1.
1672 2014-05-19 Doug Evans <dje@google.com>
1674 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1675 n_type_unit_groups, all_type_unit_groups. All uses removed.
1676 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1677 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1678 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1679 (add_type_unit_group_to_table): Delete.
1681 2014-05-19 Doug Evans <dje@google.com>
1683 * eval.c (evaluate_subexp_standard): Add some comments.
1685 2014-05-17 Doug Evans <xdje42@gmail.com>
1687 * progspace.c (remove_program_space): Delete, unused.
1688 * progspace.h (remove_program_space): Ditto.
1690 2014-05-17 Doug Evans <xdje42@gmail.com>
1692 * inferior.c (prune_inferiors): Fix comment.
1693 (remove_inferior_command): Call prune_program_spaces.
1695 2014-05-16 Doug Evans <dje@google.com>
1697 New command line option -D.
1699 * main.c (set_gdb_data_directory): New function.
1700 (captured_main): Recognize -D. Flag error for --data-directory "".
1701 Call set_gdb_data_directory.
1702 (print_gdb_help): Print --data-directory, -D.
1703 * main.h (set_gdb_data_directory): Declare.
1704 * top.c (staged_gdb_datadir): New static global.
1705 (set_gdb_datadir): Call set_gdb_data_directory
1706 (show_gdb_datadir): New function.
1707 (init_main): Update init of data-directory parameter.
1709 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1711 Import the "dirfd" gnulib module.
1712 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1713 * gnulib/aclocal.m4: Update.
1714 * gnulib/config.in: Update.
1715 * gnulib/configure: Update.
1716 * gnulib/import/Makefile.am: Update.
1717 * gnulib/import/Makefile.in: Update.
1718 * gnulib/import/dirfd.c: New.
1719 * gnulib/import/m4/dirfd.m4: New.
1720 * gnulib/import/m4/gnulib-cache.m4: Update.
1721 * gnulib/import/m4/gnulib-comp.m4: Update.
1723 2014-05-16 Pierre Muller <muller@sourceware.org>
1724 Yao Qi <yao@codesourcery.com>
1726 * valprint.c (print_wchar): Move the code on checking whether
1727 W is a printable wide char to the default branch of switch
1728 statement below. Call wchar_printable instead of gdb_iswprint.
1730 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1732 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1733 ldr.w and ldrd instructions.
1735 2014-05-15 Doug Evans <dje@google.com>
1737 * dwarf2read.c (read_structure_type): Delete outdated comments.
1739 2014-05-14 Tom Tromey <tromey@redhat.com>
1741 * macrocmd.c (print_macro_definition): Reindent.
1743 2014-05-13 Doug Evans <xdje42@gmail.com>
1745 * python/py-cmd.c (cmdpy_completer): Add comment.
1746 (completers): Make const.
1748 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1750 * infrun.c (resume): Remove should_resume (unused). Move up
1751 declaration of resume_ptid.
1753 2014-05-13 Tom Tromey <tromey@redhat.com>
1755 * language.h (unop_type_check): Remove.
1756 (binop_type_check): Don't declare.
1758 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1760 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1761 call to regcache_raw_collect.
1763 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1765 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1766 mi_console->quote as the quoting character.
1768 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1770 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1772 2014-04-29 Tom Tromey <tromey@redhat.com>
1774 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1775 "show debug varobj".
1777 2014-05-07 Kyle McMartin <kyle@redhat.com>
1779 Pushed by Joel Brobecker <brobecker@adacore.com>.
1780 * aarch64-tdep.c (aarch64_software_single_step): New function.
1781 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1782 with aarch64_software_single_step.
1784 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1788 2014-05-05 Keith Seitz <keiths@redhat.com>
1790 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1791 variable or history value is successfully parsed.
1793 2014-05-05 Yao Qi <yao@codesourcery.com>
1794 Pedro Alves <palves@redhat.com>
1796 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1797 address of blocks that intersects the requested range. Trim
1798 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1800 * ctf.c (ctf_xfer_partial): Likewise.
1802 2014-05-05 Yao Qi <yao@codesourcery.com>
1804 * printcmd.c (display_command): Remove the check to
1805 target_has_execution.
1807 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1809 * ppcobsd-nat.c: Include "obsd-nat.h".
1810 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1812 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1814 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1816 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1817 and 16-bit signed and unsigned arguments. Update comment.
1818 (stap_parse_probe_arguments): Extend code to handle such
1819 arguments. Use warning instead of complaint to notify about
1820 unrecognized bitness.
1822 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1824 PR breakpoints/16889
1825 * stap-probe.c (stap_parse_probe_arguments): Simplify
1826 check for non-prefixed probes (i.e., probes whose
1827 arguments do not start with "N@"). Always set the
1828 argument type to a sane value.
1830 2014-05-01 David Taylor <dtaylor@emc.com>
1832 * remote.c (compare_sections_command): Add -r option to compare
1833 all loadable read-only sections.
1835 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1837 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1838 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1840 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1841 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1842 Remove unused CORE_ADDR argument. Update all callers.
1844 2014-04-29 Pedro Alves <palves@redhat.com>
1846 * remote.c (struct packet_config) <detect>: Extend comment.
1847 (add_packet_config_cmd): Don't set the config's detect or support
1849 (init_all_packet_configs): Also initialize the config's 'detect'
1851 (reset_all_packet_configs_support): New function.
1852 (remote_open_1): Call reset_all_packet_configs_support instead of
1853 init_all_packet_configs.
1854 (_initialize_remote): Initialize all packet configs. Assert that
1855 all packets have an associated command, except a few known
1858 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1860 * dwarf2read.c (read_subrange_type): Handle dynamic
1861 DW_AT_lower_bound attributes.
1863 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1865 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1866 dynamic bounds before computing its upper bound.
1867 (ada_discrete_type_low_bound): Same as above with the lower bound.
1869 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1871 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1872 range types. Adjust the array handling implementation to
1873 take advantage of this change.
1874 (resolve_dynamic_range): New function, mostly extracted from
1875 resolve_dynamic_bounds.
1876 (resolve_dynamic_array): New function, mostly extracted from
1877 resolve_dynamic_bounds.
1878 (resolve_dynamic_bounds): Delete.
1879 (resolve_dynamic_type): Reimplement. Add handling of
1880 TYPE_CODE_RANGE types.
1882 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1884 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1885 handling of parallel ___XA types.
1887 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1889 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1890 unnecessary second call to static_unwrap_type.
1892 2014-04-27 Hui Zhu <hui@codesourcery.com>
1894 * stack.c (print_frame_info): Call do_gdb_disassembly with
1895 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1897 2014-04-26 Doug Evans <xdje42@gmail.com>
1899 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1901 2014-04-25 Pedro Alves <palves@redhat.com>
1904 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1905 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1906 and newline from built string.
1907 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1908 (linux_ptrace_attach_fail_reason): ... this.
1909 * linux-nat.c (linux_nat_attach): Adjust to use
1910 linux_ptrace_attach_fail_reason.
1912 2014-04-25 Pedro Alves <palves@redhat.com>
1914 * remote.c (struct remote_state): Remove multi_process_aware,
1915 non_stop_aware, cond_tracepoints, cond_breakpoints,
1916 breakpoint_commands, fast_tracepoints, static_tracepoints,
1917 install_in_trace, disconnected_tracing,
1918 enable_disable_tracepoints, string_tracing, and
1919 augmented_libraries_svr4_read fields.
1920 (remote_multi_process_p): Move further below in the file.
1921 (struct packet_config): Add comments.
1922 (update_packet_config): Delete function.
1923 (show_packet_config_cmd): Use packet_config_support.
1924 (add_packet_config_cmd): Use NULL as set callback.
1925 (packet_ok): "set remote foo-packet"-style commands no longer
1926 change config->supported -- adjust.
1927 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1928 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1929 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1930 (PACKET_QNonStop, PACKET_multiprocess_feature)
1931 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1932 (PACKET_DisconnectedTracing_feature)
1933 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1934 (set_remote_protocol_packet_cmd): Delete function.
1935 (packet_config_support, packet_support): New functions.
1936 (set_remote_protocol_Z_packet_cmd): Don't call
1937 update_packet_config.
1938 (remote_query_attached, remote_pass_signals)
1939 (remote_program_signals, remote_threads_info)
1940 (remote_threads_extra_info, remote_start_remote): Use
1942 (remote_start_remote): Use packet_config_support and
1944 (init_all_packet_configs): Set all packets to unknown support,
1945 instead of calling update_packet_config.
1946 (remote_check_symbols): Use packet_support.
1947 (remote_supported_packet): Unconditionally set the packet config's
1949 (remote_multi_process_feature, remote_non_stop_feature)
1950 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1951 (remote_breakpoint_commands_feature)
1952 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1953 (remote_install_in_trace_feature)
1954 (remote_disconnected_tracing_feature)
1955 (remote_enable_disable_tracepoint_feature)
1956 (remote_string_tracing_feature)
1957 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1958 (remote_protocol_features): Adjust to use remote_supported_packet
1959 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1960 "ConditionalTracepoints", "ConditionalBreakpoints",
1961 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1962 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1963 "EnableDisableTracepoints", and "tracenz".
1964 (remote_query_supported): Use packet_support.
1965 (remote_open_1): Adjust.
1966 (extended_remote_attach_1): Use packet_support. Switch on the
1967 result of packet_ok instead of checking whether the packet ended
1969 (remote_vcont_resume): Use packet_support.
1970 (remote_resume, remote_stop_ns, fetch_register_using_p)
1971 (remote_prepare_to_store, store_register_using_P)
1972 (check_binary_download, remote_write_bytes): Use packet_support.
1973 (remote_vkill): Use packet_support. Switch on the result of
1974 packet_ok instead of checking whether the packet ended up
1976 (extended_remote_supports_disable_randomization): Use
1978 (extended_remote_run): Switch on the result of packet_ok instead
1979 of checking whether the packet ended up disabled.
1980 (remote_insert_breakpoint, remote_remove_breakpoint)
1981 (remote_insert_watchpoint, remote_remove_watchpoint)
1982 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1984 (remote_search_memory): Use packet_config_support.
1985 (remote_get_thread_local_address, remote_get_tib_address)
1986 (remote_hostio_send_command, remote_can_execute_reverse): Use
1988 (remote_supports_cond_tracepoints)
1989 (remote_supports_cond_breakpoints)
1990 (remote_supports_fast_tracepoints)
1991 (remote_supports_static_tracepoints)
1992 (remote_supports_install_in_trace)
1993 (remote_supports_enable_disable_tracepoint)
1994 (remote_supports_string_tracing)
1995 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1996 the packet config says the feature is enabled or disabled.
1997 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1998 (remote_get_trace_status): Use packet_support.
1999 (remote_set_disconnected_tracing): Adjust to check whether the
2000 feature is enabled with packet_support.
2001 (remote_set_trace_buffer_size, remote_use_agent)
2002 (remote_can_use_agent, remote_supports_btrace): Use
2004 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2005 Use packet_config_support.
2006 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2007 the packet config says the feature is enabled or disabled.
2008 (set_range_stepping): Use packet_support.
2010 2014-04-25 Tom Tromey <tromey@redhat.com>
2012 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2015 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2017 * NEWS: Mention support for C99 variable length arrays.
2019 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2021 * ada-lang.c (standard_exc): Expand introductory comment.
2023 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2024 Walfred Tedeschi <walfred.tedeschi@intel.com>
2026 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2028 (amd64_linux_read_description): Add code to handle AVX512 xstate
2029 mask and return respective tdesc.
2030 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2031 and features/i386/x32-avx512-linux.c.
2032 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2033 (amd64_linux_core_read_description): Add code to handle AVX512
2034 xstate mask and return respective tdesc.
2035 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2036 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2038 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2039 (tdesc_amd64_avx512_linux): New prototype.
2040 (tdesc_x32_avx512_linux): Likewise.
2041 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2042 features/i386/x32-avx512.c.
2043 (amd64_ymm_avx512_names): New register names for pseudo
2045 (amd64_ymmh_avx512_names): New register names for raw registers
2047 (amd64_k_names): New register names for K registers.
2048 (amd64_zmmh_names): New register names for ZMM raw registers.
2049 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2050 (amd64_xmm_avx512_names): New register names for XMM16-31
2052 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2054 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2055 if feature is present.
2056 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2057 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2058 (AMD64_NUM_REGS): Adjust to new number of registers.
2059 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2060 registers supplied via XSTATE by AVX512 registers.
2061 (i386_linux_read_description): Add case for AVX512.
2062 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2063 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2064 (i386_linux_core_read_description): Add case for AVX512.
2065 (i386_linux_init_abi): Install supported register note section
2067 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2069 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2070 registers to be number of zmm7h + 1.
2071 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2072 * i386-tdep.c: Include features/i386/i386-avx512.c.
2073 (i386_zmm_names): Add ZMM pseudo register names array.
2074 (i386_zmmh_names): Add ZMM raw register names array.
2075 (i386_k_names): Add K raw register names array.
2076 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2077 registers. AVX512 has 16 more ZMM registers than there are YMM
2079 (i386_zmmh_regnum_p): Add function to look up register number of
2081 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2082 (i386_k_regnum_p): Likewise for K raw registers.
2083 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2084 registers added by AVX512.
2085 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2086 registers added by AVX512.
2087 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2089 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2090 (i386_pseudo_register_name): Add ZMM pseudo registers.
2091 (i386_zmm_type): Construct and return vector registers type for ZMM
2093 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2094 ZMM0-31 pseudo registers and K registers.
2095 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2096 and YMM16-31 registers from register cache.
2097 (i386_pseudo_register_write): Add code to write K, ZMM and
2099 (i386_register_reggroup_p): Add code to include/exclude AVX512
2100 registers in/from respective register groups.
2101 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2102 registers if feature is present in xcr0.
2103 (i386_gdbarch_init): Add code to initialize AVX512 feature
2104 variables in tdep structure, wire in pseudo registers and call
2105 initialize_tdesc_i386_avx512.
2106 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2108 (i386_regnum): Add AVX512 registers.
2109 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2110 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2111 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2112 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2114 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2115 (i386_ymm_avx512_regnum_p): Likewise.
2116 (i386_k_regnum_p): Likewise.
2117 (i386_zmm_regnum_p): Likewise.
2118 (i386_zmmh_regnum_p): Likewise.
2119 * i387-tdep.c : Update year in copyright notice.
2120 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2122 (XSAVE_YMM_AVX512_ADDR): New macro.
2123 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2125 (XSAVE_XMM_AVX512_ADDR): New macro.
2126 (xsave_avx512_k_offset): New table for K register offsets in
2128 (XSAVE_AVX512_K_ADDR): New macro.
2129 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2131 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2132 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2134 (i387_collect_xsave): Add code to collect AVX512 registers from
2136 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2137 of XMM16-31 registers.
2138 (I387_NUM_K_REGS): New define for number of K registers.
2139 (I387_K0_REGNUM): New define for K0 register number.
2140 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2141 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2142 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2144 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2145 (I387_XMM16_REGNUM): New define for XMM16 register number.
2146 (I387_YMM0_REGNUM): New define for YMM0 register number.
2147 (I387_KEND_REGNUM): New define for last K register number.
2148 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2149 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2151 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2153 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2155 * features/Makefile: Add AVX512 related files.
2156 * features/i386/32bit-avx512.xml: New file.
2157 * features/i386/64bit-avx512.xml: Likewise.
2158 * features/i386/amd64-avx512-linux.c: Likewise.
2159 * features/i386/amd64-avx512-linux.xml: Likewise.
2160 * features/i386/amd64-avx512.c: Likewise.
2161 * features/i386/amd64-avx512.xml: Likewise.
2162 * features/i386/i386-avx512-linux.c: Likewise.
2163 * features/i386/i386-avx512-linux.xml: Likewise.
2164 * features/i386/i386-avx512.c: Likewise.
2165 * features/i386/i386-avx512.xml: Likewise.
2166 * features/i386/x32-avx512-linux.c: Likewise.
2167 * features/i386/x32-avx512-linux.xml: Likewise.
2168 * features/i386/x32-avx512.c: Likewise.
2169 * features/i386/x32-avx512.xml: Likewise.
2170 * regformats/i386/amd64-avx512-linux.dat: New file.
2171 * regformats/i386/amd64-avx512.dat: Likewise.
2172 * regformats/i386/i386-avx512-linux.dat: Likewise.
2173 * regformats/i386/i386-avx512.dat: Likewise.
2174 * regformats/i386/x32-avx512-linux.dat: Likewise.
2175 * regformats/i386/x32-avx512.dat: Likewise.
2176 * NEWS: Add note about new support for AVX512.
2179 2014-04-23 Pedro Alves <palves@redhat.com>
2181 * breakpoint.c (insert_bp_location): Tolerate errors if the
2182 breakpoint is set in a user-loaded objfile.
2183 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2184 location is marked shlib_disabled. If the breakpoint is set in a
2185 user-loaded objfile is a GDB-side memory breakpoint, validate it
2186 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2187 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2189 * mem-break.c (memory_validate_breakpoint): New function.
2190 * objfiles.c (userloaded_objfile_contains_address_p): New
2192 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2193 * target.h (memory_validate_breakpoint): New declaration.
2195 2014-04-23 Pedro Alves <palves@redhat.com>
2197 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2198 the breakpoint is set in a shared library, only suppress
2199 errors for software breakpoints, not hardware breakpoints.
2201 2014-04-22 Pedro Alves <palves@redhat.com>
2203 * infrun.c (schedlock_applies): New function, factored out from
2204 find_thread_needs_step_over.
2205 (find_thread_needs_step_over): Use it.
2206 (switch_back_to_stepped_thread): Always clear trap_expected if the
2207 step over is finished. Return early if scheduler locking applies.
2208 Look for the stepping thread and a potential step-over thread with
2210 (currently_stepping_or_nexting_callback): Delete.
2212 2014-04-22 Nick Clifton <nickc@redhat.com>
2214 * NEWS: Mention that ARM sim now supports tracing.
2216 2014-04-22 Yao Qi <yao@codesourcery.com>
2218 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2220 * tracefile.c (tracefile_fetch_registers): ... it. New
2222 * tracefile.h (tracefile_fetch_registers): Declare.
2223 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2224 tracefile_fetch_registers.
2226 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2229 * windows-nat.c (thread_rec): Don't display a warning when
2230 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2231 fails for any reason, set th->suspended to -1, so that we don't
2232 try to resume such a thread. Also, don't return NULL in these
2233 cases, to avoid completely ruin the session due to "PC register is
2234 not available" error.
2235 (do_windows_fetch_inferior_registers): Check errors in
2236 GetThreadContext call.
2237 (windows_continue): Accept an additional argument KILLED; if not
2238 zero, ignore errors in the SetThreadContext call, since the
2239 inferior was killed and is shutting down.
2240 (windows_resume, get_windows_debug_event)
2241 (windows_create_inferior, windows_mourn_inferior)
2242 (windows_kill_inferior): All callers of windows_continue changed
2243 to adjust to its new calling sequence.
2245 2014-04-19 Yao Qi <yao@codesourcery.com>
2247 * ctf.c (ctf_open): Call post_create_inferior.
2249 2014-04-19 Yao Qi <yao@codesourcery.com>
2251 * ctf.c (handle_id): New static variable.
2252 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2253 value. Get the declaration of event "register" and get length
2254 of field "contents".
2256 2014-04-19 Yao Qi <yao@codesourcery.com>
2258 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2260 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2262 * valops.c (oload_method_static): Remove unnecessary argument
2263 METHOD. Update all callers.
2265 2014-04-18 Pedro alves <palves@redhat.com>
2266 Tom Tromey <tromey@redhat.com>
2269 * frame.c (get_prev_frame_1): Rename to ...
2270 (get_prev_frame_always): ... this, and make extern. Adjust.
2271 (skip_artificial_frames): Use get_prev_frame_always.
2272 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2273 (get_frame_unwind_stop_reason): Adjust to rename.
2274 * frame.h (get_prev_frame_always): Declare.
2275 * inline-frame.c: Include frame.h.
2276 (inline_frame_this_id): Use get_prev_frame_always.
2278 2014-04-18 Tristan Gingold <gingold@adacore.com>
2280 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2281 code by using bfd_mach_o_get_base_address.
2283 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2285 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2286 (spu_ax_pseudo_register_collect): New function.
2287 (spu_ax_pseudo_register_push_stack): Likewise.
2288 (spu_dwarf_reg_to_regnum): Likewise.
2289 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2291 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2293 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2294 Replace FRAME argument with FRAME_ID.
2295 * gdbarch.c, gdbarch.h: Regenerate.
2296 * findvar.c (default_value_from_register): Add GDBARCH argument;
2297 replace FRAME by FRAME_ID. No longer call get_frame_id.
2298 (value_from_register): Update call to gdbarch_value_from_register.
2299 * value.h (default_value_from_register): Update prototype.
2300 * s390-linux-tdep.c (s390_value_from_register): Update interface
2301 and call to default_value_from_register.
2302 * spu-tdep.c (spu_value_from_register): Likewise.
2304 * findvar.c (address_from_register): Remove TYPE argument.
2305 Do not call value_from_register; use gdbarch_value_from_register
2306 with null_frame_id instead.
2307 * value.h (address_from_register): Update prototype.
2308 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2309 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2310 address_from_register interface change.
2312 2014-04-17 Yao Qi <yao@codesourcery.com>
2314 * gdbtypes.h: Update comments to link to types and macros'
2317 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2319 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2321 2014-04-16 Keith Seitz <keiths@redhat.com>
2324 * dwarf2read.c (skip_one_die): Check that all relative-offset
2325 sibling DIEs fall within range of the current reader's buffer.
2326 (read_partial_die): Likewise.
2328 2014-04-16 Keith Seitz <keiths@redhat.com>
2331 * cp-namespace.c (lookup_symbol_file): If the type name of
2332 `this' is NULL, return immediately.
2334 2014-04-14 Keith Seitz <keiths@redhat.com>
2337 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2338 from symbol_matches_domain in symtab.c. All local callers
2339 of symbol_matches_domain updated.
2340 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2341 search STRUCT_DOMAIN.
2342 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2343 independently. standard_lookup will do that automatically.
2344 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2345 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2346 (cp_lookup_symbol_in_namespace): Likewise.
2347 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2348 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2349 may return a STRUCT_DOMAIN match.
2350 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2351 * cp-support.c: Include language.h.
2352 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2354 * psymtab.c (match_partial_symbol): Compare the requested
2355 domain with the symbol's domain directly.
2356 (lookup_partial_symbol): Likewise.
2357 * symtab.c (lookup_symbol_in_language): Explain when/why
2358 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2359 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2360 appropriate languages.
2361 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2362 and moved to ada-lang.c
2363 (lookup_block_symbol): Explain that this function only returns
2364 symbol matching the requested DOMAIN.
2365 Compare the requested domain with the symbol's domain directly.
2366 (iterate_over_symbols): Compare the requested domain with the
2367 symbol's domain directly.
2368 * symtab.h (symbol_matches_domain): Remove.
2370 2014-04-14 Tom Tromey <tromey@redhat.com>
2373 * c-exp.y (type_aggregate_p): New function.
2374 (qualified_name, classify_inner_name): Use it.
2375 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2376 and TYPE_TARGET_TYPE of an enum type.
2377 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2379 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2380 handle TYPE_DECLARED_CLASS.
2381 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2383 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2384 * valops.c (enum_constant_from_type): New function.
2385 (value_aggregate_elt): Use it.
2386 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2389 2014-04-14 Tom Tromey <tromey@redhat.com>
2391 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2392 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2394 * value.h (value_aggregate_elt): Update.
2396 2014-04-14 Tom Tromey <tromey@redhat.com>
2398 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2400 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2402 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2403 (evaluate_subexp_standard): Pass noside argument.
2404 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2405 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2406 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2407 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2408 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2410 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2412 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2413 points to a constant blob.
2415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2417 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2418 property and store it as the high bound and flag the range accordingly.
2419 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2420 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2421 * gdbtypes.h (enum range_flags): New enum.
2422 (struct range_bounds): Add flags member.
2424 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2426 * c-typeprint.c (c_type_print_varspec_suffix): Added
2427 check for not yet resolved high bound. If unresolved, print
2428 "variable length" string to the console instead of random
2431 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2433 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2435 (ada_template_to_fixed_record_type_1): Likewise.
2436 (ada_to_fixed_type_1): Likewise.
2437 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2438 (cp_print_value): Likewise.
2439 * d-valprint.c (dynamic_array_type): Likewise.
2440 * findvar.c (address_of_variable): Likewise.
2441 * jv-valprint.c (java_value_print): Likewise.
2442 * valops.c (value_ind): Likewise.
2443 * value.c (coerce_ref): Likewise.
2445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2447 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2448 value and retrieve the dynamic type size.
2450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2456 Joel Brobecker <brobecker@adacore.com>
2458 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2459 (dwarf2_evaluate_property): New function.
2460 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2461 * dwarf2read.c (attr_to_dynamic_prop): New function.
2462 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2464 * gdbtypes.c: Include dwarf2loc.h.
2465 (is_dynamic_type): New function.
2466 (resolve_dynamic_type): New function.
2467 (resolve_dynamic_bounds): New function.
2468 (get_type_length): New function.
2469 (check_typedef): Use get_type_length to compute type length.
2470 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2471 (TYPE_LOW_BOUND_KIND): New macro.
2472 (is_dynamic_type): New function prototype.
2473 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2474 to resolve dynamic properties of the type. Update comment.
2475 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2477 2014-04-14 Richard Henderson <rth@redhat.com>
2479 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2481 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2482 Doug Evans <xdje42@gmail.com>
2484 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2485 dereference TYPE_CODE_REF values.
2487 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2489 Revert the following changes due to regressions:
2491 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2492 (dwarf2_evaluate_property): New function.
2493 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2494 * dwarf2read.c (attr_to_dynamic_prop): New function.
2495 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2497 * gdbtypes.c: Include dwarf2loc.h.
2498 (is_dynamic_type): New function.
2499 (resolve_dynamic_type): New function.
2500 (resolve_dynamic_bounds): New function.
2501 (get_type_length): New function.
2502 (check_typedef): Use get_type_length to compute type length.
2503 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2504 (TYPE_LOW_BOUND_KIND): New macro.
2505 (is_dynamic_type): New function prototype.
2506 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2507 to resolve dynamic properties of the type. Update comment.
2508 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2510 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2511 passed to sizeof is dynamic evaluate the argument to compute the length.
2513 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2514 value and retrieve the dynamic type size.
2516 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2517 (ada_template_to_fixed_record_type_1): Likewise.
2518 (ada_to_fixed_type_1): Likewise.
2519 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2520 (cp_print_value): Likewise.
2521 * d-valprint.c (dynamic_array_type): Likewise.
2522 * eval.c (evaluate_subexp_with_coercion): Likewise.
2523 * findvar.c (address_of_variable): Likewise.
2524 * jv-valprint.c (java_value_print): Likewise.
2525 * valops.c (value_ind): Likewise.
2526 * value.c (coerce_ref): Likewise.
2528 * c-typeprint.c (c_type_print_varspec_suffix): Added
2529 check for not yet resolved high bound. If unresolved, print
2530 "variable length" string to the console instead of random
2533 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2534 property and store it as the high bound and flag the range accordingly.
2535 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2536 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2537 * gdbtypes.h (enum range_flags): New enum.
2538 (struct range_bounds): Add flags member.
2540 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2541 points to a constant blob.
2543 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2544 (evaluate_subexp_standard): Pass noside argument.
2545 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2546 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2547 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2548 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2549 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2551 2014-04-11 Keith Seitz <keiths@redhat.com>
2554 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2555 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2558 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2560 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2561 (evaluate_subexp_standard): Pass noside argument.
2562 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2563 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2564 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2565 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2566 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2570 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2571 points to a constant blob.
2573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2575 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2576 property and store it as the high bound and flag the range accordingly.
2577 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2578 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2579 * gdbtypes.h (enum range_flags): New enum.
2580 (struct range_bounds): Add flags member.
2582 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2584 * c-typeprint.c (c_type_print_varspec_suffix): Added
2585 check for not yet resolved high bound. If unresolved, print
2586 "variable length" string to the console instead of random
2589 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2591 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2592 (ada_template_to_fixed_record_type_1): Likewise.
2593 (ada_to_fixed_type_1): Likewise.
2594 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2595 (cp_print_value): Likewise.
2596 * d-valprint.c (dynamic_array_type): Likewise.
2597 * eval.c (evaluate_subexp_with_coercion): Likewise.
2598 * findvar.c (address_of_variable): Likewise.
2599 * jv-valprint.c (java_value_print): Likewise.
2600 * valops.c (value_ind): Likewise.
2601 * value.c (coerce_ref): Likewise.
2603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2605 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2606 value and retrieve the dynamic type size.
2608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2610 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2611 passed to sizeof is dynamic evaluate the argument to compute the length.
2613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2615 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2616 (dwarf2_evaluate_property): New function.
2617 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2618 * dwarf2read.c (attr_to_dynamic_prop): New function.
2619 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2621 * gdbtypes.c: Include dwarf2loc.h.
2622 (is_dynamic_type): New function.
2623 (resolve_dynamic_type): New function.
2624 (resolve_dynamic_bounds): New function.
2625 (get_type_length): New function.
2626 (check_typedef): Use get_type_length to compute type length.
2627 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2628 (TYPE_LOW_BOUND_KIND): New macro.
2629 (is_dynamic_type): New function prototype.
2630 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2631 to resolve dynamic properties of the type. Update comment.
2632 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2634 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2636 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2637 declaring high/low bounds and change uses accordingly. Call
2638 create_range_type instead of create_static_range_type.
2639 * gdbtypes.c (create_range_type): New function.
2640 (create_range_type): Convert bounds into struct bound_prop and pass
2641 them to create_range_type.
2642 * gdbtypes.h (struct bound_prop): New struct.
2643 (create_range_type): New function prototype.
2644 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2645 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2646 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2648 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2650 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2652 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2653 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2654 * ada-lang.c: All uses of create_range_type updated.
2655 * coffread.c: All uses of create_range_type updated.
2656 * dwarf2read.c: All uses of create_range_type updated.
2657 * f-exp.y: All uses of create_range_type updated.
2658 * m2-valprint.c: All uses of create_range_type updated.
2659 * mdebugread.c: All uses of create_range_type updated.
2660 * stabsread.c: All uses of create_range_type updated.
2661 * valops.c: All uses of create_range_type updated.
2662 * valprint.c: All uses of create_range_type updated.
2664 2014-04-10 Pedro Alves <palves@redhat.com>
2666 * breakpoint.c (single_step_breakpoints)
2667 (single_step_gdbarch): Move up in the file.
2668 (one_breakpoint_xfer_memory): New function, factored out from ...
2669 (breakpoint_xfer_memory): ... here. Also process single-step
2672 2014-04-09 Tristan Gingold <gingold@adacore.com>
2674 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2676 (darwin_decode_exception_message): Free port only after use.
2678 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2680 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2681 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2682 when setting the size of call_length.
2684 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2686 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2687 dereference TYPE_CODE_REF values.
2689 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2691 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2692 end of warning message.
2694 2014-04-03 Doug Evans <dje@google.com>
2696 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2697 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2699 2014-04-02 Alan Modra <amodra@gmail.com>
2701 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2702 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2703 (struct symbol_file_add_from_memory_args): Add size field.
2704 (find_vdso_size): New function.
2705 (add_vsyscall_page): Attempt to find vdso size.
2707 2014-04-01 Doug Evans <dje@google.com>
2709 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2711 2014-04-01 Tristan Gingold <gingold@adacore.com>
2713 * darwin-nat.c (darwin_encode_reply): Add prototype.
2714 (darwin_decode_exception_message): Reply to unknown inferiors.
2715 (darwin_decode_message): Handle message by id. Ignore message
2716 to unknown inferior.
2717 (darwin_wait): Discard unknown messages, add debug trace.
2719 2014-03-31 Doug Evans <dje@google.com>
2721 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2724 2014-03-31 Doug Evans <dje@google.com>
2726 New option "set print symbol-loading".
2728 * solib.c (solib_read_symbols): Only print symbol loading messages
2730 (solib_add): If symbol loading is in "brief" mode, notify user
2731 symbols are being loaded.
2732 (reload_shared_libraries_1): Ditto.
2733 * symfile.c (print_symbol_loading_off): New static global.
2734 (print_symbol_loading_brief): New static global.
2735 (print_symbol_loading_full): New static global.
2736 (print_symbol_loading_enums): New static global.
2737 (print_symbol_loading): New static global.
2738 (print_symbol_loading_p): New function.
2739 (symbol_file_add_with_addrs): Only print symbol loading messages
2741 (_initialize_symfile): Register "print symbol-loading" set/show
2743 * symfile.h (print_symbol_loading_p): Declare.
2745 2014-03-30 Doug Evans <xdje42@gmail.com>
2747 * infrun.c (set_last_target_status): New function.
2748 (handle_inferior_event): Call it.
2750 2014-03-30 Doug Evans <xdje42@gmail.com>
2752 * inferior.h (enum stop_kind): Improve comment.
2754 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2756 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2757 a reference, strip the reference layer before calling
2758 the lang_ops value_has_mutated callback.
2760 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2762 Remove some globals from our parser.
2763 * language.c (unk_lang_parser): Add "struct parser_state"
2765 * language.h (struct language_defn) <la_parser>: Likewise.
2766 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2767 (initialize_expout): Add "struct parser_state" argument.
2768 Rewrite function to use the parser state.
2769 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2770 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2771 write_exp_elt_longcst, write_exp_elt_dblcst,
2772 write_exp_elt_decfloatcst, write_exp_elt_type,
2773 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2774 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2775 write_dollar_variable): Likewise.
2776 (parse_exp_in_context_1): Use parser state.
2777 (insert_type_address_space): Add "struct parser_state" argument.
2779 (increase_expout_size): New function.
2780 * parser-defs.h: Forward declare "struct language_defn" and
2781 "struct parser_state".
2782 (expout, expout_size, expout_ptr): Remove extern declarations.
2783 (parse_gdbarch, parse_language): Rewrite macro declarations to
2784 accept the parser state.
2785 (struct parser_state): New struct.
2786 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2787 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2788 write_exp_elt_decfloatcst, write_exp_elt_type,
2789 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2790 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2791 write_exp_msymbol, write_dollar_variable,
2792 mark_struct_expression, insert_type_address_space): Add "struct
2793 parser_state" argument.
2794 (increase_expout_size): New function.
2795 * utils.c (do_clear_parser_state): New function.
2796 (make_cleanup_clear_parser_state): Likewise.
2797 * utils.h (make_cleanup_clear_parser_state): New function
2799 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2800 Update calls to write_exp* in order to pass the parser state.
2801 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2802 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2803 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2804 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2805 * stap-probe.c (stap_parse_register_operand): Likewise.
2806 (stap_parse_single_operand): Likewise.
2807 (stap_parse_argument_1): Likewise.
2808 (stap_parse_argument): Use parser state.
2809 * stap-probe.h: Include "parser-defs.h".
2810 (struct stap_parse_info) <pstate>: New field.
2811 * c-exp.y (parse_type): Rewrite to use parser state.
2812 (yyparse): Redefine to c_parse_internal.
2813 (pstate): New global variable.
2814 (parse_number): Add "struct parser_state" argument.
2815 (write_destructor_name): Likewise.
2816 (type_exp): Update calls to write_exp* and similars in order to
2818 (exp1, exp, variable, qualified_name, space_identifier,
2819 typename, typebase): Likewise.
2820 (write_destructor_name, parse_number, lex_one_token,
2821 classify_name, classify_inner_name, c_parse): Add "struct
2822 parser_state" argument. Update function to use parser state.
2823 * c-lang.h: Forward declare "struct parser_state".
2824 (c_parse): Add "struct parser_state" argument.
2825 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2826 (yyparse): Redefine macro to ada_parse_internal.
2827 (pstate): New variable.
2828 (write_int, write_object_renaming, write_var_or_type,
2829 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2830 type_int, type_long, type_long_long, type_float, type_double,
2831 type_long_double, type_char, type_boolean, type_system_address):
2832 Add "struct parser_state" argument.
2833 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2834 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2835 var_or_type, aggregate, aggregate_component_list,
2836 positional_list, others, component_group,
2837 component_associations): Update calls to write_exp* and similar
2838 functions in order to use parser state.
2839 (ada_parse, write_var_from_sym, write_int,
2840 write_exp_op_with_string, write_object_renaming,
2841 find_primitive_type, write_selectors, write_ambiguous_var,
2842 write_var_or_type, write_name_assoc, type_int, type_long,
2843 type_long_long, type_float, type_double, type_long_double,
2844 type_char, type_boolean, type_system_address): Add "struct
2845 parser_state" argument. Adjust function to use parser state.
2846 * ada-lang.c (parse): Likewise.
2847 * ada-lang.h: Forward declare "struct parser_state".
2848 (ada_parse): Add "struct parser_state" argument.
2849 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2850 calls to both functions.
2851 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2853 (yyparse): Redefine macro to f_parse_internal.
2854 (pstate): New variable.
2855 (parse_number): Add "struct parser_state" argument.
2856 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2857 and similars in order to use parser state.
2858 (parse_number): Adjust code to use parser state.
2860 (f_parse): New function.
2861 * f-lang.h: Forward declare "struct parser_state".
2862 (f_parse): Add "struct parser_state" argument.
2863 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2865 (yyparse): Redefine macro for java_parse_internal.
2866 (pstate): New variable.
2867 (push_expression_name, push_expression_name, insert_exp): Add
2868 "struct parser_state" argument.
2869 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2870 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2871 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2872 PostIncrementExpression, PostDecrementExpression,
2873 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2874 UnaryExpressionNotPlusMinus, CastExpression,
2875 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2876 RelationalExpression, EqualityExpression, AndExpression,
2877 ExclusiveOrExpression, InclusiveOrExpression,
2878 ConditionalAndExpression, ConditionalOrExpression,
2879 ConditionalExpression, Assignment, LeftHandSide): Update
2880 calls to write_exp* and similars in order to use parser state.
2881 (parse_number): Ajust code to use parser state.
2883 (java_parse): New function.
2884 (push_variable): Add "struct parser_state" argument. Adjust
2885 code to user parser state.
2886 (push_fieldnames, push_qualified_expression_name,
2887 push_expression_name, insert_exp): Likewise.
2888 * jv-lang.h: Forward declare "struct parser_state".
2889 (java_parse): Add "struct parser_state" argument.
2890 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2892 (yyparse): Redefine macro to m2_parse_internal.
2893 (pstate): New variable.
2894 (type_exp, exp, fblock, variable, type): Update calls to
2895 write_exp* and similars to use parser state.
2897 (m2_parse): New function.
2898 * m2-lang.h: Forward declare "struct parser_state".
2899 (m2_parse): Add "struct parser_state" argument.
2900 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2901 * objc-lang.h: Forward declare "struct parser_state".
2902 (end_msglist): Add "struct parser_state" argument.
2903 * p-exp.y (parse_type): Rewrite macro to use parser state.
2904 (yyparse): Redefine macro to pascal_parse_internal.
2905 (pstate): New variable.
2906 (parse_number): Add "struct parser_state" argument.
2907 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2908 write_exp* and similars in order to use parser state.
2909 (parse_number, yylex): Adjust code to use parser state.
2910 (pascal_parse): New function.
2911 * p-lang.h: Forward declare "struct parser_state".
2912 (pascal_parse): Add "struct parser_state" argument.
2913 * go-exp.y (parse_type): Rewrite macro to use parser state.
2914 (yyparse): Redefine macro to go_parse_internal.
2915 (pstate): New variable.
2916 (parse_number): Add "struct parser_state" argument.
2917 (type_exp, exp1, exp, variable, type): Update calls to
2918 write_exp* and similars in order to use parser state.
2919 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2920 to use parser state.
2921 (go_parse): Likewise.
2922 * go-lang.h: Forward declare "struct parser_state".
2923 (go_parse): Add "struct parser_state" argument.
2925 2014-03-27 Doug Evans <dje@google.com>
2927 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2929 2014-03-27 Doug Evans <dje@google.com>
2931 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2932 Remove argument abbrev_section. All callers updated.
2934 2014-03-27 Doug Evans <dje@google.com>
2936 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2937 addr_base, ranges_base.
2939 2014-03-26 Keith Seitz <keiths@redhat.com>
2941 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2942 types, not VAR_DOMAIN.
2944 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2946 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2948 * features/nios2-linux.c: Regenerated.
2949 * features/nios2.c: Regenerated.
2951 2014-03-25 Pedro Alves <palves@redhat.com>
2953 * cli/cli-script.c (script_from_file): Force the interpreter to
2956 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2958 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2959 small stack allocation.
2961 2014-03-24 Tristan Gingold <gingold@adacore.com>
2963 * darwin-nat.c (exc_server): Remove unused prototype.
2964 (darwin_dump_message): Correctly display data on x86_64.
2965 (darwin_encode_reply): Fix style.
2966 Add comments and fix indentation.
2968 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2970 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2972 2014-03-22 Doug Evans <xdje42@gmail.com>
2974 * infcmd.c: Whitespace fixes.
2975 (interrupt_command): Merge two function comments into one.
2977 2014-03-22 Doug Evans <xdje42@gmail.com>
2979 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2982 2014-03-22 Yao Qi <yao@codesourcery.com>
2984 * remote.c (target_read_live_memory): Remove.
2985 (memory_xfer_live_readonly_partial): Rename it to
2986 remote_xfer_live_readonly_partial. Remove argument 'object'.
2987 All callers updated. Call remote_read_bytes_1
2988 instead of target_read_live_memory.
2989 * tracepoint.c (set_traceframe_number): Remove.
2990 (make_cleanup_restore_traceframe_number): Likewise .
2991 * tracepoint.h (set_traceframe_number): Remove declaration.
2992 (make_cleanup_restore_traceframe_number): Likewise.
2994 2014-03-22 Yao Qi <yao@codesourcery.com>
2996 * remote.c (remote_read_bytes): Move code on reading from the
2998 (remote_read_bytes_1): ... here. New function.
3000 2014-03-22 Yao Qi <yao@codesourcery.com>
3002 * ctf.c (ctf_xfer_partial): Check the return value of
3003 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3004 return TARGET_XFER_UNAVAILABLE.
3005 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3006 * target.c (target_read_live_memory): Move it to remote.c.
3007 (memory_xfer_live_readonly_partial): Likewise.
3008 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3009 * remote.c (target_read_live_memory): Moved from target.c.
3010 (memory_xfer_live_readonly_partial): Likewise.
3011 (remote_read_bytes): Factored out from
3012 memory_xfer_partial_1.
3014 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3016 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3019 2014-03-21 Pedro Alves <palves@redhat.com>
3021 * infrun.c (normal_stop): Extend comment.
3023 2014-03-21 Hui Zhu <hui@codesourcery.com>
3024 Pedro Alves <palves@redhat.com>
3026 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3028 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3029 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3030 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3032 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3034 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3035 `z' formatted output modifier.
3037 2014-03-20 Tom Tromey <tromey@redhat.com>
3038 Sergio Durigan Junior <sergiodj@redhat.com>
3040 * probe.c (parse_probes): Turn assert into an ordinary error.
3041 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3042 exceptions when parsing probes. Rearrange the code for clarity.
3044 2014-03-20 Tom Tromey <tromey@redhat.com>
3047 * top.c (execute_command): Only dispatch events if the command
3050 2014-03-20 Tom Tromey <tromey@redhat.com>
3053 * infcall.c: Include event-top.h.
3054 (run_inferior_call): Call async_disable_stdin if needed.
3056 2014-03-20 Pedro Alves <palves@redhat.com>
3058 * infrun.c (prepare_to_proceed): Delete.
3059 (thread_still_needs_step_over): New function.
3060 (find_thread_needs_step_over): New function.
3061 (proceed): If the current thread needs a step-over, set its
3062 steping_over_breakpoint flag. Adjust to use
3063 find_thread_needs_step_over instead of prepare_to_proceed.
3064 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3065 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3067 (switch_back_to_stepped_thread): Step over breakpoints of all
3068 threads not the stepping thread, before switching back to the
3071 2014-03-20 Pedro Alves <palves@redhat.com>
3073 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3075 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3076 * infrun.c (saved_singlestep_ptid)
3077 (stepping_past_singlestep_breakpoint): Delete.
3078 (resume): Remove stepping_past_singlestep_breakpoint handling.
3079 (proceed): Store the prev_pc of the stepping thread too.
3080 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3082 (enum infwait_states): Delete infwait_thread_hop_state.
3083 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3085 (handle_inferior_event): Adjust.
3086 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3087 handling and the thread-hop code. Before removing single-step
3088 breakpoints, check whether the thread hit a single-step breakpoint
3089 of another thread. If it did, the trap is not a random signal.
3090 (switch_back_to_stepped_thread): If the event thread hit a
3091 single-step breakpoint, unblock it before switching to the
3092 stepping thread. Handle the case of the stepped thread having
3094 (keep_going): Handle the case of the current thread moving past a
3095 single-step breakpoint.
3097 2014-03-20 Pedro Alves <palves@redhat.com>
3100 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3101 are being stepped over.
3102 (breakpoint_address_match): Make extern.
3103 * breakpoint.h (breakpoint_address_match): New declaration.
3104 * inferior.h (stepping_past_instruction_at): New declaration.
3105 * infrun.c (struct step_over_info): New type.
3106 (step_over_info): New global.
3107 (set_step_over_info, clear_step_over_info)
3108 (stepping_past_instruction_at): New functions.
3109 (handle_inferior_event): Clear the step-over info when
3110 trap_expected is cleared.
3111 (resume): Remove now stale comment.
3112 (clear_proceed_status): Clear step-over info.
3113 (proceed): Adjust step-over handling to set or clear the step-over
3114 info instead of removing all breakpoints.
3115 (handle_signal_stop): When setting up a thread-hop, don't remove
3117 (stop_stepping): Clear step-over info.
3118 (keep_going): Adjust step-over handling to set or clear step-over
3119 info and then always inserting breakpoints, instead of removing
3120 all breakpoints when stepping over one.
3122 2014-03-20 Pedro Alves <palves@redhat.com>
3124 * infrun.c (previous_inferior_ptid): Adjust comment.
3125 (deferred_step_ptid): Delete.
3126 (infrun_thread_ptid_changed, prepare_to_proceed)
3127 (init_wait_for_inferior): Adjust.
3128 (handle_signal_stop): Delete deferred_step_ptid handling.
3130 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3133 * defs.h (sync_quit_force_run): New declaration.
3134 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3135 * event-top.c (async_sigterm_handler): New declaration.
3136 (async_sigterm_token): New variable.
3137 (async_init_signals): Create also async_sigterm_token.
3138 (async_sigterm_handler): New function.
3139 (sync_quit_force_run): New variable.
3140 (handle_sigterm): Replace quit_force call by other calls.
3141 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3143 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3145 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3146 offset into SPE pseudo registers.
3148 2014-03-18 Pedro Alves <palves@redhat.com>
3151 * inferior.h (print_stop_event): Declare.
3152 * infrun.c (print_stop_event): New, factored out from ...
3153 (normal_stop): ... this.
3154 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3155 of bpstat_print/print_stack_frame.
3157 2014-03-17 Tom Tromey <tromey@redhat.com>
3159 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3161 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3163 * ada-lang.c (decode_constrained_packed_array): Perform a
3164 minimal coercion for reference with coerce_ref instead of
3167 2014-03-17 Tristan Gingold <gingold@adacore.com>
3169 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3170 (darwin_solib_create_inferior_hook): Emit a warning if version
3173 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3175 * python/py-value.c (get_field_flag): Cast flag_name argument to
3176 PyObject_GetAttrString to support Python 2.4.
3178 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3180 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3181 (Global Maintainers): Remove Jan Kratochvil.
3183 2014-03-14 Pedro Alves <palves@redhat.com>
3185 * inferior.h (terminal_ours_for_output): Rename to ...
3186 (child_terminal_ours_for_output): ... this.
3187 (terminal_save_ours): Rename to ...
3188 (child_terminal_save_ours): ... this.
3189 (terminal_ours): Rename to ...
3190 (child_terminal_ours): ... this.
3191 (terminal_inferior): Rename to ...
3192 (child_terminal_inferior): ... this.
3193 (terminal_init_inferior): Rename to ...
3194 (child_terminal_init_inferior): ... this.
3195 (terminal_init_inferior_with_pgrp): Rename to ...
3196 (child_terminal_init_inferior_with_pgrp): ... this.
3197 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3198 (child_terminal_init_with_pgrp): ... this.
3199 (terminal_save_ours): Rename to ...
3200 (child_terminal_save_ours): ... this.
3201 (terminal_init_inferior): Rename to ...
3202 (child_terminal_init): ... this. Adjust.
3203 (terminal_inferior): Rename to ...
3204 (child_terminal_inferior): ... this.
3205 (terminal_ours_for_output): Rename to ...
3206 (child_terminal_ours_for_output): ... this. Adjust.
3207 (terminal_ours): Rename to ...
3208 (child_terminal_ours): ... this.
3209 (terminal_ours_1): Rename to ...
3210 (child_terminal_ours_1): ... this. Adjust.
3211 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3212 * windows-nat.c (do_initial_windows_stuff): Adjust.
3213 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3214 (gnu_terminal_init): ... this. Adjust.
3215 (gnu_target): Adjust.
3216 * inf-child.c (inf_child_target): Adjust.
3218 2014-03-13 Doug Evans <xdje42@gmail.com>
3221 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3224 2014-03-13 Doug Evans <xdje42@gmail.com>
3226 * value.c (record_latest_value): Call release_value_or_incref
3227 instead of release_value.
3229 2014-03-13 Pedro Alves <palves@redhat.com>
3231 * procfs.c (procfs_target): Don't override to_shortname,
3232 to_longname or to_doc.
3234 2014-03-13 Pedro Alves <palves@redhat.com>
3236 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3237 Unix in user visible strings.
3239 2014-03-12 Stan Shebs <stan@codesourcery.com>
3241 * gdbtypes.h: Annotate comments for Doxygen, add a page
3242 block comment with some general info.
3244 2014-03-12 Pedro Alves <palves@redhat.com>
3246 * infcmd.c (prepare_execution_command): New function, factored out
3247 from several execution commands.
3248 (run_command_1, continue_command, step_1, jump_command)
3249 (signal_command, until_command, advance_command, finish_command)
3250 (attach_command): Use prepare_execution_command.
3252 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3254 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3257 (struct arm_linux_thread_points): Removed.
3258 (struct arm_linux_process_info): New.
3259 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3260 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3261 (arm_linux_find_breakpoints_by_tid): Removed.
3262 (struct arch_lwp_info): New.
3263 (arm_linux_find_process_pid): New functions.
3264 (arm_linux_add_process): New functions.
3265 (arm_linux_process_info_get): New functions.
3266 (arm_linux_forget_process): New function.
3267 (arm_linux_get_debug_reg_state): New function.
3268 (struct update_registers_data): New.
3269 (update_registers_callback): New function.
3270 (arm_linux_insert_hw_breakpoint1): Updated.
3271 (arm_linux_remove_hw_breakpoint1): Updated.
3272 (arm_linux_insert_hw_breakpoint): Updated.
3273 (arm_linux_remove_hw_breakpoint): Updated.
3274 (arm_linux_insert_watchpoint): Updated.
3275 (arm_linux_remove_watchpoint): Updated.
3276 (arm_linux_new_thread): Updated.
3277 (arm_linux_prepare_to_resume): New function.
3278 (arm_linux_new_fork): New function.
3279 (_initialize_arm_linux_nat): Updated.
3281 2014-03-12 Pedro Alves <palves@redhat.com>
3283 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3285 2014-03-12 Tom Tromey <tromey@redhat.com>
3287 * inf-child.c (return_zero): New function.
3288 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3289 * aix-thread.c (aix_thread_inferior_created): New function.
3290 (aix_thread_attach): Remove.
3291 (init_aix_thread_ops): Don't set to_attach.
3292 (_initialize_aix_thread): Register inferior_created observer.
3293 * corelow.c (init_core_ops): Don't set to_attach or
3295 * exec.c (init_exec_ops): Don't set to_attach or
3297 * infcmd.c (run_command_1): Use find_run_target. Make direct
3299 (attach_command): Use find_attach_target. Make direct target
3301 * record-btrace.c (init_record_btrace_ops): Don't set
3303 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3305 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3306 set to_create_inferior.
3307 * target.c (complete_target_initialization): Add assertion.
3308 (target_create_inferior): Remove.
3309 (find_default_attach, find_default_create_inferior): Remove.
3310 (find_attach_target, find_run_target): New functions.
3311 (find_default_is_async_p, find_default_can_async_p)
3312 (target_supports_non_stop, target_attach): Remove.
3313 (init_dummy_target): Don't set to_create_inferior or
3314 to_supports_non_stop.
3315 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3316 TARGET_DEFAULT_FUNC.
3317 <to_create_inferior>: Add comment.
3318 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3319 TARGET_DEFAULT_RETURN.
3320 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3321 (find_attach_target, find_run_target): Declare.
3322 (target_create_inferior): Remove.
3323 (target_has_execution_1): Update comment.
3324 (target_supports_non_stop): Remove.
3325 * target-delegates.c: Rebuild.
3327 2014-03-12 Pedro Alves <palves@redhat.com>
3329 * inf-child.h: Update comment to not mention Unix.
3331 2014-03-12 Pedro Alves <palves@redhat.com>
3333 * inf-child.c: Update top comment to not mention Unix. Add
3334 generic comment describing how this target is meant to be used.
3335 (inf_child_post_attach, inf_child_post_startup_inferior)
3336 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3339 2014-03-12 Pedro Alves <palves@redhat.com>
3341 * nto-procfs.c: Include inf-child.h.
3342 (procfs_ops): Delete global.
3343 (procfs_can_run): Delete method.
3344 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3345 target pointer instead of referencing procfs_ops.
3346 (procfs_prepare_to_store): Delete.
3347 (init_procfs_ops): Delete function.
3348 (procfs_target): New function, based on init_procfs_ops, but
3349 inherit inf_child_target.
3350 (_initialize_procfs): Use procfs_target.
3352 2014-03-12 Pedro Alves <palves@redhat.com>
3354 * windows-nat.c: Include inf-child.h.
3355 (windows_ops): Delete global.
3356 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3358 (init_windows_ops): Delete function.
3359 (windows_target): New function, based on init_windows_ops, but
3360 inherit inf_child_target.
3361 (_initialize_windows_nat): Use windows_target. Install x86
3362 specific target methods here.
3364 2014-03-10 Doug Evans <xdje42@gmail.com>
3366 * guile/guile.c (call_initialize_gdb_module): New function.
3367 (initialize_guile): Replace call to scm_init_guile with call to
3370 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3372 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3373 in call to TYPE_CODE macro.
3375 2014-03-10 Jerome Guitton <guitton@adacore.com>
3377 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3378 Resolve tagged types to full view.
3380 2014-03-10 Hui Zhu <hui@codesourcery.com>
3382 * target.h (target_insert_breakpoint): Remove "hardware" from its
3385 2014-03-07 Doug Evans <dje@google.com>
3387 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3389 2014-03-07 Doug Evans <dje@google.com>
3391 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3392 Remove unused local comp_dir_attr. Assert exactly one of
3393 stub_comp_unit_die, stub_comp_dir is non-NULL.
3395 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3397 * target.h (complete_target_initialization, add_target):
3400 2014-03-07 Pedro Alves <palves@redhat.com>
3402 * go32-nat.c: Include inf-child.h.
3403 (go32_ops): Delete global.
3404 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3406 (go32_create_inferior): Push the passed in target pointer instead
3407 of referencing go32_ops.
3408 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3409 (go32_target): New function, based on init_go32_ops, but inherit
3411 (_initialize_go32_nat): Use go32_target. Move parts of
3414 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3416 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3417 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3418 SYMBOL_VALUE_ADDRESS.
3419 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3421 2014-03-06 Yao Qi <yao@codesourcery.com>
3423 * breakpoint.c (get_tracepoint_by_number): Remove argument
3424 optional_p. All callers updated. Adjust comments. Update
3426 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3428 2014-03-06 Yao Qi <yao@codesourcery.com>
3430 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3431 early if get_number returns zero. Use 'p' instead of 'args'.
3433 2014-03-06 Yao Qi <yao@codesourcery.com>
3435 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3438 2014-03-06 Yao Qi <yao@codesourcery.com>
3440 PR breakpoints/16508
3441 * tracepoint.c (check_trace_running): New function.
3442 (trace_find_command): Move code to check_trace_running and
3443 call check_trace_running.
3444 (trace_find_pc_command): Likewise.
3445 (trace_find_tracepoint_command): Likewise.
3446 (trace_find_line_command): Likewise.
3447 (trace_find_range_command): Likewise.
3448 * tracepoint.h (check_trace_running): Likewise.
3449 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3451 2014-03-06 Yao Qi <yao@codesourcery.com>
3453 * target.h (struct target_ops) <to_traceframe_info>: Use
3454 TARGET_DEFAULT_NORETURN (tcomplain ()).
3455 * target-delegates.c: Regenerated.
3457 2014-03-05 Pedro Alves <palves@redhat.com>
3460 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3461 void. Update comment.
3462 (dcache_xfer_memory): Delete.
3463 (dcache_read_memory_partial): New, based on the read bits of
3465 (dcache_update): Add status parameter. Use ULONGEST for len, and
3466 adjust. Discard cache lines if the reason for the update was
3468 * dcache.h (dcache_xfer_memory): Delete declaration.
3469 (dcache_read_memory_partial): New declaration.
3470 (dcache_update): Update prototype.
3471 * target.c (raw_memory_xfer_partial): Update the dcache here.
3472 (memory_xfer_partial_1): Don't handle dcache writes here.
3474 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3476 * remote-sim.c (gdbsim_load): Add const to prog.
3478 2014-03-03 Tom Tromey <tromey@redhat.com>
3480 * elfread.c (probe_key): Change to bfd_data.
3481 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3482 now per-BFD, not per-objfile.
3483 * stap-probe.c (stap_probe_destroy): Update comment.
3484 (handle_stap_probe): Allocate on the per-BFD obstack.
3486 2014-03-03 Tom Tromey <tromey@redhat.com>
3488 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3489 * breakpoint.c (create_longjmp_master_breakpoint): Use
3491 (add_location_to_breakpoint, bkpt_probe_insert_location)
3492 (bkpt_probe_remove_location): Update.
3493 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3494 * elfread.c (elf_symfile_relocate_probe): Remove.
3495 (elf_probe_fns): Update.
3496 (insert_exception_resume_breakpoint): Change type of "probe"
3497 parameter to bound_probe.
3498 (check_exception_resume): Update.
3499 * objfiles.c (objfile_relocate1): Don't relocate probes.
3500 * probe.c (bound_probe_s): New typedef.
3501 (parse_probes): Use get_probe_address. Set sal's objfile.
3502 (find_probe_by_pc): Return a bound_probe.
3503 (collect_probes): Return a VEC(bound_probe_s).
3504 (compare_probes): Update.
3505 (gen_ui_out_table_header_info): Change type of "probes"
3507 (info_probes_for_ops): Update.
3508 (get_probe_address): New function.
3509 (probe_safe_evaluate_at_pc): Update.
3510 * probe.h (struct probe_ops) <get_probe_address>: New field.
3511 <set_semaphore, clear_semaphore>: Add objfile parameter.
3512 (struct probe) <objfile>: Remove field.
3514 <address>: Update comment.
3515 (struct bound_probe): New.
3516 (find_probe_by_pc): Return a bound_probe.
3517 (get_probe_address): Declare.
3518 * solib-svr4.c (struct probe_and_action) <address>: New field.
3519 (hash_probe_and_action, equal_probe_and_action): Update.
3520 (register_solib_event_probe): Add address parameter.
3521 (solib_event_probe_at): Update.
3522 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3524 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3525 (stap_get_probe_address): New function.
3526 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3527 (compile_probe_arg): Update.
3528 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3530 (handle_stap_probe): Don't relocate the probe.
3531 (stap_relocate): Remove.
3532 (stap_gen_info_probes_table_values): Update.
3533 (stap_probe_ops): Remove stap_relocate.
3534 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3535 (debug_sym_probe_fns): Update.
3536 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3537 * symtab.c (init_sal): Use memset.
3538 * symtab.h (struct symtab_and_line) <objfile>: New field.
3539 * tracepoint.c (start_tracing, stop_tracing): Update.
3541 2014-03-03 Tom Tromey <tromey@redhat.com>
3543 * probe.h (parse_probes, find_probe_by_pc)
3544 (find_probes_in_objfile): Fix comments.
3546 2014-03-02 Doug Evans <xdje42@gmail.com>
3548 * infrun.c (handle_signal_stop): Replace test for
3549 TARGET_WAITKIND_STOPPED with an assert.
3551 2014-03-02 Doug Evans <xdje42@gmail.com>
3553 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3555 2014-03-02 Doug Evans <xdje42@gmail.com>
3557 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3559 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3561 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3563 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3565 * i386obsd-nat.c: Include "obsd-nat.h".
3566 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3568 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3570 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3572 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3574 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3576 * mips64obsd-nat.c: Include "obsd-nath".
3577 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3579 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3581 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3583 * amd64obsd-nat.c: Include "obsd-nat,h.
3584 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3586 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3588 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3590 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3591 (find_overload_match): Update call to find_oload_champ.
3592 (find_oload_champ_namespace_loop): Likewise
3594 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3596 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3598 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3599 * config/sparc/obsd64.mh: New file.
3600 * sparc64obsd-nat.c: New file.
3602 * obsd-nat.h: New file.
3603 * obsd-nat.c: New file.
3604 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3605 (ALLDEPFILES): Add obsd-nat.c.
3607 2014-02-28 Tom Tromey <tromey@redhat.com>
3609 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3610 * cli-out.h (cli_ui_out_impl): Now const.
3611 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3612 * ui-out.c (struct ui_out) <impl>: Now const.
3613 (default_ui_out_impl): Now const.
3614 (ui_out_new): Make 'impl' parameter const.
3615 * ui-out.h (ui_out_new): Update.
3617 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3619 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3621 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3623 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3625 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3627 Additional PR 8882 fix.
3628 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3630 2014-02-27 Pedro Alves <palves@redhat.com>
3632 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3635 2014-02-27 Pedro Alves <palves@redhat.com>
3638 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3639 * nat/linux-waitpid.c: Include string.h.
3640 (status_to_str): Moved here and made extern.
3641 * nat/linux-waitpid.h (status_to_str): New declaration.
3643 2014-02-27 Hui Zhu <hui@codesourcery.com>
3646 * infrun.c (ptid_match): Move ...
3647 * common/ptid.c (ptid_match): ... here.
3648 * inferior.h (ptid_match): Move ...
3649 * common/ptid.h (ptid_match): ... here.
3651 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3653 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3654 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3657 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3659 * obsd-tdep.c (obsd_auxv_parse): New function.
3660 (obsd_init_abi): Set auxv_parse.
3662 * gdbarch.sh (auxv_parse): New.
3663 * gdbarch.h: Regenerated.
3664 * gdbarch.c: Regenerated.
3665 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3667 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3669 * guile/scm-value.c (gdbscm_history_append_x): New function.
3670 (value_functions): Add it.
3672 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3674 * dwarf2read.c (attr_value_as_address): New function.
3675 (dwarf2_find_base_address, read_call_site_scope): Use
3676 attr_value_as_address in place of DW_ADDR.
3677 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3678 the low and high addresses. Slight rework of the handling
3679 of the high pc being a constant form, and limit it to
3680 DWARF verson 4 or higher.
3681 (dwarf2_record_block_ranges): Likewise.
3682 (read_partial_die): Likewise.
3683 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3685 2014-02-26 Tom Tromey <tromey@redhat.com>
3687 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3689 2014-02-26 Tom Tromey <tromey@redhat.com>
3691 * elfread.c (elf_read_minimal_symbols): Return early if
3692 minimal symbols have already been read. Add "ei" parameter.
3693 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3694 * minsyms.c (prim_record_minimal_symbol_full): Update.
3695 * objfiles.h (struct objstats) <n_minsyms>: Move...
3696 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3697 * symmisc.c (print_objfile_statistics): Update.
3699 2014-02-26 Tom Tromey <tromey@redhat.com>
3701 * elfread.c (elf_read_minimal_symbols): New function, from
3703 (elf_symfile_read): Call it.
3705 2014-02-26 Tom Tromey <tromey@redhat.com>
3707 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3708 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3709 (lookup_minimal_symbol_solib_trampoline)
3710 (lookup_minimal_symbol_by_pc_section_1)
3711 (lookup_minimal_symbol_and_objfile): Update.
3712 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3713 Don't allocate a minimal symbol if minsyms have already been read.
3714 (build_minimal_symbol_hash_tables): Update.
3715 (install_minimal_symbols): Do nothing if minsyms already read.
3716 Use the per-BFD obstack.
3717 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3718 * objfiles.c (allocate_objfile): Call
3719 terminate_minimal_symbol_table later.
3720 (have_minimal_symbols): Update.
3721 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3722 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3723 Move from struct objfile.
3724 <minsyms_read>: New field.
3725 (struct objfile) <msymbols, minimal_symbol_count,
3726 msymbol_hash, msymbol_demangled_hash>: Move.
3727 (ALL_OBJFILE_MSYMBOLS): Update.
3728 * symfile.c (read_symbols): Set minsyms_read.
3729 (reread_symbols): Update.
3730 * symmisc.c (dump_objfile, dump_msymbols): Update.
3732 2014-02-26 Tom Tromey <tromey@redhat.com>
3734 * minsyms.c (msymbols_sort): Remove.
3735 * minsyms.h (msymbols_sort): Remove.
3736 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3737 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3738 * elfread.c (elf_symtab_read): Don't add section offsets.
3739 * xcoffread.c (record_minimal_symbol): Don't add section offset
3740 to minimal symbol address.
3741 * somread.c (text_offset, data_offset): Remove.
3742 (som_symtab_read): Don't add section offsets to minimal symbol
3744 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3745 Don't add section offsets to minimal symbols.
3746 * coffread.c (coff_symtab_read): Don't add section offsets
3747 to minimal symbol addresses.
3748 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3749 to minimal symbol addresses.
3750 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3751 section offset to minimal symbol addresses.
3752 * mdebugread.c (parse_partial_symbols): Don't add section
3753 offset to minimal symbol addresses.
3754 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3755 offset to minimal symbol addresses.
3757 2014-02-26 Tom Tromey <tromey@redhat.com>
3759 * ada-lang.c (ada_main_name): Update.
3760 (ada_add_standard_exceptions): Update.
3761 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3762 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3763 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3764 * auxv.c (ld_so_xfer_auxv): Update.
3765 * avr-tdep.c (avr_scan_prologue): Update.
3766 * ax-gdb.c (gen_var_ref): Update.
3767 * blockframe.c (get_pc_function_start)
3768 (find_pc_partial_function_gnu_ifunc): Update.
3769 * breakpoint.c (create_overlay_event_breakpoint)
3770 (create_longjmp_master_breakpoint)
3771 (create_std_terminate_master_breakpoint)
3772 (create_exception_master_breakpoint): Update.
3773 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3774 * c-valprint.c (c_val_print): Update.
3775 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3776 * common/agent.c (agent_look_up_symbols): Update.
3777 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3778 * dwarf2loc.c (call_site_to_target_addr): Update.
3779 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3780 * elfread.c (elf_gnu_ifunc_record_cache)
3781 (elf_gnu_ifunc_resolve_by_got): Update.
3782 * findvar.c (default_read_var_value): Update.
3783 * frame.c (inside_main_func): Update.
3784 * frv-tdep.c (frv_frame_this_id): Update.
3785 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3786 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3788 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3789 (hppa_hpux_find_dummy_bpaddr): Update.
3790 * hppa-tdep.c (hppa_symbol_address): Update.
3791 * infcmd.c (until_next_command): Update.
3792 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3794 * linespec.c (minsym_found, add_minsym): Update.
3795 * linux-nat.c (get_signo): Update.
3796 * linux-thread-db.c (inferior_has_bug): Update.
3797 * m32c-tdep.c (m32c_return_value)
3798 (m32c_m16c_address_to_pointer): Update.
3799 * m32r-tdep.c (m32r_frame_this_id): Update.
3800 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3801 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3802 * maint.c (maintenance_translate_address): Update.
3803 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3804 (frob_address): New function.
3805 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3806 frob_address. Rename parameter to "pc_in".
3807 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3809 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3811 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3812 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3813 * objc-lang.c (find_objc_msgsend): Update.
3814 * objfiles.c (objfile_relocate1): Update.
3815 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3816 * p-valprint.c (pascal_val_print): Update.
3817 * parse.c (write_exp_msymbol): Update.
3818 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3819 (ppc_elfv2_skip_entrypoint): Update.
3820 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3821 * printcmd.c (build_address_symbolic, msym_info)
3822 (address_info): Update.
3823 * proc-service.c (ps_pglobal_lookup): Update.
3824 * psymtab.c (find_pc_sect_psymtab_closer)
3825 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3826 Change msymbol parameter to bound_minimal_symbol.
3827 * ravenscar-thread.c (get_running_thread_id): Update.
3828 * remote.c (remote_check_symbols): Update.
3829 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3831 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3832 * solib-dsbt.c (lm_base): Update.
3833 * solib-frv.c (lm_base, main_got): Update.
3834 * solib-irix.c (locate_base): Update.
3835 * solib-som.c (som_solib_create_inferior_hook)
3836 (link_map_start): Update.
3837 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3838 * solib-svr4.c (elf_locate_base, enable_break): Update.
3839 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3840 (flush_ea_cache): Update.
3841 * stabsread.c (define_symbol, scan_file_globals): Update.
3842 * stack.c (find_frame_funname): Update.
3843 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3844 (debug_qf_find_pc_sect_symtab): Update.
3845 * symfile.c (simple_read_overlay_table)
3846 (simple_overlay_update): Update.
3847 * symfile.h (struct quick_symbol_functions)
3848 <find_pc_sect_symtab>: Change type of msymbol to
3849 bound_minimal_symbol.
3850 * symmisc.c (dump_msymbols): Update.
3851 * symtab.c (find_pc_sect_symtab_via_partial)
3852 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3853 (search_symbols, print_msymbol_info): Update.
3854 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3855 (MSYMBOL_VALUE_ADDRESS): Redefine.
3856 (BMSYMBOL_VALUE_ADDRESS): New macro.
3857 * tracepoint.c (scope_info): Update.
3858 * tui/tui-disasm.c (tui_find_disassembly_address)
3859 (tui_get_begin_asm_address): Update.
3860 * valops.c (find_function_in_inferior): Update.
3861 * value.c (value_static_field, value_fn_field): Update.
3863 2014-02-26 Tom Tromey <tromey@redhat.com>
3865 * ada-lang.c (ada_update_initial_language): Update.
3866 (ada_main_name, ada_has_this_exception_support): Update.
3867 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3868 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3869 * arm-tdep.c (arm_skip_stub): Update.
3870 * auxv.c (ld_so_xfer_auxv): Update.
3871 * avr-tdep.c (avr_scan_prologue): Update.
3872 * ax-gdb.c (gen_var_ref): Update.
3873 * breakpoint.c (struct breakpoint_objfile_data)
3874 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3875 type to bound_minimal_symbol.
3876 (create_overlay_event_breakpoint)
3877 (create_longjmp_master_breakpoint)
3878 (create_std_terminate_master_breakpoint)
3879 (create_exception_master_breakpoint): Update.
3880 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3881 * c-exp.y (classify_name): Update.
3882 * coffread.c (coff_symfile_read): Update.
3883 * common/agent.c (agent_look_up_symbols): Update.
3884 * d-lang.c (d_main_name): Update.
3885 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3886 * dec-thread.c (enable_dec_thread): Update.
3887 * dwarf2loc.c (call_site_to_target_addr): Update.
3888 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3889 * eval.c (evaluate_subexp_standard): Update.
3890 * findvar.c (struct minsym_lookup_data) <result>: Change type
3891 to bound_minimal_symbol.
3893 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3894 * frame.c (inside_main_func): Update.
3895 * frv-tdep.c (frv_frame_this_id): Update.
3896 * gcore.c (call_target_sbrk): Update.
3897 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3898 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3900 * go-lang.c (go_main_name): Update.
3901 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3902 (hppa_hpux_find_import_stub_for_addr): Update.
3903 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3904 Update. Change return type.
3905 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3907 * jit.c (jit_breakpoint_re_set_internal): Update.
3908 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3910 * linux-nat.c (get_signo): Update.
3911 * linux-thread-db.c (inferior_has_bug): Update
3912 * m32c-tdep.c (m32c_return_value)
3913 (m32c_m16c_address_to_pointer): Update.
3914 * m32r-tdep.c (m32r_frame_this_id): Update.
3915 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3916 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3917 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3918 lookup_minimal_symbol. Change return type.
3919 (lookup_minimal_symbol): Remove.
3920 (lookup_bound_minimal_symbol): Update.
3921 (lookup_minimal_symbol_text): Change return type.
3922 (lookup_minimal_symbol_solib_trampoline): Change return type.
3923 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3924 (lookup_minimal_symbol_solib_trampoline): Change return type.
3925 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3926 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3927 (value_nsstring, find_imps): Update.
3928 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3929 * p-lang.c (pascal_main_name): Update.
3930 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3931 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3932 * proc-service.c (ps_pglobal_lookup): Update.
3933 * ravenscar-thread.c (get_running_thread_msymbol): Change
3935 (has_ravenscar_runtime, get_running_thread_id): Update.
3936 * remote.c (remote_check_symbols): Update.
3937 * sol-thread.c (ps_pglobal_lookup): Update.
3938 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3939 * solib-dsbt.c (lm_base): Update.
3940 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3942 * solib-irix.c (locate_base): Update.
3943 * solib-som.c (som_solib_create_inferior_hook)
3944 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3946 * solib-spu.c (spu_enable_break): Update.
3947 * solib-svr4.c (elf_locate_base, enable_break): Update.
3948 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3949 (flush_ea_cache): Update.
3950 * stabsread.c (define_symbol): Update.
3951 * symfile.c (simple_read_overlay_table): Update.
3952 * symtab.c (find_pc_sect_line): Update.
3953 * tracepoint.c (scope_info): Update.
3954 * tui-disasm.c (tui_get_begin_asm_address): Update.
3955 * value.c (value_static_field): Update.
3957 2014-02-26 Tom Tromey <tromey@redhat.com>
3959 * minsyms.c (prim_record_minimal_symbol_full): Use
3960 SET_MSYMBOL_VALUE_ADDRESS.
3961 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3962 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3963 SET_MSYMBOL_VALUE_ADDRESS.
3964 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3965 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3967 2014-02-26 Tom Tromey <tromey@redhat.com>
3969 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3970 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3971 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3972 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3973 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3974 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3975 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3976 * ada-lang.c (ada_main_name): Update.
3977 (ada_lookup_simple_minsym): Update.
3978 (ada_make_symbol_completion_list): Update.
3979 (ada_add_standard_exceptions): Update.
3980 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3981 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3982 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3983 * arm-tdep.c (skip_prologue_function): Update.
3984 (arm_skip_stack_protector, arm_skip_stub): Update.
3985 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3986 (arm_wince_skip_main_prologue): Update.
3987 * auxv.c (ld_so_xfer_auxv): Update.
3988 * avr-tdep.c (avr_scan_prologue): Update.
3989 * ax-gdb.c (gen_var_ref): Update.
3990 * block.c (call_site_for_pc): Update.
3991 * blockframe.c (get_pc_function_start): Update.
3992 (find_pc_partial_function_gnu_ifunc): Update.
3993 * breakpoint.c (create_overlay_event_breakpoint): Update.
3994 (create_longjmp_master_breakpoint): Update.
3995 (create_std_terminate_master_breakpoint): Update.
3996 (create_exception_master_breakpoint): Update.
3997 (resolve_sal_pc): Update.
3998 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3999 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4001 * c-valprint.c (c_val_print): Update.
4002 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4003 * coffread.c (coff_symfile_read): Update.
4004 * common/agent.c (agent_look_up_symbols): Update.
4005 * dbxread.c (find_stab_function_addr): Update.
4006 (end_psymtab): Update.
4007 * dwarf2loc.c (call_site_to_target_addr): Update.
4008 (func_verify_no_selftailcall): Update.
4009 (tailcall_dump): Update.
4010 (call_site_find_chain_1): Update.
4011 (dwarf_expr_reg_to_entry_parameter): Update.
4012 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4013 (elf_gnu_ifunc_resolve_by_got): Update.
4014 * f-valprint.c (info_common_command): Update.
4015 * findvar.c (read_var_value): Update.
4016 * frame.c (get_prev_frame_1): Update.
4017 (inside_main_func): Update.
4018 * frv-tdep.c (frv_skip_main_prologue): Update.
4019 (frv_frame_this_id): Update.
4020 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4021 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4022 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4023 (gnuv3_skip_trampoline): Update.
4024 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4025 (hppa64_hpux_in_solib_call_trampoline): Update.
4026 (hppa_hpux_skip_trampoline_code): Update.
4027 (hppa64_hpux_search_dummy_call_sequence): Update.
4028 (hppa_hpux_find_import_stub_for_addr): Update.
4029 (hppa_hpux_find_dummy_bpaddr): Update.
4030 * hppa-tdep.c (hppa_symbol_address)
4031 (hppa_lookup_stub_minimal_symbol): Update.
4032 * i386-tdep.c (i386_skip_main_prologue): Update.
4033 (i386_pe_skip_trampoline_code): Update.
4034 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4035 * infcall.c (get_function_name): Update.
4036 * infcmd.c (until_next_command): Update.
4037 * jit.c (jit_breakpoint_re_set_internal): Update.
4038 (jit_inferior_init): Update.
4039 * linespec.c (minsym_found): Update.
4040 (add_minsym): Update.
4041 * linux-fork.c (info_checkpoints_command): Update.
4042 * linux-nat.c (get_signo): Update.
4043 * linux-thread-db.c (inferior_has_bug): Update.
4044 * m32c-tdep.c (m32c_return_value): Update.
4045 (m32c_m16c_address_to_pointer): Update.
4046 (m32c_m16c_pointer_to_address): Update.
4047 * m32r-tdep.c (m32r_frame_this_id): Update.
4048 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4049 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4050 * maint.c (maintenance_translate_address): Update.
4051 * minsyms.c (add_minsym_to_hash_table): Update.
4052 (add_minsym_to_demangled_hash_table): Update.
4053 (msymbol_objfile): Update.
4054 (lookup_minimal_symbol): Update.
4055 (iterate_over_minimal_symbols): Update.
4056 (lookup_minimal_symbol_text): Update.
4057 (lookup_minimal_symbol_by_pc_name): Update.
4058 (lookup_minimal_symbol_solib_trampoline): Update.
4059 (lookup_minimal_symbol_by_pc_section_1): Update.
4060 (lookup_minimal_symbol_and_objfile): Update.
4061 (prim_record_minimal_symbol_full): Update.
4062 (compare_minimal_symbols): Update.
4063 (compact_minimal_symbols): Update.
4064 (build_minimal_symbol_hash_tables): Update.
4065 (install_minimal_symbols): Update.
4066 (terminate_minimal_symbol_table): Update.
4067 (find_solib_trampoline_target): Update.
4068 (minimal_symbol_upper_bound): Update.
4069 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4070 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4071 (mips_skip_pic_trampoline_code): Update.
4072 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4073 * objc-lang.c (selectors_info): Update.
4074 (classes_info): Update.
4075 (find_methods): Update.
4076 (find_imps): Update.
4077 (find_objc_msgsend): Update.
4078 * objfiles.c (objfile_relocate1): Update.
4079 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4080 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4081 * p-valprint.c (pascal_val_print): Update.
4082 * parse.c (write_exp_msymbol): Update.
4083 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4084 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4085 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4086 * printcmd.c (build_address_symbolic): Update.
4088 (address_info): Update.
4089 * proc-service.c (ps_pglobal_lookup): Update.
4090 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4091 (find_pc_sect_psymtab): Update.
4092 * python/py-framefilter.c (py_print_frame): Update.
4093 * ravenscar-thread.c (get_running_thread_id): Update.
4094 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4096 * remote.c (remote_check_symbols): Update.
4097 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4098 (rs6000_skip_trampoline_code): Update.
4099 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4100 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4101 * solib-dsbt.c (lm_base): Update.
4102 * solib-frv.c (lm_base): Update.
4104 * solib-irix.c (locate_base): Update.
4105 * solib-som.c (som_solib_create_inferior_hook): Update.
4106 (som_solib_desire_dynamic_linker_symbols): Update.
4107 (link_map_start): Update.
4108 * solib-spu.c (spu_enable_break): Update.
4109 (ocl_enable_break): Update.
4110 * solib-svr4.c (elf_locate_base): Update.
4111 (enable_break): Update.
4112 * spu-tdep.c (spu_get_overlay_table): Update.
4113 (spu_catch_start): Update.
4114 (flush_ea_cache): Update.
4115 * stabsread.c (define_symbol): Update.
4116 (scan_file_globals): Update.
4117 * stack.c (find_frame_funname): Update.
4118 (frame_info): Update.
4119 * symfile.c (simple_read_overlay_table): Update.
4120 (simple_overlay_update): Update.
4121 * symmisc.c (dump_msymbols): Update.
4122 * symtab.c (fixup_section): Update.
4123 (find_pc_sect_line): Update.
4124 (skip_prologue_sal): Update.
4125 (search_symbols): Update.
4126 (print_msymbol_info): Update.
4127 (rbreak_command): Update.
4128 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4129 (completion_list_objc_symbol): Update.
4130 (default_make_symbol_completion_list_break_on): Update.
4131 * tracepoint.c (scope_info): Update.
4132 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4133 (tui_get_begin_asm_address): Update.
4134 * valops.c (find_function_in_inferior): Update.
4135 * value.c (value_static_field): Update.
4136 (value_fn_field): Update.
4138 2014-02-26 Tom Tromey <tromey@redhat.com>
4140 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4141 bound minimal symbols. Move code that knows about minsym
4143 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4145 * minsyms.h (minimal_symbol_upper_bound): Declare.
4146 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4147 minimal_symbol_upper_bound.
4149 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4151 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4152 Use the type's name if its basic type does not have a tag.
4154 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4156 * dwarf2read.c (read_subrange_type): Add comment.
4158 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4160 * dwarf2read.c (update_enumeration_type_from_children): New
4161 function, mostly extracted from process_structure_scope.
4162 (read_enumeration_type): Call update_enumeration_type_from_children.
4163 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4164 and flag_flag_enum fields.
4166 2014-02-26 Pedro Alves <palves@redhat.com>
4168 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4169 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4170 to_xfer_partial method.
4172 2014-02-26 Pedro Alves <palves@redhat.com>
4174 * target.c (complete_target_initialization): Don't install
4175 default_xfer_partial as to_xfer_partial hook.
4177 (update_current_target): Don't INHERIT nor de_fault
4178 deprecated_xfer_memory. Delete de_fault macro.
4179 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4180 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4181 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4184 2014-02-26 Pedro Alves <palves@redhat.com>
4186 * go32-nat.c (my_write_child): New function.
4187 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4188 (go32_xfer_partial): New function.
4189 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4190 Instead install a to_xfer_partial hook.
4192 2014-02-26 Pedro Alves <palves@redhat.com>
4194 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4195 to_xfer_partial helper. Rewrite.
4196 (procfs_xfer_partial): New function.
4197 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4198 Install a to_xfer_partial hook.
4200 2014-02-26 Pedro Alves <palves@redhat.com>
4202 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4203 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4204 (m32r_xfer_partial): New function.
4205 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4206 Install a to_xfer_partial hook.
4208 2014-02-26 Pedro Alves <palves@redhat.com>
4210 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4212 (mips_xfer_partial): New function.
4213 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4214 hook. Install a to_xfer_partial hook.
4216 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4218 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4219 * gdbtypes.c (create_array_type_with_stride): New function,
4220 renaming create_array_type, but with an added parameter
4221 called "bit_stride".
4222 (create_array_type): Re-implement using
4223 create_array_type_with_stride.
4224 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4225 and DW_AT_bit_stride attributes.
4227 2014-02-26 Pedro Alves <palves@redhat.com>
4229 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4230 task-specific breakpoints.
4232 2014-02-25 Pedro Alves <palves@redhat.com>
4234 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4235 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4237 2014-02-25 Stan Shebs <stan@codesourcery.com>
4239 * defs.h: Annotate comments for Doxygen.
4241 2014-02-25 Tom Tromey <tromey@redhat.com>
4243 * target.h (target_ignore): Don't declare.
4244 * target.c (target_ignore): Remove.
4246 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4249 * auto-load.c (auto_load_objfile_script_1): Change filename to
4252 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4254 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4255 documentation. Adjust prototype to match the target_ops
4256 to_xfer_partial method. Adjust implementation accordingly.
4258 2014-02-25 Hui Zhu <hui@codesourcery.com>
4260 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4263 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4265 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4266 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4267 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4268 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4269 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4270 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4271 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4272 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4274 (rl78_register_type): Use a data pointer type for SP and
4275 new pseudo registers mentioned above. Use a 16 bit integer
4276 type for all other register pairs.
4277 (rl78_register_name, rl78_g10_register_name): Update for
4278 new pseudo registers.
4279 (rl78_pseudo_register_read): Likewise.
4280 (rl78_pseudo_register_write): Likewise.
4281 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4282 to the newly added pseudo registers.
4284 2014-02-24 Doug Evans <dje@google.com>
4286 * value.c (record_latest_value): Fix comment.
4287 * printcmd.c (print_command_1): Remove code to handle -1 return from
4288 record_latest_value.
4290 2014-02-24 Pedro Alves <palves@redhat.com>
4292 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4293 deprecated_xfer_memory hook.
4294 (procfs_xfer_partial): Call procfs_xfer_memory instead
4295 of the deprecated_xfer_memory target hook.
4296 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4299 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4301 * windows-nat.c (windows_xfer_shared_libraries): Return
4302 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4303 requested object is TARGET_OBJECT_LIBRARIES.
4305 2014-02-24 Yao Qi <yao@codesourcery.com>
4307 * target.h (enum target_xfer_status)
4308 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4309 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4311 * corefile.c (memory_error_message): User updated.
4312 * exec.c (section_table_read_available_memory): Likewise.
4313 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4314 * target.c (target_xfer_status_to_string): Likewise.
4315 (raw_memory_xfer_partial): Likewise.
4316 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4317 * valops.c (read_value_memory): Likewise.
4318 * exec.h: Update comments.
4320 2014-02-24 Yao Qi <yao@codesourcery.com>
4322 * target.c (target_xfer_status_to_string): Rename argument err
4324 * target.h (target_xfer_status_to_string): Update declaration.
4325 Replace target_xfer_error_to_string with
4326 target_xfer_status_to_string in comment.
4328 2014-02-24 Yao Qi <yao@codesourcery.com>
4330 * mips-linux-nat.c (super_close): Update its type.
4331 (mips_linux_close): Pass 'self' to super_close.
4333 2014-02-24 Yao Qi <yao@codesourcery.com>
4335 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4336 * corefile.c (read_memory): Adjusted.
4337 * target.c (target_write_with_progress): Adjusted.
4339 2014-02-23 Yao Qi <yao@codesourcery.com>
4343 2013-10-25 Yao Qi <yao@codesourcery.com>
4345 * remote.c (remote_traceframe_info): Return early if
4346 traceframe is not selected.
4348 2013-07-19 Yao Qi <yao@codesourcery.com>
4350 * target.c (update_current_target): Change the default action
4351 of 'to_traceframe_info' from tcomplain to return_zero.
4352 * target.h (struct target_ops) <to_traceframe_info>: Add more
4355 2014-02-23 Yao Qi <yao@codesourcery.com>
4357 * valops.c (read_value_memory): Rewrite it. Call
4358 target_xfer_partial in a loop.
4359 * exec.h (section_table_available_memory): Remove declaration.
4360 Move comments to ...
4361 * exec.c (section_table_available_memory): ... here. Make it
4364 2014-02-23 Yao Qi <yao@codesourcery.com>
4366 * exec.c (section_table_read_available_memory): New function.
4367 * exec.h (section_table_read_available_memory): Declare.
4368 * ctf.c (ctf_xfer_partial): Call
4369 section_table_read_available_memory.
4370 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4372 2014-02-23 Yao Qi <yao@codesourcery.com>
4374 * ctf.c (ctf_xfer_partial): Move code to ...
4375 * exec.c (exec_read_partial_read_only): ... it. New function.
4376 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4377 * tracefile.c: Include "exec.h".
4378 * exec.h (exec_read_partial_read_only): Declare.
4380 2014-02-23 Yao Qi <yao@codesourcery.com>
4382 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4383 (tfile_has_memory): Remove.
4384 (init_tfile_ops): Don't set fields to_has_all_memory and
4385 to_has_memory of tfile_ops.
4386 * tracefile.c (tracefile_has_all_memory): New function.
4387 (tracefile_has_memory): New function.
4388 (init_tracefile_ops): Initialize fields to_has_all_memory and
4389 to_has_memory of 'ops'.
4391 2014-02-23 Yao Qi <yao@codesourcery.com>
4393 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4394 (ctf_thread_alive, ctf_get_trace_status): Remove.
4395 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4397 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4398 (tfile_has_stack, tfile_has_registers): Remove.
4399 (tfile_thread_alive): Remove.
4400 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4402 * tracefile.c (tracefile_has_stack): New function.
4403 (tracefile_has_registers): New function.
4404 (tracefile_thread_alive): New function.
4405 (tracefile_get_trace_status): New function.
4406 (init_tracefile_ops): New function.
4407 * tracefile.h (init_tracefile_ops): Declare.
4409 2014-02-23 Yao Qi <yao@codesourcery.com>
4411 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4412 (O_LARGEFILE): Likewise.
4413 (tfile_ops): Likewise.
4414 (TRACE_HEADER_SIZE): Likewise.
4415 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4416 (cur_data_size): Likewise.
4417 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4418 (tfile_close, tfile_files_info): Likewise.
4419 (tfile_get_trace_status): Likewise.
4420 (tfile_get_tracepoint_status): Likewise.
4421 (tfile_get_traceframe_address): Likewise.
4422 (tfile_trace_find, match_blocktype): Likewise.
4423 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4424 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4425 (tfile_get_trace_state_variable_value): Likewise.
4426 (tfile_has_all_memory, tfile_has_memory): Likewise.
4427 (tfile_has_stack, tfile_has_registers): Likewise.
4428 (tfile_thread_alive, build_traceframe_info): Likewise.
4429 (tfile_traceframe_info, init_tfile_ops): Likewise.
4430 (_initialize_tracepoint): Don't call init_tfile_ops
4431 and add_target_with_completer.
4432 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4433 exec.h, completer.h and filenames.h.
4434 (_initialize_tracefile_tfile): New function.
4436 2014-02-23 Yao Qi <yao@codesourcery.com>
4438 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4440 (HFILES_NO_SRCDIR): Add tracefile.h.
4441 * ctf.c: Include "tracefile.h".
4442 * tracefile.h: New file.
4443 * tracefile.c: New file
4444 * tracefile-tfile.c: New file.
4445 * tracepoint.c: Include "tracefile.h".
4446 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4447 (stop_reason_names): Add const.
4448 (trace_file_writer_xfree): Move it to tracefile.c.
4449 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4450 (trace_save_ctf): Likewise.
4451 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4452 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4453 (tfile_write_header, tfile_write_regblock_type): Likewise.
4454 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4455 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4456 (tfile_write_raw_data, tfile_end): Likewise.
4457 (tfile_trace_file_writer_new): Likewise.
4458 (free_uploaded_tp): Make it extern.
4459 (free_uploaded_tsv): Make it extern.
4460 (_initialize_tracepoint): Move code to register command 'tsave'
4462 * tracepoint.h (stop_reason_names): Declare.
4463 (struct trace_frame_write_ops): Move it to tracefile.h.
4464 (struct trace_file_write_ops): Likewise.
4465 (struct trace_file_writer): Likewise.
4466 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4468 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4471 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4473 (get_cores_used_by_process): New parameter num_cores, use it.
4474 (linux_xfer_osdata_processes): Pass num_cores to it.
4475 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4478 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4480 * target.c (memory_xfer_partial): Fix length arg in call to
4481 breakpoint_xfer_memory.
4483 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4486 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4487 number comes after the + or - signs. Adjust length of register
4488 name to be extracted.
4490 2014-02-20 Tom Tromey <tromey@redhat.com>
4492 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4493 (ada_varobj_ops): Mark "extern".
4495 2014-02-20 Tom Tromey <tromey@redhat.com>
4497 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4499 2014-02-20 Doug Evans <xdje42@gmail.com>
4501 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4502 All callers updated.
4503 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4504 All callers updated.
4505 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4506 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4508 2014-02-20 lin zuojian <manjian2006@gmail.com>
4509 Joel Brobecker <brobecker@adacore.com>
4510 Doug Evans <xdje42@gmail.com>
4513 * dwarf2read.c (struct die_info): New member in_process.
4514 (reset_die_in_process): New function.
4515 (process_die): Set it at the start, reset when returning.
4516 (inherit_abstract_dies): Only call process_die if origin_child_die
4517 not already being processed.
4519 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4521 * windows-nat.c (handle_unload_dll): Add function documentation.
4522 (do_initial_windows_stuff): Add comment explaining why we wait
4523 until after inferior initialization has finished before
4524 processing all DLLs.
4526 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4528 * windows-nat.c (get_module_name): Delete.
4529 (windows_get_exec_module_filename): New function, mostly
4530 inspired from get_module_name.
4531 (windows_pid_to_exec_file): Replace call to get_module_name
4532 by call to windows_get_exec_module_filename.
4534 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4536 * windows-nat.c (handle_load_dll): Rewrite this function's
4537 introductory comment. Remove code using get_module_name
4538 to get the DLL's name.
4540 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4542 * windows-nat.c (get_windows_debug_event): Ignore
4543 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4544 if windows_initialization_done == 0.
4545 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4546 Adjust implementation to always load all DLLs.
4547 (do_initial_windows_stuff): Replace call to
4548 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4550 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4552 * windows-nat.c (_initialize_windows_nat): Deprecate the
4553 "dll-symbols" command. Turn the "add-shared-symbol-files"
4554 and "assf" aliases into commands, and deprecate them as well.
4555 * NEWS: Add entry explaining that "dll-symbols" and its two
4556 aliases are now deprecated.
4558 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4560 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4561 new-line in debug string. Remove trailing spaces.
4563 2014-02-19 Stan Shebs <stan@codesourcery.com>
4565 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4567 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4569 * NEWS: Add entry for the new feature
4570 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4573 2014-02-19 Stan Shebs <stan@codesourcery.com>
4575 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4577 2014-02-19 Pedro Alves <palves@redhat.com>
4579 * common/ptid.h (struct ptid): Mention that process_stratum
4580 targets should prefer ptid.lwp.
4582 2014-02-19 Pedro Alves <palves@redhat.com>
4584 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4585 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4586 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4587 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4588 store remote thread ids rather than ptid.tid.
4589 (_initialize_remote): Adjust.
4591 2014-02-19 Tom Tromey <tromey@redhat.com>
4593 * target.c (target_get_unwinder): Rewrite.
4594 (target_get_tailcall_unwinder): Rewrite.
4595 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4596 (record_btrace_to_get_tailcall_unwinder): New function.
4597 (init_record_btrace_ops): Update.
4598 * target.h (struct target_ops) <to_get_unwinder,
4599 to_get_tailcall_unwinder>: Now function pointers. Use
4600 TARGET_DEFAULT_RETURN.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4606 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4608 2014-02-19 Tom Tromey <tromey@redhat.com>
4610 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4612 * target-delegates.c: Rebuild.
4613 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4614 TARGET_DEFAULT_FUNC.
4615 * target.c (default_target_decr_pc_after_break): Rename from
4616 forward_target_decr_pc_after_break. Simplify.
4617 (target_decr_pc_after_break): Rely on delegation.
4619 2014-02-19 Tom Tromey <tromey@redhat.com>
4621 * target.c (update_current_target): Do not INHERIT to_doc or
4622 to_magic. Do not de_fault to_open or to_close.
4624 2014-02-19 Tom Tromey <tromey@redhat.com>
4626 * gcore.h (objfile_find_memory_regions): Declare.
4627 * gcore.c (objfile_find_memory_regions): No longer static. Add
4629 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4630 * exec.c: Include gcore.h.
4631 (exec_set_find_memory_regions): Remove.
4632 (exec_find_memory_regions): Remove.
4633 (exec_do_find_memory_regions): Remove.
4634 (init_exec_ops): Update.
4635 * defs.h (exec_set_find_memory_regions): Remove.
4637 2014-02-19 Tom Tromey <tromey@redhat.com>
4639 * target-delegates.c: Rebuild.
4640 * target.h (struct target_ops) <to_extra_thread_info,
4641 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4642 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4643 not 0, in TARGET_DEFAULT_RETURN.
4645 2014-02-19 Tom Tromey <tromey@redhat.com>
4647 * target.c (complete_target_initialization): Remove casts. Use
4648 return_zero_has_execution.
4649 (return_zero): Add "ignore" argument.
4650 (return_zero_has_execution): New function.
4651 (init_dummy_target): Remove casts. Use
4652 return_zero_has_execution.
4654 2014-02-19 Tom Tromey <tromey@redhat.com>
4656 * target.c (update_current_target): Update comments. Do not
4659 2014-02-19 Tom Tromey <tromey@redhat.com>
4661 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4663 * corelow.c (core_read_description): Delegate when needed.
4664 * remote.c (remote_read_description): Delegate when needed.
4665 * target-delegates.c: Rebuild.
4666 * target.c (target_read_description): Rewrite.
4667 * target.h (struct target_ops) <to_read_description>: Update
4668 comment. Use TARGET_DEFAULT_RETURN.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (update_current_target): Don't inherit or default
4675 (find_default_run_target): Check against delegate_can_run.
4676 * target.h (struct target_ops) <to_can_run>: Use
4677 TARGET_DEFAULT_RETURN.
4679 2014-02-19 Tom Tromey <tromey@redhat.com>
4681 * target-delegates.c: Rebuild.
4682 * target.c (target_disconnect): Unconditionally delegate.
4683 * target.h (struct target_ops) <to_disconnect>: Use
4684 TARGET_DEFAULT_NORETURN.
4686 2014-02-19 Tom Tromey <tromey@redhat.com>
4688 * record.c (record_stop): Unconditionally delegate.
4689 * target-delegates.c: Rebuild.
4690 * target.c (target_stop_recording): Unconditionally delegate.
4691 * target.h (struct target_ops) <to_stop_recording>: Use
4692 TARGET_DEFAULT_IGNORE.
4694 2014-02-19 Tom Tromey <tromey@redhat.com>
4696 * target-delegates.c: Rebuild.
4697 * target.c (target_enable_btrace): Unconditionally delegate.
4698 * target.h (struct target_ops) <to_enable_btrace>: Use
4699 TARGET_DEFAULT_NORETURN.
4701 2014-02-19 Tom Tromey <tromey@redhat.com>
4703 * target-delegates.c: Rebuild.
4704 * target.c (target_read_btrace): Unconditionally delegate.
4705 * target.h (struct target_ops) <to_read_btrace>: Use
4706 TARGET_DEFAULT_NORETURN.
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target-delegates.c: Rebuild.
4711 * target.c (target_teardown_btrace): Unconditionally delegate.
4712 * target.h (struct target_ops) <to_teardown_btrace>: Use
4713 TARGET_DEFAULT_NORETURN.
4715 2014-02-19 Tom Tromey <tromey@redhat.com>
4717 * target-delegates.c: Rebuild.
4718 * target.c (target_disable_btrace): Unconditionally delegate.
4719 * target.h (struct target_ops) <to_disable_btrace>: Use
4720 TARGET_DEFAULT_NORETURN.
4722 2014-02-19 Tom Tromey <tromey@redhat.com>
4724 * target-delegates.c: Rebuild.
4725 * target.c (default_search_memory): New function.
4726 (simple_search_memory): Update comment.
4727 (target_search_memory): Unconditionally delegate.
4728 * target.h (struct target_ops) <to_search_memory>: Use
4729 TARGET_DEFAULT_FUNC.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * auxv.c (default_auxv_parse): No longer static.
4734 (target_auxv_parse): Unconditionally delegate.
4735 * auxv.h (default_auxv_parse): Declare.
4736 * target-delegates.c: Rebuild.
4737 * target.c: Include auxv.h.
4738 * target.h (struct target_ops) <to_auxv_parse>: Use
4739 TARGET_DEFAULT_FUNC.
4741 2014-02-19 Tom Tromey <tromey@redhat.com>
4743 * target-delegates.c: Rebuild.
4744 * target.c (target_memory_map): Unconditionally delegate.
4745 * target.h (struct target_ops) <to_memory_map>: Use
4746 TARGET_DEFAULT_RETURN.
4748 2014-02-19 Tom Tromey <tromey@redhat.com>
4750 * target-delegates.c: Rebuild.
4751 * target.c (target_thread_alive): Unconditionally delegate.
4752 * target.h (struct target_ops) <to_thread_alive>: Use
4753 TARGET_DEFAULT_RETURN.
4755 2014-02-19 Tom Tromey <tromey@redhat.com>
4757 * target-delegates.c: Rebuild.
4758 * target.c (target_save_record): Unconditionally delegate.
4759 * target.h (struct target_ops) <to_save_record>: Use
4760 TARGET_DEFAULT_NORETURN.
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * target-delegates.c: Rebuild.
4765 * target.c (target_delete_record): Unconditionally delegate.
4766 * target.h (struct target_ops) <to_delete_record>: Use
4767 TARGET_DEFAULT_NORETURN.
4769 2014-02-19 Tom Tromey <tromey@redhat.com>
4771 * target-delegates.c: Rebuild.
4772 * target.c (target_record_is_replaying): Unconditionally
4774 * target.h (struct target_ops) <to_record_is_replaying>: Use
4775 TARGET_DEFAULT_RETURN.
4777 2014-02-19 Tom Tromey <tromey@redhat.com>
4779 * target-delegates.c: Rebuild.
4780 * target.c (target_goto_record_begin): Unconditionally delegate.
4781 * target.h (struct target_ops) <to_goto_record_begin>: Use
4782 TARGET_DEFAULT_NORETURN.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target-delegates.c: Rebuild.
4787 * target.c (target_goto_record_end): Unconditionally delegate.
4788 * target.h (struct target_ops) <to_goto_record_end>: Use
4789 TARGET_DEFAULT_NORETURN.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target-delegates.c: Rebuild.
4794 * target.c (target_goto_record): Unconditionally delegate.
4795 * target.h (struct target_ops) <to_goto_record>: Use
4796 TARGET_DEFAULT_NORETURN.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * target-delegates.c: Rebuild.
4801 * target.c (target_insn_history): Unconditionally delegate.
4802 * target.h (struct target_ops) <to_insn_history>: Use
4803 TARGET_DEFAULT_NORETURN.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.c (target_insn_history_from): Unconditionally delegate.
4809 * target.h (struct target_ops) <to_insn_history_from>: Use
4810 TARGET_DEFAULT_NORETURN.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (target_insn_history_range): Unconditionally delegate.
4816 * target.h (struct target_ops) <to_insn_history_range>: Use
4817 TARGET_DEFAULT_NORETURN.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target-delegates.c: Rebuild.
4822 * target.c (target_call_history): Unconditionally delegate.
4823 * target.h (struct target_ops) <to_call_history>: Use
4824 TARGET_DEFAULT_NORETURN.
4826 2014-02-19 Tom Tromey <tromey@redhat.com>
4828 * target-delegates.c: Rebuild.
4829 * target.c (target_call_history_from): Unconditionally delegate.
4830 * target.h (struct target_ops) <to_call_history_from>: Use
4831 TARGET_DEFAULT_NORETURN.
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * target-delegates.c: Rebuild.
4836 * target.c (target_call_history_range): Unconditionally delegate.
4837 * target.h (struct target_ops) <to_call_history_range>: Use
4838 TARGET_DEFAULT_NORETURN.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target-delegates.c: Rebuild.
4843 * target.c (target_verify_memory): Unconditionally delegate.
4844 * target.h (struct target_ops) <to_verify_memory>: Use
4845 TARGET_DEFAULT_NORETURN.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (target_core_of_thread): Unconditionally delegate.
4851 * target.h (struct target_ops) <to_core_of_thread>: Use
4852 TARGET_DEFAULT_RETURN.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * target-delegates.c: Rebuild.
4857 * target.c (target_flash_done): Unconditionally delegate.
4858 * target.h (struct target_ops) <to_flash_done>: Use
4859 TARGET_DEFAULT_NORETURN.
4861 2014-02-19 Tom Tromey <tromey@redhat.com>
4863 * target-delegates.c: Rebuild.
4864 * target.c (target_flash_erase): Unconditionally delegate.
4865 * target.h (struct target_ops) <to_flash_erase>: Use
4866 TARGET_DEFAULT_NORETURN.
4868 2014-02-19 Tom Tromey <tromey@redhat.com>
4870 * target-delegates.c: Rebuild.
4871 * target.c (target_get_section_table): Unconditionally delegate.
4872 * target.h (struct target_ops) <to_get_section_table>: Use
4873 TARGET_DEFAULT_RETURN.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target-delegates.c: Rebuild.
4878 * target.c (target_pid_to_str): Unconditionally delegate.
4879 (init_dummy_target): Don't initialize to_pid_to_str.
4880 (default_pid_to_str): Rename from dummy_pid_to_str.
4881 * target.h (struct target_ops) <to_pid_to_str>: Use
4882 TARGET_DEFAULT_FUNC.
4884 2014-02-19 Tom Tromey <tromey@redhat.com>
4886 * target-delegates.c: Rebuild.
4887 * target.c (target_find_new_threads): Unconditionally delegate.
4888 * target.h (struct target_ops) <to_find_new_threads>: Use
4889 TARGET_DEFAULT_RETURN.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (target_program_signals): Unconditionally delegate.
4895 * target.h (struct target_ops) <to_program_signals>: Use
4896 TARGET_DEFAULT_IGNORE.
4898 2014-02-19 Tom Tromey <tromey@redhat.com>
4900 * target-delegates.c: Rebuild.
4901 * target.c (target_pass_signals): Unconditionally delegate.
4902 * target.h (struct target_ops) <to_pass_signals>: Use
4903 TARGET_DEFAULT_IGNORE.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target-delegates.c: Rebuild.
4908 * target.c (default_mourn_inferior): New function.
4909 (target_mourn_inferior): Unconditionally delegate.
4910 * target.h (struct target_ops) <to_mourn_inferior>: Use
4911 TARGET_DEFAULT_FUNC.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target-delegates.c: Rebuild.
4916 * target.c (default_follow_fork): New function.
4917 (target_follow_fork): Unconditionally delegate.
4918 * target.h (struct target_ops) <to_follow_fork>: Use
4919 TARGET_DEFAULT_FUNC.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target-delegates.c: Rebuild.
4924 * target.c (target_kill): Unconditionally delegate.
4925 * target.h (struct target_ops) <to_kill>: Use
4926 TARGET_DEFAULT_NORETURN.
4928 2014-02-19 Tom Tromey <tromey@redhat.com>
4930 * target-delegates.c: Rebuild.
4931 * target.c (target_masked_watch_num_registers): Unconditionally
4933 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4934 Use TARGET_DEFAULT_RETURN.
4936 2014-02-19 Tom Tromey <tromey@redhat.com>
4938 * target-delegates.c: Rebuild.
4939 * target.c (target_remove_mask_watchpoint): Unconditionally
4941 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4942 TARGET_DEFAULT_RETURN.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target-delegates.c: Rebuild.
4947 * target.c (target_insert_mask_watchpoint): Unconditionally
4949 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4950 TARGET_DEFAULT_RETURN.
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target-delegates.c: Rebuild.
4955 * target.c (target_ranged_break_num_registers): Unconditionally
4957 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4958 Use TARGET_DEFAULT_RETURN.
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * target-delegates.c: Rebuild.
4963 * target.c (target_fetch_registers): Unconditionally delegate.
4964 * target.h (struct target_ops) <to_fetch_registers>: Use
4965 TARGET_DEFAULT_NORETURN.
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
4972 * target.h (struct target_ops) <to_stop>: Use
4973 TARGET_DEFAULT_IGNORE.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target-delegates.c: Rebuild.
4978 * target.c (update_current_target): Don't inherit or default
4979 to_can_run_breakpoint_commands.
4980 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4981 Use TARGET_DEFAULT_RETURN.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target-delegates.c: Rebuild.
4986 * target.c (update_current_target): Don't inherit or default
4987 to_supports_evaluation_of_breakpoint_conditions.
4988 * target.h (struct target_ops)
4989 <to_supports_evaluation_of_breakpoint_conditions>: Use
4990 TARGET_DEFAULT_RETURN.
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
4996 to_augmented_libraries_svr4_read.
4997 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4998 Use TARGET_DEFAULT_RETURN.
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_can_use_agent>: 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 inherit or default
5013 * target.h (struct target_ops) <to_use_agent>: Use
5014 TARGET_DEFAULT_NORETURN.
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
5021 (return_null): Remove.
5022 * target.h (struct target_ops) <to_traceframe_info>: Use
5023 TARGET_DEFAULT_RETURN.
5025 2014-02-19 Tom Tromey <tromey@redhat.com>
5027 * target-delegates.c: Rebuild.
5028 * target.c (update_current_target): Don't inherit or default
5029 to_static_tracepoint_markers_by_strid.
5030 * target.h (struct target_ops)
5031 <to_static_tracepoint_markers_by_strid>: Use
5032 TARGET_DEFAULT_NORETURN.
5034 2014-02-19 Tom Tromey <tromey@redhat.com>
5036 * target-delegates.c: Rebuild.
5037 * target.c (update_current_target): Don't inherit or default
5038 to_static_tracepoint_marker_at.
5039 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5040 Use TARGET_DEFAULT_RETURN.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target-delegates.c: Rebuild.
5045 * target.c (update_current_target): Don't inherit or default
5047 * target.h (struct target_ops) <to_set_permissions>: Use
5048 TARGET_DEFAULT_IGNORE.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (update_current_target): Don't inherit or default
5055 * target.h (struct target_ops) <to_get_tib_address>: Use
5056 TARGET_DEFAULT_NORETURN.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (update_current_target): Don't inherit or default
5063 * target.h (struct target_ops) <to_set_trace_notes>: Use
5064 TARGET_DEFAULT_RETURN.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (update_current_target): Don't initialize
5070 to_set_trace_buffer_size.
5071 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5072 TARGET_DEFAULT_IGNORE.
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target-delegates.c: Rebuild.
5077 * target.c (update_current_target): Don't inherit or default
5078 to_set_circular_trace_buffer.
5079 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5080 TARGET_DEFAULT_IGNORE.
5082 2014-02-19 Tom Tromey <tromey@redhat.com>
5084 * target-delegates.c: Rebuild.
5085 * target.c (update_current_target): Don't inherit or default
5086 to_set_disconnected_tracing.
5087 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5088 TARGET_DEFAULT_IGNORE.
5090 2014-02-19 Tom Tromey <tromey@redhat.com>
5092 * target-delegates.c: Rebuild.
5093 * target.c (update_current_target): Don't inherit or default
5094 to_get_min_fast_tracepoint_insn_len.
5095 (return_minus_one): Remove.
5096 * target.h (struct target_ops)
5097 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target-delegates.c: Rebuild.
5102 * target.c (update_current_target): Don't inherit or default
5103 to_get_raw_trace_data.
5104 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5105 TARGET_DEFAULT_NORETURN.
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target-delegates.c: Rebuild.
5110 * target.c (update_current_target): Don't inherit or default
5111 to_upload_trace_state_variables.
5112 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5113 Use TARGET_DEFAULT_RETURN.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target-delegates.c: Rebuild.
5118 * target.c (update_current_target): Don't inherit or default
5119 to_upload_tracepoints.
5120 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5121 TARGET_DEFAULT_RETURN.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target-delegates.c: Rebuild.
5126 * target.c (update_current_target): Don't inherit or default
5128 * target.h (struct target_ops) <to_save_trace_data>: Use
5129 TARGET_DEFAULT_NORETURN.
5131 2014-02-19 Tom Tromey <tromey@redhat.com>
5133 * target-delegates.c: Rebuild.
5134 * target.c (update_current_target): Don't inherit or default
5135 to_get_trace_state_variable_value.
5136 * target.h (struct target_ops)
5137 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target-delegates.c: Rebuild.
5142 * target.c (update_current_target): Don't inherit or default
5144 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5146 2014-02-19 Tom Tromey <tromey@redhat.com>
5148 * target-delegates.c: Rebuild.
5149 * target.c (update_current_target): Don't inherit or default
5151 * target.h (struct target_ops) <to_trace_stop>: Use
5152 TARGET_DEFAULT_NORETURN.
5154 2014-02-19 Tom Tromey <tromey@redhat.com>
5156 * target-delegates.c: Rebuild.
5157 * target.c (update_current_target): Don't inherit or default
5158 to_get_tracepoint_status.
5159 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5160 TARGET_DEFAULT_NORETURN.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target-delegates.c: Rebuild.
5165 * target.c (update_current_target): Don't inherit or default
5166 to_get_trace_status.
5167 * target.h (struct target_ops) <to_get_trace_status>: Use
5168 TARGET_DEFAULT_RETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (update_current_target): Don't inherit or default
5175 * target.h (struct target_ops) <to_trace_start>: Use
5176 TARGET_DEFAULT_NORETURN.
5178 2014-02-19 Tom Tromey <tromey@redhat.com>
5180 * target-delegates.c: Rebuild.
5181 * target.c (update_current_target): Don't inherit or default
5182 to_trace_set_readonly_regions.
5183 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5184 Use TARGET_DEFAULT_NORETURN.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target-delegates.c: Rebuild.
5189 * target.c (update_current_target): Don't inherit or default
5190 to_disable_tracepoint.
5191 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5192 TARGET_DEFAULT_NORETURN.
5194 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target-delegates.c: Rebuild.
5197 * target.c (update_current_target): Don't inherit or default
5198 to_enable_tracepoint.
5199 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5200 TARGET_DEFAULT_NORETURN.
5202 2014-02-19 Tom Tromey <tromey@redhat.com>
5204 * target-delegates.c: Rebuild.
5205 * target.c (update_current_target): Don't inherit or default
5206 to_download_trace_state_variable.
5207 * target.h (struct target_ops) <to_download_trace_state_variable>:
5208 Use TARGET_DEFAULT_NORETURN.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target-delegates.c: Rebuild.
5213 * target.c (update_current_target): Don't inherit or default
5214 to_can_download_tracepoint.
5215 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5216 TARGET_DEFAULT_RETURN.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target-delegates.c: Rebuild.
5221 * target.c (update_current_target): Don't inherit or default
5222 to_download_tracepoint.
5223 * target.h (struct target_ops) <to_download_tracepoint>: Use
5224 TARGET_DEFAULT_NORETURN.
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target-delegates.c: Rebuild.
5229 * target.c (update_current_target): Don't inherit or default
5231 * target.h (struct target_ops) <to_trace_init>: Use
5232 TARGET_DEFAULT_RETURN.
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
5238 to_supports_string_tracing.
5239 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5240 TARGET_DEFAULT_RETURN.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target-delegates.c: Rebuild.
5245 * target.c (update_current_target): Don't inherit or default
5246 to_supports_enable_disable_tracepoint.
5247 * target.h (struct target_ops)
5248 <to_supports_enable_disable_tracepoint>: Use
5249 TARGET_DEFAULT_RETURN.
5251 2014-02-19 Tom Tromey <tromey@redhat.com>
5253 * target-delegates.c: Rebuild.
5254 * target.c (update_current_target): Don't inherit or default
5255 to_supports_multi_process.
5256 * target.h (struct target_ops) <to_supports_multi_process>: Use
5257 TARGET_DEFAULT_RETURN.
5259 2014-02-19 Tom Tromey <tromey@redhat.com>
5261 * target-delegates.c: Rebuild.
5262 * target.c (update_current_target): Don't inherit or default
5263 to_get_ada_task_ptid.
5264 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5265 TARGET_DEFAULT_FUNC.
5267 2014-02-19 Tom Tromey <tromey@redhat.com>
5269 * target-delegates.c: Rebuild.
5270 * target.c (update_current_target): Don't inherit or default
5271 to_thread_architecture.
5272 * target.h (struct target_ops) <to_thread_architecture>: Use
5273 TARGET_DEFAULT_FUNC.
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target-delegates.c: Rebuild.
5278 * target.c (update_current_target): Don't inherit or default
5279 to_execution_direction.
5280 * target.h (struct target_ops) <to_execution_direction>: Use
5281 TARGET_DEFAULT_FUNC.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target-delegates.c: Rebuild.
5286 * target.c (update_current_target): Don't inherit or default
5287 to_can_execute_reverse.
5288 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5289 TARGET_DEFAULT_RETURN.
5290 (target_can_execute_reverse): Unconditionally delegate.
5292 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target-delegates.c: Rebuild.
5295 * target.c (update_current_target): Don't inherit or default
5297 (dummy_goto_bookmark): Remove.
5298 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5299 * target.h (struct target_ops) <to_goto_bookmark>: Use
5300 TARGET_DEFAULT_NORETURN.
5302 2014-02-19 Tom Tromey <tromey@redhat.com>
5304 * target-delegates.c: Rebuild.
5305 * target.c (update_current_target): Don't inherit or default
5307 (dummy_get_bookmark): Remove.
5308 (init_dummy_target): Don't inherit or default to_get_bookmark.
5309 * target.h (struct target_ops) <to_get_bookmark>: Use
5310 TARGET_DEFAULT_NORETURN
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target-delegates.c: Rebuild.
5315 * target.c (update_current_target): Don't inherit or default
5316 to_make_corefile_notes.
5317 (init_dummy_target): Don't initialize to_make_corefile_notes.
5318 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5319 TARGET_DEFAULT_FUNC.
5321 2014-02-19 Tom Tromey <tromey@redhat.com>
5323 * target-delegates.c: Rebuild.
5324 * target.c (update_current_target): Don't inherit or default
5325 to_find_memory_regions.
5326 (init_dummy_target): Don't initialize to_find_memory_regions.
5327 * target.h (struct target_ops) <to_find_memory_regions>: Use
5328 TARGET_DEFAULT_FUNC.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target-delegates.c: Rebuild.
5333 * target.c (update_current_target): Don't inherit or default
5335 * target.h (struct target_ops) <to_log_command>: Use
5336 TARGET_DEFAULT_IGNORE.
5337 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
5344 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
5352 (target_thread_name): Unconditionally delegate.
5353 * target.h (struct target_ops) <to_thread_name>: Use
5354 TARGET_DEFAULT_RETURN.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target-delegates.c: Rebuild.
5359 * target.c (update_current_target): Don't inherit or default
5360 to_extra_thread_info.
5361 * target.h (struct target_ops) <to_extra_thread_info>: Use
5362 TARGET_DEFAULT_RETURN.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (update_current_target): Don't inherit or default
5369 * target.h (struct target_ops) <to_has_exited>: Use
5370 TARGET_DEFAULT_RETURN..
5372 2014-02-19 Tom Tromey <tromey@redhat.com>
5374 * target-delegates.c: Rebuild.
5375 * target.c (update_current_target): Don't inherit or default
5376 to_set_syscall_catchpoint.
5377 (return_one): Remove.
5378 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5379 TARGET_DEFAULT_RETURN.
5381 2014-02-19 Tom Tromey <tromey@redhat.com>
5383 * target-delegates.c: Rebuild.
5384 * target.c (update_current_target): Don't inherit or default
5385 to_insert_exec_catchpoint.
5386 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5387 TARGET_DEFAULT_RETURN.
5389 2014-01-08 Tom Tromey <tromey@redhat.com>
5391 * target-delegates.c: Rebuild.
5392 * target.c (update_current_target): Don't inherit or default
5393 to_insert_exec_catchpoint.
5394 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5395 TARGET_DEFAULT_RETURN.
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target-delegates.c: Rebuild.
5400 * target.c (update_current_target): Don't inherit or default
5401 to_remove_vfork_catchpoint.
5402 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5403 TARGET_DEFAULT_RETURN.
5405 2014-02-19 Tom Tromey <tromey@redhat.com>
5407 * target-delegates.c: Rebuild.
5408 * target.c (update_current_target): Don't inherit or default
5409 to_insert_vfork_catchpoint.
5410 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5411 TARGET_DEFAULT_RETURN.
5413 2014-02-19 Tom Tromey <tromey@redhat.com>
5415 * target-delegates.c: Rebuild.
5416 * target.c (update_current_target): Don't inherit or default
5417 to_remove_fork_catchpoint.
5418 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5419 TARGET_DEFAULT_RETURN.
5421 2014-02-19 Tom Tromey <tromey@redhat.com>
5423 * target-delegates.c: Rebuild.
5424 * target.c (update_current_target): Don't inherit or default
5425 to_insert_fork_catchpoint.
5426 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5427 TARGET_DEFAULT_RETURN.
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target-delegates.c: Rebuild.
5432 * target.c (update_current_target): Don't inherit or default
5433 to_post_startup_inferior.
5434 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5435 TARGET_DEFAULT_IGNORE.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target-delegates.c: Rebuild.
5440 * target.c (update_current_target): Don't inherit or default
5442 * target.h (struct target_ops) <to_load>: Use
5443 TARGET_DEFAULT_NORETURN.
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * target-delegates.c: Rebuild.
5448 * target.c (update_current_target): Don't inherit or default
5450 * target.h (struct target_ops) <to_terminal_info>: Use
5451 TARGET_DEFAULT_FUNC.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target-delegates.c: Rebuild.
5456 * target.c (update_current_target): Don't inherit or default
5457 to_terminal_save_ours.
5458 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5459 TARGET_DEFAULT_IGNORE.
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target-delegates.c: Rebuild.
5464 * target.c (update_current_target): Don't inherit or default
5466 * target.h (struct target_ops) <to_terminal_ours>: Use
5467 TARGET_DEFAULT_IGNORE.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * target-delegates.c: Rebuild.
5472 * target.c (update_current_target): Don't inherit or default
5473 to_terminal_ours_for_output.
5474 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5475 TARGET_DEFAULT_IGNORE.
5477 2014-02-19 Tom Tromey <tromey@redhat.com>
5479 * target-delegates.c: Rebuild.
5480 * target.c (update_current_target): Don't inherit or default
5481 to_terminal_inferior.
5482 * target.h (struct target_ops) <to_terminal_inferior>: Use
5483 TARGET_DEFAULT_IGNORE.
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target-delegates.c: Rebuild.
5488 * target.c (update_current_target): Don't inherit or default
5490 * target.h (struct target_ops) <to_terminal_init>: Use
5491 TARGET_DEFAULT_IGNORE.
5493 2014-02-19 Tom Tromey <tromey@redhat.com>
5495 * target-delegates.c: Rebuild.
5496 * target.c (update_current_target): Don't inherit or default
5497 to_can_accel_watchpoint_condition.
5498 * target.h (struct target_ops)
5499 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target-delegates.c: Rebuild.
5504 * target.c (update_current_target): Don't inherit or default
5505 to_region_ok_for_hw_watchpoint.
5506 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5507 Use TARGET_DEFAULT_FUNC.
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target-delegates.c: Rebuild.
5512 * target.c (update_current_target): Don't inherit or default
5513 to_watchpoint_addr_within_range.
5514 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5515 Use TARGET_DEFAULT_FUNC.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5521 to_remove_watchpoint.
5522 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5523 TARGET_DEFAULT_NORETURN.
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target-delegates.c: Rebuild.
5528 * target.c (update_current_target): Don't inherit or default
5529 to_insert_watchpoint.
5530 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5531 TARGET_DEFAULT_RETURN.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target-delegates.c: Rebuild.
5536 * target.c (update_current_target): Don't inherit or default
5537 to_remove_hw_breakpoint.
5538 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5539 TARGET_DEFAULT_RETURN.
5541 2014-02-19 Tom Tromey <tromey@redhat.com>
5543 * target-delegates.c: Rebuild.
5544 * target.c (update_current_target): Don't inherit or default
5545 to_insert_hw_breakpoint.
5546 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5547 TARGET_DEFAULT_RETURN.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target-delegates.c: Rebuild.
5552 * target.c (update_current_target): Don't inherit or default
5553 to_can_use_hw_breakpoint.
5554 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5555 TARGET_DEFAULT_RETURN.
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * target-delegates.c: Rebuild.
5560 * target.c (update_current_target): Don't inherit or default
5562 * target.h (struct target_ops) <to_files_info>: Use
5563 TARGET_DEFAULT_IGNORE.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target-delegates.c: Rebuild.
5568 * target.c (update_current_target): Don't inherit or default
5570 * target.h (struct target_ops) <to_store>: Use
5571 TARGET_DEFAULT_NORETURN.
5573 2014-02-19 Tom Tromey <tromey@redhat.com>
5575 * target-delegates.c: Rebuild.
5576 * target.c (update_current_target): Don't inherit or default
5578 * target.h (struct target_ops) <to_post_attach>: Use
5579 TARGET_DEFAULT_IGNORE.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target-delegates.c: Rebuild.
5584 * target.c (update_current_target): Don't inherit or default
5586 (default_rcmd): New function.
5587 (do_monitor_command): Unconditionally delegate.
5588 * target.h (struct target_ops) <to_rmcd>: Use
5589 TARGET_DEFAULT_FUNC.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * target-delegates.c: Rebuild.
5594 * target.c (init_dummy_target): Don't initialize to_attach.
5595 (target_attach): Unconditionally delegate.
5596 * target.h (struct target_ops) <to_attach>: Use
5597 TARGET_DEFAULT_FUNC.
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * target-delegates.c: Rebuild.
5602 * target.c (target_detach): Unconditionally delegate.
5603 (init_dummy_target): Don't initialize to_detach.
5604 * target.h (struct target_ops) <to_detach>: Use
5605 TARGET_DEFAULT_IGNORE.
5607 2014-02-19 Tom Tromey <tromey@redhat.com>
5609 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5611 (target_augmented_libraries_svr4_read): Add argument.
5612 * target.c (update_current_target): Update.
5613 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target.h (struct target_ops) <to_call_history_range>: Add
5620 * target.c (target_call_history_range): Add argument.
5621 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5623 (record_btrace_call_history_from): Update.
5625 2014-02-19 Tom Tromey <tromey@redhat.com>
5627 * target.h (struct target_ops) <to_call_history_from>: Add
5629 * target.c (target_call_history_from): Add argument.
5630 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5633 2014-02-19 Tom Tromey <tromey@redhat.com>
5635 * target.h (struct target_ops) <to_call_history>: Add argument.
5636 * target.c (target_call_history): Add argument.
5637 * record-btrace.c (record_btrace_call_history): Add 'self'
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target.h (struct target_ops) <to_insn_history_range>: Add
5644 * target.c (target_insn_history_range): Add argument.
5645 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5647 (record_btrace_insn_history_from): Update.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target.h (struct target_ops) <to_insn_history_from>: Add
5653 * target.c (target_insn_history_from): Add argument.
5654 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target.h (struct target_ops) <to_insn_history>: Add argument.
5660 * target.c (target_insn_history): Add argument.
5661 * record-btrace.c (record_btrace_insn_history): Add 'self'
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * target.h (struct target_ops) <to_goto_record>: Add argument.
5667 * target.c (target_goto_record): Add argument.
5668 * record-full.c (record_full_goto): Add 'self' argument.
5669 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5674 * target.c (target_goto_record_end): Add argument.
5675 * record-full.c (record_full_goto_end): Add 'self' argument.
5676 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_goto_record_begin>: Add
5682 * target.c (target_goto_record_begin): Add argument.
5683 * record-full.c (record_full_goto_begin): Add 'self' argument.
5684 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5687 2014-02-19 Tom Tromey <tromey@redhat.com>
5689 * target.h (struct target_ops) <to_record_is_replaying>: Add
5691 * target.c (target_record_is_replaying): Add argument.
5692 * record-full.c (record_full_is_replaying): Add 'self' argument.
5693 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5695 (record_btrace_xfer_partial, record_btrace_store_registers)
5696 (record_btrace_prepare_to_store, record_btrace_resume)
5697 (record_btrace_wait, record_btrace_decr_pc_after_break)
5698 (record_btrace_find_new_threads, record_btrace_thread_alive):
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target.h (struct target_ops) <to_delete_record>: Add argument.
5704 * target.c (target_delete_record): Add argument.
5705 * record-full.c (record_full_delete): Add 'self' argument.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_save_record>: Add argument.
5710 * target.c (target_save_record): Add argument.
5711 * record-full.c (record_full_save): Add 'self' argument.
5712 (record_full_save): Add 'self' argument.
5714 2014-02-19 Tom Tromey <tromey@redhat.com>
5716 * target.h (struct target_ops) <to_info_record>: Add argument.
5717 * target.c (target_info_record): Add argument.
5718 * record.c (info_record_command): Add argument.
5719 * record-full.c (record_full_info): Add 'self' argument.
5720 * record-btrace.c (record_btrace_info): Add 'self' argument.
5722 2014-02-19 Tom Tromey <tromey@redhat.com>
5724 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5725 * target.c (target_stop_recording): Add argument.
5726 * record.c (record_stop): Add argument.
5727 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5733 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5734 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5736 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5737 (_initialize_amd64_linux_nat): Use it.
5738 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5739 (_initialize_i386_linux_nat): Use it.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5744 * target.c (target_teardown_btrace): Add argument.
5745 * remote.c (remote_teardown_btrace): Add 'self' argument.
5746 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5748 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5754 * target.c (target_disable_btrace): Add argument.
5755 * remote.c (remote_disable_btrace): Add 'self' argument.
5756 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5758 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5761 2014-02-19 Tom Tromey <tromey@redhat.com>
5763 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5764 * target.c (target_enable_btrace): Add argument.
5765 * remote.c (remote_enable_btrace): Add 'self' argument.
5766 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5768 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5774 (target_can_use_agent): Add argument.
5775 * target.c (update_current_target): Update.
5776 * remote.c (remote_can_use_agent): Add 'self' argument.
5777 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target.h (struct target_ops) <to_use_agent>: Add argument.
5782 (target_use_agent): Add argument.
5783 * target.c (update_current_target): Update.
5784 * remote.c (remote_use_agent): Add 'self' argument.
5785 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5790 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5791 (target_traceframe_info): Add argument.
5792 * target.c (update_current_target): Update.
5793 * remote.c (remote_traceframe_info): Add 'self' argument.
5794 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5796 2014-02-19 Tom Tromey <tromey@redhat.com>
5798 * target.h (target_static_tracepoint_markers_by_strid): Add
5800 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5802 * target.c (update_current_target): Update.
5803 * remote.c (struct target_ops)
5804 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5805 * linux-nat.c (struct target_ops)
5806 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5812 (target_static_tracepoint_marker_at): Add argument.
5813 * target.c (update_current_target): Update.
5814 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5817 2014-02-19 Tom Tromey <tromey@redhat.com>
5819 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5820 (target_set_permissions): Add argument.
5821 * target.c (update_current_target): Update.
5822 * remote.c (remote_set_permissions): Add 'self' argument.
5823 (remote_start_remote): Update.
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5828 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5829 (target_get_tib_address): Add argument.
5830 * target.c (update_current_target): Update.
5831 * remote.c (remote_get_tib_address): Add 'self' argument.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5836 (target_set_trace_notes): Add argument.
5837 * target.c (update_current_target): Update.
5838 * remote.c (remote_set_trace_notes): Add 'self' argument.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5844 (target_set_trace_buffer_size): Add argument.
5845 * target.c (update_current_target): Update.
5846 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5852 (target_set_circular_trace_buffer): Add argument.
5853 * target.c (update_current_target): Update.
5854 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5861 (target_set_disconnected_tracing): Add argument.
5862 * target.c (update_current_target): Update.
5863 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops)
5868 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5869 (target_get_min_fast_tracepoint_insn_len): Add argument.
5870 * target.c (update_current_target): Update.
5871 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5878 (target_get_raw_trace_data): Add argument.
5879 * target.c (update_current_target): Update.
5880 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5886 (target_upload_trace_state_variables): Add argument.
5887 * target.c (update_current_target): Update.
5888 * remote.c (remote_upload_trace_state_variables): Add 'self'
5890 (remote_start_remote): Update.
5892 2014-02-19 Tom Tromey <tromey@redhat.com>
5894 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5896 (target_upload_tracepoints): Add argument.
5897 * target.c (update_current_target): Update.
5898 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5899 (remote_start_remote): Update.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5904 (target_save_trace_data): Add argument.
5905 * target.c (update_current_target): Update.
5906 * remote.c (remote_save_trace_data): Add 'self' argument.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5912 * target.h (struct target_ops)
5913 <to_get_trace_state_variable_value>: Add argument.
5914 (target_get_trace_state_variable_value): Add argument.
5915 * target.c (update_current_target): Update.
5916 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5918 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5923 * target.h (struct target_ops) <to_trace_find>: Add argument.
5924 (target_trace_find): Add argument.
5925 * target.c (update_current_target): Update.
5926 * remote.c (remote_trace_find): Add 'self' argument.
5927 * ctf.c (ctf_trace_find): Add 'self' argument.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5932 (target_trace_stop): Add argument.
5933 * target.c (update_current_target): Update.
5934 * remote.c (remote_trace_stop): Add 'self' argument.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5939 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5941 (target_get_tracepoint_status): Add argument.
5942 * target.c (update_current_target): Update.
5943 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5945 2014-02-19 Tom Tromey <tromey@redhat.com>
5947 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5948 * target.h (struct target_ops) <to_get_trace_status>: Add
5950 (target_get_trace_status): Add argument.
5951 * target.c (update_current_target): Update.
5952 * remote.c (remote_get_trace_status): Add 'self' argument.
5953 (remote_start_remote, remote_can_download_tracepoint): Update.
5954 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target.h (struct target_ops) <to_trace_start>: Add argument.
5959 (target_trace_start): Add argument.
5960 * target.c (update_current_target): Update.
5961 * remote.c (remote_trace_start): Add 'self' argument.
5963 2014-02-19 Tom Tromey <tromey@redhat.com>
5965 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5967 (target_trace_set_readonly_regions): Add argument.
5968 * target.c (update_current_target): Update.
5969 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5976 (target_disable_tracepoint): Add argument.
5977 * target.c (update_current_target): Update.
5978 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5984 (target_enable_tracepoint): Add argument.
5985 * target.c (update_current_target): Update.
5986 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5988 2014-02-19 Tom Tromey <tromey@redhat.com>
5990 * target.h (struct target_ops) <to_download_trace_state_variable>:
5992 (target_download_trace_state_variable): Add argument.
5993 * target.c (update_current_target): Update.
5994 * remote.c (remote_download_trace_state_variable): Add 'self'
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6001 (target_can_download_tracepoint): Add argument.
6002 * target.c (update_current_target): Update.
6003 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6005 2014-02-19 Tom Tromey <tromey@redhat.com>
6007 * target.h (struct target_ops) <to_download_tracepoint>: Add
6009 (target_download_tracepoint): Add argument.
6010 * target.c (update_current_target): Update.
6011 * remote.c (remote_download_tracepoint): Add 'self' argument.
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6015 * target.h (struct target_ops) <to_trace_init>: Add argument.
6016 (target_trace_init): Add argument.
6017 * target.c (update_current_target): Update.
6018 * remote.c (remote_trace_init): Add 'self' argument.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6023 * target.c (target_fileio_readlink): Add argument.
6024 * remote.c (remote_hostio_readlink): Add 'self' argument.
6025 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6030 * target.c (target_fileio_unlink): Add argument.
6031 * remote.c (remote_hostio_unlink): Add 'self' argument.
6032 (remote_file_delete): Update.
6033 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6038 * target.c (target_fileio_close): Add argument.
6039 * remote.c (remote_hostio_close): Add 'self' argument.
6040 (remote_hostio_close_cleanup): Update.
6041 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6043 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6045 2014-02-19 Tom Tromey <tromey@redhat.com>
6047 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6048 * target.c (target_fileio_pread): Add argument.
6049 * remote.c (remote_hostio_pread): Add 'self' argument.
6050 (remote_bfd_iovec_pread, remote_file_get): Update.
6051 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6056 * target.c (target_fileio_pwrite): Add argument.
6057 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6058 (remote_file_put): Update.
6059 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6064 * target.c (target_fileio_open): Add argument.
6065 * remote.c (remote_hostio_open): Add 'self' argument.
6066 (remote_bfd_iovec_open): Add 'self' argument.
6067 (remote_file_put): Add 'self' argument.
6068 (remote_file_get): Add 'self' argument.
6069 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6075 (target_can_run_breakpoint_commands): Add argument.
6076 * target.c (update_current_target): Update.
6077 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6079 (remote_insert_breakpoint): Add 'self' argument.
6080 (remote_insert_hw_breakpoint): Add 'self' argument.
6081 (remote_can_run_breakpoint_commands): Add 'self' argument.
6083 2014-02-19 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops)
6086 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6087 (target_supports_evaluation_of_breakpoint_conditions): Add
6089 * target.c (update_current_target): Update.
6090 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6092 (remote_insert_breakpoint): Add 'self' argument.
6093 (remote_insert_hw_breakpoint): Add 'self' argument.
6094 (remote_supports_cond_breakpoints): Add 'self' argument.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6100 (target_supports_string_tracing): Add argument.
6101 * target.c (update_current_target): Update.
6102 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6104 2014-02-19 Tom Tromey <tromey@redhat.com>
6106 * target.h (struct target_ops)
6107 <to_supports_disable_randomization>: Add argument.
6108 * target.c (find_default_supports_disable_randomization): Add
6110 (target_supports_disable_randomization): Add argument.
6111 (find_default_supports_disable_randomization): Add 'self'
6113 * remote.c (extended_remote_supports_disable_randomization): Add
6115 (remote_supports_disable_randomization): Add 'self' argument.
6116 (extended_remote_create_inferior): Update.
6117 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target.h (struct target_ops)
6123 <to_supports_enable_disable_tracepoint>: Add argument.
6124 (target_supports_enable_disable_tracepoint): Add argument.
6125 * target.c (update_current_target): Update.
6126 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6129 2014-02-19 Tom Tromey <tromey@redhat.com>
6131 * target.h (struct target_ops) <to_supports_multi_process>: Add
6133 (target_supports_multi_process): Add argument.
6134 * target.c (update_current_target): Update.
6135 * remote.c (remote_supports_multi_process): Add 'self' argument.
6136 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6138 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6141 2014-02-19 Tom Tromey <tromey@redhat.com>
6143 * target.h (struct target_ops) <to_execution_direction>: Add
6145 (target_execution_direction): Add argument.
6146 * target.c (default_execution_direction): Add 'self' argument.
6147 * record-full.c (record_full_execution_direction): Add 'self'
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6154 (target_can_execute_reverse): Add argument.
6155 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6156 * record-full.c (record_full_can_execute_reverse): Add 'self'
6158 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6164 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6166 (target_get_ada_task_ptid): Add argument.
6167 * target.c (update_current_target): Update.
6168 (default_get_ada_task_ptid): Add 'self' argument.
6169 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6170 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6171 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6173 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6175 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6177 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6179 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6180 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6186 (target_goto_bookmark): Add argument.
6187 * target.c (dummy_goto_bookmark): Add 'self' argument.
6188 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6193 (target_get_bookmark): Add argument.
6194 * target.c (dummy_get_bookmark): Add 'self' argument.
6195 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6201 (target_make_corefile_notes): Add argument.
6202 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6203 * procfs.c (procfs_make_note_section): Add 'self' argument.
6204 (procfs_make_note_section): Add 'self' argument.
6205 (procfs_make_note_section): Add 'self' argument.
6206 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6208 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6209 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6210 * exec.c (exec_make_note_section): Add 'self' argument.
6211 (exec_make_note_section): Add 'self' argument.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target.h (struct target_ops) <to_find_memory_regions>: Add
6217 (target_find_memory_regions): Add argument.
6218 * target.c (dummy_find_memory_regions): Add 'self' argument.
6219 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6220 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6221 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6222 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6223 * exec. (exec_do_find_memory_regions): New global.
6224 (exec_set_find_memory_regions): Rewrite.
6225 (exec_find_memory_regions): New function.
6226 (init_exec_ops): Use exec_find_memory_regions.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops) <to_supports_non_stop>: Add
6232 * target.c (find_default_supports_non_stop): Add argument.
6233 (target_supports_non_stop): Add argument.
6234 (find_default_supports_non_stop): Add 'self' argument.
6235 * remote.c (remote_supports_non_stop): Add 'self' argument.
6236 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * target.h (struct target_ops) <to_log_command>: Add argument.
6241 (target_log_command): Add argument.
6242 * serial.h (serial_log_command): Add 'self' argument.
6243 * serial.c (serial_log_command): Add 'self' argument.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6248 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6250 (target_pid_to_exec_file): Add argument.
6251 * target.c (debug_to_pid_to_exec_file): Add argument.
6252 (update_current_target): Update.
6253 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6254 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6255 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6256 (linux_handle_extended_wait): Update.
6257 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6258 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6259 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6260 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target.h (struct target_ops) <to_rcmd>: Add argument.
6265 (target_rcmd): Add argument.
6266 * target.c (debug_to_rcmd): Add argument.
6267 (update_current_target, do_monitor_command): Update.
6268 * remote.c (remote_rcmd): Add 'self' argument.
6269 * monitor.c (monitor_rcmd): Add 'self' argument.
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * windows-nat.c (windows_stop): Add 'self' argument.
6274 * target.h (struct target_ops) <to_stop>: Add argument.
6275 * target.c (target_stop): Add argument.
6276 (debug_to_stop): Add argument.
6277 (update_current_target): Update.
6278 * remote.c (remote_stop): Add 'self' argument.
6279 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6280 (gdbsim_cntrl_c): Update.
6281 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6282 * procfs.c (procfs_stop): Add 'self' argument.
6283 * nto-procfs.c (procfs_stop): Add 'self' argument.
6284 * monitor.c (monitor_stop): Add 'self' argument.
6285 (monitor_open): Update.
6286 * linux-nat.c (linux_nat_stop): Add argument.
6287 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6288 * gnu-nat.c (gnu_stop): Add 'self' argument.
6289 * darwin-nat.c (darwin_stop): Add 'self' argument.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target.h (struct target_ops) <to_thread_name>: Add argument.
6294 * target.c (target_thread_name): Add argument.
6295 (update_current_target): Update.
6296 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target.h (struct target_ops) <to_extra_thread_info>: Add
6302 (target_extra_thread_info): Add argument.
6303 * target.c (update_current_target): Update.
6304 * remote.c (remote_threads_extra_info): Add 'self' argument.
6305 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6307 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6308 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6309 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6311 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6313 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6315 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.h (struct target_ops) <to_program_signals>: Add argument.
6321 * target.c (target_program_signals): Add argument.
6322 * remote.c (remote_program_signals): Add 'self' argument.
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6327 * target.c (target_pass_signals): Add argument.
6328 * remote.c (remote_pass_signals): Add 'self' argument.
6329 (remote_start_remote): Update.
6330 * procfs.c (procfs_pass_signals): Add 'self' argument.
6331 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6332 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6333 (linux_nat_create_inferior, linux_nat_attach): Update.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * windows-nat.c (windows_can_run): Add 'self' argument.
6338 * target.h (struct target_ops) <to_can_run>: Add argument.
6339 (target_can_run): Add argument.
6340 * target.c (debug_to_can_run): Add argument.
6341 (update_current_target): Update.
6342 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6343 * inf-child.c (inf_child_can_run): Add 'self' argument.
6344 * go32-nat.c (go32_can_run): Add 'self' argument.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target.h (struct target_ops) <to_has_exited>: Add argument.
6349 (target_has_exited): Add argument.
6350 * target.c (debug_to_has_exited): Add argument.
6351 (update_current_target): Update.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6357 (target_set_syscall_catchpoint): Add argument.
6358 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6360 * target.c (update_current_target): Update.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6366 (target_remove_exec_catchpoint): Add argument.
6367 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6368 (update_current_target): Update.
6369 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6376 (target_insert_exec_catchpoint): Add argument.
6377 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6378 (update_current_target): Update.
6379 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6386 (target_remove_vfork_catchpoint): Add argument.
6387 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6388 (update_current_target): Update.
6389 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6396 (target_insert_vfork_catchpoint): Add argument.
6397 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6398 (update_current_target): Update.
6399 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6406 (target_remove_fork_catchpoint): Add argument.
6407 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6408 (update_current_target): Update.
6409 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6416 (target_insert_fork_catchpoint): Add argument.
6417 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6418 (update_current_target): Update.
6419 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6426 (target_post_startup_inferior): Add argument.
6427 * target.c (debug_to_post_startup_inferior): Add argument.
6428 (update_current_target): Update.
6429 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6431 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6433 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6435 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6437 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6439 (super_post_startup_inferior): Likewise.
6440 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6442 (super_post_startup_inferior): Likewise.
6443 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6444 Add 'self' argument.
6445 (super_post_startup_inferior): Likewise.
6447 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target.h (struct target_ops) <to_load>: Add argument.
6450 * target.c (target_load): Add argument.
6451 (debug_to_load): Add argument.
6452 (update_current_target): Update.
6453 * remote.c (remote_load): Add 'self' argument.
6454 * remote-sim.c (gdbsim_load): Add 'self' argument.
6455 * remote-mips.c (mips_load): Add 'self' argument.
6456 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6457 * monitor.c (monitor_load): Add 'self' argument.
6458 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6463 (target_terminal_info): Add argument.
6464 * target.c (debug_to_terminal_info): Add argument.
6465 (default_terminal_info): Likewise.
6466 * inflow.c (child_terminal_info): Add 'self' argument.
6467 * inferior.h (child_terminal_info): Add 'self' argument.
6468 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6470 2014-02-19 Tom Tromey <tromey@redhat.com>
6472 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6474 (target_terminal_save_ours): Add argument.
6475 * target.c (debug_to_terminal_save_ours): Add argument.
6476 (update_current_target): Update.
6477 * inflow.c (terminal_save_ours): Add 'self' argument.
6478 * inferior.h (terminal_save_ours): Add 'self' argument.
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6483 (target_terminal_ours): Add argument.
6484 * target.c (debug_to_terminal_ours): Add argument.
6485 (update_current_target): Update.
6486 * remote.c (remote_terminal_ours): Add 'self' argument.
6487 (remote_close): Update.
6488 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6489 * inflow.c (terminal_ours): Add 'self' argument.
6490 * inferior.h (terminal_ours): Add 'self' argument.
6491 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6493 2014-02-19 Pedro Alves <palves@redhat.com>
6494 Tom Tromey <tromey@redhat.com>
6496 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6498 (target_terminal_ours_for_output): Add argument.
6499 * target.c (debug_to_terminal_ours_for_output): Add argument.
6500 (update_current_target): Update.
6501 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6502 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6503 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6505 2014-02-19 Tom Tromey <tromey@redhat.com>
6507 * target.h (struct target_ops) <to_terminal_inferior>: Add
6509 * target.c (target_terminal_inferior): Add argument.
6510 (update_current_target): Update.
6511 * remote.c (remote_terminal_inferior): Add 'self' argument.
6512 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6513 * inflow.c (terminal_inferior): Add 'self' argument.
6514 * inferior.h (terminal_inferior): Add 'self' argument.
6515 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6516 (go32_terminal_inferior): Add 'self' argument.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6521 (target_terminal_init): Add argument.
6522 * target.c (debug_to_terminal_init): Add argument.
6523 (update_current_target): Update.
6524 * inflow.c (terminal_init_inferior): Add 'self' argument.
6525 * inferior.h (terminal_init_inferior): Add 'self' argument.
6526 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6527 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6529 2014-02-19 Tom Tromey <tromey@redhat.com>
6531 * target.h (struct target_ops)
6532 <to_can_accel_watchpoint_condition>: Add argument.
6533 (target_can_accel_watchpoint_condition): Add argument.
6534 * target.c (debug_to_can_accel_watchpoint_condition): Add
6536 (update_current_target): Update.
6537 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6544 (target_region_ok_for_hw_watchpoint): Add argument.
6545 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6546 (default_region_ok_for_hw_watchpoint): Add argument.
6547 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6548 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6550 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6552 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6554 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6556 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6558 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6560 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6561 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6563 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6564 Add 'self' argument.
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6570 (target_insert_watchpoint): Add argument.
6571 * target.c (debug_to_insert_watchpoint): Add argument.
6572 (update_current_target): Update.
6573 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6574 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6575 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6576 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6577 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6578 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6580 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6581 (procfs_insert_hw_watchpoint): Add 'self' argument.
6582 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6584 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6586 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6588 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6589 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6591 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6598 (target_remove_watchpoint): Add argument.
6599 * target.c (debug_to_remove_watchpoint): Add argument.
6600 (update_current_target): Update.
6601 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6602 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6603 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6604 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6605 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6606 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6608 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6609 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6611 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6613 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6615 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6616 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6618 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6621 2014-02-19 Tom Tromey <tromey@redhat.com>
6623 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6625 (target_remove_hw_breakpoint): Add argument.
6626 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6627 (update_current_target): Update.
6628 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6629 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6631 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6632 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6634 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6637 2014-02-19 Tom Tromey <tromey@redhat.com>
6639 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6641 (target_insert_hw_breakpoint): Add argument.
6642 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6643 (update_current_target): Update.
6644 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6645 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6647 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6648 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6649 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6651 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6658 (target_can_use_hardware_watchpoint): Add argument.
6659 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6660 (update_current_target): Update.
6661 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6663 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6665 * remote.c (remote_check_watch_resources): Add 'self' argument.
6666 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6667 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6669 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6670 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6672 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6674 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6676 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6678 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6680 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6682 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6683 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6685 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6688 2014-02-19 Tom Tromey <tromey@redhat.com>
6690 * target.h (struct target_ops) <to_post_attach>: Add argument.
6691 (target_post_attach): Add argument.
6692 * target.c (debug_to_post_attach): Add argument.
6693 (update_current_target): Update.
6694 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6695 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6696 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6697 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6698 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * windows-nat.c (windows_close): Add 'self' argument.
6703 * tracepoint.c (tfile_close): Add 'self' argument.
6704 * target.h (struct target_ops) <to_close>: Add argument.
6705 * target.c (target_close): Add argument.
6706 (update_current_target): Update.
6707 * remote.c (remote_close): Add 'self' argument.
6708 * remote-sim.c (gdbsim_close): Add 'self' argument.
6709 * remote-mips.c (mips_close): Add 'self' argument.
6710 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6711 * record-full.c (record_full_close): Add 'self' argument.
6712 * record-btrace.c (record_btrace_close): Add 'self' argument.
6713 * monitor.h (monitor_close): Add 'self' argument.
6714 * monitor.c (monitor_close): Add 'self' argument.
6715 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6716 * linux-nat.c (linux_nat_close): Add argument.
6717 * go32-nat.c (go32_close): Add 'self' argument.
6718 * exec.c (exec_close_1): Add 'self' argument.
6719 * ctf.c (ctf_close): Add 'self' argument.
6720 * corelow.c (core_close): Add 'self' argument.
6721 (core_close_cleanup): Update.
6722 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6723 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6725 2014-02-19 Tom Tromey <tromey@redhat.com>
6727 * remote.c (remote_load): New function.
6728 (init_remote_ops): Use it.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6734 * common/linux-btrace.h (linux_supports_btrace): Update.
6735 * remote.c (remote_supports_btrace): Add "self" argument.
6736 * target-delegates.c: Rebuild.
6737 * target.c (target_supports_btrace): Remove.
6738 * target.h (struct target_ops) <to_supports_btrace>: Add
6739 target_ops argument.
6740 (target_supports_btrace): New define.
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * record-full.c (record_full_beneath_to_resume_ops)
6745 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6746 (record_full_beneath_to_wait)
6747 (record_full_beneath_to_store_registers_ops)
6748 (record_full_beneath_to_store_registers)
6749 (record_full_beneath_to_xfer_partial_ops)
6750 (record_full_beneath_to_xfer_partial)
6751 (record_full_beneath_to_insert_breakpoint_ops)
6752 (record_full_beneath_to_insert_breakpoint)
6753 (record_full_beneath_to_remove_breakpoint_ops)
6754 (record_full_beneath_to_remove_breakpoint)
6755 (record_full_beneath_to_stopped_by_watchpoint)
6756 (record_full_beneath_to_stopped_data_address)
6757 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6758 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6759 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6760 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6761 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6762 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6763 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6764 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6765 (record_full_resume, record_full_wait_1)
6766 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6767 (record_full_store_registers, record_full_xfer_partial)
6768 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6769 (record_full_async, record_full_core_xfer_partial): Use target
6771 * target-delegates.c: Rebuild.
6772 * target.c (current_xfer_partial): Remove.
6773 (update_current_target): Do not INHERIT or de_fault
6774 to_insert_breakpoint, to_remove_breakpoint,
6775 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6776 to_is_async_p, to_async. Do not set to_xfer_partial field.
6777 (default_xfer_partial): Simplify.
6778 (current_xfer_partial): Remove.
6779 (target_wait, target_resume): Simplify.
6780 (find_default_can_async_p, find_default_is_async_p): Update.
6781 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6782 to_xfer_partial, to_stopped_by_watchpoint,
6783 to_stopped_data_address.
6784 (target_store_registers): Simplify.
6785 (forward_target_remove_breakpoint)
6786 (forward_target_insert_breakpoint): Remove.
6787 (target_remove_breakpoint, target_insert_breakpoint)
6788 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6789 * target.h (struct target_ops) <to_resume, to_wait,
6790 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6791 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6792 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6794 (forward_target_remove_breakpoint)
6795 (forward_target_insert_breakpoint): Remove.
6796 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6798 (record_btrace_insert_breakpoint): Delegate directly.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6803 * target-delegates.c: New file.
6804 * target.c: Include target-delegates.c.
6805 (init_dummy_target): Call install_dummy_methods.
6806 (complete_target_initialization): Call install_delegators.
6807 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6808 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6809 * make-target-delegates: New file.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * record.c (find_record_target): Use find_target_at.
6814 * target.c (find_target_at): New function.
6815 * target.h (find_target_at): Declare.
6817 2014-02-19 Tom Tromey <tromey@redhat.com>
6819 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6821 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6823 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6824 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6826 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6828 * linux-nat.c (save_sigtrap): Update.
6829 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6830 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6831 (linux_nat_close): Update.
6832 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6834 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6836 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6837 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6838 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6839 (tmp_to_async): Add 'ops' argument.
6840 (record_full_stopped_by_watchpoint, record_full_async)
6841 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6843 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6844 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6845 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6846 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6847 (remote_is_async_p, remote_async): Add 'ops' argument.
6848 (remote_stopped_data_address): Update.
6849 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6850 * target.c (update_current_target)
6851 (find_default_can_async_p, find_default_is_async_p): Update.
6852 (init_dummy_target): Update.
6853 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6854 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6855 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6856 (target_can_async_p, target_is_async_p, target_async)
6857 (target_stopped_by_watchpoint): Update.
6859 2014-02-19 Yao Qi <yao@codesourcery.com>
6862 * gdbarch.sh: Remove startup_gdbarch.
6863 * gdbarch.c: Regenerated.
6864 * gdbarch.h: Likewise.
6866 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6868 * rl78-tdep.c (rl78_g10_register_name): New function.
6869 (rl78_return_value): Add g10 support.
6870 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6873 2014-02-17 Doug Evans <xdje42@gmail.com>
6875 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6876 (SUBDIR_GUILE_SRCS): Ditto.
6877 (scm-gsmob.o): Ditto.
6879 2014-02-17 Yao Qi <yao@codesourcery.com>
6881 * gnu-nat.c (ILL_RPC): Declare defined function.
6883 2014-02-17 Yao Qi <yao@codesourcery.com>
6885 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6886 mach_msg_type_number_t.
6887 (gnu_write_inferior): Likewise.
6889 2014-02-17 Yao Qi <yao@codesourcery.com>
6891 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6893 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6894 (inf_validate_procs, inf_signal): Likewise.
6895 (S_exception_raise_request): Likewise.
6896 (do_mach_notify_dead_name): Likewise.
6897 (steal_exc_port): Likewise.
6898 (gnu_read_inferior): Change 'copy_count''s type to
6899 mach_msg_type_number_t.
6900 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6903 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6905 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6906 flag. Adjust all users; in particular...
6907 (gnu_wait): ..., don't decrement its value in here...
6908 (gnu_create_inferior): ..., and instead set the flag in here,
6909 around the startup_inferior call, and call that one with
6910 START_INFERIOR_TRAPS_EXPECTED.
6912 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6913 (ILL_RPC): ... new macro.
6914 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6915 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6916 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6917 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6918 functions with ILL_RPC macro.
6919 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6920 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6921 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6922 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6923 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6924 (S_proc_getlogin_reply, S_proc_getsid_reply)
6925 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6926 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6927 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6928 (S_proc_getnports_reply, S_proc_is_important_reply)
6929 (S_proc_get_code_reply): New stub functions, generated with
6932 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6933 collected the type check structures.
6935 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6937 2014-02-14 Doug Evans <dje@google.com>
6939 * target.c (target_write_partial): Fix result type.
6941 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6943 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6944 the proper offsets to access fpregset_t.
6946 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6948 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6949 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6950 * h8300-tdep.c (setmachinelist): Remove global.
6951 * hppa-tdep.c (hppa_sigtramp): Remove global.
6952 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6953 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6954 * ravenscar-thread.c (update_target_observer): Remove global.
6955 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6957 2014-02-12 Tom Tromey <tromey@redhat.com>
6959 * common/rsp-low.c: Update comments.
6960 * common/rsp-low.h: Update comments.
6962 2014-02-12 Tom Tromey <tromey@redhat.com>
6964 * common/rsp-low.c (convert_ascii_to_int): Remove.
6965 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6967 2014-02-12 Tom Tromey <tromey@redhat.com>
6969 * common/rsp-low.h (unhexify): Don't declare.
6970 * common/rsp-low.c (unhexify): Remove.
6972 2014-02-12 Tom Tromey <tromey@redhat.com>
6974 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6975 * common/rsp-low.c (convert_int_to_ascii): Remove.
6977 2014-02-12 Tom Tromey <tromey@redhat.com>
6979 * common/rsp-low.h (hexify): Don't declare.
6980 * common/rsp-low.c (hexify): Remove.
6982 2014-02-12 Tom Tromey <tromey@redhat.com>
6984 * common/rsp-low.c (hexify): Never take strlen of argument.
6986 2014-02-12 Tom Tromey <tromey@redhat.com>
6988 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6989 * remote.c (extended_remote_run, remote_rcmd)
6990 (remote_download_trace_state_variable, remote_save_trace_data)
6991 (remote_set_trace_notes): Update.
6992 * tracepoint.c (encode_source_string, tfile_write_status)
6993 (tfile_write_uploaded_tsv): Update.
6995 2014-02-12 Tom Tromey <tromey@redhat.com>
6997 * tracepoint.c: Include rsp-low.h.
6998 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6999 * remote.c: Include rsp-low.h.
7000 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7001 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7002 (remote_unescape_input): Move to common/rsp-low.c.
7003 * common/rsp-low.h: New file.
7004 * common/rsp-low.c: New file.
7005 * Makefile.in (SFILES): Add common/rsp-low.c.
7006 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7007 (COMMON_OBS): Add rsp-low.o.
7008 (rsp-low.o): New target.
7010 2014-02-12 Tom Tromey <tromey@redhat.com>
7012 * utils.h: Include print-utils.h.
7013 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7014 (int_string, core_addr_to_string, core_addr_to_string_nz)
7015 (hex_string, hex_string_custom): Don't declare.
7016 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7017 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7018 (hex_string_custom, int_string, core_addr_to_string)
7019 (core_addr_to_string_nz, host_address_to_string): Move to
7020 common/print-utils.c.
7021 * common/print-utils.h: New file.
7022 * common/print-utils.c: New file
7023 * Makefile.in (SFILES): Add common/print-utils.c.
7024 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7025 (COMMON_OBS): Add print-utils.o.
7026 (print-utils.o): New target.
7028 2014-02-12 Tom Tromey <tromey@redhat.com>
7030 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7032 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7034 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7036 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7038 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7039 if a PT_IO ptrace request returns sucessfully but indicates that 0
7040 bytes were transferred.
7042 2014-02-12 Pedro Alves <palves@redhat.com>
7043 Kevin Buettner <kevinb@redhat.com>
7045 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7046 TYPE_INSTANCE_FLAG_CODE_SPACE.
7048 2014-02-12 Pedro Alves <palves@redhat.com>
7050 * h8300-tdep.c (pseudo_from_raw_register)
7051 (raw_from_pseudo_register): New functions.
7052 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7055 2014-02-12 Pedro Alves <palves@redhat.com>
7057 * h8300-tdep.c (h8300_register_sim_regno): New function.
7058 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7059 gdbarch_register_sim_regno hook.
7061 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7063 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7065 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7067 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7069 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7071 * obsd-tdep.h (obsd_init_abi): New prototype.
7072 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7073 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7074 (obsd_init_abi): New functions.
7075 * i386obsd-tdep.c: Include "obsd-tdep.h".
7076 (i386obsd_init_abi): Call obsd_init_abi.
7077 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7078 (amd64obsd_init_abi): Call obsd_init_abi.
7079 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7080 obsd-tdep.c to gdb_target_obs.
7082 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7084 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7085 double float arguments to 16-byte in the argument slots.
7087 2014-02-11 Doug Evans <xdje42@gmail.com>
7089 * configure.ac: Don't crash if pkg-config is not found and guile
7090 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7092 * configure: Regenerate.
7094 2014-02-11 Yao Qi <yao@codesourcery.com>
7096 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7097 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7098 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7099 * gnu-nat.c (gnu_xfer_memory): Likewise.
7100 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7101 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7102 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7103 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7105 2014-02-11 Yao Qi <yao@codesourcery.com>
7107 * target.h (enum target_xfer_error): Rename to ...
7108 (enum target_xfer_status): ... it. New. All users updated.
7109 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7111 (TARGET_XFER_STATUS_ERROR_P): New macro.
7112 (target_xfer_error_to_string): Remove declaration.
7113 (target_xfer_status_to_string): Declare.
7114 (target_xfer_partial_ftype): Adjust it.
7115 (struct target_ops) <to_xfer_partial>: Return
7116 target_xfer_status. Add argument xfered_len. Update
7118 * target.c (target_xfer_error_to_string): Rename to ...
7119 (target_xfer_status_to_string): ... it. New. All callers
7121 (target_read_live_memory): Likewise. Call target_xfer_partial
7122 instead of target_read.
7123 (memory_xfer_live_readonly_partial): Return
7124 target_xfer_status. Add argument xfered_len.
7125 (raw_memory_xfer_partial): Likewise.
7126 (memory_xfer_partial_1): Likewise.
7127 (memory_xfer_partial): Likewise.
7128 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7129 properly. Update debug message.
7130 (default_xfer_partial, current_xfer_partial): Likewise.
7131 (target_write_partial): Likewise.
7132 (target_read_partial): Likewise. All callers updated.
7133 (read_whatever_is_readable): Likewise.
7134 (target_write_with_progress): Likewise.
7135 (target_read_alloc_1): Likewise.
7137 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7138 * auxv.c (procfs_xfer_auxv): Likewise.
7139 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7140 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7141 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7142 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7143 * corefile.c (read_memory): Adjust.
7144 * corelow.c (core_xfer_partial): Likewise.
7145 * ctf.c (ctf_xfer_partial): Likewise.
7146 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7148 (darwin_xfer_partial): Likewise.
7149 * exec.c (section_table_xfer_memory_partial): Likewise. All
7151 (exec_xfer_partial): Likewise.
7152 * exec.h (section_table_xfer_memory_partial): Update
7154 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7156 (gnu_xfer_partial): Likewise.
7157 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7158 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7159 (ia64_hpux_xfer_solib_got): Likewise.
7160 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7161 type of 'partial_len' to ULONGEST.
7162 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7163 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7164 (linux_nat_xfer_partial): Likewise.
7165 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7166 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7167 * monitor.c (monitor_xfer_memory): Likewise.
7168 (monitor_xfer_partial): Likewise.
7169 * procfs.c (procfs_xfer_partial): Likewise.
7170 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7171 * record-full.c (record_full_xfer_partial): Likewise.
7172 (record_full_core_xfer_partial): Likewise.
7173 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7174 (gdbsim_xfer_partial): Likewise.
7175 * remote.c (remote_write_bytes_aux): Likewise. All callers
7177 (remote_write_bytes, remote_read_bytes): Likewise. All
7179 (remote_flash_erase): Likewise. All callers updated.
7180 (remote_write_qxfer): Likewise. All callers updated.
7181 (remote_read_qxfer): Likewise. All callers updated.
7182 (remote_xfer_partial): Likewise.
7183 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7184 (rs6000_xfer_shared_libraries): Likewise.
7185 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7186 (sol_thread_xfer_partial): Likewise.
7187 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7188 (sparc_xfer_partial): Likewise.
7189 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7191 (spu_xfer_partial): Likewise.
7192 * spu-multiarch.c (spu_xfer_partial): Likewise.
7193 * tracepoint.c (tfile_xfer_partial): Likewise.
7194 * windows-nat.c (windows_xfer_memory): Likewise.
7195 (windows_xfer_shared_libraries): Likewise.
7196 (windows_xfer_partial): Likewise.
7197 * valprint.c: Replace 'target_xfer_error' with
7198 'target_xfer_status' in comments.
7200 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7202 Checked in by Joel Brobecker <brobecker@adacore.com>.
7203 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7205 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7207 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7208 function parameters.
7210 2014-02-10 Will Newton <will.newton@linaro.org>
7212 * elfread.c (elf_rel_plt_read): Look for a .got section if
7213 looking up .got.plt fails.
7214 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7215 on address passed to elf_gnu_ifunc_record_cache.
7216 (elf_gnu_ifunc_resolve_addr): Likewise.
7217 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7219 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7221 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7222 (X_RETTURN): New macro.
7223 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7225 * sparc64-tdep.c (sparc64_init_abi): Hook
7226 sparc_in_function_epilogue_p.
7228 2014-02-10 Gary Benson <gbenson@redhat.com>
7230 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7231 Rename name_matcher to symbol_matcher.
7233 2014-02-10 Gary Benson <gbenson@redhat.com>
7235 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7236 Use expand_symtabs_file_matcher_ftype and
7237 expand_symtabs_symbol_matcher_ftype.
7239 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7241 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7242 (struct ada_symbol_cache): New.
7243 (ada_free_symbol_cache): Forward declare.
7244 (struct ada_pspace_data): New.
7245 (ada_pspace_data_handle): New static global.
7246 (get_ada_pspace_data, ada_pspace_data_cleanup)
7247 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7248 (cache_space, cache): Delete, now folded inside struct
7250 (ada_get_symbol_cache): New function.
7251 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7253 (_initialize_ada_language): Remove initialization of cache_space.
7254 Move call to observer_attach_inferior_exit up, grouping it
7255 with the other observer registrations inside this function.
7256 Rename command to be more general. Add call to
7257 register_program_space_data_with_cleanup.
7259 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7261 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7262 ada_new_objfile_observer.
7263 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7264 (_initialize_tasks): Update uses of ada_new_objfile_observer
7265 and ada_tasks_normal_stop_observer.
7267 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7269 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7270 returned by the 'Length attribute to integer.
7272 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7274 * ada-lang.c (_initialize_ada_language): Initialize
7275 cache_space obstack.
7277 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7279 * ada-lang.c (HASH_SIZE): New macro.
7280 (struct cache_entry): New type.
7281 (cache_space, cache): New static globals.
7282 (ada_clear_symbol_cache, find_entry): New functions.
7283 (lookup_cached_symbol, cache_symbol): Implement.
7284 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7285 (_initialize_ada_language): Attach ada_new_objfile_observer
7286 and ada_free_objfile_observer.
7288 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7290 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7291 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7292 struct block * parameter.
7293 (ada_lookup_symbol_list_worker): Constify local variable "block".
7294 Remove cast which is no longer necessary.
7296 2014-02-10 Doug Evans <xdje42@gmail.com>
7298 Add Guile as an extension language.
7299 * NEWS: Mention Guile scripting.
7300 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7301 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7302 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7303 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7304 (CLIBS): Add GUILE_LIBS.
7305 (install-guile): New rule.
7306 (guile.o): New rule.
7307 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7308 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7309 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7310 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7311 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7312 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7313 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7314 * configure.ac: New option --with-guile.
7315 * configure: Regenerate.
7316 * config.in: Regenerate.
7317 * auto-load.c: Remove #include "python/python.h". Add #include
7318 "gdb/section-scripts.h".
7319 (source_section_scripts): Handle Guile scripts.
7320 (_initialize_auto_load): Add name of Guile objfile script to
7321 scripts-directory help text.
7322 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7323 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7324 (struct breakpoint): New member scm_bp_object.
7325 * defs.h (enum command_control_type): New value guile_control.
7326 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7328 (show_user): Update comment.
7329 (_initialize_cli_cmds): Update help text for "show user". Update help
7330 text for max-user-call-depth.
7331 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7333 (multi_line_command_p): Add guile_control.
7334 (print_command_lines): Handle guile_control.
7335 (execute_control_command, recurse_read_control_structure): Ditto.
7336 (process_next_line): Recognize "guile" commands.
7337 * disasm.c (gdb_disassemble_info): Make non-static.
7338 * disasm.h: #include "dis-asm.h".
7339 (struct gdbarch): Add forward decl.
7340 (gdb_disassemble_info): Declare.
7341 * extension.c: #include "guile/guile.h".
7342 (extension_languages): Add guile.
7343 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7344 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7345 * gdbtypes.c (get_unsigned_type_max): New function.
7346 (get_signed_type_minmax): New function.
7347 * gdbtypes.h (get_unsigned_type_max): Declare.
7348 (get_signed_type_minmax): Declare.
7349 * guile/README: New file.
7350 * guile/guile-internal.h: New file.
7351 * guile/guile.c: New file.
7352 * guile/guile.h: New file.
7353 * guile/scm-arch.c: New file.
7354 * guile/scm-auto-load.c: New file.
7355 * guile/scm-block.c: New file.
7356 * guile/scm-breakpoint.c: New file.
7357 * guile/scm-disasm.c: New file.
7358 * guile/scm-exception.c: New file.
7359 * guile/scm-frame.c: New file.
7360 * guile/scm-gsmob.c: New file.
7361 * guile/scm-iterator.c: New file.
7362 * guile/scm-lazy-string.c: New file.
7363 * guile/scm-math.c: New file.
7364 * guile/scm-objfile.c: New file.
7365 * guile/scm-ports.c: New file.
7366 * guile/scm-pretty-print.c: New file.
7367 * guile/scm-safe-call.c: New file.
7368 * guile/scm-string.c: New file.
7369 * guile/scm-symbol.c: New file.
7370 * guile/scm-symtab.c: New file.
7371 * guile/scm-type.c: New file.
7372 * guile/scm-utils.c: New file.
7373 * guile/scm-value.c: New file.
7374 * guile/lib/gdb.scm: New file.
7375 * guile/lib/gdb/boot.scm: New file.
7376 * guile/lib/gdb/experimental.scm: New file.
7377 * guile/lib/gdb/init.scm: New file.
7378 * guile/lib/gdb/iterator.scm: New file.
7379 * guile/lib/gdb/printing.scm: New file.
7380 * guile/lib/gdb/types.scm: New file.
7381 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7382 (VPATH): Add $(GUILE_SRCDIR).
7383 (GUILE_DIR): New variable.
7384 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7385 (all): Add stamp-guile dependency.
7386 (stamp-guile): New rule.
7387 (clean-guile, install-guile, uninstall-guile): New rules.
7388 (install-only): Add install-guile dependency.
7389 (uninstall): Add uninstall-guile dependency.
7390 (clean): Add clean-guile dependency.
7392 2014-02-09 Doug Evans <xdje42@gmail.com>
7394 Revert this patch (which I approved, mea culpa).
7396 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7398 * Makefile.in (all-lib): Remove.
7399 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7401 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7403 Fix Python stack corruption.
7404 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7407 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7409 * Makefile.in (all-lib): Remove.
7410 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7412 2014-02-07 Doug Evans <dje@google.com>
7414 * extension-priv.h (extension_language_script_ops): Add comment.
7415 (extension_language_ops): Add comment.
7416 (active_ext_lang_state): Fix typo in comment.
7418 2014-02-07 Pedro Alves <palves@redhat.com>
7420 PR breakpoints/16292
7421 * infrun.c (handle_signal_stop) <signal arrives while stepping
7422 over a breakpoint>: Switch back to the stepping thread.
7424 2014-02-07 Yao Qi <yao@codesourcery.com>
7426 * target.c (target_xfer_partial): Return zero if LEN is zero.
7428 2014-02-07 Yao Qi <yao@codesourcery.com>
7430 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7431 (ld_so_xfer_auxv): Likewise.
7432 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7433 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7434 * corelow.c (core_xfer_partial): Likewise.
7435 * ctf.c (ctf_xfer_partial): Likewise.
7436 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7437 (darwin_xfer_partial): Likewise.
7438 * exec.c (exec_xfer_partial): Likewise.
7439 * gnu-nat.c (gnu_xfer_partial): Likewise.
7440 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7441 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7442 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7443 * linux-nat.c (linux_xfer_siginfo): Likewise.
7444 (linux_proc_xfer_spu): Likewise.
7445 * procfs.c (procfs_xfer_partial): Likewise.
7446 * record-full.c (record_full_xfer_partial): Likewise.
7447 (record_full_core_xfer_partial): Likewise.
7448 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7449 * remote.c (remote_write_qxfer): Likewise.
7450 (remote_write_qxfer, remote_read_qxfer): Likewise.
7451 (remote_xfer_partial): Likewise.
7452 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7453 (rs6000_xfer_shared_libraries): Likewise.
7454 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7455 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7456 (spu_xfer_partial): Likewise.
7457 * target.c (memory_xfer_partial_1): Likewise.
7458 * tracepoint.c (tfile_xfer_partial): Likewise.
7459 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7460 (windows_xfer_partial): Likewise.
7462 2014-02-07 Yao Qi <yao@codesourcery.com>
7464 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7466 (core_xfer_shared_libraries_aix): Likewise.
7467 * gdbarch.c, gdbarch.h: Regenerated.
7468 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7469 ULONGEST. Change 'len_avail' type to ULONGEST.
7470 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7471 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7473 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7475 2014-02-07 Yao Qi <yao@codesourcery.com>
7477 * corefile.c (memory_error): Get 'exception' from ERR and pass
7478 'exception' to throw_error.
7480 2014-02-06 Doug Evans <xdje42@gmail.com>
7482 * configure.ac (libpython checking): Remove all but python.o from
7483 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7484 * configure: Regenerate.
7486 * Makefile.in (SFILES): Add extension.c.
7487 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7488 (COMMON_OBS): Add extension.o.
7489 * extension.h: New file.
7490 * extension-priv.h: New file.
7491 * extension.c: New file.
7493 * python/python-internal.h: #include "extension.h".
7494 (gdbpy_auto_load_enabled): Declare.
7495 (gdbpy_apply_val_pretty_printer): Declare.
7496 (gdbpy_apply_frame_filter): Declare.
7497 (gdbpy_preserve_values): Declare.
7498 (gdbpy_breakpoint_cond_says_stop): Declare.
7499 (gdbpy_breakpoint_has_cond): Declare.
7500 (void source_python_script_for_objfile): Delete.
7501 * python/python.c: #include "extension-priv.h".
7502 Delete inclusion of "observer.h".
7503 (extension_language_python): Moved here and renamed from
7504 script_language_python in py-auto-load.c.
7505 Redefined to be of type extension_language_defn.
7506 (python_extension_script_ops): New global.
7507 (python_extension_ops): New global.
7508 (struct python_env): New member previous_active.
7509 (restore_python_env): Call restore_active_ext_lang.
7510 (ensure_python_env): Call set_active_ext_lang.
7511 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7513 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7515 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7517 (gdbpy_eval_from_control_command): Renamed from
7518 eval_python_from_control_command, made static. New arg extlang.
7519 (gdbpy_source_script) Renamed from source_python_script, made static.
7521 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7522 result to int. New arg extlang.
7523 (gdbpy_source_objfile_script): Renamed from
7524 source_python_script_for_objfile, made static. New arg extlang.
7525 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7526 static. New args extlang, extlang_printers. Change result type to
7528 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7529 static. New arg extlang. Rename arg printers to extlang_printers
7530 and change type to ext_lang_type_printers *.
7531 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7532 static. Replace argument arg with extlang, extlang_printers.
7533 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7534 (!HAVE_PYTHON, source_python_script): Delete.
7535 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7536 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7537 (!HAVE_PYTHON, start_type_printers): Delete.
7538 (!HAVE_PYTHON, apply_type_printers): Delete.
7539 (!HAVE_PYTHON, free_type_printers): Delete.
7540 (_initialize_python): Delete call to observer_attach_before_prompt.
7541 (finalize_python): Set/restore active extension language.
7542 (gdbpy_finish_initialization) Renamed from
7543 finish_python_initialization, made static. New arg extlang.
7544 (gdbpy_initialized): New function.
7545 * python/python.h: #include "extension.h". Delete #include
7546 "value.h", "mi/mi-cmds.h".
7547 (extension_language_python): Declare.
7548 (GDBPY_AUTO_FILE_NAME): Delete.
7549 (enum py_bt_status): Moved to extension.h and renamed to
7551 (enum frame_filter_flags): Moved to extension.h.
7552 (enum py_frame_args): Moved to extension.h and renamed to
7553 ext_lang_frame_args.
7554 (finish_python_initialization): Delete.
7555 (eval_python_from_control_command): Delete.
7556 (source_python_script): Delete.
7557 (apply_val_pretty_printer): Delete.
7558 (apply_frame_filter): Delete.
7559 (preserve_python_values): Delete.
7560 (gdbpy_script_language_defn): Delete.
7561 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7562 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7564 * auto-load.c: #include "extension.h".
7565 (GDB_AUTO_FILE_NAME): Delete.
7566 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7567 (script_language_gdb): Delete, moved to extension.c and renamed to
7568 extension_language_gdb.
7569 (source_gdb_script_for_objfile): Delete.
7570 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7571 (loaded_script): Change type of language member to
7572 struct extension_language_defn *.
7573 (init_loaded_scripts_info): Initialize
7574 unsupported_script_warning_printed.
7575 (maybe_add_script): Make static. Change type of language arg to
7576 struct extension_language_defn *.
7577 (clear_section_scripts): Reset unsupported_script_warning_printed.
7578 (auto_load_objfile_script_1): Rewrite to use extension language API.
7579 (auto_load_objfile_script): Make public. Remove support-compiled-in
7580 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7581 (source_section_scripts): Rewrite to use extension language API.
7582 (load_auto_scripts_for_objfile): Rewrite to use
7583 auto_load_scripts_for_objfile.
7584 (collect_matching_scripts_data): Change type of language member to
7585 struct extension_language_defn *.
7586 (auto_load_info_scripts): Change type of language arg to
7587 struct extension_language_defn *.
7588 (unsupported_script_warning_print): New function.
7589 (script_not_found_warning_print): Make static.
7590 (_initialize_auto_load): Rewrite construction of scripts-directory
7592 * auto-load.h (struct objfile): Add forward decl.
7593 (struct script_language): Delete.
7594 (struct auto_load_pspace_info): Add forward decl.
7595 (struct extension_language_defn): Add forward decl.
7596 (maybe_add_script): Delete.
7597 (auto_load_objfile_script): Declare.
7598 (script_not_found_warning_print): Delete.
7599 (auto_load_info_scripts): Update prototype.
7600 (auto_load_gdb_scripts_enabled): Declare.
7601 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7602 auto_load_python_scripts_enabled and made public.
7603 (script_language_python): Delete, moved to python.c.
7604 (gdbpy_script_language_defn): Delete.
7605 (info_auto_load_python_scripts): Update to use
7606 extension_language_python.
7608 * breakpoint.c (condition_command): Replace call to
7609 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7610 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7611 with call to breakpoint_ext_lang_cond_says_stop.
7612 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7613 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7614 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7615 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7617 (local_setattro): Print name of extension language with existing
7620 * valprint.c (val_print, value_print): Update to call
7621 apply_ext_lang_val_pretty_printer.
7622 * cp-valprint.c (cp_print_value): Update call to
7623 apply_ext_lang_val_pretty_printer.
7624 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7625 (gdbpy_apply_val_pretty_printer): Renamed from
7626 apply_val_pretty_printer. New arg extlang.
7627 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7629 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7630 extension language API.
7631 * cli/cli-script.c (execute_control_command): Update to call
7632 eval_ext_lang_from_control_command.
7634 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7635 enum ext_lang_bt_status values. Update call to
7636 apply_ext_lang_frame_filter.
7637 (mi_cmd_stack_list_locals): Ditto.
7638 (mi_cmd_stack_list_args): Ditto.
7639 (mi_cmd_stack_list_variables): Ditto.
7640 * mi/mi-main.c: Delete #include "python/python-internal.h".
7641 Add #include "extension.h".
7642 (mi_cmd_list_features): Replace reference to python internal variable
7643 gdb_python_initialized with call to ext_lang_initialized_p.
7645 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7646 Update to use enum ext_lang_frame_args. Update to call
7647 apply_ext_lang_frame_filter.
7648 * python/py-framefilter.c (extract_sym): Update to use enum
7650 (extract_value, py_print_type, py_print_value): Ditto.
7651 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7652 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7653 (py_print_frame): Ditto.
7654 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7655 New arg extlang. Update to use enum ext_lang_bt_status.
7657 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7658 finish_python_initialization. Replace with call to
7659 finish_ext_lang_initialization.
7661 * typeprint.c (do_free_global_table): Update to call
7662 free_ext_lang_type_printers.
7663 (create_global_typedef_table): Update to call
7664 start_ext_lang_type_printers.
7665 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7666 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7667 (type_print_options): Change type of global_printers from "void *"
7668 to "struct ext_lang_type_printers *".
7670 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7671 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7672 (gdbpy_preserve_values): Renamed from preserve_python_values.
7674 (!HAVE_PYTHON, preserve_python_values): Delete.
7676 * utils.c (quit_flag): Delete, moved to extension.c.
7677 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7680 * eval.c: Delete #include "python/python.h".
7681 * main.c: Delete #include "python/python.h".
7683 * defs.h: Update comment.
7685 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7689 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7691 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7694 2014-02-05 Yao Qi <yao@codesourcery.com>
7696 * remote.c (remote_pass_signals): Remove local 'buf' and use
7698 (remote_program_signals): Likewise.
7700 2014-02-05 Yao Qi <yao@codesourcery.com>
7702 * ctf.c: Include "inferior.h" and "gdbthread.h".
7703 (CTF_PID): A new macro.
7704 (ctf_open): Call inferior_appeared and add_thread_silent.
7705 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7706 (ctf_thread_alive): New function.
7707 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7709 2014-02-05 Yao Qi <yao@codesourcery.com>
7713 2013-05-24 Yao Qi <yao@codesourcery.com>
7715 * tracepoint.c (TFILE_PID): Remove.
7716 (tfile_open): Don't add thread and inferior.
7717 (tfile_close): Don't set 'inferior_ptid'. Don't call
7718 exit_inferior_silent.
7719 (tfile_thread_alive): Remove.
7720 (init_tfile_ops): Don't set field 'to_thread_alive' of
7723 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7725 * remote.c (remote_start_remote): Call remote_check_symbols even
7726 if only symbol-file (not file) has been given.
7728 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7730 * gdbarch.sh (skip_entrypoint): New callback.
7731 * gdbarch.c, gdbarch.h: Regenerate.
7732 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7733 * infrun.c (fill_in_stop_func): Likewise.
7734 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7735 (ppc_elfv2_elf_make_msymbol_special): New function.
7736 (ppc_elfv2_skip_entrypoint): Likewise.
7737 (ppc_linux_init_abi): Install them for ELFv2.
7739 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7741 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7742 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7743 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7744 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7745 structures returned in GPRs.
7747 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7749 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7750 offset to the stack parameter list for the ELFv2 ABI.
7752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7754 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7755 set_gdbarch_convert_from_func_ptr_addr and
7756 set_gdbarch_elf_make_msymbol_special for ELFv1.
7757 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7758 function descriptors on ELFv1.
7759 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7760 set up r12 at function entry.
7762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7764 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7765 (struct gdbarch_tdep): New member elf_abi.
7767 * rs6000-tdep.c: Include "elf/ppc64.h".
7768 (rs6000_gdbarch_init): Detect ELF ABI version.
7770 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7773 within a register pair holding a DFP 128-bit value on little-endian.
7774 (ppc64_sysv_abi_return_value_base): Likewise.
7775 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7776 (dfp_pseudo_register_write): Likewise.
7778 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7780 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7781 offset on little-endian when passing _Decimal32.
7782 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7784 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7786 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7787 of the overlapped FP register within the VSX register on little-
7789 (efpr_pseudo_register_write): Likewise.
7791 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7793 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7794 offset on little-endian when passing small structures.
7796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7798 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7799 (struct ppc64_sysv_argpos): New data structure.
7800 (ppc64_sysv_abi_push_float): Remove.
7801 (ppc64_sysv_abi_push_val): New function.
7802 (ppc64_sysv_abi_push_integer): Likewise.
7803 (ppc64_sysv_abi_push_freg): Likewise.
7804 (ppc64_sysv_abi_push_vreg): Likewise.
7805 (ppc64_sysv_abi_push_param): Likewise.
7806 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7807 (ppc64_sysv_abi_return_value_base): New function.
7808 (ppc64_sysv_abi_return_value): Refactor to use it.
7810 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7812 * NEWS: Document new target powerpc64le-*-linux*.
7814 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7816 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7817 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7819 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7820 register set used in ELF core dumps. Add floating-point register set.
7822 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7824 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7825 dwarf2_to_gdb[] table using symbolic constants. Adjust
7826 penultimate entry from number representing the PC register
7827 to symbolic constant representing the MDR register. Add
7828 constant for the PC register to the end of the table.
7830 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7832 * bsd-kvm.c: Include <sys/param.h>
7834 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7836 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7838 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7840 * ada-lang.h (clear_ada_sym_cache): Delete.
7842 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7844 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7846 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7848 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7849 the sigreturn register save area only if the syscall is
7852 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7854 * valops.c (value_slice): Minor reformatting.
7856 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7858 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7860 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7862 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7864 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7865 (ada_ignore_descriptive_types_p): New static global.
7866 (find_parallel_type_by_descriptive_type): Return immediately
7867 if ada_ignore_descriptive_types_p is set.
7868 (_initialize_ada_language): Register new commands "maintenance
7869 set ada", "maintenance show ada", "maintenance set ada
7870 ignore-descriptive-types" and "maintenance show ada
7871 ignore-descriptive-types".
7872 * NEWS: Add entry for new "maint ada set/show
7873 ignore-descriptive-types" commands.
7875 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7877 * record-btrace.c (record_btrace_close): Call btrace_teardown
7880 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7882 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7885 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7887 * ada-typeprint (type_is_full_subrange_of_target_type):
7889 (print_range): Add parameter bounds_prefered_p. If not set,
7890 try printing range types using the name of their base type.
7891 (print_range_type): Add parameter bounds_prefered_p.
7892 Use it in call to print_range.
7893 (print_array_type, ada_print_type): Update calls to print_range
7894 and print_range_type.
7896 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7898 * ada-typeprint.c (print_array_type, print_choices, print_range)
7899 (print_range_bound, print_dynamic_range_bound, print_range_type):
7902 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7904 * ada-typeprint.c (print_range): Add missing empty line
7905 after local declaration.
7907 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7909 * ada-valprint.c (print_optional_low_bound): Get index_type's
7910 target type for as long as it is a TYPE_CODE_RANGE.
7912 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7914 * procfs.c (procfs_make_note_section): Remove assertion and
7917 2014-01-24 Yao Qi <yao@codesourcery.com>
7919 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7920 * corelow.c (get_core_siginfo): Likewise.
7922 2014-01-24 Yao Qi <yao@codesourcery.com>
7924 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7925 ULONGEST. Don't check 'len' is negative.
7926 (remote_write_bytes): Change type of 'len' to ULONGEST.
7928 2014-01-23 Tom Tromey <tromey@redhat.com>
7931 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7932 Handle exception from frame.block.
7933 (FrameVars.fetch_frame_locals): Likewise.
7935 2014-01-23 Tom Tromey <tromey@redhat.com>
7938 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7939 on a NULL pointer. Move "goto error" to correct place.
7941 2014-01-23 Tom Tromey <tromey@redhat.com>
7944 * python/py-framefilter.c (apply_frame_filter): Call
7945 ensure_python_env after computing gdbarch.
7947 2014-01-23 Yao Qi <yao@codesourcery.com>
7949 * target.c (raw_memory_xfer_partial): Change argument type
7950 from void * to gdb_byte *.
7951 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7953 2014-01-22 Doug Evans <dje@google.com>
7955 New gdbserver option --debug-format=timestamp.
7958 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7960 * syscalls/s390x-linux.xml: New file.
7961 * syscalls/s390-linux.xml: New file.
7962 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7963 (XML_SYSCALL_FILENAME_S390X): Likewise.
7964 (op_svc): New enum value for SVC opcode.
7965 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7966 (s390_linux_get_syscall_number): New function.
7967 (s390_gdbarch_init): Register '*get_syscall_number' and the
7968 syscall xml file name.
7969 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7970 "s390-linux.xml" and "s390x-linux.xml".
7971 * NEWS: Announce new feature.
7973 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7975 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7977 2014-01-22 Pedro Alves <palves@redhat.com>
7979 * xtensa-config.c: Include defs.h.
7981 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7983 * common/common-utils.h: Add "ARI:" comment beside __func__
7986 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7988 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7989 documentation a bit.
7991 2014-01-21 Roland McGrath <mcgrathr@google.com>
7993 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7994 * configure: Regenerate.
7995 * aclocal.m4: Regenerate.
7996 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7997 New substituted variables.
7998 (install-strip): New target.
7999 (INSTALL_SCRIPT): New substituted variable.
8000 (FLAGS_TO_PASS): Add it.
8001 (install-only): Use $(INSTALL_SCRIPT) rather than
8002 $(INSTALL_PROGRAM) for gcore.
8004 2014-01-20 Tom Tromey <tromey@redhat.com>
8006 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8009 2014-01-20 Tom Tromey <tromey@redhat.com>
8011 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8012 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8013 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8014 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8015 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8016 (struct cmd_list_element) <flags>: Remove.
8017 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8018 doc_allocated>: New fields.
8019 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8021 * maint.c (maintenance_do_deprecate): Update.
8022 * top.c (execute_command): Update.
8024 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8026 * xtensa-linux-nat.c: Include asm/ptrace.h.
8028 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8030 * Makefile.in (SFILES): Add d-support.c.
8031 (COMMON_OBS): Add d-support.o.
8032 * d-lang.h (d_parse_symbol): Add comment, now defined in
8034 * d-lang.c (parse_call_convention)
8035 (parse_attributes, parse_function_types)
8036 (parse_function_args, parse_type, parse_identifier)
8037 (call_convention_p, d_parse_symbol): Move functions to ...
8038 * d-support.c: ... New file.
8040 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8042 * d-lang.h (d_parse_symbol): Add declaration.
8043 * d-lang.c (extract_identifiers)
8044 (extract_type_info): Remove functions.
8045 (parse_call_convention, parse_attributes)
8046 (parse_function_types, parse_function_args)
8047 (parse_type, parse_identifier, call_convention_p)
8048 (d_parse_symbol): New functions.
8049 (d_demangle): Use d_parse_symbol to demangle D symbols.
8051 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8053 * d-lang.h (struct builtin_d_type): New data type.
8054 (builtin_d_type): Add declaration.
8055 * d-lang.c (d_language_arch_info, build_d_types)
8056 (builtin_d_type): New functions.
8057 (enum d_primitive_types): New data type.
8058 (d_language_defn): Change c_language_arch_info to
8059 d_language_arch_info.
8060 (d_type_data): New static variable.
8061 (_initialize_d_language): Initialize d_type_data.
8063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8065 * d-lang.h (d_main_name): Add declaration.
8066 * d-lang.c (d_main_name): New function.
8067 * symtab.c (find_main_name): Add call to d_main_name.
8069 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8071 * d-lang.c (d_language_defn): Change macro_expansion_c to
8074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8076 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8078 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8080 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8081 gdb_exception" declaration.
8082 * remote.c (getpkt_or_notif_sane): Likewise.
8084 2014-01-17 Doug Evans <dje@google.com>
8086 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8087 function, contents of dirnames_to_char_ptr_vec_append moved here.
8088 (delim_string_to_char_ptr_vec): New function.
8089 (dirnames_to_char_ptr_vec_append): Rewrite.
8090 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8092 2014-01-17 Doug Evans <dje@google.com>
8094 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8096 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8097 #include "common-utils.h".
8098 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8099 * common/vec.h (VEC_ASSERT_PASS): Update.
8100 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8101 (MACH_CHECK_ERROR): Update.
8103 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8105 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8107 * gdbarch.h: Regenerate.
8109 2014-01-16 Tom Tromey <tromey@redhat.com>
8111 * value.c (struct value) <regnum>: Move earlier.
8113 2014-01-16 Tom Tromey <tromey@redhat.com>
8115 * remote.c (extended_remote_create_inferior): Rename from
8116 extended_remote_create_inferior_1. Add "ops" argument. Remove
8119 2014-01-16 Pedro Alves <palves@redhat.com>
8121 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8122 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8125 2014-01-16 Doug Evans <dje@google.com>
8127 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8131 * btrace.h (btrace_thread_flag): New.
8132 (struct btrace_thread_info) <flags>: New.
8133 * record-btrace.c (record_btrace_resume_thread)
8134 (record_btrace_find_thread_to_move, btrace_step_no_history)
8135 (btrace_step_stopped, record_btrace_start_replaying)
8136 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8137 (record_btrace_find_resume_thread): New.
8138 (record_btrace_resume, record_btrace_wait): Extend.
8139 (record_btrace_can_execute_reverse): New.
8140 (record_btrace_open): Fail in non-stop mode.
8141 (record_btrace_set_replay): Split into this, ...
8142 (record_btrace_stop_replaying): ... this, ...
8143 (record_btrace_clear_histories): ... and this.
8144 (init_record_btrace_ops): Init to_can_execute_reverse.
8145 * NEWS: Announce it.
8147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8149 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8150 (forward_target_decr_pc_after_break)
8151 (target_decr_pc_after_break): New.
8152 * target.c (forward_target_decr_pc_after_break)
8153 (target_decr_pc_after_break): New.
8154 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8155 instead of gdbarch_decr_pc_after_break.
8156 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8157 instead of gdbarch_decr_pc_after_break.
8158 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8159 instead of gdbarch_decr_pc_after_break.
8160 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8161 instead of gdbarch_decr_pc_after_break.
8162 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8163 instead of gdbarch_decr_pc_after_break.
8164 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8165 instead of gdbarch_decr_pc_after_break.
8167 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8169 * btrace.c: Include regcache.h.
8170 (btrace_add_pc): New.
8171 (btrace_enable): Call btrace_add_pc.
8172 (btrace_is_empty): New.
8173 * btrace.h (btrace_is_empty): New.
8174 * record-btrace.c (require_btrace, record_btrace_info): Call
8177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8179 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8180 Support delta reads.
8181 (linux_disable_btrace): Change return type.
8182 * common/linux-btrace.h (linux_read_btrace): Change parameters
8183 and return type to allow error reporting. Update users.
8184 (linux_disable_btrace): Change return type. Update users.
8185 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8187 (btrace_error): New.
8188 (btrace_block) <begin>: Comment on BEGIN == 0.
8189 * btrace.c (btrace_compute_ftrace): Start from the end of
8191 (btrace_stitch_trace, btrace_clear_history): New.
8192 (btrace_fetch): Read delta trace, return if replaying.
8193 (btrace_clear): Move clear history code to btrace_clear_history.
8194 (parse_xml_btrace): Throw an error if parsing failed.
8195 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8196 and return type to allow error reporting.
8197 (target_read_btrace): Change parameters and return type to allow
8199 * target.c (target_read_btrace): Update.
8200 * remote.c (remote_read_btrace): Support delta reads. Pass
8202 * NEWS: Announce it.
8204 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8206 * record.h (record_btrace_frame_unwind)
8207 (record_btrace_tailcall_frame_unwind): New declarations.
8208 * dwarf2-frame: Include record.h
8209 (dwarf2_frame_cfa): Throw an error for btrace frames.
8210 * record-btrace.c: Include hashtab.h.
8211 (btrace_get_bfun_name): New.
8212 (btrace_call_history): Call btrace_get_bfun_name.
8213 (struct btrace_frame_cache): New.
8215 (bfcache_hash, bfcache_eq, bfcache_new): New.
8216 (btrace_get_frame_function): New.
8217 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8218 (record_btrace_frame_this_id): Compute own id.
8219 (record_btrace_frame_prev_register): Provide PC, throw_error
8220 for all other registers.
8221 (record_btrace_frame_sniffer): Detect btrace frames.
8222 (record_btrace_tailcall_frame_sniffer): New.
8223 (record_btrace_frame_dealloc_cache): New.
8224 (record_btrace_frame_unwind): Add new functions.
8225 (record_btrace_tailcall_frame_unwind): New.
8226 (_initialize_record_btrace): Allocate cache.
8227 * btrace.c (btrace_clear): Call reinit_frame_cache.
8228 * NEWS: Announce it.
8230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8232 * record-btrace.c (record_btrace_set_replay)
8233 (record_btrace_goto_begin, record_btrace_goto_end)
8234 (record_btrace_goto): New.
8235 (init_record_btrace_ops): Initialize them.
8236 * NEWS: Announce it.
8238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8240 * record-btrace.c (record_btrace_find_new_threads)
8241 (record_btrace_thread_alive): New.
8242 (init_record_btrace_ops): Initialize to_find_new_threads and
8245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8247 * record-btrace.c (record_btrace_resume): New.
8248 (record_btrace_wait): New.
8249 (init_record_btrace_ops): Initialize to_wait and to_resume.
8251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8253 * record-btrace.c (record_btrace_xfer_partial)
8254 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8255 (record_btrace_allow_memory_access): New.
8256 (init_record_btrace_ops): Initialize new methods.
8257 * target.c (raw_memory_xfer_partial): Bail out if target reports
8258 that this memory is not available.
8260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8262 * target.h (target_ops) <to_insert_breakpoint>
8263 <to_remove_breakpoint>: Add target_ops parameter.
8264 (forward_target_insert_breakpoint): New.
8265 (forward_target_remove_breakpoint): New.
8266 (memory_remove_breakpoint, memory_insert_breakpoint):
8267 Add target_ops parameter.
8268 * target.c (target_insert_breakpoint): Split into this and ...
8269 (forward_target_insert_breakpoint): ... this.
8270 (target_remove_breakpoint): Split into this and ...
8271 (forward_target_remove_breakpoint): ... this.
8272 (debug_to_insert_breakpoint): Add target_ops parameter.
8273 Call forward_target_insert_breakpoint.
8274 (debug_to_remove_breakpoint): Add target_ops parameter.
8275 Call forward_target_remove_breakpoint.
8276 (update_current_target): Do not inherit or default to_insert_breakpoint
8277 and to_remove_breakpoint.
8278 * corelow.c (ignore): Add target_ops parameter.
8279 * exec.c (ignore): Add target_ops parameter.
8280 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8281 Add target_ops parameter.
8282 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8283 Add target_ops parameter.
8284 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8285 Add target_ops parameter.
8286 * record-full.c (record_full_beneath_to_insert_breakpoint)
8287 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8288 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8289 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8290 (record_full_core_remove_breakpoint): Add target_ops parameter.
8292 (record_full_beneath_to_insert_breakpoint_ops)
8293 (record_full_beneath_to_remove_breakpoint_ops)
8294 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8295 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8296 tmp_to_remove_breakpoint_ops,
8297 record_full_beneath_to_insert_breakpoint_ops, and
8298 record_full_beneath_to_remove_breakpoint_ops.
8299 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8300 (m32r_remove_breakpoint): Add target_ops parameter.
8301 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8302 Add target_ops parameter.
8303 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8304 Add target_ops parameter.
8306 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8307 Markus Metzger <markus.t.metzger@intel.com>
8309 * record-btrace.c: Include frame-unwind.h.
8310 (record_btrace_frame_unwind_stop_reason)
8311 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8312 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8314 (init_record_btrace_ops): Install it.
8316 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8318 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8321 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8323 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8326 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8328 * frame-unwind.c: Include target.h.
8329 (frame_unwind_try_unwinder): New function with code from ...
8330 (frame_unwind_find_by_frame): ... here. New variable
8331 unwinder_from_target, call also target_get_unwinder)
8332 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8333 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8334 * target.h (struct target_ops): New fields to_get_unwinder and
8335 to_get_tailcall_unwinder.
8336 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8340 * record-btrace.c (record_btrace_fetch_registers)
8341 (record_btrace_store_registers)
8342 (record_btrace_to_prepare_to_store): New.
8343 (init_record_btrace_ops): Add the above.
8345 2014-01-16 Tom Tromey <tromey@redhat.com>
8347 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8348 * target.h (struct target_ops) <to_prepare_to_store>: Add
8350 (target_prepare_to_store): Add argument.
8351 * target.c (debug_to_prepare_to_store): Add argument.
8352 (update_current_target): Update.
8353 * remote.c (remote_prepare_to_store): Add 'self' argument.
8354 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8355 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8356 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8357 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8359 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8360 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8361 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8362 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8363 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8367 * btrace.h (replay) <replay>: New.
8368 (btrace_is_replaying): New.
8369 * btrace.c (btrace_clear): Free replay iterator.
8370 (btrace_is_replaying): New.
8371 * record-btrace.c (record_btrace_is_replaying): New.
8372 (record_btrace_info): Print insn number if replaying.
8373 (record_btrace_insn_history): Start at replay position.
8374 (record_btrace_call_history): Start at replay position.
8375 (init_record_btrace_ops): Init to_record_is_replaying.
8377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8379 * record-btrace.c (record_btrace_insn_history_range): Include
8381 (record_btrace_insn_history_from): Adjust range.
8382 (record_btrace_call_history_range): Include
8384 (record_btrace_call_history_from): Adjust range.
8385 * NEWS: Announce changes.
8387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8389 * record.h (enum record_print_flag)
8390 <record_print_indent_calls>: New.
8391 * record.c (get_call_history_modifiers): Recognize /c modifier.
8392 (_initialize_record): Document /c modifier.
8393 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8394 Reorder fields. Optionally indent the function name. Update
8396 * NEWS: Announce changes.
8398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8400 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8404 * btrace.c (ftrace_new_function): Start counting at one.
8405 * record-btrace.c (record_btrace_info): Adjust number of calls
8407 * NEWS: Announce it.
8409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8411 * record-btrace.c (btrace_call_history_insn_range): Print
8412 insn range as [begin, end].
8414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8416 * btrace.h (struct btrace_func_link): New.
8417 (enum btrace_function_flag): New.
8418 (struct btrace_inst): Rename to ...
8419 (struct btrace_insn): ...this. Update all users.
8420 (struct btrace_func) <ibegin, iend>: Remove.
8421 (struct btrace_func_link): New.
8422 (struct btrace_func): Rename to ...
8423 (struct btrace_function): ...this. Update all users.
8424 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8425 (number, level, flags>: New.
8426 (struct btrace_insn_iterator): Rename to ...
8427 (struct btrace_insn_history): ...this.
8429 (struct btrace_insn_iterator, btrace_call_iterator): New.
8430 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8431 (struct btrace_target_info) <begin, end, level>
8432 <insn_history, call_history>: New.
8433 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8434 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8435 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8436 (btrace_call_number, btrace_call_begin, btrace_call_end)
8437 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8438 (btrace_find_function_by_number, btrace_set_insn_history)
8439 (btrace_set_call_history): New.
8440 * btrace.c (btrace_init_insn_iterator)
8441 (btrace_init_func_iterator, compute_itrace): Remove.
8442 (ftrace_print_function_name, ftrace_print_filename)
8443 (ftrace_skip_file): Change
8445 (ftrace_init_func): Remove.
8446 (ftrace_debug): Use new btrace_function fields.
8447 (ftrace_function_switched): Also consider gaining and
8448 losing symbol information).
8449 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8450 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8451 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8453 (ftrace_new_function): Move. Remove debug print.
8454 (ftrace_update_lines, ftrace_update_insns): New.
8455 (ftrace_update_function): Check for call, ret, and jump.
8456 (compute_ftrace): Renamed to ...
8457 (btrace_compute_ftrace): ...this. Rewritten to compute call
8459 (btrace_fetch, btrace_clear): Updated.
8460 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8461 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8462 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8463 (btrace_call_number, btrace_call_begin, btrace_call_end)
8464 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8465 (btrace_find_function_by_number, btrace_set_insn_history)
8466 (btrace_set_call_history): New.
8467 * record-btrace.c (require_btrace): Use new btrace thread
8469 (record_btrace_info, btrace_insn_history)
8470 (record_btrace_insn_history, record_btrace_insn_history_range):
8471 Use new btrace thread info fields and new iterator.
8472 (btrace_func_history_src_line): Rename to ...
8473 (btrace_call_history_src_line): ...this. Use new btrace
8475 (btrace_func_history): Rename to ...
8476 (btrace_call_history): ...this. Use new btrace thread info
8477 fields and new iterator.
8478 (record_btrace_call_history, record_btrace_call_history_range):
8479 Use new btrace thread info fields and new iterator.
8481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8483 * frame.h (frame_id_build_unavailable_stack_special): New.
8484 * frame.c (frame_id_build_unavailable_stack_special): New.
8486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8488 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8489 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8490 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8492 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8493 (i386_insn_is_jump, i386_jmp_p): New.
8494 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8495 insn_is_jump to gdbarch.
8496 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8497 * gdbarch.h: Regenerated.
8498 * gdbarch.c: Regenerated.
8499 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8500 (default_insn_is_jump): New.
8501 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8502 (default_insn_is_jump): New.
8504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8506 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8508 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8509 (btrace_read_type) <btrace_read_new>: Change to ...
8510 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8514 * common/linux-btrace.c (linux_read_btrace): Free trace from
8517 2014-01-15 Doug Evans <dje@google.com>
8519 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8522 2014-01-15 Tom Tromey <tromey@redhat.com>
8524 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8525 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8526 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8527 (set_objfile_main_name): New function.
8528 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8529 language_of_main>: New fields.
8530 (set_objfile_main_name): Declare.
8531 * symtab.c (find_main_name): Loop over objfiles to find the main
8533 (set_main_name): Now static.
8534 (get_main_info): Add comment.
8535 * symtab.h (set_main_name): Don't declare.
8537 2014-01-15 Tom Tromey <tromey@redhat.com>
8539 * symtab.c (main_progspace_key): New global.
8540 (struct main_info): New.
8541 (name_of_main, language_of_main): Remove.
8542 (get_main_info, main_info_cleanup): New function.
8543 (set_main_name, main_name, main_language): Use get_main_info.
8544 (_initialize_symtab): Initialize main_progspace_key.
8546 2014-01-15 Tom Tromey <tromey@redhat.com>
8548 * dbxread.c (process_one_symbol): Update.
8549 * dwarf2read.c (read_partial_die): Update.
8550 * symfile.c (set_initial_language): Call main_language.
8551 * symtab.c (language_of_main): Now static.
8552 (set_main_name): Add 'lang' parameter.
8553 (find_main_name): Update.
8554 (main_language): New function.
8555 (symtab_observer_executable_changed): Update.
8556 * symtab.h (set_main_name): Update.
8557 (language_of_main): Remove.
8558 (main_language): Declare.
8560 2014-01-15 Tom Tromey <tromey@redhat.com>
8562 * symfile.c (init_entry_point_info): Use new "initialized" field.
8564 * objfiles.h (struct entry_point) <initialized>: New field.
8565 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8566 (struct objfile) <ei>: ...here. Remove.
8567 * objfiles.c (entry_point_address_query): Update.
8569 2014-01-15 Tom Tromey <tromey@redhat.com>
8571 * objfiles.c (entry_point_address_query): Relocate entry point
8573 (objfile_relocate1): Do not relocate entry point address.
8574 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8575 <the_bfd_section_index>: New field.
8576 * symfile.c (init_entry_point_info): Find the entry point's
8579 2014-01-15 Tom Tromey <tromey@redhat.com>
8581 * solib-frv.c (enable_break): Use entry_point_address_query.
8583 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8585 * NEWS: Add note on improved process record-replay on
8586 arm*-linux* targets.
8588 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8590 * arm-tdep.c (enum arm_record_result): New enum.
8591 (arm_record_unsupported_insn): New function.
8592 (arm_record_coproc_data_proc): Removed.
8593 (thumb2_record_ld_st_multiple): New function.
8594 (thumb2_record_ld_st_dual_ex_tbb): New function.
8595 (thumb2_record_data_proc_sreg_mimm): New function.
8596 (thumb2_record_ps_dest_generic): New function.
8597 (thumb2_record_branch_misc_cntrl): New function.
8598 (thumb2_record_str_single_data): New function.
8599 (thumb2_record_ld_mem_hints): New function.
8600 (thumb2_record_ld_word): New function.
8601 (thumb2_record_lmul_lmla_div): New function.
8602 (thumb2_record_decode_insn_handler): New function.
8603 (decode_insn): Add thumb32 instruction handlers.
8605 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8607 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8608 (struct arm_linux_record_tdep): Declare.
8609 (arm_canonicalize_syscall): New function.
8610 (arm_all_but_pc_registers_record): New function.
8611 (arm_linux_syscall_record): New function.
8612 (arm_linux_init_abi): Add syscall recording constructs.
8613 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8614 decoding. (arm_record_coproc_data_proc): Update arm syscall
8616 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8617 <arm_syscall_record>: New field.
8618 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8621 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8623 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8624 register for push instruction recording.
8626 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8628 * arm-tdep.c (thumb_record_misc): Update to correct logical
8629 error while recording ldm, ldmia and pop instructions.
8631 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8633 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8635 2014-01-15 Pedro Alves <palves@redhat.com>
8637 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8638 (go32_resume, go32_fetch_registers, store_register)
8639 (go32_store_registers, go32_prepare_to_store)
8640 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8641 (go32_create_inferior, go32_can_run, go32_terminal_init)
8642 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8645 2014-01-15 Tom Tromey <tromey@redhat.com>
8647 * target.h (async_callback_ftype): New typedef.
8648 (struct target_ops) <to_async>: Use it.
8650 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8652 * python/py-value.c (get_field_type): Remove unnecessary curly
8653 braces for single-statement if block.
8655 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8657 * python/py-type.c (convert_field): Add missing empty line
8660 2014-01-14 Doug Evans <dje@google.com>
8662 * symfile.h (expand_symtabs_matching): Renamed from
8663 expand_partial_symbol_names. Update prototype.
8664 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8665 * symfile.c (expand_symtabs_matching): Renamed from
8666 expand_partial_symbol_names. New args file_matcher, kind.
8667 Rename arg fun to symbol_matcher.
8668 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8669 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8670 ada_expand_partial_symbol_name.
8671 (ada_make_symbol_completion_list): Update to call
8672 expand_symtabs_matching.
8673 (ada_add_global_exceptions): Call expand_symtabs_matching.
8674 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8675 call map_symbol_filenames.
8676 * symtab.c (sources_info): Update to call map_symbol_filenames.
8677 (search_symbols): Call expand_symtabs_matching.
8678 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8679 (default_make_symbol_completion_list_break_on): Update to call
8680 expand_symtabs_matching.
8681 (make_source_files_completion_list): Update to call
8682 map_symbol_filenames.
8684 2014-01-14 Doug Evans <dje@google.com>
8686 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8687 (expand_symtabs_symbol_matcher_ftype): New typedef.
8688 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8689 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8690 * symfile.c (expand_partial_symbol_names): Update to use
8691 expand_symtabs_symbol_matcher_ftype.
8692 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8693 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8694 Arg name_matcher renamed to symbol_matcher.
8695 * psymtab.c (recursively_search_psymtabs): Update to use
8696 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8698 (expand_symtabs_matching_via_partial): Update to use
8699 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8700 Arg name_matcher renamed to symbol_matcher.
8702 2014-01-14 Doug Evans <dje@google.com>
8704 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8705 (map_partial_symbol_filenames): Ditto.
8706 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8707 (map_partial_symbol_filenames): Ditto.
8708 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8709 (map_partial_symbol_filenames): Ditto.
8710 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8711 (map_partial_symbol_filenames): Ditto.
8712 * symtab.c: Delete #include "psymtab.h".
8714 2014-01-14 Pedro Alves <palves@redhat.com>
8715 Tom Tromey <tromey@redhat.com>
8717 * infrun.c (use_displaced_stepping): Use find_record_target
8718 instead of RECORD_IS_USED.
8719 (adjust_pc_after_break): Use record_full_is_used instead of
8721 * record-btrace.c (record_btrace_open): Call record_preopen
8722 instead of checking RECORD_IS_USED.
8723 * record-full.c (record_full_shortname)
8724 (record_full_core_shortname): New globals.
8725 (record_full_is_used): New function.
8726 (find_full_open): Call record_preopen instead of checking
8728 (init_record_full_ops): Set the target's shortname to
8729 record_full_shortname.
8730 (init_record_full_core_ops): Set the target's shortname to
8731 record_full_core_shortname.
8732 * record-full.h (record_full_is_used): Declare.
8733 * record.c (find_record_target): Make extern.
8734 (record_preopen): New function.
8735 * record.h (RECORD_IS_USED): Delete macro.
8736 (find_record_target, record_preopen): Declare functions.
8738 2014-01-14 Yao Qi <yao@codesourcery.com>
8740 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8741 'len''s type to ULONGEST.
8742 (core_xfer_shared_libraries_aix): Likewise.
8743 * gdbarch.c, gdbarch.h: Regenerated.
8744 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8745 Change type of 'len' to ULONGEST.
8746 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8747 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8749 2014-01-14 Yao Qi <yao@codesourcery.com>
8751 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8752 type of 'len' to ULONGEST.
8753 (linux_xfer_osdata_processgroups): Likewise.
8754 (linux_xfer_osdata_threads): Likewise.
8755 (linux_xfer_osdata_fds): Likewise.
8756 (linux_xfer_osdata_isockets): Likewise.
8757 (linux_xfer_osdata_shm): Likewise.
8758 (linux_xfer_osdata_sem): Likewise.
8759 (linux_xfer_osdata_msg): Likewise.
8760 (linux_common_xfer_osdata): Likewise.
8761 (struct osdata_type) <getter>: Likewise.
8762 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8765 2014-01-14 Yao Qi <yao@codesourcery.com>
8767 * target.h (target_xfer_partial_ftype): Update.
8768 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8770 * aix-thread.c (aix_thread_xfer_partial): Change type of
8771 argument 'len' to ULONGEST.
8772 * auxv.c (procfs_xfer_auxv): Likewise.
8773 (ld_so_xfer_auxv): Likewise.
8774 (memory_xfer_auxv): Likewise.
8775 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8776 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8777 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8778 * corelow.c (core_xfer_partial): Likewise.
8779 * ctf.c (ctf_xfer_partial): Likewise.
8780 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8782 (darwin_read_dyld_info): Likewise.
8783 (darwin_xfer_partial): Likewise.
8784 * exec.c (section_table_xfer_memory_partial): Likewise.
8785 (exec_xfer_partial): Likewise.
8786 * exec.h (section_table_xfer_memory_partial): Update
8788 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8789 instead of plongest.
8790 (gnu_xfer_partial): Likewise.
8791 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8792 (ia64_hpux_xfer_solib_got): Likewise.
8793 (ia64_hpux_xfer_partial): Likewise.
8794 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8795 * inf-ptrace.c (inf_ptrace_xfer_partial):
8796 * inf-ttrace.c (inf_ttrace_xfer_partial):
8797 * linux-nat.c (linux_xfer_siginfo): Likewise.
8798 (linux_nat_xfer_partial): Likewise.
8799 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8800 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8801 * monitor.c (monitor_xfer_memory): Likewise.
8802 (monitor_xfer_partial): Likewise.
8803 * procfs.c (procfs_xfer_partial): Likewise.
8804 * record-full.c (record_full_xfer_partial): Likewise.
8805 (record_full_core_xfer_partial): Likewise.
8806 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8807 instead of plongest.
8808 (gdbsim_xfer_partial): Likewise.
8809 * remote.c (remote_xfer_partial): Likewise.
8810 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8811 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8813 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8814 (rs6000_xfer_shared_libraries): Likewise.
8815 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8816 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8817 (sparc_xfer_partial): Likewise.
8818 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8819 (spu_xfer_partial): Likewise.
8820 * spu-multiarch.c (spu_xfer_partial): Likewise.
8821 * target.c (target_read_live_memory): Likewise.
8822 (memory_xfer_live_readonly_partial): Likewise.
8823 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8824 (target_xfer_partial, default_xfer_partial): Likewise.
8825 (current_xfer_partial): Likewise.
8826 * tracepoint.c (tfile_xfer_partial): Likewise.
8827 * windows-nat.c (windows_xfer_memory): Likewise. Call
8828 pulongest instead of plongest.
8829 (windows_xfer_partial): Likewise.
8830 (windows_xfer_shared_libraries): Likewise.
8832 2014-01-14 Yao Qi <yao@codesourcery.com>
8834 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8835 target_xfer_partial_ftype.
8837 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8841 * valops.c (value_struct_elt_bitpos): New function
8842 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8843 object to 'None' if the field name is an empty string ("").
8844 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8845 attribute to look for a field when 'name' is 'None'.
8846 (get_field_type): New function
8848 2014-01-13 Doug Evans <dje@google.com>
8851 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8852 (try_open_dwop_file): Ditto.
8853 * gdb_bfd.c: #include "vec.h".
8854 (bfdp): New typedef.
8855 (struct gdb_bfd_data): New member included_bfds.
8856 (gdb_bfd_unref): Unref all included bfds.
8857 (gdb_bfd_record_inclusion): New function.
8858 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8860 2014-01-13 Tom Tromey <tromey@redhat.com>
8862 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8864 2014-01-13 Tom Tromey <tromey@redhat.com>
8866 * defs.h (use_windows): Remove.
8867 * gdb.c (main): Update.
8868 * main.c (captured_main, gdb_main): Update.
8869 * main.h (struct captured_main_args) <use_windows>: Remove.
8870 * top.c (use_windows): Remove.
8872 2014-01-13 Tom Tromey <tromey@redhat.com>
8874 * defs.h (deprecated_flush_hook): Remove.
8876 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 * linux-thread-db.c (try_thread_db_load): Add parameter
8880 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8881 (try_thread_db_load_from_pdir_1): Move it there from here.
8882 (try_thread_db_load_from_sdir): Update caller.
8883 (try_thread_db_load_from_dir): Move it there from here.
8885 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8887 * regformats/regdat.sh: Always rewrite the register file.
8889 2014-01-13 Pedro Alves <palves@redhat.com>
8891 * Makefile.in (CHECK_HEADERS): New variable.
8892 (check-headers:): New rule.
8894 2014-01-13 Tom Tromey <tromey@redhat.com>
8896 * cli/cli-setshow.c (do_set_command): Update.
8897 * defs.h (deprecated_set_hook): Remove.
8898 * top.c (deprecated_set_hook): Remove.
8900 2014-01-13 Pedro Alves <palves@redhat.com>
8902 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8903 the tracepoint if the PC is a pseudo-register.
8905 2014-01-13 Tom Tromey <tromey@redhat.com>
8907 * defs.h (XCALLOC): Remove.
8908 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8909 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8910 * dwarf2loc.c (allocate_piece_closure): Likewise.
8911 * elfread.c (elf_symfile_segments): Likewise.
8912 (elf_symfile_segments): Likewise.
8913 * gdbtypes.c (copy_type_recursive): Likewise.
8914 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8915 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8916 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8918 * mt-tdep.c (mt_gdbarch_init): Likewise.
8919 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8921 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8922 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8923 * registry.c (registry_alloc_data): Likewise.
8924 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8925 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8926 * serial.c (serial_fdopen_ops): Likewise.
8927 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8929 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8930 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8933 2014-01-13 Tom Tromey <tromey@redhat.com>
8935 * defs.h (XMALLOC): Remove.
8936 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8937 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8938 * cli-out.c (struct ui_out *): Likewise.
8939 * cli/cli-dump.c (add_dump_command): Likewise.
8940 (add_dump_command): Likewise.
8941 * complaints.c (get_complaints): Likewise.
8942 (find_complaint): Likewise.
8943 * dwarf2-frame.c (execute_cfa_program): Likewise.
8944 * dwarf2read.c (abbrev_table_read_table): Likewise.
8945 * gdbarch.sh: Likewise.
8946 * gdbarch.c: Rebuild.
8947 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8948 * interps.c (interp_new): Likewise.
8949 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8950 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8951 * mi/mi-console.c (mi_console_file_new): Likewise.
8952 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8953 * mi/mi-out.c (mi_out_new): Likewise.
8954 * mi/mi-parse.c (mi_parse): Likewise.
8955 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8956 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8957 * observer.c (xalloc_observer_list_node): Likewise.
8958 * regcache.c (regcache_xmalloc_1): Likewise.
8959 * reggroups.c (reggroup_new): Likewise.
8960 (_initialize_reggroup): Likewise.
8961 * registry.c (register_data_with_cleanup): Likewise.
8962 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8963 * ser-base.c (serial_ttystate): Likewise.
8964 * ser-mingw.c (make_pipe_state): Likewise.
8965 * ser-pipe.c (pipe_open): Likewise.
8966 * serial.c (serial_open): Likewise.
8967 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8968 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8969 (tui_alloc_win_info): Likewise.
8970 (tui_add_content_elements): Likewise.
8971 * tui/tui-file.c (tui_file_new): Likewise.
8972 * tui/tui-out.c (tui_out_new): Likewise.
8973 * ui-file.c (mem_file_new): Likewise.
8974 * ui-out.c (push_level): Likewise.
8975 (make_cleanup_ui_out_end): Likewise.
8976 (append_header_to_list): Likewise.
8977 (ui_out_new): Likewise.
8978 * user-regs.c (user_reg_add_builtin): Likewise.
8980 2014-01-13 Tom Tromey <tromey@redhat.com>
8982 * defs.h (XZALLOC): Remove.
8983 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8984 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8985 (get_ada_tasks_inferior_data): Likewise.
8986 * auto-load.c (get_auto_load_pspace_data): Likewise.
8987 * auxv.c (get_auxv_inferior_data): Likewise.
8988 * bfd-target.c (target_bfd_reopen): Likewise.
8989 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8990 (deprecated_insert_raw_breakpoint): Likewise.
8991 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8992 * corelow.c (core_open): Likewise.
8993 * darwin-nat.c (darwin_check_new_threads): Likewise.
8994 (darwin_attach_pid): Likewise.
8995 * dummy-frame.c (dummy_frame_push): Likewise.
8996 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8997 * dwarf2loc.c (allocate_piece_closure): Likewise.
8998 * elfread.c (elf_symfile_segments): Likewise.
8999 * eval.c (ptrmath_type_p): Likewise.
9000 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9001 * gdbtypes.c (alloc_type_arch): Likewise.
9002 (alloc_type_instance): Likewise.
9003 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9004 * inf-child.c (inf_child_can_use_agent): Likewise.
9005 * inflow.c (get_inflow_inferior_data): Likewise.
9006 * infrun.c (save_infcall_suspend_state): Likewise.
9007 * jit.c (jit_reader_load): Likewise.
9008 (get_jit_objfile_data): Likewise.
9009 (get_jit_program_space_data): Likewise.
9010 (jit_object_open_impl): Likewise.
9011 (jit_symtab_open_impl): Likewise.
9012 (jit_block_open_impl): Likewise.
9013 (jit_frame_sniffer): Likewise.
9014 * linux-fork.c (add_fork): Likewise.
9015 * maint.c (make_command_stats_cleanup): Likewise.
9016 * objfiles.c (get_objfile_pspace_data): Likewise.
9017 * opencl-lang.c (struct lval_closure): Likewise.
9018 * osdata.c (osdata_start_osdata): Likewise.
9019 * progspace.c (new_address_space): Likewise.
9020 (add_program_space): Likewise.
9021 * remote-sim.c (get_sim_inferior_data): Likewise.
9022 * sh-tdep.c (sh_gdbarch_init): Likewise.
9023 * skip.c (Ignore): Likewise.
9024 (skip_delete_command): Likewise.
9025 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9026 (library_list_start_library): Likewise.
9027 (solib_aix_current_sos): Likewise.
9028 * solib-darwin.c (get_darwin_info): Likewise.
9029 (darwin_current_sos): Likewise.
9030 * solib-dsbt.c (get_dsbt_info): Likewise.
9031 * solib-ia64-hpux.c (new_so_list): Likewise.
9032 (ia64_hpux_get_solib_linkage_addr): Likewise.
9033 * solib-spu.c (append_ocl_sos): Likewise.
9034 (spu_current_sos): Likewise.
9035 * solib-svr4.c (get_svr4_info): Likewise.
9036 (svr4_keep_data_in_core): Likewise.
9037 (library_list_start_library): Likewise.
9038 (svr4_default_sos): Likewise.
9039 (svr4_read_so_list): Likewise.
9040 * solib-target.c (library_list_start_library): Likewise.
9041 (solib_target_current_sos): Likewise.
9042 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9043 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9044 * symfile.c (default_symfile_segments): Likewise.
9045 * target-descriptions.c (tdesc_data_init): Likewise.
9046 (tdesc_create_reg): Likewise.
9047 (struct tdesc_type *): Likewise.
9048 (tdesc_create_vector): Likewise.
9049 (tdesc_set_struct_size): Likewise.
9050 (struct tdesc_type *): Likewise.
9051 (tdesc_free_feature): Likewise.
9052 (tdesc_create_feature): Likewise.
9053 * windows-nat.c (windows_add_thread): Likewise.
9054 (windows_make_so): Likewise.
9055 * xml-support.c (gdb_xml_body_text): Likewise.
9056 (gdb_xml_create_parser_and_cleanup): Likewise.
9057 (xml_process_xincludes): Likewise.
9058 * xml-syscall.c (allocate_syscalls_info): Likewise.
9059 (syscall_create_syscall_desc): Likewise.
9061 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9063 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9064 function, with code from i386_stap_parse_special_token.
9065 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9066 (i386_stap_parse_special_token): Move code to the two functions
9069 2014-01-09 Pedro Alves <palves@redhat.com>
9070 Hui Zhu <hui@codesourcery.com>
9073 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9074 bp_err_string. Don't mark the location shlib_disabled if the
9075 error thrown wasn't a generic or memory error. Catch errors
9076 thrown while inserting breakpoints in overlayed code. Output
9077 error message of software breakpoints.
9078 * remote.c (remote_insert_breakpoint): If this breakpoint has
9079 target-side commands but this stub doesn't support Z0 packets,
9080 throw NOT_SUPPORTED_ERROR error.
9081 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9082 * target.h (target_insert_breakpoint): Extend comment.
9083 (target_insert_hw_breakpoint): Add comment.
9085 2014-01-08 Pedro Alves <palves@redhat.com>
9087 * remote.c (remote_add_thread): Add threads silently if starting
9089 (remote_notice_new_inferior): If in all-stop, and starting up,
9090 don't call notice_new_inferior.
9091 (get_current_thread): New function, factored out from ...
9092 (add_current_inferior_and_thread): ... this. Adjust.
9093 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9094 found any thread, then select the remote's current thread as GDB's
9097 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9099 * NEWS: Create a new section for the next release branch.
9100 Rename the section of the current branch, now that it has
9103 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9105 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9106 * version.in: Bump version to 7.7.50.DATE-cvs.
9108 2014-01-08 Yao Qi <yao@codesourcery.com>
9110 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9111 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9112 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9114 2014-01-08 Yao Qi <yao@codesourcery.com>
9116 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9117 return value of bfd_get_filename to symbol_file_add_from_bfd.
9119 2014-01-08 Pierre Muller <muller@sourceware.org>
9122 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9123 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9124 to prim_record_mininal_symbol_and_info.
9125 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9126 in call to prim_record_minimal_symbol_and_info.
9127 (read_pe_exported_syms): Set index field of section_data.
9129 2014-01-07 Andrew Pinski <apinski@cavium.com>
9131 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9132 * features/aarch64.c: Regenerate.
9134 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9136 * target.c (return_null): Define.
9137 (update_current_target): Use it instead of return_zero for
9138 functions that return a pointer.
9140 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9142 * source.c (add_path): Fix check for duplicated paths in the previously
9145 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9147 * ada-lang.c: Remove duplicated include statements.
9148 * alphabsd-nat.c: Ditto.
9149 * amd64-darwin-tdep.c: Ditto.
9150 * amd64fbsd-nat.c: Ditto.
9151 * auto-load.c: Ditto.
9153 * breakpoint.c: Ditto.
9155 * fork-child.c: Ditto.
9156 * gdb_usleep.c: Ditto.
9157 * i386-darwin-tdep.c: Ditto.
9158 * i386fbsd-nat.c: Ditto.
9160 * inferior.c: Ditto.
9162 * linux-nat.c: Ditto.
9163 * linux-tdep.c: Ditto.
9164 * m68kbsd-nat.c: Ditto.
9165 * m68klinux-nat.c: Ditto.
9166 * microblaze-tdep.c: Ditto.
9167 * mips-linux-tdep.c: Ditto.
9168 * mn10300-tdep.c: Ditto.
9169 * nto-tdep.c: Ditto.
9170 * opencl-lang.c: Ditto.
9172 * printcmd.c: Ditto.
9173 * regcache.c: Ditto.
9174 * remote-m32r-sdi.c: Ditto.
9178 * tilegx-linux-nat.c: Ditto.
9179 * tilegx-tdep.c: Ditto.
9180 * tracepoint.c: Ditto.
9182 * vaxbsd-nat.c: Ditto.
9183 * windows-nat.c: Ditto.
9184 * xtensa-tdep.c: Ditto.
9186 2014-01-07 Yao Qi <yao@codesourcery.com>
9188 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9190 2014-01-07 Yao Qi <yao@codesourcery.com>
9191 Joel Brobecker <brobecker@adacore.com>
9193 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9194 (pdc_write_regs): Likewise.
9195 (fetch_regs_kernel_thread): Likewise.
9196 (store_regs_kernel_thread): Likewise.
9198 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9200 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9201 tagged type objects to their actual type.
9203 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9205 * ada-valprint.c (print_field_values): Add "language" parameter.
9206 Update calls to print_field_values and print_variant_part.
9207 Pass new parameter "language" in call to val_print instead
9208 of "current_language". Replace call to ada_val_print by call
9210 (print_variant_part): Add "language" parameter.
9211 (ada_val_print_struct_union): Update call to print_field_values.
9213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9215 * ada-valprint.c (ui_memcpy): Delete.
9216 (ada_print_floating): Update documentation. Add empty line
9217 between between function documentation and implementation.
9218 Delete variable "buffer". Use ui_file_xstrdup in place of
9219 ui_file_put. Minor adjustments following this change.
9221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9223 * ada-valprint.c (ada_val_print_string): New function,
9224 extracted from ada_val_print_array.
9225 (ada_val_print_array): Replace extracted code by call
9226 to ada_val_print_string followed by a return. Move
9227 "else" branch to the function's top block.
9229 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9231 * ada-valprint.c (ada_val_print_array): Move implementation
9232 down. Rename parameter "offset" and "val" into "offset_aligned"
9233 and "original_value" respectively. Add parameter "offset".
9235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9237 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9238 re-organizing the code. Change the "???" message printed
9239 when target type is a TYPE_CODE_UNDEF into
9240 "<ref to undefined type>".
9242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9244 * ada-valprint.c (print_record): Delete, implementation inlined...
9245 (ada_val_print_struct_union): ... here. Remove call to
9246 ada_check_typedef in inlined implementation.
9248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9250 * ada-valprint.c (ada_val_print_gnat_array): New function,
9251 extracted from ada_val_print_1;
9252 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9253 (ada_val_print_flt, ada_val_print_struct_union)
9254 (ada_val_print_ref): Likewise.
9255 (ada_val_print_1): Delete variables i and elttype.
9256 Replace extracted-out code by call to corresponding
9259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9261 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9265 * ada-valprint.c (ada_val_print_1): Replace calls to
9266 ada_val_print_1 by calls to val_print.
9268 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9270 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9271 Update calls to self accordingly. Replace calls to c_val_print
9272 by calls to val_print.
9274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9276 * ada-valprint.c (print_record): Delete declaration.
9277 (adjust_type_signedness, ada_val_print_1): Likewise.
9278 (ada_val_print): Move function implementation down.
9279 (print_variant_part, print_field_values, print_record):
9280 Move function implementation up.
9282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9284 * python/py-type.c (typy_get_name): New function.
9285 (type_object_getset): Add entry for attribute "name".
9286 * NEWS: Add entry mentioning this new attribute.
9288 2014-01-07 Yao Qi <yao@codesourcery.com>
9290 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9293 2014-01-07 Yao Qi <yao@codesourcery.com>
9295 * gnu-nat.c (info_port_rights): Add qualifier const to
9298 2014-01-07 Yao Qi <yao@codesourcery.com>
9300 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9302 2014-01-07 Yao Qi <yao@codesourcery.com>
9304 * gnu-nat.c (make_inf) Update declaration.
9305 (make_inf): Make it static.
9306 (inf_set_traced): Likewise.
9307 (inf_port_to_thread, inf_task_died_status): Likewise.
9309 2014-01-07 Yao Qi <yao@codesourcery.com>
9311 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9313 2014-01-07 Yao Qi <yao@codesourcery.com>
9315 * gnu-nat.c (_initialize_gnu_nat): Declare.
9317 2014-01-07 Yao Qi <yao@codesourcery.com>
9319 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9321 (struct gdbarch_info) <byte_order>: Change type to
9323 <byte_order_for_code>: Likewise.
9324 * gdbarch.c, gdbarch.h: Regenerated.
9326 2014-01-06 Sasha Smundak <asmundak@google.com>
9328 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9330 2014-01-06 Tom Tromey <tromey@redhat.com>
9332 * doublest.c (convert_doublest_to_floatformat): Use const, not
9334 * somread.c (som_symtab_read): Likewise.
9336 2014-01-07 Hui Zhu <hui@codesourcery.com>
9338 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9339 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9340 (gdb_bfd_fopen): Ditto.
9341 (gdb_bfd_openr): Ditto.
9342 (gdb_bfd_openw): Ditto.
9343 (gdb_bfd_openr_iovec): Ditto.
9344 (gdb_bfd_fdopenr): Ditto.
9345 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9346 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9348 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9350 * symfile-mem.c (symbol_file_add_from_memory): Removed
9351 gdb_bfd_stash_filename.
9353 2014-01-03 Doug Evans <dje@google.com>
9355 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9358 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9360 Update year range in copyright notice of all files.
9362 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9364 * top.c (print_gdb_version): Set copyright year to 2014.
9366 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9368 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9370 For older changes see ChangeLog-2013.
9376 version-control: never