1 2014-06-18 Tom Tromey <tromey@redhat.com>
3 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6 2014-06-18 Tom Tromey <tromey@redhat.com>
8 * probe.c (info_probes_for_ops): Make "arg" const.
9 * probe.h (info_probes_for_ops): Update.
11 2014-06-18 Tom Tromey <tromey@redhat.com>
13 * varobj.c (varobj_create): Update.
14 * valops.c (value_of_this): Update.
15 * tracepoint.c (add_local_symbols, scope_info): Update.
16 * symtab.h (struct general_symbol_info) <block>: Now const.
17 * symtab.c (skip_prologue_sal)
18 (default_make_symbol_completion_list_break_on)
19 (skip_prologue_using_sal): Update.
20 * stack.h (iterate_over_block_locals)
21 (iterate_over_block_local_vars): Update.
22 * stack.c (print_frame_args): Update.
23 (iterate_over_block_locals, iterate_over_block_local_vars): Make
25 (get_selected_block): Make return type const.
26 * python/py-frame.c (frapy_block): Update.
27 * python/py-block.c (gdbpy_block_for_pc): Update.
28 * p-exp.y (%union) <bval>: Now const.
29 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
30 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
31 * m2-exp.y (%union) <bval>: Now const.
32 * linespec.c (get_current_search_block): Make return type const.
33 (create_sals_line_offset, find_label_symbols): Update.
34 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
36 (block_starting_point_at): Make "block" const.
37 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
38 (check_exception_resume): Update.
39 * guile/scm-frame.c (gdbscm_frame_block): Update.
40 * guile/scm-block.c (gdbscm_lookup_block): Update.
41 * frame.h (get_frame_block): Update.
42 (get_selected_block): Make return type const.
43 * frame.c (frame_id_inner): Update.
44 * f-valprint.c (info_common_command_for_block)
45 (info_common_command): Update.
46 * dwarf2loc.c (dwarf2_find_location_expression)
47 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
48 (locexpr_describe_location_piece): Update.
49 * c-exp.y (%union) <bval>: Now const.
50 * breakpoint.c (resolve_sal_pc): Update.
51 * blockframe.c (get_frame_block):Make return type const.
52 (get_pc_function_start, get_frame_function, find_pc_sect_function)
53 (block_innermost_frame): Update.
54 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
55 (block_for_pc, block_for_pc_sect): Update.
56 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
58 (block_for_pc_sect, block_for_pc): Make return type const.
59 * ax-gdb.c (gen_expr): Update.
60 * alpha-mdebug-tdep.c (find_proc_desc): Update.
61 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
62 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
63 (ada_read_var_value): Update.
64 * ada-exp.y (struct name_info) <block>: Now const.
66 (block_lookup): Constify.
68 2014-06-18 Gary Benson <gbenson@redhat.com>
70 * nat/i386-dregs.h: New file.
71 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
72 * i386-nat.h (i386-dregs.h): New include.
73 (DR_FIRSTADDR): Now in i386-dregs.h.
74 (DR_LASTADDR): Likewise.
76 (DR_STATUS): Likewise.
77 (DR_CONTROL): Likewise.
78 (i386_debug_reg_state): Likewise.
79 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
81 2014-06-18 Don Breazeal <donb@codesourcery.com>
83 * breakpoint.c (set_longjmp_breakpoint): Call
84 momentary_breakpoint_from_master with additional argument.
85 (set_longjmp_breakpoint_for_call_dummy): Call
86 momentary_breakpoint_from_master with additional argument.
87 (set_std_terminate_breakpoint): Call
88 momentary_breakpoint_from_master with additional argument.
89 (momentary_breakpoint_from_master): Add argument to function
90 definition and use it to initialize structure member flag.
91 (clone_momentary_breakpoint): Call
92 momentary_breakpoint_from_master with additional argument.
93 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
94 member flags set in momentary_breakpoint_from_master.
96 2014-06-18 Gary Benson <gbenson@redhat.com>
98 * i386-nat.c (i386_show_dr): Renamed to
99 i386_dr_show and made nonstatic. All uses updated.
100 (i386_length_and_rw_bits): Renamed to
101 i386_dr_length_and_rw_bits and made nonstatic.
103 (i386_insert_aligned_watchpoint): Renamed to
104 i386_dr_insert_aligned_watchpoint and made nonstatic.
106 (i386_remove_aligned_watchpoint): Renamed to
107 i386_dr_remove_aligned_watchpoint and made nonstatic.
109 (i386_update_inferior_debug_regs): Renamed to
110 i386_dr_update_inferior_debug_regs and made nonstatic.
113 2014-06-18 Gary Benson <gbenson@redhat.com>
115 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
116 (i386_dr_low_can_set_control): Likewise.
117 (i386_dr_low_set_addr): Likewise.
118 (i386_dr_low_set_control): Likewise.
119 (i386_dr_low_get_addr): Likewise.
120 (i386_dr_low_get_status): Likewise.
121 (i386_dr_low_get_control): Likewise.
122 (i386_insert_aligned_watchpoint): Use new macros.
123 (i386_update_inferior_debug_regs): Likewise.
124 (i386_stopped_data_address): Likewise.
126 2014-06-18 Gary Benson <gbenson@redhat.com>
128 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
129 New parameter. All uses updated.
131 2014-06-18 Gary Benson <gbenson@redhat.com>
133 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
136 2014-06-18 Gary Benson <gbenson@redhat.com>
138 * i386-nat.c (debug_printf): New macro.
139 (i386_get_debug_register_length): Likewise.
140 (TARGET_HAS_DR_LEN_8): Use above macro.
141 (i386_show_dr): Use debug_printf instead of puts_unfiltered
142 and printf_unfiltered. Use phex to format values.
144 2014-06-18 Gary Benson <gbenson@redhat.com>
146 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
149 2014-06-18 Gary Benson <gbenson@redhat.com>
151 * i386-nat.c: Comment changes.
153 2014-06-18 Gary Benson <gbenson@redhat.com>
155 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
157 2014-06-18 Gary Benson <gbenson@redhat.com>
159 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
160 (i386_insert_aligned_watchpoint): Likewise.
161 (i386_remove_aligned_watchpoint): Likewise.
162 (i386_handle_nonaligned_watchpoint): Likewise.
164 2014-06-18 Gary Benson <gbenson@redhat.com>
166 * i386-nat.c: Whitespace changes.
168 2014-06-17 Samuel Bronson <naesten@gmail.com>
170 * MAINTAINERS: Update Roland McGrath's email address.
171 Thanks to Sergio Durigan Junior for pointing out that he left
172 Red Hat a while ago, and giving me a current address.
174 2014-06-17 Tom Tromey <tromey@redhat.com>
176 * utils.h (savestring): Remove declaration.
178 2014-06-17 Tom Tromey <tromey@redhat.com>
180 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
182 2014-06-16 Keith Seitz <keiths@redhat.com>
185 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
186 to update the varobj if inferior_ptid is null_ptid.
188 2014-06-16 Tom Tromey <tromey@redhat.com>
190 * target.h (struct target_ops) <to_info_proc>: Make parameter
192 (target_info_proc): Update.
193 * target.c (target_info_proc): Make "args" const.
194 * procfs.c (procfs_info_proc): Update.
195 * linux-tdep.c (linux_info_proc): Update.
196 (linux_core_info_proc_mappings): Make "args" const.
197 (linux_core_info_proc): Update.
198 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
199 * gdbarch.c: Rebuild.
200 * gdbarch.h: Rebuild.
201 * corelow.c (core_info_proc): Update.
203 2014-06-16 Tom Tromey <tromey@redhat.com>
205 * target.h (struct target_ops) <to_disconnect>: Make parameter
207 (target_disconnect): Update.
208 * target.c (target_disconnect): Make "args" const.
209 * target-delegates.c: Rebuild.
210 * remote.c (remote_disconnect): Update.
211 * record.h (record_disconnect): Update.
212 * record.c (record_disconnect): Update.
213 * inf-child.c (inf_child_disconnect): Update.
215 2014-06-16 Tom Tromey <tromey@redhat.com>
217 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
218 * target.c (debug_to_rcmd, default_rcmd): Update.
219 * target-delegates.c: Rebuild.
220 * remote.c (remote_rcmd): Update.
221 * monitor.c (monitor_rcmd): Update.
223 2014-06-16 Pedro Alves <palves@redhat.com>
225 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
226 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
227 have OBJF_SHARED set.
228 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
229 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
230 instead of OBJF_USERLOADED.
231 * objfiles.h (OBJF_SHARED): Update comment.
232 (userloaded_objfile_contains_address_p): Rename to ...
233 (shared_objfile_contains_address_p): ... this, and update
235 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
237 (remove_symbol_file_command): Skip objfiles that don't have
240 2014-06-16 Tom Tromey <tromey@redhat.com>
242 * minsyms.h (prim_record_minimal_symbol)
243 (prim_record_minimal_symbol_and_info): Update comments.
245 2014-06-14 Eli Zaretskii <eliz@gnu.org>
247 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
248 or --without-guile, according to how GDB was built.
250 2014-06-13 Tom Tromey <tromey@redhat.com>
252 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
254 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
256 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
258 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
259 help_list.Pass all_commands, not -1, to help_list.
260 * cli/cli-dump.c (dump_command, append_command)
261 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
262 (binary_dump_command, binary_append_command): Pass all_commands,
263 not -1, to help_list.
264 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
266 * valprint.c (set_print, set_print_raw): Pass all_commands, not
268 * typeprint.c (set_print_type): Pass all_commands, not -1, to
270 * top.c (set_history): Pass all_commands, not -1, to help_list.
271 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
272 all_commands, not -1, to help_list.
273 * symfile.c (overlay_command): Pass all_commands, not -1, to
275 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
277 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
279 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
281 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
282 not -1, to help_list.
283 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
284 not -1, to help_list.
285 * maint.c (maintenance_command, maintenance_info_command)
286 (maintenance_print_command, maintenance_set_cmd): Pass
287 all_commands, not -1, to help_list.
288 * macrocmd.c (macro_command): Pass all_commands, not -1, to
290 * language.c (set_check): Pass all_commands, not -1, to help_list.
291 * infcmd.c (unset_command): Pass all_commands, not -1, to
293 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
295 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
297 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
299 * breakpoint.c (save_command): Pass all_commands, not -1, to
301 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
302 all_commands, not -1, to help_list.
304 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
306 * regcache.c (struct register_to_invalidate): New structure.
307 (do_register_invalidate, make_cleanup_regcache_invalidate): New
309 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
311 2014-06-12 Yao Qi <yao@codesourcery.com>
313 * varobj.c (varobj_get_num_children): Call
315 (varobj_list_children): Likewise.
316 (varobj_update): Likewise. Update comments.
318 2014-06-12 Yao Qi <yao@codesourcery.com>
320 * varobj.c (varobj_pretty_printed_p): Rename to ...
321 (varobj_is_dynamic_p): ... this. New function.
322 * varobj.h (varobj_pretty_printed_p): Remove declaration.
323 (varobj_is_dynamic_p): Declare.
324 * mi/mi-cmd-var.c (print_varobj): All callers updated.
325 (mi_print_value_p, varobj_update_one): Likewise.
327 2014-06-12 Pedro Alves <pedro@codesourcery.com>
328 Yao Qi <yao@codesourcery.com>
330 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
331 (varobj_get_iterator): Wrap up code for pretty-printer by
332 "#if HAVE_PYTHON" and "#endif".
333 (update_dynamic_varobj_children): Likewise.
335 2014-06-12 Pedro Alves <pedro@codesourcery.com>
336 Yao Qi <yao@codesourcery.com>
338 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
339 gdb_python_initialized is false. Move some code from varobj.c.
340 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
341 * varobj.c: Move "varobj-iter.h" inclusion earlier.
342 (struct varobj_item): Moved to varobj-iter.h".
343 (varobj_clear_saved_item): New function.
344 (update_dynamic_varobj_children): Move python-related code to
346 (free_variable): Call varobj_clear_saved_item and
349 2014-06-12 Pedro Alves <pedro@codesourcery.com>
350 Yao Qi <yao@codesourcery.com>
352 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
353 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
354 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
355 (py-varobj.o): New rule.
356 * python/py-varobj.c: New file.
357 * python/python-internal.h (py_varobj_get_iterator): Declare.
358 * varobj-iter.h: New file.
359 * varobj.c: Include "varobj-iter.h"
360 (struct varobj) <child_iter>: Change its type from "PyObject *"
361 to "struct varobj_iter *".
362 <saved_item>: Likewise.
363 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
364 [HAVE_PYTHON] (varobj_get_iterator): New function.
365 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
366 python-specific code to python/py-varobj.c.
367 (install_visualizer): Call varobj_iter_delete instead of
369 * varobj.h (varobj_ensure_python_env): Declare.
371 2014-06-12 Yao Qi <yao@codesourcery.com>
373 * varobj.c (struct varobj_item): New structure.
374 (create_child_with_value): Update declaration.
375 (varobj_add_child): Replace arguments 'name' and 'value' with
376 'item'. All callers updated.
377 (install_dynamic_child): Likewise.
378 (update_dynamic_varobj_children): Likewise.
379 (varobj_add_child): Likewise.
380 (create_child_with_value): Likewise.
382 2014-06-11 Joel Brobecker <brobecker@adacore.com>
384 * NEWS: Create a new section for the next release branch.
385 Rename the section of the current branch, now that it has
388 2014-06-11 Joel Brobecker <brobecker@adacore.com>
390 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
391 * version.in: Bump version to 7.8.50.DATE-cvs.
393 2014-06-11 Pedro Alves <palves@redhat.com>
396 * ser-mingw.c (net_windows_socket_check_pending): New function.
397 (net_windows_select_thread): Ignore spurious wakeups. Use
398 net_windows_socket_check_pending.
399 (net_windows_wait_handle): Check for pending events with
400 ioctlsocket, through net_windows_socket_check_pending, instead of
401 checking the socket's event.
403 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
405 * python/python-internal.h (gdb_PyObject_GetAttrString)
406 (gdb_PyObject_HasAttrString): New inline function definitions.
407 * py-value.c (get_field_flag): Remove the now unnecessary cast to
408 char * of the second argument to PyObject_GetAttrString.
410 2014-06-10 Joel Brobecker <brobecker@adacore.com>
412 * serial.c (serial_write): Fix index of character to be printed
413 in call to serial_logchar when serial debug traces are enabled.
415 2014-06-10 Joel Brobecker <brobecker@adacore.com>
417 * gdbtypes (resolve_dynamic_range): Add function description.
419 2014-06-09 Pedro Alves <palves@redhat.com>
421 * linux-nat.c (linux_child_follow_fork): Initialize status with
422 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
423 inner block. Only pass the signal to PTRACE_DETACH if in pass
426 2014-06-09 Gary Benson <gbenson@redhat.com>
428 * common/signals.c (gdb_signal_from_host): Reorder to separate
429 the always-available ANSI-standard signals from the signals that
431 (do_gdb_signal_to_host): Likewise.
432 * proc-events.c (signal_table): Likewise.
434 2014-06-08 Hui Zhu <hui@codesourcery.com>
436 * common/linux-ptrace.c (linux_disable_event_reporting): New
438 * common/linux-ptrace.h (linux_disable_event_reporting): New
440 * linux-nat.c (linux_child_follow_fork): Do a single step before
443 2014-06-07 Keith Seitz <keiths@redhat.com>
447 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
448 from symbol_matches_domain in symtab.c. All local callers
449 of symbol_matches_domain updated.
450 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
451 search STRUCT_DOMAIN.
452 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
453 independently. standard_lookup will do that automatically.
454 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
455 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
456 (cp_lookup_symbol_in_namespace): Likewise.
457 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
458 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
459 may return a STRUCT_DOMAIN match.
460 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
461 * cp-support.c: Include language.h.
462 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
464 * psymtab.c (match_partial_symbol): Compare the requested
465 domain with the symbol's domain directly.
466 (lookup_partial_symbol): Likewise.
467 * symtab.c (lookup_symbol_in_language): Explain when/why
468 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
469 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
470 appropriate languages.
471 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
472 and moved to ada-lang.c
473 (lookup_block_symbol): Explain that this function only returns
474 symbol matching the requested DOMAIN.
475 Compare the requested domain with the symbol's domain directly.
476 (iterate_over_symbols): Compare the requested domain with the
477 symbol's domain directly.
478 * symtab.h (symbol_matches_domain): Remove.
480 2014-06-06 Doug Evans <xdje42@gmail.com>
482 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
483 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
484 (gdbscm_guile_version_is_at_least): Declare.
485 (gdbscm_scm_string_to_int): Declare.
486 * guile/guile.c (gdbscm_guile_major_version): New global.
487 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
488 (guile_datadir): New static global.
489 (gdbscm_guile_data_directory): New function.
490 (initialize_scheme_side): Update.
491 (misc_guile_functions): Add guile-data-directory.
492 (initialize_gdb_module): Fetch guile version number.
493 * guile/lib/gdb.scm: Remove call to add-to-load-path.
494 * guile/lib/gdb/init.scm (%initialize!): Ditto.
495 * guile/lib/gdb/boot.scm: Use guile-data-directory.
496 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
498 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
499 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
500 * guile/scm-value.c (gdbscm_value_to_string): Only call
501 scm_port_conversion_strategy if Guile version >= 2.0.6.
503 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
505 * main.c (print_gdb_help): Add -q and --silent.
507 2014-06-06 Gary Benson <gbenson@redhat.com>
509 * common/signals.c: Remove preprocessor conditionals for
510 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
512 * proc-events.c: Likewise.
514 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
516 * symfile.c (symfile_free_objfile): Remove restriction to
518 * symfile-mem.c (symbol_file_add_from_memory): Call
519 add_target_sections_of_objfile.
521 2014-06-05 Ludovic Courtès <ludo@gnu.org>
523 * guile/scm-value.c (gdbscm_history_append_x): Use
524 'vlscm_get_value_smob_arg_unsafe' instead of
525 'vlscm_scm_to_value'.
527 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
530 * utils.c (printchar): Don't escape at all if quoter is NUL.
531 Update function documentation to clarify effect of parameter
533 * remote.c (escape_buffer): Pass '\\' as the quoter to
535 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
537 (mi_solib_unloaded): Same.
539 2014-06-05 Joel Brobecker <brobecker@adacore.com>
541 * development.sh: Delete.
542 * Makefile.in (config.status): Adjust dependency on development.sh.
543 * configure.ac: Adjust development.sh source call.
544 * configure: Regenerate.
546 2014-06-04 Doug Evans <xdje42@gmail.com>
548 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
549 is_scheme_bkpt, spec.
550 (bpscm_make_breakpoint_smob): Initialize new members.
551 (gdbscm_create_breakpoint_x): Split into two ...
552 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
553 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
554 (scheme_function breakpoint_functions): Update.
555 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
556 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
557 register-breakpoint!.
559 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
562 * mem-break.c (z_type_supported): Return zero if
563 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
565 2014-06-04 Tom Tromey <tromey@redhat.com>
567 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
568 value_from_contents_and_address_unresolved.
569 (ada_template_to_fixed_record_type_1): Likewise.
570 (ada_which_variant_applies): Likewise.
571 * value.h (value_from_contents_and_address_unresolved): Declare.
572 * value.c (value_from_contents_and_address_unresolved): New
574 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
575 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
576 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
578 2014-06-04 Tom Tromey <tromey@redhat.com>
580 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
582 2014-06-04 Tom Tromey <tromey@redhat.com>
584 * procfs.c (procfs_attach): Make "args" const.
585 * windows-nat.c (windows_attach): Make "args" const.
586 * nto-procfs.c (procfs_attach): Make "args" const.
587 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
588 * go32-nat.c (go32_attach): Make "args" const.
589 * gnu-nat.c (gnu_attach): Make "args" const.
590 * darwin-nat.c (darwin_attach): Make "args" const.
591 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
592 * linux-nat.c (linux_nat_attach): Make "args" const.
593 * remote.c (extended_remote_attach_1, extended_remote_attach):
595 * target.h (struct target_ops) <to_attach>: Make "args" const.
596 (find_default_attach): Likewise.
597 * utils.c (parse_pid_to_attach): Make "args" const.
598 * utils.h (parse_pid_to_attach): Update.
600 2014-06-04 Tom Tromey <tromey@redhat.com>
602 * target-delegates.c: Rebuild.
603 * target.c (default_thread_address_space): New function.
604 (target_thread_address_space): Simplify.
605 * target.h (struct target_ops) <to_thread_address_space>: Add
608 2014-06-04 Doug Evans <xdje42@gmail.com>
610 * guile/scm-type.c (type_smob): Remove duplicate typedef.
612 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
614 * record-btrace.c: Include event-loop.h and inf-loop.h.
615 (record_btrace_resume_exec_dir)
616 (record_btrace_async_inferior_event_handler)
617 (record_btrace_handle_async_inferior_event): New.
618 (record_btrace_open): Create async event handler.
619 (record_btrace_close): Delete async event handler.
620 (record_btrace_resume): Set record_btrace_resume_exec_dir,
621 Mark async event handler.
622 (record_btrace_execution_direction): New.
623 (init_record_btrace_ops): Initialize to_execution_direction.
625 2014-06-03 Doug Evans <xdje42@gmail.com>
627 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
628 (gdbscm_make_parameter): Ditto.
630 2014-06-03 Doug Evans <dje@google.com>
632 * exec.c (exec_close_1): Call clear_section_table instead of
633 resize_section_table.
634 (clear_section_table): New function.
635 (resize_section_table): Make static. Rename arg num_added to
637 * exec.h (clear_section_table): Declare.
638 (resize_section_table): Delete.
639 * progspace.c (release_program_space): Call clear_section_table
640 instead of resize_section_table.
642 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
644 * NEWS (Python Scripting): Add entry about the new xmethods
647 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
649 * python/py-xmethods.c: New file.
650 * python/py-objfile.c (objfile_object): New field 'xmethods'.
651 (objfpy_dealloc): XDECREF on the new xmethods field.
652 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
654 (objfpy_get_xmethods): New function.
655 (objfile_getset): New entry 'xmethods'.
656 * python/py-progspace.c (pspace_object): New field 'xmethods'.
657 (pspy_dealloc): XDECREF on the new xmethods field.
658 (pspy_new, pspace_to_pspace_object): Initialize xmethods
660 (pspy_get_xmethods): New function.
661 (pspace_getset): New entry 'xmethods'.
662 * python/python-internal.h: Add declarations for new functions.
663 * python/python.c (_initialize_python): Invoke
664 gdbpy_initialize_xmethods.
665 * python/lib/gdb/__init__.py (xmethods): New
667 * python/lib/gdb/xmethod.py: New file.
668 * python/lib/gdb/command/xmethods.py: New file.
670 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
672 * eval.c (evaluate_subexp_standard): Call the xmethod if the
673 best match method returned by find_overload_match is an xmethod.
674 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
675 the best matching operator returned by find_overload_match is an
677 * valops.c: #include "extension.h".
678 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
679 Return void. The list of matching source methods is returned in
680 "fn_list" and a vector of matching debug method workers is
681 returned in "xm_worker_vec". Update all callers.
682 (value_find_oload_method_list): Likewise.
683 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
684 non-NULL, then the index of the best matching method in this
685 vector is returned. Update all callers.
686 (find_overload_match): Include xmethods while performing overload
689 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
691 * defs.h (enum lval_type): New enumerator "lval_xcallable".
692 * extension-priv.h (struct extension_language_ops): Add the
694 * extension.c (new_xmethod_worker, clone_xmethod_worker,
695 get_matching_xmethod_workers, get_xmethod_argtypes,
696 invoke_xmethod, free_xmethod_worker,
697 free_xmethod_worker_vec): New functions.
698 * extension.h: #include "common/vec.h".
699 New function declarations.
700 (struct xmethod_worker): New struct.
701 (VEC (xmethod_worker_ptr)): New vector type.
702 (xmethod_worker_ptr): New typedef.
703 (xmethod_worker_vec): Likewise.
704 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
706 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
707 (struct builtin_type): New field "xmethod".
708 * valarith.c (value_ptradd): Assert that the value argument is not
710 * valops.c (value_must_coerce_to_target): Return 0 for
711 lval_xcallable values.
712 * value.c (struct value): New field XM_WORKER in the field
714 (value_address, value_raw_address): Return 0 for lval_xcallable
716 (set_value_address): Assert that the value is not an
718 (value_free): Free the associated xmethod worker when freeing
719 lval_xcallable values.
720 (set_value_component_location): Assert that the WHOLE value is not
722 (value_of_xmethod, call_xmethod): New functions.
723 * value.h: Declare "struct xmethod_worker".
724 Declare new functions value_of_xmethod, call_xmethod.
726 2014-06-03 Joel Brobecker <brobecker@adacore.com>
727 Pedro Alves <palves@redhat.com>
730 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
731 New function, extracted from software_breakpoint_inserted_here_p.
732 (software_breakpoint_inserted_here_p): Replace factored out code
733 by call to find_non_raw_software_breakpoint_inserted_here.
734 (bp_target_info_copy_insertion_state): New function.
735 (bkpt_insert_location): Handle the case of a single-step
736 breakpoint already inserted at the same address.
737 (bkpt_remove_location): Handle the case of a single-step
738 breakpoint still inserted at the same address.
739 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
740 breakpoint already inserted at the same address.
741 (deprecated_remove_raw_breakpoint): Handle the case of a
742 non-raw breakpoint still inserted at the same address.
743 (find_single_step_breakpoint): New function, extracted from
744 single_step_breakpoint_inserted_here_p.
745 (find_single_step_breakpoint): New function,
746 factored out from single_step_breakpoint_inserted_here_p.
747 (single_step_breakpoint_inserted_here_p): Reimplement.
749 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
751 Pushed by Joel Brobecker <brobecker@adacore.com>
752 * source.c (show_substitute_path_command): Fix display of matching
755 2014-06-03 Gary Benson <gbenson@redhat.com>
757 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
759 2014-06-02 Doug Evans <xdje42@gmail.com>
761 Add parameter support for Guile.
762 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
763 (SUBDIR_GUILE_SRCS): Add scm-param.c.
764 (scm-param.o): New rule.
765 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
766 (gdbscm_misc_error): Declare.
767 (gdbscm_canonicalize_command_name): Declare.
768 (gdbscm_scm_to_host_string): Declare.
769 (gdbscm_scm_from_host_string): Declare.
770 (gdbscm_initialize_parameters): Declare.
771 * guile/guile.c (initialize_gdb_module): Call
772 gdbscm_initialize_parameters.
773 * guile/lib/gdb.scm: Export parameter symbols.
774 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
775 cmdscm_canonicalize_name and made public. All callers updated.
776 * guile/scm-exception.c (gdbscm_misc_error): New function.
777 * guile/scm-param.c: New file.
778 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
779 (gdbscm_scm_to_host_string): New function.
780 (gdbscm_scm_from_host_string): New function.
781 * scm-utils.c (gdbscm_gc_dup_argv): New function.
783 2014-06-02 Doug Evans <xdje42@gmail.com>
785 Add command support for Guile.
786 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
787 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
788 (scm-cmd.o): New rule.
789 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
790 (gdbscm_user_error_p): Declare.
791 (gdbscm_parse_command_name): Declare.
792 (gdbscm_valid_command_class_p): Declare.
793 (gdbscm_initialize_commands): Declare.
794 * guile/guile.c (initialize_gdb_module): Call
795 gdbscm_initialize_commands.
796 * guile/lib/gdb.scm: Export command symbols.
797 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
798 (throw-user-error): New function.
799 * guile/scm-cmd.c: New file.
800 * guile/scm-exception.c (user_error_symbol): New static global.
801 (gdbscm_user_error_p): New function.
802 (gdbscm_initialize_exceptions): Set user_error_symbol.
803 * scm-utils.c (gdbscm_gc_xstrdup): New function.
805 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
807 * top.c (command_loop): Handle comments here...
808 (command_line_input): ... not here.
810 2014-06-02 Doug Evans <xdje42@gmail.com>
812 Add progspace support for Guile.
813 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
814 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
815 (scm-progspace.o): New rule.
816 * guile/guile-internal.h (pspace_smob): New typedef.
817 (psscm_pspace_smob_pretty_printers): Declare.
818 (psscm_pspace_smob_from_pspace): Declare.
819 (psscm_scm_from_pspace): Declare.
820 * guile/guile.c (initialize_gdb_module): Call
821 gdbscm_initialize_pspaces.
822 * guile/lib/gdb.scm: Export progspace symbols.
823 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
825 (append-pretty-printer!): Ditto.
826 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
828 * guile/scm-progspace.c: New file.
830 2014-06-03 Alan Modra <amodra@gmail.com>
832 * ppc64-tdep.c (ppc64_standard_linkage8): New.
833 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
835 2014-06-02 Doug Evans <dje@google.com>
837 Add support for skeletonless type units.
838 * dwarf2read.c (struct dwarf2_per_objfile): New member
839 n_allocated_type_units.
840 (struct dwarf2_per_objfile) <tu_stats>: New member
841 nr_all_type_units_reallocs.
842 (create_signatured_type_table_from_index): Initialize
843 n_allocated_type_units
844 (create_all_type_units): Ditto.
845 (add_type_unit): Move up in file. New arg slot.
846 All callers updated. Increase space for all_type_units more
848 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
849 (lookup_dwo_signatured_type): Handle skeletonless TUs.
850 (lookup_dwp_signatured_type): Ditto.
851 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
853 (build_type_psymtabs_1): Leave type_unit_groups as
854 NULL if no TUs present.
855 (print_tu_stats): New function.
856 (process_skeletonless_type_unit): New function.
857 (process_dwo_file_for_skeletonless_type_units): New
859 (process_skeletonless_type_units): New function.
860 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
861 Call print tu_stats if debugging enabled.
863 2014-06-02 Pedro Alves <palves@redhat.com>
865 * breakpoint.c (build_target_command_list): Don't build a command
866 list if we have any duplicate location that isn't a dprintf.
868 2014-06-02 Pedro Alves <palves@redhat.com>
870 * breakpoint.c (dprintf_breakpoint_hit): New function.
871 (initialize_breakpoint_ops): Install it as dprintf's
872 breakpoint_hit method.
874 2014-06-02 Joel Brobecker <brobecker@adacore.com>
876 * source.c (substitute_path_rule_matches): Simplify using
877 filename_ncmp instead of FILENAME_CMP.
879 2014-06-02 Joel Brobecker <brobecker@adacore.com>
881 * source.c (substitute_path_rule_matches): Remove trailing spaces.
883 2014-06-01 Ludovic Courtès <ludo@gnu.org>
885 * configure.ac: When Guile is available, check for the
886 availability of 'scm_new_smob'.
887 * configure, config.h.in: Regenerate.
888 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
891 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
893 * frame.c (struct frame_info): Add stop_string field.
894 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
895 (get_prev_frame_always): Old content moved into
896 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
897 TRY_CATCH, handle MEMORY_ERROR exceptions.
898 (frame_stop_reason_string): New function definition.
899 * frame.h (unwind_stop_reason_to_string): Extend comment to
900 mention frame_stop_reason_string.
901 (frame_stop_reason_string): New function declaration.
902 * stack.c (frame_info): Switch to frame_stop_reason_string.
903 (backtrace_command_1): Switch to frame_stop_reason_string.
904 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
905 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
906 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
908 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
910 * frame.c (frame_stop_reason_string): Rename to ...
911 (unwind_stop_reason_to_string): this.
912 * frame.h (frame_stop_reason_string): Rename to ...
913 (unwind_stop_reason_to_string): this.
914 * stack.c (frame_info): Update call to frame_stop_reason_string.
915 (backtrace_command_1): Likewise.
916 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
917 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
919 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
921 * frame.c (remove_prev_frame): New function.
922 (get_prev_frame_if_no_cycle): Create / discard cleanup using
925 2014-05-29 Pedro Alves <palves@redhat.com>
927 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
928 and make it const. When a single-step decays to a continue,
929 clear 'step', not 'hw_step'. Pass whether the caller wanted
930 to step to user_visible_resume_ptid, not what we ask the
933 2014-05-29 Pedro Alves <palves@redhat.com>
935 * infrun.c (process_event_stop_test, handle_step_into_function)
936 (handle_step_into_function_backward): Adjust.
937 Don't set the even thread's stop_step and call stop_waiting before
938 calling end_stepping_range. Instead do that ...
939 (end_stepping_range): ... here. Take an ecs pointer parameter.
941 2014-05-29 Pedro Alves <palves@redhat.com>
943 * infrun.c (stop_stepping): Rename to ...
944 (stop_waiting): ... this.
945 (proceed): Update comment.
946 (process_event_stop_test, handle_inferior_event)
947 (handle_signal_stop, handle_step_into_function)
948 (handle_step_into_function_backward): Update.
950 2014-05-29 Pedro Alves <palves@redhat.com>
952 * infcall.c (run_inferior_call): Don't check whether the current
953 thread is running after the proceed call.
955 2014-05-29 Pedro Alves <palves@redhat.com>
956 Tom Tromey <tromey@redhat.com>
958 * NEWS: Mention "maint set target-async", "set mi-async", and that
959 background execution commands are now always available.
960 * target.h (target_async_permitted): Update comment.
961 * target.c (target_async_permitted, target_async_permitted_1):
963 (set_target_async_command): Rename to ...
964 (maint_set_target_async_command): ... this.
965 (show_target_async_command): Rename to ...
966 (maint_show_target_async_command): ... this.
967 (_initialize_target): Adjust.
968 * infcmd.c (prepare_execution_command): Make extern.
969 * inferior.h (prepare_execution_command): Declare.
970 * infrun.c (set_observer_mode): Leave target async alone.
971 * mi/mi-interp.c (mi_interpreter_init): Install
972 mi_on_sync_execution_done as sync_execution_done observer.
973 (mi_on_sync_execution_done): New function.
974 (mi_execute_command_input_handler): Don't print the prompt if we
975 just started a synchronous command with an async target.
976 (mi_on_resume): Check sync_execution before printing prompt.
977 * mi/mi-main.h (mi_async_p): Declare.
978 * mi/mi-main.c: Include gdbcmd.h.
979 (mi_async_p): New function.
980 (mi_async, mi_async_1): New globals.
981 (set_mi_async_command, show_mi_async_command, mi_async): New
983 (exec_continue): Call prepare_execution_command.
984 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
985 (mi_execute_async_cli_command): Use mi_async_p.
986 (_initialize_mi_main): Install "set mi-async". Make
987 "target-async" a deprecated alias.
989 2014-05-29 Pedro Alves <palves@redhat.com>
991 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
992 (_initialize_cli_interp): Adjust.
993 * event-loop.c: Include "observer.h".
994 (start_event_loop): Notify 'command_error' observers instead of
995 calling display_gdb_prompt. Remove FIXME comment.
996 * event-top.c (display_gdb_prompt): Remove call into the
998 * inf-loop.c: Include "observer.h".
999 (inferior_event_handler): Notify 'command_error' observers instead
1000 of calling display_gdb_prompt.
1001 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1002 observers instead of calling display_gdb_prompt.
1003 * interps.c (interp_set): Don't call display_gdb_prompt.
1004 (current_interp_display_prompt_p): Delete.
1005 * interps.h (interp_prompt_p): Delete declaration.
1006 (interp_prompt_p_ftype): Delete.
1007 (struct interp_procs) <prompt_proc_p>: Delete field.
1008 (current_interp_display_prompt_p): Delete declaration.
1009 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1010 (_initialize_mi_interp): Adjust.
1011 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1012 'command_error' observers.
1013 (tui_on_sync_execution_done, tui_on_command_error): New
1015 (tui_display_prompt_p): Delete.
1016 (_initialize_tui_interp): Adjust.
1018 2014-05-29 Pedro Alves <palves@redhat.com>
1021 * cli/cli-interp.c: Include infrun.h and observer.h.
1022 (cli_uiout, cli_interp): New globals.
1023 (cli_on_signal_received, cli_on_end_stepping_range)
1024 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1026 (cli_interpreter_init): Install them as 'end_stepping_range',
1027 'signal_received' 'signal_exited', 'exited' and 'no_history'
1029 (_initialize_cli_interp): Remove cli_interp local.
1030 * infrun.c (handle_inferior_event): Call the several stop reason
1031 observers instead of printing the stop reason directly.
1032 (end_stepping_range): New function.
1033 (print_end_stepping_range_reason, print_signal_exited_reason)
1034 (print_exited_reason, print_signal_received_reason)
1035 (print_no_history_reason): Make static, and add an uiout
1036 parameter. Print to that instead of to CURRENT_UIOUT.
1037 * infrun.h (print_end_stepping_range_reason)
1038 (print_signal_exited_reason, print_exited_reason)
1039 (print_signal_received_reason print_no_history_reason): New
1041 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1043 <cli_uiout>: New field.
1044 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1045 uiout for CLI output. Install 'signal_received',
1046 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1048 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1049 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1050 (mi_on_no_history): New functions.
1051 (ui_out_free_cleanup): Delete function.
1052 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1053 instead use the one already stored in the MI interpreter data.
1054 (mi_ui_out): Adjust.
1055 * tui/tui-interp.c: Include infrun.h and observer.h.
1056 (tui_interp): New global.
1057 (tui_on_signal_received, tui_on_end_stepping_range)
1058 (tui_on_signal_exited, tui_on_exited)
1059 (tui_on_no_history): New functions.
1060 (tui_init): Install them as 'end_stepping_range',
1061 'signal_received' 'signal_exited', 'exited' and 'no_history'
1063 (_initialize_tui_interp): Delete tui_interp local.
1065 2014-05-29 Pedro Alves <palves@redhat.com>
1068 * linux-nat.c (linux_nat_resume_callback): Rename the second
1069 parameter to 'except'. Skip LP if it points to EXCEPT.
1070 (linux_nat_resume): Don't mark the event lwp as not stopped
1071 before resuming sibling lwps. Instead ask
1072 linux_nat_resume_callback to skip the event lwp. Mark it as not
1073 stopped after actually resuming it.
1074 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1076 (wait_lwp): Mark the lwp as stopped here.
1077 (stop_wait_callback): Mark the lwp as not stopped right after
1078 resuming it. Don't mark lwps as stopped here.
1079 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1080 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1082 2014-05-29 Pedro Alves <palves@redhat.com>
1085 * infrun.c (resume): Determine how much to resume depending on
1086 whether the caller wanted a step, not whether we can hardware step
1087 the target. Mark all threads that we intend to run as running,
1088 unless we're calling an inferior function.
1089 (normal_stop): If the thread is running an infcall, don't finish
1091 * target.c (target_resume): Don't mark threads as running here.
1093 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1095 * serial.c (_initialize_serial): Remove support for
1096 the "set remotebaud" and "show remotebaud" commands.
1097 * NEWS: Add entry documenting the removal of that command.
1099 2014-05-28 Yao Qi <yao@codesourcery.com>
1101 * charset.c: Fix typo in comments.
1103 2014-05-27 Gary Benson <gbenson@redhat.com>
1105 * utils.c (internal_vproblem): Prompt for a bug report.
1107 2014-05-26 Andy Wingo <wingo@igalia.com>
1109 * guile/scm-arch.c (arscm_mark_arch_smob):
1110 * guile/scm-block.c (bkscm_mark_block_smob)
1111 (bkscm_mark_block_syms_progress_smob):
1112 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1113 * guile/scm-exception.c (exscm_mark_exception_smob):
1114 * guile/scm-frame.c (frscm_mark_frame_smob):
1115 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1116 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1117 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1118 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1119 (ppscm_mark_pretty_printer_worker_smob):
1120 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1121 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1122 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1123 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1125 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1128 2014-05-26 Andy Wingo <wingo@igalia.com>
1129 Doug Evans <xdje42@gmail.com>
1131 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1132 empty_base_class. All uses updated.
1133 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1134 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1136 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1137 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1138 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1139 (gdbscm_gsmob_has_property_p, add_property_name)
1140 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1141 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1142 (gdb-object-has-property?, gdb-object-properties): Remove.
1143 (gdb-object-kind): Renamed from gsmob-kind.
1145 2014-05-26 Andy Wingo <wingo@igalia.com>
1147 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1148 * configure: Regenerate.
1150 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1152 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1154 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1156 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1157 (replay_memory_access_read_only, replay_memory_access_read_write)
1158 (replay_memory_access_types, replay_memory_access)
1159 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1160 (cmd_set_record_btrace, cmd_show_record_btrace)
1161 (cmd_show_replay_memory_access): New.
1162 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1163 (record_btrace_remove_breakpoint): Replace
1164 record_btrace_allow_memory_access with replay_memory_access.
1165 (_initialize_record_btrace): Add commands.
1166 * NEWS: Announce it.
1168 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1170 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1172 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1174 * MAINTAINERS (Write After Approval): Move self back from
1177 2014-05-22 Pedro Alves <palves@redhat.com>
1179 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1180 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1181 (disable_randomization, enum exec_direction_kind)
1182 (execution_direction, stop_registers, start_remote)
1183 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1184 (wait_for_inferior, normal_stop, get_last_target_status)
1185 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1186 (insert_step_resume_breakpoint_at_sal)
1187 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1188 (set_step_info, print_stop_event, signal_stop_state)
1189 (signal_print_state, signal_pass_state, signal_stop_update)
1190 (signal_print_update, signal_pass_update)
1191 (update_signals_program_target, clear_exit_convenience_vars)
1192 (displaced_step_dump_bytes, update_observer_mode)
1193 (signal_catch_update, gdb_signal_from_command): Move
1195 * infrun.h: ... to this new file.
1196 * amd64-tdep.c: Include infrun.h.
1197 * annotate.c: Include infrun.h.
1198 * arch-utils.c: Include infrun.h.
1199 * arm-linux-tdep.c: Include infrun.h.
1200 * arm-tdep.c: Include infrun.h.
1201 * break-catch-sig.c: Include infrun.h.
1202 * breakpoint.c: Include infrun.h.
1203 * common/agent.c: Include infrun.h instead of inferior.h.
1204 * corelow.c: Include infrun.h.
1205 * event-top.c: Include infrun.h.
1206 * go32-nat.c: Include infrun.h.
1207 * i386-tdep.c: Include infrun.h.
1208 * inf-loop.c: Include infrun.h.
1209 * infcall.c: Include infrun.h.
1210 * infcmd.c: Include infrun.h.
1211 * infrun.c: Include infrun.h.
1212 * linux-fork.c: Include infrun.h.
1213 * linux-nat.c: Include infrun.h.
1214 * linux-thread-db.c: Include infrun.h.
1215 * monitor.c: Include infrun.h.
1216 * nto-tdep.c: Include infrun.h.
1217 * procfs.c: Include infrun.h.
1218 * record-btrace.c: Include infrun.h.
1219 * record-full.c: Include infrun.h.
1220 * remote-m32r-sdi.c: Include infrun.h.
1221 * remote-mips.c: Include infrun.h.
1222 * remote-notif.c: Include infrun.h.
1223 * remote-sim.c: Include infrun.h.
1224 * remote.c: Include infrun.h.
1225 * reverse.c: Include infrun.h.
1226 * rs6000-tdep.c: Include infrun.h.
1227 * s390-linux-tdep.c: Include infrun.h.
1228 * solib-irix.c: Include infrun.h.
1229 * solib-osf.c: Include infrun.h.
1230 * solib-svr4.c: Include infrun.h.
1231 * target.c: Include infrun.h.
1232 * top.c: Include infrun.h.
1233 * windows-nat.c: Include infrun.h.
1234 * mi/mi-interp.c: Include infrun.h.
1235 * mi/mi-main.c: Include infrun.h.
1236 * python/py-threadevent.c: Include infrun.h.
1238 2014-05-22 Pedro Alves <palves@redhat.com>
1240 * infrun.c (handle_inferior_event): Store the exit code for
1241 --return-child-result here, instead of ...
1242 (print_exited_reason): ... here.
1244 2014-05-21 Pedro Alves <palves@redhat.com>
1247 * gdbthread.h (struct thread_control_state): New field
1249 * infrun.c (follow_fork): Copy the new thread control field to the
1251 (clear_proceed_status_thread): Clear the new thread control field.
1252 (proceed): Set the new thread control field.
1253 * interps.h (command_interp): Declare.
1254 * interps.c (command_interpreter): New global.
1255 (command_interp): New function.
1256 (interp_exec): Set `command_interpreter' while here.
1257 * cli-out.c (cli_uiout_dtor): New function.
1258 (cli_ui_out_impl): Install it.
1259 * mi/mi-interp.c: Include cli-out.h.
1260 (mi_cmd_interpreter_exec): Add comment.
1261 (restore_current_uiout_cleanup): New function.
1262 (ui_out_free_cleanup): New function.
1263 (mi_on_normal_stop): If finishing an execution command started by
1264 a CLI command, or any kind of breakpoint-like event triggered,
1265 print the stop event to the output (CLI) stream.
1266 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1268 2014-05-21 Pedro Alves <palves@redhat.com>
1270 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1271 current source line having changed.
1272 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1273 * infrun.c (normal_stop): Adjust call to
1274 set_current_sal_from_frame.
1275 * source.c (clear_lines_listed_range): New function.
1276 (set_current_source_symtab_and_line, identify_source_line): Clear
1277 the lines listed range.
1278 (line_info): Handle the first "info line" after the current source
1279 line having changed.
1280 * stack.c (print_stack_frame): Remove center handling.
1281 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1284 2014-05-21 Pedro Alves <palves@redhat.com>
1286 * inf-child.c (inf_child_mourn_inferior): New function.
1287 * inf-child.h (inf_child_mourn_inferior): New declaration.
1288 * darwin-nat.c (darwin_mourn_inferior): Use
1289 inf_child_mourn_inferior.
1290 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1291 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1292 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1293 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1294 * windows-nat.c (windows_mourn_inferior): Likewise.
1296 2014-05-21 Doug Evans <xdje42@gmail.com>
1298 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1300 2014-05-21 Doug Evans <xdje42@gmail.com>
1302 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1303 (gdbscm_out_of_range_error): Ditto.
1304 (gdbscm_memory_error): Ditto.
1305 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1306 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1307 (gdbscm_out_of_range_error): Update.
1308 (gdbscm_memory_error): Update.
1309 (gdbscm_scm_to_target_string_unsafe): Delete.
1311 2014-05-21 Pedro Alves <palves@redhat.com>
1313 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1315 (inf_child_open_target): New function.
1316 (inf_child_open): Use inf_child_open_target to push the target
1317 instead of erroring out.
1318 (inf_child_disconnect, inf_child_close)
1319 (inf_child_maybe_unpush_target): New functions.
1320 (inf_child_target): Install inf_child_disconnect and
1321 inf_child_close. Store a pointer to the returned object.
1322 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1324 * target.c (auto_connect_native_target): New global.
1325 (show_default_run_target): New function.
1326 (find_default_run_target): Return NULL if automatically connecting
1327 to the native target is disabled.
1328 (_initialize_target): Install set/show auto-connect-native-target.
1329 * NEWS: Mention "set auto-connect-native-target", and "target
1331 * linux-nat.c (super_close): New global.
1332 (linux_nat_close): Call super_close.
1333 (linux_nat_add_target): Store a pointer to the base class's
1335 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1336 inf_child_maybe_unpush.
1337 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1339 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1340 the inferior. Use inf_child_maybe_unpush_target.
1341 (inf_ttrace_attach): Don't push the target if it is already
1343 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1344 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1345 after mourning the inferior. Use inf_child_maybe_unpush_target.
1346 (darwin_attach_pid): Don't push the target if it is already
1348 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1349 mourning the inferior. Use inf_child_maybe_unpush_target.
1350 (gnu_detach): Use inf_child_maybe_unpush_target.
1351 * go32-nat.c (go32_create_inferior): Don't push the target if it
1353 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1354 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1355 (procfs_open): Rename to ...
1356 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1357 comments. Can target_preopen before changing node. Call
1358 inf_child_open_target to push the target explicitly.
1359 (procfs_attach): Don't push the target if it is already pushed.
1360 (procfs_detach): Use inf_child_maybe_unpush_target.
1361 (procfs_create_inferior): Don't push the target if it is already
1363 (nto_native_ops): New global.
1364 (procfs_open): Reimplement.
1365 (procfs_native_open): New function.
1366 (init_procfs_targets): Install procfs_native_open as to_open of
1367 "target native". Store a pointer to the "native" target in
1369 * procfs.c (procfs_attach): Don't push the target if it is already
1371 (procfs_detach): Use inf_child_maybe_unpush_target.
1372 (procfs_mourn_inferior): Only unpush the target after mourning the
1373 inferior. Use inf_child_maybe_unpush_target.
1374 (procfs_init_inferior): Don't push the target if it is already
1376 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1377 if it is already pushed.
1379 2014-05-21 Pedro Alves <palves@redhat.com>
1381 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1382 and "procfs" targets are now called "native" instead.
1384 2014-05-21 Pedro Alves <palves@redhat.com>
1386 * go32-nat.c (go32_open): Delete.
1387 (go32_target): Don't override the to_open method.
1389 2014-05-21 Pedro Alves <palves@redhat.com>
1391 * nto-procfs.c (procfs_can_run): New function.
1392 (nto_procfs_ops): New global.
1393 (init_procfs_targets): New, based on procfs_target. Install
1394 "target native" in addition to "target procfs".
1395 (_initialize_procfs): Call init_procfs_targets instead of adding
1398 2014-05-21 Pedro Alves <palves@redhat.com>
1400 * windows-nat.c (windows_target): Don't override to_shortname,
1401 to_longname or to_doc.
1403 2014-05-21 Pedro Alves <palves@redhat.com>
1405 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1408 2014-05-21 Pedro Alves <palves@redhat.com>
1410 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1411 to_shortname, to_longname or to_doc.
1413 2014-05-21 Pedro Alves <palves@redhat.com>
1415 * go32-nat.c (go32_target): Don't override to_shortname,
1416 to_longname or to_doc.
1418 2014-05-21 Pedro Alves <palves@redhat.com>
1420 * inf-child.c (inf_child_open): Remove mention of "child".
1421 (inf_child_target): Rename target to "native" instead of "child".
1423 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425 * Makefile.in (SFILES): Delete "regset.c".
1426 (COMMON_OBS): Delete "regset.o".
1428 * regset.h (regset_alloc): Delete prototype.
1430 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1432 * sparc-linux-tdep.c (sparc32_linux_gregset)
1433 (sparc32_linux_fpregset): New static regset structures.
1434 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1435 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1437 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1438 (sparc64_linux_fpregset): New static regset structures.
1439 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1440 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1441 New static regset structures.
1442 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1443 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1444 New static regset structures.
1445 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1446 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1447 New static regset structures.
1448 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1449 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1450 New static regset structures.
1451 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1453 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1455 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1456 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1457 register maps ("regmaps") from "*regset" to "*regmap". Do this
1458 for all regmap types and variables.
1459 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1460 (sparc32_linux_supply_core_gregset)
1461 (sparc32_linux_collect_core_gregset)
1462 (sparc32_linux_supply_core_fpregset)
1463 (sparc32_linux_collect_core_fpregset): Likewise.
1464 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1465 (sparc_gregmap, sparc_fpregmap): ... these.
1466 (sparc_supply_gregset, sparc_collect_gregset)
1467 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1468 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1469 (_initialize_sparc_nat): Rename regmaps.
1470 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1471 (sparc_gregmap, sparc_fpregmap): ... these.
1472 (sparc_supply_gregset, sparc_collect_gregset)
1473 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1474 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1476 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1477 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1479 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1481 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1482 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1483 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1485 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1486 (sparc32_bsd_fpregset): Rename to...
1487 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1488 (sparc32_bsd_fpregmap): ... these.
1489 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1490 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1491 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1492 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1493 (struct sparc_gregmap, struct sparc_fpregmap)
1494 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1495 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1496 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1497 (sparc32_supply_regset, sparc32_collect_gregset)
1498 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1500 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1501 (sparc64_linux_ptrace_gregmap): ... this.
1502 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1503 (_initialize_sparc64_linux_nat): Rename regmaps.
1504 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1505 (sparc64_linux_core_gregmap): ... this.
1506 (sparc64_linux_supply_core_gregset)
1507 (sparc64_linux_collect_core_gregset)
1508 (sparc64_linux_supply_core_fpregset)
1509 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1510 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1511 (sparc64_sol2_fpregset): Rename to...
1512 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1513 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1514 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1516 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1517 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1518 (sparc64_bsd_fpregset): Rename to...
1519 (struct sparc_gregmap, sparc64_sol2_gregmap)
1520 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1521 (sparc64_bsd_fpregmap): ... these.
1522 (sparc64_supply_gregset, sparc64_collect_gregset)
1523 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1525 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1526 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1527 (sparc64fbsd_gregmap): ... this.
1528 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1529 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1531 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1532 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1533 (sparc64nbsd_collect_fpregset): Likewise.
1534 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1535 (sparc64nbsd_gregmap): ... this.
1536 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1538 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1539 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1540 (sparc64obsd_gregmap): ... this.
1541 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1543 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1544 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1545 (sparc32nbsd_gregmap): ... this.
1546 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1549 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1551 * score-tdep.c (score7_linux_gregset): New static regset
1553 (score7_linux_regset_from_core_section): Remove dynamic regset
1555 (score_gdbarch_init): Drop allocation of tdep structure.
1556 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1558 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1560 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1562 (am33_regset_from_core_section): Remove dynamic regset
1565 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1567 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1568 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1570 (mips_linux_regset_from_core_section): Remove dynamic regset
1572 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1573 'gregset64', 'fpregset', and 'fpregset64'.
1574 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1575 deleted tdep fields.
1577 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1579 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1581 (amd64_regset_from_core_section): Remove dynamic regset
1583 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1585 (amd64obsd_regset_from_core_section): Remove dynamic regset
1587 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1589 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1590 x86-common regset supply function.
1591 * i386-tdep.c (i386_collect_gregset): Make static.
1592 (i386_gregset): New global regset structure.
1593 (i386_fpregset, i386_xstateregset): New static regset structures.
1594 (i386_regset_from_core_section): Remove dynamic regset
1596 (i386_gdbarch_init): Remove initialization of tdep fields
1597 'gregset', 'fpregset', and 'xstateregset'.
1598 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1599 'fpregset', and 'xstateregset'.
1600 (i386_collect_gregset): Remove prototype.
1601 (i386_gregset): New declaration.
1602 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1604 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1610 (arm_linux_vfpregset): New static regset structures.
1611 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1613 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1614 and 'vfpregset' fields.
1616 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1618 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1619 (aarch64_linux_fpregset): New static regset structures.
1620 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1621 of regset structures.
1622 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1625 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1627 * regset.h (struct regset): Remove gdbarch field.
1628 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1629 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1630 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1632 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1633 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1634 (ppc32_linux_vsxregset): Likewise.
1635 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1636 via the regcache instead of the regset.
1637 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1638 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1639 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1640 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1643 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1645 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1646 Constify structures.
1647 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1648 (alphanbsd_aout_gregset): Likewise.
1649 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1650 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1652 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1653 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1655 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1656 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1657 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1658 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1659 * m88k-tdep.c (m88k_gregset): Likewise.
1660 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1661 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1662 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1663 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1664 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1665 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1666 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1667 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1668 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1670 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1671 * sh-tdep.h (sh_corefile_gregset): Likewise.
1672 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1673 * vax-tdep.c (vax_gregset): Likewise.
1675 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 Fix TLS access for -static -pthread.
1678 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1679 (try_thread_db_load_1): Initialize it.
1680 (thread_db_get_thread_local_address): Call it if LM is zero.
1681 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1682 * target.h (struct target_ops) (to_get_thread_local_address): Add
1683 load_module_addr comment.
1685 2014-05-21 Pedro Alves <palves@redhat.com>
1687 * dcache.c (dcache_read_memory_partial): If reading the cache line
1688 fails, fallback to reading just the memory the caller wanted.
1690 2014-05-20 Doug Evans <dje@google.com>
1692 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1693 instead of get_current_arch.
1695 2014-05-20 Pedro Alves <palves@redhat.com>
1697 * NEWS: Mention that compare-sections now works with all targets.
1699 * remote.c (PACKET_qCRC): New enum value.
1700 (remote_verify_memory): Don't send qCRC if the target has no
1701 execution. Use packet_support/packet_ok. If the target doesn't
1702 support the qCRC packet, fallback to a deep memory copy.
1703 (compare_sections_command): Say "target image" instead of "remote
1705 (_initialize_remote): Add PACKET_qCRC to the list of config
1706 packets that have no associated command. Extend comment.
1707 * target.c (simple_verify_memory, default_verify_memory): New
1709 * target.h (struct target_ops) <to_verify_memory>: Default to
1710 default_verify_memory.
1711 (simple_verify_memory): New declaration.
1712 * target-delegates.c: Regenerate.
1714 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1716 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1718 2014-05-20 Hui Zhu <hui@codesourcery.com>
1719 Yao Qi <yao@codesourcery.com>
1722 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1723 and change address of sp and pc.
1725 2014-05-19 Tom Tromey <tromey@redhat.com>
1727 * gdbtypes.c (rank_function): Use XNEWVEC.
1728 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1730 2014-05-19 Doug Evans <dje@google.com>
1732 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1733 build_type_unit_groups and moved closer to only caller. Remove
1734 arguments. All references updated. Remove outdated .gdb_index
1736 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1737 build_type_psymtabs_1.
1739 2014-05-19 Doug Evans <dje@google.com>
1741 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1742 n_type_unit_groups, all_type_unit_groups. All uses removed.
1743 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1744 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1745 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1746 (add_type_unit_group_to_table): Delete.
1748 2014-05-19 Doug Evans <dje@google.com>
1750 * eval.c (evaluate_subexp_standard): Add some comments.
1752 2014-05-17 Doug Evans <xdje42@gmail.com>
1754 * progspace.c (remove_program_space): Delete, unused.
1755 * progspace.h (remove_program_space): Ditto.
1757 2014-05-17 Doug Evans <xdje42@gmail.com>
1759 * inferior.c (prune_inferiors): Fix comment.
1760 (remove_inferior_command): Call prune_program_spaces.
1762 2014-05-16 Doug Evans <dje@google.com>
1764 New command line option -D.
1766 * main.c (set_gdb_data_directory): New function.
1767 (captured_main): Recognize -D. Flag error for --data-directory "".
1768 Call set_gdb_data_directory.
1769 (print_gdb_help): Print --data-directory, -D.
1770 * main.h (set_gdb_data_directory): Declare.
1771 * top.c (staged_gdb_datadir): New static global.
1772 (set_gdb_datadir): Call set_gdb_data_directory
1773 (show_gdb_datadir): New function.
1774 (init_main): Update init of data-directory parameter.
1776 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1778 Import the "dirfd" gnulib module.
1779 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1780 * gnulib/aclocal.m4: Update.
1781 * gnulib/config.in: Update.
1782 * gnulib/configure: Update.
1783 * gnulib/import/Makefile.am: Update.
1784 * gnulib/import/Makefile.in: Update.
1785 * gnulib/import/dirfd.c: New.
1786 * gnulib/import/m4/dirfd.m4: New.
1787 * gnulib/import/m4/gnulib-cache.m4: Update.
1788 * gnulib/import/m4/gnulib-comp.m4: Update.
1790 2014-05-16 Pierre Muller <muller@sourceware.org>
1791 Yao Qi <yao@codesourcery.com>
1793 * valprint.c (print_wchar): Move the code on checking whether
1794 W is a printable wide char to the default branch of switch
1795 statement below. Call wchar_printable instead of gdb_iswprint.
1797 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1799 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1800 ldr.w and ldrd instructions.
1802 2014-05-15 Doug Evans <dje@google.com>
1804 * dwarf2read.c (read_structure_type): Delete outdated comments.
1806 2014-05-14 Tom Tromey <tromey@redhat.com>
1808 * macrocmd.c (print_macro_definition): Reindent.
1810 2014-05-13 Doug Evans <xdje42@gmail.com>
1812 * python/py-cmd.c (cmdpy_completer): Add comment.
1813 (completers): Make const.
1815 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1817 * infrun.c (resume): Remove should_resume (unused). Move up
1818 declaration of resume_ptid.
1820 2014-05-13 Tom Tromey <tromey@redhat.com>
1822 * language.h (unop_type_check): Remove.
1823 (binop_type_check): Don't declare.
1825 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1827 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1828 call to regcache_raw_collect.
1830 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1832 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1833 mi_console->quote as the quoting character.
1835 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1837 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1839 2014-04-29 Tom Tromey <tromey@redhat.com>
1841 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1842 "show debug varobj".
1844 2014-05-07 Kyle McMartin <kyle@redhat.com>
1846 Pushed by Joel Brobecker <brobecker@adacore.com>.
1847 * aarch64-tdep.c (aarch64_software_single_step): New function.
1848 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1849 with aarch64_software_single_step.
1851 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1855 2014-05-05 Keith Seitz <keiths@redhat.com>
1857 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1858 variable or history value is successfully parsed.
1860 2014-05-05 Yao Qi <yao@codesourcery.com>
1861 Pedro Alves <palves@redhat.com>
1863 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1864 address of blocks that intersects the requested range. Trim
1865 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1867 * ctf.c (ctf_xfer_partial): Likewise.
1869 2014-05-05 Yao Qi <yao@codesourcery.com>
1871 * printcmd.c (display_command): Remove the check to
1872 target_has_execution.
1874 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1876 * ppcobsd-nat.c: Include "obsd-nat.h".
1877 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1879 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1881 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1883 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1884 and 16-bit signed and unsigned arguments. Update comment.
1885 (stap_parse_probe_arguments): Extend code to handle such
1886 arguments. Use warning instead of complaint to notify about
1887 unrecognized bitness.
1889 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1891 PR breakpoints/16889
1892 * stap-probe.c (stap_parse_probe_arguments): Simplify
1893 check for non-prefixed probes (i.e., probes whose
1894 arguments do not start with "N@"). Always set the
1895 argument type to a sane value.
1897 2014-05-01 David Taylor <dtaylor@emc.com>
1899 * remote.c (compare_sections_command): Add -r option to compare
1900 all loadable read-only sections.
1902 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1904 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1905 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1907 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1908 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1909 Remove unused CORE_ADDR argument. Update all callers.
1911 2014-04-29 Pedro Alves <palves@redhat.com>
1913 * remote.c (struct packet_config) <detect>: Extend comment.
1914 (add_packet_config_cmd): Don't set the config's detect or support
1916 (init_all_packet_configs): Also initialize the config's 'detect'
1918 (reset_all_packet_configs_support): New function.
1919 (remote_open_1): Call reset_all_packet_configs_support instead of
1920 init_all_packet_configs.
1921 (_initialize_remote): Initialize all packet configs. Assert that
1922 all packets have an associated command, except a few known
1925 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1927 * dwarf2read.c (read_subrange_type): Handle dynamic
1928 DW_AT_lower_bound attributes.
1930 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1932 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1933 dynamic bounds before computing its upper bound.
1934 (ada_discrete_type_low_bound): Same as above with the lower bound.
1936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1938 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1939 range types. Adjust the array handling implementation to
1940 take advantage of this change.
1941 (resolve_dynamic_range): New function, mostly extracted from
1942 resolve_dynamic_bounds.
1943 (resolve_dynamic_array): New function, mostly extracted from
1944 resolve_dynamic_bounds.
1945 (resolve_dynamic_bounds): Delete.
1946 (resolve_dynamic_type): Reimplement. Add handling of
1947 TYPE_CODE_RANGE types.
1949 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1951 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1952 handling of parallel ___XA types.
1954 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1956 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1957 unnecessary second call to static_unwrap_type.
1959 2014-04-27 Hui Zhu <hui@codesourcery.com>
1961 * stack.c (print_frame_info): Call do_gdb_disassembly with
1962 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1964 2014-04-26 Doug Evans <xdje42@gmail.com>
1966 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1968 2014-04-25 Pedro Alves <palves@redhat.com>
1971 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1972 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1973 and newline from built string.
1974 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1975 (linux_ptrace_attach_fail_reason): ... this.
1976 * linux-nat.c (linux_nat_attach): Adjust to use
1977 linux_ptrace_attach_fail_reason.
1979 2014-04-25 Pedro Alves <palves@redhat.com>
1981 * remote.c (struct remote_state): Remove multi_process_aware,
1982 non_stop_aware, cond_tracepoints, cond_breakpoints,
1983 breakpoint_commands, fast_tracepoints, static_tracepoints,
1984 install_in_trace, disconnected_tracing,
1985 enable_disable_tracepoints, string_tracing, and
1986 augmented_libraries_svr4_read fields.
1987 (remote_multi_process_p): Move further below in the file.
1988 (struct packet_config): Add comments.
1989 (update_packet_config): Delete function.
1990 (show_packet_config_cmd): Use packet_config_support.
1991 (add_packet_config_cmd): Use NULL as set callback.
1992 (packet_ok): "set remote foo-packet"-style commands no longer
1993 change config->supported -- adjust.
1994 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1995 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1996 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1997 (PACKET_QNonStop, PACKET_multiprocess_feature)
1998 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1999 (PACKET_DisconnectedTracing_feature)
2000 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2001 (set_remote_protocol_packet_cmd): Delete function.
2002 (packet_config_support, packet_support): New functions.
2003 (set_remote_protocol_Z_packet_cmd): Don't call
2004 update_packet_config.
2005 (remote_query_attached, remote_pass_signals)
2006 (remote_program_signals, remote_threads_info)
2007 (remote_threads_extra_info, remote_start_remote): Use
2009 (remote_start_remote): Use packet_config_support and
2011 (init_all_packet_configs): Set all packets to unknown support,
2012 instead of calling update_packet_config.
2013 (remote_check_symbols): Use packet_support.
2014 (remote_supported_packet): Unconditionally set the packet config's
2016 (remote_multi_process_feature, remote_non_stop_feature)
2017 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2018 (remote_breakpoint_commands_feature)
2019 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2020 (remote_install_in_trace_feature)
2021 (remote_disconnected_tracing_feature)
2022 (remote_enable_disable_tracepoint_feature)
2023 (remote_string_tracing_feature)
2024 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2025 (remote_protocol_features): Adjust to use remote_supported_packet
2026 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2027 "ConditionalTracepoints", "ConditionalBreakpoints",
2028 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2029 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2030 "EnableDisableTracepoints", and "tracenz".
2031 (remote_query_supported): Use packet_support.
2032 (remote_open_1): Adjust.
2033 (extended_remote_attach_1): Use packet_support. Switch on the
2034 result of packet_ok instead of checking whether the packet ended
2036 (remote_vcont_resume): Use packet_support.
2037 (remote_resume, remote_stop_ns, fetch_register_using_p)
2038 (remote_prepare_to_store, store_register_using_P)
2039 (check_binary_download, remote_write_bytes): Use packet_support.
2040 (remote_vkill): Use packet_support. Switch on the result of
2041 packet_ok instead of checking whether the packet ended up
2043 (extended_remote_supports_disable_randomization): Use
2045 (extended_remote_run): Switch on the result of packet_ok instead
2046 of checking whether the packet ended up disabled.
2047 (remote_insert_breakpoint, remote_remove_breakpoint)
2048 (remote_insert_watchpoint, remote_remove_watchpoint)
2049 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2051 (remote_search_memory): Use packet_config_support.
2052 (remote_get_thread_local_address, remote_get_tib_address)
2053 (remote_hostio_send_command, remote_can_execute_reverse): Use
2055 (remote_supports_cond_tracepoints)
2056 (remote_supports_cond_breakpoints)
2057 (remote_supports_fast_tracepoints)
2058 (remote_supports_static_tracepoints)
2059 (remote_supports_install_in_trace)
2060 (remote_supports_enable_disable_tracepoint)
2061 (remote_supports_string_tracing)
2062 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2063 the packet config says the feature is enabled or disabled.
2064 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2065 (remote_get_trace_status): Use packet_support.
2066 (remote_set_disconnected_tracing): Adjust to check whether the
2067 feature is enabled with packet_support.
2068 (remote_set_trace_buffer_size, remote_use_agent)
2069 (remote_can_use_agent, remote_supports_btrace): Use
2071 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2072 Use packet_config_support.
2073 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2074 the packet config says the feature is enabled or disabled.
2075 (set_range_stepping): Use packet_support.
2077 2014-04-25 Tom Tromey <tromey@redhat.com>
2079 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2082 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2084 * NEWS: Mention support for C99 variable length arrays.
2086 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2088 * ada-lang.c (standard_exc): Expand introductory comment.
2090 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2091 Walfred Tedeschi <walfred.tedeschi@intel.com>
2093 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2095 (amd64_linux_read_description): Add code to handle AVX512 xstate
2096 mask and return respective tdesc.
2097 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2098 and features/i386/x32-avx512-linux.c.
2099 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2100 (amd64_linux_core_read_description): Add code to handle AVX512
2101 xstate mask and return respective tdesc.
2102 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2103 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2105 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2106 (tdesc_amd64_avx512_linux): New prototype.
2107 (tdesc_x32_avx512_linux): Likewise.
2108 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2109 features/i386/x32-avx512.c.
2110 (amd64_ymm_avx512_names): New register names for pseudo
2112 (amd64_ymmh_avx512_names): New register names for raw registers
2114 (amd64_k_names): New register names for K registers.
2115 (amd64_zmmh_names): New register names for ZMM raw registers.
2116 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2117 (amd64_xmm_avx512_names): New register names for XMM16-31
2119 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2121 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2122 if feature is present.
2123 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2124 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2125 (AMD64_NUM_REGS): Adjust to new number of registers.
2126 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2127 registers supplied via XSTATE by AVX512 registers.
2128 (i386_linux_read_description): Add case for AVX512.
2129 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2130 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2131 (i386_linux_core_read_description): Add case for AVX512.
2132 (i386_linux_init_abi): Install supported register note section
2134 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2136 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2137 registers to be number of zmm7h + 1.
2138 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2139 * i386-tdep.c: Include features/i386/i386-avx512.c.
2140 (i386_zmm_names): Add ZMM pseudo register names array.
2141 (i386_zmmh_names): Add ZMM raw register names array.
2142 (i386_k_names): Add K raw register names array.
2143 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2144 registers. AVX512 has 16 more ZMM registers than there are YMM
2146 (i386_zmmh_regnum_p): Add function to look up register number of
2148 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2149 (i386_k_regnum_p): Likewise for K raw registers.
2150 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2151 registers added by AVX512.
2152 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2153 registers added by AVX512.
2154 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2156 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2157 (i386_pseudo_register_name): Add ZMM pseudo registers.
2158 (i386_zmm_type): Construct and return vector registers type for ZMM
2160 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2161 ZMM0-31 pseudo registers and K registers.
2162 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2163 and YMM16-31 registers from register cache.
2164 (i386_pseudo_register_write): Add code to write K, ZMM and
2166 (i386_register_reggroup_p): Add code to include/exclude AVX512
2167 registers in/from respective register groups.
2168 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2169 registers if feature is present in xcr0.
2170 (i386_gdbarch_init): Add code to initialize AVX512 feature
2171 variables in tdep structure, wire in pseudo registers and call
2172 initialize_tdesc_i386_avx512.
2173 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2175 (i386_regnum): Add AVX512 registers.
2176 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2177 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2178 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2179 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2181 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2182 (i386_ymm_avx512_regnum_p): Likewise.
2183 (i386_k_regnum_p): Likewise.
2184 (i386_zmm_regnum_p): Likewise.
2185 (i386_zmmh_regnum_p): Likewise.
2186 * i387-tdep.c : Update year in copyright notice.
2187 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2189 (XSAVE_YMM_AVX512_ADDR): New macro.
2190 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2192 (XSAVE_XMM_AVX512_ADDR): New macro.
2193 (xsave_avx512_k_offset): New table for K register offsets in
2195 (XSAVE_AVX512_K_ADDR): New macro.
2196 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2198 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2199 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2201 (i387_collect_xsave): Add code to collect AVX512 registers from
2203 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2204 of XMM16-31 registers.
2205 (I387_NUM_K_REGS): New define for number of K registers.
2206 (I387_K0_REGNUM): New define for K0 register number.
2207 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2208 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2209 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2211 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2212 (I387_XMM16_REGNUM): New define for XMM16 register number.
2213 (I387_YMM0_REGNUM): New define for YMM0 register number.
2214 (I387_KEND_REGNUM): New define for last K register number.
2215 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2216 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2218 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2220 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2222 * features/Makefile: Add AVX512 related files.
2223 * features/i386/32bit-avx512.xml: New file.
2224 * features/i386/64bit-avx512.xml: Likewise.
2225 * features/i386/amd64-avx512-linux.c: Likewise.
2226 * features/i386/amd64-avx512-linux.xml: Likewise.
2227 * features/i386/amd64-avx512.c: Likewise.
2228 * features/i386/amd64-avx512.xml: Likewise.
2229 * features/i386/i386-avx512-linux.c: Likewise.
2230 * features/i386/i386-avx512-linux.xml: Likewise.
2231 * features/i386/i386-avx512.c: Likewise.
2232 * features/i386/i386-avx512.xml: Likewise.
2233 * features/i386/x32-avx512-linux.c: Likewise.
2234 * features/i386/x32-avx512-linux.xml: Likewise.
2235 * features/i386/x32-avx512.c: Likewise.
2236 * features/i386/x32-avx512.xml: Likewise.
2237 * regformats/i386/amd64-avx512-linux.dat: New file.
2238 * regformats/i386/amd64-avx512.dat: Likewise.
2239 * regformats/i386/i386-avx512-linux.dat: Likewise.
2240 * regformats/i386/i386-avx512.dat: Likewise.
2241 * regformats/i386/x32-avx512-linux.dat: Likewise.
2242 * regformats/i386/x32-avx512.dat: Likewise.
2243 * NEWS: Add note about new support for AVX512.
2246 2014-04-23 Pedro Alves <palves@redhat.com>
2248 * breakpoint.c (insert_bp_location): Tolerate errors if the
2249 breakpoint is set in a user-loaded objfile.
2250 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2251 location is marked shlib_disabled. If the breakpoint is set in a
2252 user-loaded objfile is a GDB-side memory breakpoint, validate it
2253 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2254 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2256 * mem-break.c (memory_validate_breakpoint): New function.
2257 * objfiles.c (userloaded_objfile_contains_address_p): New
2259 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2260 * target.h (memory_validate_breakpoint): New declaration.
2262 2014-04-23 Pedro Alves <palves@redhat.com>
2264 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2265 the breakpoint is set in a shared library, only suppress
2266 errors for software breakpoints, not hardware breakpoints.
2268 2014-04-22 Pedro Alves <palves@redhat.com>
2270 * infrun.c (schedlock_applies): New function, factored out from
2271 find_thread_needs_step_over.
2272 (find_thread_needs_step_over): Use it.
2273 (switch_back_to_stepped_thread): Always clear trap_expected if the
2274 step over is finished. Return early if scheduler locking applies.
2275 Look for the stepping thread and a potential step-over thread with
2277 (currently_stepping_or_nexting_callback): Delete.
2279 2014-04-22 Nick Clifton <nickc@redhat.com>
2281 * NEWS: Mention that ARM sim now supports tracing.
2283 2014-04-22 Yao Qi <yao@codesourcery.com>
2285 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2287 * tracefile.c (tracefile_fetch_registers): ... it. New
2289 * tracefile.h (tracefile_fetch_registers): Declare.
2290 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2291 tracefile_fetch_registers.
2293 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2296 * windows-nat.c (thread_rec): Don't display a warning when
2297 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2298 fails for any reason, set th->suspended to -1, so that we don't
2299 try to resume such a thread. Also, don't return NULL in these
2300 cases, to avoid completely ruin the session due to "PC register is
2301 not available" error.
2302 (do_windows_fetch_inferior_registers): Check errors in
2303 GetThreadContext call.
2304 (windows_continue): Accept an additional argument KILLED; if not
2305 zero, ignore errors in the SetThreadContext call, since the
2306 inferior was killed and is shutting down.
2307 (windows_resume, get_windows_debug_event)
2308 (windows_create_inferior, windows_mourn_inferior)
2309 (windows_kill_inferior): All callers of windows_continue changed
2310 to adjust to its new calling sequence.
2312 2014-04-19 Yao Qi <yao@codesourcery.com>
2314 * ctf.c (ctf_open): Call post_create_inferior.
2316 2014-04-19 Yao Qi <yao@codesourcery.com>
2318 * ctf.c (handle_id): New static variable.
2319 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2320 value. Get the declaration of event "register" and get length
2321 of field "contents".
2323 2014-04-19 Yao Qi <yao@codesourcery.com>
2325 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2327 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2329 * valops.c (oload_method_static): Remove unnecessary argument
2330 METHOD. Update all callers.
2332 2014-04-18 Pedro alves <palves@redhat.com>
2333 Tom Tromey <tromey@redhat.com>
2336 * frame.c (get_prev_frame_1): Rename to ...
2337 (get_prev_frame_always): ... this, and make extern. Adjust.
2338 (skip_artificial_frames): Use get_prev_frame_always.
2339 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2340 (get_frame_unwind_stop_reason): Adjust to rename.
2341 * frame.h (get_prev_frame_always): Declare.
2342 * inline-frame.c: Include frame.h.
2343 (inline_frame_this_id): Use get_prev_frame_always.
2345 2014-04-18 Tristan Gingold <gingold@adacore.com>
2347 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2348 code by using bfd_mach_o_get_base_address.
2350 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2352 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2353 (spu_ax_pseudo_register_collect): New function.
2354 (spu_ax_pseudo_register_push_stack): Likewise.
2355 (spu_dwarf_reg_to_regnum): Likewise.
2356 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2358 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2360 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2361 Replace FRAME argument with FRAME_ID.
2362 * gdbarch.c, gdbarch.h: Regenerate.
2363 * findvar.c (default_value_from_register): Add GDBARCH argument;
2364 replace FRAME by FRAME_ID. No longer call get_frame_id.
2365 (value_from_register): Update call to gdbarch_value_from_register.
2366 * value.h (default_value_from_register): Update prototype.
2367 * s390-linux-tdep.c (s390_value_from_register): Update interface
2368 and call to default_value_from_register.
2369 * spu-tdep.c (spu_value_from_register): Likewise.
2371 * findvar.c (address_from_register): Remove TYPE argument.
2372 Do not call value_from_register; use gdbarch_value_from_register
2373 with null_frame_id instead.
2374 * value.h (address_from_register): Update prototype.
2375 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2376 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2377 address_from_register interface change.
2379 2014-04-17 Yao Qi <yao@codesourcery.com>
2381 * gdbtypes.h: Update comments to link to types and macros'
2384 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2386 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2388 2014-04-16 Keith Seitz <keiths@redhat.com>
2391 * dwarf2read.c (skip_one_die): Check that all relative-offset
2392 sibling DIEs fall within range of the current reader's buffer.
2393 (read_partial_die): Likewise.
2395 2014-04-16 Keith Seitz <keiths@redhat.com>
2398 * cp-namespace.c (lookup_symbol_file): If the type name of
2399 `this' is NULL, return immediately.
2401 2014-04-14 Keith Seitz <keiths@redhat.com>
2404 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2405 from symbol_matches_domain in symtab.c. All local callers
2406 of symbol_matches_domain updated.
2407 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2408 search STRUCT_DOMAIN.
2409 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2410 independently. standard_lookup will do that automatically.
2411 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2413 (cp_lookup_symbol_in_namespace): Likewise.
2414 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2415 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2416 may return a STRUCT_DOMAIN match.
2417 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2418 * cp-support.c: Include language.h.
2419 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2421 * psymtab.c (match_partial_symbol): Compare the requested
2422 domain with the symbol's domain directly.
2423 (lookup_partial_symbol): Likewise.
2424 * symtab.c (lookup_symbol_in_language): Explain when/why
2425 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2426 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2427 appropriate languages.
2428 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2429 and moved to ada-lang.c
2430 (lookup_block_symbol): Explain that this function only returns
2431 symbol matching the requested DOMAIN.
2432 Compare the requested domain with the symbol's domain directly.
2433 (iterate_over_symbols): Compare the requested domain with the
2434 symbol's domain directly.
2435 * symtab.h (symbol_matches_domain): Remove.
2437 2014-04-14 Tom Tromey <tromey@redhat.com>
2440 * c-exp.y (type_aggregate_p): New function.
2441 (qualified_name, classify_inner_name): Use it.
2442 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2443 and TYPE_TARGET_TYPE of an enum type.
2444 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2446 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2447 handle TYPE_DECLARED_CLASS.
2448 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2450 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2451 * valops.c (enum_constant_from_type): New function.
2452 (value_aggregate_elt): Use it.
2453 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2456 2014-04-14 Tom Tromey <tromey@redhat.com>
2458 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2459 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2461 * value.h (value_aggregate_elt): Update.
2463 2014-04-14 Tom Tromey <tromey@redhat.com>
2465 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2467 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2469 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2470 (evaluate_subexp_standard): Pass noside argument.
2471 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2472 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2473 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2474 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2475 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2477 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2479 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2480 points to a constant blob.
2482 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2484 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2485 property and store it as the high bound and flag the range accordingly.
2486 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2487 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2488 * gdbtypes.h (enum range_flags): New enum.
2489 (struct range_bounds): Add flags member.
2491 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2493 * c-typeprint.c (c_type_print_varspec_suffix): Added
2494 check for not yet resolved high bound. If unresolved, print
2495 "variable length" string to the console instead of random
2498 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2500 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2502 (ada_template_to_fixed_record_type_1): Likewise.
2503 (ada_to_fixed_type_1): Likewise.
2504 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2505 (cp_print_value): Likewise.
2506 * d-valprint.c (dynamic_array_type): Likewise.
2507 * findvar.c (address_of_variable): Likewise.
2508 * jv-valprint.c (java_value_print): Likewise.
2509 * valops.c (value_ind): Likewise.
2510 * value.c (coerce_ref): Likewise.
2512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2514 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2515 value and retrieve the dynamic type size.
2517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2519 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2520 passed to sizeof is dynamic evaluate the argument to compute the length.
2522 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2523 Joel Brobecker <brobecker@adacore.com>
2525 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2526 (dwarf2_evaluate_property): New function.
2527 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2528 * dwarf2read.c (attr_to_dynamic_prop): New function.
2529 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2531 * gdbtypes.c: Include dwarf2loc.h.
2532 (is_dynamic_type): New function.
2533 (resolve_dynamic_type): New function.
2534 (resolve_dynamic_bounds): New function.
2535 (get_type_length): New function.
2536 (check_typedef): Use get_type_length to compute type length.
2537 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2538 (TYPE_LOW_BOUND_KIND): New macro.
2539 (is_dynamic_type): New function prototype.
2540 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2541 to resolve dynamic properties of the type. Update comment.
2542 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2544 2014-04-14 Richard Henderson <rth@redhat.com>
2546 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2548 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2549 Doug Evans <xdje42@gmail.com>
2551 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2552 dereference TYPE_CODE_REF values.
2554 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2556 Revert the following changes due to regressions:
2558 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2559 (dwarf2_evaluate_property): New function.
2560 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2561 * dwarf2read.c (attr_to_dynamic_prop): New function.
2562 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2564 * gdbtypes.c: Include dwarf2loc.h.
2565 (is_dynamic_type): New function.
2566 (resolve_dynamic_type): New function.
2567 (resolve_dynamic_bounds): New function.
2568 (get_type_length): New function.
2569 (check_typedef): Use get_type_length to compute type length.
2570 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2571 (TYPE_LOW_BOUND_KIND): New macro.
2572 (is_dynamic_type): New function prototype.
2573 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2574 to resolve dynamic properties of the type. Update comment.
2575 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2577 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2578 passed to sizeof is dynamic evaluate the argument to compute the length.
2580 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2581 value and retrieve the dynamic type size.
2583 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2584 (ada_template_to_fixed_record_type_1): Likewise.
2585 (ada_to_fixed_type_1): Likewise.
2586 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2587 (cp_print_value): Likewise.
2588 * d-valprint.c (dynamic_array_type): Likewise.
2589 * eval.c (evaluate_subexp_with_coercion): Likewise.
2590 * findvar.c (address_of_variable): Likewise.
2591 * jv-valprint.c (java_value_print): Likewise.
2592 * valops.c (value_ind): Likewise.
2593 * value.c (coerce_ref): Likewise.
2595 * c-typeprint.c (c_type_print_varspec_suffix): Added
2596 check for not yet resolved high bound. If unresolved, print
2597 "variable length" string to the console instead of random
2600 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2601 property and store it as the high bound and flag the range accordingly.
2602 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2603 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2604 * gdbtypes.h (enum range_flags): New enum.
2605 (struct range_bounds): Add flags member.
2607 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2608 points to a constant blob.
2610 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2611 (evaluate_subexp_standard): Pass noside argument.
2612 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2613 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2614 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2615 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2616 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2618 2014-04-11 Keith Seitz <keiths@redhat.com>
2621 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2622 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2625 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2627 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2628 (evaluate_subexp_standard): Pass noside argument.
2629 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2630 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2631 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2632 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2633 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2635 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2637 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2638 points to a constant blob.
2640 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2642 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2643 property and store it as the high bound and flag the range accordingly.
2644 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2645 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2646 * gdbtypes.h (enum range_flags): New enum.
2647 (struct range_bounds): Add flags member.
2649 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2651 * c-typeprint.c (c_type_print_varspec_suffix): Added
2652 check for not yet resolved high bound. If unresolved, print
2653 "variable length" string to the console instead of random
2656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2658 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2659 (ada_template_to_fixed_record_type_1): Likewise.
2660 (ada_to_fixed_type_1): Likewise.
2661 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2662 (cp_print_value): Likewise.
2663 * d-valprint.c (dynamic_array_type): Likewise.
2664 * eval.c (evaluate_subexp_with_coercion): Likewise.
2665 * findvar.c (address_of_variable): Likewise.
2666 * jv-valprint.c (java_value_print): Likewise.
2667 * valops.c (value_ind): Likewise.
2668 * value.c (coerce_ref): Likewise.
2670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2672 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2673 value and retrieve the dynamic type size.
2675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2677 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2678 passed to sizeof is dynamic evaluate the argument to compute the length.
2680 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2682 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2683 (dwarf2_evaluate_property): New function.
2684 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2685 * dwarf2read.c (attr_to_dynamic_prop): New function.
2686 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2688 * gdbtypes.c: Include dwarf2loc.h.
2689 (is_dynamic_type): New function.
2690 (resolve_dynamic_type): New function.
2691 (resolve_dynamic_bounds): New function.
2692 (get_type_length): New function.
2693 (check_typedef): Use get_type_length to compute type length.
2694 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2695 (TYPE_LOW_BOUND_KIND): New macro.
2696 (is_dynamic_type): New function prototype.
2697 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2698 to resolve dynamic properties of the type. Update comment.
2699 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2703 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2704 declaring high/low bounds and change uses accordingly. Call
2705 create_range_type instead of create_static_range_type.
2706 * gdbtypes.c (create_range_type): New function.
2707 (create_range_type): Convert bounds into struct bound_prop and pass
2708 them to create_range_type.
2709 * gdbtypes.h (struct bound_prop): New struct.
2710 (create_range_type): New function prototype.
2711 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2712 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2713 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2715 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2719 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2720 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2721 * ada-lang.c: All uses of create_range_type updated.
2722 * coffread.c: All uses of create_range_type updated.
2723 * dwarf2read.c: All uses of create_range_type updated.
2724 * f-exp.y: All uses of create_range_type updated.
2725 * m2-valprint.c: All uses of create_range_type updated.
2726 * mdebugread.c: All uses of create_range_type updated.
2727 * stabsread.c: All uses of create_range_type updated.
2728 * valops.c: All uses of create_range_type updated.
2729 * valprint.c: All uses of create_range_type updated.
2731 2014-04-10 Pedro Alves <palves@redhat.com>
2733 * breakpoint.c (single_step_breakpoints)
2734 (single_step_gdbarch): Move up in the file.
2735 (one_breakpoint_xfer_memory): New function, factored out from ...
2736 (breakpoint_xfer_memory): ... here. Also process single-step
2739 2014-04-09 Tristan Gingold <gingold@adacore.com>
2741 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2743 (darwin_decode_exception_message): Free port only after use.
2745 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2747 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2748 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2749 when setting the size of call_length.
2751 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2753 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2754 dereference TYPE_CODE_REF values.
2756 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2758 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2759 end of warning message.
2761 2014-04-03 Doug Evans <dje@google.com>
2763 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2764 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2766 2014-04-02 Alan Modra <amodra@gmail.com>
2768 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2769 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2770 (struct symbol_file_add_from_memory_args): Add size field.
2771 (find_vdso_size): New function.
2772 (add_vsyscall_page): Attempt to find vdso size.
2774 2014-04-01 Doug Evans <dje@google.com>
2776 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2778 2014-04-01 Tristan Gingold <gingold@adacore.com>
2780 * darwin-nat.c (darwin_encode_reply): Add prototype.
2781 (darwin_decode_exception_message): Reply to unknown inferiors.
2782 (darwin_decode_message): Handle message by id. Ignore message
2783 to unknown inferior.
2784 (darwin_wait): Discard unknown messages, add debug trace.
2786 2014-03-31 Doug Evans <dje@google.com>
2788 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2791 2014-03-31 Doug Evans <dje@google.com>
2793 New option "set print symbol-loading".
2795 * solib.c (solib_read_symbols): Only print symbol loading messages
2797 (solib_add): If symbol loading is in "brief" mode, notify user
2798 symbols are being loaded.
2799 (reload_shared_libraries_1): Ditto.
2800 * symfile.c (print_symbol_loading_off): New static global.
2801 (print_symbol_loading_brief): New static global.
2802 (print_symbol_loading_full): New static global.
2803 (print_symbol_loading_enums): New static global.
2804 (print_symbol_loading): New static global.
2805 (print_symbol_loading_p): New function.
2806 (symbol_file_add_with_addrs): Only print symbol loading messages
2808 (_initialize_symfile): Register "print symbol-loading" set/show
2810 * symfile.h (print_symbol_loading_p): Declare.
2812 2014-03-30 Doug Evans <xdje42@gmail.com>
2814 * infrun.c (set_last_target_status): New function.
2815 (handle_inferior_event): Call it.
2817 2014-03-30 Doug Evans <xdje42@gmail.com>
2819 * inferior.h (enum stop_kind): Improve comment.
2821 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2823 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2824 a reference, strip the reference layer before calling
2825 the lang_ops value_has_mutated callback.
2827 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2829 Remove some globals from our parser.
2830 * language.c (unk_lang_parser): Add "struct parser_state"
2832 * language.h (struct language_defn) <la_parser>: Likewise.
2833 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2834 (initialize_expout): Add "struct parser_state" argument.
2835 Rewrite function to use the parser state.
2836 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2837 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2838 write_exp_elt_longcst, write_exp_elt_dblcst,
2839 write_exp_elt_decfloatcst, write_exp_elt_type,
2840 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2841 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2842 write_dollar_variable): Likewise.
2843 (parse_exp_in_context_1): Use parser state.
2844 (insert_type_address_space): Add "struct parser_state" argument.
2846 (increase_expout_size): New function.
2847 * parser-defs.h: Forward declare "struct language_defn" and
2848 "struct parser_state".
2849 (expout, expout_size, expout_ptr): Remove extern declarations.
2850 (parse_gdbarch, parse_language): Rewrite macro declarations to
2851 accept the parser state.
2852 (struct parser_state): New struct.
2853 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2854 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2855 write_exp_elt_decfloatcst, write_exp_elt_type,
2856 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2857 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2858 write_exp_msymbol, write_dollar_variable,
2859 mark_struct_expression, insert_type_address_space): Add "struct
2860 parser_state" argument.
2861 (increase_expout_size): New function.
2862 * utils.c (do_clear_parser_state): New function.
2863 (make_cleanup_clear_parser_state): Likewise.
2864 * utils.h (make_cleanup_clear_parser_state): New function
2866 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2867 Update calls to write_exp* in order to pass the parser state.
2868 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2869 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2870 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2871 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2872 * stap-probe.c (stap_parse_register_operand): Likewise.
2873 (stap_parse_single_operand): Likewise.
2874 (stap_parse_argument_1): Likewise.
2875 (stap_parse_argument): Use parser state.
2876 * stap-probe.h: Include "parser-defs.h".
2877 (struct stap_parse_info) <pstate>: New field.
2878 * c-exp.y (parse_type): Rewrite to use parser state.
2879 (yyparse): Redefine to c_parse_internal.
2880 (pstate): New global variable.
2881 (parse_number): Add "struct parser_state" argument.
2882 (write_destructor_name): Likewise.
2883 (type_exp): Update calls to write_exp* and similars in order to
2885 (exp1, exp, variable, qualified_name, space_identifier,
2886 typename, typebase): Likewise.
2887 (write_destructor_name, parse_number, lex_one_token,
2888 classify_name, classify_inner_name, c_parse): Add "struct
2889 parser_state" argument. Update function to use parser state.
2890 * c-lang.h: Forward declare "struct parser_state".
2891 (c_parse): Add "struct parser_state" argument.
2892 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2893 (yyparse): Redefine macro to ada_parse_internal.
2894 (pstate): New variable.
2895 (write_int, write_object_renaming, write_var_or_type,
2896 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2897 type_int, type_long, type_long_long, type_float, type_double,
2898 type_long_double, type_char, type_boolean, type_system_address):
2899 Add "struct parser_state" argument.
2900 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2901 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2902 var_or_type, aggregate, aggregate_component_list,
2903 positional_list, others, component_group,
2904 component_associations): Update calls to write_exp* and similar
2905 functions in order to use parser state.
2906 (ada_parse, write_var_from_sym, write_int,
2907 write_exp_op_with_string, write_object_renaming,
2908 find_primitive_type, write_selectors, write_ambiguous_var,
2909 write_var_or_type, write_name_assoc, type_int, type_long,
2910 type_long_long, type_float, type_double, type_long_double,
2911 type_char, type_boolean, type_system_address): Add "struct
2912 parser_state" argument. Adjust function to use parser state.
2913 * ada-lang.c (parse): Likewise.
2914 * ada-lang.h: Forward declare "struct parser_state".
2915 (ada_parse): Add "struct parser_state" argument.
2916 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2917 calls to both functions.
2918 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2920 (yyparse): Redefine macro to f_parse_internal.
2921 (pstate): New variable.
2922 (parse_number): Add "struct parser_state" argument.
2923 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2924 and similars in order to use parser state.
2925 (parse_number): Adjust code to use parser state.
2927 (f_parse): New function.
2928 * f-lang.h: Forward declare "struct parser_state".
2929 (f_parse): Add "struct parser_state" argument.
2930 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2932 (yyparse): Redefine macro for java_parse_internal.
2933 (pstate): New variable.
2934 (push_expression_name, push_expression_name, insert_exp): Add
2935 "struct parser_state" argument.
2936 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2937 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2938 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2939 PostIncrementExpression, PostDecrementExpression,
2940 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2941 UnaryExpressionNotPlusMinus, CastExpression,
2942 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2943 RelationalExpression, EqualityExpression, AndExpression,
2944 ExclusiveOrExpression, InclusiveOrExpression,
2945 ConditionalAndExpression, ConditionalOrExpression,
2946 ConditionalExpression, Assignment, LeftHandSide): Update
2947 calls to write_exp* and similars in order to use parser state.
2948 (parse_number): Ajust code to use parser state.
2950 (java_parse): New function.
2951 (push_variable): Add "struct parser_state" argument. Adjust
2952 code to user parser state.
2953 (push_fieldnames, push_qualified_expression_name,
2954 push_expression_name, insert_exp): Likewise.
2955 * jv-lang.h: Forward declare "struct parser_state".
2956 (java_parse): Add "struct parser_state" argument.
2957 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2959 (yyparse): Redefine macro to m2_parse_internal.
2960 (pstate): New variable.
2961 (type_exp, exp, fblock, variable, type): Update calls to
2962 write_exp* and similars to use parser state.
2964 (m2_parse): New function.
2965 * m2-lang.h: Forward declare "struct parser_state".
2966 (m2_parse): Add "struct parser_state" argument.
2967 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2968 * objc-lang.h: Forward declare "struct parser_state".
2969 (end_msglist): Add "struct parser_state" argument.
2970 * p-exp.y (parse_type): Rewrite macro to use parser state.
2971 (yyparse): Redefine macro to pascal_parse_internal.
2972 (pstate): New variable.
2973 (parse_number): Add "struct parser_state" argument.
2974 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2975 write_exp* and similars in order to use parser state.
2976 (parse_number, yylex): Adjust code to use parser state.
2977 (pascal_parse): New function.
2978 * p-lang.h: Forward declare "struct parser_state".
2979 (pascal_parse): Add "struct parser_state" argument.
2980 * go-exp.y (parse_type): Rewrite macro to use parser state.
2981 (yyparse): Redefine macro to go_parse_internal.
2982 (pstate): New variable.
2983 (parse_number): Add "struct parser_state" argument.
2984 (type_exp, exp1, exp, variable, type): Update calls to
2985 write_exp* and similars in order to use parser state.
2986 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2987 to use parser state.
2988 (go_parse): Likewise.
2989 * go-lang.h: Forward declare "struct parser_state".
2990 (go_parse): Add "struct parser_state" argument.
2992 2014-03-27 Doug Evans <dje@google.com>
2994 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2996 2014-03-27 Doug Evans <dje@google.com>
2998 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2999 Remove argument abbrev_section. All callers updated.
3001 2014-03-27 Doug Evans <dje@google.com>
3003 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3004 addr_base, ranges_base.
3006 2014-03-26 Keith Seitz <keiths@redhat.com>
3008 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3009 types, not VAR_DOMAIN.
3011 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3013 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3015 * features/nios2-linux.c: Regenerated.
3016 * features/nios2.c: Regenerated.
3018 2014-03-25 Pedro Alves <palves@redhat.com>
3020 * cli/cli-script.c (script_from_file): Force the interpreter to
3023 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3025 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3026 small stack allocation.
3028 2014-03-24 Tristan Gingold <gingold@adacore.com>
3030 * darwin-nat.c (exc_server): Remove unused prototype.
3031 (darwin_dump_message): Correctly display data on x86_64.
3032 (darwin_encode_reply): Fix style.
3033 Add comments and fix indentation.
3035 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3037 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3039 2014-03-22 Doug Evans <xdje42@gmail.com>
3041 * infcmd.c: Whitespace fixes.
3042 (interrupt_command): Merge two function comments into one.
3044 2014-03-22 Doug Evans <xdje42@gmail.com>
3046 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3049 2014-03-22 Yao Qi <yao@codesourcery.com>
3051 * remote.c (target_read_live_memory): Remove.
3052 (memory_xfer_live_readonly_partial): Rename it to
3053 remote_xfer_live_readonly_partial. Remove argument 'object'.
3054 All callers updated. Call remote_read_bytes_1
3055 instead of target_read_live_memory.
3056 * tracepoint.c (set_traceframe_number): Remove.
3057 (make_cleanup_restore_traceframe_number): Likewise .
3058 * tracepoint.h (set_traceframe_number): Remove declaration.
3059 (make_cleanup_restore_traceframe_number): Likewise.
3061 2014-03-22 Yao Qi <yao@codesourcery.com>
3063 * remote.c (remote_read_bytes): Move code on reading from the
3065 (remote_read_bytes_1): ... here. New function.
3067 2014-03-22 Yao Qi <yao@codesourcery.com>
3069 * ctf.c (ctf_xfer_partial): Check the return value of
3070 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3071 return TARGET_XFER_UNAVAILABLE.
3072 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3073 * target.c (target_read_live_memory): Move it to remote.c.
3074 (memory_xfer_live_readonly_partial): Likewise.
3075 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3076 * remote.c (target_read_live_memory): Moved from target.c.
3077 (memory_xfer_live_readonly_partial): Likewise.
3078 (remote_read_bytes): Factored out from
3079 memory_xfer_partial_1.
3081 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3083 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3086 2014-03-21 Pedro Alves <palves@redhat.com>
3088 * infrun.c (normal_stop): Extend comment.
3090 2014-03-21 Hui Zhu <hui@codesourcery.com>
3091 Pedro Alves <palves@redhat.com>
3093 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3095 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3096 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3097 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3099 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3101 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3102 `z' formatted output modifier.
3104 2014-03-20 Tom Tromey <tromey@redhat.com>
3105 Sergio Durigan Junior <sergiodj@redhat.com>
3107 * probe.c (parse_probes): Turn assert into an ordinary error.
3108 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3109 exceptions when parsing probes. Rearrange the code for clarity.
3111 2014-03-20 Tom Tromey <tromey@redhat.com>
3114 * top.c (execute_command): Only dispatch events if the command
3117 2014-03-20 Tom Tromey <tromey@redhat.com>
3120 * infcall.c: Include event-top.h.
3121 (run_inferior_call): Call async_disable_stdin if needed.
3123 2014-03-20 Pedro Alves <palves@redhat.com>
3125 * infrun.c (prepare_to_proceed): Delete.
3126 (thread_still_needs_step_over): New function.
3127 (find_thread_needs_step_over): New function.
3128 (proceed): If the current thread needs a step-over, set its
3129 steping_over_breakpoint flag. Adjust to use
3130 find_thread_needs_step_over instead of prepare_to_proceed.
3131 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3132 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3134 (switch_back_to_stepped_thread): Step over breakpoints of all
3135 threads not the stepping thread, before switching back to the
3138 2014-03-20 Pedro Alves <palves@redhat.com>
3140 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3142 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3143 * infrun.c (saved_singlestep_ptid)
3144 (stepping_past_singlestep_breakpoint): Delete.
3145 (resume): Remove stepping_past_singlestep_breakpoint handling.
3146 (proceed): Store the prev_pc of the stepping thread too.
3147 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3149 (enum infwait_states): Delete infwait_thread_hop_state.
3150 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3152 (handle_inferior_event): Adjust.
3153 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3154 handling and the thread-hop code. Before removing single-step
3155 breakpoints, check whether the thread hit a single-step breakpoint
3156 of another thread. If it did, the trap is not a random signal.
3157 (switch_back_to_stepped_thread): If the event thread hit a
3158 single-step breakpoint, unblock it before switching to the
3159 stepping thread. Handle the case of the stepped thread having
3161 (keep_going): Handle the case of the current thread moving past a
3162 single-step breakpoint.
3164 2014-03-20 Pedro Alves <palves@redhat.com>
3167 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3168 are being stepped over.
3169 (breakpoint_address_match): Make extern.
3170 * breakpoint.h (breakpoint_address_match): New declaration.
3171 * inferior.h (stepping_past_instruction_at): New declaration.
3172 * infrun.c (struct step_over_info): New type.
3173 (step_over_info): New global.
3174 (set_step_over_info, clear_step_over_info)
3175 (stepping_past_instruction_at): New functions.
3176 (handle_inferior_event): Clear the step-over info when
3177 trap_expected is cleared.
3178 (resume): Remove now stale comment.
3179 (clear_proceed_status): Clear step-over info.
3180 (proceed): Adjust step-over handling to set or clear the step-over
3181 info instead of removing all breakpoints.
3182 (handle_signal_stop): When setting up a thread-hop, don't remove
3184 (stop_stepping): Clear step-over info.
3185 (keep_going): Adjust step-over handling to set or clear step-over
3186 info and then always inserting breakpoints, instead of removing
3187 all breakpoints when stepping over one.
3189 2014-03-20 Pedro Alves <palves@redhat.com>
3191 * infrun.c (previous_inferior_ptid): Adjust comment.
3192 (deferred_step_ptid): Delete.
3193 (infrun_thread_ptid_changed, prepare_to_proceed)
3194 (init_wait_for_inferior): Adjust.
3195 (handle_signal_stop): Delete deferred_step_ptid handling.
3197 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3200 * defs.h (sync_quit_force_run): New declaration.
3201 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3202 * event-top.c (async_sigterm_handler): New declaration.
3203 (async_sigterm_token): New variable.
3204 (async_init_signals): Create also async_sigterm_token.
3205 (async_sigterm_handler): New function.
3206 (sync_quit_force_run): New variable.
3207 (handle_sigterm): Replace quit_force call by other calls.
3208 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3210 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3212 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3213 offset into SPE pseudo registers.
3215 2014-03-18 Pedro Alves <palves@redhat.com>
3218 * inferior.h (print_stop_event): Declare.
3219 * infrun.c (print_stop_event): New, factored out from ...
3220 (normal_stop): ... this.
3221 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3222 of bpstat_print/print_stack_frame.
3224 2014-03-17 Tom Tromey <tromey@redhat.com>
3226 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3228 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3230 * ada-lang.c (decode_constrained_packed_array): Perform a
3231 minimal coercion for reference with coerce_ref instead of
3234 2014-03-17 Tristan Gingold <gingold@adacore.com>
3236 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3237 (darwin_solib_create_inferior_hook): Emit a warning if version
3240 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3242 * python/py-value.c (get_field_flag): Cast flag_name argument to
3243 PyObject_GetAttrString to support Python 2.4.
3245 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3247 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3248 (Global Maintainers): Remove Jan Kratochvil.
3250 2014-03-14 Pedro Alves <palves@redhat.com>
3252 * inferior.h (terminal_ours_for_output): Rename to ...
3253 (child_terminal_ours_for_output): ... this.
3254 (terminal_save_ours): Rename to ...
3255 (child_terminal_save_ours): ... this.
3256 (terminal_ours): Rename to ...
3257 (child_terminal_ours): ... this.
3258 (terminal_inferior): Rename to ...
3259 (child_terminal_inferior): ... this.
3260 (terminal_init_inferior): Rename to ...
3261 (child_terminal_init_inferior): ... this.
3262 (terminal_init_inferior_with_pgrp): Rename to ...
3263 (child_terminal_init_inferior_with_pgrp): ... this.
3264 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3265 (child_terminal_init_with_pgrp): ... this.
3266 (terminal_save_ours): Rename to ...
3267 (child_terminal_save_ours): ... this.
3268 (terminal_init_inferior): Rename to ...
3269 (child_terminal_init): ... this. Adjust.
3270 (terminal_inferior): Rename to ...
3271 (child_terminal_inferior): ... this.
3272 (terminal_ours_for_output): Rename to ...
3273 (child_terminal_ours_for_output): ... this. Adjust.
3274 (terminal_ours): Rename to ...
3275 (child_terminal_ours): ... this.
3276 (terminal_ours_1): Rename to ...
3277 (child_terminal_ours_1): ... this. Adjust.
3278 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3279 * windows-nat.c (do_initial_windows_stuff): Adjust.
3280 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3281 (gnu_terminal_init): ... this. Adjust.
3282 (gnu_target): Adjust.
3283 * inf-child.c (inf_child_target): Adjust.
3285 2014-03-13 Doug Evans <xdje42@gmail.com>
3288 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3291 2014-03-13 Doug Evans <xdje42@gmail.com>
3293 * value.c (record_latest_value): Call release_value_or_incref
3294 instead of release_value.
3296 2014-03-13 Pedro Alves <palves@redhat.com>
3298 * procfs.c (procfs_target): Don't override to_shortname,
3299 to_longname or to_doc.
3301 2014-03-13 Pedro Alves <palves@redhat.com>
3303 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3304 Unix in user visible strings.
3306 2014-03-12 Stan Shebs <stan@codesourcery.com>
3308 * gdbtypes.h: Annotate comments for Doxygen, add a page
3309 block comment with some general info.
3311 2014-03-12 Pedro Alves <palves@redhat.com>
3313 * infcmd.c (prepare_execution_command): New function, factored out
3314 from several execution commands.
3315 (run_command_1, continue_command, step_1, jump_command)
3316 (signal_command, until_command, advance_command, finish_command)
3317 (attach_command): Use prepare_execution_command.
3319 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3321 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3324 (struct arm_linux_thread_points): Removed.
3325 (struct arm_linux_process_info): New.
3326 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3327 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3328 (arm_linux_find_breakpoints_by_tid): Removed.
3329 (struct arch_lwp_info): New.
3330 (arm_linux_find_process_pid): New functions.
3331 (arm_linux_add_process): New functions.
3332 (arm_linux_process_info_get): New functions.
3333 (arm_linux_forget_process): New function.
3334 (arm_linux_get_debug_reg_state): New function.
3335 (struct update_registers_data): New.
3336 (update_registers_callback): New function.
3337 (arm_linux_insert_hw_breakpoint1): Updated.
3338 (arm_linux_remove_hw_breakpoint1): Updated.
3339 (arm_linux_insert_hw_breakpoint): Updated.
3340 (arm_linux_remove_hw_breakpoint): Updated.
3341 (arm_linux_insert_watchpoint): Updated.
3342 (arm_linux_remove_watchpoint): Updated.
3343 (arm_linux_new_thread): Updated.
3344 (arm_linux_prepare_to_resume): New function.
3345 (arm_linux_new_fork): New function.
3346 (_initialize_arm_linux_nat): Updated.
3348 2014-03-12 Pedro Alves <palves@redhat.com>
3350 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3352 2014-03-12 Tom Tromey <tromey@redhat.com>
3354 * inf-child.c (return_zero): New function.
3355 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3356 * aix-thread.c (aix_thread_inferior_created): New function.
3357 (aix_thread_attach): Remove.
3358 (init_aix_thread_ops): Don't set to_attach.
3359 (_initialize_aix_thread): Register inferior_created observer.
3360 * corelow.c (init_core_ops): Don't set to_attach or
3362 * exec.c (init_exec_ops): Don't set to_attach or
3364 * infcmd.c (run_command_1): Use find_run_target. Make direct
3366 (attach_command): Use find_attach_target. Make direct target
3368 * record-btrace.c (init_record_btrace_ops): Don't set
3370 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3372 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3373 set to_create_inferior.
3374 * target.c (complete_target_initialization): Add assertion.
3375 (target_create_inferior): Remove.
3376 (find_default_attach, find_default_create_inferior): Remove.
3377 (find_attach_target, find_run_target): New functions.
3378 (find_default_is_async_p, find_default_can_async_p)
3379 (target_supports_non_stop, target_attach): Remove.
3380 (init_dummy_target): Don't set to_create_inferior or
3381 to_supports_non_stop.
3382 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3383 TARGET_DEFAULT_FUNC.
3384 <to_create_inferior>: Add comment.
3385 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3386 TARGET_DEFAULT_RETURN.
3387 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3388 (find_attach_target, find_run_target): Declare.
3389 (target_create_inferior): Remove.
3390 (target_has_execution_1): Update comment.
3391 (target_supports_non_stop): Remove.
3392 * target-delegates.c: Rebuild.
3394 2014-03-12 Pedro Alves <palves@redhat.com>
3396 * inf-child.h: Update comment to not mention Unix.
3398 2014-03-12 Pedro Alves <palves@redhat.com>
3400 * inf-child.c: Update top comment to not mention Unix. Add
3401 generic comment describing how this target is meant to be used.
3402 (inf_child_post_attach, inf_child_post_startup_inferior)
3403 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3406 2014-03-12 Pedro Alves <palves@redhat.com>
3408 * nto-procfs.c: Include inf-child.h.
3409 (procfs_ops): Delete global.
3410 (procfs_can_run): Delete method.
3411 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3412 target pointer instead of referencing procfs_ops.
3413 (procfs_prepare_to_store): Delete.
3414 (init_procfs_ops): Delete function.
3415 (procfs_target): New function, based on init_procfs_ops, but
3416 inherit inf_child_target.
3417 (_initialize_procfs): Use procfs_target.
3419 2014-03-12 Pedro Alves <palves@redhat.com>
3421 * windows-nat.c: Include inf-child.h.
3422 (windows_ops): Delete global.
3423 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3425 (init_windows_ops): Delete function.
3426 (windows_target): New function, based on init_windows_ops, but
3427 inherit inf_child_target.
3428 (_initialize_windows_nat): Use windows_target. Install x86
3429 specific target methods here.
3431 2014-03-10 Doug Evans <xdje42@gmail.com>
3433 * guile/guile.c (call_initialize_gdb_module): New function.
3434 (initialize_guile): Replace call to scm_init_guile with call to
3437 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3439 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3440 in call to TYPE_CODE macro.
3442 2014-03-10 Jerome Guitton <guitton@adacore.com>
3444 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3445 Resolve tagged types to full view.
3447 2014-03-10 Hui Zhu <hui@codesourcery.com>
3449 * target.h (target_insert_breakpoint): Remove "hardware" from its
3452 2014-03-07 Doug Evans <dje@google.com>
3454 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3456 2014-03-07 Doug Evans <dje@google.com>
3458 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3459 Remove unused local comp_dir_attr. Assert exactly one of
3460 stub_comp_unit_die, stub_comp_dir is non-NULL.
3462 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3464 * target.h (complete_target_initialization, add_target):
3467 2014-03-07 Pedro Alves <palves@redhat.com>
3469 * go32-nat.c: Include inf-child.h.
3470 (go32_ops): Delete global.
3471 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3473 (go32_create_inferior): Push the passed in target pointer instead
3474 of referencing go32_ops.
3475 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3476 (go32_target): New function, based on init_go32_ops, but inherit
3478 (_initialize_go32_nat): Use go32_target. Move parts of
3481 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3483 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3484 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3485 SYMBOL_VALUE_ADDRESS.
3486 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3488 2014-03-06 Yao Qi <yao@codesourcery.com>
3490 * breakpoint.c (get_tracepoint_by_number): Remove argument
3491 optional_p. All callers updated. Adjust comments. Update
3493 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3495 2014-03-06 Yao Qi <yao@codesourcery.com>
3497 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3498 early if get_number returns zero. Use 'p' instead of 'args'.
3500 2014-03-06 Yao Qi <yao@codesourcery.com>
3502 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3505 2014-03-06 Yao Qi <yao@codesourcery.com>
3507 PR breakpoints/16508
3508 * tracepoint.c (check_trace_running): New function.
3509 (trace_find_command): Move code to check_trace_running and
3510 call check_trace_running.
3511 (trace_find_pc_command): Likewise.
3512 (trace_find_tracepoint_command): Likewise.
3513 (trace_find_line_command): Likewise.
3514 (trace_find_range_command): Likewise.
3515 * tracepoint.h (check_trace_running): Likewise.
3516 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3518 2014-03-06 Yao Qi <yao@codesourcery.com>
3520 * target.h (struct target_ops) <to_traceframe_info>: Use
3521 TARGET_DEFAULT_NORETURN (tcomplain ()).
3522 * target-delegates.c: Regenerated.
3524 2014-03-05 Pedro Alves <palves@redhat.com>
3527 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3528 void. Update comment.
3529 (dcache_xfer_memory): Delete.
3530 (dcache_read_memory_partial): New, based on the read bits of
3532 (dcache_update): Add status parameter. Use ULONGEST for len, and
3533 adjust. Discard cache lines if the reason for the update was
3535 * dcache.h (dcache_xfer_memory): Delete declaration.
3536 (dcache_read_memory_partial): New declaration.
3537 (dcache_update): Update prototype.
3538 * target.c (raw_memory_xfer_partial): Update the dcache here.
3539 (memory_xfer_partial_1): Don't handle dcache writes here.
3541 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3543 * remote-sim.c (gdbsim_load): Add const to prog.
3545 2014-03-03 Tom Tromey <tromey@redhat.com>
3547 * elfread.c (probe_key): Change to bfd_data.
3548 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3549 now per-BFD, not per-objfile.
3550 * stap-probe.c (stap_probe_destroy): Update comment.
3551 (handle_stap_probe): Allocate on the per-BFD obstack.
3553 2014-03-03 Tom Tromey <tromey@redhat.com>
3555 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3556 * breakpoint.c (create_longjmp_master_breakpoint): Use
3558 (add_location_to_breakpoint, bkpt_probe_insert_location)
3559 (bkpt_probe_remove_location): Update.
3560 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3561 * elfread.c (elf_symfile_relocate_probe): Remove.
3562 (elf_probe_fns): Update.
3563 (insert_exception_resume_breakpoint): Change type of "probe"
3564 parameter to bound_probe.
3565 (check_exception_resume): Update.
3566 * objfiles.c (objfile_relocate1): Don't relocate probes.
3567 * probe.c (bound_probe_s): New typedef.
3568 (parse_probes): Use get_probe_address. Set sal's objfile.
3569 (find_probe_by_pc): Return a bound_probe.
3570 (collect_probes): Return a VEC(bound_probe_s).
3571 (compare_probes): Update.
3572 (gen_ui_out_table_header_info): Change type of "probes"
3574 (info_probes_for_ops): Update.
3575 (get_probe_address): New function.
3576 (probe_safe_evaluate_at_pc): Update.
3577 * probe.h (struct probe_ops) <get_probe_address>: New field.
3578 <set_semaphore, clear_semaphore>: Add objfile parameter.
3579 (struct probe) <objfile>: Remove field.
3581 <address>: Update comment.
3582 (struct bound_probe): New.
3583 (find_probe_by_pc): Return a bound_probe.
3584 (get_probe_address): Declare.
3585 * solib-svr4.c (struct probe_and_action) <address>: New field.
3586 (hash_probe_and_action, equal_probe_and_action): Update.
3587 (register_solib_event_probe): Add address parameter.
3588 (solib_event_probe_at): Update.
3589 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3591 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3592 (stap_get_probe_address): New function.
3593 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3594 (compile_probe_arg): Update.
3595 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3597 (handle_stap_probe): Don't relocate the probe.
3598 (stap_relocate): Remove.
3599 (stap_gen_info_probes_table_values): Update.
3600 (stap_probe_ops): Remove stap_relocate.
3601 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3602 (debug_sym_probe_fns): Update.
3603 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3604 * symtab.c (init_sal): Use memset.
3605 * symtab.h (struct symtab_and_line) <objfile>: New field.
3606 * tracepoint.c (start_tracing, stop_tracing): Update.
3608 2014-03-03 Tom Tromey <tromey@redhat.com>
3610 * probe.h (parse_probes, find_probe_by_pc)
3611 (find_probes_in_objfile): Fix comments.
3613 2014-03-02 Doug Evans <xdje42@gmail.com>
3615 * infrun.c (handle_signal_stop): Replace test for
3616 TARGET_WAITKIND_STOPPED with an assert.
3618 2014-03-02 Doug Evans <xdje42@gmail.com>
3620 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3622 2014-03-02 Doug Evans <xdje42@gmail.com>
3624 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3626 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3628 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3630 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3632 * i386obsd-nat.c: Include "obsd-nat.h".
3633 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3635 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3637 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3639 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3641 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3643 * mips64obsd-nat.c: Include "obsd-nath".
3644 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3646 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3648 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3650 * amd64obsd-nat.c: Include "obsd-nat,h.
3651 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3653 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3655 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3657 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3658 (find_overload_match): Update call to find_oload_champ.
3659 (find_oload_champ_namespace_loop): Likewise
3661 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3663 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3665 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3666 * config/sparc/obsd64.mh: New file.
3667 * sparc64obsd-nat.c: New file.
3669 * obsd-nat.h: New file.
3670 * obsd-nat.c: New file.
3671 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3672 (ALLDEPFILES): Add obsd-nat.c.
3674 2014-02-28 Tom Tromey <tromey@redhat.com>
3676 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3677 * cli-out.h (cli_ui_out_impl): Now const.
3678 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3679 * ui-out.c (struct ui_out) <impl>: Now const.
3680 (default_ui_out_impl): Now const.
3681 (ui_out_new): Make 'impl' parameter const.
3682 * ui-out.h (ui_out_new): Update.
3684 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3686 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3688 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3690 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3692 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3694 Additional PR 8882 fix.
3695 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3697 2014-02-27 Pedro Alves <palves@redhat.com>
3699 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3702 2014-02-27 Pedro Alves <palves@redhat.com>
3705 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3706 * nat/linux-waitpid.c: Include string.h.
3707 (status_to_str): Moved here and made extern.
3708 * nat/linux-waitpid.h (status_to_str): New declaration.
3710 2014-02-27 Hui Zhu <hui@codesourcery.com>
3713 * infrun.c (ptid_match): Move ...
3714 * common/ptid.c (ptid_match): ... here.
3715 * inferior.h (ptid_match): Move ...
3716 * common/ptid.h (ptid_match): ... here.
3718 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3720 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3721 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3724 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3726 * obsd-tdep.c (obsd_auxv_parse): New function.
3727 (obsd_init_abi): Set auxv_parse.
3729 * gdbarch.sh (auxv_parse): New.
3730 * gdbarch.h: Regenerated.
3731 * gdbarch.c: Regenerated.
3732 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3734 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3736 * guile/scm-value.c (gdbscm_history_append_x): New function.
3737 (value_functions): Add it.
3739 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3741 * dwarf2read.c (attr_value_as_address): New function.
3742 (dwarf2_find_base_address, read_call_site_scope): Use
3743 attr_value_as_address in place of DW_ADDR.
3744 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3745 the low and high addresses. Slight rework of the handling
3746 of the high pc being a constant form, and limit it to
3747 DWARF verson 4 or higher.
3748 (dwarf2_record_block_ranges): Likewise.
3749 (read_partial_die): Likewise.
3750 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3752 2014-02-26 Tom Tromey <tromey@redhat.com>
3754 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3756 2014-02-26 Tom Tromey <tromey@redhat.com>
3758 * elfread.c (elf_read_minimal_symbols): Return early if
3759 minimal symbols have already been read. Add "ei" parameter.
3760 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3761 * minsyms.c (prim_record_minimal_symbol_full): Update.
3762 * objfiles.h (struct objstats) <n_minsyms>: Move...
3763 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3764 * symmisc.c (print_objfile_statistics): Update.
3766 2014-02-26 Tom Tromey <tromey@redhat.com>
3768 * elfread.c (elf_read_minimal_symbols): New function, from
3770 (elf_symfile_read): Call it.
3772 2014-02-26 Tom Tromey <tromey@redhat.com>
3774 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3775 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3776 (lookup_minimal_symbol_solib_trampoline)
3777 (lookup_minimal_symbol_by_pc_section_1)
3778 (lookup_minimal_symbol_and_objfile): Update.
3779 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3780 Don't allocate a minimal symbol if minsyms have already been read.
3781 (build_minimal_symbol_hash_tables): Update.
3782 (install_minimal_symbols): Do nothing if minsyms already read.
3783 Use the per-BFD obstack.
3784 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3785 * objfiles.c (allocate_objfile): Call
3786 terminate_minimal_symbol_table later.
3787 (have_minimal_symbols): Update.
3788 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3789 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3790 Move from struct objfile.
3791 <minsyms_read>: New field.
3792 (struct objfile) <msymbols, minimal_symbol_count,
3793 msymbol_hash, msymbol_demangled_hash>: Move.
3794 (ALL_OBJFILE_MSYMBOLS): Update.
3795 * symfile.c (read_symbols): Set minsyms_read.
3796 (reread_symbols): Update.
3797 * symmisc.c (dump_objfile, dump_msymbols): Update.
3799 2014-02-26 Tom Tromey <tromey@redhat.com>
3801 * minsyms.c (msymbols_sort): Remove.
3802 * minsyms.h (msymbols_sort): Remove.
3803 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3804 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3805 * elfread.c (elf_symtab_read): Don't add section offsets.
3806 * xcoffread.c (record_minimal_symbol): Don't add section offset
3807 to minimal symbol address.
3808 * somread.c (text_offset, data_offset): Remove.
3809 (som_symtab_read): Don't add section offsets to minimal symbol
3811 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3812 Don't add section offsets to minimal symbols.
3813 * coffread.c (coff_symtab_read): Don't add section offsets
3814 to minimal symbol addresses.
3815 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3816 to minimal symbol addresses.
3817 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3818 section offset to minimal symbol addresses.
3819 * mdebugread.c (parse_partial_symbols): Don't add section
3820 offset to minimal symbol addresses.
3821 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3822 offset to minimal symbol addresses.
3824 2014-02-26 Tom Tromey <tromey@redhat.com>
3826 * ada-lang.c (ada_main_name): Update.
3827 (ada_add_standard_exceptions): Update.
3828 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3829 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3830 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3831 * auxv.c (ld_so_xfer_auxv): Update.
3832 * avr-tdep.c (avr_scan_prologue): Update.
3833 * ax-gdb.c (gen_var_ref): Update.
3834 * blockframe.c (get_pc_function_start)
3835 (find_pc_partial_function_gnu_ifunc): Update.
3836 * breakpoint.c (create_overlay_event_breakpoint)
3837 (create_longjmp_master_breakpoint)
3838 (create_std_terminate_master_breakpoint)
3839 (create_exception_master_breakpoint): Update.
3840 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3841 * c-valprint.c (c_val_print): Update.
3842 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3843 * common/agent.c (agent_look_up_symbols): Update.
3844 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3845 * dwarf2loc.c (call_site_to_target_addr): Update.
3846 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3847 * elfread.c (elf_gnu_ifunc_record_cache)
3848 (elf_gnu_ifunc_resolve_by_got): Update.
3849 * findvar.c (default_read_var_value): Update.
3850 * frame.c (inside_main_func): Update.
3851 * frv-tdep.c (frv_frame_this_id): Update.
3852 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3853 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3855 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3856 (hppa_hpux_find_dummy_bpaddr): Update.
3857 * hppa-tdep.c (hppa_symbol_address): Update.
3858 * infcmd.c (until_next_command): Update.
3859 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3861 * linespec.c (minsym_found, add_minsym): Update.
3862 * linux-nat.c (get_signo): Update.
3863 * linux-thread-db.c (inferior_has_bug): Update.
3864 * m32c-tdep.c (m32c_return_value)
3865 (m32c_m16c_address_to_pointer): Update.
3866 * m32r-tdep.c (m32r_frame_this_id): Update.
3867 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3868 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3869 * maint.c (maintenance_translate_address): Update.
3870 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3871 (frob_address): New function.
3872 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3873 frob_address. Rename parameter to "pc_in".
3874 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3876 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3878 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3879 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3880 * objc-lang.c (find_objc_msgsend): Update.
3881 * objfiles.c (objfile_relocate1): Update.
3882 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3883 * p-valprint.c (pascal_val_print): Update.
3884 * parse.c (write_exp_msymbol): Update.
3885 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3886 (ppc_elfv2_skip_entrypoint): Update.
3887 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3888 * printcmd.c (build_address_symbolic, msym_info)
3889 (address_info): Update.
3890 * proc-service.c (ps_pglobal_lookup): Update.
3891 * psymtab.c (find_pc_sect_psymtab_closer)
3892 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3893 Change msymbol parameter to bound_minimal_symbol.
3894 * ravenscar-thread.c (get_running_thread_id): Update.
3895 * remote.c (remote_check_symbols): Update.
3896 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3898 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3899 * solib-dsbt.c (lm_base): Update.
3900 * solib-frv.c (lm_base, main_got): Update.
3901 * solib-irix.c (locate_base): Update.
3902 * solib-som.c (som_solib_create_inferior_hook)
3903 (link_map_start): Update.
3904 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3905 * solib-svr4.c (elf_locate_base, enable_break): Update.
3906 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3907 (flush_ea_cache): Update.
3908 * stabsread.c (define_symbol, scan_file_globals): Update.
3909 * stack.c (find_frame_funname): Update.
3910 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3911 (debug_qf_find_pc_sect_symtab): Update.
3912 * symfile.c (simple_read_overlay_table)
3913 (simple_overlay_update): Update.
3914 * symfile.h (struct quick_symbol_functions)
3915 <find_pc_sect_symtab>: Change type of msymbol to
3916 bound_minimal_symbol.
3917 * symmisc.c (dump_msymbols): Update.
3918 * symtab.c (find_pc_sect_symtab_via_partial)
3919 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3920 (search_symbols, print_msymbol_info): Update.
3921 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3922 (MSYMBOL_VALUE_ADDRESS): Redefine.
3923 (BMSYMBOL_VALUE_ADDRESS): New macro.
3924 * tracepoint.c (scope_info): Update.
3925 * tui/tui-disasm.c (tui_find_disassembly_address)
3926 (tui_get_begin_asm_address): Update.
3927 * valops.c (find_function_in_inferior): Update.
3928 * value.c (value_static_field, value_fn_field): Update.
3930 2014-02-26 Tom Tromey <tromey@redhat.com>
3932 * ada-lang.c (ada_update_initial_language): Update.
3933 (ada_main_name, ada_has_this_exception_support): Update.
3934 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3935 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3936 * arm-tdep.c (arm_skip_stub): Update.
3937 * auxv.c (ld_so_xfer_auxv): Update.
3938 * avr-tdep.c (avr_scan_prologue): Update.
3939 * ax-gdb.c (gen_var_ref): Update.
3940 * breakpoint.c (struct breakpoint_objfile_data)
3941 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3942 type to bound_minimal_symbol.
3943 (create_overlay_event_breakpoint)
3944 (create_longjmp_master_breakpoint)
3945 (create_std_terminate_master_breakpoint)
3946 (create_exception_master_breakpoint): Update.
3947 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3948 * c-exp.y (classify_name): Update.
3949 * coffread.c (coff_symfile_read): Update.
3950 * common/agent.c (agent_look_up_symbols): Update.
3951 * d-lang.c (d_main_name): Update.
3952 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3953 * dec-thread.c (enable_dec_thread): Update.
3954 * dwarf2loc.c (call_site_to_target_addr): Update.
3955 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3956 * eval.c (evaluate_subexp_standard): Update.
3957 * findvar.c (struct minsym_lookup_data) <result>: Change type
3958 to bound_minimal_symbol.
3960 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3961 * frame.c (inside_main_func): Update.
3962 * frv-tdep.c (frv_frame_this_id): Update.
3963 * gcore.c (call_target_sbrk): Update.
3964 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3965 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3967 * go-lang.c (go_main_name): Update.
3968 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3969 (hppa_hpux_find_import_stub_for_addr): Update.
3970 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3971 Update. Change return type.
3972 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3974 * jit.c (jit_breakpoint_re_set_internal): Update.
3975 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3977 * linux-nat.c (get_signo): Update.
3978 * linux-thread-db.c (inferior_has_bug): Update
3979 * m32c-tdep.c (m32c_return_value)
3980 (m32c_m16c_address_to_pointer): Update.
3981 * m32r-tdep.c (m32r_frame_this_id): Update.
3982 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3983 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3984 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3985 lookup_minimal_symbol. Change return type.
3986 (lookup_minimal_symbol): Remove.
3987 (lookup_bound_minimal_symbol): Update.
3988 (lookup_minimal_symbol_text): Change return type.
3989 (lookup_minimal_symbol_solib_trampoline): Change return type.
3990 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3991 (lookup_minimal_symbol_solib_trampoline): Change return type.
3992 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3993 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3994 (value_nsstring, find_imps): Update.
3995 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3996 * p-lang.c (pascal_main_name): Update.
3997 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3998 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3999 * proc-service.c (ps_pglobal_lookup): Update.
4000 * ravenscar-thread.c (get_running_thread_msymbol): Change
4002 (has_ravenscar_runtime, get_running_thread_id): Update.
4003 * remote.c (remote_check_symbols): Update.
4004 * sol-thread.c (ps_pglobal_lookup): Update.
4005 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4006 * solib-dsbt.c (lm_base): Update.
4007 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4009 * solib-irix.c (locate_base): Update.
4010 * solib-som.c (som_solib_create_inferior_hook)
4011 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4013 * solib-spu.c (spu_enable_break): Update.
4014 * solib-svr4.c (elf_locate_base, enable_break): Update.
4015 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4016 (flush_ea_cache): Update.
4017 * stabsread.c (define_symbol): Update.
4018 * symfile.c (simple_read_overlay_table): Update.
4019 * symtab.c (find_pc_sect_line): Update.
4020 * tracepoint.c (scope_info): Update.
4021 * tui-disasm.c (tui_get_begin_asm_address): Update.
4022 * value.c (value_static_field): Update.
4024 2014-02-26 Tom Tromey <tromey@redhat.com>
4026 * minsyms.c (prim_record_minimal_symbol_full): Use
4027 SET_MSYMBOL_VALUE_ADDRESS.
4028 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4029 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4030 SET_MSYMBOL_VALUE_ADDRESS.
4031 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4032 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4034 2014-02-26 Tom Tromey <tromey@redhat.com>
4036 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4037 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4038 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4039 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4040 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4041 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4042 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4043 * ada-lang.c (ada_main_name): Update.
4044 (ada_lookup_simple_minsym): Update.
4045 (ada_make_symbol_completion_list): Update.
4046 (ada_add_standard_exceptions): Update.
4047 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4048 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4049 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4050 * arm-tdep.c (skip_prologue_function): Update.
4051 (arm_skip_stack_protector, arm_skip_stub): Update.
4052 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4053 (arm_wince_skip_main_prologue): Update.
4054 * auxv.c (ld_so_xfer_auxv): Update.
4055 * avr-tdep.c (avr_scan_prologue): Update.
4056 * ax-gdb.c (gen_var_ref): Update.
4057 * block.c (call_site_for_pc): Update.
4058 * blockframe.c (get_pc_function_start): Update.
4059 (find_pc_partial_function_gnu_ifunc): Update.
4060 * breakpoint.c (create_overlay_event_breakpoint): Update.
4061 (create_longjmp_master_breakpoint): Update.
4062 (create_std_terminate_master_breakpoint): Update.
4063 (create_exception_master_breakpoint): Update.
4064 (resolve_sal_pc): Update.
4065 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4066 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4068 * c-valprint.c (c_val_print): Update.
4069 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4070 * coffread.c (coff_symfile_read): Update.
4071 * common/agent.c (agent_look_up_symbols): Update.
4072 * dbxread.c (find_stab_function_addr): Update.
4073 (end_psymtab): Update.
4074 * dwarf2loc.c (call_site_to_target_addr): Update.
4075 (func_verify_no_selftailcall): Update.
4076 (tailcall_dump): Update.
4077 (call_site_find_chain_1): Update.
4078 (dwarf_expr_reg_to_entry_parameter): Update.
4079 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4080 (elf_gnu_ifunc_resolve_by_got): Update.
4081 * f-valprint.c (info_common_command): Update.
4082 * findvar.c (read_var_value): Update.
4083 * frame.c (get_prev_frame_1): Update.
4084 (inside_main_func): Update.
4085 * frv-tdep.c (frv_skip_main_prologue): Update.
4086 (frv_frame_this_id): Update.
4087 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4088 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4089 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4090 (gnuv3_skip_trampoline): Update.
4091 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4092 (hppa64_hpux_in_solib_call_trampoline): Update.
4093 (hppa_hpux_skip_trampoline_code): Update.
4094 (hppa64_hpux_search_dummy_call_sequence): Update.
4095 (hppa_hpux_find_import_stub_for_addr): Update.
4096 (hppa_hpux_find_dummy_bpaddr): Update.
4097 * hppa-tdep.c (hppa_symbol_address)
4098 (hppa_lookup_stub_minimal_symbol): Update.
4099 * i386-tdep.c (i386_skip_main_prologue): Update.
4100 (i386_pe_skip_trampoline_code): Update.
4101 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4102 * infcall.c (get_function_name): Update.
4103 * infcmd.c (until_next_command): Update.
4104 * jit.c (jit_breakpoint_re_set_internal): Update.
4105 (jit_inferior_init): Update.
4106 * linespec.c (minsym_found): Update.
4107 (add_minsym): Update.
4108 * linux-fork.c (info_checkpoints_command): Update.
4109 * linux-nat.c (get_signo): Update.
4110 * linux-thread-db.c (inferior_has_bug): Update.
4111 * m32c-tdep.c (m32c_return_value): Update.
4112 (m32c_m16c_address_to_pointer): Update.
4113 (m32c_m16c_pointer_to_address): Update.
4114 * m32r-tdep.c (m32r_frame_this_id): Update.
4115 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4116 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4117 * maint.c (maintenance_translate_address): Update.
4118 * minsyms.c (add_minsym_to_hash_table): Update.
4119 (add_minsym_to_demangled_hash_table): Update.
4120 (msymbol_objfile): Update.
4121 (lookup_minimal_symbol): Update.
4122 (iterate_over_minimal_symbols): Update.
4123 (lookup_minimal_symbol_text): Update.
4124 (lookup_minimal_symbol_by_pc_name): Update.
4125 (lookup_minimal_symbol_solib_trampoline): Update.
4126 (lookup_minimal_symbol_by_pc_section_1): Update.
4127 (lookup_minimal_symbol_and_objfile): Update.
4128 (prim_record_minimal_symbol_full): Update.
4129 (compare_minimal_symbols): Update.
4130 (compact_minimal_symbols): Update.
4131 (build_minimal_symbol_hash_tables): Update.
4132 (install_minimal_symbols): Update.
4133 (terminate_minimal_symbol_table): Update.
4134 (find_solib_trampoline_target): Update.
4135 (minimal_symbol_upper_bound): Update.
4136 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4137 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4138 (mips_skip_pic_trampoline_code): Update.
4139 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4140 * objc-lang.c (selectors_info): Update.
4141 (classes_info): Update.
4142 (find_methods): Update.
4143 (find_imps): Update.
4144 (find_objc_msgsend): Update.
4145 * objfiles.c (objfile_relocate1): Update.
4146 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4147 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4148 * p-valprint.c (pascal_val_print): Update.
4149 * parse.c (write_exp_msymbol): Update.
4150 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4151 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4152 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4153 * printcmd.c (build_address_symbolic): Update.
4155 (address_info): Update.
4156 * proc-service.c (ps_pglobal_lookup): Update.
4157 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4158 (find_pc_sect_psymtab): Update.
4159 * python/py-framefilter.c (py_print_frame): Update.
4160 * ravenscar-thread.c (get_running_thread_id): Update.
4161 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4163 * remote.c (remote_check_symbols): Update.
4164 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4165 (rs6000_skip_trampoline_code): Update.
4166 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4167 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4168 * solib-dsbt.c (lm_base): Update.
4169 * solib-frv.c (lm_base): Update.
4171 * solib-irix.c (locate_base): Update.
4172 * solib-som.c (som_solib_create_inferior_hook): Update.
4173 (som_solib_desire_dynamic_linker_symbols): Update.
4174 (link_map_start): Update.
4175 * solib-spu.c (spu_enable_break): Update.
4176 (ocl_enable_break): Update.
4177 * solib-svr4.c (elf_locate_base): Update.
4178 (enable_break): Update.
4179 * spu-tdep.c (spu_get_overlay_table): Update.
4180 (spu_catch_start): Update.
4181 (flush_ea_cache): Update.
4182 * stabsread.c (define_symbol): Update.
4183 (scan_file_globals): Update.
4184 * stack.c (find_frame_funname): Update.
4185 (frame_info): Update.
4186 * symfile.c (simple_read_overlay_table): Update.
4187 (simple_overlay_update): Update.
4188 * symmisc.c (dump_msymbols): Update.
4189 * symtab.c (fixup_section): Update.
4190 (find_pc_sect_line): Update.
4191 (skip_prologue_sal): Update.
4192 (search_symbols): Update.
4193 (print_msymbol_info): Update.
4194 (rbreak_command): Update.
4195 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4196 (completion_list_objc_symbol): Update.
4197 (default_make_symbol_completion_list_break_on): Update.
4198 * tracepoint.c (scope_info): Update.
4199 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4200 (tui_get_begin_asm_address): Update.
4201 * valops.c (find_function_in_inferior): Update.
4202 * value.c (value_static_field): Update.
4203 (value_fn_field): Update.
4205 2014-02-26 Tom Tromey <tromey@redhat.com>
4207 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4208 bound minimal symbols. Move code that knows about minsym
4210 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4212 * minsyms.h (minimal_symbol_upper_bound): Declare.
4213 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4214 minimal_symbol_upper_bound.
4216 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4218 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4219 Use the type's name if its basic type does not have a tag.
4221 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4223 * dwarf2read.c (read_subrange_type): Add comment.
4225 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4227 * dwarf2read.c (update_enumeration_type_from_children): New
4228 function, mostly extracted from process_structure_scope.
4229 (read_enumeration_type): Call update_enumeration_type_from_children.
4230 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4231 and flag_flag_enum fields.
4233 2014-02-26 Pedro Alves <palves@redhat.com>
4235 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4236 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4237 to_xfer_partial method.
4239 2014-02-26 Pedro Alves <palves@redhat.com>
4241 * target.c (complete_target_initialization): Don't install
4242 default_xfer_partial as to_xfer_partial hook.
4244 (update_current_target): Don't INHERIT nor de_fault
4245 deprecated_xfer_memory. Delete de_fault macro.
4246 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4247 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4248 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4251 2014-02-26 Pedro Alves <palves@redhat.com>
4253 * go32-nat.c (my_write_child): New function.
4254 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4255 (go32_xfer_partial): New function.
4256 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4257 Instead install a to_xfer_partial hook.
4259 2014-02-26 Pedro Alves <palves@redhat.com>
4261 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4262 to_xfer_partial helper. Rewrite.
4263 (procfs_xfer_partial): New function.
4264 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4265 Install a to_xfer_partial hook.
4267 2014-02-26 Pedro Alves <palves@redhat.com>
4269 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4270 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4271 (m32r_xfer_partial): New function.
4272 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4273 Install a to_xfer_partial hook.
4275 2014-02-26 Pedro Alves <palves@redhat.com>
4277 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4279 (mips_xfer_partial): New function.
4280 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4281 hook. Install a to_xfer_partial hook.
4283 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4285 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4286 * gdbtypes.c (create_array_type_with_stride): New function,
4287 renaming create_array_type, but with an added parameter
4288 called "bit_stride".
4289 (create_array_type): Re-implement using
4290 create_array_type_with_stride.
4291 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4292 and DW_AT_bit_stride attributes.
4294 2014-02-26 Pedro Alves <palves@redhat.com>
4296 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4297 task-specific breakpoints.
4299 2014-02-25 Pedro Alves <palves@redhat.com>
4301 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4302 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4304 2014-02-25 Stan Shebs <stan@codesourcery.com>
4306 * defs.h: Annotate comments for Doxygen.
4308 2014-02-25 Tom Tromey <tromey@redhat.com>
4310 * target.h (target_ignore): Don't declare.
4311 * target.c (target_ignore): Remove.
4313 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * auto-load.c (auto_load_objfile_script_1): Change filename to
4319 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4321 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4322 documentation. Adjust prototype to match the target_ops
4323 to_xfer_partial method. Adjust implementation accordingly.
4325 2014-02-25 Hui Zhu <hui@codesourcery.com>
4327 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4330 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4332 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4333 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4334 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4335 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4336 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4337 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4338 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4339 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4341 (rl78_register_type): Use a data pointer type for SP and
4342 new pseudo registers mentioned above. Use a 16 bit integer
4343 type for all other register pairs.
4344 (rl78_register_name, rl78_g10_register_name): Update for
4345 new pseudo registers.
4346 (rl78_pseudo_register_read): Likewise.
4347 (rl78_pseudo_register_write): Likewise.
4348 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4349 to the newly added pseudo registers.
4351 2014-02-24 Doug Evans <dje@google.com>
4353 * value.c (record_latest_value): Fix comment.
4354 * printcmd.c (print_command_1): Remove code to handle -1 return from
4355 record_latest_value.
4357 2014-02-24 Pedro Alves <palves@redhat.com>
4359 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4360 deprecated_xfer_memory hook.
4361 (procfs_xfer_partial): Call procfs_xfer_memory instead
4362 of the deprecated_xfer_memory target hook.
4363 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4366 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4368 * windows-nat.c (windows_xfer_shared_libraries): Return
4369 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4370 requested object is TARGET_OBJECT_LIBRARIES.
4372 2014-02-24 Yao Qi <yao@codesourcery.com>
4374 * target.h (enum target_xfer_status)
4375 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4376 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4378 * corefile.c (memory_error_message): User updated.
4379 * exec.c (section_table_read_available_memory): Likewise.
4380 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4381 * target.c (target_xfer_status_to_string): Likewise.
4382 (raw_memory_xfer_partial): Likewise.
4383 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4384 * valops.c (read_value_memory): Likewise.
4385 * exec.h: Update comments.
4387 2014-02-24 Yao Qi <yao@codesourcery.com>
4389 * target.c (target_xfer_status_to_string): Rename argument err
4391 * target.h (target_xfer_status_to_string): Update declaration.
4392 Replace target_xfer_error_to_string with
4393 target_xfer_status_to_string in comment.
4395 2014-02-24 Yao Qi <yao@codesourcery.com>
4397 * mips-linux-nat.c (super_close): Update its type.
4398 (mips_linux_close): Pass 'self' to super_close.
4400 2014-02-24 Yao Qi <yao@codesourcery.com>
4402 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4403 * corefile.c (read_memory): Adjusted.
4404 * target.c (target_write_with_progress): Adjusted.
4406 2014-02-23 Yao Qi <yao@codesourcery.com>
4410 2013-10-25 Yao Qi <yao@codesourcery.com>
4412 * remote.c (remote_traceframe_info): Return early if
4413 traceframe is not selected.
4415 2013-07-19 Yao Qi <yao@codesourcery.com>
4417 * target.c (update_current_target): Change the default action
4418 of 'to_traceframe_info' from tcomplain to return_zero.
4419 * target.h (struct target_ops) <to_traceframe_info>: Add more
4422 2014-02-23 Yao Qi <yao@codesourcery.com>
4424 * valops.c (read_value_memory): Rewrite it. Call
4425 target_xfer_partial in a loop.
4426 * exec.h (section_table_available_memory): Remove declaration.
4427 Move comments to ...
4428 * exec.c (section_table_available_memory): ... here. Make it
4431 2014-02-23 Yao Qi <yao@codesourcery.com>
4433 * exec.c (section_table_read_available_memory): New function.
4434 * exec.h (section_table_read_available_memory): Declare.
4435 * ctf.c (ctf_xfer_partial): Call
4436 section_table_read_available_memory.
4437 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4439 2014-02-23 Yao Qi <yao@codesourcery.com>
4441 * ctf.c (ctf_xfer_partial): Move code to ...
4442 * exec.c (exec_read_partial_read_only): ... it. New function.
4443 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4444 * tracefile.c: Include "exec.h".
4445 * exec.h (exec_read_partial_read_only): Declare.
4447 2014-02-23 Yao Qi <yao@codesourcery.com>
4449 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4450 (tfile_has_memory): Remove.
4451 (init_tfile_ops): Don't set fields to_has_all_memory and
4452 to_has_memory of tfile_ops.
4453 * tracefile.c (tracefile_has_all_memory): New function.
4454 (tracefile_has_memory): New function.
4455 (init_tracefile_ops): Initialize fields to_has_all_memory and
4456 to_has_memory of 'ops'.
4458 2014-02-23 Yao Qi <yao@codesourcery.com>
4460 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4461 (ctf_thread_alive, ctf_get_trace_status): Remove.
4462 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4464 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4465 (tfile_has_stack, tfile_has_registers): Remove.
4466 (tfile_thread_alive): Remove.
4467 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4469 * tracefile.c (tracefile_has_stack): New function.
4470 (tracefile_has_registers): New function.
4471 (tracefile_thread_alive): New function.
4472 (tracefile_get_trace_status): New function.
4473 (init_tracefile_ops): New function.
4474 * tracefile.h (init_tracefile_ops): Declare.
4476 2014-02-23 Yao Qi <yao@codesourcery.com>
4478 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4479 (O_LARGEFILE): Likewise.
4480 (tfile_ops): Likewise.
4481 (TRACE_HEADER_SIZE): Likewise.
4482 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4483 (cur_data_size): Likewise.
4484 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4485 (tfile_close, tfile_files_info): Likewise.
4486 (tfile_get_trace_status): Likewise.
4487 (tfile_get_tracepoint_status): Likewise.
4488 (tfile_get_traceframe_address): Likewise.
4489 (tfile_trace_find, match_blocktype): Likewise.
4490 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4491 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4492 (tfile_get_trace_state_variable_value): Likewise.
4493 (tfile_has_all_memory, tfile_has_memory): Likewise.
4494 (tfile_has_stack, tfile_has_registers): Likewise.
4495 (tfile_thread_alive, build_traceframe_info): Likewise.
4496 (tfile_traceframe_info, init_tfile_ops): Likewise.
4497 (_initialize_tracepoint): Don't call init_tfile_ops
4498 and add_target_with_completer.
4499 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4500 exec.h, completer.h and filenames.h.
4501 (_initialize_tracefile_tfile): New function.
4503 2014-02-23 Yao Qi <yao@codesourcery.com>
4505 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4507 (HFILES_NO_SRCDIR): Add tracefile.h.
4508 * ctf.c: Include "tracefile.h".
4509 * tracefile.h: New file.
4510 * tracefile.c: New file
4511 * tracefile-tfile.c: New file.
4512 * tracepoint.c: Include "tracefile.h".
4513 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4514 (stop_reason_names): Add const.
4515 (trace_file_writer_xfree): Move it to tracefile.c.
4516 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4517 (trace_save_ctf): Likewise.
4518 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4519 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4520 (tfile_write_header, tfile_write_regblock_type): Likewise.
4521 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4522 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4523 (tfile_write_raw_data, tfile_end): Likewise.
4524 (tfile_trace_file_writer_new): Likewise.
4525 (free_uploaded_tp): Make it extern.
4526 (free_uploaded_tsv): Make it extern.
4527 (_initialize_tracepoint): Move code to register command 'tsave'
4529 * tracepoint.h (stop_reason_names): Declare.
4530 (struct trace_frame_write_ops): Move it to tracefile.h.
4531 (struct trace_file_write_ops): Likewise.
4532 (struct trace_file_writer): Likewise.
4533 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4535 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4540 (get_cores_used_by_process): New parameter num_cores, use it.
4541 (linux_xfer_osdata_processes): Pass num_cores to it.
4542 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4545 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4547 * target.c (memory_xfer_partial): Fix length arg in call to
4548 breakpoint_xfer_memory.
4550 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4553 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4554 number comes after the + or - signs. Adjust length of register
4555 name to be extracted.
4557 2014-02-20 Tom Tromey <tromey@redhat.com>
4559 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4560 (ada_varobj_ops): Mark "extern".
4562 2014-02-20 Tom Tromey <tromey@redhat.com>
4564 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4566 2014-02-20 Doug Evans <xdje42@gmail.com>
4568 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4569 All callers updated.
4570 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4571 All callers updated.
4572 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4573 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4575 2014-02-20 lin zuojian <manjian2006@gmail.com>
4576 Joel Brobecker <brobecker@adacore.com>
4577 Doug Evans <xdje42@gmail.com>
4580 * dwarf2read.c (struct die_info): New member in_process.
4581 (reset_die_in_process): New function.
4582 (process_die): Set it at the start, reset when returning.
4583 (inherit_abstract_dies): Only call process_die if origin_child_die
4584 not already being processed.
4586 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4588 * windows-nat.c (handle_unload_dll): Add function documentation.
4589 (do_initial_windows_stuff): Add comment explaining why we wait
4590 until after inferior initialization has finished before
4591 processing all DLLs.
4593 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4595 * windows-nat.c (get_module_name): Delete.
4596 (windows_get_exec_module_filename): New function, mostly
4597 inspired from get_module_name.
4598 (windows_pid_to_exec_file): Replace call to get_module_name
4599 by call to windows_get_exec_module_filename.
4601 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4603 * windows-nat.c (handle_load_dll): Rewrite this function's
4604 introductory comment. Remove code using get_module_name
4605 to get the DLL's name.
4607 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4609 * windows-nat.c (get_windows_debug_event): Ignore
4610 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4611 if windows_initialization_done == 0.
4612 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4613 Adjust implementation to always load all DLLs.
4614 (do_initial_windows_stuff): Replace call to
4615 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4617 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4619 * windows-nat.c (_initialize_windows_nat): Deprecate the
4620 "dll-symbols" command. Turn the "add-shared-symbol-files"
4621 and "assf" aliases into commands, and deprecate them as well.
4622 * NEWS: Add entry explaining that "dll-symbols" and its two
4623 aliases are now deprecated.
4625 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4627 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4628 new-line in debug string. Remove trailing spaces.
4630 2014-02-19 Stan Shebs <stan@codesourcery.com>
4632 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4634 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4636 * NEWS: Add entry for the new feature
4637 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4640 2014-02-19 Stan Shebs <stan@codesourcery.com>
4642 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4644 2014-02-19 Pedro Alves <palves@redhat.com>
4646 * common/ptid.h (struct ptid): Mention that process_stratum
4647 targets should prefer ptid.lwp.
4649 2014-02-19 Pedro Alves <palves@redhat.com>
4651 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4652 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4653 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4654 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4655 store remote thread ids rather than ptid.tid.
4656 (_initialize_remote): Adjust.
4658 2014-02-19 Tom Tromey <tromey@redhat.com>
4660 * target.c (target_get_unwinder): Rewrite.
4661 (target_get_tailcall_unwinder): Rewrite.
4662 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4663 (record_btrace_to_get_tailcall_unwinder): New function.
4664 (init_record_btrace_ops): Update.
4665 * target.h (struct target_ops) <to_get_unwinder,
4666 to_get_tailcall_unwinder>: Now function pointers. Use
4667 TARGET_DEFAULT_RETURN.
4669 2014-02-19 Tom Tromey <tromey@redhat.com>
4671 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4673 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4675 2014-02-19 Tom Tromey <tromey@redhat.com>
4677 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4679 * target-delegates.c: Rebuild.
4680 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4681 TARGET_DEFAULT_FUNC.
4682 * target.c (default_target_decr_pc_after_break): Rename from
4683 forward_target_decr_pc_after_break. Simplify.
4684 (target_decr_pc_after_break): Rely on delegation.
4686 2014-02-19 Tom Tromey <tromey@redhat.com>
4688 * target.c (update_current_target): Do not INHERIT to_doc or
4689 to_magic. Do not de_fault to_open or to_close.
4691 2014-02-19 Tom Tromey <tromey@redhat.com>
4693 * gcore.h (objfile_find_memory_regions): Declare.
4694 * gcore.c (objfile_find_memory_regions): No longer static. Add
4696 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4697 * exec.c: Include gcore.h.
4698 (exec_set_find_memory_regions): Remove.
4699 (exec_find_memory_regions): Remove.
4700 (exec_do_find_memory_regions): Remove.
4701 (init_exec_ops): Update.
4702 * defs.h (exec_set_find_memory_regions): Remove.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target-delegates.c: Rebuild.
4707 * target.h (struct target_ops) <to_extra_thread_info,
4708 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4709 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4710 not 0, in TARGET_DEFAULT_RETURN.
4712 2014-02-19 Tom Tromey <tromey@redhat.com>
4714 * target.c (complete_target_initialization): Remove casts. Use
4715 return_zero_has_execution.
4716 (return_zero): Add "ignore" argument.
4717 (return_zero_has_execution): New function.
4718 (init_dummy_target): Remove casts. Use
4719 return_zero_has_execution.
4721 2014-02-19 Tom Tromey <tromey@redhat.com>
4723 * target.c (update_current_target): Update comments. Do not
4726 2014-02-19 Tom Tromey <tromey@redhat.com>
4728 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4730 * corelow.c (core_read_description): Delegate when needed.
4731 * remote.c (remote_read_description): Delegate when needed.
4732 * target-delegates.c: Rebuild.
4733 * target.c (target_read_description): Rewrite.
4734 * target.h (struct target_ops) <to_read_description>: Update
4735 comment. Use TARGET_DEFAULT_RETURN.
4737 2014-02-19 Tom Tromey <tromey@redhat.com>
4739 * target-delegates.c: Rebuild.
4740 * target.c (update_current_target): Don't inherit or default
4742 (find_default_run_target): Check against delegate_can_run.
4743 * target.h (struct target_ops) <to_can_run>: Use
4744 TARGET_DEFAULT_RETURN.
4746 2014-02-19 Tom Tromey <tromey@redhat.com>
4748 * target-delegates.c: Rebuild.
4749 * target.c (target_disconnect): Unconditionally delegate.
4750 * target.h (struct target_ops) <to_disconnect>: Use
4751 TARGET_DEFAULT_NORETURN.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * record.c (record_stop): Unconditionally delegate.
4756 * target-delegates.c: Rebuild.
4757 * target.c (target_stop_recording): Unconditionally delegate.
4758 * target.h (struct target_ops) <to_stop_recording>: Use
4759 TARGET_DEFAULT_IGNORE.
4761 2014-02-19 Tom Tromey <tromey@redhat.com>
4763 * target-delegates.c: Rebuild.
4764 * target.c (target_enable_btrace): Unconditionally delegate.
4765 * target.h (struct target_ops) <to_enable_btrace>: Use
4766 TARGET_DEFAULT_NORETURN.
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target-delegates.c: Rebuild.
4771 * target.c (target_read_btrace): Unconditionally delegate.
4772 * target.h (struct target_ops) <to_read_btrace>: Use
4773 TARGET_DEFAULT_NORETURN.
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target-delegates.c: Rebuild.
4778 * target.c (target_teardown_btrace): Unconditionally delegate.
4779 * target.h (struct target_ops) <to_teardown_btrace>: Use
4780 TARGET_DEFAULT_NORETURN.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target-delegates.c: Rebuild.
4785 * target.c (target_disable_btrace): Unconditionally delegate.
4786 * target.h (struct target_ops) <to_disable_btrace>: Use
4787 TARGET_DEFAULT_NORETURN.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (default_search_memory): New function.
4793 (simple_search_memory): Update comment.
4794 (target_search_memory): Unconditionally delegate.
4795 * target.h (struct target_ops) <to_search_memory>: Use
4796 TARGET_DEFAULT_FUNC.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * auxv.c (default_auxv_parse): No longer static.
4801 (target_auxv_parse): Unconditionally delegate.
4802 * auxv.h (default_auxv_parse): Declare.
4803 * target-delegates.c: Rebuild.
4804 * target.c: Include auxv.h.
4805 * target.h (struct target_ops) <to_auxv_parse>: Use
4806 TARGET_DEFAULT_FUNC.
4808 2014-02-19 Tom Tromey <tromey@redhat.com>
4810 * target-delegates.c: Rebuild.
4811 * target.c (target_memory_map): Unconditionally delegate.
4812 * target.h (struct target_ops) <to_memory_map>: Use
4813 TARGET_DEFAULT_RETURN.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (target_thread_alive): Unconditionally delegate.
4819 * target.h (struct target_ops) <to_thread_alive>: Use
4820 TARGET_DEFAULT_RETURN.
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target-delegates.c: Rebuild.
4825 * target.c (target_save_record): Unconditionally delegate.
4826 * target.h (struct target_ops) <to_save_record>: Use
4827 TARGET_DEFAULT_NORETURN.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * target-delegates.c: Rebuild.
4832 * target.c (target_delete_record): Unconditionally delegate.
4833 * target.h (struct target_ops) <to_delete_record>: Use
4834 TARGET_DEFAULT_NORETURN.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target-delegates.c: Rebuild.
4839 * target.c (target_record_is_replaying): Unconditionally
4841 * target.h (struct target_ops) <to_record_is_replaying>: Use
4842 TARGET_DEFAULT_RETURN.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target-delegates.c: Rebuild.
4847 * target.c (target_goto_record_begin): Unconditionally delegate.
4848 * target.h (struct target_ops) <to_goto_record_begin>: Use
4849 TARGET_DEFAULT_NORETURN.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target-delegates.c: Rebuild.
4854 * target.c (target_goto_record_end): Unconditionally delegate.
4855 * target.h (struct target_ops) <to_goto_record_end>: Use
4856 TARGET_DEFAULT_NORETURN.
4858 2014-02-19 Tom Tromey <tromey@redhat.com>
4860 * target-delegates.c: Rebuild.
4861 * target.c (target_goto_record): Unconditionally delegate.
4862 * target.h (struct target_ops) <to_goto_record>: Use
4863 TARGET_DEFAULT_NORETURN.
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target-delegates.c: Rebuild.
4868 * target.c (target_insn_history): Unconditionally delegate.
4869 * target.h (struct target_ops) <to_insn_history>: Use
4870 TARGET_DEFAULT_NORETURN.
4872 2014-02-19 Tom Tromey <tromey@redhat.com>
4874 * target-delegates.c: Rebuild.
4875 * target.c (target_insn_history_from): Unconditionally delegate.
4876 * target.h (struct target_ops) <to_insn_history_from>: Use
4877 TARGET_DEFAULT_NORETURN.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target-delegates.c: Rebuild.
4882 * target.c (target_insn_history_range): Unconditionally delegate.
4883 * target.h (struct target_ops) <to_insn_history_range>: Use
4884 TARGET_DEFAULT_NORETURN.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (target_call_history): Unconditionally delegate.
4890 * target.h (struct target_ops) <to_call_history>: Use
4891 TARGET_DEFAULT_NORETURN.
4893 2014-02-19 Tom Tromey <tromey@redhat.com>
4895 * target-delegates.c: Rebuild.
4896 * target.c (target_call_history_from): Unconditionally delegate.
4897 * target.h (struct target_ops) <to_call_history_from>: Use
4898 TARGET_DEFAULT_NORETURN.
4900 2014-02-19 Tom Tromey <tromey@redhat.com>
4902 * target-delegates.c: Rebuild.
4903 * target.c (target_call_history_range): Unconditionally delegate.
4904 * target.h (struct target_ops) <to_call_history_range>: Use
4905 TARGET_DEFAULT_NORETURN.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (target_verify_memory): Unconditionally delegate.
4911 * target.h (struct target_ops) <to_verify_memory>: Use
4912 TARGET_DEFAULT_NORETURN.
4914 2014-02-19 Tom Tromey <tromey@redhat.com>
4916 * target-delegates.c: Rebuild.
4917 * target.c (target_core_of_thread): Unconditionally delegate.
4918 * target.h (struct target_ops) <to_core_of_thread>: Use
4919 TARGET_DEFAULT_RETURN.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target-delegates.c: Rebuild.
4924 * target.c (target_flash_done): Unconditionally delegate.
4925 * target.h (struct target_ops) <to_flash_done>: Use
4926 TARGET_DEFAULT_NORETURN.
4928 2014-02-19 Tom Tromey <tromey@redhat.com>
4930 * target-delegates.c: Rebuild.
4931 * target.c (target_flash_erase): Unconditionally delegate.
4932 * target.h (struct target_ops) <to_flash_erase>: Use
4933 TARGET_DEFAULT_NORETURN.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (target_get_section_table): Unconditionally delegate.
4939 * target.h (struct target_ops) <to_get_section_table>: Use
4940 TARGET_DEFAULT_RETURN.
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * target-delegates.c: Rebuild.
4945 * target.c (target_pid_to_str): Unconditionally delegate.
4946 (init_dummy_target): Don't initialize to_pid_to_str.
4947 (default_pid_to_str): Rename from dummy_pid_to_str.
4948 * target.h (struct target_ops) <to_pid_to_str>: Use
4949 TARGET_DEFAULT_FUNC.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target-delegates.c: Rebuild.
4954 * target.c (target_find_new_threads): Unconditionally delegate.
4955 * target.h (struct target_ops) <to_find_new_threads>: Use
4956 TARGET_DEFAULT_RETURN.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * target-delegates.c: Rebuild.
4961 * target.c (target_program_signals): Unconditionally delegate.
4962 * target.h (struct target_ops) <to_program_signals>: Use
4963 TARGET_DEFAULT_IGNORE.
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target-delegates.c: Rebuild.
4968 * target.c (target_pass_signals): Unconditionally delegate.
4969 * target.h (struct target_ops) <to_pass_signals>: Use
4970 TARGET_DEFAULT_IGNORE.
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4974 * target-delegates.c: Rebuild.
4975 * target.c (default_mourn_inferior): New function.
4976 (target_mourn_inferior): Unconditionally delegate.
4977 * target.h (struct target_ops) <to_mourn_inferior>: Use
4978 TARGET_DEFAULT_FUNC.
4980 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target-delegates.c: Rebuild.
4983 * target.c (default_follow_fork): New function.
4984 (target_follow_fork): Unconditionally delegate.
4985 * target.h (struct target_ops) <to_follow_fork>: Use
4986 TARGET_DEFAULT_FUNC.
4988 2014-02-19 Tom Tromey <tromey@redhat.com>
4990 * target-delegates.c: Rebuild.
4991 * target.c (target_kill): Unconditionally delegate.
4992 * target.h (struct target_ops) <to_kill>: Use
4993 TARGET_DEFAULT_NORETURN.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * target-delegates.c: Rebuild.
4998 * target.c (target_masked_watch_num_registers): Unconditionally
5000 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5001 Use TARGET_DEFAULT_RETURN.
5003 2014-02-19 Tom Tromey <tromey@redhat.com>
5005 * target-delegates.c: Rebuild.
5006 * target.c (target_remove_mask_watchpoint): Unconditionally
5008 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5009 TARGET_DEFAULT_RETURN.
5011 2014-02-19 Tom Tromey <tromey@redhat.com>
5013 * target-delegates.c: Rebuild.
5014 * target.c (target_insert_mask_watchpoint): Unconditionally
5016 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5017 TARGET_DEFAULT_RETURN.
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target-delegates.c: Rebuild.
5022 * target.c (target_ranged_break_num_registers): Unconditionally
5024 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5025 Use TARGET_DEFAULT_RETURN.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target-delegates.c: Rebuild.
5030 * target.c (target_fetch_registers): Unconditionally delegate.
5031 * target.h (struct target_ops) <to_fetch_registers>: 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
5039 * target.h (struct target_ops) <to_stop>: Use
5040 TARGET_DEFAULT_IGNORE.
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
5046 to_can_run_breakpoint_commands.
5047 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5048 Use TARGET_DEFAULT_RETURN.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (update_current_target): Don't inherit or default
5054 to_supports_evaluation_of_breakpoint_conditions.
5055 * target.h (struct target_ops)
5056 <to_supports_evaluation_of_breakpoint_conditions>: Use
5057 TARGET_DEFAULT_RETURN.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (update_current_target): Don't inherit or default
5063 to_augmented_libraries_svr4_read.
5064 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5065 Use TARGET_DEFAULT_RETURN.
5067 2014-02-19 Tom Tromey <tromey@redhat.com>
5069 * target-delegates.c: Rebuild.
5070 * target.c (update_current_target): Don't inherit or default
5072 * target.h (struct target_ops) <to_can_use_agent>: Use
5073 TARGET_DEFAULT_RETURN.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * target-delegates.c: Rebuild.
5078 * target.c (update_current_target): Don't inherit or default
5080 * target.h (struct target_ops) <to_use_agent>: Use
5081 TARGET_DEFAULT_NORETURN.
5083 2014-02-19 Tom Tromey <tromey@redhat.com>
5085 * target-delegates.c: Rebuild.
5086 * target.c (update_current_target): Don't inherit or default
5088 (return_null): Remove.
5089 * target.h (struct target_ops) <to_traceframe_info>: Use
5090 TARGET_DEFAULT_RETURN.
5092 2014-02-19 Tom Tromey <tromey@redhat.com>
5094 * target-delegates.c: Rebuild.
5095 * target.c (update_current_target): Don't inherit or default
5096 to_static_tracepoint_markers_by_strid.
5097 * target.h (struct target_ops)
5098 <to_static_tracepoint_markers_by_strid>: Use
5099 TARGET_DEFAULT_NORETURN.
5101 2014-02-19 Tom Tromey <tromey@redhat.com>
5103 * target-delegates.c: Rebuild.
5104 * target.c (update_current_target): Don't inherit or default
5105 to_static_tracepoint_marker_at.
5106 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5107 Use TARGET_DEFAULT_RETURN.
5109 2014-02-19 Tom Tromey <tromey@redhat.com>
5111 * target-delegates.c: Rebuild.
5112 * target.c (update_current_target): Don't inherit or default
5114 * target.h (struct target_ops) <to_set_permissions>: Use
5115 TARGET_DEFAULT_IGNORE.
5117 2014-02-19 Tom Tromey <tromey@redhat.com>
5119 * target-delegates.c: Rebuild.
5120 * target.c (update_current_target): Don't inherit or default
5122 * target.h (struct target_ops) <to_get_tib_address>: Use
5123 TARGET_DEFAULT_NORETURN.
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target-delegates.c: Rebuild.
5128 * target.c (update_current_target): Don't inherit or default
5130 * target.h (struct target_ops) <to_set_trace_notes>: Use
5131 TARGET_DEFAULT_RETURN.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target-delegates.c: Rebuild.
5136 * target.c (update_current_target): Don't initialize
5137 to_set_trace_buffer_size.
5138 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5139 TARGET_DEFAULT_IGNORE.
5141 2014-02-19 Tom Tromey <tromey@redhat.com>
5143 * target-delegates.c: Rebuild.
5144 * target.c (update_current_target): Don't inherit or default
5145 to_set_circular_trace_buffer.
5146 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5147 TARGET_DEFAULT_IGNORE.
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (update_current_target): Don't inherit or default
5153 to_set_disconnected_tracing.
5154 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5155 TARGET_DEFAULT_IGNORE.
5157 2014-02-19 Tom Tromey <tromey@redhat.com>
5159 * target-delegates.c: Rebuild.
5160 * target.c (update_current_target): Don't inherit or default
5161 to_get_min_fast_tracepoint_insn_len.
5162 (return_minus_one): Remove.
5163 * target.h (struct target_ops)
5164 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5170 to_get_raw_trace_data.
5171 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5172 TARGET_DEFAULT_NORETURN.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target-delegates.c: Rebuild.
5177 * target.c (update_current_target): Don't inherit or default
5178 to_upload_trace_state_variables.
5179 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5180 Use TARGET_DEFAULT_RETURN.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target-delegates.c: Rebuild.
5185 * target.c (update_current_target): Don't inherit or default
5186 to_upload_tracepoints.
5187 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5188 TARGET_DEFAULT_RETURN.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target-delegates.c: Rebuild.
5193 * target.c (update_current_target): Don't inherit or default
5195 * target.h (struct target_ops) <to_save_trace_data>: Use
5196 TARGET_DEFAULT_NORETURN.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (update_current_target): Don't inherit or default
5202 to_get_trace_state_variable_value.
5203 * target.h (struct target_ops)
5204 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target-delegates.c: Rebuild.
5209 * target.c (update_current_target): Don't inherit or default
5211 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5213 2014-02-19 Tom Tromey <tromey@redhat.com>
5215 * target-delegates.c: Rebuild.
5216 * target.c (update_current_target): Don't inherit or default
5218 * target.h (struct target_ops) <to_trace_stop>: Use
5219 TARGET_DEFAULT_NORETURN.
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * target-delegates.c: Rebuild.
5224 * target.c (update_current_target): Don't inherit or default
5225 to_get_tracepoint_status.
5226 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5227 TARGET_DEFAULT_NORETURN.
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target-delegates.c: Rebuild.
5232 * target.c (update_current_target): Don't inherit or default
5233 to_get_trace_status.
5234 * target.h (struct target_ops) <to_get_trace_status>: Use
5235 TARGET_DEFAULT_RETURN.
5237 2014-02-19 Tom Tromey <tromey@redhat.com>
5239 * target-delegates.c: Rebuild.
5240 * target.c (update_current_target): Don't inherit or default
5242 * target.h (struct target_ops) <to_trace_start>: Use
5243 TARGET_DEFAULT_NORETURN.
5245 2014-02-19 Tom Tromey <tromey@redhat.com>
5247 * target-delegates.c: Rebuild.
5248 * target.c (update_current_target): Don't inherit or default
5249 to_trace_set_readonly_regions.
5250 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5251 Use TARGET_DEFAULT_NORETURN.
5253 2014-02-19 Tom Tromey <tromey@redhat.com>
5255 * target-delegates.c: Rebuild.
5256 * target.c (update_current_target): Don't inherit or default
5257 to_disable_tracepoint.
5258 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5259 TARGET_DEFAULT_NORETURN.
5261 2014-02-19 Tom Tromey <tromey@redhat.com>
5263 * target-delegates.c: Rebuild.
5264 * target.c (update_current_target): Don't inherit or default
5265 to_enable_tracepoint.
5266 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5267 TARGET_DEFAULT_NORETURN.
5269 2014-02-19 Tom Tromey <tromey@redhat.com>
5271 * target-delegates.c: Rebuild.
5272 * target.c (update_current_target): Don't inherit or default
5273 to_download_trace_state_variable.
5274 * target.h (struct target_ops) <to_download_trace_state_variable>:
5275 Use TARGET_DEFAULT_NORETURN.
5277 2014-02-19 Tom Tromey <tromey@redhat.com>
5279 * target-delegates.c: Rebuild.
5280 * target.c (update_current_target): Don't inherit or default
5281 to_can_download_tracepoint.
5282 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5283 TARGET_DEFAULT_RETURN.
5285 2014-02-19 Tom Tromey <tromey@redhat.com>
5287 * target-delegates.c: Rebuild.
5288 * target.c (update_current_target): Don't inherit or default
5289 to_download_tracepoint.
5290 * target.h (struct target_ops) <to_download_tracepoint>: Use
5291 TARGET_DEFAULT_NORETURN.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target-delegates.c: Rebuild.
5296 * target.c (update_current_target): Don't inherit or default
5298 * target.h (struct target_ops) <to_trace_init>: Use
5299 TARGET_DEFAULT_RETURN.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target-delegates.c: Rebuild.
5304 * target.c (update_current_target): Don't inherit or default
5305 to_supports_string_tracing.
5306 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5307 TARGET_DEFAULT_RETURN.
5309 2014-02-19 Tom Tromey <tromey@redhat.com>
5311 * target-delegates.c: Rebuild.
5312 * target.c (update_current_target): Don't inherit or default
5313 to_supports_enable_disable_tracepoint.
5314 * target.h (struct target_ops)
5315 <to_supports_enable_disable_tracepoint>: Use
5316 TARGET_DEFAULT_RETURN.
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target-delegates.c: Rebuild.
5321 * target.c (update_current_target): Don't inherit or default
5322 to_supports_multi_process.
5323 * target.h (struct target_ops) <to_supports_multi_process>: Use
5324 TARGET_DEFAULT_RETURN.
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target-delegates.c: Rebuild.
5329 * target.c (update_current_target): Don't inherit or default
5330 to_get_ada_task_ptid.
5331 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5332 TARGET_DEFAULT_FUNC.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * target-delegates.c: Rebuild.
5337 * target.c (update_current_target): Don't inherit or default
5338 to_thread_architecture.
5339 * target.h (struct target_ops) <to_thread_architecture>: Use
5340 TARGET_DEFAULT_FUNC.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target-delegates.c: Rebuild.
5345 * target.c (update_current_target): Don't inherit or default
5346 to_execution_direction.
5347 * target.h (struct target_ops) <to_execution_direction>: Use
5348 TARGET_DEFAULT_FUNC.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * target-delegates.c: Rebuild.
5353 * target.c (update_current_target): Don't inherit or default
5354 to_can_execute_reverse.
5355 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5356 TARGET_DEFAULT_RETURN.
5357 (target_can_execute_reverse): Unconditionally delegate.
5359 2014-02-19 Tom Tromey <tromey@redhat.com>
5361 * target-delegates.c: Rebuild.
5362 * target.c (update_current_target): Don't inherit or default
5364 (dummy_goto_bookmark): Remove.
5365 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5366 * target.h (struct target_ops) <to_goto_bookmark>: Use
5367 TARGET_DEFAULT_NORETURN.
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target-delegates.c: Rebuild.
5372 * target.c (update_current_target): Don't inherit or default
5374 (dummy_get_bookmark): Remove.
5375 (init_dummy_target): Don't inherit or default to_get_bookmark.
5376 * target.h (struct target_ops) <to_get_bookmark>: Use
5377 TARGET_DEFAULT_NORETURN
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target-delegates.c: Rebuild.
5382 * target.c (update_current_target): Don't inherit or default
5383 to_make_corefile_notes.
5384 (init_dummy_target): Don't initialize to_make_corefile_notes.
5385 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5386 TARGET_DEFAULT_FUNC.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target-delegates.c: Rebuild.
5391 * target.c (update_current_target): Don't inherit or default
5392 to_find_memory_regions.
5393 (init_dummy_target): Don't initialize to_find_memory_regions.
5394 * target.h (struct target_ops) <to_find_memory_regions>: Use
5395 TARGET_DEFAULT_FUNC.
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
5402 * target.h (struct target_ops) <to_log_command>: Use
5403 TARGET_DEFAULT_IGNORE.
5404 (target_log_command): Unconditionally delegate.
5406 2014-02-19 Tom Tromey <tromey@redhat.com>
5408 * target-delegates.c: Rebuild.
5409 * target.c (update_current_target): Don't inherit or default
5410 to_pid_to_exec_file.
5411 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5412 TARGET_DEFAULT_RETURN.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target-delegates.c: Rebuild.
5417 * target.c (update_current_target): Don't inherit or default
5419 (target_thread_name): Unconditionally delegate.
5420 * target.h (struct target_ops) <to_thread_name>: Use
5421 TARGET_DEFAULT_RETURN.
5423 2014-02-19 Tom Tromey <tromey@redhat.com>
5425 * target-delegates.c: Rebuild.
5426 * target.c (update_current_target): Don't inherit or default
5427 to_extra_thread_info.
5428 * target.h (struct target_ops) <to_extra_thread_info>: Use
5429 TARGET_DEFAULT_RETURN.
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target-delegates.c: Rebuild.
5434 * target.c (update_current_target): Don't inherit or default
5436 * target.h (struct target_ops) <to_has_exited>: Use
5437 TARGET_DEFAULT_RETURN..
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * target-delegates.c: Rebuild.
5442 * target.c (update_current_target): Don't inherit or default
5443 to_set_syscall_catchpoint.
5444 (return_one): Remove.
5445 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5446 TARGET_DEFAULT_RETURN.
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5450 * target-delegates.c: Rebuild.
5451 * target.c (update_current_target): Don't inherit or default
5452 to_insert_exec_catchpoint.
5453 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5454 TARGET_DEFAULT_RETURN.
5456 2014-01-08 Tom Tromey <tromey@redhat.com>
5458 * target-delegates.c: Rebuild.
5459 * target.c (update_current_target): Don't inherit or default
5460 to_insert_exec_catchpoint.
5461 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5462 TARGET_DEFAULT_RETURN.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5468 to_remove_vfork_catchpoint.
5469 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5470 TARGET_DEFAULT_RETURN.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5476 to_insert_vfork_catchpoint.
5477 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5478 TARGET_DEFAULT_RETURN.
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_remove_fork_catchpoint.
5485 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5486 TARGET_DEFAULT_RETURN.
5488 2014-02-19 Tom Tromey <tromey@redhat.com>
5490 * target-delegates.c: Rebuild.
5491 * target.c (update_current_target): Don't inherit or default
5492 to_insert_fork_catchpoint.
5493 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5494 TARGET_DEFAULT_RETURN.
5496 2014-02-19 Tom Tromey <tromey@redhat.com>
5498 * target-delegates.c: Rebuild.
5499 * target.c (update_current_target): Don't inherit or default
5500 to_post_startup_inferior.
5501 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5502 TARGET_DEFAULT_IGNORE.
5504 2014-02-19 Tom Tromey <tromey@redhat.com>
5506 * target-delegates.c: Rebuild.
5507 * target.c (update_current_target): Don't inherit or default
5509 * target.h (struct target_ops) <to_load>: Use
5510 TARGET_DEFAULT_NORETURN.
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5514 * target-delegates.c: Rebuild.
5515 * target.c (update_current_target): Don't inherit or default
5517 * target.h (struct target_ops) <to_terminal_info>: Use
5518 TARGET_DEFAULT_FUNC.
5520 2014-02-19 Tom Tromey <tromey@redhat.com>
5522 * target-delegates.c: Rebuild.
5523 * target.c (update_current_target): Don't inherit or default
5524 to_terminal_save_ours.
5525 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5526 TARGET_DEFAULT_IGNORE.
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target-delegates.c: Rebuild.
5531 * target.c (update_current_target): Don't inherit or default
5533 * target.h (struct target_ops) <to_terminal_ours>: Use
5534 TARGET_DEFAULT_IGNORE.
5536 2014-02-19 Tom Tromey <tromey@redhat.com>
5538 * target-delegates.c: Rebuild.
5539 * target.c (update_current_target): Don't inherit or default
5540 to_terminal_ours_for_output.
5541 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5542 TARGET_DEFAULT_IGNORE.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * target-delegates.c: Rebuild.
5547 * target.c (update_current_target): Don't inherit or default
5548 to_terminal_inferior.
5549 * target.h (struct target_ops) <to_terminal_inferior>: Use
5550 TARGET_DEFAULT_IGNORE.
5552 2014-02-19 Tom Tromey <tromey@redhat.com>
5554 * target-delegates.c: Rebuild.
5555 * target.c (update_current_target): Don't inherit or default
5557 * target.h (struct target_ops) <to_terminal_init>: Use
5558 TARGET_DEFAULT_IGNORE.
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target-delegates.c: Rebuild.
5563 * target.c (update_current_target): Don't inherit or default
5564 to_can_accel_watchpoint_condition.
5565 * target.h (struct target_ops)
5566 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target-delegates.c: Rebuild.
5571 * target.c (update_current_target): Don't inherit or default
5572 to_region_ok_for_hw_watchpoint.
5573 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5574 Use TARGET_DEFAULT_FUNC.
5576 2014-02-19 Tom Tromey <tromey@redhat.com>
5578 * target-delegates.c: Rebuild.
5579 * target.c (update_current_target): Don't inherit or default
5580 to_watchpoint_addr_within_range.
5581 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5582 Use TARGET_DEFAULT_FUNC.
5584 2014-02-19 Tom Tromey <tromey@redhat.com>
5586 * target-delegates.c: Rebuild.
5587 * target.c (update_current_target): Don't inherit or default
5588 to_remove_watchpoint.
5589 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5590 TARGET_DEFAULT_NORETURN.
5592 2014-02-19 Tom Tromey <tromey@redhat.com>
5594 * target-delegates.c: Rebuild.
5595 * target.c (update_current_target): Don't inherit or default
5596 to_insert_watchpoint.
5597 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5598 TARGET_DEFAULT_RETURN.
5600 2014-02-19 Tom Tromey <tromey@redhat.com>
5602 * target-delegates.c: Rebuild.
5603 * target.c (update_current_target): Don't inherit or default
5604 to_remove_hw_breakpoint.
5605 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5606 TARGET_DEFAULT_RETURN.
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5610 * target-delegates.c: Rebuild.
5611 * target.c (update_current_target): Don't inherit or default
5612 to_insert_hw_breakpoint.
5613 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5614 TARGET_DEFAULT_RETURN.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target-delegates.c: Rebuild.
5619 * target.c (update_current_target): Don't inherit or default
5620 to_can_use_hw_breakpoint.
5621 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5622 TARGET_DEFAULT_RETURN.
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target-delegates.c: Rebuild.
5627 * target.c (update_current_target): Don't inherit or default
5629 * target.h (struct target_ops) <to_files_info>: Use
5630 TARGET_DEFAULT_IGNORE.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target-delegates.c: Rebuild.
5635 * target.c (update_current_target): Don't inherit or default
5637 * target.h (struct target_ops) <to_store>: Use
5638 TARGET_DEFAULT_NORETURN.
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target-delegates.c: Rebuild.
5643 * target.c (update_current_target): Don't inherit or default
5645 * target.h (struct target_ops) <to_post_attach>: Use
5646 TARGET_DEFAULT_IGNORE.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * target-delegates.c: Rebuild.
5651 * target.c (update_current_target): Don't inherit or default
5653 (default_rcmd): New function.
5654 (do_monitor_command): Unconditionally delegate.
5655 * target.h (struct target_ops) <to_rmcd>: Use
5656 TARGET_DEFAULT_FUNC.
5658 2014-02-19 Tom Tromey <tromey@redhat.com>
5660 * target-delegates.c: Rebuild.
5661 * target.c (init_dummy_target): Don't initialize to_attach.
5662 (target_attach): Unconditionally delegate.
5663 * target.h (struct target_ops) <to_attach>: Use
5664 TARGET_DEFAULT_FUNC.
5666 2014-02-19 Tom Tromey <tromey@redhat.com>
5668 * target-delegates.c: Rebuild.
5669 * target.c (target_detach): Unconditionally delegate.
5670 (init_dummy_target): Don't initialize to_detach.
5671 * target.h (struct target_ops) <to_detach>: Use
5672 TARGET_DEFAULT_IGNORE.
5674 2014-02-19 Tom Tromey <tromey@redhat.com>
5676 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5678 (target_augmented_libraries_svr4_read): Add argument.
5679 * target.c (update_current_target): Update.
5680 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * target.h (struct target_ops) <to_call_history_range>: Add
5687 * target.c (target_call_history_range): Add argument.
5688 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5690 (record_btrace_call_history_from): Update.
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target.h (struct target_ops) <to_call_history_from>: Add
5696 * target.c (target_call_history_from): Add argument.
5697 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target.h (struct target_ops) <to_call_history>: Add argument.
5703 * target.c (target_call_history): Add argument.
5704 * record-btrace.c (record_btrace_call_history): Add 'self'
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_insn_history_range>: Add
5711 * target.c (target_insn_history_range): Add argument.
5712 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5714 (record_btrace_insn_history_from): Update.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_insn_history_from>: Add
5720 * target.c (target_insn_history_from): Add argument.
5721 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * target.h (struct target_ops) <to_insn_history>: Add argument.
5727 * target.c (target_insn_history): Add argument.
5728 * record-btrace.c (record_btrace_insn_history): Add 'self'
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * target.h (struct target_ops) <to_goto_record>: Add argument.
5734 * target.c (target_goto_record): Add argument.
5735 * record-full.c (record_full_goto): Add 'self' argument.
5736 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5741 * target.c (target_goto_record_end): Add argument.
5742 * record-full.c (record_full_goto_end): Add 'self' argument.
5743 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target.h (struct target_ops) <to_goto_record_begin>: Add
5749 * target.c (target_goto_record_begin): Add argument.
5750 * record-full.c (record_full_goto_begin): Add 'self' argument.
5751 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target.h (struct target_ops) <to_record_is_replaying>: Add
5758 * target.c (target_record_is_replaying): Add argument.
5759 * record-full.c (record_full_is_replaying): Add 'self' argument.
5760 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5762 (record_btrace_xfer_partial, record_btrace_store_registers)
5763 (record_btrace_prepare_to_store, record_btrace_resume)
5764 (record_btrace_wait, record_btrace_decr_pc_after_break)
5765 (record_btrace_find_new_threads, record_btrace_thread_alive):
5768 2014-02-19 Tom Tromey <tromey@redhat.com>
5770 * target.h (struct target_ops) <to_delete_record>: Add argument.
5771 * target.c (target_delete_record): Add argument.
5772 * record-full.c (record_full_delete): Add 'self' argument.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * target.h (struct target_ops) <to_save_record>: Add argument.
5777 * target.c (target_save_record): Add argument.
5778 * record-full.c (record_full_save): Add 'self' argument.
5779 (record_full_save): Add 'self' argument.
5781 2014-02-19 Tom Tromey <tromey@redhat.com>
5783 * target.h (struct target_ops) <to_info_record>: Add argument.
5784 * target.c (target_info_record): Add argument.
5785 * record.c (info_record_command): Add argument.
5786 * record-full.c (record_full_info): Add 'self' argument.
5787 * record-btrace.c (record_btrace_info): Add 'self' argument.
5789 2014-02-19 Tom Tromey <tromey@redhat.com>
5791 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5792 * target.c (target_stop_recording): Add argument.
5793 * record.c (record_stop): Add argument.
5794 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5800 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5801 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5803 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5804 (_initialize_amd64_linux_nat): Use it.
5805 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5806 (_initialize_i386_linux_nat): Use it.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5811 * target.c (target_teardown_btrace): Add argument.
5812 * remote.c (remote_teardown_btrace): Add 'self' argument.
5813 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5815 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5821 * target.c (target_disable_btrace): Add argument.
5822 * remote.c (remote_disable_btrace): Add 'self' argument.
5823 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5825 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5831 * target.c (target_enable_btrace): Add argument.
5832 * remote.c (remote_enable_btrace): Add 'self' argument.
5833 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5835 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5841 (target_can_use_agent): Add argument.
5842 * target.c (update_current_target): Update.
5843 * remote.c (remote_can_use_agent): Add 'self' argument.
5844 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target.h (struct target_ops) <to_use_agent>: Add argument.
5849 (target_use_agent): Add argument.
5850 * target.c (update_current_target): Update.
5851 * remote.c (remote_use_agent): Add 'self' argument.
5852 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5854 2014-02-19 Tom Tromey <tromey@redhat.com>
5856 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5857 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5858 (target_traceframe_info): Add argument.
5859 * target.c (update_current_target): Update.
5860 * remote.c (remote_traceframe_info): Add 'self' argument.
5861 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target.h (target_static_tracepoint_markers_by_strid): Add
5867 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5869 * target.c (update_current_target): Update.
5870 * remote.c (struct target_ops)
5871 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5872 * linux-nat.c (struct target_ops)
5873 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5879 (target_static_tracepoint_marker_at): Add argument.
5880 * target.c (update_current_target): Update.
5881 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5887 (target_set_permissions): Add argument.
5888 * target.c (update_current_target): Update.
5889 * remote.c (remote_set_permissions): Add 'self' argument.
5890 (remote_start_remote): Update.
5892 2014-02-19 Tom Tromey <tromey@redhat.com>
5894 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5895 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5896 (target_get_tib_address): Add argument.
5897 * target.c (update_current_target): Update.
5898 * remote.c (remote_get_tib_address): Add 'self' argument.
5900 2014-02-19 Tom Tromey <tromey@redhat.com>
5902 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5903 (target_set_trace_notes): Add argument.
5904 * target.c (update_current_target): Update.
5905 * remote.c (remote_set_trace_notes): Add 'self' argument.
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5911 (target_set_trace_buffer_size): Add argument.
5912 * target.c (update_current_target): Update.
5913 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5919 (target_set_circular_trace_buffer): Add argument.
5920 * target.c (update_current_target): Update.
5921 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5928 (target_set_disconnected_tracing): Add argument.
5929 * target.c (update_current_target): Update.
5930 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * target.h (struct target_ops)
5935 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5936 (target_get_min_fast_tracepoint_insn_len): Add argument.
5937 * target.c (update_current_target): Update.
5938 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5945 (target_get_raw_trace_data): Add argument.
5946 * target.c (update_current_target): Update.
5947 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5953 (target_upload_trace_state_variables): Add argument.
5954 * target.c (update_current_target): Update.
5955 * remote.c (remote_upload_trace_state_variables): Add 'self'
5957 (remote_start_remote): Update.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5963 (target_upload_tracepoints): Add argument.
5964 * target.c (update_current_target): Update.
5965 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5966 (remote_start_remote): Update.
5968 2014-02-19 Tom Tromey <tromey@redhat.com>
5970 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5971 (target_save_trace_data): Add argument.
5972 * target.c (update_current_target): Update.
5973 * remote.c (remote_save_trace_data): Add 'self' argument.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5979 * target.h (struct target_ops)
5980 <to_get_trace_state_variable_value>: Add argument.
5981 (target_get_trace_state_variable_value): Add argument.
5982 * target.c (update_current_target): Update.
5983 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5985 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5987 2014-02-19 Tom Tromey <tromey@redhat.com>
5989 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5990 * target.h (struct target_ops) <to_trace_find>: Add argument.
5991 (target_trace_find): Add argument.
5992 * target.c (update_current_target): Update.
5993 * remote.c (remote_trace_find): Add 'self' argument.
5994 * ctf.c (ctf_trace_find): Add 'self' argument.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5999 (target_trace_stop): Add argument.
6000 * target.c (update_current_target): Update.
6001 * remote.c (remote_trace_stop): Add 'self' argument.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6006 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6008 (target_get_tracepoint_status): Add argument.
6009 * target.c (update_current_target): Update.
6010 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6012 2014-02-19 Tom Tromey <tromey@redhat.com>
6014 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6015 * target.h (struct target_ops) <to_get_trace_status>: Add
6017 (target_get_trace_status): Add argument.
6018 * target.c (update_current_target): Update.
6019 * remote.c (remote_get_trace_status): Add 'self' argument.
6020 (remote_start_remote, remote_can_download_tracepoint): Update.
6021 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target.h (struct target_ops) <to_trace_start>: Add argument.
6026 (target_trace_start): Add argument.
6027 * target.c (update_current_target): Update.
6028 * remote.c (remote_trace_start): Add 'self' argument.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6034 (target_trace_set_readonly_regions): Add argument.
6035 * target.c (update_current_target): Update.
6036 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6043 (target_disable_tracepoint): Add argument.
6044 * target.c (update_current_target): Update.
6045 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6047 2014-02-19 Tom Tromey <tromey@redhat.com>
6049 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6051 (target_enable_tracepoint): Add argument.
6052 * target.c (update_current_target): Update.
6053 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6055 2014-02-19 Tom Tromey <tromey@redhat.com>
6057 * target.h (struct target_ops) <to_download_trace_state_variable>:
6059 (target_download_trace_state_variable): Add argument.
6060 * target.c (update_current_target): Update.
6061 * remote.c (remote_download_trace_state_variable): Add 'self'
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6066 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6068 (target_can_download_tracepoint): Add argument.
6069 * target.c (update_current_target): Update.
6070 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target.h (struct target_ops) <to_download_tracepoint>: Add
6076 (target_download_tracepoint): Add argument.
6077 * target.c (update_current_target): Update.
6078 * remote.c (remote_download_tracepoint): Add 'self' argument.
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target.h (struct target_ops) <to_trace_init>: Add argument.
6083 (target_trace_init): Add argument.
6084 * target.c (update_current_target): Update.
6085 * remote.c (remote_trace_init): Add 'self' argument.
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6090 * target.c (target_fileio_readlink): Add argument.
6091 * remote.c (remote_hostio_readlink): Add 'self' argument.
6092 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6097 * target.c (target_fileio_unlink): Add argument.
6098 * remote.c (remote_hostio_unlink): Add 'self' argument.
6099 (remote_file_delete): Update.
6100 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6105 * target.c (target_fileio_close): Add argument.
6106 * remote.c (remote_hostio_close): Add 'self' argument.
6107 (remote_hostio_close_cleanup): Update.
6108 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6110 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6115 * target.c (target_fileio_pread): Add argument.
6116 * remote.c (remote_hostio_pread): Add 'self' argument.
6117 (remote_bfd_iovec_pread, remote_file_get): Update.
6118 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6123 * target.c (target_fileio_pwrite): Add argument.
6124 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6125 (remote_file_put): Update.
6126 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6131 * target.c (target_fileio_open): Add argument.
6132 * remote.c (remote_hostio_open): Add 'self' argument.
6133 (remote_bfd_iovec_open): Add 'self' argument.
6134 (remote_file_put): Add 'self' argument.
6135 (remote_file_get): Add 'self' argument.
6136 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6142 (target_can_run_breakpoint_commands): Add argument.
6143 * target.c (update_current_target): Update.
6144 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6146 (remote_insert_breakpoint): Add 'self' argument.
6147 (remote_insert_hw_breakpoint): Add 'self' argument.
6148 (remote_can_run_breakpoint_commands): Add 'self' argument.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops)
6153 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6154 (target_supports_evaluation_of_breakpoint_conditions): Add
6156 * target.c (update_current_target): Update.
6157 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6159 (remote_insert_breakpoint): Add 'self' argument.
6160 (remote_insert_hw_breakpoint): Add 'self' argument.
6161 (remote_supports_cond_breakpoints): Add 'self' argument.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6167 (target_supports_string_tracing): Add argument.
6168 * target.c (update_current_target): Update.
6169 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target.h (struct target_ops)
6174 <to_supports_disable_randomization>: Add argument.
6175 * target.c (find_default_supports_disable_randomization): Add
6177 (target_supports_disable_randomization): Add argument.
6178 (find_default_supports_disable_randomization): Add 'self'
6180 * remote.c (extended_remote_supports_disable_randomization): Add
6182 (remote_supports_disable_randomization): Add 'self' argument.
6183 (extended_remote_create_inferior): Update.
6184 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.h (struct target_ops)
6190 <to_supports_enable_disable_tracepoint>: Add argument.
6191 (target_supports_enable_disable_tracepoint): Add argument.
6192 * target.c (update_current_target): Update.
6193 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6196 2014-02-19 Tom Tromey <tromey@redhat.com>
6198 * target.h (struct target_ops) <to_supports_multi_process>: Add
6200 (target_supports_multi_process): Add argument.
6201 * target.c (update_current_target): Update.
6202 * remote.c (remote_supports_multi_process): Add 'self' argument.
6203 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6205 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target.h (struct target_ops) <to_execution_direction>: Add
6212 (target_execution_direction): Add argument.
6213 * target.c (default_execution_direction): Add 'self' argument.
6214 * record-full.c (record_full_execution_direction): Add 'self'
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6221 (target_can_execute_reverse): Add argument.
6222 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6223 * record-full.c (record_full_can_execute_reverse): Add 'self'
6225 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6231 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6233 (target_get_ada_task_ptid): Add argument.
6234 * target.c (update_current_target): Update.
6235 (default_get_ada_task_ptid): Add 'self' argument.
6236 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6237 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6238 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6240 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6242 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6244 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6246 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6247 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6253 (target_goto_bookmark): Add argument.
6254 * target.c (dummy_goto_bookmark): Add 'self' argument.
6255 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6257 2014-02-19 Tom Tromey <tromey@redhat.com>
6259 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6260 (target_get_bookmark): Add argument.
6261 * target.c (dummy_get_bookmark): Add 'self' argument.
6262 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6268 (target_make_corefile_notes): Add argument.
6269 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6270 * procfs.c (procfs_make_note_section): Add 'self' argument.
6271 (procfs_make_note_section): Add 'self' argument.
6272 (procfs_make_note_section): Add 'self' argument.
6273 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6275 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6276 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6277 * exec.c (exec_make_note_section): Add 'self' argument.
6278 (exec_make_note_section): Add 'self' argument.
6280 2014-02-19 Tom Tromey <tromey@redhat.com>
6282 * target.h (struct target_ops) <to_find_memory_regions>: Add
6284 (target_find_memory_regions): Add argument.
6285 * target.c (dummy_find_memory_regions): Add 'self' argument.
6286 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6287 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6288 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6289 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6290 * exec. (exec_do_find_memory_regions): New global.
6291 (exec_set_find_memory_regions): Rewrite.
6292 (exec_find_memory_regions): New function.
6293 (init_exec_ops): Use exec_find_memory_regions.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target.h (struct target_ops) <to_supports_non_stop>: Add
6299 * target.c (find_default_supports_non_stop): Add argument.
6300 (target_supports_non_stop): Add argument.
6301 (find_default_supports_non_stop): Add 'self' argument.
6302 * remote.c (remote_supports_non_stop): Add 'self' argument.
6303 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target.h (struct target_ops) <to_log_command>: Add argument.
6308 (target_log_command): Add argument.
6309 * serial.h (serial_log_command): Add 'self' argument.
6310 * serial.c (serial_log_command): Add 'self' argument.
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6315 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6317 (target_pid_to_exec_file): Add argument.
6318 * target.c (debug_to_pid_to_exec_file): Add argument.
6319 (update_current_target): Update.
6320 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6321 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6322 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6323 (linux_handle_extended_wait): Update.
6324 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6325 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6326 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6327 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * target.h (struct target_ops) <to_rcmd>: Add argument.
6332 (target_rcmd): Add argument.
6333 * target.c (debug_to_rcmd): Add argument.
6334 (update_current_target, do_monitor_command): Update.
6335 * remote.c (remote_rcmd): Add 'self' argument.
6336 * monitor.c (monitor_rcmd): Add 'self' argument.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * windows-nat.c (windows_stop): Add 'self' argument.
6341 * target.h (struct target_ops) <to_stop>: Add argument.
6342 * target.c (target_stop): Add argument.
6343 (debug_to_stop): Add argument.
6344 (update_current_target): Update.
6345 * remote.c (remote_stop): Add 'self' argument.
6346 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6347 (gdbsim_cntrl_c): Update.
6348 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6349 * procfs.c (procfs_stop): Add 'self' argument.
6350 * nto-procfs.c (procfs_stop): Add 'self' argument.
6351 * monitor.c (monitor_stop): Add 'self' argument.
6352 (monitor_open): Update.
6353 * linux-nat.c (linux_nat_stop): Add argument.
6354 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6355 * gnu-nat.c (gnu_stop): Add 'self' argument.
6356 * darwin-nat.c (darwin_stop): Add 'self' argument.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * target.h (struct target_ops) <to_thread_name>: Add argument.
6361 * target.c (target_thread_name): Add argument.
6362 (update_current_target): Update.
6363 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target.h (struct target_ops) <to_extra_thread_info>: Add
6369 (target_extra_thread_info): Add argument.
6370 * target.c (update_current_target): Update.
6371 * remote.c (remote_threads_extra_info): Add 'self' argument.
6372 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6374 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6375 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6376 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6378 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6380 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6382 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target.h (struct target_ops) <to_program_signals>: Add argument.
6388 * target.c (target_program_signals): Add argument.
6389 * remote.c (remote_program_signals): Add 'self' argument.
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6394 * target.c (target_pass_signals): Add argument.
6395 * remote.c (remote_pass_signals): Add 'self' argument.
6396 (remote_start_remote): Update.
6397 * procfs.c (procfs_pass_signals): Add 'self' argument.
6398 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6399 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6400 (linux_nat_create_inferior, linux_nat_attach): Update.
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * windows-nat.c (windows_can_run): Add 'self' argument.
6405 * target.h (struct target_ops) <to_can_run>: Add argument.
6406 (target_can_run): Add argument.
6407 * target.c (debug_to_can_run): Add argument.
6408 (update_current_target): Update.
6409 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6410 * inf-child.c (inf_child_can_run): Add 'self' argument.
6411 * go32-nat.c (go32_can_run): Add 'self' argument.
6413 2014-02-19 Tom Tromey <tromey@redhat.com>
6415 * target.h (struct target_ops) <to_has_exited>: Add argument.
6416 (target_has_exited): Add argument.
6417 * target.c (debug_to_has_exited): Add argument.
6418 (update_current_target): Update.
6420 2014-02-19 Tom Tromey <tromey@redhat.com>
6422 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6424 (target_set_syscall_catchpoint): Add argument.
6425 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6427 * target.c (update_current_target): Update.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6433 (target_remove_exec_catchpoint): Add argument.
6434 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6435 (update_current_target): Update.
6436 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6443 (target_insert_exec_catchpoint): Add argument.
6444 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6445 (update_current_target): Update.
6446 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6451 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6453 (target_remove_vfork_catchpoint): Add argument.
6454 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6455 (update_current_target): Update.
6456 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6463 (target_insert_vfork_catchpoint): Add argument.
6464 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6465 (update_current_target): Update.
6466 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6473 (target_remove_fork_catchpoint): Add argument.
6474 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6475 (update_current_target): Update.
6476 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6483 (target_insert_fork_catchpoint): Add argument.
6484 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6485 (update_current_target): Update.
6486 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6491 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6493 (target_post_startup_inferior): Add argument.
6494 * target.c (debug_to_post_startup_inferior): Add argument.
6495 (update_current_target): Update.
6496 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6498 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6500 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6502 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6504 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6506 (super_post_startup_inferior): Likewise.
6507 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6509 (super_post_startup_inferior): Likewise.
6510 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6511 Add 'self' argument.
6512 (super_post_startup_inferior): Likewise.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target.h (struct target_ops) <to_load>: Add argument.
6517 * target.c (target_load): Add argument.
6518 (debug_to_load): Add argument.
6519 (update_current_target): Update.
6520 * remote.c (remote_load): Add 'self' argument.
6521 * remote-sim.c (gdbsim_load): Add 'self' argument.
6522 * remote-mips.c (mips_load): Add 'self' argument.
6523 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6524 * monitor.c (monitor_load): Add 'self' argument.
6525 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6530 (target_terminal_info): Add argument.
6531 * target.c (debug_to_terminal_info): Add argument.
6532 (default_terminal_info): Likewise.
6533 * inflow.c (child_terminal_info): Add 'self' argument.
6534 * inferior.h (child_terminal_info): Add 'self' argument.
6535 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6539 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6541 (target_terminal_save_ours): Add argument.
6542 * target.c (debug_to_terminal_save_ours): Add argument.
6543 (update_current_target): Update.
6544 * inflow.c (terminal_save_ours): Add 'self' argument.
6545 * inferior.h (terminal_save_ours): Add 'self' argument.
6547 2014-02-19 Tom Tromey <tromey@redhat.com>
6549 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6550 (target_terminal_ours): Add argument.
6551 * target.c (debug_to_terminal_ours): Add argument.
6552 (update_current_target): Update.
6553 * remote.c (remote_terminal_ours): Add 'self' argument.
6554 (remote_close): Update.
6555 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6556 * inflow.c (terminal_ours): Add 'self' argument.
6557 * inferior.h (terminal_ours): Add 'self' argument.
6558 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6560 2014-02-19 Pedro Alves <palves@redhat.com>
6561 Tom Tromey <tromey@redhat.com>
6563 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6565 (target_terminal_ours_for_output): Add argument.
6566 * target.c (debug_to_terminal_ours_for_output): Add argument.
6567 (update_current_target): Update.
6568 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6569 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6570 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6574 * target.h (struct target_ops) <to_terminal_inferior>: Add
6576 * target.c (target_terminal_inferior): Add argument.
6577 (update_current_target): Update.
6578 * remote.c (remote_terminal_inferior): Add 'self' argument.
6579 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6580 * inflow.c (terminal_inferior): Add 'self' argument.
6581 * inferior.h (terminal_inferior): Add 'self' argument.
6582 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6583 (go32_terminal_inferior): Add 'self' argument.
6585 2014-02-19 Tom Tromey <tromey@redhat.com>
6587 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6588 (target_terminal_init): Add argument.
6589 * target.c (debug_to_terminal_init): Add argument.
6590 (update_current_target): Update.
6591 * inflow.c (terminal_init_inferior): Add 'self' argument.
6592 * inferior.h (terminal_init_inferior): Add 'self' argument.
6593 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6594 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6598 * target.h (struct target_ops)
6599 <to_can_accel_watchpoint_condition>: Add argument.
6600 (target_can_accel_watchpoint_condition): Add argument.
6601 * target.c (debug_to_can_accel_watchpoint_condition): Add
6603 (update_current_target): Update.
6604 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6611 (target_region_ok_for_hw_watchpoint): Add argument.
6612 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6613 (default_region_ok_for_hw_watchpoint): Add argument.
6614 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6615 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6617 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6619 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6621 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6623 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6625 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6627 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6628 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6630 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6631 Add 'self' argument.
6633 2014-02-19 Tom Tromey <tromey@redhat.com>
6635 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6637 (target_insert_watchpoint): Add argument.
6638 * target.c (debug_to_insert_watchpoint): Add argument.
6639 (update_current_target): Update.
6640 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6641 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6642 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6643 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6644 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6645 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6647 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6648 (procfs_insert_hw_watchpoint): Add 'self' argument.
6649 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6651 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6653 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6655 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6656 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6658 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6665 (target_remove_watchpoint): Add argument.
6666 * target.c (debug_to_remove_watchpoint): Add argument.
6667 (update_current_target): Update.
6668 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6669 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6670 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6671 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6672 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6673 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6675 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6676 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6678 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6680 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6682 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6683 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6685 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6688 2014-02-19 Tom Tromey <tromey@redhat.com>
6690 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6692 (target_remove_hw_breakpoint): Add argument.
6693 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6694 (update_current_target): Update.
6695 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6696 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6698 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6699 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6701 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6708 (target_insert_hw_breakpoint): Add argument.
6709 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6710 (update_current_target): Update.
6711 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6712 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6714 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6715 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6716 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6718 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6721 2014-02-19 Tom Tromey <tromey@redhat.com>
6723 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6725 (target_can_use_hardware_watchpoint): Add argument.
6726 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6727 (update_current_target): Update.
6728 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6730 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6732 * remote.c (remote_check_watch_resources): Add 'self' argument.
6733 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6734 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6736 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6737 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6739 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6741 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6743 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6745 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6747 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6749 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6750 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6752 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6755 2014-02-19 Tom Tromey <tromey@redhat.com>
6757 * target.h (struct target_ops) <to_post_attach>: Add argument.
6758 (target_post_attach): Add argument.
6759 * target.c (debug_to_post_attach): Add argument.
6760 (update_current_target): Update.
6761 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6762 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6763 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6764 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6765 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6767 2014-02-19 Tom Tromey <tromey@redhat.com>
6769 * windows-nat.c (windows_close): Add 'self' argument.
6770 * tracepoint.c (tfile_close): Add 'self' argument.
6771 * target.h (struct target_ops) <to_close>: Add argument.
6772 * target.c (target_close): Add argument.
6773 (update_current_target): Update.
6774 * remote.c (remote_close): Add 'self' argument.
6775 * remote-sim.c (gdbsim_close): Add 'self' argument.
6776 * remote-mips.c (mips_close): Add 'self' argument.
6777 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6778 * record-full.c (record_full_close): Add 'self' argument.
6779 * record-btrace.c (record_btrace_close): Add 'self' argument.
6780 * monitor.h (monitor_close): Add 'self' argument.
6781 * monitor.c (monitor_close): Add 'self' argument.
6782 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6783 * linux-nat.c (linux_nat_close): Add argument.
6784 * go32-nat.c (go32_close): Add 'self' argument.
6785 * exec.c (exec_close_1): Add 'self' argument.
6786 * ctf.c (ctf_close): Add 'self' argument.
6787 * corelow.c (core_close): Add 'self' argument.
6788 (core_close_cleanup): Update.
6789 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6790 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6792 2014-02-19 Tom Tromey <tromey@redhat.com>
6794 * remote.c (remote_load): New function.
6795 (init_remote_ops): Use it.
6797 2014-02-19 Tom Tromey <tromey@redhat.com>
6799 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6801 * common/linux-btrace.h (linux_supports_btrace): Update.
6802 * remote.c (remote_supports_btrace): Add "self" argument.
6803 * target-delegates.c: Rebuild.
6804 * target.c (target_supports_btrace): Remove.
6805 * target.h (struct target_ops) <to_supports_btrace>: Add
6806 target_ops argument.
6807 (target_supports_btrace): New define.
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * record-full.c (record_full_beneath_to_resume_ops)
6812 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6813 (record_full_beneath_to_wait)
6814 (record_full_beneath_to_store_registers_ops)
6815 (record_full_beneath_to_store_registers)
6816 (record_full_beneath_to_xfer_partial_ops)
6817 (record_full_beneath_to_xfer_partial)
6818 (record_full_beneath_to_insert_breakpoint_ops)
6819 (record_full_beneath_to_insert_breakpoint)
6820 (record_full_beneath_to_remove_breakpoint_ops)
6821 (record_full_beneath_to_remove_breakpoint)
6822 (record_full_beneath_to_stopped_by_watchpoint)
6823 (record_full_beneath_to_stopped_data_address)
6824 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6825 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6826 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6827 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6828 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6829 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6830 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6831 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6832 (record_full_resume, record_full_wait_1)
6833 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6834 (record_full_store_registers, record_full_xfer_partial)
6835 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6836 (record_full_async, record_full_core_xfer_partial): Use target
6838 * target-delegates.c: Rebuild.
6839 * target.c (current_xfer_partial): Remove.
6840 (update_current_target): Do not INHERIT or de_fault
6841 to_insert_breakpoint, to_remove_breakpoint,
6842 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6843 to_is_async_p, to_async. Do not set to_xfer_partial field.
6844 (default_xfer_partial): Simplify.
6845 (current_xfer_partial): Remove.
6846 (target_wait, target_resume): Simplify.
6847 (find_default_can_async_p, find_default_is_async_p): Update.
6848 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6849 to_xfer_partial, to_stopped_by_watchpoint,
6850 to_stopped_data_address.
6851 (target_store_registers): Simplify.
6852 (forward_target_remove_breakpoint)
6853 (forward_target_insert_breakpoint): Remove.
6854 (target_remove_breakpoint, target_insert_breakpoint)
6855 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6856 * target.h (struct target_ops) <to_resume, to_wait,
6857 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6858 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6859 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6861 (forward_target_remove_breakpoint)
6862 (forward_target_insert_breakpoint): Remove.
6863 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6865 (record_btrace_insert_breakpoint): Delegate directly.
6867 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * target-delegates.c: New file.
6871 * target.c: Include target-delegates.c.
6872 (init_dummy_target): Call install_dummy_methods.
6873 (complete_target_initialization): Call install_delegators.
6874 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6875 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6876 * make-target-delegates: New file.
6878 2014-02-19 Tom Tromey <tromey@redhat.com>
6880 * record.c (find_record_target): Use find_target_at.
6881 * target.c (find_target_at): New function.
6882 * target.h (find_target_at): Declare.
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6888 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6890 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6891 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6893 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6895 * linux-nat.c (save_sigtrap): Update.
6896 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6897 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6898 (linux_nat_close): Update.
6899 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6901 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6903 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6904 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6905 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6906 (tmp_to_async): Add 'ops' argument.
6907 (record_full_stopped_by_watchpoint, record_full_async)
6908 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6910 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6911 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6912 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6913 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6914 (remote_is_async_p, remote_async): Add 'ops' argument.
6915 (remote_stopped_data_address): Update.
6916 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6917 * target.c (update_current_target)
6918 (find_default_can_async_p, find_default_is_async_p): Update.
6919 (init_dummy_target): Update.
6920 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6921 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6922 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6923 (target_can_async_p, target_is_async_p, target_async)
6924 (target_stopped_by_watchpoint): Update.
6926 2014-02-19 Yao Qi <yao@codesourcery.com>
6929 * gdbarch.sh: Remove startup_gdbarch.
6930 * gdbarch.c: Regenerated.
6931 * gdbarch.h: Likewise.
6933 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6935 * rl78-tdep.c (rl78_g10_register_name): New function.
6936 (rl78_return_value): Add g10 support.
6937 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6940 2014-02-17 Doug Evans <xdje42@gmail.com>
6942 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6943 (SUBDIR_GUILE_SRCS): Ditto.
6944 (scm-gsmob.o): Ditto.
6946 2014-02-17 Yao Qi <yao@codesourcery.com>
6948 * gnu-nat.c (ILL_RPC): Declare defined function.
6950 2014-02-17 Yao Qi <yao@codesourcery.com>
6952 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6953 mach_msg_type_number_t.
6954 (gnu_write_inferior): Likewise.
6956 2014-02-17 Yao Qi <yao@codesourcery.com>
6958 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6960 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6961 (inf_validate_procs, inf_signal): Likewise.
6962 (S_exception_raise_request): Likewise.
6963 (do_mach_notify_dead_name): Likewise.
6964 (steal_exc_port): Likewise.
6965 (gnu_read_inferior): Change 'copy_count''s type to
6966 mach_msg_type_number_t.
6967 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6970 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6972 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6973 flag. Adjust all users; in particular...
6974 (gnu_wait): ..., don't decrement its value in here...
6975 (gnu_create_inferior): ..., and instead set the flag in here,
6976 around the startup_inferior call, and call that one with
6977 START_INFERIOR_TRAPS_EXPECTED.
6979 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6980 (ILL_RPC): ... new macro.
6981 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6982 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6983 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6984 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6985 functions with ILL_RPC macro.
6986 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6987 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6988 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6989 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6990 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6991 (S_proc_getlogin_reply, S_proc_getsid_reply)
6992 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6993 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6994 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6995 (S_proc_getnports_reply, S_proc_is_important_reply)
6996 (S_proc_get_code_reply): New stub functions, generated with
6999 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7000 collected the type check structures.
7002 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7004 2014-02-14 Doug Evans <dje@google.com>
7006 * target.c (target_write_partial): Fix result type.
7008 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7010 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7011 the proper offsets to access fpregset_t.
7013 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7015 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7016 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7017 * h8300-tdep.c (setmachinelist): Remove global.
7018 * hppa-tdep.c (hppa_sigtramp): Remove global.
7019 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7020 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7021 * ravenscar-thread.c (update_target_observer): Remove global.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7024 2014-02-12 Tom Tromey <tromey@redhat.com>
7026 * common/rsp-low.c: Update comments.
7027 * common/rsp-low.h: Update comments.
7029 2014-02-12 Tom Tromey <tromey@redhat.com>
7031 * common/rsp-low.c (convert_ascii_to_int): Remove.
7032 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7034 2014-02-12 Tom Tromey <tromey@redhat.com>
7036 * common/rsp-low.h (unhexify): Don't declare.
7037 * common/rsp-low.c (unhexify): Remove.
7039 2014-02-12 Tom Tromey <tromey@redhat.com>
7041 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7042 * common/rsp-low.c (convert_int_to_ascii): Remove.
7044 2014-02-12 Tom Tromey <tromey@redhat.com>
7046 * common/rsp-low.h (hexify): Don't declare.
7047 * common/rsp-low.c (hexify): Remove.
7049 2014-02-12 Tom Tromey <tromey@redhat.com>
7051 * common/rsp-low.c (hexify): Never take strlen of argument.
7053 2014-02-12 Tom Tromey <tromey@redhat.com>
7055 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7056 * remote.c (extended_remote_run, remote_rcmd)
7057 (remote_download_trace_state_variable, remote_save_trace_data)
7058 (remote_set_trace_notes): Update.
7059 * tracepoint.c (encode_source_string, tfile_write_status)
7060 (tfile_write_uploaded_tsv): Update.
7062 2014-02-12 Tom Tromey <tromey@redhat.com>
7064 * tracepoint.c: Include rsp-low.h.
7065 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7066 * remote.c: Include rsp-low.h.
7067 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7068 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7069 (remote_unescape_input): Move to common/rsp-low.c.
7070 * common/rsp-low.h: New file.
7071 * common/rsp-low.c: New file.
7072 * Makefile.in (SFILES): Add common/rsp-low.c.
7073 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7074 (COMMON_OBS): Add rsp-low.o.
7075 (rsp-low.o): New target.
7077 2014-02-12 Tom Tromey <tromey@redhat.com>
7079 * utils.h: Include print-utils.h.
7080 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7081 (int_string, core_addr_to_string, core_addr_to_string_nz)
7082 (hex_string, hex_string_custom): Don't declare.
7083 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7084 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7085 (hex_string_custom, int_string, core_addr_to_string)
7086 (core_addr_to_string_nz, host_address_to_string): Move to
7087 common/print-utils.c.
7088 * common/print-utils.h: New file.
7089 * common/print-utils.c: New file
7090 * Makefile.in (SFILES): Add common/print-utils.c.
7091 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7092 (COMMON_OBS): Add print-utils.o.
7093 (print-utils.o): New target.
7095 2014-02-12 Tom Tromey <tromey@redhat.com>
7097 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7099 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7101 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7103 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7105 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7106 if a PT_IO ptrace request returns sucessfully but indicates that 0
7107 bytes were transferred.
7109 2014-02-12 Pedro Alves <palves@redhat.com>
7110 Kevin Buettner <kevinb@redhat.com>
7112 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7113 TYPE_INSTANCE_FLAG_CODE_SPACE.
7115 2014-02-12 Pedro Alves <palves@redhat.com>
7117 * h8300-tdep.c (pseudo_from_raw_register)
7118 (raw_from_pseudo_register): New functions.
7119 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7122 2014-02-12 Pedro Alves <palves@redhat.com>
7124 * h8300-tdep.c (h8300_register_sim_regno): New function.
7125 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7126 gdbarch_register_sim_regno hook.
7128 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7130 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7132 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7134 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7136 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7138 * obsd-tdep.h (obsd_init_abi): New prototype.
7139 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7140 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7141 (obsd_init_abi): New functions.
7142 * i386obsd-tdep.c: Include "obsd-tdep.h".
7143 (i386obsd_init_abi): Call obsd_init_abi.
7144 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7145 (amd64obsd_init_abi): Call obsd_init_abi.
7146 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7147 obsd-tdep.c to gdb_target_obs.
7149 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7151 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7152 double float arguments to 16-byte in the argument slots.
7154 2014-02-11 Doug Evans <xdje42@gmail.com>
7156 * configure.ac: Don't crash if pkg-config is not found and guile
7157 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7159 * configure: Regenerate.
7161 2014-02-11 Yao Qi <yao@codesourcery.com>
7163 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7164 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7165 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7166 * gnu-nat.c (gnu_xfer_memory): Likewise.
7167 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7168 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7169 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7170 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7172 2014-02-11 Yao Qi <yao@codesourcery.com>
7174 * target.h (enum target_xfer_error): Rename to ...
7175 (enum target_xfer_status): ... it. New. All users updated.
7176 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7178 (TARGET_XFER_STATUS_ERROR_P): New macro.
7179 (target_xfer_error_to_string): Remove declaration.
7180 (target_xfer_status_to_string): Declare.
7181 (target_xfer_partial_ftype): Adjust it.
7182 (struct target_ops) <to_xfer_partial>: Return
7183 target_xfer_status. Add argument xfered_len. Update
7185 * target.c (target_xfer_error_to_string): Rename to ...
7186 (target_xfer_status_to_string): ... it. New. All callers
7188 (target_read_live_memory): Likewise. Call target_xfer_partial
7189 instead of target_read.
7190 (memory_xfer_live_readonly_partial): Return
7191 target_xfer_status. Add argument xfered_len.
7192 (raw_memory_xfer_partial): Likewise.
7193 (memory_xfer_partial_1): Likewise.
7194 (memory_xfer_partial): Likewise.
7195 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7196 properly. Update debug message.
7197 (default_xfer_partial, current_xfer_partial): Likewise.
7198 (target_write_partial): Likewise.
7199 (target_read_partial): Likewise. All callers updated.
7200 (read_whatever_is_readable): Likewise.
7201 (target_write_with_progress): Likewise.
7202 (target_read_alloc_1): Likewise.
7204 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7205 * auxv.c (procfs_xfer_auxv): Likewise.
7206 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7207 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7208 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7209 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7210 * corefile.c (read_memory): Adjust.
7211 * corelow.c (core_xfer_partial): Likewise.
7212 * ctf.c (ctf_xfer_partial): Likewise.
7213 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7215 (darwin_xfer_partial): Likewise.
7216 * exec.c (section_table_xfer_memory_partial): Likewise. All
7218 (exec_xfer_partial): Likewise.
7219 * exec.h (section_table_xfer_memory_partial): Update
7221 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7223 (gnu_xfer_partial): Likewise.
7224 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7225 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7226 (ia64_hpux_xfer_solib_got): Likewise.
7227 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7228 type of 'partial_len' to ULONGEST.
7229 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7230 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7231 (linux_nat_xfer_partial): Likewise.
7232 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7233 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7234 * monitor.c (monitor_xfer_memory): Likewise.
7235 (monitor_xfer_partial): Likewise.
7236 * procfs.c (procfs_xfer_partial): Likewise.
7237 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7238 * record-full.c (record_full_xfer_partial): Likewise.
7239 (record_full_core_xfer_partial): Likewise.
7240 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7241 (gdbsim_xfer_partial): Likewise.
7242 * remote.c (remote_write_bytes_aux): Likewise. All callers
7244 (remote_write_bytes, remote_read_bytes): Likewise. All
7246 (remote_flash_erase): Likewise. All callers updated.
7247 (remote_write_qxfer): Likewise. All callers updated.
7248 (remote_read_qxfer): Likewise. All callers updated.
7249 (remote_xfer_partial): Likewise.
7250 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7251 (rs6000_xfer_shared_libraries): Likewise.
7252 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7253 (sol_thread_xfer_partial): Likewise.
7254 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7255 (sparc_xfer_partial): Likewise.
7256 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7258 (spu_xfer_partial): Likewise.
7259 * spu-multiarch.c (spu_xfer_partial): Likewise.
7260 * tracepoint.c (tfile_xfer_partial): Likewise.
7261 * windows-nat.c (windows_xfer_memory): Likewise.
7262 (windows_xfer_shared_libraries): Likewise.
7263 (windows_xfer_partial): Likewise.
7264 * valprint.c: Replace 'target_xfer_error' with
7265 'target_xfer_status' in comments.
7267 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7269 Checked in by Joel Brobecker <brobecker@adacore.com>.
7270 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7272 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7274 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7275 function parameters.
7277 2014-02-10 Will Newton <will.newton@linaro.org>
7279 * elfread.c (elf_rel_plt_read): Look for a .got section if
7280 looking up .got.plt fails.
7281 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7282 on address passed to elf_gnu_ifunc_record_cache.
7283 (elf_gnu_ifunc_resolve_addr): Likewise.
7284 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7286 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7288 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7289 (X_RETTURN): New macro.
7290 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7292 * sparc64-tdep.c (sparc64_init_abi): Hook
7293 sparc_in_function_epilogue_p.
7295 2014-02-10 Gary Benson <gbenson@redhat.com>
7297 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7298 Rename name_matcher to symbol_matcher.
7300 2014-02-10 Gary Benson <gbenson@redhat.com>
7302 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7303 Use expand_symtabs_file_matcher_ftype and
7304 expand_symtabs_symbol_matcher_ftype.
7306 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7308 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7309 (struct ada_symbol_cache): New.
7310 (ada_free_symbol_cache): Forward declare.
7311 (struct ada_pspace_data): New.
7312 (ada_pspace_data_handle): New static global.
7313 (get_ada_pspace_data, ada_pspace_data_cleanup)
7314 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7315 (cache_space, cache): Delete, now folded inside struct
7317 (ada_get_symbol_cache): New function.
7318 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7320 (_initialize_ada_language): Remove initialization of cache_space.
7321 Move call to observer_attach_inferior_exit up, grouping it
7322 with the other observer registrations inside this function.
7323 Rename command to be more general. Add call to
7324 register_program_space_data_with_cleanup.
7326 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7328 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7329 ada_new_objfile_observer.
7330 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7331 (_initialize_tasks): Update uses of ada_new_objfile_observer
7332 and ada_tasks_normal_stop_observer.
7334 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7336 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7337 returned by the 'Length attribute to integer.
7339 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7341 * ada-lang.c (_initialize_ada_language): Initialize
7342 cache_space obstack.
7344 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7346 * ada-lang.c (HASH_SIZE): New macro.
7347 (struct cache_entry): New type.
7348 (cache_space, cache): New static globals.
7349 (ada_clear_symbol_cache, find_entry): New functions.
7350 (lookup_cached_symbol, cache_symbol): Implement.
7351 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7352 (_initialize_ada_language): Attach ada_new_objfile_observer
7353 and ada_free_objfile_observer.
7355 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7357 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7358 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7359 struct block * parameter.
7360 (ada_lookup_symbol_list_worker): Constify local variable "block".
7361 Remove cast which is no longer necessary.
7363 2014-02-10 Doug Evans <xdje42@gmail.com>
7365 Add Guile as an extension language.
7366 * NEWS: Mention Guile scripting.
7367 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7368 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7369 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7370 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7371 (CLIBS): Add GUILE_LIBS.
7372 (install-guile): New rule.
7373 (guile.o): New rule.
7374 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7375 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7376 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7377 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7378 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7379 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7380 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7381 * configure.ac: New option --with-guile.
7382 * configure: Regenerate.
7383 * config.in: Regenerate.
7384 * auto-load.c: Remove #include "python/python.h". Add #include
7385 "gdb/section-scripts.h".
7386 (source_section_scripts): Handle Guile scripts.
7387 (_initialize_auto_load): Add name of Guile objfile script to
7388 scripts-directory help text.
7389 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7390 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7391 (struct breakpoint): New member scm_bp_object.
7392 * defs.h (enum command_control_type): New value guile_control.
7393 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7395 (show_user): Update comment.
7396 (_initialize_cli_cmds): Update help text for "show user". Update help
7397 text for max-user-call-depth.
7398 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7400 (multi_line_command_p): Add guile_control.
7401 (print_command_lines): Handle guile_control.
7402 (execute_control_command, recurse_read_control_structure): Ditto.
7403 (process_next_line): Recognize "guile" commands.
7404 * disasm.c (gdb_disassemble_info): Make non-static.
7405 * disasm.h: #include "dis-asm.h".
7406 (struct gdbarch): Add forward decl.
7407 (gdb_disassemble_info): Declare.
7408 * extension.c: #include "guile/guile.h".
7409 (extension_languages): Add guile.
7410 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7411 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7412 * gdbtypes.c (get_unsigned_type_max): New function.
7413 (get_signed_type_minmax): New function.
7414 * gdbtypes.h (get_unsigned_type_max): Declare.
7415 (get_signed_type_minmax): Declare.
7416 * guile/README: New file.
7417 * guile/guile-internal.h: New file.
7418 * guile/guile.c: New file.
7419 * guile/guile.h: New file.
7420 * guile/scm-arch.c: New file.
7421 * guile/scm-auto-load.c: New file.
7422 * guile/scm-block.c: New file.
7423 * guile/scm-breakpoint.c: New file.
7424 * guile/scm-disasm.c: New file.
7425 * guile/scm-exception.c: New file.
7426 * guile/scm-frame.c: New file.
7427 * guile/scm-gsmob.c: New file.
7428 * guile/scm-iterator.c: New file.
7429 * guile/scm-lazy-string.c: New file.
7430 * guile/scm-math.c: New file.
7431 * guile/scm-objfile.c: New file.
7432 * guile/scm-ports.c: New file.
7433 * guile/scm-pretty-print.c: New file.
7434 * guile/scm-safe-call.c: New file.
7435 * guile/scm-string.c: New file.
7436 * guile/scm-symbol.c: New file.
7437 * guile/scm-symtab.c: New file.
7438 * guile/scm-type.c: New file.
7439 * guile/scm-utils.c: New file.
7440 * guile/scm-value.c: New file.
7441 * guile/lib/gdb.scm: New file.
7442 * guile/lib/gdb/boot.scm: New file.
7443 * guile/lib/gdb/experimental.scm: New file.
7444 * guile/lib/gdb/init.scm: New file.
7445 * guile/lib/gdb/iterator.scm: New file.
7446 * guile/lib/gdb/printing.scm: New file.
7447 * guile/lib/gdb/types.scm: New file.
7448 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7449 (VPATH): Add $(GUILE_SRCDIR).
7450 (GUILE_DIR): New variable.
7451 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7452 (all): Add stamp-guile dependency.
7453 (stamp-guile): New rule.
7454 (clean-guile, install-guile, uninstall-guile): New rules.
7455 (install-only): Add install-guile dependency.
7456 (uninstall): Add uninstall-guile dependency.
7457 (clean): Add clean-guile dependency.
7459 2014-02-09 Doug Evans <xdje42@gmail.com>
7461 Revert this patch (which I approved, mea culpa).
7463 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7465 * Makefile.in (all-lib): Remove.
7466 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7468 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7470 Fix Python stack corruption.
7471 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7474 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7476 * Makefile.in (all-lib): Remove.
7477 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7479 2014-02-07 Doug Evans <dje@google.com>
7481 * extension-priv.h (extension_language_script_ops): Add comment.
7482 (extension_language_ops): Add comment.
7483 (active_ext_lang_state): Fix typo in comment.
7485 2014-02-07 Pedro Alves <palves@redhat.com>
7487 PR breakpoints/16292
7488 * infrun.c (handle_signal_stop) <signal arrives while stepping
7489 over a breakpoint>: Switch back to the stepping thread.
7491 2014-02-07 Yao Qi <yao@codesourcery.com>
7493 * target.c (target_xfer_partial): Return zero if LEN is zero.
7495 2014-02-07 Yao Qi <yao@codesourcery.com>
7497 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7498 (ld_so_xfer_auxv): Likewise.
7499 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7500 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7501 * corelow.c (core_xfer_partial): Likewise.
7502 * ctf.c (ctf_xfer_partial): Likewise.
7503 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7504 (darwin_xfer_partial): Likewise.
7505 * exec.c (exec_xfer_partial): Likewise.
7506 * gnu-nat.c (gnu_xfer_partial): Likewise.
7507 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7508 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7509 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7510 * linux-nat.c (linux_xfer_siginfo): Likewise.
7511 (linux_proc_xfer_spu): Likewise.
7512 * procfs.c (procfs_xfer_partial): Likewise.
7513 * record-full.c (record_full_xfer_partial): Likewise.
7514 (record_full_core_xfer_partial): Likewise.
7515 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7516 * remote.c (remote_write_qxfer): Likewise.
7517 (remote_write_qxfer, remote_read_qxfer): Likewise.
7518 (remote_xfer_partial): Likewise.
7519 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7520 (rs6000_xfer_shared_libraries): Likewise.
7521 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7523 (spu_xfer_partial): Likewise.
7524 * target.c (memory_xfer_partial_1): Likewise.
7525 * tracepoint.c (tfile_xfer_partial): Likewise.
7526 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7527 (windows_xfer_partial): Likewise.
7529 2014-02-07 Yao Qi <yao@codesourcery.com>
7531 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7533 (core_xfer_shared_libraries_aix): Likewise.
7534 * gdbarch.c, gdbarch.h: Regenerated.
7535 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7536 ULONGEST. Change 'len_avail' type to ULONGEST.
7537 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7538 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7540 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7542 2014-02-07 Yao Qi <yao@codesourcery.com>
7544 * corefile.c (memory_error): Get 'exception' from ERR and pass
7545 'exception' to throw_error.
7547 2014-02-06 Doug Evans <xdje42@gmail.com>
7549 * configure.ac (libpython checking): Remove all but python.o from
7550 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7551 * configure: Regenerate.
7553 * Makefile.in (SFILES): Add extension.c.
7554 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7555 (COMMON_OBS): Add extension.o.
7556 * extension.h: New file.
7557 * extension-priv.h: New file.
7558 * extension.c: New file.
7560 * python/python-internal.h: #include "extension.h".
7561 (gdbpy_auto_load_enabled): Declare.
7562 (gdbpy_apply_val_pretty_printer): Declare.
7563 (gdbpy_apply_frame_filter): Declare.
7564 (gdbpy_preserve_values): Declare.
7565 (gdbpy_breakpoint_cond_says_stop): Declare.
7566 (gdbpy_breakpoint_has_cond): Declare.
7567 (void source_python_script_for_objfile): Delete.
7568 * python/python.c: #include "extension-priv.h".
7569 Delete inclusion of "observer.h".
7570 (extension_language_python): Moved here and renamed from
7571 script_language_python in py-auto-load.c.
7572 Redefined to be of type extension_language_defn.
7573 (python_extension_script_ops): New global.
7574 (python_extension_ops): New global.
7575 (struct python_env): New member previous_active.
7576 (restore_python_env): Call restore_active_ext_lang.
7577 (ensure_python_env): Call set_active_ext_lang.
7578 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7580 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7582 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7584 (gdbpy_eval_from_control_command): Renamed from
7585 eval_python_from_control_command, made static. New arg extlang.
7586 (gdbpy_source_script) Renamed from source_python_script, made static.
7588 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7589 result to int. New arg extlang.
7590 (gdbpy_source_objfile_script): Renamed from
7591 source_python_script_for_objfile, made static. New arg extlang.
7592 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7593 static. New args extlang, extlang_printers. Change result type to
7595 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7596 static. New arg extlang. Rename arg printers to extlang_printers
7597 and change type to ext_lang_type_printers *.
7598 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7599 static. Replace argument arg with extlang, extlang_printers.
7600 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7601 (!HAVE_PYTHON, source_python_script): Delete.
7602 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7603 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7604 (!HAVE_PYTHON, start_type_printers): Delete.
7605 (!HAVE_PYTHON, apply_type_printers): Delete.
7606 (!HAVE_PYTHON, free_type_printers): Delete.
7607 (_initialize_python): Delete call to observer_attach_before_prompt.
7608 (finalize_python): Set/restore active extension language.
7609 (gdbpy_finish_initialization) Renamed from
7610 finish_python_initialization, made static. New arg extlang.
7611 (gdbpy_initialized): New function.
7612 * python/python.h: #include "extension.h". Delete #include
7613 "value.h", "mi/mi-cmds.h".
7614 (extension_language_python): Declare.
7615 (GDBPY_AUTO_FILE_NAME): Delete.
7616 (enum py_bt_status): Moved to extension.h and renamed to
7618 (enum frame_filter_flags): Moved to extension.h.
7619 (enum py_frame_args): Moved to extension.h and renamed to
7620 ext_lang_frame_args.
7621 (finish_python_initialization): Delete.
7622 (eval_python_from_control_command): Delete.
7623 (source_python_script): Delete.
7624 (apply_val_pretty_printer): Delete.
7625 (apply_frame_filter): Delete.
7626 (preserve_python_values): Delete.
7627 (gdbpy_script_language_defn): Delete.
7628 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7629 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7631 * auto-load.c: #include "extension.h".
7632 (GDB_AUTO_FILE_NAME): Delete.
7633 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7634 (script_language_gdb): Delete, moved to extension.c and renamed to
7635 extension_language_gdb.
7636 (source_gdb_script_for_objfile): Delete.
7637 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7638 (loaded_script): Change type of language member to
7639 struct extension_language_defn *.
7640 (init_loaded_scripts_info): Initialize
7641 unsupported_script_warning_printed.
7642 (maybe_add_script): Make static. Change type of language arg to
7643 struct extension_language_defn *.
7644 (clear_section_scripts): Reset unsupported_script_warning_printed.
7645 (auto_load_objfile_script_1): Rewrite to use extension language API.
7646 (auto_load_objfile_script): Make public. Remove support-compiled-in
7647 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7648 (source_section_scripts): Rewrite to use extension language API.
7649 (load_auto_scripts_for_objfile): Rewrite to use
7650 auto_load_scripts_for_objfile.
7651 (collect_matching_scripts_data): Change type of language member to
7652 struct extension_language_defn *.
7653 (auto_load_info_scripts): Change type of language arg to
7654 struct extension_language_defn *.
7655 (unsupported_script_warning_print): New function.
7656 (script_not_found_warning_print): Make static.
7657 (_initialize_auto_load): Rewrite construction of scripts-directory
7659 * auto-load.h (struct objfile): Add forward decl.
7660 (struct script_language): Delete.
7661 (struct auto_load_pspace_info): Add forward decl.
7662 (struct extension_language_defn): Add forward decl.
7663 (maybe_add_script): Delete.
7664 (auto_load_objfile_script): Declare.
7665 (script_not_found_warning_print): Delete.
7666 (auto_load_info_scripts): Update prototype.
7667 (auto_load_gdb_scripts_enabled): Declare.
7668 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7669 auto_load_python_scripts_enabled and made public.
7670 (script_language_python): Delete, moved to python.c.
7671 (gdbpy_script_language_defn): Delete.
7672 (info_auto_load_python_scripts): Update to use
7673 extension_language_python.
7675 * breakpoint.c (condition_command): Replace call to
7676 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7677 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7678 with call to breakpoint_ext_lang_cond_says_stop.
7679 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7680 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7681 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7682 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7684 (local_setattro): Print name of extension language with existing
7687 * valprint.c (val_print, value_print): Update to call
7688 apply_ext_lang_val_pretty_printer.
7689 * cp-valprint.c (cp_print_value): Update call to
7690 apply_ext_lang_val_pretty_printer.
7691 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7692 (gdbpy_apply_val_pretty_printer): Renamed from
7693 apply_val_pretty_printer. New arg extlang.
7694 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7696 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7697 extension language API.
7698 * cli/cli-script.c (execute_control_command): Update to call
7699 eval_ext_lang_from_control_command.
7701 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7702 enum ext_lang_bt_status values. Update call to
7703 apply_ext_lang_frame_filter.
7704 (mi_cmd_stack_list_locals): Ditto.
7705 (mi_cmd_stack_list_args): Ditto.
7706 (mi_cmd_stack_list_variables): Ditto.
7707 * mi/mi-main.c: Delete #include "python/python-internal.h".
7708 Add #include "extension.h".
7709 (mi_cmd_list_features): Replace reference to python internal variable
7710 gdb_python_initialized with call to ext_lang_initialized_p.
7712 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7713 Update to use enum ext_lang_frame_args. Update to call
7714 apply_ext_lang_frame_filter.
7715 * python/py-framefilter.c (extract_sym): Update to use enum
7717 (extract_value, py_print_type, py_print_value): Ditto.
7718 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7719 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7720 (py_print_frame): Ditto.
7721 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7722 New arg extlang. Update to use enum ext_lang_bt_status.
7724 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7725 finish_python_initialization. Replace with call to
7726 finish_ext_lang_initialization.
7728 * typeprint.c (do_free_global_table): Update to call
7729 free_ext_lang_type_printers.
7730 (create_global_typedef_table): Update to call
7731 start_ext_lang_type_printers.
7732 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7733 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7734 (type_print_options): Change type of global_printers from "void *"
7735 to "struct ext_lang_type_printers *".
7737 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7738 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7739 (gdbpy_preserve_values): Renamed from preserve_python_values.
7741 (!HAVE_PYTHON, preserve_python_values): Delete.
7743 * utils.c (quit_flag): Delete, moved to extension.c.
7744 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7747 * eval.c: Delete #include "python/python.h".
7748 * main.c: Delete #include "python/python.h".
7750 * defs.h: Update comment.
7752 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7756 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7758 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7761 2014-02-05 Yao Qi <yao@codesourcery.com>
7763 * remote.c (remote_pass_signals): Remove local 'buf' and use
7765 (remote_program_signals): Likewise.
7767 2014-02-05 Yao Qi <yao@codesourcery.com>
7769 * ctf.c: Include "inferior.h" and "gdbthread.h".
7770 (CTF_PID): A new macro.
7771 (ctf_open): Call inferior_appeared and add_thread_silent.
7772 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7773 (ctf_thread_alive): New function.
7774 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7776 2014-02-05 Yao Qi <yao@codesourcery.com>
7780 2013-05-24 Yao Qi <yao@codesourcery.com>
7782 * tracepoint.c (TFILE_PID): Remove.
7783 (tfile_open): Don't add thread and inferior.
7784 (tfile_close): Don't set 'inferior_ptid'. Don't call
7785 exit_inferior_silent.
7786 (tfile_thread_alive): Remove.
7787 (init_tfile_ops): Don't set field 'to_thread_alive' of
7790 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7792 * remote.c (remote_start_remote): Call remote_check_symbols even
7793 if only symbol-file (not file) has been given.
7795 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7797 * gdbarch.sh (skip_entrypoint): New callback.
7798 * gdbarch.c, gdbarch.h: Regenerate.
7799 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7800 * infrun.c (fill_in_stop_func): Likewise.
7801 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7802 (ppc_elfv2_elf_make_msymbol_special): New function.
7803 (ppc_elfv2_skip_entrypoint): Likewise.
7804 (ppc_linux_init_abi): Install them for ELFv2.
7806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7808 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7809 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7810 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7811 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7812 structures returned in GPRs.
7814 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7817 offset to the stack parameter list for the ELFv2 ABI.
7819 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7821 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7822 set_gdbarch_convert_from_func_ptr_addr and
7823 set_gdbarch_elf_make_msymbol_special for ELFv1.
7824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7825 function descriptors on ELFv1.
7826 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7827 set up r12 at function entry.
7829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7831 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7832 (struct gdbarch_tdep): New member elf_abi.
7834 * rs6000-tdep.c: Include "elf/ppc64.h".
7835 (rs6000_gdbarch_init): Detect ELF ABI version.
7837 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7839 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7840 within a register pair holding a DFP 128-bit value on little-endian.
7841 (ppc64_sysv_abi_return_value_base): Likewise.
7842 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7843 (dfp_pseudo_register_write): Likewise.
7845 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7848 offset on little-endian when passing _Decimal32.
7849 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7851 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7853 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7854 of the overlapped FP register within the VSX register on little-
7856 (efpr_pseudo_register_write): Likewise.
7858 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7860 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7861 offset on little-endian when passing small structures.
7863 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7865 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7866 (struct ppc64_sysv_argpos): New data structure.
7867 (ppc64_sysv_abi_push_float): Remove.
7868 (ppc64_sysv_abi_push_val): New function.
7869 (ppc64_sysv_abi_push_integer): Likewise.
7870 (ppc64_sysv_abi_push_freg): Likewise.
7871 (ppc64_sysv_abi_push_vreg): Likewise.
7872 (ppc64_sysv_abi_push_param): Likewise.
7873 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7874 (ppc64_sysv_abi_return_value_base): New function.
7875 (ppc64_sysv_abi_return_value): Refactor to use it.
7877 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7879 * NEWS: Document new target powerpc64le-*-linux*.
7881 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7883 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7884 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7886 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7887 register set used in ELF core dumps. Add floating-point register set.
7889 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7891 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7892 dwarf2_to_gdb[] table using symbolic constants. Adjust
7893 penultimate entry from number representing the PC register
7894 to symbolic constant representing the MDR register. Add
7895 constant for the PC register to the end of the table.
7897 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7899 * bsd-kvm.c: Include <sys/param.h>
7901 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7903 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7905 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7907 * ada-lang.h (clear_ada_sym_cache): Delete.
7909 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7911 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7913 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7915 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7916 the sigreturn register save area only if the syscall is
7919 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7921 * valops.c (value_slice): Minor reformatting.
7923 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7925 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7927 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7929 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7931 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7932 (ada_ignore_descriptive_types_p): New static global.
7933 (find_parallel_type_by_descriptive_type): Return immediately
7934 if ada_ignore_descriptive_types_p is set.
7935 (_initialize_ada_language): Register new commands "maintenance
7936 set ada", "maintenance show ada", "maintenance set ada
7937 ignore-descriptive-types" and "maintenance show ada
7938 ignore-descriptive-types".
7939 * NEWS: Add entry for new "maint ada set/show
7940 ignore-descriptive-types" commands.
7942 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7944 * record-btrace.c (record_btrace_close): Call btrace_teardown
7947 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7949 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7952 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7954 * ada-typeprint (type_is_full_subrange_of_target_type):
7956 (print_range): Add parameter bounds_prefered_p. If not set,
7957 try printing range types using the name of their base type.
7958 (print_range_type): Add parameter bounds_prefered_p.
7959 Use it in call to print_range.
7960 (print_array_type, ada_print_type): Update calls to print_range
7961 and print_range_type.
7963 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7965 * ada-typeprint.c (print_array_type, print_choices, print_range)
7966 (print_range_bound, print_dynamic_range_bound, print_range_type):
7969 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7971 * ada-typeprint.c (print_range): Add missing empty line
7972 after local declaration.
7974 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7976 * ada-valprint.c (print_optional_low_bound): Get index_type's
7977 target type for as long as it is a TYPE_CODE_RANGE.
7979 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7981 * procfs.c (procfs_make_note_section): Remove assertion and
7984 2014-01-24 Yao Qi <yao@codesourcery.com>
7986 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7987 * corelow.c (get_core_siginfo): Likewise.
7989 2014-01-24 Yao Qi <yao@codesourcery.com>
7991 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7992 ULONGEST. Don't check 'len' is negative.
7993 (remote_write_bytes): Change type of 'len' to ULONGEST.
7995 2014-01-23 Tom Tromey <tromey@redhat.com>
7998 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7999 Handle exception from frame.block.
8000 (FrameVars.fetch_frame_locals): Likewise.
8002 2014-01-23 Tom Tromey <tromey@redhat.com>
8005 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8006 on a NULL pointer. Move "goto error" to correct place.
8008 2014-01-23 Tom Tromey <tromey@redhat.com>
8011 * python/py-framefilter.c (apply_frame_filter): Call
8012 ensure_python_env after computing gdbarch.
8014 2014-01-23 Yao Qi <yao@codesourcery.com>
8016 * target.c (raw_memory_xfer_partial): Change argument type
8017 from void * to gdb_byte *.
8018 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8020 2014-01-22 Doug Evans <dje@google.com>
8022 New gdbserver option --debug-format=timestamp.
8025 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8027 * syscalls/s390x-linux.xml: New file.
8028 * syscalls/s390-linux.xml: New file.
8029 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8030 (XML_SYSCALL_FILENAME_S390X): Likewise.
8031 (op_svc): New enum value for SVC opcode.
8032 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8033 (s390_linux_get_syscall_number): New function.
8034 (s390_gdbarch_init): Register '*get_syscall_number' and the
8035 syscall xml file name.
8036 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8037 "s390-linux.xml" and "s390x-linux.xml".
8038 * NEWS: Announce new feature.
8040 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8042 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8044 2014-01-22 Pedro Alves <palves@redhat.com>
8046 * xtensa-config.c: Include defs.h.
8048 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8050 * common/common-utils.h: Add "ARI:" comment beside __func__
8053 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8055 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8056 documentation a bit.
8058 2014-01-21 Roland McGrath <mcgrathr@google.com>
8060 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8061 * configure: Regenerate.
8062 * aclocal.m4: Regenerate.
8063 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8064 New substituted variables.
8065 (install-strip): New target.
8066 (INSTALL_SCRIPT): New substituted variable.
8067 (FLAGS_TO_PASS): Add it.
8068 (install-only): Use $(INSTALL_SCRIPT) rather than
8069 $(INSTALL_PROGRAM) for gcore.
8071 2014-01-20 Tom Tromey <tromey@redhat.com>
8073 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8076 2014-01-20 Tom Tromey <tromey@redhat.com>
8078 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8079 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8080 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8081 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8082 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8083 (struct cmd_list_element) <flags>: Remove.
8084 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8085 doc_allocated>: New fields.
8086 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8088 * maint.c (maintenance_do_deprecate): Update.
8089 * top.c (execute_command): Update.
8091 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8093 * xtensa-linux-nat.c: Include asm/ptrace.h.
8095 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8097 * Makefile.in (SFILES): Add d-support.c.
8098 (COMMON_OBS): Add d-support.o.
8099 * d-lang.h (d_parse_symbol): Add comment, now defined in
8101 * d-lang.c (parse_call_convention)
8102 (parse_attributes, parse_function_types)
8103 (parse_function_args, parse_type, parse_identifier)
8104 (call_convention_p, d_parse_symbol): Move functions to ...
8105 * d-support.c: ... New file.
8107 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8109 * d-lang.h (d_parse_symbol): Add declaration.
8110 * d-lang.c (extract_identifiers)
8111 (extract_type_info): Remove functions.
8112 (parse_call_convention, parse_attributes)
8113 (parse_function_types, parse_function_args)
8114 (parse_type, parse_identifier, call_convention_p)
8115 (d_parse_symbol): New functions.
8116 (d_demangle): Use d_parse_symbol to demangle D symbols.
8118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8120 * d-lang.h (struct builtin_d_type): New data type.
8121 (builtin_d_type): Add declaration.
8122 * d-lang.c (d_language_arch_info, build_d_types)
8123 (builtin_d_type): New functions.
8124 (enum d_primitive_types): New data type.
8125 (d_language_defn): Change c_language_arch_info to
8126 d_language_arch_info.
8127 (d_type_data): New static variable.
8128 (_initialize_d_language): Initialize d_type_data.
8130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8132 * d-lang.h (d_main_name): Add declaration.
8133 * d-lang.c (d_main_name): New function.
8134 * symtab.c (find_main_name): Add call to d_main_name.
8136 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8138 * d-lang.c (d_language_defn): Change macro_expansion_c to
8141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8143 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8145 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8147 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8148 gdb_exception" declaration.
8149 * remote.c (getpkt_or_notif_sane): Likewise.
8151 2014-01-17 Doug Evans <dje@google.com>
8153 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8154 function, contents of dirnames_to_char_ptr_vec_append moved here.
8155 (delim_string_to_char_ptr_vec): New function.
8156 (dirnames_to_char_ptr_vec_append): Rewrite.
8157 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8159 2014-01-17 Doug Evans <dje@google.com>
8161 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8163 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8164 #include "common-utils.h".
8165 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8166 * common/vec.h (VEC_ASSERT_PASS): Update.
8167 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8168 (MACH_CHECK_ERROR): Update.
8170 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8172 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8174 * gdbarch.h: Regenerate.
8176 2014-01-16 Tom Tromey <tromey@redhat.com>
8178 * value.c (struct value) <regnum>: Move earlier.
8180 2014-01-16 Tom Tromey <tromey@redhat.com>
8182 * remote.c (extended_remote_create_inferior): Rename from
8183 extended_remote_create_inferior_1. Add "ops" argument. Remove
8186 2014-01-16 Pedro Alves <palves@redhat.com>
8188 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8189 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8192 2014-01-16 Doug Evans <dje@google.com>
8194 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8198 * btrace.h (btrace_thread_flag): New.
8199 (struct btrace_thread_info) <flags>: New.
8200 * record-btrace.c (record_btrace_resume_thread)
8201 (record_btrace_find_thread_to_move, btrace_step_no_history)
8202 (btrace_step_stopped, record_btrace_start_replaying)
8203 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8204 (record_btrace_find_resume_thread): New.
8205 (record_btrace_resume, record_btrace_wait): Extend.
8206 (record_btrace_can_execute_reverse): New.
8207 (record_btrace_open): Fail in non-stop mode.
8208 (record_btrace_set_replay): Split into this, ...
8209 (record_btrace_stop_replaying): ... this, ...
8210 (record_btrace_clear_histories): ... and this.
8211 (init_record_btrace_ops): Init to_can_execute_reverse.
8212 * NEWS: Announce it.
8214 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8216 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8217 (forward_target_decr_pc_after_break)
8218 (target_decr_pc_after_break): New.
8219 * target.c (forward_target_decr_pc_after_break)
8220 (target_decr_pc_after_break): New.
8221 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8222 instead of gdbarch_decr_pc_after_break.
8223 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8224 instead of gdbarch_decr_pc_after_break.
8225 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8226 instead of gdbarch_decr_pc_after_break.
8227 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8228 instead of gdbarch_decr_pc_after_break.
8229 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8230 instead of gdbarch_decr_pc_after_break.
8231 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8232 instead of gdbarch_decr_pc_after_break.
8234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8236 * btrace.c: Include regcache.h.
8237 (btrace_add_pc): New.
8238 (btrace_enable): Call btrace_add_pc.
8239 (btrace_is_empty): New.
8240 * btrace.h (btrace_is_empty): New.
8241 * record-btrace.c (require_btrace, record_btrace_info): Call
8244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8246 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8247 Support delta reads.
8248 (linux_disable_btrace): Change return type.
8249 * common/linux-btrace.h (linux_read_btrace): Change parameters
8250 and return type to allow error reporting. Update users.
8251 (linux_disable_btrace): Change return type. Update users.
8252 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8254 (btrace_error): New.
8255 (btrace_block) <begin>: Comment on BEGIN == 0.
8256 * btrace.c (btrace_compute_ftrace): Start from the end of
8258 (btrace_stitch_trace, btrace_clear_history): New.
8259 (btrace_fetch): Read delta trace, return if replaying.
8260 (btrace_clear): Move clear history code to btrace_clear_history.
8261 (parse_xml_btrace): Throw an error if parsing failed.
8262 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8263 and return type to allow error reporting.
8264 (target_read_btrace): Change parameters and return type to allow
8266 * target.c (target_read_btrace): Update.
8267 * remote.c (remote_read_btrace): Support delta reads. Pass
8269 * NEWS: Announce it.
8271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8273 * record.h (record_btrace_frame_unwind)
8274 (record_btrace_tailcall_frame_unwind): New declarations.
8275 * dwarf2-frame: Include record.h
8276 (dwarf2_frame_cfa): Throw an error for btrace frames.
8277 * record-btrace.c: Include hashtab.h.
8278 (btrace_get_bfun_name): New.
8279 (btrace_call_history): Call btrace_get_bfun_name.
8280 (struct btrace_frame_cache): New.
8282 (bfcache_hash, bfcache_eq, bfcache_new): New.
8283 (btrace_get_frame_function): New.
8284 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8285 (record_btrace_frame_this_id): Compute own id.
8286 (record_btrace_frame_prev_register): Provide PC, throw_error
8287 for all other registers.
8288 (record_btrace_frame_sniffer): Detect btrace frames.
8289 (record_btrace_tailcall_frame_sniffer): New.
8290 (record_btrace_frame_dealloc_cache): New.
8291 (record_btrace_frame_unwind): Add new functions.
8292 (record_btrace_tailcall_frame_unwind): New.
8293 (_initialize_record_btrace): Allocate cache.
8294 * btrace.c (btrace_clear): Call reinit_frame_cache.
8295 * NEWS: Announce it.
8297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8299 * record-btrace.c (record_btrace_set_replay)
8300 (record_btrace_goto_begin, record_btrace_goto_end)
8301 (record_btrace_goto): New.
8302 (init_record_btrace_ops): Initialize them.
8303 * NEWS: Announce it.
8305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8307 * record-btrace.c (record_btrace_find_new_threads)
8308 (record_btrace_thread_alive): New.
8309 (init_record_btrace_ops): Initialize to_find_new_threads and
8312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8314 * record-btrace.c (record_btrace_resume): New.
8315 (record_btrace_wait): New.
8316 (init_record_btrace_ops): Initialize to_wait and to_resume.
8318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8320 * record-btrace.c (record_btrace_xfer_partial)
8321 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8322 (record_btrace_allow_memory_access): New.
8323 (init_record_btrace_ops): Initialize new methods.
8324 * target.c (raw_memory_xfer_partial): Bail out if target reports
8325 that this memory is not available.
8327 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8329 * target.h (target_ops) <to_insert_breakpoint>
8330 <to_remove_breakpoint>: Add target_ops parameter.
8331 (forward_target_insert_breakpoint): New.
8332 (forward_target_remove_breakpoint): New.
8333 (memory_remove_breakpoint, memory_insert_breakpoint):
8334 Add target_ops parameter.
8335 * target.c (target_insert_breakpoint): Split into this and ...
8336 (forward_target_insert_breakpoint): ... this.
8337 (target_remove_breakpoint): Split into this and ...
8338 (forward_target_remove_breakpoint): ... this.
8339 (debug_to_insert_breakpoint): Add target_ops parameter.
8340 Call forward_target_insert_breakpoint.
8341 (debug_to_remove_breakpoint): Add target_ops parameter.
8342 Call forward_target_remove_breakpoint.
8343 (update_current_target): Do not inherit or default to_insert_breakpoint
8344 and to_remove_breakpoint.
8345 * corelow.c (ignore): Add target_ops parameter.
8346 * exec.c (ignore): Add target_ops parameter.
8347 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8348 Add target_ops parameter.
8349 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8350 Add target_ops parameter.
8351 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8352 Add target_ops parameter.
8353 * record-full.c (record_full_beneath_to_insert_breakpoint)
8354 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8355 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8356 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8357 (record_full_core_remove_breakpoint): Add target_ops parameter.
8359 (record_full_beneath_to_insert_breakpoint_ops)
8360 (record_full_beneath_to_remove_breakpoint_ops)
8361 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8362 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8363 tmp_to_remove_breakpoint_ops,
8364 record_full_beneath_to_insert_breakpoint_ops, and
8365 record_full_beneath_to_remove_breakpoint_ops.
8366 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8367 (m32r_remove_breakpoint): Add target_ops parameter.
8368 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8369 Add target_ops parameter.
8370 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8371 Add target_ops parameter.
8373 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Markus Metzger <markus.t.metzger@intel.com>
8376 * record-btrace.c: Include frame-unwind.h.
8377 (record_btrace_frame_unwind_stop_reason)
8378 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8379 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8381 (init_record_btrace_ops): Install it.
8383 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8385 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8388 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8390 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8393 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8395 * frame-unwind.c: Include target.h.
8396 (frame_unwind_try_unwinder): New function with code from ...
8397 (frame_unwind_find_by_frame): ... here. New variable
8398 unwinder_from_target, call also target_get_unwinder)
8399 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8400 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8401 * target.h (struct target_ops): New fields to_get_unwinder and
8402 to_get_tailcall_unwinder.
8403 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8407 * record-btrace.c (record_btrace_fetch_registers)
8408 (record_btrace_store_registers)
8409 (record_btrace_to_prepare_to_store): New.
8410 (init_record_btrace_ops): Add the above.
8412 2014-01-16 Tom Tromey <tromey@redhat.com>
8414 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8415 * target.h (struct target_ops) <to_prepare_to_store>: Add
8417 (target_prepare_to_store): Add argument.
8418 * target.c (debug_to_prepare_to_store): Add argument.
8419 (update_current_target): Update.
8420 * remote.c (remote_prepare_to_store): Add 'self' argument.
8421 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8422 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8423 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8424 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8426 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8427 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8428 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8429 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8430 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8434 * btrace.h (replay) <replay>: New.
8435 (btrace_is_replaying): New.
8436 * btrace.c (btrace_clear): Free replay iterator.
8437 (btrace_is_replaying): New.
8438 * record-btrace.c (record_btrace_is_replaying): New.
8439 (record_btrace_info): Print insn number if replaying.
8440 (record_btrace_insn_history): Start at replay position.
8441 (record_btrace_call_history): Start at replay position.
8442 (init_record_btrace_ops): Init to_record_is_replaying.
8444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8446 * record-btrace.c (record_btrace_insn_history_range): Include
8448 (record_btrace_insn_history_from): Adjust range.
8449 (record_btrace_call_history_range): Include
8451 (record_btrace_call_history_from): Adjust range.
8452 * NEWS: Announce changes.
8454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8456 * record.h (enum record_print_flag)
8457 <record_print_indent_calls>: New.
8458 * record.c (get_call_history_modifiers): Recognize /c modifier.
8459 (_initialize_record): Document /c modifier.
8460 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8461 Reorder fields. Optionally indent the function name. Update
8463 * NEWS: Announce changes.
8465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8467 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8471 * btrace.c (ftrace_new_function): Start counting at one.
8472 * record-btrace.c (record_btrace_info): Adjust number of calls
8474 * NEWS: Announce it.
8476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8478 * record-btrace.c (btrace_call_history_insn_range): Print
8479 insn range as [begin, end].
8481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8483 * btrace.h (struct btrace_func_link): New.
8484 (enum btrace_function_flag): New.
8485 (struct btrace_inst): Rename to ...
8486 (struct btrace_insn): ...this. Update all users.
8487 (struct btrace_func) <ibegin, iend>: Remove.
8488 (struct btrace_func_link): New.
8489 (struct btrace_func): Rename to ...
8490 (struct btrace_function): ...this. Update all users.
8491 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8492 (number, level, flags>: New.
8493 (struct btrace_insn_iterator): Rename to ...
8494 (struct btrace_insn_history): ...this.
8496 (struct btrace_insn_iterator, btrace_call_iterator): New.
8497 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8498 (struct btrace_target_info) <begin, end, level>
8499 <insn_history, call_history>: New.
8500 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8501 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8502 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8503 (btrace_call_number, btrace_call_begin, btrace_call_end)
8504 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8505 (btrace_find_function_by_number, btrace_set_insn_history)
8506 (btrace_set_call_history): New.
8507 * btrace.c (btrace_init_insn_iterator)
8508 (btrace_init_func_iterator, compute_itrace): Remove.
8509 (ftrace_print_function_name, ftrace_print_filename)
8510 (ftrace_skip_file): Change
8512 (ftrace_init_func): Remove.
8513 (ftrace_debug): Use new btrace_function fields.
8514 (ftrace_function_switched): Also consider gaining and
8515 losing symbol information).
8516 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8517 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8518 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8520 (ftrace_new_function): Move. Remove debug print.
8521 (ftrace_update_lines, ftrace_update_insns): New.
8522 (ftrace_update_function): Check for call, ret, and jump.
8523 (compute_ftrace): Renamed to ...
8524 (btrace_compute_ftrace): ...this. Rewritten to compute call
8526 (btrace_fetch, btrace_clear): Updated.
8527 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8528 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8529 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8530 (btrace_call_number, btrace_call_begin, btrace_call_end)
8531 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8532 (btrace_find_function_by_number, btrace_set_insn_history)
8533 (btrace_set_call_history): New.
8534 * record-btrace.c (require_btrace): Use new btrace thread
8536 (record_btrace_info, btrace_insn_history)
8537 (record_btrace_insn_history, record_btrace_insn_history_range):
8538 Use new btrace thread info fields and new iterator.
8539 (btrace_func_history_src_line): Rename to ...
8540 (btrace_call_history_src_line): ...this. Use new btrace
8542 (btrace_func_history): Rename to ...
8543 (btrace_call_history): ...this. Use new btrace thread info
8544 fields and new iterator.
8545 (record_btrace_call_history, record_btrace_call_history_range):
8546 Use new btrace thread info fields and new iterator.
8548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8550 * frame.h (frame_id_build_unavailable_stack_special): New.
8551 * frame.c (frame_id_build_unavailable_stack_special): New.
8553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8555 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8556 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8557 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8559 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8560 (i386_insn_is_jump, i386_jmp_p): New.
8561 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8562 insn_is_jump to gdbarch.
8563 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8564 * gdbarch.h: Regenerated.
8565 * gdbarch.c: Regenerated.
8566 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8567 (default_insn_is_jump): New.
8568 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8569 (default_insn_is_jump): New.
8571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8573 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8575 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8576 (btrace_read_type) <btrace_read_new>: Change to ...
8577 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8581 * common/linux-btrace.c (linux_read_btrace): Free trace from
8584 2014-01-15 Doug Evans <dje@google.com>
8586 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8589 2014-01-15 Tom Tromey <tromey@redhat.com>
8591 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8592 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8593 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8594 (set_objfile_main_name): New function.
8595 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8596 language_of_main>: New fields.
8597 (set_objfile_main_name): Declare.
8598 * symtab.c (find_main_name): Loop over objfiles to find the main
8600 (set_main_name): Now static.
8601 (get_main_info): Add comment.
8602 * symtab.h (set_main_name): Don't declare.
8604 2014-01-15 Tom Tromey <tromey@redhat.com>
8606 * symtab.c (main_progspace_key): New global.
8607 (struct main_info): New.
8608 (name_of_main, language_of_main): Remove.
8609 (get_main_info, main_info_cleanup): New function.
8610 (set_main_name, main_name, main_language): Use get_main_info.
8611 (_initialize_symtab): Initialize main_progspace_key.
8613 2014-01-15 Tom Tromey <tromey@redhat.com>
8615 * dbxread.c (process_one_symbol): Update.
8616 * dwarf2read.c (read_partial_die): Update.
8617 * symfile.c (set_initial_language): Call main_language.
8618 * symtab.c (language_of_main): Now static.
8619 (set_main_name): Add 'lang' parameter.
8620 (find_main_name): Update.
8621 (main_language): New function.
8622 (symtab_observer_executable_changed): Update.
8623 * symtab.h (set_main_name): Update.
8624 (language_of_main): Remove.
8625 (main_language): Declare.
8627 2014-01-15 Tom Tromey <tromey@redhat.com>
8629 * symfile.c (init_entry_point_info): Use new "initialized" field.
8631 * objfiles.h (struct entry_point) <initialized>: New field.
8632 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8633 (struct objfile) <ei>: ...here. Remove.
8634 * objfiles.c (entry_point_address_query): Update.
8636 2014-01-15 Tom Tromey <tromey@redhat.com>
8638 * objfiles.c (entry_point_address_query): Relocate entry point
8640 (objfile_relocate1): Do not relocate entry point address.
8641 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8642 <the_bfd_section_index>: New field.
8643 * symfile.c (init_entry_point_info): Find the entry point's
8646 2014-01-15 Tom Tromey <tromey@redhat.com>
8648 * solib-frv.c (enable_break): Use entry_point_address_query.
8650 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8652 * NEWS: Add note on improved process record-replay on
8653 arm*-linux* targets.
8655 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8657 * arm-tdep.c (enum arm_record_result): New enum.
8658 (arm_record_unsupported_insn): New function.
8659 (arm_record_coproc_data_proc): Removed.
8660 (thumb2_record_ld_st_multiple): New function.
8661 (thumb2_record_ld_st_dual_ex_tbb): New function.
8662 (thumb2_record_data_proc_sreg_mimm): New function.
8663 (thumb2_record_ps_dest_generic): New function.
8664 (thumb2_record_branch_misc_cntrl): New function.
8665 (thumb2_record_str_single_data): New function.
8666 (thumb2_record_ld_mem_hints): New function.
8667 (thumb2_record_ld_word): New function.
8668 (thumb2_record_lmul_lmla_div): New function.
8669 (thumb2_record_decode_insn_handler): New function.
8670 (decode_insn): Add thumb32 instruction handlers.
8672 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8674 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8675 (struct arm_linux_record_tdep): Declare.
8676 (arm_canonicalize_syscall): New function.
8677 (arm_all_but_pc_registers_record): New function.
8678 (arm_linux_syscall_record): New function.
8679 (arm_linux_init_abi): Add syscall recording constructs.
8680 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8681 decoding. (arm_record_coproc_data_proc): Update arm syscall
8683 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8684 <arm_syscall_record>: New field.
8685 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8688 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8690 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8691 register for push instruction recording.
8693 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8695 * arm-tdep.c (thumb_record_misc): Update to correct logical
8696 error while recording ldm, ldmia and pop instructions.
8698 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8700 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8702 2014-01-15 Pedro Alves <palves@redhat.com>
8704 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8705 (go32_resume, go32_fetch_registers, store_register)
8706 (go32_store_registers, go32_prepare_to_store)
8707 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8708 (go32_create_inferior, go32_can_run, go32_terminal_init)
8709 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8712 2014-01-15 Tom Tromey <tromey@redhat.com>
8714 * target.h (async_callback_ftype): New typedef.
8715 (struct target_ops) <to_async>: Use it.
8717 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8719 * python/py-value.c (get_field_type): Remove unnecessary curly
8720 braces for single-statement if block.
8722 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8724 * python/py-type.c (convert_field): Add missing empty line
8727 2014-01-14 Doug Evans <dje@google.com>
8729 * symfile.h (expand_symtabs_matching): Renamed from
8730 expand_partial_symbol_names. Update prototype.
8731 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8732 * symfile.c (expand_symtabs_matching): Renamed from
8733 expand_partial_symbol_names. New args file_matcher, kind.
8734 Rename arg fun to symbol_matcher.
8735 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8736 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8737 ada_expand_partial_symbol_name.
8738 (ada_make_symbol_completion_list): Update to call
8739 expand_symtabs_matching.
8740 (ada_add_global_exceptions): Call expand_symtabs_matching.
8741 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8742 call map_symbol_filenames.
8743 * symtab.c (sources_info): Update to call map_symbol_filenames.
8744 (search_symbols): Call expand_symtabs_matching.
8745 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8746 (default_make_symbol_completion_list_break_on): Update to call
8747 expand_symtabs_matching.
8748 (make_source_files_completion_list): Update to call
8749 map_symbol_filenames.
8751 2014-01-14 Doug Evans <dje@google.com>
8753 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8754 (expand_symtabs_symbol_matcher_ftype): New typedef.
8755 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8756 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8757 * symfile.c (expand_partial_symbol_names): Update to use
8758 expand_symtabs_symbol_matcher_ftype.
8759 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8760 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8761 Arg name_matcher renamed to symbol_matcher.
8762 * psymtab.c (recursively_search_psymtabs): Update to use
8763 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8765 (expand_symtabs_matching_via_partial): Update to use
8766 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8767 Arg name_matcher renamed to symbol_matcher.
8769 2014-01-14 Doug Evans <dje@google.com>
8771 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8772 (map_partial_symbol_filenames): Ditto.
8773 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8774 (map_partial_symbol_filenames): Ditto.
8775 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8776 (map_partial_symbol_filenames): Ditto.
8777 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8778 (map_partial_symbol_filenames): Ditto.
8779 * symtab.c: Delete #include "psymtab.h".
8781 2014-01-14 Pedro Alves <palves@redhat.com>
8782 Tom Tromey <tromey@redhat.com>
8784 * infrun.c (use_displaced_stepping): Use find_record_target
8785 instead of RECORD_IS_USED.
8786 (adjust_pc_after_break): Use record_full_is_used instead of
8788 * record-btrace.c (record_btrace_open): Call record_preopen
8789 instead of checking RECORD_IS_USED.
8790 * record-full.c (record_full_shortname)
8791 (record_full_core_shortname): New globals.
8792 (record_full_is_used): New function.
8793 (find_full_open): Call record_preopen instead of checking
8795 (init_record_full_ops): Set the target's shortname to
8796 record_full_shortname.
8797 (init_record_full_core_ops): Set the target's shortname to
8798 record_full_core_shortname.
8799 * record-full.h (record_full_is_used): Declare.
8800 * record.c (find_record_target): Make extern.
8801 (record_preopen): New function.
8802 * record.h (RECORD_IS_USED): Delete macro.
8803 (find_record_target, record_preopen): Declare functions.
8805 2014-01-14 Yao Qi <yao@codesourcery.com>
8807 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8808 'len''s type to ULONGEST.
8809 (core_xfer_shared_libraries_aix): Likewise.
8810 * gdbarch.c, gdbarch.h: Regenerated.
8811 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8812 Change type of 'len' to ULONGEST.
8813 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8814 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8816 2014-01-14 Yao Qi <yao@codesourcery.com>
8818 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8819 type of 'len' to ULONGEST.
8820 (linux_xfer_osdata_processgroups): Likewise.
8821 (linux_xfer_osdata_threads): Likewise.
8822 (linux_xfer_osdata_fds): Likewise.
8823 (linux_xfer_osdata_isockets): Likewise.
8824 (linux_xfer_osdata_shm): Likewise.
8825 (linux_xfer_osdata_sem): Likewise.
8826 (linux_xfer_osdata_msg): Likewise.
8827 (linux_common_xfer_osdata): Likewise.
8828 (struct osdata_type) <getter>: Likewise.
8829 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8832 2014-01-14 Yao Qi <yao@codesourcery.com>
8834 * target.h (target_xfer_partial_ftype): Update.
8835 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8837 * aix-thread.c (aix_thread_xfer_partial): Change type of
8838 argument 'len' to ULONGEST.
8839 * auxv.c (procfs_xfer_auxv): Likewise.
8840 (ld_so_xfer_auxv): Likewise.
8841 (memory_xfer_auxv): Likewise.
8842 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8843 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8844 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8845 * corelow.c (core_xfer_partial): Likewise.
8846 * ctf.c (ctf_xfer_partial): Likewise.
8847 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8849 (darwin_read_dyld_info): Likewise.
8850 (darwin_xfer_partial): Likewise.
8851 * exec.c (section_table_xfer_memory_partial): Likewise.
8852 (exec_xfer_partial): Likewise.
8853 * exec.h (section_table_xfer_memory_partial): Update
8855 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8856 instead of plongest.
8857 (gnu_xfer_partial): Likewise.
8858 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8859 (ia64_hpux_xfer_solib_got): Likewise.
8860 (ia64_hpux_xfer_partial): Likewise.
8861 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8862 * inf-ptrace.c (inf_ptrace_xfer_partial):
8863 * inf-ttrace.c (inf_ttrace_xfer_partial):
8864 * linux-nat.c (linux_xfer_siginfo): Likewise.
8865 (linux_nat_xfer_partial): Likewise.
8866 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8867 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8868 * monitor.c (monitor_xfer_memory): Likewise.
8869 (monitor_xfer_partial): Likewise.
8870 * procfs.c (procfs_xfer_partial): Likewise.
8871 * record-full.c (record_full_xfer_partial): Likewise.
8872 (record_full_core_xfer_partial): Likewise.
8873 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8874 instead of plongest.
8875 (gdbsim_xfer_partial): Likewise.
8876 * remote.c (remote_xfer_partial): Likewise.
8877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8878 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8880 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8881 (rs6000_xfer_shared_libraries): Likewise.
8882 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8883 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8884 (sparc_xfer_partial): Likewise.
8885 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8886 (spu_xfer_partial): Likewise.
8887 * spu-multiarch.c (spu_xfer_partial): Likewise.
8888 * target.c (target_read_live_memory): Likewise.
8889 (memory_xfer_live_readonly_partial): Likewise.
8890 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8891 (target_xfer_partial, default_xfer_partial): Likewise.
8892 (current_xfer_partial): Likewise.
8893 * tracepoint.c (tfile_xfer_partial): Likewise.
8894 * windows-nat.c (windows_xfer_memory): Likewise. Call
8895 pulongest instead of plongest.
8896 (windows_xfer_partial): Likewise.
8897 (windows_xfer_shared_libraries): Likewise.
8899 2014-01-14 Yao Qi <yao@codesourcery.com>
8901 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8902 target_xfer_partial_ftype.
8904 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8908 * valops.c (value_struct_elt_bitpos): New function
8909 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8910 object to 'None' if the field name is an empty string ("").
8911 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8912 attribute to look for a field when 'name' is 'None'.
8913 (get_field_type): New function
8915 2014-01-13 Doug Evans <dje@google.com>
8918 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8919 (try_open_dwop_file): Ditto.
8920 * gdb_bfd.c: #include "vec.h".
8921 (bfdp): New typedef.
8922 (struct gdb_bfd_data): New member included_bfds.
8923 (gdb_bfd_unref): Unref all included bfds.
8924 (gdb_bfd_record_inclusion): New function.
8925 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8927 2014-01-13 Tom Tromey <tromey@redhat.com>
8929 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8931 2014-01-13 Tom Tromey <tromey@redhat.com>
8933 * defs.h (use_windows): Remove.
8934 * gdb.c (main): Update.
8935 * main.c (captured_main, gdb_main): Update.
8936 * main.h (struct captured_main_args) <use_windows>: Remove.
8937 * top.c (use_windows): Remove.
8939 2014-01-13 Tom Tromey <tromey@redhat.com>
8941 * defs.h (deprecated_flush_hook): Remove.
8943 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8946 * linux-thread-db.c (try_thread_db_load): Add parameter
8947 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8948 (try_thread_db_load_from_pdir_1): Move it there from here.
8949 (try_thread_db_load_from_sdir): Update caller.
8950 (try_thread_db_load_from_dir): Move it there from here.
8952 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8954 * regformats/regdat.sh: Always rewrite the register file.
8956 2014-01-13 Pedro Alves <palves@redhat.com>
8958 * Makefile.in (CHECK_HEADERS): New variable.
8959 (check-headers:): New rule.
8961 2014-01-13 Tom Tromey <tromey@redhat.com>
8963 * cli/cli-setshow.c (do_set_command): Update.
8964 * defs.h (deprecated_set_hook): Remove.
8965 * top.c (deprecated_set_hook): Remove.
8967 2014-01-13 Pedro Alves <palves@redhat.com>
8969 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8970 the tracepoint if the PC is a pseudo-register.
8972 2014-01-13 Tom Tromey <tromey@redhat.com>
8974 * defs.h (XCALLOC): Remove.
8975 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8976 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8977 * dwarf2loc.c (allocate_piece_closure): Likewise.
8978 * elfread.c (elf_symfile_segments): Likewise.
8979 (elf_symfile_segments): Likewise.
8980 * gdbtypes.c (copy_type_recursive): Likewise.
8981 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8982 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8983 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8985 * mt-tdep.c (mt_gdbarch_init): Likewise.
8986 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8988 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8989 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8990 * registry.c (registry_alloc_data): Likewise.
8991 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8992 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8993 * serial.c (serial_fdopen_ops): Likewise.
8994 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8996 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8997 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9000 2014-01-13 Tom Tromey <tromey@redhat.com>
9002 * defs.h (XMALLOC): Remove.
9003 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9004 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9005 * cli-out.c (struct ui_out *): Likewise.
9006 * cli/cli-dump.c (add_dump_command): Likewise.
9007 (add_dump_command): Likewise.
9008 * complaints.c (get_complaints): Likewise.
9009 (find_complaint): Likewise.
9010 * dwarf2-frame.c (execute_cfa_program): Likewise.
9011 * dwarf2read.c (abbrev_table_read_table): Likewise.
9012 * gdbarch.sh: Likewise.
9013 * gdbarch.c: Rebuild.
9014 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9015 * interps.c (interp_new): Likewise.
9016 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9017 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9018 * mi/mi-console.c (mi_console_file_new): Likewise.
9019 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9020 * mi/mi-out.c (mi_out_new): Likewise.
9021 * mi/mi-parse.c (mi_parse): Likewise.
9022 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9023 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9024 * observer.c (xalloc_observer_list_node): Likewise.
9025 * regcache.c (regcache_xmalloc_1): Likewise.
9026 * reggroups.c (reggroup_new): Likewise.
9027 (_initialize_reggroup): Likewise.
9028 * registry.c (register_data_with_cleanup): Likewise.
9029 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9030 * ser-base.c (serial_ttystate): Likewise.
9031 * ser-mingw.c (make_pipe_state): Likewise.
9032 * ser-pipe.c (pipe_open): Likewise.
9033 * serial.c (serial_open): Likewise.
9034 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9035 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9036 (tui_alloc_win_info): Likewise.
9037 (tui_add_content_elements): Likewise.
9038 * tui/tui-file.c (tui_file_new): Likewise.
9039 * tui/tui-out.c (tui_out_new): Likewise.
9040 * ui-file.c (mem_file_new): Likewise.
9041 * ui-out.c (push_level): Likewise.
9042 (make_cleanup_ui_out_end): Likewise.
9043 (append_header_to_list): Likewise.
9044 (ui_out_new): Likewise.
9045 * user-regs.c (user_reg_add_builtin): Likewise.
9047 2014-01-13 Tom Tromey <tromey@redhat.com>
9049 * defs.h (XZALLOC): Remove.
9050 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9051 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9052 (get_ada_tasks_inferior_data): Likewise.
9053 * auto-load.c (get_auto_load_pspace_data): Likewise.
9054 * auxv.c (get_auxv_inferior_data): Likewise.
9055 * bfd-target.c (target_bfd_reopen): Likewise.
9056 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9057 (deprecated_insert_raw_breakpoint): Likewise.
9058 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9059 * corelow.c (core_open): Likewise.
9060 * darwin-nat.c (darwin_check_new_threads): Likewise.
9061 (darwin_attach_pid): Likewise.
9062 * dummy-frame.c (dummy_frame_push): Likewise.
9063 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9064 * dwarf2loc.c (allocate_piece_closure): Likewise.
9065 * elfread.c (elf_symfile_segments): Likewise.
9066 * eval.c (ptrmath_type_p): Likewise.
9067 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9068 * gdbtypes.c (alloc_type_arch): Likewise.
9069 (alloc_type_instance): Likewise.
9070 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9071 * inf-child.c (inf_child_can_use_agent): Likewise.
9072 * inflow.c (get_inflow_inferior_data): Likewise.
9073 * infrun.c (save_infcall_suspend_state): Likewise.
9074 * jit.c (jit_reader_load): Likewise.
9075 (get_jit_objfile_data): Likewise.
9076 (get_jit_program_space_data): Likewise.
9077 (jit_object_open_impl): Likewise.
9078 (jit_symtab_open_impl): Likewise.
9079 (jit_block_open_impl): Likewise.
9080 (jit_frame_sniffer): Likewise.
9081 * linux-fork.c (add_fork): Likewise.
9082 * maint.c (make_command_stats_cleanup): Likewise.
9083 * objfiles.c (get_objfile_pspace_data): Likewise.
9084 * opencl-lang.c (struct lval_closure): Likewise.
9085 * osdata.c (osdata_start_osdata): Likewise.
9086 * progspace.c (new_address_space): Likewise.
9087 (add_program_space): Likewise.
9088 * remote-sim.c (get_sim_inferior_data): Likewise.
9089 * sh-tdep.c (sh_gdbarch_init): Likewise.
9090 * skip.c (Ignore): Likewise.
9091 (skip_delete_command): Likewise.
9092 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9093 (library_list_start_library): Likewise.
9094 (solib_aix_current_sos): Likewise.
9095 * solib-darwin.c (get_darwin_info): Likewise.
9096 (darwin_current_sos): Likewise.
9097 * solib-dsbt.c (get_dsbt_info): Likewise.
9098 * solib-ia64-hpux.c (new_so_list): Likewise.
9099 (ia64_hpux_get_solib_linkage_addr): Likewise.
9100 * solib-spu.c (append_ocl_sos): Likewise.
9101 (spu_current_sos): Likewise.
9102 * solib-svr4.c (get_svr4_info): Likewise.
9103 (svr4_keep_data_in_core): Likewise.
9104 (library_list_start_library): Likewise.
9105 (svr4_default_sos): Likewise.
9106 (svr4_read_so_list): Likewise.
9107 * solib-target.c (library_list_start_library): Likewise.
9108 (solib_target_current_sos): Likewise.
9109 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9110 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9111 * symfile.c (default_symfile_segments): Likewise.
9112 * target-descriptions.c (tdesc_data_init): Likewise.
9113 (tdesc_create_reg): Likewise.
9114 (struct tdesc_type *): Likewise.
9115 (tdesc_create_vector): Likewise.
9116 (tdesc_set_struct_size): Likewise.
9117 (struct tdesc_type *): Likewise.
9118 (tdesc_free_feature): Likewise.
9119 (tdesc_create_feature): Likewise.
9120 * windows-nat.c (windows_add_thread): Likewise.
9121 (windows_make_so): Likewise.
9122 * xml-support.c (gdb_xml_body_text): Likewise.
9123 (gdb_xml_create_parser_and_cleanup): Likewise.
9124 (xml_process_xincludes): Likewise.
9125 * xml-syscall.c (allocate_syscalls_info): Likewise.
9126 (syscall_create_syscall_desc): Likewise.
9128 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9130 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9131 function, with code from i386_stap_parse_special_token.
9132 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9133 (i386_stap_parse_special_token): Move code to the two functions
9136 2014-01-09 Pedro Alves <palves@redhat.com>
9137 Hui Zhu <hui@codesourcery.com>
9140 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9141 bp_err_string. Don't mark the location shlib_disabled if the
9142 error thrown wasn't a generic or memory error. Catch errors
9143 thrown while inserting breakpoints in overlayed code. Output
9144 error message of software breakpoints.
9145 * remote.c (remote_insert_breakpoint): If this breakpoint has
9146 target-side commands but this stub doesn't support Z0 packets,
9147 throw NOT_SUPPORTED_ERROR error.
9148 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9149 * target.h (target_insert_breakpoint): Extend comment.
9150 (target_insert_hw_breakpoint): Add comment.
9152 2014-01-08 Pedro Alves <palves@redhat.com>
9154 * remote.c (remote_add_thread): Add threads silently if starting
9156 (remote_notice_new_inferior): If in all-stop, and starting up,
9157 don't call notice_new_inferior.
9158 (get_current_thread): New function, factored out from ...
9159 (add_current_inferior_and_thread): ... this. Adjust.
9160 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9161 found any thread, then select the remote's current thread as GDB's
9164 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9166 * NEWS: Create a new section for the next release branch.
9167 Rename the section of the current branch, now that it has
9170 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9172 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9173 * version.in: Bump version to 7.7.50.DATE-cvs.
9175 2014-01-08 Yao Qi <yao@codesourcery.com>
9177 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9178 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9179 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9181 2014-01-08 Yao Qi <yao@codesourcery.com>
9183 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9184 return value of bfd_get_filename to symbol_file_add_from_bfd.
9186 2014-01-08 Pierre Muller <muller@sourceware.org>
9189 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9190 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9191 to prim_record_mininal_symbol_and_info.
9192 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9193 in call to prim_record_minimal_symbol_and_info.
9194 (read_pe_exported_syms): Set index field of section_data.
9196 2014-01-07 Andrew Pinski <apinski@cavium.com>
9198 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9199 * features/aarch64.c: Regenerate.
9201 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9203 * target.c (return_null): Define.
9204 (update_current_target): Use it instead of return_zero for
9205 functions that return a pointer.
9207 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9209 * source.c (add_path): Fix check for duplicated paths in the previously
9212 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9214 * ada-lang.c: Remove duplicated include statements.
9215 * alphabsd-nat.c: Ditto.
9216 * amd64-darwin-tdep.c: Ditto.
9217 * amd64fbsd-nat.c: Ditto.
9218 * auto-load.c: Ditto.
9220 * breakpoint.c: Ditto.
9222 * fork-child.c: Ditto.
9223 * gdb_usleep.c: Ditto.
9224 * i386-darwin-tdep.c: Ditto.
9225 * i386fbsd-nat.c: Ditto.
9227 * inferior.c: Ditto.
9229 * linux-nat.c: Ditto.
9230 * linux-tdep.c: Ditto.
9231 * m68kbsd-nat.c: Ditto.
9232 * m68klinux-nat.c: Ditto.
9233 * microblaze-tdep.c: Ditto.
9234 * mips-linux-tdep.c: Ditto.
9235 * mn10300-tdep.c: Ditto.
9236 * nto-tdep.c: Ditto.
9237 * opencl-lang.c: Ditto.
9239 * printcmd.c: Ditto.
9240 * regcache.c: Ditto.
9241 * remote-m32r-sdi.c: Ditto.
9245 * tilegx-linux-nat.c: Ditto.
9246 * tilegx-tdep.c: Ditto.
9247 * tracepoint.c: Ditto.
9249 * vaxbsd-nat.c: Ditto.
9250 * windows-nat.c: Ditto.
9251 * xtensa-tdep.c: Ditto.
9253 2014-01-07 Yao Qi <yao@codesourcery.com>
9255 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9257 2014-01-07 Yao Qi <yao@codesourcery.com>
9258 Joel Brobecker <brobecker@adacore.com>
9260 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9261 (pdc_write_regs): Likewise.
9262 (fetch_regs_kernel_thread): Likewise.
9263 (store_regs_kernel_thread): Likewise.
9265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9267 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9268 tagged type objects to their actual type.
9270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9272 * ada-valprint.c (print_field_values): Add "language" parameter.
9273 Update calls to print_field_values and print_variant_part.
9274 Pass new parameter "language" in call to val_print instead
9275 of "current_language". Replace call to ada_val_print by call
9277 (print_variant_part): Add "language" parameter.
9278 (ada_val_print_struct_union): Update call to print_field_values.
9280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9282 * ada-valprint.c (ui_memcpy): Delete.
9283 (ada_print_floating): Update documentation. Add empty line
9284 between between function documentation and implementation.
9285 Delete variable "buffer". Use ui_file_xstrdup in place of
9286 ui_file_put. Minor adjustments following this change.
9288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9290 * ada-valprint.c (ada_val_print_string): New function,
9291 extracted from ada_val_print_array.
9292 (ada_val_print_array): Replace extracted code by call
9293 to ada_val_print_string followed by a return. Move
9294 "else" branch to the function's top block.
9296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9298 * ada-valprint.c (ada_val_print_array): Move implementation
9299 down. Rename parameter "offset" and "val" into "offset_aligned"
9300 and "original_value" respectively. Add parameter "offset".
9302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9304 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9305 re-organizing the code. Change the "???" message printed
9306 when target type is a TYPE_CODE_UNDEF into
9307 "<ref to undefined type>".
9309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9311 * ada-valprint.c (print_record): Delete, implementation inlined...
9312 (ada_val_print_struct_union): ... here. Remove call to
9313 ada_check_typedef in inlined implementation.
9315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9317 * ada-valprint.c (ada_val_print_gnat_array): New function,
9318 extracted from ada_val_print_1;
9319 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9320 (ada_val_print_flt, ada_val_print_struct_union)
9321 (ada_val_print_ref): Likewise.
9322 (ada_val_print_1): Delete variables i and elttype.
9323 Replace extracted-out code by call to corresponding
9326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9328 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9332 * ada-valprint.c (ada_val_print_1): Replace calls to
9333 ada_val_print_1 by calls to val_print.
9335 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9337 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9338 Update calls to self accordingly. Replace calls to c_val_print
9339 by calls to val_print.
9341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9343 * ada-valprint.c (print_record): Delete declaration.
9344 (adjust_type_signedness, ada_val_print_1): Likewise.
9345 (ada_val_print): Move function implementation down.
9346 (print_variant_part, print_field_values, print_record):
9347 Move function implementation up.
9349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9351 * python/py-type.c (typy_get_name): New function.
9352 (type_object_getset): Add entry for attribute "name".
9353 * NEWS: Add entry mentioning this new attribute.
9355 2014-01-07 Yao Qi <yao@codesourcery.com>
9357 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9360 2014-01-07 Yao Qi <yao@codesourcery.com>
9362 * gnu-nat.c (info_port_rights): Add qualifier const to
9365 2014-01-07 Yao Qi <yao@codesourcery.com>
9367 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9369 2014-01-07 Yao Qi <yao@codesourcery.com>
9371 * gnu-nat.c (make_inf) Update declaration.
9372 (make_inf): Make it static.
9373 (inf_set_traced): Likewise.
9374 (inf_port_to_thread, inf_task_died_status): Likewise.
9376 2014-01-07 Yao Qi <yao@codesourcery.com>
9378 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9380 2014-01-07 Yao Qi <yao@codesourcery.com>
9382 * gnu-nat.c (_initialize_gnu_nat): Declare.
9384 2014-01-07 Yao Qi <yao@codesourcery.com>
9386 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9388 (struct gdbarch_info) <byte_order>: Change type to
9390 <byte_order_for_code>: Likewise.
9391 * gdbarch.c, gdbarch.h: Regenerated.
9393 2014-01-06 Sasha Smundak <asmundak@google.com>
9395 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9397 2014-01-06 Tom Tromey <tromey@redhat.com>
9399 * doublest.c (convert_doublest_to_floatformat): Use const, not
9401 * somread.c (som_symtab_read): Likewise.
9403 2014-01-07 Hui Zhu <hui@codesourcery.com>
9405 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9406 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9407 (gdb_bfd_fopen): Ditto.
9408 (gdb_bfd_openr): Ditto.
9409 (gdb_bfd_openw): Ditto.
9410 (gdb_bfd_openr_iovec): Ditto.
9411 (gdb_bfd_fdopenr): Ditto.
9412 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9413 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9415 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9417 * symfile-mem.c (symbol_file_add_from_memory): Removed
9418 gdb_bfd_stash_filename.
9420 2014-01-03 Doug Evans <dje@google.com>
9422 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9425 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9427 Update year range in copyright notice of all files.
9429 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9431 * top.c (print_gdb_version): Set copyright year to 2014.
9433 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9435 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9437 For older changes see ChangeLog-2013.
9443 version-control: never