1 2014-06-18 Tom Tromey <tromey@redhat.com>
3 * f-valprint.c (info_common_command_for_block): Update.
4 * symtab.h (struct general_symbol_info) <common_block>: Now
7 2014-06-18 Tom Tromey <tromey@redhat.com>
9 * symtab.h (struct symtab) <blockvector>: Now const.
10 * ada-lang.c (ada_add_global_exceptions): Update.
11 * buildsym.c (augment_type_symtab): Update.
12 * dwarf2read.c (dw2_lookup_symbol): Update.
13 * jit.c (finalize_symtab): Update.
14 * jv-lang.c (add_class_symtab_symbol): Update.
15 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
17 * objfiles.c (objfile_relocate1): Update.
18 * psymtab.c (lookup_symbol_aux_psymtabs)
19 (maintenance_check_psymtabs): Update.
20 * python/py-symtab.c (stpy_global_block, stpy_static_block):
22 * spu-tdep.c (spu_catch_start): Update.
23 * symmisc.c (dump_symtab_1): Update.
24 * symtab.c (lookup_global_symbol_from_objfile)
25 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
26 (basic_lookup_transparent_type_quick)
27 (basic_lookup_transparent_type, find_pc_sect_symtab)
28 (find_pc_sect_line, search_symbols): Update.
29 * block.c (find_block_in_blockvector): Make "bl" const.
30 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
32 (blockvector_contains_pc): Make "bv" const.
33 (block_for_pc_sect): Update.
34 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
35 (blockvector_contains_pc): Update.
36 * breakpoint.c (resolve_sal_pc): Update.
37 * inline-frame.c (block_starting_point_at): Update.
39 2014-06-18 Tom Tromey <tromey@redhat.com>
41 * completer.c (complete_line): Make "line_buffer" const.
42 * completer.h (complete_line): Update.
44 2014-06-18 Tom Tromey <tromey@redhat.com>
46 * symtab.c (add_macro_name): Remove unneeded cast.
48 2014-06-18 Tom Tromey <tromey@redhat.com>
50 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
51 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
53 2014-06-18 Tom Tromey <tromey@redhat.com>
55 * probe.c (info_probes_for_ops): Make "arg" const.
56 * probe.h (info_probes_for_ops): Update.
58 2014-06-18 Tom Tromey <tromey@redhat.com>
60 * varobj.c (varobj_create): Update.
61 * valops.c (value_of_this): Update.
62 * tracepoint.c (add_local_symbols, scope_info): Update.
63 * symtab.h (struct general_symbol_info) <block>: Now const.
64 * symtab.c (skip_prologue_sal)
65 (default_make_symbol_completion_list_break_on)
66 (skip_prologue_using_sal): Update.
67 * stack.h (iterate_over_block_locals)
68 (iterate_over_block_local_vars): Update.
69 * stack.c (print_frame_args): Update.
70 (iterate_over_block_locals, iterate_over_block_local_vars): Make
72 (get_selected_block): Make return type const.
73 * python/py-frame.c (frapy_block): Update.
74 * python/py-block.c (gdbpy_block_for_pc): Update.
75 * p-exp.y (%union) <bval>: Now const.
76 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
77 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
78 * m2-exp.y (%union) <bval>: Now const.
79 * linespec.c (get_current_search_block): Make return type const.
80 (create_sals_line_offset, find_label_symbols): Update.
81 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
83 (block_starting_point_at): Make "block" const.
84 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
85 (check_exception_resume): Update.
86 * guile/scm-frame.c (gdbscm_frame_block): Update.
87 * guile/scm-block.c (gdbscm_lookup_block): Update.
88 * frame.h (get_frame_block): Update.
89 (get_selected_block): Make return type const.
90 * frame.c (frame_id_inner): Update.
91 * f-valprint.c (info_common_command_for_block)
92 (info_common_command): Update.
93 * dwarf2loc.c (dwarf2_find_location_expression)
94 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
95 (locexpr_describe_location_piece): Update.
96 * c-exp.y (%union) <bval>: Now const.
97 * breakpoint.c (resolve_sal_pc): Update.
98 * blockframe.c (get_frame_block):Make return type const.
99 (get_pc_function_start, get_frame_function, find_pc_sect_function)
100 (block_innermost_frame): Update.
101 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
102 (block_for_pc, block_for_pc_sect): Update.
103 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
105 (block_for_pc_sect, block_for_pc): Make return type const.
106 * ax-gdb.c (gen_expr): Update.
107 * alpha-mdebug-tdep.c (find_proc_desc): Update.
108 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
109 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
110 (ada_read_var_value): Update.
111 * ada-exp.y (struct name_info) <block>: Now const.
113 (block_lookup): Constify.
115 2014-06-18 Gary Benson <gbenson@redhat.com>
117 * nat/i386-dregs.h: New file.
118 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
119 * i386-nat.h (i386-dregs.h): New include.
120 (DR_FIRSTADDR): Now in i386-dregs.h.
121 (DR_LASTADDR): Likewise.
122 (DR_NADDR): Likewise.
123 (DR_STATUS): Likewise.
124 (DR_CONTROL): Likewise.
125 (i386_debug_reg_state): Likewise.
126 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
128 2014-06-18 Don Breazeal <donb@codesourcery.com>
130 * breakpoint.c (set_longjmp_breakpoint): Call
131 momentary_breakpoint_from_master with additional argument.
132 (set_longjmp_breakpoint_for_call_dummy): Call
133 momentary_breakpoint_from_master with additional argument.
134 (set_std_terminate_breakpoint): Call
135 momentary_breakpoint_from_master with additional argument.
136 (momentary_breakpoint_from_master): Add argument to function
137 definition and use it to initialize structure member flag.
138 (clone_momentary_breakpoint): Call
139 momentary_breakpoint_from_master with additional argument.
140 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
141 member flags set in momentary_breakpoint_from_master.
143 2014-06-18 Gary Benson <gbenson@redhat.com>
145 * i386-nat.c (i386_show_dr): Renamed to
146 i386_dr_show and made nonstatic. All uses updated.
147 (i386_length_and_rw_bits): Renamed to
148 i386_dr_length_and_rw_bits and made nonstatic.
150 (i386_insert_aligned_watchpoint): Renamed to
151 i386_dr_insert_aligned_watchpoint and made nonstatic.
153 (i386_remove_aligned_watchpoint): Renamed to
154 i386_dr_remove_aligned_watchpoint and made nonstatic.
156 (i386_update_inferior_debug_regs): Renamed to
157 i386_dr_update_inferior_debug_regs and made nonstatic.
160 2014-06-18 Gary Benson <gbenson@redhat.com>
162 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
163 (i386_dr_low_can_set_control): Likewise.
164 (i386_dr_low_set_addr): Likewise.
165 (i386_dr_low_set_control): Likewise.
166 (i386_dr_low_get_addr): Likewise.
167 (i386_dr_low_get_status): Likewise.
168 (i386_dr_low_get_control): Likewise.
169 (i386_insert_aligned_watchpoint): Use new macros.
170 (i386_update_inferior_debug_regs): Likewise.
171 (i386_stopped_data_address): Likewise.
173 2014-06-18 Gary Benson <gbenson@redhat.com>
175 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
176 New parameter. All uses updated.
178 2014-06-18 Gary Benson <gbenson@redhat.com>
180 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
183 2014-06-18 Gary Benson <gbenson@redhat.com>
185 * i386-nat.c (debug_printf): New macro.
186 (i386_get_debug_register_length): Likewise.
187 (TARGET_HAS_DR_LEN_8): Use above macro.
188 (i386_show_dr): Use debug_printf instead of puts_unfiltered
189 and printf_unfiltered. Use phex to format values.
191 2014-06-18 Gary Benson <gbenson@redhat.com>
193 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
196 2014-06-18 Gary Benson <gbenson@redhat.com>
198 * i386-nat.c: Comment changes.
200 2014-06-18 Gary Benson <gbenson@redhat.com>
202 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
204 2014-06-18 Gary Benson <gbenson@redhat.com>
206 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
207 (i386_insert_aligned_watchpoint): Likewise.
208 (i386_remove_aligned_watchpoint): Likewise.
209 (i386_handle_nonaligned_watchpoint): Likewise.
211 2014-06-18 Gary Benson <gbenson@redhat.com>
213 * i386-nat.c: Whitespace changes.
215 2014-06-17 Samuel Bronson <naesten@gmail.com>
217 * MAINTAINERS: Update Roland McGrath's email address.
218 Thanks to Sergio Durigan Junior for pointing out that he left
219 Red Hat a while ago, and giving me a current address.
221 2014-06-17 Tom Tromey <tromey@redhat.com>
223 * utils.h (savestring): Remove declaration.
225 2014-06-17 Tom Tromey <tromey@redhat.com>
227 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
229 2014-06-16 Keith Seitz <keiths@redhat.com>
232 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
233 to update the varobj if inferior_ptid is null_ptid.
235 2014-06-16 Tom Tromey <tromey@redhat.com>
237 * target.h (struct target_ops) <to_info_proc>: Make parameter
239 (target_info_proc): Update.
240 * target.c (target_info_proc): Make "args" const.
241 * procfs.c (procfs_info_proc): Update.
242 * linux-tdep.c (linux_info_proc): Update.
243 (linux_core_info_proc_mappings): Make "args" const.
244 (linux_core_info_proc): Update.
245 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
246 * gdbarch.c: Rebuild.
247 * gdbarch.h: Rebuild.
248 * corelow.c (core_info_proc): Update.
250 2014-06-16 Tom Tromey <tromey@redhat.com>
252 * target.h (struct target_ops) <to_disconnect>: Make parameter
254 (target_disconnect): Update.
255 * target.c (target_disconnect): Make "args" const.
256 * target-delegates.c: Rebuild.
257 * remote.c (remote_disconnect): Update.
258 * record.h (record_disconnect): Update.
259 * record.c (record_disconnect): Update.
260 * inf-child.c (inf_child_disconnect): Update.
262 2014-06-16 Tom Tromey <tromey@redhat.com>
264 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
265 * target.c (debug_to_rcmd, default_rcmd): Update.
266 * target-delegates.c: Rebuild.
267 * remote.c (remote_rcmd): Update.
268 * monitor.c (monitor_rcmd): Update.
270 2014-06-16 Pedro Alves <palves@redhat.com>
272 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
273 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
274 have OBJF_SHARED set.
275 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
276 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
277 instead of OBJF_USERLOADED.
278 * objfiles.h (OBJF_SHARED): Update comment.
279 (userloaded_objfile_contains_address_p): Rename to ...
280 (shared_objfile_contains_address_p): ... this, and update
282 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
284 (remove_symbol_file_command): Skip objfiles that don't have
287 2014-06-16 Tom Tromey <tromey@redhat.com>
289 * minsyms.h (prim_record_minimal_symbol)
290 (prim_record_minimal_symbol_and_info): Update comments.
292 2014-06-14 Eli Zaretskii <eliz@gnu.org>
294 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
295 or --without-guile, according to how GDB was built.
297 2014-06-13 Tom Tromey <tromey@redhat.com>
299 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
301 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
303 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
305 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
306 help_list.Pass all_commands, not -1, to help_list.
307 * cli/cli-dump.c (dump_command, append_command)
308 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
309 (binary_dump_command, binary_append_command): Pass all_commands,
310 not -1, to help_list.
311 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
313 * valprint.c (set_print, set_print_raw): Pass all_commands, not
315 * typeprint.c (set_print_type): Pass all_commands, not -1, to
317 * top.c (set_history): Pass all_commands, not -1, to help_list.
318 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
319 all_commands, not -1, to help_list.
320 * symfile.c (overlay_command): Pass all_commands, not -1, to
322 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
324 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
326 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
328 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
329 not -1, to help_list.
330 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
331 not -1, to help_list.
332 * maint.c (maintenance_command, maintenance_info_command)
333 (maintenance_print_command, maintenance_set_cmd): Pass
334 all_commands, not -1, to help_list.
335 * macrocmd.c (macro_command): Pass all_commands, not -1, to
337 * language.c (set_check): Pass all_commands, not -1, to help_list.
338 * infcmd.c (unset_command): Pass all_commands, not -1, to
340 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
342 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
344 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
346 * breakpoint.c (save_command): Pass all_commands, not -1, to
348 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
349 all_commands, not -1, to help_list.
351 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
353 * regcache.c (struct register_to_invalidate): New structure.
354 (do_register_invalidate, make_cleanup_regcache_invalidate): New
356 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
358 2014-06-12 Yao Qi <yao@codesourcery.com>
360 * varobj.c (varobj_get_num_children): Call
362 (varobj_list_children): Likewise.
363 (varobj_update): Likewise. Update comments.
365 2014-06-12 Yao Qi <yao@codesourcery.com>
367 * varobj.c (varobj_pretty_printed_p): Rename to ...
368 (varobj_is_dynamic_p): ... this. New function.
369 * varobj.h (varobj_pretty_printed_p): Remove declaration.
370 (varobj_is_dynamic_p): Declare.
371 * mi/mi-cmd-var.c (print_varobj): All callers updated.
372 (mi_print_value_p, varobj_update_one): Likewise.
374 2014-06-12 Pedro Alves <pedro@codesourcery.com>
375 Yao Qi <yao@codesourcery.com>
377 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
378 (varobj_get_iterator): Wrap up code for pretty-printer by
379 "#if HAVE_PYTHON" and "#endif".
380 (update_dynamic_varobj_children): Likewise.
382 2014-06-12 Pedro Alves <pedro@codesourcery.com>
383 Yao Qi <yao@codesourcery.com>
385 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
386 gdb_python_initialized is false. Move some code from varobj.c.
387 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
388 * varobj.c: Move "varobj-iter.h" inclusion earlier.
389 (struct varobj_item): Moved to varobj-iter.h".
390 (varobj_clear_saved_item): New function.
391 (update_dynamic_varobj_children): Move python-related code to
393 (free_variable): Call varobj_clear_saved_item and
396 2014-06-12 Pedro Alves <pedro@codesourcery.com>
397 Yao Qi <yao@codesourcery.com>
399 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
400 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
401 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
402 (py-varobj.o): New rule.
403 * python/py-varobj.c: New file.
404 * python/python-internal.h (py_varobj_get_iterator): Declare.
405 * varobj-iter.h: New file.
406 * varobj.c: Include "varobj-iter.h"
407 (struct varobj) <child_iter>: Change its type from "PyObject *"
408 to "struct varobj_iter *".
409 <saved_item>: Likewise.
410 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
411 [HAVE_PYTHON] (varobj_get_iterator): New function.
412 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
413 python-specific code to python/py-varobj.c.
414 (install_visualizer): Call varobj_iter_delete instead of
416 * varobj.h (varobj_ensure_python_env): Declare.
418 2014-06-12 Yao Qi <yao@codesourcery.com>
420 * varobj.c (struct varobj_item): New structure.
421 (create_child_with_value): Update declaration.
422 (varobj_add_child): Replace arguments 'name' and 'value' with
423 'item'. All callers updated.
424 (install_dynamic_child): Likewise.
425 (update_dynamic_varobj_children): Likewise.
426 (varobj_add_child): Likewise.
427 (create_child_with_value): Likewise.
429 2014-06-11 Joel Brobecker <brobecker@adacore.com>
431 * NEWS: Create a new section for the next release branch.
432 Rename the section of the current branch, now that it has
435 2014-06-11 Joel Brobecker <brobecker@adacore.com>
437 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
438 * version.in: Bump version to 7.8.50.DATE-cvs.
440 2014-06-11 Pedro Alves <palves@redhat.com>
443 * ser-mingw.c (net_windows_socket_check_pending): New function.
444 (net_windows_select_thread): Ignore spurious wakeups. Use
445 net_windows_socket_check_pending.
446 (net_windows_wait_handle): Check for pending events with
447 ioctlsocket, through net_windows_socket_check_pending, instead of
448 checking the socket's event.
450 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
452 * python/python-internal.h (gdb_PyObject_GetAttrString)
453 (gdb_PyObject_HasAttrString): New inline function definitions.
454 * py-value.c (get_field_flag): Remove the now unnecessary cast to
455 char * of the second argument to PyObject_GetAttrString.
457 2014-06-10 Joel Brobecker <brobecker@adacore.com>
459 * serial.c (serial_write): Fix index of character to be printed
460 in call to serial_logchar when serial debug traces are enabled.
462 2014-06-10 Joel Brobecker <brobecker@adacore.com>
464 * gdbtypes (resolve_dynamic_range): Add function description.
466 2014-06-09 Pedro Alves <palves@redhat.com>
468 * linux-nat.c (linux_child_follow_fork): Initialize status with
469 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
470 inner block. Only pass the signal to PTRACE_DETACH if in pass
473 2014-06-09 Gary Benson <gbenson@redhat.com>
475 * common/signals.c (gdb_signal_from_host): Reorder to separate
476 the always-available ANSI-standard signals from the signals that
478 (do_gdb_signal_to_host): Likewise.
479 * proc-events.c (signal_table): Likewise.
481 2014-06-08 Hui Zhu <hui@codesourcery.com>
483 * common/linux-ptrace.c (linux_disable_event_reporting): New
485 * common/linux-ptrace.h (linux_disable_event_reporting): New
487 * linux-nat.c (linux_child_follow_fork): Do a single step before
490 2014-06-07 Keith Seitz <keiths@redhat.com>
494 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
495 from symbol_matches_domain in symtab.c. All local callers
496 of symbol_matches_domain updated.
497 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
498 search STRUCT_DOMAIN.
499 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
500 independently. standard_lookup will do that automatically.
501 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
502 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
503 (cp_lookup_symbol_in_namespace): Likewise.
504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
505 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
506 may return a STRUCT_DOMAIN match.
507 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
508 * cp-support.c: Include language.h.
509 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
511 * psymtab.c (match_partial_symbol): Compare the requested
512 domain with the symbol's domain directly.
513 (lookup_partial_symbol): Likewise.
514 * symtab.c (lookup_symbol_in_language): Explain when/why
515 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
516 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
517 appropriate languages.
518 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
519 and moved to ada-lang.c
520 (lookup_block_symbol): Explain that this function only returns
521 symbol matching the requested DOMAIN.
522 Compare the requested domain with the symbol's domain directly.
523 (iterate_over_symbols): Compare the requested domain with the
524 symbol's domain directly.
525 * symtab.h (symbol_matches_domain): Remove.
527 2014-06-06 Doug Evans <xdje42@gmail.com>
529 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
530 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
531 (gdbscm_guile_version_is_at_least): Declare.
532 (gdbscm_scm_string_to_int): Declare.
533 * guile/guile.c (gdbscm_guile_major_version): New global.
534 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
535 (guile_datadir): New static global.
536 (gdbscm_guile_data_directory): New function.
537 (initialize_scheme_side): Update.
538 (misc_guile_functions): Add guile-data-directory.
539 (initialize_gdb_module): Fetch guile version number.
540 * guile/lib/gdb.scm: Remove call to add-to-load-path.
541 * guile/lib/gdb/init.scm (%initialize!): Ditto.
542 * guile/lib/gdb/boot.scm: Use guile-data-directory.
543 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
545 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
546 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
547 * guile/scm-value.c (gdbscm_value_to_string): Only call
548 scm_port_conversion_strategy if Guile version >= 2.0.6.
550 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
552 * main.c (print_gdb_help): Add -q and --silent.
554 2014-06-06 Gary Benson <gbenson@redhat.com>
556 * common/signals.c: Remove preprocessor conditionals for
557 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
559 * proc-events.c: Likewise.
561 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
563 * symfile.c (symfile_free_objfile): Remove restriction to
565 * symfile-mem.c (symbol_file_add_from_memory): Call
566 add_target_sections_of_objfile.
568 2014-06-05 Ludovic Courtès <ludo@gnu.org>
570 * guile/scm-value.c (gdbscm_history_append_x): Use
571 'vlscm_get_value_smob_arg_unsafe' instead of
572 'vlscm_scm_to_value'.
574 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
577 * utils.c (printchar): Don't escape at all if quoter is NUL.
578 Update function documentation to clarify effect of parameter
580 * remote.c (escape_buffer): Pass '\\' as the quoter to
582 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
584 (mi_solib_unloaded): Same.
586 2014-06-05 Joel Brobecker <brobecker@adacore.com>
588 * development.sh: Delete.
589 * Makefile.in (config.status): Adjust dependency on development.sh.
590 * configure.ac: Adjust development.sh source call.
591 * configure: Regenerate.
593 2014-06-04 Doug Evans <xdje42@gmail.com>
595 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
596 is_scheme_bkpt, spec.
597 (bpscm_make_breakpoint_smob): Initialize new members.
598 (gdbscm_create_breakpoint_x): Split into two ...
599 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
600 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
601 (scheme_function breakpoint_functions): Update.
602 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
603 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
604 register-breakpoint!.
606 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
609 * mem-break.c (z_type_supported): Return zero if
610 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
612 2014-06-04 Tom Tromey <tromey@redhat.com>
614 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
615 value_from_contents_and_address_unresolved.
616 (ada_template_to_fixed_record_type_1): Likewise.
617 (ada_which_variant_applies): Likewise.
618 * value.h (value_from_contents_and_address_unresolved): Declare.
619 * value.c (value_from_contents_and_address_unresolved): New
621 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
622 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
623 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
625 2014-06-04 Tom Tromey <tromey@redhat.com>
627 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
629 2014-06-04 Tom Tromey <tromey@redhat.com>
631 * procfs.c (procfs_attach): Make "args" const.
632 * windows-nat.c (windows_attach): Make "args" const.
633 * nto-procfs.c (procfs_attach): Make "args" const.
634 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
635 * go32-nat.c (go32_attach): Make "args" const.
636 * gnu-nat.c (gnu_attach): Make "args" const.
637 * darwin-nat.c (darwin_attach): Make "args" const.
638 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
639 * linux-nat.c (linux_nat_attach): Make "args" const.
640 * remote.c (extended_remote_attach_1, extended_remote_attach):
642 * target.h (struct target_ops) <to_attach>: Make "args" const.
643 (find_default_attach): Likewise.
644 * utils.c (parse_pid_to_attach): Make "args" const.
645 * utils.h (parse_pid_to_attach): Update.
647 2014-06-04 Tom Tromey <tromey@redhat.com>
649 * target-delegates.c: Rebuild.
650 * target.c (default_thread_address_space): New function.
651 (target_thread_address_space): Simplify.
652 * target.h (struct target_ops) <to_thread_address_space>: Add
655 2014-06-04 Doug Evans <xdje42@gmail.com>
657 * guile/scm-type.c (type_smob): Remove duplicate typedef.
659 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
661 * record-btrace.c: Include event-loop.h and inf-loop.h.
662 (record_btrace_resume_exec_dir)
663 (record_btrace_async_inferior_event_handler)
664 (record_btrace_handle_async_inferior_event): New.
665 (record_btrace_open): Create async event handler.
666 (record_btrace_close): Delete async event handler.
667 (record_btrace_resume): Set record_btrace_resume_exec_dir,
668 Mark async event handler.
669 (record_btrace_execution_direction): New.
670 (init_record_btrace_ops): Initialize to_execution_direction.
672 2014-06-03 Doug Evans <xdje42@gmail.com>
674 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
675 (gdbscm_make_parameter): Ditto.
677 2014-06-03 Doug Evans <dje@google.com>
679 * exec.c (exec_close_1): Call clear_section_table instead of
680 resize_section_table.
681 (clear_section_table): New function.
682 (resize_section_table): Make static. Rename arg num_added to
684 * exec.h (clear_section_table): Declare.
685 (resize_section_table): Delete.
686 * progspace.c (release_program_space): Call clear_section_table
687 instead of resize_section_table.
689 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
691 * NEWS (Python Scripting): Add entry about the new xmethods
694 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
696 * python/py-xmethods.c: New file.
697 * python/py-objfile.c (objfile_object): New field 'xmethods'.
698 (objfpy_dealloc): XDECREF on the new xmethods field.
699 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
701 (objfpy_get_xmethods): New function.
702 (objfile_getset): New entry 'xmethods'.
703 * python/py-progspace.c (pspace_object): New field 'xmethods'.
704 (pspy_dealloc): XDECREF on the new xmethods field.
705 (pspy_new, pspace_to_pspace_object): Initialize xmethods
707 (pspy_get_xmethods): New function.
708 (pspace_getset): New entry 'xmethods'.
709 * python/python-internal.h: Add declarations for new functions.
710 * python/python.c (_initialize_python): Invoke
711 gdbpy_initialize_xmethods.
712 * python/lib/gdb/__init__.py (xmethods): New
714 * python/lib/gdb/xmethod.py: New file.
715 * python/lib/gdb/command/xmethods.py: New file.
717 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
719 * eval.c (evaluate_subexp_standard): Call the xmethod if the
720 best match method returned by find_overload_match is an xmethod.
721 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
722 the best matching operator returned by find_overload_match is an
724 * valops.c: #include "extension.h".
725 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
726 Return void. The list of matching source methods is returned in
727 "fn_list" and a vector of matching debug method workers is
728 returned in "xm_worker_vec". Update all callers.
729 (value_find_oload_method_list): Likewise.
730 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
731 non-NULL, then the index of the best matching method in this
732 vector is returned. Update all callers.
733 (find_overload_match): Include xmethods while performing overload
736 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
738 * defs.h (enum lval_type): New enumerator "lval_xcallable".
739 * extension-priv.h (struct extension_language_ops): Add the
741 * extension.c (new_xmethod_worker, clone_xmethod_worker,
742 get_matching_xmethod_workers, get_xmethod_argtypes,
743 invoke_xmethod, free_xmethod_worker,
744 free_xmethod_worker_vec): New functions.
745 * extension.h: #include "common/vec.h".
746 New function declarations.
747 (struct xmethod_worker): New struct.
748 (VEC (xmethod_worker_ptr)): New vector type.
749 (xmethod_worker_ptr): New typedef.
750 (xmethod_worker_vec): Likewise.
751 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
753 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
754 (struct builtin_type): New field "xmethod".
755 * valarith.c (value_ptradd): Assert that the value argument is not
757 * valops.c (value_must_coerce_to_target): Return 0 for
758 lval_xcallable values.
759 * value.c (struct value): New field XM_WORKER in the field
761 (value_address, value_raw_address): Return 0 for lval_xcallable
763 (set_value_address): Assert that the value is not an
765 (value_free): Free the associated xmethod worker when freeing
766 lval_xcallable values.
767 (set_value_component_location): Assert that the WHOLE value is not
769 (value_of_xmethod, call_xmethod): New functions.
770 * value.h: Declare "struct xmethod_worker".
771 Declare new functions value_of_xmethod, call_xmethod.
773 2014-06-03 Joel Brobecker <brobecker@adacore.com>
774 Pedro Alves <palves@redhat.com>
777 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
778 New function, extracted from software_breakpoint_inserted_here_p.
779 (software_breakpoint_inserted_here_p): Replace factored out code
780 by call to find_non_raw_software_breakpoint_inserted_here.
781 (bp_target_info_copy_insertion_state): New function.
782 (bkpt_insert_location): Handle the case of a single-step
783 breakpoint already inserted at the same address.
784 (bkpt_remove_location): Handle the case of a single-step
785 breakpoint still inserted at the same address.
786 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
787 breakpoint already inserted at the same address.
788 (deprecated_remove_raw_breakpoint): Handle the case of a
789 non-raw breakpoint still inserted at the same address.
790 (find_single_step_breakpoint): New function, extracted from
791 single_step_breakpoint_inserted_here_p.
792 (find_single_step_breakpoint): New function,
793 factored out from single_step_breakpoint_inserted_here_p.
794 (single_step_breakpoint_inserted_here_p): Reimplement.
796 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
798 Pushed by Joel Brobecker <brobecker@adacore.com>
799 * source.c (show_substitute_path_command): Fix display of matching
802 2014-06-03 Gary Benson <gbenson@redhat.com>
804 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
806 2014-06-02 Doug Evans <xdje42@gmail.com>
808 Add parameter support for Guile.
809 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
810 (SUBDIR_GUILE_SRCS): Add scm-param.c.
811 (scm-param.o): New rule.
812 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
813 (gdbscm_misc_error): Declare.
814 (gdbscm_canonicalize_command_name): Declare.
815 (gdbscm_scm_to_host_string): Declare.
816 (gdbscm_scm_from_host_string): Declare.
817 (gdbscm_initialize_parameters): Declare.
818 * guile/guile.c (initialize_gdb_module): Call
819 gdbscm_initialize_parameters.
820 * guile/lib/gdb.scm: Export parameter symbols.
821 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
822 cmdscm_canonicalize_name and made public. All callers updated.
823 * guile/scm-exception.c (gdbscm_misc_error): New function.
824 * guile/scm-param.c: New file.
825 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
826 (gdbscm_scm_to_host_string): New function.
827 (gdbscm_scm_from_host_string): New function.
828 * scm-utils.c (gdbscm_gc_dup_argv): New function.
830 2014-06-02 Doug Evans <xdje42@gmail.com>
832 Add command support for Guile.
833 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
834 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
835 (scm-cmd.o): New rule.
836 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
837 (gdbscm_user_error_p): Declare.
838 (gdbscm_parse_command_name): Declare.
839 (gdbscm_valid_command_class_p): Declare.
840 (gdbscm_initialize_commands): Declare.
841 * guile/guile.c (initialize_gdb_module): Call
842 gdbscm_initialize_commands.
843 * guile/lib/gdb.scm: Export command symbols.
844 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
845 (throw-user-error): New function.
846 * guile/scm-cmd.c: New file.
847 * guile/scm-exception.c (user_error_symbol): New static global.
848 (gdbscm_user_error_p): New function.
849 (gdbscm_initialize_exceptions): Set user_error_symbol.
850 * scm-utils.c (gdbscm_gc_xstrdup): New function.
852 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
854 * top.c (command_loop): Handle comments here...
855 (command_line_input): ... not here.
857 2014-06-02 Doug Evans <xdje42@gmail.com>
859 Add progspace support for Guile.
860 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
861 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
862 (scm-progspace.o): New rule.
863 * guile/guile-internal.h (pspace_smob): New typedef.
864 (psscm_pspace_smob_pretty_printers): Declare.
865 (psscm_pspace_smob_from_pspace): Declare.
866 (psscm_scm_from_pspace): Declare.
867 * guile/guile.c (initialize_gdb_module): Call
868 gdbscm_initialize_pspaces.
869 * guile/lib/gdb.scm: Export progspace symbols.
870 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
872 (append-pretty-printer!): Ditto.
873 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
875 * guile/scm-progspace.c: New file.
877 2014-06-03 Alan Modra <amodra@gmail.com>
879 * ppc64-tdep.c (ppc64_standard_linkage8): New.
880 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
882 2014-06-02 Doug Evans <dje@google.com>
884 Add support for skeletonless type units.
885 * dwarf2read.c (struct dwarf2_per_objfile): New member
886 n_allocated_type_units.
887 (struct dwarf2_per_objfile) <tu_stats>: New member
888 nr_all_type_units_reallocs.
889 (create_signatured_type_table_from_index): Initialize
890 n_allocated_type_units
891 (create_all_type_units): Ditto.
892 (add_type_unit): Move up in file. New arg slot.
893 All callers updated. Increase space for all_type_units more
895 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
896 (lookup_dwo_signatured_type): Handle skeletonless TUs.
897 (lookup_dwp_signatured_type): Ditto.
898 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
900 (build_type_psymtabs_1): Leave type_unit_groups as
901 NULL if no TUs present.
902 (print_tu_stats): New function.
903 (process_skeletonless_type_unit): New function.
904 (process_dwo_file_for_skeletonless_type_units): New
906 (process_skeletonless_type_units): New function.
907 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
908 Call print tu_stats if debugging enabled.
910 2014-06-02 Pedro Alves <palves@redhat.com>
912 * breakpoint.c (build_target_command_list): Don't build a command
913 list if we have any duplicate location that isn't a dprintf.
915 2014-06-02 Pedro Alves <palves@redhat.com>
917 * breakpoint.c (dprintf_breakpoint_hit): New function.
918 (initialize_breakpoint_ops): Install it as dprintf's
919 breakpoint_hit method.
921 2014-06-02 Joel Brobecker <brobecker@adacore.com>
923 * source.c (substitute_path_rule_matches): Simplify using
924 filename_ncmp instead of FILENAME_CMP.
926 2014-06-02 Joel Brobecker <brobecker@adacore.com>
928 * source.c (substitute_path_rule_matches): Remove trailing spaces.
930 2014-06-01 Ludovic Courtès <ludo@gnu.org>
932 * configure.ac: When Guile is available, check for the
933 availability of 'scm_new_smob'.
934 * configure, config.h.in: Regenerate.
935 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
938 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
940 * frame.c (struct frame_info): Add stop_string field.
941 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
942 (get_prev_frame_always): Old content moved into
943 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
944 TRY_CATCH, handle MEMORY_ERROR exceptions.
945 (frame_stop_reason_string): New function definition.
946 * frame.h (unwind_stop_reason_to_string): Extend comment to
947 mention frame_stop_reason_string.
948 (frame_stop_reason_string): New function declaration.
949 * stack.c (frame_info): Switch to frame_stop_reason_string.
950 (backtrace_command_1): Switch to frame_stop_reason_string.
951 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
952 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
953 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
955 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
957 * frame.c (frame_stop_reason_string): Rename to ...
958 (unwind_stop_reason_to_string): this.
959 * frame.h (frame_stop_reason_string): Rename to ...
960 (unwind_stop_reason_to_string): this.
961 * stack.c (frame_info): Update call to frame_stop_reason_string.
962 (backtrace_command_1): Likewise.
963 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
964 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
966 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
968 * frame.c (remove_prev_frame): New function.
969 (get_prev_frame_if_no_cycle): Create / discard cleanup using
972 2014-05-29 Pedro Alves <palves@redhat.com>
974 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
975 and make it const. When a single-step decays to a continue,
976 clear 'step', not 'hw_step'. Pass whether the caller wanted
977 to step to user_visible_resume_ptid, not what we ask the
980 2014-05-29 Pedro Alves <palves@redhat.com>
982 * infrun.c (process_event_stop_test, handle_step_into_function)
983 (handle_step_into_function_backward): Adjust.
984 Don't set the even thread's stop_step and call stop_waiting before
985 calling end_stepping_range. Instead do that ...
986 (end_stepping_range): ... here. Take an ecs pointer parameter.
988 2014-05-29 Pedro Alves <palves@redhat.com>
990 * infrun.c (stop_stepping): Rename to ...
991 (stop_waiting): ... this.
992 (proceed): Update comment.
993 (process_event_stop_test, handle_inferior_event)
994 (handle_signal_stop, handle_step_into_function)
995 (handle_step_into_function_backward): Update.
997 2014-05-29 Pedro Alves <palves@redhat.com>
999 * infcall.c (run_inferior_call): Don't check whether the current
1000 thread is running after the proceed call.
1002 2014-05-29 Pedro Alves <palves@redhat.com>
1003 Tom Tromey <tromey@redhat.com>
1005 * NEWS: Mention "maint set target-async", "set mi-async", and that
1006 background execution commands are now always available.
1007 * target.h (target_async_permitted): Update comment.
1008 * target.c (target_async_permitted, target_async_permitted_1):
1010 (set_target_async_command): Rename to ...
1011 (maint_set_target_async_command): ... this.
1012 (show_target_async_command): Rename to ...
1013 (maint_show_target_async_command): ... this.
1014 (_initialize_target): Adjust.
1015 * infcmd.c (prepare_execution_command): Make extern.
1016 * inferior.h (prepare_execution_command): Declare.
1017 * infrun.c (set_observer_mode): Leave target async alone.
1018 * mi/mi-interp.c (mi_interpreter_init): Install
1019 mi_on_sync_execution_done as sync_execution_done observer.
1020 (mi_on_sync_execution_done): New function.
1021 (mi_execute_command_input_handler): Don't print the prompt if we
1022 just started a synchronous command with an async target.
1023 (mi_on_resume): Check sync_execution before printing prompt.
1024 * mi/mi-main.h (mi_async_p): Declare.
1025 * mi/mi-main.c: Include gdbcmd.h.
1026 (mi_async_p): New function.
1027 (mi_async, mi_async_1): New globals.
1028 (set_mi_async_command, show_mi_async_command, mi_async): New
1030 (exec_continue): Call prepare_execution_command.
1031 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1032 (mi_execute_async_cli_command): Use mi_async_p.
1033 (_initialize_mi_main): Install "set mi-async". Make
1034 "target-async" a deprecated alias.
1036 2014-05-29 Pedro Alves <palves@redhat.com>
1038 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1039 (_initialize_cli_interp): Adjust.
1040 * event-loop.c: Include "observer.h".
1041 (start_event_loop): Notify 'command_error' observers instead of
1042 calling display_gdb_prompt. Remove FIXME comment.
1043 * event-top.c (display_gdb_prompt): Remove call into the
1045 * inf-loop.c: Include "observer.h".
1046 (inferior_event_handler): Notify 'command_error' observers instead
1047 of calling display_gdb_prompt.
1048 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1049 observers instead of calling display_gdb_prompt.
1050 * interps.c (interp_set): Don't call display_gdb_prompt.
1051 (current_interp_display_prompt_p): Delete.
1052 * interps.h (interp_prompt_p): Delete declaration.
1053 (interp_prompt_p_ftype): Delete.
1054 (struct interp_procs) <prompt_proc_p>: Delete field.
1055 (current_interp_display_prompt_p): Delete declaration.
1056 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1057 (_initialize_mi_interp): Adjust.
1058 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1059 'command_error' observers.
1060 (tui_on_sync_execution_done, tui_on_command_error): New
1062 (tui_display_prompt_p): Delete.
1063 (_initialize_tui_interp): Adjust.
1065 2014-05-29 Pedro Alves <palves@redhat.com>
1068 * cli/cli-interp.c: Include infrun.h and observer.h.
1069 (cli_uiout, cli_interp): New globals.
1070 (cli_on_signal_received, cli_on_end_stepping_range)
1071 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1073 (cli_interpreter_init): Install them as 'end_stepping_range',
1074 'signal_received' 'signal_exited', 'exited' and 'no_history'
1076 (_initialize_cli_interp): Remove cli_interp local.
1077 * infrun.c (handle_inferior_event): Call the several stop reason
1078 observers instead of printing the stop reason directly.
1079 (end_stepping_range): New function.
1080 (print_end_stepping_range_reason, print_signal_exited_reason)
1081 (print_exited_reason, print_signal_received_reason)
1082 (print_no_history_reason): Make static, and add an uiout
1083 parameter. Print to that instead of to CURRENT_UIOUT.
1084 * infrun.h (print_end_stepping_range_reason)
1085 (print_signal_exited_reason, print_exited_reason)
1086 (print_signal_received_reason print_no_history_reason): New
1088 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1090 <cli_uiout>: New field.
1091 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1092 uiout for CLI output. Install 'signal_received',
1093 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1095 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1096 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1097 (mi_on_no_history): New functions.
1098 (ui_out_free_cleanup): Delete function.
1099 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1100 instead use the one already stored in the MI interpreter data.
1101 (mi_ui_out): Adjust.
1102 * tui/tui-interp.c: Include infrun.h and observer.h.
1103 (tui_interp): New global.
1104 (tui_on_signal_received, tui_on_end_stepping_range)
1105 (tui_on_signal_exited, tui_on_exited)
1106 (tui_on_no_history): New functions.
1107 (tui_init): Install them as 'end_stepping_range',
1108 'signal_received' 'signal_exited', 'exited' and 'no_history'
1110 (_initialize_tui_interp): Delete tui_interp local.
1112 2014-05-29 Pedro Alves <palves@redhat.com>
1115 * linux-nat.c (linux_nat_resume_callback): Rename the second
1116 parameter to 'except'. Skip LP if it points to EXCEPT.
1117 (linux_nat_resume): Don't mark the event lwp as not stopped
1118 before resuming sibling lwps. Instead ask
1119 linux_nat_resume_callback to skip the event lwp. Mark it as not
1120 stopped after actually resuming it.
1121 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1123 (wait_lwp): Mark the lwp as stopped here.
1124 (stop_wait_callback): Mark the lwp as not stopped right after
1125 resuming it. Don't mark lwps as stopped here.
1126 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1127 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1129 2014-05-29 Pedro Alves <palves@redhat.com>
1132 * infrun.c (resume): Determine how much to resume depending on
1133 whether the caller wanted a step, not whether we can hardware step
1134 the target. Mark all threads that we intend to run as running,
1135 unless we're calling an inferior function.
1136 (normal_stop): If the thread is running an infcall, don't finish
1138 * target.c (target_resume): Don't mark threads as running here.
1140 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1142 * serial.c (_initialize_serial): Remove support for
1143 the "set remotebaud" and "show remotebaud" commands.
1144 * NEWS: Add entry documenting the removal of that command.
1146 2014-05-28 Yao Qi <yao@codesourcery.com>
1148 * charset.c: Fix typo in comments.
1150 2014-05-27 Gary Benson <gbenson@redhat.com>
1152 * utils.c (internal_vproblem): Prompt for a bug report.
1154 2014-05-26 Andy Wingo <wingo@igalia.com>
1156 * guile/scm-arch.c (arscm_mark_arch_smob):
1157 * guile/scm-block.c (bkscm_mark_block_smob)
1158 (bkscm_mark_block_syms_progress_smob):
1159 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1160 * guile/scm-exception.c (exscm_mark_exception_smob):
1161 * guile/scm-frame.c (frscm_mark_frame_smob):
1162 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1163 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1164 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1165 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1166 (ppscm_mark_pretty_printer_worker_smob):
1167 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1168 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1169 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1170 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1172 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1175 2014-05-26 Andy Wingo <wingo@igalia.com>
1176 Doug Evans <xdje42@gmail.com>
1178 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1179 empty_base_class. All uses updated.
1180 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1181 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1183 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1184 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1185 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1186 (gdbscm_gsmob_has_property_p, add_property_name)
1187 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1188 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1189 (gdb-object-has-property?, gdb-object-properties): Remove.
1190 (gdb-object-kind): Renamed from gsmob-kind.
1192 2014-05-26 Andy Wingo <wingo@igalia.com>
1194 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1195 * configure: Regenerate.
1197 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1199 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1201 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1203 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1204 (replay_memory_access_read_only, replay_memory_access_read_write)
1205 (replay_memory_access_types, replay_memory_access)
1206 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1207 (cmd_set_record_btrace, cmd_show_record_btrace)
1208 (cmd_show_replay_memory_access): New.
1209 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1210 (record_btrace_remove_breakpoint): Replace
1211 record_btrace_allow_memory_access with replay_memory_access.
1212 (_initialize_record_btrace): Add commands.
1213 * NEWS: Announce it.
1215 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1217 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1219 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1221 * MAINTAINERS (Write After Approval): Move self back from
1224 2014-05-22 Pedro Alves <palves@redhat.com>
1226 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1227 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1228 (disable_randomization, enum exec_direction_kind)
1229 (execution_direction, stop_registers, start_remote)
1230 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1231 (wait_for_inferior, normal_stop, get_last_target_status)
1232 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1233 (insert_step_resume_breakpoint_at_sal)
1234 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1235 (set_step_info, print_stop_event, signal_stop_state)
1236 (signal_print_state, signal_pass_state, signal_stop_update)
1237 (signal_print_update, signal_pass_update)
1238 (update_signals_program_target, clear_exit_convenience_vars)
1239 (displaced_step_dump_bytes, update_observer_mode)
1240 (signal_catch_update, gdb_signal_from_command): Move
1242 * infrun.h: ... to this new file.
1243 * amd64-tdep.c: Include infrun.h.
1244 * annotate.c: Include infrun.h.
1245 * arch-utils.c: Include infrun.h.
1246 * arm-linux-tdep.c: Include infrun.h.
1247 * arm-tdep.c: Include infrun.h.
1248 * break-catch-sig.c: Include infrun.h.
1249 * breakpoint.c: Include infrun.h.
1250 * common/agent.c: Include infrun.h instead of inferior.h.
1251 * corelow.c: Include infrun.h.
1252 * event-top.c: Include infrun.h.
1253 * go32-nat.c: Include infrun.h.
1254 * i386-tdep.c: Include infrun.h.
1255 * inf-loop.c: Include infrun.h.
1256 * infcall.c: Include infrun.h.
1257 * infcmd.c: Include infrun.h.
1258 * infrun.c: Include infrun.h.
1259 * linux-fork.c: Include infrun.h.
1260 * linux-nat.c: Include infrun.h.
1261 * linux-thread-db.c: Include infrun.h.
1262 * monitor.c: Include infrun.h.
1263 * nto-tdep.c: Include infrun.h.
1264 * procfs.c: Include infrun.h.
1265 * record-btrace.c: Include infrun.h.
1266 * record-full.c: Include infrun.h.
1267 * remote-m32r-sdi.c: Include infrun.h.
1268 * remote-mips.c: Include infrun.h.
1269 * remote-notif.c: Include infrun.h.
1270 * remote-sim.c: Include infrun.h.
1271 * remote.c: Include infrun.h.
1272 * reverse.c: Include infrun.h.
1273 * rs6000-tdep.c: Include infrun.h.
1274 * s390-linux-tdep.c: Include infrun.h.
1275 * solib-irix.c: Include infrun.h.
1276 * solib-osf.c: Include infrun.h.
1277 * solib-svr4.c: Include infrun.h.
1278 * target.c: Include infrun.h.
1279 * top.c: Include infrun.h.
1280 * windows-nat.c: Include infrun.h.
1281 * mi/mi-interp.c: Include infrun.h.
1282 * mi/mi-main.c: Include infrun.h.
1283 * python/py-threadevent.c: Include infrun.h.
1285 2014-05-22 Pedro Alves <palves@redhat.com>
1287 * infrun.c (handle_inferior_event): Store the exit code for
1288 --return-child-result here, instead of ...
1289 (print_exited_reason): ... here.
1291 2014-05-21 Pedro Alves <palves@redhat.com>
1294 * gdbthread.h (struct thread_control_state): New field
1296 * infrun.c (follow_fork): Copy the new thread control field to the
1298 (clear_proceed_status_thread): Clear the new thread control field.
1299 (proceed): Set the new thread control field.
1300 * interps.h (command_interp): Declare.
1301 * interps.c (command_interpreter): New global.
1302 (command_interp): New function.
1303 (interp_exec): Set `command_interpreter' while here.
1304 * cli-out.c (cli_uiout_dtor): New function.
1305 (cli_ui_out_impl): Install it.
1306 * mi/mi-interp.c: Include cli-out.h.
1307 (mi_cmd_interpreter_exec): Add comment.
1308 (restore_current_uiout_cleanup): New function.
1309 (ui_out_free_cleanup): New function.
1310 (mi_on_normal_stop): If finishing an execution command started by
1311 a CLI command, or any kind of breakpoint-like event triggered,
1312 print the stop event to the output (CLI) stream.
1313 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1315 2014-05-21 Pedro Alves <palves@redhat.com>
1317 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1318 current source line having changed.
1319 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1320 * infrun.c (normal_stop): Adjust call to
1321 set_current_sal_from_frame.
1322 * source.c (clear_lines_listed_range): New function.
1323 (set_current_source_symtab_and_line, identify_source_line): Clear
1324 the lines listed range.
1325 (line_info): Handle the first "info line" after the current source
1326 line having changed.
1327 * stack.c (print_stack_frame): Remove center handling.
1328 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1331 2014-05-21 Pedro Alves <palves@redhat.com>
1333 * inf-child.c (inf_child_mourn_inferior): New function.
1334 * inf-child.h (inf_child_mourn_inferior): New declaration.
1335 * darwin-nat.c (darwin_mourn_inferior): Use
1336 inf_child_mourn_inferior.
1337 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1338 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1339 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1340 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1341 * windows-nat.c (windows_mourn_inferior): Likewise.
1343 2014-05-21 Doug Evans <xdje42@gmail.com>
1345 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1347 2014-05-21 Doug Evans <xdje42@gmail.com>
1349 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1350 (gdbscm_out_of_range_error): Ditto.
1351 (gdbscm_memory_error): Ditto.
1352 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1353 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1354 (gdbscm_out_of_range_error): Update.
1355 (gdbscm_memory_error): Update.
1356 (gdbscm_scm_to_target_string_unsafe): Delete.
1358 2014-05-21 Pedro Alves <palves@redhat.com>
1360 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1362 (inf_child_open_target): New function.
1363 (inf_child_open): Use inf_child_open_target to push the target
1364 instead of erroring out.
1365 (inf_child_disconnect, inf_child_close)
1366 (inf_child_maybe_unpush_target): New functions.
1367 (inf_child_target): Install inf_child_disconnect and
1368 inf_child_close. Store a pointer to the returned object.
1369 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1371 * target.c (auto_connect_native_target): New global.
1372 (show_default_run_target): New function.
1373 (find_default_run_target): Return NULL if automatically connecting
1374 to the native target is disabled.
1375 (_initialize_target): Install set/show auto-connect-native-target.
1376 * NEWS: Mention "set auto-connect-native-target", and "target
1378 * linux-nat.c (super_close): New global.
1379 (linux_nat_close): Call super_close.
1380 (linux_nat_add_target): Store a pointer to the base class's
1382 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1383 inf_child_maybe_unpush.
1384 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1386 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1387 the inferior. Use inf_child_maybe_unpush_target.
1388 (inf_ttrace_attach): Don't push the target if it is already
1390 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1391 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1392 after mourning the inferior. Use inf_child_maybe_unpush_target.
1393 (darwin_attach_pid): Don't push the target if it is already
1395 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1396 mourning the inferior. Use inf_child_maybe_unpush_target.
1397 (gnu_detach): Use inf_child_maybe_unpush_target.
1398 * go32-nat.c (go32_create_inferior): Don't push the target if it
1400 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1401 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1402 (procfs_open): Rename to ...
1403 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1404 comments. Can target_preopen before changing node. Call
1405 inf_child_open_target to push the target explicitly.
1406 (procfs_attach): Don't push the target if it is already pushed.
1407 (procfs_detach): Use inf_child_maybe_unpush_target.
1408 (procfs_create_inferior): Don't push the target if it is already
1410 (nto_native_ops): New global.
1411 (procfs_open): Reimplement.
1412 (procfs_native_open): New function.
1413 (init_procfs_targets): Install procfs_native_open as to_open of
1414 "target native". Store a pointer to the "native" target in
1416 * procfs.c (procfs_attach): Don't push the target if it is already
1418 (procfs_detach): Use inf_child_maybe_unpush_target.
1419 (procfs_mourn_inferior): Only unpush the target after mourning the
1420 inferior. Use inf_child_maybe_unpush_target.
1421 (procfs_init_inferior): Don't push the target if it is already
1423 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1424 if it is already pushed.
1426 2014-05-21 Pedro Alves <palves@redhat.com>
1428 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1429 and "procfs" targets are now called "native" instead.
1431 2014-05-21 Pedro Alves <palves@redhat.com>
1433 * go32-nat.c (go32_open): Delete.
1434 (go32_target): Don't override the to_open method.
1436 2014-05-21 Pedro Alves <palves@redhat.com>
1438 * nto-procfs.c (procfs_can_run): New function.
1439 (nto_procfs_ops): New global.
1440 (init_procfs_targets): New, based on procfs_target. Install
1441 "target native" in addition to "target procfs".
1442 (_initialize_procfs): Call init_procfs_targets instead of adding
1445 2014-05-21 Pedro Alves <palves@redhat.com>
1447 * windows-nat.c (windows_target): Don't override to_shortname,
1448 to_longname or to_doc.
1450 2014-05-21 Pedro Alves <palves@redhat.com>
1452 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1455 2014-05-21 Pedro Alves <palves@redhat.com>
1457 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1458 to_shortname, to_longname or to_doc.
1460 2014-05-21 Pedro Alves <palves@redhat.com>
1462 * go32-nat.c (go32_target): Don't override to_shortname,
1463 to_longname or to_doc.
1465 2014-05-21 Pedro Alves <palves@redhat.com>
1467 * inf-child.c (inf_child_open): Remove mention of "child".
1468 (inf_child_target): Rename target to "native" instead of "child".
1470 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1472 * Makefile.in (SFILES): Delete "regset.c".
1473 (COMMON_OBS): Delete "regset.o".
1475 * regset.h (regset_alloc): Delete prototype.
1477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * sparc-linux-tdep.c (sparc32_linux_gregset)
1480 (sparc32_linux_fpregset): New static regset structures.
1481 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1482 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1484 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1485 (sparc64_linux_fpregset): New static regset structures.
1486 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1487 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1488 New static regset structures.
1489 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1490 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1491 New static regset structures.
1492 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1493 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1494 New static regset structures.
1495 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1496 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1497 New static regset structures.
1498 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1500 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1502 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1503 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1504 register maps ("regmaps") from "*regset" to "*regmap". Do this
1505 for all regmap types and variables.
1506 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1507 (sparc32_linux_supply_core_gregset)
1508 (sparc32_linux_collect_core_gregset)
1509 (sparc32_linux_supply_core_fpregset)
1510 (sparc32_linux_collect_core_fpregset): Likewise.
1511 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1512 (sparc_gregmap, sparc_fpregmap): ... these.
1513 (sparc_supply_gregset, sparc_collect_gregset)
1514 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1515 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1516 (_initialize_sparc_nat): Rename regmaps.
1517 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1518 (sparc_gregmap, sparc_fpregmap): ... these.
1519 (sparc_supply_gregset, sparc_collect_gregset)
1520 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1521 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1523 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1524 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1526 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1528 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1529 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1530 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1532 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1533 (sparc32_bsd_fpregset): Rename to...
1534 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1535 (sparc32_bsd_fpregmap): ... these.
1536 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1537 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1538 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1539 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1540 (struct sparc_gregmap, struct sparc_fpregmap)
1541 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1542 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1543 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1544 (sparc32_supply_regset, sparc32_collect_gregset)
1545 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1547 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1548 (sparc64_linux_ptrace_gregmap): ... this.
1549 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1550 (_initialize_sparc64_linux_nat): Rename regmaps.
1551 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1552 (sparc64_linux_core_gregmap): ... this.
1553 (sparc64_linux_supply_core_gregset)
1554 (sparc64_linux_collect_core_gregset)
1555 (sparc64_linux_supply_core_fpregset)
1556 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1557 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1558 (sparc64_sol2_fpregset): Rename to...
1559 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1560 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1561 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1563 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1564 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1565 (sparc64_bsd_fpregset): Rename to...
1566 (struct sparc_gregmap, sparc64_sol2_gregmap)
1567 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1568 (sparc64_bsd_fpregmap): ... these.
1569 (sparc64_supply_gregset, sparc64_collect_gregset)
1570 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1572 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1573 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1574 (sparc64fbsd_gregmap): ... this.
1575 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1576 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1578 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1579 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1580 (sparc64nbsd_collect_fpregset): Likewise.
1581 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1582 (sparc64nbsd_gregmap): ... this.
1583 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1585 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1586 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1587 (sparc64obsd_gregmap): ... this.
1588 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1590 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1591 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1592 (sparc32nbsd_gregmap): ... this.
1593 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1596 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1598 * score-tdep.c (score7_linux_gregset): New static regset
1600 (score7_linux_regset_from_core_section): Remove dynamic regset
1602 (score_gdbarch_init): Drop allocation of tdep structure.
1603 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1605 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1607 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1609 (am33_regset_from_core_section): Remove dynamic regset
1612 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1615 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1617 (mips_linux_regset_from_core_section): Remove dynamic regset
1619 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1620 'gregset64', 'fpregset', and 'fpregset64'.
1621 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1622 deleted tdep fields.
1624 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1626 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1628 (amd64_regset_from_core_section): Remove dynamic regset
1630 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1632 (amd64obsd_regset_from_core_section): Remove dynamic regset
1634 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1636 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1637 x86-common regset supply function.
1638 * i386-tdep.c (i386_collect_gregset): Make static.
1639 (i386_gregset): New global regset structure.
1640 (i386_fpregset, i386_xstateregset): New static regset structures.
1641 (i386_regset_from_core_section): Remove dynamic regset
1643 (i386_gdbarch_init): Remove initialization of tdep fields
1644 'gregset', 'fpregset', and 'xstateregset'.
1645 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1646 'fpregset', and 'xstateregset'.
1647 (i386_collect_gregset): Remove prototype.
1648 (i386_gregset): New declaration.
1649 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1651 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1656 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1657 (arm_linux_vfpregset): New static regset structures.
1658 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1660 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1661 and 'vfpregset' fields.
1663 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1666 (aarch64_linux_fpregset): New static regset structures.
1667 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1668 of regset structures.
1669 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1672 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1674 * regset.h (struct regset): Remove gdbarch field.
1675 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1676 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1677 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1679 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1680 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1681 (ppc32_linux_vsxregset): Likewise.
1682 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1683 via the regcache instead of the regset.
1684 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1685 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1686 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1687 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1690 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1692 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1693 Constify structures.
1694 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1695 (alphanbsd_aout_gregset): Likewise.
1696 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1697 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1699 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1700 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1702 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1703 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1704 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1705 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1706 * m88k-tdep.c (m88k_gregset): Likewise.
1707 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1708 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1709 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1710 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1711 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1712 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1713 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1714 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1715 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1717 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1718 * sh-tdep.h (sh_corefile_gregset): Likewise.
1719 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1720 * vax-tdep.c (vax_gregset): Likewise.
1722 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Fix TLS access for -static -pthread.
1725 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1726 (try_thread_db_load_1): Initialize it.
1727 (thread_db_get_thread_local_address): Call it if LM is zero.
1728 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1729 * target.h (struct target_ops) (to_get_thread_local_address): Add
1730 load_module_addr comment.
1732 2014-05-21 Pedro Alves <palves@redhat.com>
1734 * dcache.c (dcache_read_memory_partial): If reading the cache line
1735 fails, fallback to reading just the memory the caller wanted.
1737 2014-05-20 Doug Evans <dje@google.com>
1739 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1740 instead of get_current_arch.
1742 2014-05-20 Pedro Alves <palves@redhat.com>
1744 * NEWS: Mention that compare-sections now works with all targets.
1746 * remote.c (PACKET_qCRC): New enum value.
1747 (remote_verify_memory): Don't send qCRC if the target has no
1748 execution. Use packet_support/packet_ok. If the target doesn't
1749 support the qCRC packet, fallback to a deep memory copy.
1750 (compare_sections_command): Say "target image" instead of "remote
1752 (_initialize_remote): Add PACKET_qCRC to the list of config
1753 packets that have no associated command. Extend comment.
1754 * target.c (simple_verify_memory, default_verify_memory): New
1756 * target.h (struct target_ops) <to_verify_memory>: Default to
1757 default_verify_memory.
1758 (simple_verify_memory): New declaration.
1759 * target-delegates.c: Regenerate.
1761 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1763 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1765 2014-05-20 Hui Zhu <hui@codesourcery.com>
1766 Yao Qi <yao@codesourcery.com>
1769 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1770 and change address of sp and pc.
1772 2014-05-19 Tom Tromey <tromey@redhat.com>
1774 * gdbtypes.c (rank_function): Use XNEWVEC.
1775 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1777 2014-05-19 Doug Evans <dje@google.com>
1779 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1780 build_type_unit_groups and moved closer to only caller. Remove
1781 arguments. All references updated. Remove outdated .gdb_index
1783 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1784 build_type_psymtabs_1.
1786 2014-05-19 Doug Evans <dje@google.com>
1788 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1789 n_type_unit_groups, all_type_unit_groups. All uses removed.
1790 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1791 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1792 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1793 (add_type_unit_group_to_table): Delete.
1795 2014-05-19 Doug Evans <dje@google.com>
1797 * eval.c (evaluate_subexp_standard): Add some comments.
1799 2014-05-17 Doug Evans <xdje42@gmail.com>
1801 * progspace.c (remove_program_space): Delete, unused.
1802 * progspace.h (remove_program_space): Ditto.
1804 2014-05-17 Doug Evans <xdje42@gmail.com>
1806 * inferior.c (prune_inferiors): Fix comment.
1807 (remove_inferior_command): Call prune_program_spaces.
1809 2014-05-16 Doug Evans <dje@google.com>
1811 New command line option -D.
1813 * main.c (set_gdb_data_directory): New function.
1814 (captured_main): Recognize -D. Flag error for --data-directory "".
1815 Call set_gdb_data_directory.
1816 (print_gdb_help): Print --data-directory, -D.
1817 * main.h (set_gdb_data_directory): Declare.
1818 * top.c (staged_gdb_datadir): New static global.
1819 (set_gdb_datadir): Call set_gdb_data_directory
1820 (show_gdb_datadir): New function.
1821 (init_main): Update init of data-directory parameter.
1823 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1825 Import the "dirfd" gnulib module.
1826 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1827 * gnulib/aclocal.m4: Update.
1828 * gnulib/config.in: Update.
1829 * gnulib/configure: Update.
1830 * gnulib/import/Makefile.am: Update.
1831 * gnulib/import/Makefile.in: Update.
1832 * gnulib/import/dirfd.c: New.
1833 * gnulib/import/m4/dirfd.m4: New.
1834 * gnulib/import/m4/gnulib-cache.m4: Update.
1835 * gnulib/import/m4/gnulib-comp.m4: Update.
1837 2014-05-16 Pierre Muller <muller@sourceware.org>
1838 Yao Qi <yao@codesourcery.com>
1840 * valprint.c (print_wchar): Move the code on checking whether
1841 W is a printable wide char to the default branch of switch
1842 statement below. Call wchar_printable instead of gdb_iswprint.
1844 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1846 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1847 ldr.w and ldrd instructions.
1849 2014-05-15 Doug Evans <dje@google.com>
1851 * dwarf2read.c (read_structure_type): Delete outdated comments.
1853 2014-05-14 Tom Tromey <tromey@redhat.com>
1855 * macrocmd.c (print_macro_definition): Reindent.
1857 2014-05-13 Doug Evans <xdje42@gmail.com>
1859 * python/py-cmd.c (cmdpy_completer): Add comment.
1860 (completers): Make const.
1862 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1864 * infrun.c (resume): Remove should_resume (unused). Move up
1865 declaration of resume_ptid.
1867 2014-05-13 Tom Tromey <tromey@redhat.com>
1869 * language.h (unop_type_check): Remove.
1870 (binop_type_check): Don't declare.
1872 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1874 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1875 call to regcache_raw_collect.
1877 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1879 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1880 mi_console->quote as the quoting character.
1882 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1884 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1886 2014-04-29 Tom Tromey <tromey@redhat.com>
1888 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1889 "show debug varobj".
1891 2014-05-07 Kyle McMartin <kyle@redhat.com>
1893 Pushed by Joel Brobecker <brobecker@adacore.com>.
1894 * aarch64-tdep.c (aarch64_software_single_step): New function.
1895 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1896 with aarch64_software_single_step.
1898 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1902 2014-05-05 Keith Seitz <keiths@redhat.com>
1904 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1905 variable or history value is successfully parsed.
1907 2014-05-05 Yao Qi <yao@codesourcery.com>
1908 Pedro Alves <palves@redhat.com>
1910 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1911 address of blocks that intersects the requested range. Trim
1912 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1914 * ctf.c (ctf_xfer_partial): Likewise.
1916 2014-05-05 Yao Qi <yao@codesourcery.com>
1918 * printcmd.c (display_command): Remove the check to
1919 target_has_execution.
1921 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1923 * ppcobsd-nat.c: Include "obsd-nat.h".
1924 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1926 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1928 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1930 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1931 and 16-bit signed and unsigned arguments. Update comment.
1932 (stap_parse_probe_arguments): Extend code to handle such
1933 arguments. Use warning instead of complaint to notify about
1934 unrecognized bitness.
1936 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1938 PR breakpoints/16889
1939 * stap-probe.c (stap_parse_probe_arguments): Simplify
1940 check for non-prefixed probes (i.e., probes whose
1941 arguments do not start with "N@"). Always set the
1942 argument type to a sane value.
1944 2014-05-01 David Taylor <dtaylor@emc.com>
1946 * remote.c (compare_sections_command): Add -r option to compare
1947 all loadable read-only sections.
1949 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1951 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1952 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1954 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1955 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1956 Remove unused CORE_ADDR argument. Update all callers.
1958 2014-04-29 Pedro Alves <palves@redhat.com>
1960 * remote.c (struct packet_config) <detect>: Extend comment.
1961 (add_packet_config_cmd): Don't set the config's detect or support
1963 (init_all_packet_configs): Also initialize the config's 'detect'
1965 (reset_all_packet_configs_support): New function.
1966 (remote_open_1): Call reset_all_packet_configs_support instead of
1967 init_all_packet_configs.
1968 (_initialize_remote): Initialize all packet configs. Assert that
1969 all packets have an associated command, except a few known
1972 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1974 * dwarf2read.c (read_subrange_type): Handle dynamic
1975 DW_AT_lower_bound attributes.
1977 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1979 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1980 dynamic bounds before computing its upper bound.
1981 (ada_discrete_type_low_bound): Same as above with the lower bound.
1983 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1985 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1986 range types. Adjust the array handling implementation to
1987 take advantage of this change.
1988 (resolve_dynamic_range): New function, mostly extracted from
1989 resolve_dynamic_bounds.
1990 (resolve_dynamic_array): New function, mostly extracted from
1991 resolve_dynamic_bounds.
1992 (resolve_dynamic_bounds): Delete.
1993 (resolve_dynamic_type): Reimplement. Add handling of
1994 TYPE_CODE_RANGE types.
1996 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1998 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1999 handling of parallel ___XA types.
2001 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2003 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2004 unnecessary second call to static_unwrap_type.
2006 2014-04-27 Hui Zhu <hui@codesourcery.com>
2008 * stack.c (print_frame_info): Call do_gdb_disassembly with
2009 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2011 2014-04-26 Doug Evans <xdje42@gmail.com>
2013 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2015 2014-04-25 Pedro Alves <palves@redhat.com>
2018 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2019 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2020 and newline from built string.
2021 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2022 (linux_ptrace_attach_fail_reason): ... this.
2023 * linux-nat.c (linux_nat_attach): Adjust to use
2024 linux_ptrace_attach_fail_reason.
2026 2014-04-25 Pedro Alves <palves@redhat.com>
2028 * remote.c (struct remote_state): Remove multi_process_aware,
2029 non_stop_aware, cond_tracepoints, cond_breakpoints,
2030 breakpoint_commands, fast_tracepoints, static_tracepoints,
2031 install_in_trace, disconnected_tracing,
2032 enable_disable_tracepoints, string_tracing, and
2033 augmented_libraries_svr4_read fields.
2034 (remote_multi_process_p): Move further below in the file.
2035 (struct packet_config): Add comments.
2036 (update_packet_config): Delete function.
2037 (show_packet_config_cmd): Use packet_config_support.
2038 (add_packet_config_cmd): Use NULL as set callback.
2039 (packet_ok): "set remote foo-packet"-style commands no longer
2040 change config->supported -- adjust.
2041 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2042 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2043 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2044 (PACKET_QNonStop, PACKET_multiprocess_feature)
2045 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2046 (PACKET_DisconnectedTracing_feature)
2047 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2048 (set_remote_protocol_packet_cmd): Delete function.
2049 (packet_config_support, packet_support): New functions.
2050 (set_remote_protocol_Z_packet_cmd): Don't call
2051 update_packet_config.
2052 (remote_query_attached, remote_pass_signals)
2053 (remote_program_signals, remote_threads_info)
2054 (remote_threads_extra_info, remote_start_remote): Use
2056 (remote_start_remote): Use packet_config_support and
2058 (init_all_packet_configs): Set all packets to unknown support,
2059 instead of calling update_packet_config.
2060 (remote_check_symbols): Use packet_support.
2061 (remote_supported_packet): Unconditionally set the packet config's
2063 (remote_multi_process_feature, remote_non_stop_feature)
2064 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2065 (remote_breakpoint_commands_feature)
2066 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2067 (remote_install_in_trace_feature)
2068 (remote_disconnected_tracing_feature)
2069 (remote_enable_disable_tracepoint_feature)
2070 (remote_string_tracing_feature)
2071 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2072 (remote_protocol_features): Adjust to use remote_supported_packet
2073 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2074 "ConditionalTracepoints", "ConditionalBreakpoints",
2075 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2076 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2077 "EnableDisableTracepoints", and "tracenz".
2078 (remote_query_supported): Use packet_support.
2079 (remote_open_1): Adjust.
2080 (extended_remote_attach_1): Use packet_support. Switch on the
2081 result of packet_ok instead of checking whether the packet ended
2083 (remote_vcont_resume): Use packet_support.
2084 (remote_resume, remote_stop_ns, fetch_register_using_p)
2085 (remote_prepare_to_store, store_register_using_P)
2086 (check_binary_download, remote_write_bytes): Use packet_support.
2087 (remote_vkill): Use packet_support. Switch on the result of
2088 packet_ok instead of checking whether the packet ended up
2090 (extended_remote_supports_disable_randomization): Use
2092 (extended_remote_run): Switch on the result of packet_ok instead
2093 of checking whether the packet ended up disabled.
2094 (remote_insert_breakpoint, remote_remove_breakpoint)
2095 (remote_insert_watchpoint, remote_remove_watchpoint)
2096 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2098 (remote_search_memory): Use packet_config_support.
2099 (remote_get_thread_local_address, remote_get_tib_address)
2100 (remote_hostio_send_command, remote_can_execute_reverse): Use
2102 (remote_supports_cond_tracepoints)
2103 (remote_supports_cond_breakpoints)
2104 (remote_supports_fast_tracepoints)
2105 (remote_supports_static_tracepoints)
2106 (remote_supports_install_in_trace)
2107 (remote_supports_enable_disable_tracepoint)
2108 (remote_supports_string_tracing)
2109 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2110 the packet config says the feature is enabled or disabled.
2111 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2112 (remote_get_trace_status): Use packet_support.
2113 (remote_set_disconnected_tracing): Adjust to check whether the
2114 feature is enabled with packet_support.
2115 (remote_set_trace_buffer_size, remote_use_agent)
2116 (remote_can_use_agent, remote_supports_btrace): Use
2118 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2119 Use packet_config_support.
2120 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2121 the packet config says the feature is enabled or disabled.
2122 (set_range_stepping): Use packet_support.
2124 2014-04-25 Tom Tromey <tromey@redhat.com>
2126 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2129 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2131 * NEWS: Mention support for C99 variable length arrays.
2133 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2135 * ada-lang.c (standard_exc): Expand introductory comment.
2137 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2138 Walfred Tedeschi <walfred.tedeschi@intel.com>
2140 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2142 (amd64_linux_read_description): Add code to handle AVX512 xstate
2143 mask and return respective tdesc.
2144 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2145 and features/i386/x32-avx512-linux.c.
2146 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2147 (amd64_linux_core_read_description): Add code to handle AVX512
2148 xstate mask and return respective tdesc.
2149 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2150 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2152 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2153 (tdesc_amd64_avx512_linux): New prototype.
2154 (tdesc_x32_avx512_linux): Likewise.
2155 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2156 features/i386/x32-avx512.c.
2157 (amd64_ymm_avx512_names): New register names for pseudo
2159 (amd64_ymmh_avx512_names): New register names for raw registers
2161 (amd64_k_names): New register names for K registers.
2162 (amd64_zmmh_names): New register names for ZMM raw registers.
2163 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2164 (amd64_xmm_avx512_names): New register names for XMM16-31
2166 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2168 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2169 if feature is present.
2170 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2171 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2172 (AMD64_NUM_REGS): Adjust to new number of registers.
2173 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2174 registers supplied via XSTATE by AVX512 registers.
2175 (i386_linux_read_description): Add case for AVX512.
2176 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2177 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2178 (i386_linux_core_read_description): Add case for AVX512.
2179 (i386_linux_init_abi): Install supported register note section
2181 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2183 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2184 registers to be number of zmm7h + 1.
2185 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2186 * i386-tdep.c: Include features/i386/i386-avx512.c.
2187 (i386_zmm_names): Add ZMM pseudo register names array.
2188 (i386_zmmh_names): Add ZMM raw register names array.
2189 (i386_k_names): Add K raw register names array.
2190 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2191 registers. AVX512 has 16 more ZMM registers than there are YMM
2193 (i386_zmmh_regnum_p): Add function to look up register number of
2195 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2196 (i386_k_regnum_p): Likewise for K raw registers.
2197 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2198 registers added by AVX512.
2199 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2200 registers added by AVX512.
2201 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2203 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2204 (i386_pseudo_register_name): Add ZMM pseudo registers.
2205 (i386_zmm_type): Construct and return vector registers type for ZMM
2207 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2208 ZMM0-31 pseudo registers and K registers.
2209 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2210 and YMM16-31 registers from register cache.
2211 (i386_pseudo_register_write): Add code to write K, ZMM and
2213 (i386_register_reggroup_p): Add code to include/exclude AVX512
2214 registers in/from respective register groups.
2215 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2216 registers if feature is present in xcr0.
2217 (i386_gdbarch_init): Add code to initialize AVX512 feature
2218 variables in tdep structure, wire in pseudo registers and call
2219 initialize_tdesc_i386_avx512.
2220 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2222 (i386_regnum): Add AVX512 registers.
2223 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2224 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2225 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2226 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2228 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2229 (i386_ymm_avx512_regnum_p): Likewise.
2230 (i386_k_regnum_p): Likewise.
2231 (i386_zmm_regnum_p): Likewise.
2232 (i386_zmmh_regnum_p): Likewise.
2233 * i387-tdep.c : Update year in copyright notice.
2234 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2236 (XSAVE_YMM_AVX512_ADDR): New macro.
2237 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2239 (XSAVE_XMM_AVX512_ADDR): New macro.
2240 (xsave_avx512_k_offset): New table for K register offsets in
2242 (XSAVE_AVX512_K_ADDR): New macro.
2243 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2245 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2246 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2248 (i387_collect_xsave): Add code to collect AVX512 registers from
2250 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2251 of XMM16-31 registers.
2252 (I387_NUM_K_REGS): New define for number of K registers.
2253 (I387_K0_REGNUM): New define for K0 register number.
2254 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2255 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2256 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2258 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2259 (I387_XMM16_REGNUM): New define for XMM16 register number.
2260 (I387_YMM0_REGNUM): New define for YMM0 register number.
2261 (I387_KEND_REGNUM): New define for last K register number.
2262 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2263 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2265 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2267 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2269 * features/Makefile: Add AVX512 related files.
2270 * features/i386/32bit-avx512.xml: New file.
2271 * features/i386/64bit-avx512.xml: Likewise.
2272 * features/i386/amd64-avx512-linux.c: Likewise.
2273 * features/i386/amd64-avx512-linux.xml: Likewise.
2274 * features/i386/amd64-avx512.c: Likewise.
2275 * features/i386/amd64-avx512.xml: Likewise.
2276 * features/i386/i386-avx512-linux.c: Likewise.
2277 * features/i386/i386-avx512-linux.xml: Likewise.
2278 * features/i386/i386-avx512.c: Likewise.
2279 * features/i386/i386-avx512.xml: Likewise.
2280 * features/i386/x32-avx512-linux.c: Likewise.
2281 * features/i386/x32-avx512-linux.xml: Likewise.
2282 * features/i386/x32-avx512.c: Likewise.
2283 * features/i386/x32-avx512.xml: Likewise.
2284 * regformats/i386/amd64-avx512-linux.dat: New file.
2285 * regformats/i386/amd64-avx512.dat: Likewise.
2286 * regformats/i386/i386-avx512-linux.dat: Likewise.
2287 * regformats/i386/i386-avx512.dat: Likewise.
2288 * regformats/i386/x32-avx512-linux.dat: Likewise.
2289 * regformats/i386/x32-avx512.dat: Likewise.
2290 * NEWS: Add note about new support for AVX512.
2293 2014-04-23 Pedro Alves <palves@redhat.com>
2295 * breakpoint.c (insert_bp_location): Tolerate errors if the
2296 breakpoint is set in a user-loaded objfile.
2297 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2298 location is marked shlib_disabled. If the breakpoint is set in a
2299 user-loaded objfile is a GDB-side memory breakpoint, validate it
2300 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2301 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2303 * mem-break.c (memory_validate_breakpoint): New function.
2304 * objfiles.c (userloaded_objfile_contains_address_p): New
2306 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2307 * target.h (memory_validate_breakpoint): New declaration.
2309 2014-04-23 Pedro Alves <palves@redhat.com>
2311 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2312 the breakpoint is set in a shared library, only suppress
2313 errors for software breakpoints, not hardware breakpoints.
2315 2014-04-22 Pedro Alves <palves@redhat.com>
2317 * infrun.c (schedlock_applies): New function, factored out from
2318 find_thread_needs_step_over.
2319 (find_thread_needs_step_over): Use it.
2320 (switch_back_to_stepped_thread): Always clear trap_expected if the
2321 step over is finished. Return early if scheduler locking applies.
2322 Look for the stepping thread and a potential step-over thread with
2324 (currently_stepping_or_nexting_callback): Delete.
2326 2014-04-22 Nick Clifton <nickc@redhat.com>
2328 * NEWS: Mention that ARM sim now supports tracing.
2330 2014-04-22 Yao Qi <yao@codesourcery.com>
2332 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2334 * tracefile.c (tracefile_fetch_registers): ... it. New
2336 * tracefile.h (tracefile_fetch_registers): Declare.
2337 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2338 tracefile_fetch_registers.
2340 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2343 * windows-nat.c (thread_rec): Don't display a warning when
2344 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2345 fails for any reason, set th->suspended to -1, so that we don't
2346 try to resume such a thread. Also, don't return NULL in these
2347 cases, to avoid completely ruin the session due to "PC register is
2348 not available" error.
2349 (do_windows_fetch_inferior_registers): Check errors in
2350 GetThreadContext call.
2351 (windows_continue): Accept an additional argument KILLED; if not
2352 zero, ignore errors in the SetThreadContext call, since the
2353 inferior was killed and is shutting down.
2354 (windows_resume, get_windows_debug_event)
2355 (windows_create_inferior, windows_mourn_inferior)
2356 (windows_kill_inferior): All callers of windows_continue changed
2357 to adjust to its new calling sequence.
2359 2014-04-19 Yao Qi <yao@codesourcery.com>
2361 * ctf.c (ctf_open): Call post_create_inferior.
2363 2014-04-19 Yao Qi <yao@codesourcery.com>
2365 * ctf.c (handle_id): New static variable.
2366 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2367 value. Get the declaration of event "register" and get length
2368 of field "contents".
2370 2014-04-19 Yao Qi <yao@codesourcery.com>
2372 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2374 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2376 * valops.c (oload_method_static): Remove unnecessary argument
2377 METHOD. Update all callers.
2379 2014-04-18 Pedro alves <palves@redhat.com>
2380 Tom Tromey <tromey@redhat.com>
2383 * frame.c (get_prev_frame_1): Rename to ...
2384 (get_prev_frame_always): ... this, and make extern. Adjust.
2385 (skip_artificial_frames): Use get_prev_frame_always.
2386 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2387 (get_frame_unwind_stop_reason): Adjust to rename.
2388 * frame.h (get_prev_frame_always): Declare.
2389 * inline-frame.c: Include frame.h.
2390 (inline_frame_this_id): Use get_prev_frame_always.
2392 2014-04-18 Tristan Gingold <gingold@adacore.com>
2394 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2395 code by using bfd_mach_o_get_base_address.
2397 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2399 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2400 (spu_ax_pseudo_register_collect): New function.
2401 (spu_ax_pseudo_register_push_stack): Likewise.
2402 (spu_dwarf_reg_to_regnum): Likewise.
2403 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2405 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2407 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2408 Replace FRAME argument with FRAME_ID.
2409 * gdbarch.c, gdbarch.h: Regenerate.
2410 * findvar.c (default_value_from_register): Add GDBARCH argument;
2411 replace FRAME by FRAME_ID. No longer call get_frame_id.
2412 (value_from_register): Update call to gdbarch_value_from_register.
2413 * value.h (default_value_from_register): Update prototype.
2414 * s390-linux-tdep.c (s390_value_from_register): Update interface
2415 and call to default_value_from_register.
2416 * spu-tdep.c (spu_value_from_register): Likewise.
2418 * findvar.c (address_from_register): Remove TYPE argument.
2419 Do not call value_from_register; use gdbarch_value_from_register
2420 with null_frame_id instead.
2421 * value.h (address_from_register): Update prototype.
2422 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2423 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2424 address_from_register interface change.
2426 2014-04-17 Yao Qi <yao@codesourcery.com>
2428 * gdbtypes.h: Update comments to link to types and macros'
2431 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2433 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2435 2014-04-16 Keith Seitz <keiths@redhat.com>
2438 * dwarf2read.c (skip_one_die): Check that all relative-offset
2439 sibling DIEs fall within range of the current reader's buffer.
2440 (read_partial_die): Likewise.
2442 2014-04-16 Keith Seitz <keiths@redhat.com>
2445 * cp-namespace.c (lookup_symbol_file): If the type name of
2446 `this' is NULL, return immediately.
2448 2014-04-14 Keith Seitz <keiths@redhat.com>
2451 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2452 from symbol_matches_domain in symtab.c. All local callers
2453 of symbol_matches_domain updated.
2454 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2455 search STRUCT_DOMAIN.
2456 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2457 independently. standard_lookup will do that automatically.
2458 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2459 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2460 (cp_lookup_symbol_in_namespace): Likewise.
2461 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2462 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2463 may return a STRUCT_DOMAIN match.
2464 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2465 * cp-support.c: Include language.h.
2466 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2468 * psymtab.c (match_partial_symbol): Compare the requested
2469 domain with the symbol's domain directly.
2470 (lookup_partial_symbol): Likewise.
2471 * symtab.c (lookup_symbol_in_language): Explain when/why
2472 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2473 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2474 appropriate languages.
2475 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2476 and moved to ada-lang.c
2477 (lookup_block_symbol): Explain that this function only returns
2478 symbol matching the requested DOMAIN.
2479 Compare the requested domain with the symbol's domain directly.
2480 (iterate_over_symbols): Compare the requested domain with the
2481 symbol's domain directly.
2482 * symtab.h (symbol_matches_domain): Remove.
2484 2014-04-14 Tom Tromey <tromey@redhat.com>
2487 * c-exp.y (type_aggregate_p): New function.
2488 (qualified_name, classify_inner_name): Use it.
2489 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2490 and TYPE_TARGET_TYPE of an enum type.
2491 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2493 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2494 handle TYPE_DECLARED_CLASS.
2495 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2497 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2498 * valops.c (enum_constant_from_type): New function.
2499 (value_aggregate_elt): Use it.
2500 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2503 2014-04-14 Tom Tromey <tromey@redhat.com>
2505 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2506 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2508 * value.h (value_aggregate_elt): Update.
2510 2014-04-14 Tom Tromey <tromey@redhat.com>
2512 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2514 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2516 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2517 (evaluate_subexp_standard): Pass noside argument.
2518 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2519 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2520 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2521 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2522 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2524 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2526 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2527 points to a constant blob.
2529 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2531 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2532 property and store it as the high bound and flag the range accordingly.
2533 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2534 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2535 * gdbtypes.h (enum range_flags): New enum.
2536 (struct range_bounds): Add flags member.
2538 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2540 * c-typeprint.c (c_type_print_varspec_suffix): Added
2541 check for not yet resolved high bound. If unresolved, print
2542 "variable length" string to the console instead of random
2545 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2547 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2549 (ada_template_to_fixed_record_type_1): Likewise.
2550 (ada_to_fixed_type_1): Likewise.
2551 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2552 (cp_print_value): Likewise.
2553 * d-valprint.c (dynamic_array_type): Likewise.
2554 * findvar.c (address_of_variable): Likewise.
2555 * jv-valprint.c (java_value_print): Likewise.
2556 * valops.c (value_ind): Likewise.
2557 * value.c (coerce_ref): Likewise.
2559 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2561 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2562 value and retrieve the dynamic type size.
2564 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2566 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2567 passed to sizeof is dynamic evaluate the argument to compute the length.
2569 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2570 Joel Brobecker <brobecker@adacore.com>
2572 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2573 (dwarf2_evaluate_property): New function.
2574 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2575 * dwarf2read.c (attr_to_dynamic_prop): New function.
2576 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2578 * gdbtypes.c: Include dwarf2loc.h.
2579 (is_dynamic_type): New function.
2580 (resolve_dynamic_type): New function.
2581 (resolve_dynamic_bounds): New function.
2582 (get_type_length): New function.
2583 (check_typedef): Use get_type_length to compute type length.
2584 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2585 (TYPE_LOW_BOUND_KIND): New macro.
2586 (is_dynamic_type): New function prototype.
2587 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2588 to resolve dynamic properties of the type. Update comment.
2589 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2591 2014-04-14 Richard Henderson <rth@redhat.com>
2593 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2595 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2596 Doug Evans <xdje42@gmail.com>
2598 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2599 dereference TYPE_CODE_REF values.
2601 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2603 Revert the following changes due to regressions:
2605 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2606 (dwarf2_evaluate_property): New function.
2607 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2608 * dwarf2read.c (attr_to_dynamic_prop): New function.
2609 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2611 * gdbtypes.c: Include dwarf2loc.h.
2612 (is_dynamic_type): New function.
2613 (resolve_dynamic_type): New function.
2614 (resolve_dynamic_bounds): New function.
2615 (get_type_length): New function.
2616 (check_typedef): Use get_type_length to compute type length.
2617 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2618 (TYPE_LOW_BOUND_KIND): New macro.
2619 (is_dynamic_type): New function prototype.
2620 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2621 to resolve dynamic properties of the type. Update comment.
2622 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2624 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2625 passed to sizeof is dynamic evaluate the argument to compute the length.
2627 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2628 value and retrieve the dynamic type size.
2630 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2631 (ada_template_to_fixed_record_type_1): Likewise.
2632 (ada_to_fixed_type_1): Likewise.
2633 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2634 (cp_print_value): Likewise.
2635 * d-valprint.c (dynamic_array_type): Likewise.
2636 * eval.c (evaluate_subexp_with_coercion): Likewise.
2637 * findvar.c (address_of_variable): Likewise.
2638 * jv-valprint.c (java_value_print): Likewise.
2639 * valops.c (value_ind): Likewise.
2640 * value.c (coerce_ref): Likewise.
2642 * c-typeprint.c (c_type_print_varspec_suffix): Added
2643 check for not yet resolved high bound. If unresolved, print
2644 "variable length" string to the console instead of random
2647 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2648 property and store it as the high bound and flag the range accordingly.
2649 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2650 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2651 * gdbtypes.h (enum range_flags): New enum.
2652 (struct range_bounds): Add flags member.
2654 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2655 points to a constant blob.
2657 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2658 (evaluate_subexp_standard): Pass noside argument.
2659 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2660 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2661 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2662 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2663 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2665 2014-04-11 Keith Seitz <keiths@redhat.com>
2668 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2669 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2672 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2674 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2675 (evaluate_subexp_standard): Pass noside argument.
2676 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2677 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2678 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2679 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2680 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2682 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2684 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2685 points to a constant blob.
2687 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2689 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2690 property and store it as the high bound and flag the range accordingly.
2691 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2692 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2693 * gdbtypes.h (enum range_flags): New enum.
2694 (struct range_bounds): Add flags member.
2696 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2698 * c-typeprint.c (c_type_print_varspec_suffix): Added
2699 check for not yet resolved high bound. If unresolved, print
2700 "variable length" string to the console instead of random
2703 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2705 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2706 (ada_template_to_fixed_record_type_1): Likewise.
2707 (ada_to_fixed_type_1): Likewise.
2708 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2709 (cp_print_value): Likewise.
2710 * d-valprint.c (dynamic_array_type): Likewise.
2711 * eval.c (evaluate_subexp_with_coercion): Likewise.
2712 * findvar.c (address_of_variable): Likewise.
2713 * jv-valprint.c (java_value_print): Likewise.
2714 * valops.c (value_ind): Likewise.
2715 * value.c (coerce_ref): Likewise.
2717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2719 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2720 value and retrieve the dynamic type size.
2722 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2724 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2725 passed to sizeof is dynamic evaluate the argument to compute the length.
2727 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2729 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2730 (dwarf2_evaluate_property): New function.
2731 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2732 * dwarf2read.c (attr_to_dynamic_prop): New function.
2733 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2735 * gdbtypes.c: Include dwarf2loc.h.
2736 (is_dynamic_type): New function.
2737 (resolve_dynamic_type): New function.
2738 (resolve_dynamic_bounds): New function.
2739 (get_type_length): New function.
2740 (check_typedef): Use get_type_length to compute type length.
2741 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2742 (TYPE_LOW_BOUND_KIND): New macro.
2743 (is_dynamic_type): New function prototype.
2744 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2745 to resolve dynamic properties of the type. Update comment.
2746 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2748 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2750 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2751 declaring high/low bounds and change uses accordingly. Call
2752 create_range_type instead of create_static_range_type.
2753 * gdbtypes.c (create_range_type): New function.
2754 (create_range_type): Convert bounds into struct bound_prop and pass
2755 them to create_range_type.
2756 * gdbtypes.h (struct bound_prop): New struct.
2757 (create_range_type): New function prototype.
2758 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2759 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2760 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2762 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2764 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2766 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2767 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2768 * ada-lang.c: All uses of create_range_type updated.
2769 * coffread.c: All uses of create_range_type updated.
2770 * dwarf2read.c: All uses of create_range_type updated.
2771 * f-exp.y: All uses of create_range_type updated.
2772 * m2-valprint.c: All uses of create_range_type updated.
2773 * mdebugread.c: All uses of create_range_type updated.
2774 * stabsread.c: All uses of create_range_type updated.
2775 * valops.c: All uses of create_range_type updated.
2776 * valprint.c: All uses of create_range_type updated.
2778 2014-04-10 Pedro Alves <palves@redhat.com>
2780 * breakpoint.c (single_step_breakpoints)
2781 (single_step_gdbarch): Move up in the file.
2782 (one_breakpoint_xfer_memory): New function, factored out from ...
2783 (breakpoint_xfer_memory): ... here. Also process single-step
2786 2014-04-09 Tristan Gingold <gingold@adacore.com>
2788 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2790 (darwin_decode_exception_message): Free port only after use.
2792 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2794 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2795 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2796 when setting the size of call_length.
2798 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2800 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2801 dereference TYPE_CODE_REF values.
2803 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2805 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2806 end of warning message.
2808 2014-04-03 Doug Evans <dje@google.com>
2810 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2811 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2813 2014-04-02 Alan Modra <amodra@gmail.com>
2815 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2816 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2817 (struct symbol_file_add_from_memory_args): Add size field.
2818 (find_vdso_size): New function.
2819 (add_vsyscall_page): Attempt to find vdso size.
2821 2014-04-01 Doug Evans <dje@google.com>
2823 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2825 2014-04-01 Tristan Gingold <gingold@adacore.com>
2827 * darwin-nat.c (darwin_encode_reply): Add prototype.
2828 (darwin_decode_exception_message): Reply to unknown inferiors.
2829 (darwin_decode_message): Handle message by id. Ignore message
2830 to unknown inferior.
2831 (darwin_wait): Discard unknown messages, add debug trace.
2833 2014-03-31 Doug Evans <dje@google.com>
2835 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2838 2014-03-31 Doug Evans <dje@google.com>
2840 New option "set print symbol-loading".
2842 * solib.c (solib_read_symbols): Only print symbol loading messages
2844 (solib_add): If symbol loading is in "brief" mode, notify user
2845 symbols are being loaded.
2846 (reload_shared_libraries_1): Ditto.
2847 * symfile.c (print_symbol_loading_off): New static global.
2848 (print_symbol_loading_brief): New static global.
2849 (print_symbol_loading_full): New static global.
2850 (print_symbol_loading_enums): New static global.
2851 (print_symbol_loading): New static global.
2852 (print_symbol_loading_p): New function.
2853 (symbol_file_add_with_addrs): Only print symbol loading messages
2855 (_initialize_symfile): Register "print symbol-loading" set/show
2857 * symfile.h (print_symbol_loading_p): Declare.
2859 2014-03-30 Doug Evans <xdje42@gmail.com>
2861 * infrun.c (set_last_target_status): New function.
2862 (handle_inferior_event): Call it.
2864 2014-03-30 Doug Evans <xdje42@gmail.com>
2866 * inferior.h (enum stop_kind): Improve comment.
2868 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2870 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2871 a reference, strip the reference layer before calling
2872 the lang_ops value_has_mutated callback.
2874 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2876 Remove some globals from our parser.
2877 * language.c (unk_lang_parser): Add "struct parser_state"
2879 * language.h (struct language_defn) <la_parser>: Likewise.
2880 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2881 (initialize_expout): Add "struct parser_state" argument.
2882 Rewrite function to use the parser state.
2883 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2884 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2885 write_exp_elt_longcst, write_exp_elt_dblcst,
2886 write_exp_elt_decfloatcst, write_exp_elt_type,
2887 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2888 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2889 write_dollar_variable): Likewise.
2890 (parse_exp_in_context_1): Use parser state.
2891 (insert_type_address_space): Add "struct parser_state" argument.
2893 (increase_expout_size): New function.
2894 * parser-defs.h: Forward declare "struct language_defn" and
2895 "struct parser_state".
2896 (expout, expout_size, expout_ptr): Remove extern declarations.
2897 (parse_gdbarch, parse_language): Rewrite macro declarations to
2898 accept the parser state.
2899 (struct parser_state): New struct.
2900 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2901 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2902 write_exp_elt_decfloatcst, write_exp_elt_type,
2903 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2904 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2905 write_exp_msymbol, write_dollar_variable,
2906 mark_struct_expression, insert_type_address_space): Add "struct
2907 parser_state" argument.
2908 (increase_expout_size): New function.
2909 * utils.c (do_clear_parser_state): New function.
2910 (make_cleanup_clear_parser_state): Likewise.
2911 * utils.h (make_cleanup_clear_parser_state): New function
2913 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2914 Update calls to write_exp* in order to pass the parser state.
2915 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2916 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2917 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2918 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2919 * stap-probe.c (stap_parse_register_operand): Likewise.
2920 (stap_parse_single_operand): Likewise.
2921 (stap_parse_argument_1): Likewise.
2922 (stap_parse_argument): Use parser state.
2923 * stap-probe.h: Include "parser-defs.h".
2924 (struct stap_parse_info) <pstate>: New field.
2925 * c-exp.y (parse_type): Rewrite to use parser state.
2926 (yyparse): Redefine to c_parse_internal.
2927 (pstate): New global variable.
2928 (parse_number): Add "struct parser_state" argument.
2929 (write_destructor_name): Likewise.
2930 (type_exp): Update calls to write_exp* and similars in order to
2932 (exp1, exp, variable, qualified_name, space_identifier,
2933 typename, typebase): Likewise.
2934 (write_destructor_name, parse_number, lex_one_token,
2935 classify_name, classify_inner_name, c_parse): Add "struct
2936 parser_state" argument. Update function to use parser state.
2937 * c-lang.h: Forward declare "struct parser_state".
2938 (c_parse): Add "struct parser_state" argument.
2939 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2940 (yyparse): Redefine macro to ada_parse_internal.
2941 (pstate): New variable.
2942 (write_int, write_object_renaming, write_var_or_type,
2943 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2944 type_int, type_long, type_long_long, type_float, type_double,
2945 type_long_double, type_char, type_boolean, type_system_address):
2946 Add "struct parser_state" argument.
2947 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2948 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2949 var_or_type, aggregate, aggregate_component_list,
2950 positional_list, others, component_group,
2951 component_associations): Update calls to write_exp* and similar
2952 functions in order to use parser state.
2953 (ada_parse, write_var_from_sym, write_int,
2954 write_exp_op_with_string, write_object_renaming,
2955 find_primitive_type, write_selectors, write_ambiguous_var,
2956 write_var_or_type, write_name_assoc, type_int, type_long,
2957 type_long_long, type_float, type_double, type_long_double,
2958 type_char, type_boolean, type_system_address): Add "struct
2959 parser_state" argument. Adjust function to use parser state.
2960 * ada-lang.c (parse): Likewise.
2961 * ada-lang.h: Forward declare "struct parser_state".
2962 (ada_parse): Add "struct parser_state" argument.
2963 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2964 calls to both functions.
2965 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2967 (yyparse): Redefine macro to f_parse_internal.
2968 (pstate): New variable.
2969 (parse_number): Add "struct parser_state" argument.
2970 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2971 and similars in order to use parser state.
2972 (parse_number): Adjust code to use parser state.
2974 (f_parse): New function.
2975 * f-lang.h: Forward declare "struct parser_state".
2976 (f_parse): Add "struct parser_state" argument.
2977 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2979 (yyparse): Redefine macro for java_parse_internal.
2980 (pstate): New variable.
2981 (push_expression_name, push_expression_name, insert_exp): Add
2982 "struct parser_state" argument.
2983 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2984 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2985 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2986 PostIncrementExpression, PostDecrementExpression,
2987 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2988 UnaryExpressionNotPlusMinus, CastExpression,
2989 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2990 RelationalExpression, EqualityExpression, AndExpression,
2991 ExclusiveOrExpression, InclusiveOrExpression,
2992 ConditionalAndExpression, ConditionalOrExpression,
2993 ConditionalExpression, Assignment, LeftHandSide): Update
2994 calls to write_exp* and similars in order to use parser state.
2995 (parse_number): Ajust code to use parser state.
2997 (java_parse): New function.
2998 (push_variable): Add "struct parser_state" argument. Adjust
2999 code to user parser state.
3000 (push_fieldnames, push_qualified_expression_name,
3001 push_expression_name, insert_exp): Likewise.
3002 * jv-lang.h: Forward declare "struct parser_state".
3003 (java_parse): Add "struct parser_state" argument.
3004 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3006 (yyparse): Redefine macro to m2_parse_internal.
3007 (pstate): New variable.
3008 (type_exp, exp, fblock, variable, type): Update calls to
3009 write_exp* and similars to use parser state.
3011 (m2_parse): New function.
3012 * m2-lang.h: Forward declare "struct parser_state".
3013 (m2_parse): Add "struct parser_state" argument.
3014 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3015 * objc-lang.h: Forward declare "struct parser_state".
3016 (end_msglist): Add "struct parser_state" argument.
3017 * p-exp.y (parse_type): Rewrite macro to use parser state.
3018 (yyparse): Redefine macro to pascal_parse_internal.
3019 (pstate): New variable.
3020 (parse_number): Add "struct parser_state" argument.
3021 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3022 write_exp* and similars in order to use parser state.
3023 (parse_number, yylex): Adjust code to use parser state.
3024 (pascal_parse): New function.
3025 * p-lang.h: Forward declare "struct parser_state".
3026 (pascal_parse): Add "struct parser_state" argument.
3027 * go-exp.y (parse_type): Rewrite macro to use parser state.
3028 (yyparse): Redefine macro to go_parse_internal.
3029 (pstate): New variable.
3030 (parse_number): Add "struct parser_state" argument.
3031 (type_exp, exp1, exp, variable, type): Update calls to
3032 write_exp* and similars in order to use parser state.
3033 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3034 to use parser state.
3035 (go_parse): Likewise.
3036 * go-lang.h: Forward declare "struct parser_state".
3037 (go_parse): Add "struct parser_state" argument.
3039 2014-03-27 Doug Evans <dje@google.com>
3041 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3043 2014-03-27 Doug Evans <dje@google.com>
3045 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3046 Remove argument abbrev_section. All callers updated.
3048 2014-03-27 Doug Evans <dje@google.com>
3050 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3051 addr_base, ranges_base.
3053 2014-03-26 Keith Seitz <keiths@redhat.com>
3055 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3056 types, not VAR_DOMAIN.
3058 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3060 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3062 * features/nios2-linux.c: Regenerated.
3063 * features/nios2.c: Regenerated.
3065 2014-03-25 Pedro Alves <palves@redhat.com>
3067 * cli/cli-script.c (script_from_file): Force the interpreter to
3070 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3072 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3073 small stack allocation.
3075 2014-03-24 Tristan Gingold <gingold@adacore.com>
3077 * darwin-nat.c (exc_server): Remove unused prototype.
3078 (darwin_dump_message): Correctly display data on x86_64.
3079 (darwin_encode_reply): Fix style.
3080 Add comments and fix indentation.
3082 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3084 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3086 2014-03-22 Doug Evans <xdje42@gmail.com>
3088 * infcmd.c: Whitespace fixes.
3089 (interrupt_command): Merge two function comments into one.
3091 2014-03-22 Doug Evans <xdje42@gmail.com>
3093 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3096 2014-03-22 Yao Qi <yao@codesourcery.com>
3098 * remote.c (target_read_live_memory): Remove.
3099 (memory_xfer_live_readonly_partial): Rename it to
3100 remote_xfer_live_readonly_partial. Remove argument 'object'.
3101 All callers updated. Call remote_read_bytes_1
3102 instead of target_read_live_memory.
3103 * tracepoint.c (set_traceframe_number): Remove.
3104 (make_cleanup_restore_traceframe_number): Likewise .
3105 * tracepoint.h (set_traceframe_number): Remove declaration.
3106 (make_cleanup_restore_traceframe_number): Likewise.
3108 2014-03-22 Yao Qi <yao@codesourcery.com>
3110 * remote.c (remote_read_bytes): Move code on reading from the
3112 (remote_read_bytes_1): ... here. New function.
3114 2014-03-22 Yao Qi <yao@codesourcery.com>
3116 * ctf.c (ctf_xfer_partial): Check the return value of
3117 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3118 return TARGET_XFER_UNAVAILABLE.
3119 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3120 * target.c (target_read_live_memory): Move it to remote.c.
3121 (memory_xfer_live_readonly_partial): Likewise.
3122 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3123 * remote.c (target_read_live_memory): Moved from target.c.
3124 (memory_xfer_live_readonly_partial): Likewise.
3125 (remote_read_bytes): Factored out from
3126 memory_xfer_partial_1.
3128 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3130 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3133 2014-03-21 Pedro Alves <palves@redhat.com>
3135 * infrun.c (normal_stop): Extend comment.
3137 2014-03-21 Hui Zhu <hui@codesourcery.com>
3138 Pedro Alves <palves@redhat.com>
3140 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3142 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3143 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3144 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3146 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3148 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3149 `z' formatted output modifier.
3151 2014-03-20 Tom Tromey <tromey@redhat.com>
3152 Sergio Durigan Junior <sergiodj@redhat.com>
3154 * probe.c (parse_probes): Turn assert into an ordinary error.
3155 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3156 exceptions when parsing probes. Rearrange the code for clarity.
3158 2014-03-20 Tom Tromey <tromey@redhat.com>
3161 * top.c (execute_command): Only dispatch events if the command
3164 2014-03-20 Tom Tromey <tromey@redhat.com>
3167 * infcall.c: Include event-top.h.
3168 (run_inferior_call): Call async_disable_stdin if needed.
3170 2014-03-20 Pedro Alves <palves@redhat.com>
3172 * infrun.c (prepare_to_proceed): Delete.
3173 (thread_still_needs_step_over): New function.
3174 (find_thread_needs_step_over): New function.
3175 (proceed): If the current thread needs a step-over, set its
3176 steping_over_breakpoint flag. Adjust to use
3177 find_thread_needs_step_over instead of prepare_to_proceed.
3178 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3179 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3181 (switch_back_to_stepped_thread): Step over breakpoints of all
3182 threads not the stepping thread, before switching back to the
3185 2014-03-20 Pedro Alves <palves@redhat.com>
3187 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3189 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3190 * infrun.c (saved_singlestep_ptid)
3191 (stepping_past_singlestep_breakpoint): Delete.
3192 (resume): Remove stepping_past_singlestep_breakpoint handling.
3193 (proceed): Store the prev_pc of the stepping thread too.
3194 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3196 (enum infwait_states): Delete infwait_thread_hop_state.
3197 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3199 (handle_inferior_event): Adjust.
3200 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3201 handling and the thread-hop code. Before removing single-step
3202 breakpoints, check whether the thread hit a single-step breakpoint
3203 of another thread. If it did, the trap is not a random signal.
3204 (switch_back_to_stepped_thread): If the event thread hit a
3205 single-step breakpoint, unblock it before switching to the
3206 stepping thread. Handle the case of the stepped thread having
3208 (keep_going): Handle the case of the current thread moving past a
3209 single-step breakpoint.
3211 2014-03-20 Pedro Alves <palves@redhat.com>
3214 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3215 are being stepped over.
3216 (breakpoint_address_match): Make extern.
3217 * breakpoint.h (breakpoint_address_match): New declaration.
3218 * inferior.h (stepping_past_instruction_at): New declaration.
3219 * infrun.c (struct step_over_info): New type.
3220 (step_over_info): New global.
3221 (set_step_over_info, clear_step_over_info)
3222 (stepping_past_instruction_at): New functions.
3223 (handle_inferior_event): Clear the step-over info when
3224 trap_expected is cleared.
3225 (resume): Remove now stale comment.
3226 (clear_proceed_status): Clear step-over info.
3227 (proceed): Adjust step-over handling to set or clear the step-over
3228 info instead of removing all breakpoints.
3229 (handle_signal_stop): When setting up a thread-hop, don't remove
3231 (stop_stepping): Clear step-over info.
3232 (keep_going): Adjust step-over handling to set or clear step-over
3233 info and then always inserting breakpoints, instead of removing
3234 all breakpoints when stepping over one.
3236 2014-03-20 Pedro Alves <palves@redhat.com>
3238 * infrun.c (previous_inferior_ptid): Adjust comment.
3239 (deferred_step_ptid): Delete.
3240 (infrun_thread_ptid_changed, prepare_to_proceed)
3241 (init_wait_for_inferior): Adjust.
3242 (handle_signal_stop): Delete deferred_step_ptid handling.
3244 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3247 * defs.h (sync_quit_force_run): New declaration.
3248 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3249 * event-top.c (async_sigterm_handler): New declaration.
3250 (async_sigterm_token): New variable.
3251 (async_init_signals): Create also async_sigterm_token.
3252 (async_sigterm_handler): New function.
3253 (sync_quit_force_run): New variable.
3254 (handle_sigterm): Replace quit_force call by other calls.
3255 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3257 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3259 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3260 offset into SPE pseudo registers.
3262 2014-03-18 Pedro Alves <palves@redhat.com>
3265 * inferior.h (print_stop_event): Declare.
3266 * infrun.c (print_stop_event): New, factored out from ...
3267 (normal_stop): ... this.
3268 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3269 of bpstat_print/print_stack_frame.
3271 2014-03-17 Tom Tromey <tromey@redhat.com>
3273 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3275 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3277 * ada-lang.c (decode_constrained_packed_array): Perform a
3278 minimal coercion for reference with coerce_ref instead of
3281 2014-03-17 Tristan Gingold <gingold@adacore.com>
3283 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3284 (darwin_solib_create_inferior_hook): Emit a warning if version
3287 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3289 * python/py-value.c (get_field_flag): Cast flag_name argument to
3290 PyObject_GetAttrString to support Python 2.4.
3292 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3294 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3295 (Global Maintainers): Remove Jan Kratochvil.
3297 2014-03-14 Pedro Alves <palves@redhat.com>
3299 * inferior.h (terminal_ours_for_output): Rename to ...
3300 (child_terminal_ours_for_output): ... this.
3301 (terminal_save_ours): Rename to ...
3302 (child_terminal_save_ours): ... this.
3303 (terminal_ours): Rename to ...
3304 (child_terminal_ours): ... this.
3305 (terminal_inferior): Rename to ...
3306 (child_terminal_inferior): ... this.
3307 (terminal_init_inferior): Rename to ...
3308 (child_terminal_init_inferior): ... this.
3309 (terminal_init_inferior_with_pgrp): Rename to ...
3310 (child_terminal_init_inferior_with_pgrp): ... this.
3311 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3312 (child_terminal_init_with_pgrp): ... this.
3313 (terminal_save_ours): Rename to ...
3314 (child_terminal_save_ours): ... this.
3315 (terminal_init_inferior): Rename to ...
3316 (child_terminal_init): ... this. Adjust.
3317 (terminal_inferior): Rename to ...
3318 (child_terminal_inferior): ... this.
3319 (terminal_ours_for_output): Rename to ...
3320 (child_terminal_ours_for_output): ... this. Adjust.
3321 (terminal_ours): Rename to ...
3322 (child_terminal_ours): ... this.
3323 (terminal_ours_1): Rename to ...
3324 (child_terminal_ours_1): ... this. Adjust.
3325 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3326 * windows-nat.c (do_initial_windows_stuff): Adjust.
3327 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3328 (gnu_terminal_init): ... this. Adjust.
3329 (gnu_target): Adjust.
3330 * inf-child.c (inf_child_target): Adjust.
3332 2014-03-13 Doug Evans <xdje42@gmail.com>
3335 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3338 2014-03-13 Doug Evans <xdje42@gmail.com>
3340 * value.c (record_latest_value): Call release_value_or_incref
3341 instead of release_value.
3343 2014-03-13 Pedro Alves <palves@redhat.com>
3345 * procfs.c (procfs_target): Don't override to_shortname,
3346 to_longname or to_doc.
3348 2014-03-13 Pedro Alves <palves@redhat.com>
3350 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3351 Unix in user visible strings.
3353 2014-03-12 Stan Shebs <stan@codesourcery.com>
3355 * gdbtypes.h: Annotate comments for Doxygen, add a page
3356 block comment with some general info.
3358 2014-03-12 Pedro Alves <palves@redhat.com>
3360 * infcmd.c (prepare_execution_command): New function, factored out
3361 from several execution commands.
3362 (run_command_1, continue_command, step_1, jump_command)
3363 (signal_command, until_command, advance_command, finish_command)
3364 (attach_command): Use prepare_execution_command.
3366 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3368 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3371 (struct arm_linux_thread_points): Removed.
3372 (struct arm_linux_process_info): New.
3373 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3374 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3375 (arm_linux_find_breakpoints_by_tid): Removed.
3376 (struct arch_lwp_info): New.
3377 (arm_linux_find_process_pid): New functions.
3378 (arm_linux_add_process): New functions.
3379 (arm_linux_process_info_get): New functions.
3380 (arm_linux_forget_process): New function.
3381 (arm_linux_get_debug_reg_state): New function.
3382 (struct update_registers_data): New.
3383 (update_registers_callback): New function.
3384 (arm_linux_insert_hw_breakpoint1): Updated.
3385 (arm_linux_remove_hw_breakpoint1): Updated.
3386 (arm_linux_insert_hw_breakpoint): Updated.
3387 (arm_linux_remove_hw_breakpoint): Updated.
3388 (arm_linux_insert_watchpoint): Updated.
3389 (arm_linux_remove_watchpoint): Updated.
3390 (arm_linux_new_thread): Updated.
3391 (arm_linux_prepare_to_resume): New function.
3392 (arm_linux_new_fork): New function.
3393 (_initialize_arm_linux_nat): Updated.
3395 2014-03-12 Pedro Alves <palves@redhat.com>
3397 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3399 2014-03-12 Tom Tromey <tromey@redhat.com>
3401 * inf-child.c (return_zero): New function.
3402 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3403 * aix-thread.c (aix_thread_inferior_created): New function.
3404 (aix_thread_attach): Remove.
3405 (init_aix_thread_ops): Don't set to_attach.
3406 (_initialize_aix_thread): Register inferior_created observer.
3407 * corelow.c (init_core_ops): Don't set to_attach or
3409 * exec.c (init_exec_ops): Don't set to_attach or
3411 * infcmd.c (run_command_1): Use find_run_target. Make direct
3413 (attach_command): Use find_attach_target. Make direct target
3415 * record-btrace.c (init_record_btrace_ops): Don't set
3417 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3419 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3420 set to_create_inferior.
3421 * target.c (complete_target_initialization): Add assertion.
3422 (target_create_inferior): Remove.
3423 (find_default_attach, find_default_create_inferior): Remove.
3424 (find_attach_target, find_run_target): New functions.
3425 (find_default_is_async_p, find_default_can_async_p)
3426 (target_supports_non_stop, target_attach): Remove.
3427 (init_dummy_target): Don't set to_create_inferior or
3428 to_supports_non_stop.
3429 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3430 TARGET_DEFAULT_FUNC.
3431 <to_create_inferior>: Add comment.
3432 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3433 TARGET_DEFAULT_RETURN.
3434 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3435 (find_attach_target, find_run_target): Declare.
3436 (target_create_inferior): Remove.
3437 (target_has_execution_1): Update comment.
3438 (target_supports_non_stop): Remove.
3439 * target-delegates.c: Rebuild.
3441 2014-03-12 Pedro Alves <palves@redhat.com>
3443 * inf-child.h: Update comment to not mention Unix.
3445 2014-03-12 Pedro Alves <palves@redhat.com>
3447 * inf-child.c: Update top comment to not mention Unix. Add
3448 generic comment describing how this target is meant to be used.
3449 (inf_child_post_attach, inf_child_post_startup_inferior)
3450 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3453 2014-03-12 Pedro Alves <palves@redhat.com>
3455 * nto-procfs.c: Include inf-child.h.
3456 (procfs_ops): Delete global.
3457 (procfs_can_run): Delete method.
3458 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3459 target pointer instead of referencing procfs_ops.
3460 (procfs_prepare_to_store): Delete.
3461 (init_procfs_ops): Delete function.
3462 (procfs_target): New function, based on init_procfs_ops, but
3463 inherit inf_child_target.
3464 (_initialize_procfs): Use procfs_target.
3466 2014-03-12 Pedro Alves <palves@redhat.com>
3468 * windows-nat.c: Include inf-child.h.
3469 (windows_ops): Delete global.
3470 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3472 (init_windows_ops): Delete function.
3473 (windows_target): New function, based on init_windows_ops, but
3474 inherit inf_child_target.
3475 (_initialize_windows_nat): Use windows_target. Install x86
3476 specific target methods here.
3478 2014-03-10 Doug Evans <xdje42@gmail.com>
3480 * guile/guile.c (call_initialize_gdb_module): New function.
3481 (initialize_guile): Replace call to scm_init_guile with call to
3484 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3486 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3487 in call to TYPE_CODE macro.
3489 2014-03-10 Jerome Guitton <guitton@adacore.com>
3491 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3492 Resolve tagged types to full view.
3494 2014-03-10 Hui Zhu <hui@codesourcery.com>
3496 * target.h (target_insert_breakpoint): Remove "hardware" from its
3499 2014-03-07 Doug Evans <dje@google.com>
3501 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3503 2014-03-07 Doug Evans <dje@google.com>
3505 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3506 Remove unused local comp_dir_attr. Assert exactly one of
3507 stub_comp_unit_die, stub_comp_dir is non-NULL.
3509 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3511 * target.h (complete_target_initialization, add_target):
3514 2014-03-07 Pedro Alves <palves@redhat.com>
3516 * go32-nat.c: Include inf-child.h.
3517 (go32_ops): Delete global.
3518 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3520 (go32_create_inferior): Push the passed in target pointer instead
3521 of referencing go32_ops.
3522 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3523 (go32_target): New function, based on init_go32_ops, but inherit
3525 (_initialize_go32_nat): Use go32_target. Move parts of
3528 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3530 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3531 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3532 SYMBOL_VALUE_ADDRESS.
3533 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3535 2014-03-06 Yao Qi <yao@codesourcery.com>
3537 * breakpoint.c (get_tracepoint_by_number): Remove argument
3538 optional_p. All callers updated. Adjust comments. Update
3540 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3542 2014-03-06 Yao Qi <yao@codesourcery.com>
3544 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3545 early if get_number returns zero. Use 'p' instead of 'args'.
3547 2014-03-06 Yao Qi <yao@codesourcery.com>
3549 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3552 2014-03-06 Yao Qi <yao@codesourcery.com>
3554 PR breakpoints/16508
3555 * tracepoint.c (check_trace_running): New function.
3556 (trace_find_command): Move code to check_trace_running and
3557 call check_trace_running.
3558 (trace_find_pc_command): Likewise.
3559 (trace_find_tracepoint_command): Likewise.
3560 (trace_find_line_command): Likewise.
3561 (trace_find_range_command): Likewise.
3562 * tracepoint.h (check_trace_running): Likewise.
3563 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3565 2014-03-06 Yao Qi <yao@codesourcery.com>
3567 * target.h (struct target_ops) <to_traceframe_info>: Use
3568 TARGET_DEFAULT_NORETURN (tcomplain ()).
3569 * target-delegates.c: Regenerated.
3571 2014-03-05 Pedro Alves <palves@redhat.com>
3574 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3575 void. Update comment.
3576 (dcache_xfer_memory): Delete.
3577 (dcache_read_memory_partial): New, based on the read bits of
3579 (dcache_update): Add status parameter. Use ULONGEST for len, and
3580 adjust. Discard cache lines if the reason for the update was
3582 * dcache.h (dcache_xfer_memory): Delete declaration.
3583 (dcache_read_memory_partial): New declaration.
3584 (dcache_update): Update prototype.
3585 * target.c (raw_memory_xfer_partial): Update the dcache here.
3586 (memory_xfer_partial_1): Don't handle dcache writes here.
3588 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3590 * remote-sim.c (gdbsim_load): Add const to prog.
3592 2014-03-03 Tom Tromey <tromey@redhat.com>
3594 * elfread.c (probe_key): Change to bfd_data.
3595 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3596 now per-BFD, not per-objfile.
3597 * stap-probe.c (stap_probe_destroy): Update comment.
3598 (handle_stap_probe): Allocate on the per-BFD obstack.
3600 2014-03-03 Tom Tromey <tromey@redhat.com>
3602 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3603 * breakpoint.c (create_longjmp_master_breakpoint): Use
3605 (add_location_to_breakpoint, bkpt_probe_insert_location)
3606 (bkpt_probe_remove_location): Update.
3607 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3608 * elfread.c (elf_symfile_relocate_probe): Remove.
3609 (elf_probe_fns): Update.
3610 (insert_exception_resume_breakpoint): Change type of "probe"
3611 parameter to bound_probe.
3612 (check_exception_resume): Update.
3613 * objfiles.c (objfile_relocate1): Don't relocate probes.
3614 * probe.c (bound_probe_s): New typedef.
3615 (parse_probes): Use get_probe_address. Set sal's objfile.
3616 (find_probe_by_pc): Return a bound_probe.
3617 (collect_probes): Return a VEC(bound_probe_s).
3618 (compare_probes): Update.
3619 (gen_ui_out_table_header_info): Change type of "probes"
3621 (info_probes_for_ops): Update.
3622 (get_probe_address): New function.
3623 (probe_safe_evaluate_at_pc): Update.
3624 * probe.h (struct probe_ops) <get_probe_address>: New field.
3625 <set_semaphore, clear_semaphore>: Add objfile parameter.
3626 (struct probe) <objfile>: Remove field.
3628 <address>: Update comment.
3629 (struct bound_probe): New.
3630 (find_probe_by_pc): Return a bound_probe.
3631 (get_probe_address): Declare.
3632 * solib-svr4.c (struct probe_and_action) <address>: New field.
3633 (hash_probe_and_action, equal_probe_and_action): Update.
3634 (register_solib_event_probe): Add address parameter.
3635 (solib_event_probe_at): Update.
3636 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3638 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3639 (stap_get_probe_address): New function.
3640 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3641 (compile_probe_arg): Update.
3642 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3644 (handle_stap_probe): Don't relocate the probe.
3645 (stap_relocate): Remove.
3646 (stap_gen_info_probes_table_values): Update.
3647 (stap_probe_ops): Remove stap_relocate.
3648 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3649 (debug_sym_probe_fns): Update.
3650 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3651 * symtab.c (init_sal): Use memset.
3652 * symtab.h (struct symtab_and_line) <objfile>: New field.
3653 * tracepoint.c (start_tracing, stop_tracing): Update.
3655 2014-03-03 Tom Tromey <tromey@redhat.com>
3657 * probe.h (parse_probes, find_probe_by_pc)
3658 (find_probes_in_objfile): Fix comments.
3660 2014-03-02 Doug Evans <xdje42@gmail.com>
3662 * infrun.c (handle_signal_stop): Replace test for
3663 TARGET_WAITKIND_STOPPED with an assert.
3665 2014-03-02 Doug Evans <xdje42@gmail.com>
3667 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3669 2014-03-02 Doug Evans <xdje42@gmail.com>
3671 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3673 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3675 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3677 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3679 * i386obsd-nat.c: Include "obsd-nat.h".
3680 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3682 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3684 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3686 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3688 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3690 * mips64obsd-nat.c: Include "obsd-nath".
3691 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3693 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3695 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3697 * amd64obsd-nat.c: Include "obsd-nat,h.
3698 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3700 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3702 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3704 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3705 (find_overload_match): Update call to find_oload_champ.
3706 (find_oload_champ_namespace_loop): Likewise
3708 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3710 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3712 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3713 * config/sparc/obsd64.mh: New file.
3714 * sparc64obsd-nat.c: New file.
3716 * obsd-nat.h: New file.
3717 * obsd-nat.c: New file.
3718 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3719 (ALLDEPFILES): Add obsd-nat.c.
3721 2014-02-28 Tom Tromey <tromey@redhat.com>
3723 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3724 * cli-out.h (cli_ui_out_impl): Now const.
3725 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3726 * ui-out.c (struct ui_out) <impl>: Now const.
3727 (default_ui_out_impl): Now const.
3728 (ui_out_new): Make 'impl' parameter const.
3729 * ui-out.h (ui_out_new): Update.
3731 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3733 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3735 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3737 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3739 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3741 Additional PR 8882 fix.
3742 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3744 2014-02-27 Pedro Alves <palves@redhat.com>
3746 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3749 2014-02-27 Pedro Alves <palves@redhat.com>
3752 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3753 * nat/linux-waitpid.c: Include string.h.
3754 (status_to_str): Moved here and made extern.
3755 * nat/linux-waitpid.h (status_to_str): New declaration.
3757 2014-02-27 Hui Zhu <hui@codesourcery.com>
3760 * infrun.c (ptid_match): Move ...
3761 * common/ptid.c (ptid_match): ... here.
3762 * inferior.h (ptid_match): Move ...
3763 * common/ptid.h (ptid_match): ... here.
3765 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3767 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3768 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3771 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3773 * obsd-tdep.c (obsd_auxv_parse): New function.
3774 (obsd_init_abi): Set auxv_parse.
3776 * gdbarch.sh (auxv_parse): New.
3777 * gdbarch.h: Regenerated.
3778 * gdbarch.c: Regenerated.
3779 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3781 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3783 * guile/scm-value.c (gdbscm_history_append_x): New function.
3784 (value_functions): Add it.
3786 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3788 * dwarf2read.c (attr_value_as_address): New function.
3789 (dwarf2_find_base_address, read_call_site_scope): Use
3790 attr_value_as_address in place of DW_ADDR.
3791 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3792 the low and high addresses. Slight rework of the handling
3793 of the high pc being a constant form, and limit it to
3794 DWARF verson 4 or higher.
3795 (dwarf2_record_block_ranges): Likewise.
3796 (read_partial_die): Likewise.
3797 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3799 2014-02-26 Tom Tromey <tromey@redhat.com>
3801 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3803 2014-02-26 Tom Tromey <tromey@redhat.com>
3805 * elfread.c (elf_read_minimal_symbols): Return early if
3806 minimal symbols have already been read. Add "ei" parameter.
3807 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3808 * minsyms.c (prim_record_minimal_symbol_full): Update.
3809 * objfiles.h (struct objstats) <n_minsyms>: Move...
3810 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3811 * symmisc.c (print_objfile_statistics): Update.
3813 2014-02-26 Tom Tromey <tromey@redhat.com>
3815 * elfread.c (elf_read_minimal_symbols): New function, from
3817 (elf_symfile_read): Call it.
3819 2014-02-26 Tom Tromey <tromey@redhat.com>
3821 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3822 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3823 (lookup_minimal_symbol_solib_trampoline)
3824 (lookup_minimal_symbol_by_pc_section_1)
3825 (lookup_minimal_symbol_and_objfile): Update.
3826 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3827 Don't allocate a minimal symbol if minsyms have already been read.
3828 (build_minimal_symbol_hash_tables): Update.
3829 (install_minimal_symbols): Do nothing if minsyms already read.
3830 Use the per-BFD obstack.
3831 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3832 * objfiles.c (allocate_objfile): Call
3833 terminate_minimal_symbol_table later.
3834 (have_minimal_symbols): Update.
3835 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3836 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3837 Move from struct objfile.
3838 <minsyms_read>: New field.
3839 (struct objfile) <msymbols, minimal_symbol_count,
3840 msymbol_hash, msymbol_demangled_hash>: Move.
3841 (ALL_OBJFILE_MSYMBOLS): Update.
3842 * symfile.c (read_symbols): Set minsyms_read.
3843 (reread_symbols): Update.
3844 * symmisc.c (dump_objfile, dump_msymbols): Update.
3846 2014-02-26 Tom Tromey <tromey@redhat.com>
3848 * minsyms.c (msymbols_sort): Remove.
3849 * minsyms.h (msymbols_sort): Remove.
3850 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3851 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3852 * elfread.c (elf_symtab_read): Don't add section offsets.
3853 * xcoffread.c (record_minimal_symbol): Don't add section offset
3854 to minimal symbol address.
3855 * somread.c (text_offset, data_offset): Remove.
3856 (som_symtab_read): Don't add section offsets to minimal symbol
3858 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3859 Don't add section offsets to minimal symbols.
3860 * coffread.c (coff_symtab_read): Don't add section offsets
3861 to minimal symbol addresses.
3862 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3863 to minimal symbol addresses.
3864 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3865 section offset to minimal symbol addresses.
3866 * mdebugread.c (parse_partial_symbols): Don't add section
3867 offset to minimal symbol addresses.
3868 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3869 offset to minimal symbol addresses.
3871 2014-02-26 Tom Tromey <tromey@redhat.com>
3873 * ada-lang.c (ada_main_name): Update.
3874 (ada_add_standard_exceptions): Update.
3875 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3876 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3877 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3878 * auxv.c (ld_so_xfer_auxv): Update.
3879 * avr-tdep.c (avr_scan_prologue): Update.
3880 * ax-gdb.c (gen_var_ref): Update.
3881 * blockframe.c (get_pc_function_start)
3882 (find_pc_partial_function_gnu_ifunc): Update.
3883 * breakpoint.c (create_overlay_event_breakpoint)
3884 (create_longjmp_master_breakpoint)
3885 (create_std_terminate_master_breakpoint)
3886 (create_exception_master_breakpoint): Update.
3887 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3888 * c-valprint.c (c_val_print): Update.
3889 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3890 * common/agent.c (agent_look_up_symbols): Update.
3891 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3892 * dwarf2loc.c (call_site_to_target_addr): Update.
3893 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3894 * elfread.c (elf_gnu_ifunc_record_cache)
3895 (elf_gnu_ifunc_resolve_by_got): Update.
3896 * findvar.c (default_read_var_value): Update.
3897 * frame.c (inside_main_func): Update.
3898 * frv-tdep.c (frv_frame_this_id): Update.
3899 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3900 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3902 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3903 (hppa_hpux_find_dummy_bpaddr): Update.
3904 * hppa-tdep.c (hppa_symbol_address): Update.
3905 * infcmd.c (until_next_command): Update.
3906 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3908 * linespec.c (minsym_found, add_minsym): Update.
3909 * linux-nat.c (get_signo): Update.
3910 * linux-thread-db.c (inferior_has_bug): Update.
3911 * m32c-tdep.c (m32c_return_value)
3912 (m32c_m16c_address_to_pointer): Update.
3913 * m32r-tdep.c (m32r_frame_this_id): Update.
3914 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3915 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3916 * maint.c (maintenance_translate_address): Update.
3917 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3918 (frob_address): New function.
3919 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3920 frob_address. Rename parameter to "pc_in".
3921 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3923 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3925 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3926 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3927 * objc-lang.c (find_objc_msgsend): Update.
3928 * objfiles.c (objfile_relocate1): Update.
3929 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3930 * p-valprint.c (pascal_val_print): Update.
3931 * parse.c (write_exp_msymbol): Update.
3932 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3933 (ppc_elfv2_skip_entrypoint): Update.
3934 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3935 * printcmd.c (build_address_symbolic, msym_info)
3936 (address_info): Update.
3937 * proc-service.c (ps_pglobal_lookup): Update.
3938 * psymtab.c (find_pc_sect_psymtab_closer)
3939 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3940 Change msymbol parameter to bound_minimal_symbol.
3941 * ravenscar-thread.c (get_running_thread_id): Update.
3942 * remote.c (remote_check_symbols): Update.
3943 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3945 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3946 * solib-dsbt.c (lm_base): Update.
3947 * solib-frv.c (lm_base, main_got): Update.
3948 * solib-irix.c (locate_base): Update.
3949 * solib-som.c (som_solib_create_inferior_hook)
3950 (link_map_start): Update.
3951 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3952 * solib-svr4.c (elf_locate_base, enable_break): Update.
3953 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3954 (flush_ea_cache): Update.
3955 * stabsread.c (define_symbol, scan_file_globals): Update.
3956 * stack.c (find_frame_funname): Update.
3957 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3958 (debug_qf_find_pc_sect_symtab): Update.
3959 * symfile.c (simple_read_overlay_table)
3960 (simple_overlay_update): Update.
3961 * symfile.h (struct quick_symbol_functions)
3962 <find_pc_sect_symtab>: Change type of msymbol to
3963 bound_minimal_symbol.
3964 * symmisc.c (dump_msymbols): Update.
3965 * symtab.c (find_pc_sect_symtab_via_partial)
3966 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3967 (search_symbols, print_msymbol_info): Update.
3968 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3969 (MSYMBOL_VALUE_ADDRESS): Redefine.
3970 (BMSYMBOL_VALUE_ADDRESS): New macro.
3971 * tracepoint.c (scope_info): Update.
3972 * tui/tui-disasm.c (tui_find_disassembly_address)
3973 (tui_get_begin_asm_address): Update.
3974 * valops.c (find_function_in_inferior): Update.
3975 * value.c (value_static_field, value_fn_field): Update.
3977 2014-02-26 Tom Tromey <tromey@redhat.com>
3979 * ada-lang.c (ada_update_initial_language): Update.
3980 (ada_main_name, ada_has_this_exception_support): Update.
3981 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3982 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3983 * arm-tdep.c (arm_skip_stub): Update.
3984 * auxv.c (ld_so_xfer_auxv): Update.
3985 * avr-tdep.c (avr_scan_prologue): Update.
3986 * ax-gdb.c (gen_var_ref): Update.
3987 * breakpoint.c (struct breakpoint_objfile_data)
3988 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3989 type to bound_minimal_symbol.
3990 (create_overlay_event_breakpoint)
3991 (create_longjmp_master_breakpoint)
3992 (create_std_terminate_master_breakpoint)
3993 (create_exception_master_breakpoint): Update.
3994 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3995 * c-exp.y (classify_name): Update.
3996 * coffread.c (coff_symfile_read): Update.
3997 * common/agent.c (agent_look_up_symbols): Update.
3998 * d-lang.c (d_main_name): Update.
3999 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4000 * dec-thread.c (enable_dec_thread): Update.
4001 * dwarf2loc.c (call_site_to_target_addr): Update.
4002 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4003 * eval.c (evaluate_subexp_standard): Update.
4004 * findvar.c (struct minsym_lookup_data) <result>: Change type
4005 to bound_minimal_symbol.
4007 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4008 * frame.c (inside_main_func): Update.
4009 * frv-tdep.c (frv_frame_this_id): Update.
4010 * gcore.c (call_target_sbrk): Update.
4011 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4012 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4014 * go-lang.c (go_main_name): Update.
4015 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4016 (hppa_hpux_find_import_stub_for_addr): Update.
4017 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4018 Update. Change return type.
4019 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4021 * jit.c (jit_breakpoint_re_set_internal): Update.
4022 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4024 * linux-nat.c (get_signo): Update.
4025 * linux-thread-db.c (inferior_has_bug): Update
4026 * m32c-tdep.c (m32c_return_value)
4027 (m32c_m16c_address_to_pointer): Update.
4028 * m32r-tdep.c (m32r_frame_this_id): Update.
4029 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4030 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4031 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4032 lookup_minimal_symbol. Change return type.
4033 (lookup_minimal_symbol): Remove.
4034 (lookup_bound_minimal_symbol): Update.
4035 (lookup_minimal_symbol_text): Change return type.
4036 (lookup_minimal_symbol_solib_trampoline): Change return type.
4037 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4038 (lookup_minimal_symbol_solib_trampoline): Change return type.
4039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4040 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4041 (value_nsstring, find_imps): Update.
4042 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4043 * p-lang.c (pascal_main_name): Update.
4044 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4045 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4046 * proc-service.c (ps_pglobal_lookup): Update.
4047 * ravenscar-thread.c (get_running_thread_msymbol): Change
4049 (has_ravenscar_runtime, get_running_thread_id): Update.
4050 * remote.c (remote_check_symbols): Update.
4051 * sol-thread.c (ps_pglobal_lookup): Update.
4052 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4053 * solib-dsbt.c (lm_base): Update.
4054 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4056 * solib-irix.c (locate_base): Update.
4057 * solib-som.c (som_solib_create_inferior_hook)
4058 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4060 * solib-spu.c (spu_enable_break): Update.
4061 * solib-svr4.c (elf_locate_base, enable_break): Update.
4062 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4063 (flush_ea_cache): Update.
4064 * stabsread.c (define_symbol): Update.
4065 * symfile.c (simple_read_overlay_table): Update.
4066 * symtab.c (find_pc_sect_line): Update.
4067 * tracepoint.c (scope_info): Update.
4068 * tui-disasm.c (tui_get_begin_asm_address): Update.
4069 * value.c (value_static_field): Update.
4071 2014-02-26 Tom Tromey <tromey@redhat.com>
4073 * minsyms.c (prim_record_minimal_symbol_full): Use
4074 SET_MSYMBOL_VALUE_ADDRESS.
4075 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4076 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4077 SET_MSYMBOL_VALUE_ADDRESS.
4078 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4079 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4081 2014-02-26 Tom Tromey <tromey@redhat.com>
4083 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4084 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4085 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4086 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4087 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4088 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4089 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4090 * ada-lang.c (ada_main_name): Update.
4091 (ada_lookup_simple_minsym): Update.
4092 (ada_make_symbol_completion_list): Update.
4093 (ada_add_standard_exceptions): Update.
4094 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4095 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4096 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4097 * arm-tdep.c (skip_prologue_function): Update.
4098 (arm_skip_stack_protector, arm_skip_stub): Update.
4099 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4100 (arm_wince_skip_main_prologue): Update.
4101 * auxv.c (ld_so_xfer_auxv): Update.
4102 * avr-tdep.c (avr_scan_prologue): Update.
4103 * ax-gdb.c (gen_var_ref): Update.
4104 * block.c (call_site_for_pc): Update.
4105 * blockframe.c (get_pc_function_start): Update.
4106 (find_pc_partial_function_gnu_ifunc): Update.
4107 * breakpoint.c (create_overlay_event_breakpoint): Update.
4108 (create_longjmp_master_breakpoint): Update.
4109 (create_std_terminate_master_breakpoint): Update.
4110 (create_exception_master_breakpoint): Update.
4111 (resolve_sal_pc): Update.
4112 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4113 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4115 * c-valprint.c (c_val_print): Update.
4116 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4117 * coffread.c (coff_symfile_read): Update.
4118 * common/agent.c (agent_look_up_symbols): Update.
4119 * dbxread.c (find_stab_function_addr): Update.
4120 (end_psymtab): Update.
4121 * dwarf2loc.c (call_site_to_target_addr): Update.
4122 (func_verify_no_selftailcall): Update.
4123 (tailcall_dump): Update.
4124 (call_site_find_chain_1): Update.
4125 (dwarf_expr_reg_to_entry_parameter): Update.
4126 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4127 (elf_gnu_ifunc_resolve_by_got): Update.
4128 * f-valprint.c (info_common_command): Update.
4129 * findvar.c (read_var_value): Update.
4130 * frame.c (get_prev_frame_1): Update.
4131 (inside_main_func): Update.
4132 * frv-tdep.c (frv_skip_main_prologue): Update.
4133 (frv_frame_this_id): Update.
4134 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4135 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4136 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4137 (gnuv3_skip_trampoline): Update.
4138 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4139 (hppa64_hpux_in_solib_call_trampoline): Update.
4140 (hppa_hpux_skip_trampoline_code): Update.
4141 (hppa64_hpux_search_dummy_call_sequence): Update.
4142 (hppa_hpux_find_import_stub_for_addr): Update.
4143 (hppa_hpux_find_dummy_bpaddr): Update.
4144 * hppa-tdep.c (hppa_symbol_address)
4145 (hppa_lookup_stub_minimal_symbol): Update.
4146 * i386-tdep.c (i386_skip_main_prologue): Update.
4147 (i386_pe_skip_trampoline_code): Update.
4148 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4149 * infcall.c (get_function_name): Update.
4150 * infcmd.c (until_next_command): Update.
4151 * jit.c (jit_breakpoint_re_set_internal): Update.
4152 (jit_inferior_init): Update.
4153 * linespec.c (minsym_found): Update.
4154 (add_minsym): Update.
4155 * linux-fork.c (info_checkpoints_command): Update.
4156 * linux-nat.c (get_signo): Update.
4157 * linux-thread-db.c (inferior_has_bug): Update.
4158 * m32c-tdep.c (m32c_return_value): Update.
4159 (m32c_m16c_address_to_pointer): Update.
4160 (m32c_m16c_pointer_to_address): Update.
4161 * m32r-tdep.c (m32r_frame_this_id): Update.
4162 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4163 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4164 * maint.c (maintenance_translate_address): Update.
4165 * minsyms.c (add_minsym_to_hash_table): Update.
4166 (add_minsym_to_demangled_hash_table): Update.
4167 (msymbol_objfile): Update.
4168 (lookup_minimal_symbol): Update.
4169 (iterate_over_minimal_symbols): Update.
4170 (lookup_minimal_symbol_text): Update.
4171 (lookup_minimal_symbol_by_pc_name): Update.
4172 (lookup_minimal_symbol_solib_trampoline): Update.
4173 (lookup_minimal_symbol_by_pc_section_1): Update.
4174 (lookup_minimal_symbol_and_objfile): Update.
4175 (prim_record_minimal_symbol_full): Update.
4176 (compare_minimal_symbols): Update.
4177 (compact_minimal_symbols): Update.
4178 (build_minimal_symbol_hash_tables): Update.
4179 (install_minimal_symbols): Update.
4180 (terminate_minimal_symbol_table): Update.
4181 (find_solib_trampoline_target): Update.
4182 (minimal_symbol_upper_bound): Update.
4183 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4184 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4185 (mips_skip_pic_trampoline_code): Update.
4186 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4187 * objc-lang.c (selectors_info): Update.
4188 (classes_info): Update.
4189 (find_methods): Update.
4190 (find_imps): Update.
4191 (find_objc_msgsend): Update.
4192 * objfiles.c (objfile_relocate1): Update.
4193 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4194 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4195 * p-valprint.c (pascal_val_print): Update.
4196 * parse.c (write_exp_msymbol): Update.
4197 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4198 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4199 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4200 * printcmd.c (build_address_symbolic): Update.
4202 (address_info): Update.
4203 * proc-service.c (ps_pglobal_lookup): Update.
4204 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4205 (find_pc_sect_psymtab): Update.
4206 * python/py-framefilter.c (py_print_frame): Update.
4207 * ravenscar-thread.c (get_running_thread_id): Update.
4208 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4210 * remote.c (remote_check_symbols): Update.
4211 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4212 (rs6000_skip_trampoline_code): Update.
4213 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4214 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4215 * solib-dsbt.c (lm_base): Update.
4216 * solib-frv.c (lm_base): Update.
4218 * solib-irix.c (locate_base): Update.
4219 * solib-som.c (som_solib_create_inferior_hook): Update.
4220 (som_solib_desire_dynamic_linker_symbols): Update.
4221 (link_map_start): Update.
4222 * solib-spu.c (spu_enable_break): Update.
4223 (ocl_enable_break): Update.
4224 * solib-svr4.c (elf_locate_base): Update.
4225 (enable_break): Update.
4226 * spu-tdep.c (spu_get_overlay_table): Update.
4227 (spu_catch_start): Update.
4228 (flush_ea_cache): Update.
4229 * stabsread.c (define_symbol): Update.
4230 (scan_file_globals): Update.
4231 * stack.c (find_frame_funname): Update.
4232 (frame_info): Update.
4233 * symfile.c (simple_read_overlay_table): Update.
4234 (simple_overlay_update): Update.
4235 * symmisc.c (dump_msymbols): Update.
4236 * symtab.c (fixup_section): Update.
4237 (find_pc_sect_line): Update.
4238 (skip_prologue_sal): Update.
4239 (search_symbols): Update.
4240 (print_msymbol_info): Update.
4241 (rbreak_command): Update.
4242 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4243 (completion_list_objc_symbol): Update.
4244 (default_make_symbol_completion_list_break_on): Update.
4245 * tracepoint.c (scope_info): Update.
4246 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4247 (tui_get_begin_asm_address): Update.
4248 * valops.c (find_function_in_inferior): Update.
4249 * value.c (value_static_field): Update.
4250 (value_fn_field): Update.
4252 2014-02-26 Tom Tromey <tromey@redhat.com>
4254 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4255 bound minimal symbols. Move code that knows about minsym
4257 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4259 * minsyms.h (minimal_symbol_upper_bound): Declare.
4260 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4261 minimal_symbol_upper_bound.
4263 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4265 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4266 Use the type's name if its basic type does not have a tag.
4268 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4270 * dwarf2read.c (read_subrange_type): Add comment.
4272 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4274 * dwarf2read.c (update_enumeration_type_from_children): New
4275 function, mostly extracted from process_structure_scope.
4276 (read_enumeration_type): Call update_enumeration_type_from_children.
4277 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4278 and flag_flag_enum fields.
4280 2014-02-26 Pedro Alves <palves@redhat.com>
4282 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4283 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4284 to_xfer_partial method.
4286 2014-02-26 Pedro Alves <palves@redhat.com>
4288 * target.c (complete_target_initialization): Don't install
4289 default_xfer_partial as to_xfer_partial hook.
4291 (update_current_target): Don't INHERIT nor de_fault
4292 deprecated_xfer_memory. Delete de_fault macro.
4293 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4294 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4295 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4298 2014-02-26 Pedro Alves <palves@redhat.com>
4300 * go32-nat.c (my_write_child): New function.
4301 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4302 (go32_xfer_partial): New function.
4303 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4304 Instead install a to_xfer_partial hook.
4306 2014-02-26 Pedro Alves <palves@redhat.com>
4308 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4309 to_xfer_partial helper. Rewrite.
4310 (procfs_xfer_partial): New function.
4311 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4312 Install a to_xfer_partial hook.
4314 2014-02-26 Pedro Alves <palves@redhat.com>
4316 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4317 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4318 (m32r_xfer_partial): New function.
4319 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4320 Install a to_xfer_partial hook.
4322 2014-02-26 Pedro Alves <palves@redhat.com>
4324 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4326 (mips_xfer_partial): New function.
4327 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4328 hook. Install a to_xfer_partial hook.
4330 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4332 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4333 * gdbtypes.c (create_array_type_with_stride): New function,
4334 renaming create_array_type, but with an added parameter
4335 called "bit_stride".
4336 (create_array_type): Re-implement using
4337 create_array_type_with_stride.
4338 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4339 and DW_AT_bit_stride attributes.
4341 2014-02-26 Pedro Alves <palves@redhat.com>
4343 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4344 task-specific breakpoints.
4346 2014-02-25 Pedro Alves <palves@redhat.com>
4348 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4349 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4351 2014-02-25 Stan Shebs <stan@codesourcery.com>
4353 * defs.h: Annotate comments for Doxygen.
4355 2014-02-25 Tom Tromey <tromey@redhat.com>
4357 * target.h (target_ignore): Don't declare.
4358 * target.c (target_ignore): Remove.
4360 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4363 * auto-load.c (auto_load_objfile_script_1): Change filename to
4366 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4368 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4369 documentation. Adjust prototype to match the target_ops
4370 to_xfer_partial method. Adjust implementation accordingly.
4372 2014-02-25 Hui Zhu <hui@codesourcery.com>
4374 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4377 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4379 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4380 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4381 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4382 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4383 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4384 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4385 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4386 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4388 (rl78_register_type): Use a data pointer type for SP and
4389 new pseudo registers mentioned above. Use a 16 bit integer
4390 type for all other register pairs.
4391 (rl78_register_name, rl78_g10_register_name): Update for
4392 new pseudo registers.
4393 (rl78_pseudo_register_read): Likewise.
4394 (rl78_pseudo_register_write): Likewise.
4395 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4396 to the newly added pseudo registers.
4398 2014-02-24 Doug Evans <dje@google.com>
4400 * value.c (record_latest_value): Fix comment.
4401 * printcmd.c (print_command_1): Remove code to handle -1 return from
4402 record_latest_value.
4404 2014-02-24 Pedro Alves <palves@redhat.com>
4406 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4407 deprecated_xfer_memory hook.
4408 (procfs_xfer_partial): Call procfs_xfer_memory instead
4409 of the deprecated_xfer_memory target hook.
4410 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4413 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4415 * windows-nat.c (windows_xfer_shared_libraries): Return
4416 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4417 requested object is TARGET_OBJECT_LIBRARIES.
4419 2014-02-24 Yao Qi <yao@codesourcery.com>
4421 * target.h (enum target_xfer_status)
4422 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4423 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4425 * corefile.c (memory_error_message): User updated.
4426 * exec.c (section_table_read_available_memory): Likewise.
4427 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4428 * target.c (target_xfer_status_to_string): Likewise.
4429 (raw_memory_xfer_partial): Likewise.
4430 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4431 * valops.c (read_value_memory): Likewise.
4432 * exec.h: Update comments.
4434 2014-02-24 Yao Qi <yao@codesourcery.com>
4436 * target.c (target_xfer_status_to_string): Rename argument err
4438 * target.h (target_xfer_status_to_string): Update declaration.
4439 Replace target_xfer_error_to_string with
4440 target_xfer_status_to_string in comment.
4442 2014-02-24 Yao Qi <yao@codesourcery.com>
4444 * mips-linux-nat.c (super_close): Update its type.
4445 (mips_linux_close): Pass 'self' to super_close.
4447 2014-02-24 Yao Qi <yao@codesourcery.com>
4449 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4450 * corefile.c (read_memory): Adjusted.
4451 * target.c (target_write_with_progress): Adjusted.
4453 2014-02-23 Yao Qi <yao@codesourcery.com>
4457 2013-10-25 Yao Qi <yao@codesourcery.com>
4459 * remote.c (remote_traceframe_info): Return early if
4460 traceframe is not selected.
4462 2013-07-19 Yao Qi <yao@codesourcery.com>
4464 * target.c (update_current_target): Change the default action
4465 of 'to_traceframe_info' from tcomplain to return_zero.
4466 * target.h (struct target_ops) <to_traceframe_info>: Add more
4469 2014-02-23 Yao Qi <yao@codesourcery.com>
4471 * valops.c (read_value_memory): Rewrite it. Call
4472 target_xfer_partial in a loop.
4473 * exec.h (section_table_available_memory): Remove declaration.
4474 Move comments to ...
4475 * exec.c (section_table_available_memory): ... here. Make it
4478 2014-02-23 Yao Qi <yao@codesourcery.com>
4480 * exec.c (section_table_read_available_memory): New function.
4481 * exec.h (section_table_read_available_memory): Declare.
4482 * ctf.c (ctf_xfer_partial): Call
4483 section_table_read_available_memory.
4484 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4486 2014-02-23 Yao Qi <yao@codesourcery.com>
4488 * ctf.c (ctf_xfer_partial): Move code to ...
4489 * exec.c (exec_read_partial_read_only): ... it. New function.
4490 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4491 * tracefile.c: Include "exec.h".
4492 * exec.h (exec_read_partial_read_only): Declare.
4494 2014-02-23 Yao Qi <yao@codesourcery.com>
4496 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4497 (tfile_has_memory): Remove.
4498 (init_tfile_ops): Don't set fields to_has_all_memory and
4499 to_has_memory of tfile_ops.
4500 * tracefile.c (tracefile_has_all_memory): New function.
4501 (tracefile_has_memory): New function.
4502 (init_tracefile_ops): Initialize fields to_has_all_memory and
4503 to_has_memory of 'ops'.
4505 2014-02-23 Yao Qi <yao@codesourcery.com>
4507 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4508 (ctf_thread_alive, ctf_get_trace_status): Remove.
4509 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4511 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4512 (tfile_has_stack, tfile_has_registers): Remove.
4513 (tfile_thread_alive): Remove.
4514 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4516 * tracefile.c (tracefile_has_stack): New function.
4517 (tracefile_has_registers): New function.
4518 (tracefile_thread_alive): New function.
4519 (tracefile_get_trace_status): New function.
4520 (init_tracefile_ops): New function.
4521 * tracefile.h (init_tracefile_ops): Declare.
4523 2014-02-23 Yao Qi <yao@codesourcery.com>
4525 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4526 (O_LARGEFILE): Likewise.
4527 (tfile_ops): Likewise.
4528 (TRACE_HEADER_SIZE): Likewise.
4529 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4530 (cur_data_size): Likewise.
4531 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4532 (tfile_close, tfile_files_info): Likewise.
4533 (tfile_get_trace_status): Likewise.
4534 (tfile_get_tracepoint_status): Likewise.
4535 (tfile_get_traceframe_address): Likewise.
4536 (tfile_trace_find, match_blocktype): Likewise.
4537 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4538 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4539 (tfile_get_trace_state_variable_value): Likewise.
4540 (tfile_has_all_memory, tfile_has_memory): Likewise.
4541 (tfile_has_stack, tfile_has_registers): Likewise.
4542 (tfile_thread_alive, build_traceframe_info): Likewise.
4543 (tfile_traceframe_info, init_tfile_ops): Likewise.
4544 (_initialize_tracepoint): Don't call init_tfile_ops
4545 and add_target_with_completer.
4546 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4547 exec.h, completer.h and filenames.h.
4548 (_initialize_tracefile_tfile): New function.
4550 2014-02-23 Yao Qi <yao@codesourcery.com>
4552 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4554 (HFILES_NO_SRCDIR): Add tracefile.h.
4555 * ctf.c: Include "tracefile.h".
4556 * tracefile.h: New file.
4557 * tracefile.c: New file
4558 * tracefile-tfile.c: New file.
4559 * tracepoint.c: Include "tracefile.h".
4560 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4561 (stop_reason_names): Add const.
4562 (trace_file_writer_xfree): Move it to tracefile.c.
4563 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4564 (trace_save_ctf): Likewise.
4565 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4566 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4567 (tfile_write_header, tfile_write_regblock_type): Likewise.
4568 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4569 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4570 (tfile_write_raw_data, tfile_end): Likewise.
4571 (tfile_trace_file_writer_new): Likewise.
4572 (free_uploaded_tp): Make it extern.
4573 (free_uploaded_tsv): Make it extern.
4574 (_initialize_tracepoint): Move code to register command 'tsave'
4576 * tracepoint.h (stop_reason_names): Declare.
4577 (struct trace_frame_write_ops): Move it to tracefile.h.
4578 (struct trace_file_write_ops): Likewise.
4579 (struct trace_file_writer): Likewise.
4580 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4582 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4585 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4587 (get_cores_used_by_process): New parameter num_cores, use it.
4588 (linux_xfer_osdata_processes): Pass num_cores to it.
4589 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4592 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4594 * target.c (memory_xfer_partial): Fix length arg in call to
4595 breakpoint_xfer_memory.
4597 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4600 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4601 number comes after the + or - signs. Adjust length of register
4602 name to be extracted.
4604 2014-02-20 Tom Tromey <tromey@redhat.com>
4606 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4607 (ada_varobj_ops): Mark "extern".
4609 2014-02-20 Tom Tromey <tromey@redhat.com>
4611 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4613 2014-02-20 Doug Evans <xdje42@gmail.com>
4615 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4616 All callers updated.
4617 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4618 All callers updated.
4619 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4620 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4622 2014-02-20 lin zuojian <manjian2006@gmail.com>
4623 Joel Brobecker <brobecker@adacore.com>
4624 Doug Evans <xdje42@gmail.com>
4627 * dwarf2read.c (struct die_info): New member in_process.
4628 (reset_die_in_process): New function.
4629 (process_die): Set it at the start, reset when returning.
4630 (inherit_abstract_dies): Only call process_die if origin_child_die
4631 not already being processed.
4633 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4635 * windows-nat.c (handle_unload_dll): Add function documentation.
4636 (do_initial_windows_stuff): Add comment explaining why we wait
4637 until after inferior initialization has finished before
4638 processing all DLLs.
4640 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4642 * windows-nat.c (get_module_name): Delete.
4643 (windows_get_exec_module_filename): New function, mostly
4644 inspired from get_module_name.
4645 (windows_pid_to_exec_file): Replace call to get_module_name
4646 by call to windows_get_exec_module_filename.
4648 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4650 * windows-nat.c (handle_load_dll): Rewrite this function's
4651 introductory comment. Remove code using get_module_name
4652 to get the DLL's name.
4654 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4656 * windows-nat.c (get_windows_debug_event): Ignore
4657 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4658 if windows_initialization_done == 0.
4659 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4660 Adjust implementation to always load all DLLs.
4661 (do_initial_windows_stuff): Replace call to
4662 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4664 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4666 * windows-nat.c (_initialize_windows_nat): Deprecate the
4667 "dll-symbols" command. Turn the "add-shared-symbol-files"
4668 and "assf" aliases into commands, and deprecate them as well.
4669 * NEWS: Add entry explaining that "dll-symbols" and its two
4670 aliases are now deprecated.
4672 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4674 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4675 new-line in debug string. Remove trailing spaces.
4677 2014-02-19 Stan Shebs <stan@codesourcery.com>
4679 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4681 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4683 * NEWS: Add entry for the new feature
4684 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4687 2014-02-19 Stan Shebs <stan@codesourcery.com>
4689 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4691 2014-02-19 Pedro Alves <palves@redhat.com>
4693 * common/ptid.h (struct ptid): Mention that process_stratum
4694 targets should prefer ptid.lwp.
4696 2014-02-19 Pedro Alves <palves@redhat.com>
4698 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4699 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4700 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4701 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4702 store remote thread ids rather than ptid.tid.
4703 (_initialize_remote): Adjust.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target.c (target_get_unwinder): Rewrite.
4708 (target_get_tailcall_unwinder): Rewrite.
4709 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4710 (record_btrace_to_get_tailcall_unwinder): New function.
4711 (init_record_btrace_ops): Update.
4712 * target.h (struct target_ops) <to_get_unwinder,
4713 to_get_tailcall_unwinder>: Now function pointers. Use
4714 TARGET_DEFAULT_RETURN.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4720 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4722 2014-02-19 Tom Tromey <tromey@redhat.com>
4724 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4726 * target-delegates.c: Rebuild.
4727 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4728 TARGET_DEFAULT_FUNC.
4729 * target.c (default_target_decr_pc_after_break): Rename from
4730 forward_target_decr_pc_after_break. Simplify.
4731 (target_decr_pc_after_break): Rely on delegation.
4733 2014-02-19 Tom Tromey <tromey@redhat.com>
4735 * target.c (update_current_target): Do not INHERIT to_doc or
4736 to_magic. Do not de_fault to_open or to_close.
4738 2014-02-19 Tom Tromey <tromey@redhat.com>
4740 * gcore.h (objfile_find_memory_regions): Declare.
4741 * gcore.c (objfile_find_memory_regions): No longer static. Add
4743 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4744 * exec.c: Include gcore.h.
4745 (exec_set_find_memory_regions): Remove.
4746 (exec_find_memory_regions): Remove.
4747 (exec_do_find_memory_regions): Remove.
4748 (init_exec_ops): Update.
4749 * defs.h (exec_set_find_memory_regions): Remove.
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target-delegates.c: Rebuild.
4754 * target.h (struct target_ops) <to_extra_thread_info,
4755 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4756 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4757 not 0, in TARGET_DEFAULT_RETURN.
4759 2014-02-19 Tom Tromey <tromey@redhat.com>
4761 * target.c (complete_target_initialization): Remove casts. Use
4762 return_zero_has_execution.
4763 (return_zero): Add "ignore" argument.
4764 (return_zero_has_execution): New function.
4765 (init_dummy_target): Remove casts. Use
4766 return_zero_has_execution.
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target.c (update_current_target): Update comments. Do not
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4777 * corelow.c (core_read_description): Delegate when needed.
4778 * remote.c (remote_read_description): Delegate when needed.
4779 * target-delegates.c: Rebuild.
4780 * target.c (target_read_description): Rewrite.
4781 * target.h (struct target_ops) <to_read_description>: Update
4782 comment. Use TARGET_DEFAULT_RETURN.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target-delegates.c: Rebuild.
4787 * target.c (update_current_target): Don't inherit or default
4789 (find_default_run_target): Check against delegate_can_run.
4790 * target.h (struct target_ops) <to_can_run>: Use
4791 TARGET_DEFAULT_RETURN.
4793 2014-02-19 Tom Tromey <tromey@redhat.com>
4795 * target-delegates.c: Rebuild.
4796 * target.c (target_disconnect): Unconditionally delegate.
4797 * target.h (struct target_ops) <to_disconnect>: Use
4798 TARGET_DEFAULT_NORETURN.
4800 2014-02-19 Tom Tromey <tromey@redhat.com>
4802 * record.c (record_stop): Unconditionally delegate.
4803 * target-delegates.c: Rebuild.
4804 * target.c (target_stop_recording): Unconditionally delegate.
4805 * target.h (struct target_ops) <to_stop_recording>: Use
4806 TARGET_DEFAULT_IGNORE.
4808 2014-02-19 Tom Tromey <tromey@redhat.com>
4810 * target-delegates.c: Rebuild.
4811 * target.c (target_enable_btrace): Unconditionally delegate.
4812 * target.h (struct target_ops) <to_enable_btrace>: Use
4813 TARGET_DEFAULT_NORETURN.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (target_read_btrace): Unconditionally delegate.
4819 * target.h (struct target_ops) <to_read_btrace>: Use
4820 TARGET_DEFAULT_NORETURN.
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target-delegates.c: Rebuild.
4825 * target.c (target_teardown_btrace): Unconditionally delegate.
4826 * target.h (struct target_ops) <to_teardown_btrace>: Use
4827 TARGET_DEFAULT_NORETURN.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * target-delegates.c: Rebuild.
4832 * target.c (target_disable_btrace): Unconditionally delegate.
4833 * target.h (struct target_ops) <to_disable_btrace>: Use
4834 TARGET_DEFAULT_NORETURN.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target-delegates.c: Rebuild.
4839 * target.c (default_search_memory): New function.
4840 (simple_search_memory): Update comment.
4841 (target_search_memory): Unconditionally delegate.
4842 * target.h (struct target_ops) <to_search_memory>: Use
4843 TARGET_DEFAULT_FUNC.
4845 2014-02-19 Tom Tromey <tromey@redhat.com>
4847 * auxv.c (default_auxv_parse): No longer static.
4848 (target_auxv_parse): Unconditionally delegate.
4849 * auxv.h (default_auxv_parse): Declare.
4850 * target-delegates.c: Rebuild.
4851 * target.c: Include auxv.h.
4852 * target.h (struct target_ops) <to_auxv_parse>: Use
4853 TARGET_DEFAULT_FUNC.
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target-delegates.c: Rebuild.
4858 * target.c (target_memory_map): Unconditionally delegate.
4859 * target.h (struct target_ops) <to_memory_map>: Use
4860 TARGET_DEFAULT_RETURN.
4862 2014-02-19 Tom Tromey <tromey@redhat.com>
4864 * target-delegates.c: Rebuild.
4865 * target.c (target_thread_alive): Unconditionally delegate.
4866 * target.h (struct target_ops) <to_thread_alive>: Use
4867 TARGET_DEFAULT_RETURN.
4869 2014-02-19 Tom Tromey <tromey@redhat.com>
4871 * target-delegates.c: Rebuild.
4872 * target.c (target_save_record): Unconditionally delegate.
4873 * target.h (struct target_ops) <to_save_record>: Use
4874 TARGET_DEFAULT_NORETURN.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * target-delegates.c: Rebuild.
4879 * target.c (target_delete_record): Unconditionally delegate.
4880 * target.h (struct target_ops) <to_delete_record>: Use
4881 TARGET_DEFAULT_NORETURN.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (target_record_is_replaying): Unconditionally
4888 * target.h (struct target_ops) <to_record_is_replaying>: Use
4889 TARGET_DEFAULT_RETURN.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (target_goto_record_begin): Unconditionally delegate.
4895 * target.h (struct target_ops) <to_goto_record_begin>: Use
4896 TARGET_DEFAULT_NORETURN.
4898 2014-02-19 Tom Tromey <tromey@redhat.com>
4900 * target-delegates.c: Rebuild.
4901 * target.c (target_goto_record_end): Unconditionally delegate.
4902 * target.h (struct target_ops) <to_goto_record_end>: Use
4903 TARGET_DEFAULT_NORETURN.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target-delegates.c: Rebuild.
4908 * target.c (target_goto_record): Unconditionally delegate.
4909 * target.h (struct target_ops) <to_goto_record>: Use
4910 TARGET_DEFAULT_NORETURN.
4912 2014-02-19 Tom Tromey <tromey@redhat.com>
4914 * target-delegates.c: Rebuild.
4915 * target.c (target_insn_history): Unconditionally delegate.
4916 * target.h (struct target_ops) <to_insn_history>: Use
4917 TARGET_DEFAULT_NORETURN.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target-delegates.c: Rebuild.
4922 * target.c (target_insn_history_from): Unconditionally delegate.
4923 * target.h (struct target_ops) <to_insn_history_from>: Use
4924 TARGET_DEFAULT_NORETURN.
4926 2014-02-19 Tom Tromey <tromey@redhat.com>
4928 * target-delegates.c: Rebuild.
4929 * target.c (target_insn_history_range): Unconditionally delegate.
4930 * target.h (struct target_ops) <to_insn_history_range>: Use
4931 TARGET_DEFAULT_NORETURN.
4933 2014-02-19 Tom Tromey <tromey@redhat.com>
4935 * target-delegates.c: Rebuild.
4936 * target.c (target_call_history): Unconditionally delegate.
4937 * target.h (struct target_ops) <to_call_history>: Use
4938 TARGET_DEFAULT_NORETURN.
4940 2014-02-19 Tom Tromey <tromey@redhat.com>
4942 * target-delegates.c: Rebuild.
4943 * target.c (target_call_history_from): Unconditionally delegate.
4944 * target.h (struct target_ops) <to_call_history_from>: Use
4945 TARGET_DEFAULT_NORETURN.
4947 2014-02-19 Tom Tromey <tromey@redhat.com>
4949 * target-delegates.c: Rebuild.
4950 * target.c (target_call_history_range): Unconditionally delegate.
4951 * target.h (struct target_ops) <to_call_history_range>: Use
4952 TARGET_DEFAULT_NORETURN.
4954 2014-02-19 Tom Tromey <tromey@redhat.com>
4956 * target-delegates.c: Rebuild.
4957 * target.c (target_verify_memory): Unconditionally delegate.
4958 * target.h (struct target_ops) <to_verify_memory>: Use
4959 TARGET_DEFAULT_NORETURN.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target-delegates.c: Rebuild.
4964 * target.c (target_core_of_thread): Unconditionally delegate.
4965 * target.h (struct target_ops) <to_core_of_thread>: Use
4966 TARGET_DEFAULT_RETURN.
4968 2014-02-19 Tom Tromey <tromey@redhat.com>
4970 * target-delegates.c: Rebuild.
4971 * target.c (target_flash_done): Unconditionally delegate.
4972 * target.h (struct target_ops) <to_flash_done>: Use
4973 TARGET_DEFAULT_NORETURN.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target-delegates.c: Rebuild.
4978 * target.c (target_flash_erase): Unconditionally delegate.
4979 * target.h (struct target_ops) <to_flash_erase>: Use
4980 TARGET_DEFAULT_NORETURN.
4982 2014-02-19 Tom Tromey <tromey@redhat.com>
4984 * target-delegates.c: Rebuild.
4985 * target.c (target_get_section_table): Unconditionally delegate.
4986 * target.h (struct target_ops) <to_get_section_table>: Use
4987 TARGET_DEFAULT_RETURN.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target-delegates.c: Rebuild.
4992 * target.c (target_pid_to_str): Unconditionally delegate.
4993 (init_dummy_target): Don't initialize to_pid_to_str.
4994 (default_pid_to_str): Rename from dummy_pid_to_str.
4995 * target.h (struct target_ops) <to_pid_to_str>: Use
4996 TARGET_DEFAULT_FUNC.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * target-delegates.c: Rebuild.
5001 * target.c (target_find_new_threads): Unconditionally delegate.
5002 * target.h (struct target_ops) <to_find_new_threads>: Use
5003 TARGET_DEFAULT_RETURN.
5005 2014-02-19 Tom Tromey <tromey@redhat.com>
5007 * target-delegates.c: Rebuild.
5008 * target.c (target_program_signals): Unconditionally delegate.
5009 * target.h (struct target_ops) <to_program_signals>: Use
5010 TARGET_DEFAULT_IGNORE.
5012 2014-02-19 Tom Tromey <tromey@redhat.com>
5014 * target-delegates.c: Rebuild.
5015 * target.c (target_pass_signals): Unconditionally delegate.
5016 * target.h (struct target_ops) <to_pass_signals>: Use
5017 TARGET_DEFAULT_IGNORE.
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target-delegates.c: Rebuild.
5022 * target.c (default_mourn_inferior): New function.
5023 (target_mourn_inferior): Unconditionally delegate.
5024 * target.h (struct target_ops) <to_mourn_inferior>: Use
5025 TARGET_DEFAULT_FUNC.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target-delegates.c: Rebuild.
5030 * target.c (default_follow_fork): New function.
5031 (target_follow_fork): Unconditionally delegate.
5032 * target.h (struct target_ops) <to_follow_fork>: Use
5033 TARGET_DEFAULT_FUNC.
5035 2014-02-19 Tom Tromey <tromey@redhat.com>
5037 * target-delegates.c: Rebuild.
5038 * target.c (target_kill): Unconditionally delegate.
5039 * target.h (struct target_ops) <to_kill>: Use
5040 TARGET_DEFAULT_NORETURN.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target-delegates.c: Rebuild.
5045 * target.c (target_masked_watch_num_registers): Unconditionally
5047 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5048 Use TARGET_DEFAULT_RETURN.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (target_remove_mask_watchpoint): Unconditionally
5055 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5056 TARGET_DEFAULT_RETURN.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (target_insert_mask_watchpoint): Unconditionally
5063 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5064 TARGET_DEFAULT_RETURN.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (target_ranged_break_num_registers): Unconditionally
5071 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5072 Use TARGET_DEFAULT_RETURN.
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target-delegates.c: Rebuild.
5077 * target.c (target_fetch_registers): Unconditionally delegate.
5078 * target.h (struct target_ops) <to_fetch_registers>: Use
5079 TARGET_DEFAULT_NORETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (update_current_target): Don't inherit or default
5086 * target.h (struct target_ops) <to_stop>: Use
5087 TARGET_DEFAULT_IGNORE.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (update_current_target): Don't inherit or default
5093 to_can_run_breakpoint_commands.
5094 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5095 Use TARGET_DEFAULT_RETURN.
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target-delegates.c: Rebuild.
5100 * target.c (update_current_target): Don't inherit or default
5101 to_supports_evaluation_of_breakpoint_conditions.
5102 * target.h (struct target_ops)
5103 <to_supports_evaluation_of_breakpoint_conditions>: Use
5104 TARGET_DEFAULT_RETURN.
5106 2014-02-19 Tom Tromey <tromey@redhat.com>
5108 * target-delegates.c: Rebuild.
5109 * target.c (update_current_target): Don't inherit or default
5110 to_augmented_libraries_svr4_read.
5111 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5112 Use TARGET_DEFAULT_RETURN.
5114 2014-02-19 Tom Tromey <tromey@redhat.com>
5116 * target-delegates.c: Rebuild.
5117 * target.c (update_current_target): Don't inherit or default
5119 * target.h (struct target_ops) <to_can_use_agent>: Use
5120 TARGET_DEFAULT_RETURN.
5122 2014-02-19 Tom Tromey <tromey@redhat.com>
5124 * target-delegates.c: Rebuild.
5125 * target.c (update_current_target): Don't inherit or default
5127 * target.h (struct target_ops) <to_use_agent>: Use
5128 TARGET_DEFAULT_NORETURN.
5130 2014-02-19 Tom Tromey <tromey@redhat.com>
5132 * target-delegates.c: Rebuild.
5133 * target.c (update_current_target): Don't inherit or default
5135 (return_null): Remove.
5136 * target.h (struct target_ops) <to_traceframe_info>: Use
5137 TARGET_DEFAULT_RETURN.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target-delegates.c: Rebuild.
5142 * target.c (update_current_target): Don't inherit or default
5143 to_static_tracepoint_markers_by_strid.
5144 * target.h (struct target_ops)
5145 <to_static_tracepoint_markers_by_strid>: Use
5146 TARGET_DEFAULT_NORETURN.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target-delegates.c: Rebuild.
5151 * target.c (update_current_target): Don't inherit or default
5152 to_static_tracepoint_marker_at.
5153 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5154 Use TARGET_DEFAULT_RETURN.
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target-delegates.c: Rebuild.
5159 * target.c (update_current_target): Don't inherit or default
5161 * target.h (struct target_ops) <to_set_permissions>: Use
5162 TARGET_DEFAULT_IGNORE.
5164 2014-02-19 Tom Tromey <tromey@redhat.com>
5166 * target-delegates.c: Rebuild.
5167 * target.c (update_current_target): Don't inherit or default
5169 * target.h (struct target_ops) <to_get_tib_address>: Use
5170 TARGET_DEFAULT_NORETURN.
5172 2014-02-19 Tom Tromey <tromey@redhat.com>
5174 * target-delegates.c: Rebuild.
5175 * target.c (update_current_target): Don't inherit or default
5177 * target.h (struct target_ops) <to_set_trace_notes>: Use
5178 TARGET_DEFAULT_RETURN.
5180 2014-02-19 Tom Tromey <tromey@redhat.com>
5182 * target-delegates.c: Rebuild.
5183 * target.c (update_current_target): Don't initialize
5184 to_set_trace_buffer_size.
5185 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5186 TARGET_DEFAULT_IGNORE.
5188 2014-02-19 Tom Tromey <tromey@redhat.com>
5190 * target-delegates.c: Rebuild.
5191 * target.c (update_current_target): Don't inherit or default
5192 to_set_circular_trace_buffer.
5193 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5194 TARGET_DEFAULT_IGNORE.
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target-delegates.c: Rebuild.
5199 * target.c (update_current_target): Don't inherit or default
5200 to_set_disconnected_tracing.
5201 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5202 TARGET_DEFAULT_IGNORE.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target-delegates.c: Rebuild.
5207 * target.c (update_current_target): Don't inherit or default
5208 to_get_min_fast_tracepoint_insn_len.
5209 (return_minus_one): Remove.
5210 * target.h (struct target_ops)
5211 <to_get_min_fast_tracepoint_insn_len>: 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
5217 to_get_raw_trace_data.
5218 * target.h (struct target_ops) <to_get_raw_trace_data>: 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_upload_trace_state_variables.
5226 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5227 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
5234 * target.h (struct target_ops) <to_upload_tracepoints>: 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_save_trace_data>: 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_get_trace_state_variable_value.
5250 * target.h (struct target_ops)
5251 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
5258 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5260 2014-02-19 Tom Tromey <tromey@redhat.com>
5262 * target-delegates.c: Rebuild.
5263 * target.c (update_current_target): Don't inherit or default
5265 * target.h (struct target_ops) <to_trace_stop>: Use
5266 TARGET_DEFAULT_NORETURN.
5268 2014-02-19 Tom Tromey <tromey@redhat.com>
5270 * target-delegates.c: Rebuild.
5271 * target.c (update_current_target): Don't inherit or default
5272 to_get_tracepoint_status.
5273 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5274 TARGET_DEFAULT_NORETURN.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target-delegates.c: Rebuild.
5279 * target.c (update_current_target): Don't inherit or default
5280 to_get_trace_status.
5281 * target.h (struct target_ops) <to_get_trace_status>: Use
5282 TARGET_DEFAULT_RETURN.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target-delegates.c: Rebuild.
5287 * target.c (update_current_target): Don't inherit or default
5289 * target.h (struct target_ops) <to_trace_start>: Use
5290 TARGET_DEFAULT_NORETURN.
5292 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target-delegates.c: Rebuild.
5295 * target.c (update_current_target): Don't inherit or default
5296 to_trace_set_readonly_regions.
5297 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5298 Use TARGET_DEFAULT_NORETURN.
5300 2014-02-19 Tom Tromey <tromey@redhat.com>
5302 * target-delegates.c: Rebuild.
5303 * target.c (update_current_target): Don't inherit or default
5304 to_disable_tracepoint.
5305 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5306 TARGET_DEFAULT_NORETURN.
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * target-delegates.c: Rebuild.
5311 * target.c (update_current_target): Don't inherit or default
5312 to_enable_tracepoint.
5313 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5314 TARGET_DEFAULT_NORETURN.
5316 2014-02-19 Tom Tromey <tromey@redhat.com>
5318 * target-delegates.c: Rebuild.
5319 * target.c (update_current_target): Don't inherit or default
5320 to_download_trace_state_variable.
5321 * target.h (struct target_ops) <to_download_trace_state_variable>:
5322 Use TARGET_DEFAULT_NORETURN.
5324 2014-02-19 Tom Tromey <tromey@redhat.com>
5326 * target-delegates.c: Rebuild.
5327 * target.c (update_current_target): Don't inherit or default
5328 to_can_download_tracepoint.
5329 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5330 TARGET_DEFAULT_RETURN.
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target-delegates.c: Rebuild.
5335 * target.c (update_current_target): Don't inherit or default
5336 to_download_tracepoint.
5337 * target.h (struct target_ops) <to_download_tracepoint>: Use
5338 TARGET_DEFAULT_NORETURN.
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target-delegates.c: Rebuild.
5343 * target.c (update_current_target): Don't inherit or default
5345 * target.h (struct target_ops) <to_trace_init>: Use
5346 TARGET_DEFAULT_RETURN.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target-delegates.c: Rebuild.
5351 * target.c (update_current_target): Don't inherit or default
5352 to_supports_string_tracing.
5353 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5354 TARGET_DEFAULT_RETURN.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target-delegates.c: Rebuild.
5359 * target.c (update_current_target): Don't inherit or default
5360 to_supports_enable_disable_tracepoint.
5361 * target.h (struct target_ops)
5362 <to_supports_enable_disable_tracepoint>: Use
5363 TARGET_DEFAULT_RETURN.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target-delegates.c: Rebuild.
5368 * target.c (update_current_target): Don't inherit or default
5369 to_supports_multi_process.
5370 * target.h (struct target_ops) <to_supports_multi_process>: Use
5371 TARGET_DEFAULT_RETURN.
5373 2014-02-19 Tom Tromey <tromey@redhat.com>
5375 * target-delegates.c: Rebuild.
5376 * target.c (update_current_target): Don't inherit or default
5377 to_get_ada_task_ptid.
5378 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5379 TARGET_DEFAULT_FUNC.
5381 2014-02-19 Tom Tromey <tromey@redhat.com>
5383 * target-delegates.c: Rebuild.
5384 * target.c (update_current_target): Don't inherit or default
5385 to_thread_architecture.
5386 * target.h (struct target_ops) <to_thread_architecture>: Use
5387 TARGET_DEFAULT_FUNC.
5389 2014-02-19 Tom Tromey <tromey@redhat.com>
5391 * target-delegates.c: Rebuild.
5392 * target.c (update_current_target): Don't inherit or default
5393 to_execution_direction.
5394 * target.h (struct target_ops) <to_execution_direction>: 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
5401 to_can_execute_reverse.
5402 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5403 TARGET_DEFAULT_RETURN.
5404 (target_can_execute_reverse): 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
5411 (dummy_goto_bookmark): Remove.
5412 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5413 * target.h (struct target_ops) <to_goto_bookmark>: Use
5414 TARGET_DEFAULT_NORETURN.
5416 2014-02-19 Tom Tromey <tromey@redhat.com>
5418 * target-delegates.c: Rebuild.
5419 * target.c (update_current_target): Don't inherit or default
5421 (dummy_get_bookmark): Remove.
5422 (init_dummy_target): Don't inherit or default to_get_bookmark.
5423 * target.h (struct target_ops) <to_get_bookmark>: Use
5424 TARGET_DEFAULT_NORETURN
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target-delegates.c: Rebuild.
5429 * target.c (update_current_target): Don't inherit or default
5430 to_make_corefile_notes.
5431 (init_dummy_target): Don't initialize to_make_corefile_notes.
5432 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5433 TARGET_DEFAULT_FUNC.
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target-delegates.c: Rebuild.
5438 * target.c (update_current_target): Don't inherit or default
5439 to_find_memory_regions.
5440 (init_dummy_target): Don't initialize to_find_memory_regions.
5441 * target.h (struct target_ops) <to_find_memory_regions>: Use
5442 TARGET_DEFAULT_FUNC.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target-delegates.c: Rebuild.
5447 * target.c (update_current_target): Don't inherit or default
5449 * target.h (struct target_ops) <to_log_command>: Use
5450 TARGET_DEFAULT_IGNORE.
5451 (target_log_command): Unconditionally delegate.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target-delegates.c: Rebuild.
5456 * target.c (update_current_target): Don't inherit or default
5457 to_pid_to_exec_file.
5458 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5459 TARGET_DEFAULT_RETURN.
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target-delegates.c: Rebuild.
5464 * target.c (update_current_target): Don't inherit or default
5466 (target_thread_name): Unconditionally delegate.
5467 * target.h (struct target_ops) <to_thread_name>: Use
5468 TARGET_DEFAULT_RETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5474 to_extra_thread_info.
5475 * target.h (struct target_ops) <to_extra_thread_info>: Use
5476 TARGET_DEFAULT_RETURN.
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target-delegates.c: Rebuild.
5481 * target.c (update_current_target): Don't inherit or default
5483 * target.h (struct target_ops) <to_has_exited>: Use
5484 TARGET_DEFAULT_RETURN..
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target-delegates.c: Rebuild.
5489 * target.c (update_current_target): Don't inherit or default
5490 to_set_syscall_catchpoint.
5491 (return_one): Remove.
5492 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5493 TARGET_DEFAULT_RETURN.
5495 2014-02-19 Tom Tromey <tromey@redhat.com>
5497 * target-delegates.c: Rebuild.
5498 * target.c (update_current_target): Don't inherit or default
5499 to_insert_exec_catchpoint.
5500 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5501 TARGET_DEFAULT_RETURN.
5503 2014-01-08 Tom Tromey <tromey@redhat.com>
5505 * target-delegates.c: Rebuild.
5506 * target.c (update_current_target): Don't inherit or default
5507 to_insert_exec_catchpoint.
5508 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5509 TARGET_DEFAULT_RETURN.
5511 2014-02-19 Tom Tromey <tromey@redhat.com>
5513 * target-delegates.c: Rebuild.
5514 * target.c (update_current_target): Don't inherit or default
5515 to_remove_vfork_catchpoint.
5516 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5517 TARGET_DEFAULT_RETURN.
5519 2014-02-19 Tom Tromey <tromey@redhat.com>
5521 * target-delegates.c: Rebuild.
5522 * target.c (update_current_target): Don't inherit or default
5523 to_insert_vfork_catchpoint.
5524 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5525 TARGET_DEFAULT_RETURN.
5527 2014-02-19 Tom Tromey <tromey@redhat.com>
5529 * target-delegates.c: Rebuild.
5530 * target.c (update_current_target): Don't inherit or default
5531 to_remove_fork_catchpoint.
5532 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5533 TARGET_DEFAULT_RETURN.
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target-delegates.c: Rebuild.
5538 * target.c (update_current_target): Don't inherit or default
5539 to_insert_fork_catchpoint.
5540 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5541 TARGET_DEFAULT_RETURN.
5543 2014-02-19 Tom Tromey <tromey@redhat.com>
5545 * target-delegates.c: Rebuild.
5546 * target.c (update_current_target): Don't inherit or default
5547 to_post_startup_inferior.
5548 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5549 TARGET_DEFAULT_IGNORE.
5551 2014-02-19 Tom Tromey <tromey@redhat.com>
5553 * target-delegates.c: Rebuild.
5554 * target.c (update_current_target): Don't inherit or default
5556 * target.h (struct target_ops) <to_load>: Use
5557 TARGET_DEFAULT_NORETURN.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target-delegates.c: Rebuild.
5562 * target.c (update_current_target): Don't inherit or default
5564 * target.h (struct target_ops) <to_terminal_info>: Use
5565 TARGET_DEFAULT_FUNC.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target-delegates.c: Rebuild.
5570 * target.c (update_current_target): Don't inherit or default
5571 to_terminal_save_ours.
5572 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5573 TARGET_DEFAULT_IGNORE.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target-delegates.c: Rebuild.
5578 * target.c (update_current_target): Don't inherit or default
5580 * target.h (struct target_ops) <to_terminal_ours>: Use
5581 TARGET_DEFAULT_IGNORE.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target-delegates.c: Rebuild.
5586 * target.c (update_current_target): Don't inherit or default
5587 to_terminal_ours_for_output.
5588 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5589 TARGET_DEFAULT_IGNORE.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * target-delegates.c: Rebuild.
5594 * target.c (update_current_target): Don't inherit or default
5595 to_terminal_inferior.
5596 * target.h (struct target_ops) <to_terminal_inferior>: Use
5597 TARGET_DEFAULT_IGNORE.
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * target-delegates.c: Rebuild.
5602 * target.c (update_current_target): Don't inherit or default
5604 * target.h (struct target_ops) <to_terminal_init>: Use
5605 TARGET_DEFAULT_IGNORE.
5607 2014-02-19 Tom Tromey <tromey@redhat.com>
5609 * target-delegates.c: Rebuild.
5610 * target.c (update_current_target): Don't inherit or default
5611 to_can_accel_watchpoint_condition.
5612 * target.h (struct target_ops)
5613 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target-delegates.c: Rebuild.
5618 * target.c (update_current_target): Don't inherit or default
5619 to_region_ok_for_hw_watchpoint.
5620 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5621 Use TARGET_DEFAULT_FUNC.
5623 2014-02-19 Tom Tromey <tromey@redhat.com>
5625 * target-delegates.c: Rebuild.
5626 * target.c (update_current_target): Don't inherit or default
5627 to_watchpoint_addr_within_range.
5628 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5629 Use TARGET_DEFAULT_FUNC.
5631 2014-02-19 Tom Tromey <tromey@redhat.com>
5633 * target-delegates.c: Rebuild.
5634 * target.c (update_current_target): Don't inherit or default
5635 to_remove_watchpoint.
5636 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5637 TARGET_DEFAULT_NORETURN.
5639 2014-02-19 Tom Tromey <tromey@redhat.com>
5641 * target-delegates.c: Rebuild.
5642 * target.c (update_current_target): Don't inherit or default
5643 to_insert_watchpoint.
5644 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5645 TARGET_DEFAULT_RETURN.
5647 2014-02-19 Tom Tromey <tromey@redhat.com>
5649 * target-delegates.c: Rebuild.
5650 * target.c (update_current_target): Don't inherit or default
5651 to_remove_hw_breakpoint.
5652 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5653 TARGET_DEFAULT_RETURN.
5655 2014-02-19 Tom Tromey <tromey@redhat.com>
5657 * target-delegates.c: Rebuild.
5658 * target.c (update_current_target): Don't inherit or default
5659 to_insert_hw_breakpoint.
5660 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5661 TARGET_DEFAULT_RETURN.
5663 2014-02-19 Tom Tromey <tromey@redhat.com>
5665 * target-delegates.c: Rebuild.
5666 * target.c (update_current_target): Don't inherit or default
5667 to_can_use_hw_breakpoint.
5668 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5669 TARGET_DEFAULT_RETURN.
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target-delegates.c: Rebuild.
5674 * target.c (update_current_target): Don't inherit or default
5676 * target.h (struct target_ops) <to_files_info>: Use
5677 TARGET_DEFAULT_IGNORE.
5679 2014-02-19 Tom Tromey <tromey@redhat.com>
5681 * target-delegates.c: Rebuild.
5682 * target.c (update_current_target): Don't inherit or default
5684 * target.h (struct target_ops) <to_store>: Use
5685 TARGET_DEFAULT_NORETURN.
5687 2014-02-19 Tom Tromey <tromey@redhat.com>
5689 * target-delegates.c: Rebuild.
5690 * target.c (update_current_target): Don't inherit or default
5692 * target.h (struct target_ops) <to_post_attach>: Use
5693 TARGET_DEFAULT_IGNORE.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target-delegates.c: Rebuild.
5698 * target.c (update_current_target): Don't inherit or default
5700 (default_rcmd): New function.
5701 (do_monitor_command): Unconditionally delegate.
5702 * target.h (struct target_ops) <to_rmcd>: Use
5703 TARGET_DEFAULT_FUNC.
5705 2014-02-19 Tom Tromey <tromey@redhat.com>
5707 * target-delegates.c: Rebuild.
5708 * target.c (init_dummy_target): Don't initialize to_attach.
5709 (target_attach): Unconditionally delegate.
5710 * target.h (struct target_ops) <to_attach>: Use
5711 TARGET_DEFAULT_FUNC.
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * target-delegates.c: Rebuild.
5716 * target.c (target_detach): Unconditionally delegate.
5717 (init_dummy_target): Don't initialize to_detach.
5718 * target.h (struct target_ops) <to_detach>: Use
5719 TARGET_DEFAULT_IGNORE.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5725 (target_augmented_libraries_svr4_read): Add argument.
5726 * target.c (update_current_target): Update.
5727 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target.h (struct target_ops) <to_call_history_range>: Add
5734 * target.c (target_call_history_range): Add argument.
5735 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5737 (record_btrace_call_history_from): Update.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target.h (struct target_ops) <to_call_history_from>: Add
5743 * target.c (target_call_history_from): Add argument.
5744 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target.h (struct target_ops) <to_call_history>: Add argument.
5750 * target.c (target_call_history): Add argument.
5751 * record-btrace.c (record_btrace_call_history): Add 'self'
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target.h (struct target_ops) <to_insn_history_range>: Add
5758 * target.c (target_insn_history_range): Add argument.
5759 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5761 (record_btrace_insn_history_from): Update.
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5765 * target.h (struct target_ops) <to_insn_history_from>: Add
5767 * target.c (target_insn_history_from): Add argument.
5768 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target.h (struct target_ops) <to_insn_history>: Add argument.
5774 * target.c (target_insn_history): Add argument.
5775 * record-btrace.c (record_btrace_insn_history): Add 'self'
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target.h (struct target_ops) <to_goto_record>: Add argument.
5781 * target.c (target_goto_record): Add argument.
5782 * record-full.c (record_full_goto): Add 'self' argument.
5783 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5785 2014-02-19 Tom Tromey <tromey@redhat.com>
5787 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5788 * target.c (target_goto_record_end): Add argument.
5789 * record-full.c (record_full_goto_end): Add 'self' argument.
5790 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target.h (struct target_ops) <to_goto_record_begin>: Add
5796 * target.c (target_goto_record_begin): Add argument.
5797 * record-full.c (record_full_goto_begin): Add 'self' argument.
5798 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_record_is_replaying>: Add
5805 * target.c (target_record_is_replaying): Add argument.
5806 * record-full.c (record_full_is_replaying): Add 'self' argument.
5807 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5809 (record_btrace_xfer_partial, record_btrace_store_registers)
5810 (record_btrace_prepare_to_store, record_btrace_resume)
5811 (record_btrace_wait, record_btrace_decr_pc_after_break)
5812 (record_btrace_find_new_threads, record_btrace_thread_alive):
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target.h (struct target_ops) <to_delete_record>: Add argument.
5818 * target.c (target_delete_record): Add argument.
5819 * record-full.c (record_full_delete): Add 'self' argument.
5821 2014-02-19 Tom Tromey <tromey@redhat.com>
5823 * target.h (struct target_ops) <to_save_record>: Add argument.
5824 * target.c (target_save_record): Add argument.
5825 * record-full.c (record_full_save): Add 'self' argument.
5826 (record_full_save): Add 'self' argument.
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * target.h (struct target_ops) <to_info_record>: Add argument.
5831 * target.c (target_info_record): Add argument.
5832 * record.c (info_record_command): Add argument.
5833 * record-full.c (record_full_info): Add 'self' argument.
5834 * record-btrace.c (record_btrace_info): Add 'self' argument.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5839 * target.c (target_stop_recording): Add argument.
5840 * record.c (record_stop): Add argument.
5841 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5847 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5848 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5850 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5851 (_initialize_amd64_linux_nat): Use it.
5852 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5853 (_initialize_i386_linux_nat): Use it.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5858 * target.c (target_teardown_btrace): Add argument.
5859 * remote.c (remote_teardown_btrace): Add 'self' argument.
5860 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5862 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5868 * target.c (target_disable_btrace): Add argument.
5869 * remote.c (remote_disable_btrace): Add 'self' argument.
5870 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5872 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5878 * target.c (target_enable_btrace): Add argument.
5879 * remote.c (remote_enable_btrace): Add 'self' argument.
5880 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5882 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5888 (target_can_use_agent): Add argument.
5889 * target.c (update_current_target): Update.
5890 * remote.c (remote_can_use_agent): Add 'self' argument.
5891 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5893 2014-02-19 Tom Tromey <tromey@redhat.com>
5895 * target.h (struct target_ops) <to_use_agent>: Add argument.
5896 (target_use_agent): Add argument.
5897 * target.c (update_current_target): Update.
5898 * remote.c (remote_use_agent): Add 'self' argument.
5899 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5904 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5905 (target_traceframe_info): Add argument.
5906 * target.c (update_current_target): Update.
5907 * remote.c (remote_traceframe_info): Add 'self' argument.
5908 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5910 2014-02-19 Tom Tromey <tromey@redhat.com>
5912 * target.h (target_static_tracepoint_markers_by_strid): Add
5914 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5916 * target.c (update_current_target): Update.
5917 * remote.c (struct target_ops)
5918 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5919 * linux-nat.c (struct target_ops)
5920 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5926 (target_static_tracepoint_marker_at): Add argument.
5927 * target.c (update_current_target): Update.
5928 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5931 2014-02-19 Tom Tromey <tromey@redhat.com>
5933 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5934 (target_set_permissions): Add argument.
5935 * target.c (update_current_target): Update.
5936 * remote.c (remote_set_permissions): Add 'self' argument.
5937 (remote_start_remote): Update.
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5942 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5943 (target_get_tib_address): Add argument.
5944 * target.c (update_current_target): Update.
5945 * remote.c (remote_get_tib_address): Add 'self' argument.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5950 (target_set_trace_notes): Add argument.
5951 * target.c (update_current_target): Update.
5952 * remote.c (remote_set_trace_notes): Add 'self' argument.
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5956 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5958 (target_set_trace_buffer_size): Add argument.
5959 * target.c (update_current_target): Update.
5960 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5966 (target_set_circular_trace_buffer): Add argument.
5967 * target.c (update_current_target): Update.
5968 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5971 2014-02-19 Tom Tromey <tromey@redhat.com>
5973 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5975 (target_set_disconnected_tracing): Add argument.
5976 * target.c (update_current_target): Update.
5977 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5979 2014-02-19 Tom Tromey <tromey@redhat.com>
5981 * target.h (struct target_ops)
5982 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5983 (target_get_min_fast_tracepoint_insn_len): Add argument.
5984 * target.c (update_current_target): Update.
5985 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5988 2014-02-19 Tom Tromey <tromey@redhat.com>
5990 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5992 (target_get_raw_trace_data): Add argument.
5993 * target.c (update_current_target): Update.
5994 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6000 (target_upload_trace_state_variables): Add argument.
6001 * target.c (update_current_target): Update.
6002 * remote.c (remote_upload_trace_state_variables): Add 'self'
6004 (remote_start_remote): Update.
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6010 (target_upload_tracepoints): Add argument.
6011 * target.c (update_current_target): Update.
6012 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6013 (remote_start_remote): Update.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6018 (target_save_trace_data): Add argument.
6019 * target.c (update_current_target): Update.
6020 * remote.c (remote_save_trace_data): Add 'self' argument.
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6026 * target.h (struct target_ops)
6027 <to_get_trace_state_variable_value>: Add argument.
6028 (target_get_trace_state_variable_value): Add argument.
6029 * target.c (update_current_target): Update.
6030 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6032 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6037 * target.h (struct target_ops) <to_trace_find>: Add argument.
6038 (target_trace_find): Add argument.
6039 * target.c (update_current_target): Update.
6040 * remote.c (remote_trace_find): Add 'self' argument.
6041 * ctf.c (ctf_trace_find): Add 'self' argument.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6046 (target_trace_stop): Add argument.
6047 * target.c (update_current_target): Update.
6048 * remote.c (remote_trace_stop): Add 'self' argument.
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6053 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6055 (target_get_tracepoint_status): Add argument.
6056 * target.c (update_current_target): Update.
6057 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6059 2014-02-19 Tom Tromey <tromey@redhat.com>
6061 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6062 * target.h (struct target_ops) <to_get_trace_status>: Add
6064 (target_get_trace_status): Add argument.
6065 * target.c (update_current_target): Update.
6066 * remote.c (remote_get_trace_status): Add 'self' argument.
6067 (remote_start_remote, remote_can_download_tracepoint): Update.
6068 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target.h (struct target_ops) <to_trace_start>: Add argument.
6073 (target_trace_start): Add argument.
6074 * target.c (update_current_target): Update.
6075 * remote.c (remote_trace_start): Add 'self' argument.
6077 2014-02-19 Tom Tromey <tromey@redhat.com>
6079 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6081 (target_trace_set_readonly_regions): Add argument.
6082 * target.c (update_current_target): Update.
6083 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6090 (target_disable_tracepoint): Add argument.
6091 * target.c (update_current_target): Update.
6092 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6098 (target_enable_tracepoint): Add argument.
6099 * target.c (update_current_target): Update.
6100 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target.h (struct target_ops) <to_download_trace_state_variable>:
6106 (target_download_trace_state_variable): Add argument.
6107 * target.c (update_current_target): Update.
6108 * remote.c (remote_download_trace_state_variable): Add 'self'
6111 2014-02-19 Tom Tromey <tromey@redhat.com>
6113 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6115 (target_can_download_tracepoint): Add argument.
6116 * target.c (update_current_target): Update.
6117 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target.h (struct target_ops) <to_download_tracepoint>: Add
6123 (target_download_tracepoint): Add argument.
6124 * target.c (update_current_target): Update.
6125 * remote.c (remote_download_tracepoint): Add 'self' argument.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target.h (struct target_ops) <to_trace_init>: Add argument.
6130 (target_trace_init): Add argument.
6131 * target.c (update_current_target): Update.
6132 * remote.c (remote_trace_init): Add 'self' argument.
6134 2014-02-19 Tom Tromey <tromey@redhat.com>
6136 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6137 * target.c (target_fileio_readlink): Add argument.
6138 * remote.c (remote_hostio_readlink): Add 'self' argument.
6139 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6141 2014-02-19 Tom Tromey <tromey@redhat.com>
6143 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6144 * target.c (target_fileio_unlink): Add argument.
6145 * remote.c (remote_hostio_unlink): Add 'self' argument.
6146 (remote_file_delete): Update.
6147 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6151 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6152 * target.c (target_fileio_close): Add argument.
6153 * remote.c (remote_hostio_close): Add 'self' argument.
6154 (remote_hostio_close_cleanup): Update.
6155 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6157 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6162 * target.c (target_fileio_pread): Add argument.
6163 * remote.c (remote_hostio_pread): Add 'self' argument.
6164 (remote_bfd_iovec_pread, remote_file_get): Update.
6165 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6167 2014-02-19 Tom Tromey <tromey@redhat.com>
6169 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6170 * target.c (target_fileio_pwrite): Add argument.
6171 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6172 (remote_file_put): Update.
6173 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6178 * target.c (target_fileio_open): Add argument.
6179 * remote.c (remote_hostio_open): Add 'self' argument.
6180 (remote_bfd_iovec_open): Add 'self' argument.
6181 (remote_file_put): Add 'self' argument.
6182 (remote_file_get): Add 'self' argument.
6183 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6185 2014-02-19 Tom Tromey <tromey@redhat.com>
6187 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6189 (target_can_run_breakpoint_commands): Add argument.
6190 * target.c (update_current_target): Update.
6191 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6193 (remote_insert_breakpoint): Add 'self' argument.
6194 (remote_insert_hw_breakpoint): Add 'self' argument.
6195 (remote_can_run_breakpoint_commands): Add 'self' argument.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops)
6200 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6201 (target_supports_evaluation_of_breakpoint_conditions): Add
6203 * target.c (update_current_target): Update.
6204 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6206 (remote_insert_breakpoint): Add 'self' argument.
6207 (remote_insert_hw_breakpoint): Add 'self' argument.
6208 (remote_supports_cond_breakpoints): Add 'self' argument.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6214 (target_supports_string_tracing): Add argument.
6215 * target.c (update_current_target): Update.
6216 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target.h (struct target_ops)
6221 <to_supports_disable_randomization>: Add argument.
6222 * target.c (find_default_supports_disable_randomization): Add
6224 (target_supports_disable_randomization): Add argument.
6225 (find_default_supports_disable_randomization): Add 'self'
6227 * remote.c (extended_remote_supports_disable_randomization): Add
6229 (remote_supports_disable_randomization): Add 'self' argument.
6230 (extended_remote_create_inferior): Update.
6231 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target.h (struct target_ops)
6237 <to_supports_enable_disable_tracepoint>: Add argument.
6238 (target_supports_enable_disable_tracepoint): Add argument.
6239 * target.c (update_current_target): Update.
6240 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6243 2014-02-19 Tom Tromey <tromey@redhat.com>
6245 * target.h (struct target_ops) <to_supports_multi_process>: Add
6247 (target_supports_multi_process): Add argument.
6248 * target.c (update_current_target): Update.
6249 * remote.c (remote_supports_multi_process): Add 'self' argument.
6250 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6252 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target.h (struct target_ops) <to_execution_direction>: Add
6259 (target_execution_direction): Add argument.
6260 * target.c (default_execution_direction): Add 'self' argument.
6261 * record-full.c (record_full_execution_direction): Add 'self'
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6268 (target_can_execute_reverse): Add argument.
6269 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6270 * record-full.c (record_full_can_execute_reverse): Add 'self'
6272 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6278 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6280 (target_get_ada_task_ptid): Add argument.
6281 * target.c (update_current_target): Update.
6282 (default_get_ada_task_ptid): Add 'self' argument.
6283 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6284 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6285 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6287 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6289 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6291 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6293 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6294 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6300 (target_goto_bookmark): Add argument.
6301 * target.c (dummy_goto_bookmark): Add 'self' argument.
6302 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6307 (target_get_bookmark): Add argument.
6308 * target.c (dummy_get_bookmark): Add 'self' argument.
6309 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6313 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6315 (target_make_corefile_notes): Add argument.
6316 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6317 * procfs.c (procfs_make_note_section): Add 'self' argument.
6318 (procfs_make_note_section): Add 'self' argument.
6319 (procfs_make_note_section): Add 'self' argument.
6320 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6322 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6323 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6324 * exec.c (exec_make_note_section): Add 'self' argument.
6325 (exec_make_note_section): Add 'self' argument.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target.h (struct target_ops) <to_find_memory_regions>: Add
6331 (target_find_memory_regions): Add argument.
6332 * target.c (dummy_find_memory_regions): Add 'self' argument.
6333 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6334 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6335 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6336 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6337 * exec. (exec_do_find_memory_regions): New global.
6338 (exec_set_find_memory_regions): Rewrite.
6339 (exec_find_memory_regions): New function.
6340 (init_exec_ops): Use exec_find_memory_regions.
6342 2014-02-19 Tom Tromey <tromey@redhat.com>
6344 * target.h (struct target_ops) <to_supports_non_stop>: Add
6346 * target.c (find_default_supports_non_stop): Add argument.
6347 (target_supports_non_stop): Add argument.
6348 (find_default_supports_non_stop): Add 'self' argument.
6349 * remote.c (remote_supports_non_stop): Add 'self' argument.
6350 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6352 2014-02-19 Tom Tromey <tromey@redhat.com>
6354 * target.h (struct target_ops) <to_log_command>: Add argument.
6355 (target_log_command): Add argument.
6356 * serial.h (serial_log_command): Add 'self' argument.
6357 * serial.c (serial_log_command): Add 'self' argument.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6362 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6364 (target_pid_to_exec_file): Add argument.
6365 * target.c (debug_to_pid_to_exec_file): Add argument.
6366 (update_current_target): Update.
6367 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6368 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6369 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6370 (linux_handle_extended_wait): Update.
6371 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6372 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6373 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6374 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target.h (struct target_ops) <to_rcmd>: Add argument.
6379 (target_rcmd): Add argument.
6380 * target.c (debug_to_rcmd): Add argument.
6381 (update_current_target, do_monitor_command): Update.
6382 * remote.c (remote_rcmd): Add 'self' argument.
6383 * monitor.c (monitor_rcmd): Add 'self' argument.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * windows-nat.c (windows_stop): Add 'self' argument.
6388 * target.h (struct target_ops) <to_stop>: Add argument.
6389 * target.c (target_stop): Add argument.
6390 (debug_to_stop): Add argument.
6391 (update_current_target): Update.
6392 * remote.c (remote_stop): Add 'self' argument.
6393 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6394 (gdbsim_cntrl_c): Update.
6395 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6396 * procfs.c (procfs_stop): Add 'self' argument.
6397 * nto-procfs.c (procfs_stop): Add 'self' argument.
6398 * monitor.c (monitor_stop): Add 'self' argument.
6399 (monitor_open): Update.
6400 * linux-nat.c (linux_nat_stop): Add argument.
6401 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6402 * gnu-nat.c (gnu_stop): Add 'self' argument.
6403 * darwin-nat.c (darwin_stop): Add 'self' argument.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target.h (struct target_ops) <to_thread_name>: Add argument.
6408 * target.c (target_thread_name): Add argument.
6409 (update_current_target): Update.
6410 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_extra_thread_info>: Add
6416 (target_extra_thread_info): Add argument.
6417 * target.c (update_current_target): Update.
6418 * remote.c (remote_threads_extra_info): Add 'self' argument.
6419 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6421 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6422 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6423 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6425 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6427 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6429 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target.h (struct target_ops) <to_program_signals>: Add argument.
6435 * target.c (target_program_signals): Add argument.
6436 * remote.c (remote_program_signals): Add 'self' argument.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6441 * target.c (target_pass_signals): Add argument.
6442 * remote.c (remote_pass_signals): Add 'self' argument.
6443 (remote_start_remote): Update.
6444 * procfs.c (procfs_pass_signals): Add 'self' argument.
6445 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6446 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6447 (linux_nat_create_inferior, linux_nat_attach): Update.
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6451 * windows-nat.c (windows_can_run): Add 'self' argument.
6452 * target.h (struct target_ops) <to_can_run>: Add argument.
6453 (target_can_run): Add argument.
6454 * target.c (debug_to_can_run): Add argument.
6455 (update_current_target): Update.
6456 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6457 * inf-child.c (inf_child_can_run): Add 'self' argument.
6458 * go32-nat.c (go32_can_run): Add 'self' argument.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target.h (struct target_ops) <to_has_exited>: Add argument.
6463 (target_has_exited): Add argument.
6464 * target.c (debug_to_has_exited): Add argument.
6465 (update_current_target): Update.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6471 (target_set_syscall_catchpoint): Add argument.
6472 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6474 * target.c (update_current_target): Update.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6480 (target_remove_exec_catchpoint): Add argument.
6481 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6482 (update_current_target): Update.
6483 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6490 (target_insert_exec_catchpoint): Add argument.
6491 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6492 (update_current_target): Update.
6493 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6496 2014-02-19 Tom Tromey <tromey@redhat.com>
6498 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6500 (target_remove_vfork_catchpoint): Add argument.
6501 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6502 (update_current_target): Update.
6503 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6510 (target_insert_vfork_catchpoint): Add argument.
6511 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6512 (update_current_target): Update.
6513 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6516 2014-02-19 Tom Tromey <tromey@redhat.com>
6518 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6520 (target_remove_fork_catchpoint): Add argument.
6521 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6522 (update_current_target): Update.
6523 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6530 (target_insert_fork_catchpoint): Add argument.
6531 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6532 (update_current_target): Update.
6533 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6540 (target_post_startup_inferior): Add argument.
6541 * target.c (debug_to_post_startup_inferior): Add argument.
6542 (update_current_target): Update.
6543 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6545 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6547 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6549 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6551 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6553 (super_post_startup_inferior): Likewise.
6554 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6556 (super_post_startup_inferior): Likewise.
6557 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6558 Add 'self' argument.
6559 (super_post_startup_inferior): Likewise.
6561 2014-02-19 Tom Tromey <tromey@redhat.com>
6563 * target.h (struct target_ops) <to_load>: Add argument.
6564 * target.c (target_load): Add argument.
6565 (debug_to_load): Add argument.
6566 (update_current_target): Update.
6567 * remote.c (remote_load): Add 'self' argument.
6568 * remote-sim.c (gdbsim_load): Add 'self' argument.
6569 * remote-mips.c (mips_load): Add 'self' argument.
6570 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6571 * monitor.c (monitor_load): Add 'self' argument.
6572 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6577 (target_terminal_info): Add argument.
6578 * target.c (debug_to_terminal_info): Add argument.
6579 (default_terminal_info): Likewise.
6580 * inflow.c (child_terminal_info): Add 'self' argument.
6581 * inferior.h (child_terminal_info): Add 'self' argument.
6582 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6588 (target_terminal_save_ours): Add argument.
6589 * target.c (debug_to_terminal_save_ours): Add argument.
6590 (update_current_target): Update.
6591 * inflow.c (terminal_save_ours): Add 'self' argument.
6592 * inferior.h (terminal_save_ours): Add 'self' argument.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6597 (target_terminal_ours): Add argument.
6598 * target.c (debug_to_terminal_ours): Add argument.
6599 (update_current_target): Update.
6600 * remote.c (remote_terminal_ours): Add 'self' argument.
6601 (remote_close): Update.
6602 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6603 * inflow.c (terminal_ours): Add 'self' argument.
6604 * inferior.h (terminal_ours): Add 'self' argument.
6605 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6607 2014-02-19 Pedro Alves <palves@redhat.com>
6608 Tom Tromey <tromey@redhat.com>
6610 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6612 (target_terminal_ours_for_output): Add argument.
6613 * target.c (debug_to_terminal_ours_for_output): Add argument.
6614 (update_current_target): Update.
6615 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6616 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6617 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target.h (struct target_ops) <to_terminal_inferior>: Add
6623 * target.c (target_terminal_inferior): Add argument.
6624 (update_current_target): Update.
6625 * remote.c (remote_terminal_inferior): Add 'self' argument.
6626 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6627 * inflow.c (terminal_inferior): Add 'self' argument.
6628 * inferior.h (terminal_inferior): Add 'self' argument.
6629 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6630 (go32_terminal_inferior): Add 'self' argument.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6635 (target_terminal_init): Add argument.
6636 * target.c (debug_to_terminal_init): Add argument.
6637 (update_current_target): Update.
6638 * inflow.c (terminal_init_inferior): Add 'self' argument.
6639 * inferior.h (terminal_init_inferior): Add 'self' argument.
6640 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6641 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6643 2014-02-19 Tom Tromey <tromey@redhat.com>
6645 * target.h (struct target_ops)
6646 <to_can_accel_watchpoint_condition>: Add argument.
6647 (target_can_accel_watchpoint_condition): Add argument.
6648 * target.c (debug_to_can_accel_watchpoint_condition): Add
6650 (update_current_target): Update.
6651 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6658 (target_region_ok_for_hw_watchpoint): Add argument.
6659 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6660 (default_region_ok_for_hw_watchpoint): Add argument.
6661 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6662 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6664 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6666 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6668 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6670 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6672 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6674 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6675 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6677 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6678 Add 'self' argument.
6680 2014-02-19 Tom Tromey <tromey@redhat.com>
6682 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6684 (target_insert_watchpoint): Add argument.
6685 * target.c (debug_to_insert_watchpoint): Add argument.
6686 (update_current_target): Update.
6687 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6688 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6689 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6690 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6691 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6692 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6694 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6695 (procfs_insert_hw_watchpoint): Add 'self' argument.
6696 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6698 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6700 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6702 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6703 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6705 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6708 2014-02-19 Tom Tromey <tromey@redhat.com>
6710 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6712 (target_remove_watchpoint): Add argument.
6713 * target.c (debug_to_remove_watchpoint): Add argument.
6714 (update_current_target): Update.
6715 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6716 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6717 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6718 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6719 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6720 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6722 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6723 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6725 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6727 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6729 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6730 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6732 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6735 2014-02-19 Tom Tromey <tromey@redhat.com>
6737 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6739 (target_remove_hw_breakpoint): Add argument.
6740 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6741 (update_current_target): Update.
6742 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6743 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6745 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6746 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6748 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6751 2014-02-19 Tom Tromey <tromey@redhat.com>
6753 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6755 (target_insert_hw_breakpoint): Add argument.
6756 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6757 (update_current_target): Update.
6758 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6759 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6761 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6762 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6763 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6765 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6772 (target_can_use_hardware_watchpoint): Add argument.
6773 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6774 (update_current_target): Update.
6775 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6777 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6779 * remote.c (remote_check_watch_resources): Add 'self' argument.
6780 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6781 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6783 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6784 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6786 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6788 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6790 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6792 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6794 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6796 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6797 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6799 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6802 2014-02-19 Tom Tromey <tromey@redhat.com>
6804 * target.h (struct target_ops) <to_post_attach>: Add argument.
6805 (target_post_attach): Add argument.
6806 * target.c (debug_to_post_attach): Add argument.
6807 (update_current_target): Update.
6808 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6809 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6810 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6811 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6812 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6814 2014-02-19 Tom Tromey <tromey@redhat.com>
6816 * windows-nat.c (windows_close): Add 'self' argument.
6817 * tracepoint.c (tfile_close): Add 'self' argument.
6818 * target.h (struct target_ops) <to_close>: Add argument.
6819 * target.c (target_close): Add argument.
6820 (update_current_target): Update.
6821 * remote.c (remote_close): Add 'self' argument.
6822 * remote-sim.c (gdbsim_close): Add 'self' argument.
6823 * remote-mips.c (mips_close): Add 'self' argument.
6824 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6825 * record-full.c (record_full_close): Add 'self' argument.
6826 * record-btrace.c (record_btrace_close): Add 'self' argument.
6827 * monitor.h (monitor_close): Add 'self' argument.
6828 * monitor.c (monitor_close): Add 'self' argument.
6829 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6830 * linux-nat.c (linux_nat_close): Add argument.
6831 * go32-nat.c (go32_close): Add 'self' argument.
6832 * exec.c (exec_close_1): Add 'self' argument.
6833 * ctf.c (ctf_close): Add 'self' argument.
6834 * corelow.c (core_close): Add 'self' argument.
6835 (core_close_cleanup): Update.
6836 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6837 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6839 2014-02-19 Tom Tromey <tromey@redhat.com>
6841 * remote.c (remote_load): New function.
6842 (init_remote_ops): Use it.
6844 2014-02-19 Tom Tromey <tromey@redhat.com>
6846 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6848 * common/linux-btrace.h (linux_supports_btrace): Update.
6849 * remote.c (remote_supports_btrace): Add "self" argument.
6850 * target-delegates.c: Rebuild.
6851 * target.c (target_supports_btrace): Remove.
6852 * target.h (struct target_ops) <to_supports_btrace>: Add
6853 target_ops argument.
6854 (target_supports_btrace): New define.
6856 2014-02-19 Tom Tromey <tromey@redhat.com>
6858 * record-full.c (record_full_beneath_to_resume_ops)
6859 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6860 (record_full_beneath_to_wait)
6861 (record_full_beneath_to_store_registers_ops)
6862 (record_full_beneath_to_store_registers)
6863 (record_full_beneath_to_xfer_partial_ops)
6864 (record_full_beneath_to_xfer_partial)
6865 (record_full_beneath_to_insert_breakpoint_ops)
6866 (record_full_beneath_to_insert_breakpoint)
6867 (record_full_beneath_to_remove_breakpoint_ops)
6868 (record_full_beneath_to_remove_breakpoint)
6869 (record_full_beneath_to_stopped_by_watchpoint)
6870 (record_full_beneath_to_stopped_data_address)
6871 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6872 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6873 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6874 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6875 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6876 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6877 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6878 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6879 (record_full_resume, record_full_wait_1)
6880 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6881 (record_full_store_registers, record_full_xfer_partial)
6882 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6883 (record_full_async, record_full_core_xfer_partial): Use target
6885 * target-delegates.c: Rebuild.
6886 * target.c (current_xfer_partial): Remove.
6887 (update_current_target): Do not INHERIT or de_fault
6888 to_insert_breakpoint, to_remove_breakpoint,
6889 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6890 to_is_async_p, to_async. Do not set to_xfer_partial field.
6891 (default_xfer_partial): Simplify.
6892 (current_xfer_partial): Remove.
6893 (target_wait, target_resume): Simplify.
6894 (find_default_can_async_p, find_default_is_async_p): Update.
6895 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6896 to_xfer_partial, to_stopped_by_watchpoint,
6897 to_stopped_data_address.
6898 (target_store_registers): Simplify.
6899 (forward_target_remove_breakpoint)
6900 (forward_target_insert_breakpoint): Remove.
6901 (target_remove_breakpoint, target_insert_breakpoint)
6902 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6903 * target.h (struct target_ops) <to_resume, to_wait,
6904 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6905 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6906 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6908 (forward_target_remove_breakpoint)
6909 (forward_target_insert_breakpoint): Remove.
6910 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6912 (record_btrace_insert_breakpoint): Delegate directly.
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target-delegates.c: New file.
6918 * target.c: Include target-delegates.c.
6919 (init_dummy_target): Call install_dummy_methods.
6920 (complete_target_initialization): Call install_delegators.
6921 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6922 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6923 * make-target-delegates: New file.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * record.c (find_record_target): Use find_target_at.
6928 * target.c (find_target_at): New function.
6929 * target.h (find_target_at): Declare.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6935 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6937 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6938 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6940 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6942 * linux-nat.c (save_sigtrap): Update.
6943 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6944 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6945 (linux_nat_close): Update.
6946 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6948 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6950 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6951 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6952 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6953 (tmp_to_async): Add 'ops' argument.
6954 (record_full_stopped_by_watchpoint, record_full_async)
6955 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6957 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6958 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6959 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6960 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6961 (remote_is_async_p, remote_async): Add 'ops' argument.
6962 (remote_stopped_data_address): Update.
6963 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6964 * target.c (update_current_target)
6965 (find_default_can_async_p, find_default_is_async_p): Update.
6966 (init_dummy_target): Update.
6967 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6968 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6969 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6970 (target_can_async_p, target_is_async_p, target_async)
6971 (target_stopped_by_watchpoint): Update.
6973 2014-02-19 Yao Qi <yao@codesourcery.com>
6976 * gdbarch.sh: Remove startup_gdbarch.
6977 * gdbarch.c: Regenerated.
6978 * gdbarch.h: Likewise.
6980 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6982 * rl78-tdep.c (rl78_g10_register_name): New function.
6983 (rl78_return_value): Add g10 support.
6984 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6987 2014-02-17 Doug Evans <xdje42@gmail.com>
6989 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6990 (SUBDIR_GUILE_SRCS): Ditto.
6991 (scm-gsmob.o): Ditto.
6993 2014-02-17 Yao Qi <yao@codesourcery.com>
6995 * gnu-nat.c (ILL_RPC): Declare defined function.
6997 2014-02-17 Yao Qi <yao@codesourcery.com>
6999 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7000 mach_msg_type_number_t.
7001 (gnu_write_inferior): Likewise.
7003 2014-02-17 Yao Qi <yao@codesourcery.com>
7005 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7007 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7008 (inf_validate_procs, inf_signal): Likewise.
7009 (S_exception_raise_request): Likewise.
7010 (do_mach_notify_dead_name): Likewise.
7011 (steal_exc_port): Likewise.
7012 (gnu_read_inferior): Change 'copy_count''s type to
7013 mach_msg_type_number_t.
7014 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7017 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7019 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7020 flag. Adjust all users; in particular...
7021 (gnu_wait): ..., don't decrement its value in here...
7022 (gnu_create_inferior): ..., and instead set the flag in here,
7023 around the startup_inferior call, and call that one with
7024 START_INFERIOR_TRAPS_EXPECTED.
7026 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7027 (ILL_RPC): ... new macro.
7028 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7029 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7030 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7031 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7032 functions with ILL_RPC macro.
7033 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7034 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7035 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7036 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7037 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7038 (S_proc_getlogin_reply, S_proc_getsid_reply)
7039 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7040 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7041 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7042 (S_proc_getnports_reply, S_proc_is_important_reply)
7043 (S_proc_get_code_reply): New stub functions, generated with
7046 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7047 collected the type check structures.
7049 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7051 2014-02-14 Doug Evans <dje@google.com>
7053 * target.c (target_write_partial): Fix result type.
7055 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7057 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7058 the proper offsets to access fpregset_t.
7060 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7062 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7063 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7064 * h8300-tdep.c (setmachinelist): Remove global.
7065 * hppa-tdep.c (hppa_sigtramp): Remove global.
7066 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7067 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7068 * ravenscar-thread.c (update_target_observer): Remove global.
7069 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7071 2014-02-12 Tom Tromey <tromey@redhat.com>
7073 * common/rsp-low.c: Update comments.
7074 * common/rsp-low.h: Update comments.
7076 2014-02-12 Tom Tromey <tromey@redhat.com>
7078 * common/rsp-low.c (convert_ascii_to_int): Remove.
7079 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7081 2014-02-12 Tom Tromey <tromey@redhat.com>
7083 * common/rsp-low.h (unhexify): Don't declare.
7084 * common/rsp-low.c (unhexify): Remove.
7086 2014-02-12 Tom Tromey <tromey@redhat.com>
7088 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7089 * common/rsp-low.c (convert_int_to_ascii): Remove.
7091 2014-02-12 Tom Tromey <tromey@redhat.com>
7093 * common/rsp-low.h (hexify): Don't declare.
7094 * common/rsp-low.c (hexify): Remove.
7096 2014-02-12 Tom Tromey <tromey@redhat.com>
7098 * common/rsp-low.c (hexify): Never take strlen of argument.
7100 2014-02-12 Tom Tromey <tromey@redhat.com>
7102 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7103 * remote.c (extended_remote_run, remote_rcmd)
7104 (remote_download_trace_state_variable, remote_save_trace_data)
7105 (remote_set_trace_notes): Update.
7106 * tracepoint.c (encode_source_string, tfile_write_status)
7107 (tfile_write_uploaded_tsv): Update.
7109 2014-02-12 Tom Tromey <tromey@redhat.com>
7111 * tracepoint.c: Include rsp-low.h.
7112 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7113 * remote.c: Include rsp-low.h.
7114 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7115 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7116 (remote_unescape_input): Move to common/rsp-low.c.
7117 * common/rsp-low.h: New file.
7118 * common/rsp-low.c: New file.
7119 * Makefile.in (SFILES): Add common/rsp-low.c.
7120 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7121 (COMMON_OBS): Add rsp-low.o.
7122 (rsp-low.o): New target.
7124 2014-02-12 Tom Tromey <tromey@redhat.com>
7126 * utils.h: Include print-utils.h.
7127 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7128 (int_string, core_addr_to_string, core_addr_to_string_nz)
7129 (hex_string, hex_string_custom): Don't declare.
7130 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7131 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7132 (hex_string_custom, int_string, core_addr_to_string)
7133 (core_addr_to_string_nz, host_address_to_string): Move to
7134 common/print-utils.c.
7135 * common/print-utils.h: New file.
7136 * common/print-utils.c: New file
7137 * Makefile.in (SFILES): Add common/print-utils.c.
7138 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7139 (COMMON_OBS): Add print-utils.o.
7140 (print-utils.o): New target.
7142 2014-02-12 Tom Tromey <tromey@redhat.com>
7144 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7146 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7148 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7150 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7152 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7153 if a PT_IO ptrace request returns sucessfully but indicates that 0
7154 bytes were transferred.
7156 2014-02-12 Pedro Alves <palves@redhat.com>
7157 Kevin Buettner <kevinb@redhat.com>
7159 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7160 TYPE_INSTANCE_FLAG_CODE_SPACE.
7162 2014-02-12 Pedro Alves <palves@redhat.com>
7164 * h8300-tdep.c (pseudo_from_raw_register)
7165 (raw_from_pseudo_register): New functions.
7166 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7169 2014-02-12 Pedro Alves <palves@redhat.com>
7171 * h8300-tdep.c (h8300_register_sim_regno): New function.
7172 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7173 gdbarch_register_sim_regno hook.
7175 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7177 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7179 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7181 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7183 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7185 * obsd-tdep.h (obsd_init_abi): New prototype.
7186 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7187 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7188 (obsd_init_abi): New functions.
7189 * i386obsd-tdep.c: Include "obsd-tdep.h".
7190 (i386obsd_init_abi): Call obsd_init_abi.
7191 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7192 (amd64obsd_init_abi): Call obsd_init_abi.
7193 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7194 obsd-tdep.c to gdb_target_obs.
7196 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7198 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7199 double float arguments to 16-byte in the argument slots.
7201 2014-02-11 Doug Evans <xdje42@gmail.com>
7203 * configure.ac: Don't crash if pkg-config is not found and guile
7204 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7206 * configure: Regenerate.
7208 2014-02-11 Yao Qi <yao@codesourcery.com>
7210 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7211 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7212 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7213 * gnu-nat.c (gnu_xfer_memory): Likewise.
7214 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7215 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7216 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7217 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7219 2014-02-11 Yao Qi <yao@codesourcery.com>
7221 * target.h (enum target_xfer_error): Rename to ...
7222 (enum target_xfer_status): ... it. New. All users updated.
7223 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7225 (TARGET_XFER_STATUS_ERROR_P): New macro.
7226 (target_xfer_error_to_string): Remove declaration.
7227 (target_xfer_status_to_string): Declare.
7228 (target_xfer_partial_ftype): Adjust it.
7229 (struct target_ops) <to_xfer_partial>: Return
7230 target_xfer_status. Add argument xfered_len. Update
7232 * target.c (target_xfer_error_to_string): Rename to ...
7233 (target_xfer_status_to_string): ... it. New. All callers
7235 (target_read_live_memory): Likewise. Call target_xfer_partial
7236 instead of target_read.
7237 (memory_xfer_live_readonly_partial): Return
7238 target_xfer_status. Add argument xfered_len.
7239 (raw_memory_xfer_partial): Likewise.
7240 (memory_xfer_partial_1): Likewise.
7241 (memory_xfer_partial): Likewise.
7242 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7243 properly. Update debug message.
7244 (default_xfer_partial, current_xfer_partial): Likewise.
7245 (target_write_partial): Likewise.
7246 (target_read_partial): Likewise. All callers updated.
7247 (read_whatever_is_readable): Likewise.
7248 (target_write_with_progress): Likewise.
7249 (target_read_alloc_1): Likewise.
7251 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7252 * auxv.c (procfs_xfer_auxv): Likewise.
7253 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7254 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7255 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7256 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7257 * corefile.c (read_memory): Adjust.
7258 * corelow.c (core_xfer_partial): Likewise.
7259 * ctf.c (ctf_xfer_partial): Likewise.
7260 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7262 (darwin_xfer_partial): Likewise.
7263 * exec.c (section_table_xfer_memory_partial): Likewise. All
7265 (exec_xfer_partial): Likewise.
7266 * exec.h (section_table_xfer_memory_partial): Update
7268 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7270 (gnu_xfer_partial): Likewise.
7271 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7272 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7273 (ia64_hpux_xfer_solib_got): Likewise.
7274 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7275 type of 'partial_len' to ULONGEST.
7276 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7277 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7278 (linux_nat_xfer_partial): Likewise.
7279 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7280 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7281 * monitor.c (monitor_xfer_memory): Likewise.
7282 (monitor_xfer_partial): Likewise.
7283 * procfs.c (procfs_xfer_partial): Likewise.
7284 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7285 * record-full.c (record_full_xfer_partial): Likewise.
7286 (record_full_core_xfer_partial): Likewise.
7287 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7288 (gdbsim_xfer_partial): Likewise.
7289 * remote.c (remote_write_bytes_aux): Likewise. All callers
7291 (remote_write_bytes, remote_read_bytes): Likewise. All
7293 (remote_flash_erase): Likewise. All callers updated.
7294 (remote_write_qxfer): Likewise. All callers updated.
7295 (remote_read_qxfer): Likewise. All callers updated.
7296 (remote_xfer_partial): Likewise.
7297 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7298 (rs6000_xfer_shared_libraries): Likewise.
7299 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7300 (sol_thread_xfer_partial): Likewise.
7301 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7302 (sparc_xfer_partial): Likewise.
7303 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7305 (spu_xfer_partial): Likewise.
7306 * spu-multiarch.c (spu_xfer_partial): Likewise.
7307 * tracepoint.c (tfile_xfer_partial): Likewise.
7308 * windows-nat.c (windows_xfer_memory): Likewise.
7309 (windows_xfer_shared_libraries): Likewise.
7310 (windows_xfer_partial): Likewise.
7311 * valprint.c: Replace 'target_xfer_error' with
7312 'target_xfer_status' in comments.
7314 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7316 Checked in by Joel Brobecker <brobecker@adacore.com>.
7317 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7319 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7321 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7322 function parameters.
7324 2014-02-10 Will Newton <will.newton@linaro.org>
7326 * elfread.c (elf_rel_plt_read): Look for a .got section if
7327 looking up .got.plt fails.
7328 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7329 on address passed to elf_gnu_ifunc_record_cache.
7330 (elf_gnu_ifunc_resolve_addr): Likewise.
7331 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7333 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7335 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7336 (X_RETTURN): New macro.
7337 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7339 * sparc64-tdep.c (sparc64_init_abi): Hook
7340 sparc_in_function_epilogue_p.
7342 2014-02-10 Gary Benson <gbenson@redhat.com>
7344 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7345 Rename name_matcher to symbol_matcher.
7347 2014-02-10 Gary Benson <gbenson@redhat.com>
7349 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7350 Use expand_symtabs_file_matcher_ftype and
7351 expand_symtabs_symbol_matcher_ftype.
7353 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7355 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7356 (struct ada_symbol_cache): New.
7357 (ada_free_symbol_cache): Forward declare.
7358 (struct ada_pspace_data): New.
7359 (ada_pspace_data_handle): New static global.
7360 (get_ada_pspace_data, ada_pspace_data_cleanup)
7361 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7362 (cache_space, cache): Delete, now folded inside struct
7364 (ada_get_symbol_cache): New function.
7365 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7367 (_initialize_ada_language): Remove initialization of cache_space.
7368 Move call to observer_attach_inferior_exit up, grouping it
7369 with the other observer registrations inside this function.
7370 Rename command to be more general. Add call to
7371 register_program_space_data_with_cleanup.
7373 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7375 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7376 ada_new_objfile_observer.
7377 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7378 (_initialize_tasks): Update uses of ada_new_objfile_observer
7379 and ada_tasks_normal_stop_observer.
7381 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7383 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7384 returned by the 'Length attribute to integer.
7386 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7388 * ada-lang.c (_initialize_ada_language): Initialize
7389 cache_space obstack.
7391 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7393 * ada-lang.c (HASH_SIZE): New macro.
7394 (struct cache_entry): New type.
7395 (cache_space, cache): New static globals.
7396 (ada_clear_symbol_cache, find_entry): New functions.
7397 (lookup_cached_symbol, cache_symbol): Implement.
7398 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7399 (_initialize_ada_language): Attach ada_new_objfile_observer
7400 and ada_free_objfile_observer.
7402 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7404 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7405 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7406 struct block * parameter.
7407 (ada_lookup_symbol_list_worker): Constify local variable "block".
7408 Remove cast which is no longer necessary.
7410 2014-02-10 Doug Evans <xdje42@gmail.com>
7412 Add Guile as an extension language.
7413 * NEWS: Mention Guile scripting.
7414 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7415 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7416 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7417 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7418 (CLIBS): Add GUILE_LIBS.
7419 (install-guile): New rule.
7420 (guile.o): New rule.
7421 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7422 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7423 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7424 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7425 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7426 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7427 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7428 * configure.ac: New option --with-guile.
7429 * configure: Regenerate.
7430 * config.in: Regenerate.
7431 * auto-load.c: Remove #include "python/python.h". Add #include
7432 "gdb/section-scripts.h".
7433 (source_section_scripts): Handle Guile scripts.
7434 (_initialize_auto_load): Add name of Guile objfile script to
7435 scripts-directory help text.
7436 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7437 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7438 (struct breakpoint): New member scm_bp_object.
7439 * defs.h (enum command_control_type): New value guile_control.
7440 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7442 (show_user): Update comment.
7443 (_initialize_cli_cmds): Update help text for "show user". Update help
7444 text for max-user-call-depth.
7445 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7447 (multi_line_command_p): Add guile_control.
7448 (print_command_lines): Handle guile_control.
7449 (execute_control_command, recurse_read_control_structure): Ditto.
7450 (process_next_line): Recognize "guile" commands.
7451 * disasm.c (gdb_disassemble_info): Make non-static.
7452 * disasm.h: #include "dis-asm.h".
7453 (struct gdbarch): Add forward decl.
7454 (gdb_disassemble_info): Declare.
7455 * extension.c: #include "guile/guile.h".
7456 (extension_languages): Add guile.
7457 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7458 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7459 * gdbtypes.c (get_unsigned_type_max): New function.
7460 (get_signed_type_minmax): New function.
7461 * gdbtypes.h (get_unsigned_type_max): Declare.
7462 (get_signed_type_minmax): Declare.
7463 * guile/README: New file.
7464 * guile/guile-internal.h: New file.
7465 * guile/guile.c: New file.
7466 * guile/guile.h: New file.
7467 * guile/scm-arch.c: New file.
7468 * guile/scm-auto-load.c: New file.
7469 * guile/scm-block.c: New file.
7470 * guile/scm-breakpoint.c: New file.
7471 * guile/scm-disasm.c: New file.
7472 * guile/scm-exception.c: New file.
7473 * guile/scm-frame.c: New file.
7474 * guile/scm-gsmob.c: New file.
7475 * guile/scm-iterator.c: New file.
7476 * guile/scm-lazy-string.c: New file.
7477 * guile/scm-math.c: New file.
7478 * guile/scm-objfile.c: New file.
7479 * guile/scm-ports.c: New file.
7480 * guile/scm-pretty-print.c: New file.
7481 * guile/scm-safe-call.c: New file.
7482 * guile/scm-string.c: New file.
7483 * guile/scm-symbol.c: New file.
7484 * guile/scm-symtab.c: New file.
7485 * guile/scm-type.c: New file.
7486 * guile/scm-utils.c: New file.
7487 * guile/scm-value.c: New file.
7488 * guile/lib/gdb.scm: New file.
7489 * guile/lib/gdb/boot.scm: New file.
7490 * guile/lib/gdb/experimental.scm: New file.
7491 * guile/lib/gdb/init.scm: New file.
7492 * guile/lib/gdb/iterator.scm: New file.
7493 * guile/lib/gdb/printing.scm: New file.
7494 * guile/lib/gdb/types.scm: New file.
7495 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7496 (VPATH): Add $(GUILE_SRCDIR).
7497 (GUILE_DIR): New variable.
7498 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7499 (all): Add stamp-guile dependency.
7500 (stamp-guile): New rule.
7501 (clean-guile, install-guile, uninstall-guile): New rules.
7502 (install-only): Add install-guile dependency.
7503 (uninstall): Add uninstall-guile dependency.
7504 (clean): Add clean-guile dependency.
7506 2014-02-09 Doug Evans <xdje42@gmail.com>
7508 Revert this patch (which I approved, mea culpa).
7510 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7512 * Makefile.in (all-lib): Remove.
7513 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7515 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7517 Fix Python stack corruption.
7518 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7521 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7523 * Makefile.in (all-lib): Remove.
7524 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7526 2014-02-07 Doug Evans <dje@google.com>
7528 * extension-priv.h (extension_language_script_ops): Add comment.
7529 (extension_language_ops): Add comment.
7530 (active_ext_lang_state): Fix typo in comment.
7532 2014-02-07 Pedro Alves <palves@redhat.com>
7534 PR breakpoints/16292
7535 * infrun.c (handle_signal_stop) <signal arrives while stepping
7536 over a breakpoint>: Switch back to the stepping thread.
7538 2014-02-07 Yao Qi <yao@codesourcery.com>
7540 * target.c (target_xfer_partial): Return zero if LEN is zero.
7542 2014-02-07 Yao Qi <yao@codesourcery.com>
7544 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7545 (ld_so_xfer_auxv): Likewise.
7546 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7547 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7548 * corelow.c (core_xfer_partial): Likewise.
7549 * ctf.c (ctf_xfer_partial): Likewise.
7550 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7551 (darwin_xfer_partial): Likewise.
7552 * exec.c (exec_xfer_partial): Likewise.
7553 * gnu-nat.c (gnu_xfer_partial): Likewise.
7554 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7555 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7556 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7557 * linux-nat.c (linux_xfer_siginfo): Likewise.
7558 (linux_proc_xfer_spu): Likewise.
7559 * procfs.c (procfs_xfer_partial): Likewise.
7560 * record-full.c (record_full_xfer_partial): Likewise.
7561 (record_full_core_xfer_partial): Likewise.
7562 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7563 * remote.c (remote_write_qxfer): Likewise.
7564 (remote_write_qxfer, remote_read_qxfer): Likewise.
7565 (remote_xfer_partial): Likewise.
7566 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7567 (rs6000_xfer_shared_libraries): Likewise.
7568 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7569 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7570 (spu_xfer_partial): Likewise.
7571 * target.c (memory_xfer_partial_1): Likewise.
7572 * tracepoint.c (tfile_xfer_partial): Likewise.
7573 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7574 (windows_xfer_partial): Likewise.
7576 2014-02-07 Yao Qi <yao@codesourcery.com>
7578 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7580 (core_xfer_shared_libraries_aix): Likewise.
7581 * gdbarch.c, gdbarch.h: Regenerated.
7582 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7583 ULONGEST. Change 'len_avail' type to ULONGEST.
7584 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7585 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7587 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7589 2014-02-07 Yao Qi <yao@codesourcery.com>
7591 * corefile.c (memory_error): Get 'exception' from ERR and pass
7592 'exception' to throw_error.
7594 2014-02-06 Doug Evans <xdje42@gmail.com>
7596 * configure.ac (libpython checking): Remove all but python.o from
7597 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7598 * configure: Regenerate.
7600 * Makefile.in (SFILES): Add extension.c.
7601 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7602 (COMMON_OBS): Add extension.o.
7603 * extension.h: New file.
7604 * extension-priv.h: New file.
7605 * extension.c: New file.
7607 * python/python-internal.h: #include "extension.h".
7608 (gdbpy_auto_load_enabled): Declare.
7609 (gdbpy_apply_val_pretty_printer): Declare.
7610 (gdbpy_apply_frame_filter): Declare.
7611 (gdbpy_preserve_values): Declare.
7612 (gdbpy_breakpoint_cond_says_stop): Declare.
7613 (gdbpy_breakpoint_has_cond): Declare.
7614 (void source_python_script_for_objfile): Delete.
7615 * python/python.c: #include "extension-priv.h".
7616 Delete inclusion of "observer.h".
7617 (extension_language_python): Moved here and renamed from
7618 script_language_python in py-auto-load.c.
7619 Redefined to be of type extension_language_defn.
7620 (python_extension_script_ops): New global.
7621 (python_extension_ops): New global.
7622 (struct python_env): New member previous_active.
7623 (restore_python_env): Call restore_active_ext_lang.
7624 (ensure_python_env): Call set_active_ext_lang.
7625 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7627 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7629 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7631 (gdbpy_eval_from_control_command): Renamed from
7632 eval_python_from_control_command, made static. New arg extlang.
7633 (gdbpy_source_script) Renamed from source_python_script, made static.
7635 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7636 result to int. New arg extlang.
7637 (gdbpy_source_objfile_script): Renamed from
7638 source_python_script_for_objfile, made static. New arg extlang.
7639 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7640 static. New args extlang, extlang_printers. Change result type to
7642 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7643 static. New arg extlang. Rename arg printers to extlang_printers
7644 and change type to ext_lang_type_printers *.
7645 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7646 static. Replace argument arg with extlang, extlang_printers.
7647 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7648 (!HAVE_PYTHON, source_python_script): Delete.
7649 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7650 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7651 (!HAVE_PYTHON, start_type_printers): Delete.
7652 (!HAVE_PYTHON, apply_type_printers): Delete.
7653 (!HAVE_PYTHON, free_type_printers): Delete.
7654 (_initialize_python): Delete call to observer_attach_before_prompt.
7655 (finalize_python): Set/restore active extension language.
7656 (gdbpy_finish_initialization) Renamed from
7657 finish_python_initialization, made static. New arg extlang.
7658 (gdbpy_initialized): New function.
7659 * python/python.h: #include "extension.h". Delete #include
7660 "value.h", "mi/mi-cmds.h".
7661 (extension_language_python): Declare.
7662 (GDBPY_AUTO_FILE_NAME): Delete.
7663 (enum py_bt_status): Moved to extension.h and renamed to
7665 (enum frame_filter_flags): Moved to extension.h.
7666 (enum py_frame_args): Moved to extension.h and renamed to
7667 ext_lang_frame_args.
7668 (finish_python_initialization): Delete.
7669 (eval_python_from_control_command): Delete.
7670 (source_python_script): Delete.
7671 (apply_val_pretty_printer): Delete.
7672 (apply_frame_filter): Delete.
7673 (preserve_python_values): Delete.
7674 (gdbpy_script_language_defn): Delete.
7675 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7676 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7678 * auto-load.c: #include "extension.h".
7679 (GDB_AUTO_FILE_NAME): Delete.
7680 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7681 (script_language_gdb): Delete, moved to extension.c and renamed to
7682 extension_language_gdb.
7683 (source_gdb_script_for_objfile): Delete.
7684 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7685 (loaded_script): Change type of language member to
7686 struct extension_language_defn *.
7687 (init_loaded_scripts_info): Initialize
7688 unsupported_script_warning_printed.
7689 (maybe_add_script): Make static. Change type of language arg to
7690 struct extension_language_defn *.
7691 (clear_section_scripts): Reset unsupported_script_warning_printed.
7692 (auto_load_objfile_script_1): Rewrite to use extension language API.
7693 (auto_load_objfile_script): Make public. Remove support-compiled-in
7694 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7695 (source_section_scripts): Rewrite to use extension language API.
7696 (load_auto_scripts_for_objfile): Rewrite to use
7697 auto_load_scripts_for_objfile.
7698 (collect_matching_scripts_data): Change type of language member to
7699 struct extension_language_defn *.
7700 (auto_load_info_scripts): Change type of language arg to
7701 struct extension_language_defn *.
7702 (unsupported_script_warning_print): New function.
7703 (script_not_found_warning_print): Make static.
7704 (_initialize_auto_load): Rewrite construction of scripts-directory
7706 * auto-load.h (struct objfile): Add forward decl.
7707 (struct script_language): Delete.
7708 (struct auto_load_pspace_info): Add forward decl.
7709 (struct extension_language_defn): Add forward decl.
7710 (maybe_add_script): Delete.
7711 (auto_load_objfile_script): Declare.
7712 (script_not_found_warning_print): Delete.
7713 (auto_load_info_scripts): Update prototype.
7714 (auto_load_gdb_scripts_enabled): Declare.
7715 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7716 auto_load_python_scripts_enabled and made public.
7717 (script_language_python): Delete, moved to python.c.
7718 (gdbpy_script_language_defn): Delete.
7719 (info_auto_load_python_scripts): Update to use
7720 extension_language_python.
7722 * breakpoint.c (condition_command): Replace call to
7723 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7724 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7725 with call to breakpoint_ext_lang_cond_says_stop.
7726 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7727 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7728 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7729 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7731 (local_setattro): Print name of extension language with existing
7734 * valprint.c (val_print, value_print): Update to call
7735 apply_ext_lang_val_pretty_printer.
7736 * cp-valprint.c (cp_print_value): Update call to
7737 apply_ext_lang_val_pretty_printer.
7738 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7739 (gdbpy_apply_val_pretty_printer): Renamed from
7740 apply_val_pretty_printer. New arg extlang.
7741 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7743 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7744 extension language API.
7745 * cli/cli-script.c (execute_control_command): Update to call
7746 eval_ext_lang_from_control_command.
7748 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7749 enum ext_lang_bt_status values. Update call to
7750 apply_ext_lang_frame_filter.
7751 (mi_cmd_stack_list_locals): Ditto.
7752 (mi_cmd_stack_list_args): Ditto.
7753 (mi_cmd_stack_list_variables): Ditto.
7754 * mi/mi-main.c: Delete #include "python/python-internal.h".
7755 Add #include "extension.h".
7756 (mi_cmd_list_features): Replace reference to python internal variable
7757 gdb_python_initialized with call to ext_lang_initialized_p.
7759 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7760 Update to use enum ext_lang_frame_args. Update to call
7761 apply_ext_lang_frame_filter.
7762 * python/py-framefilter.c (extract_sym): Update to use enum
7764 (extract_value, py_print_type, py_print_value): Ditto.
7765 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7766 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7767 (py_print_frame): Ditto.
7768 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7769 New arg extlang. Update to use enum ext_lang_bt_status.
7771 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7772 finish_python_initialization. Replace with call to
7773 finish_ext_lang_initialization.
7775 * typeprint.c (do_free_global_table): Update to call
7776 free_ext_lang_type_printers.
7777 (create_global_typedef_table): Update to call
7778 start_ext_lang_type_printers.
7779 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7780 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7781 (type_print_options): Change type of global_printers from "void *"
7782 to "struct ext_lang_type_printers *".
7784 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7785 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7786 (gdbpy_preserve_values): Renamed from preserve_python_values.
7788 (!HAVE_PYTHON, preserve_python_values): Delete.
7790 * utils.c (quit_flag): Delete, moved to extension.c.
7791 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7794 * eval.c: Delete #include "python/python.h".
7795 * main.c: Delete #include "python/python.h".
7797 * defs.h: Update comment.
7799 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7803 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7805 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7808 2014-02-05 Yao Qi <yao@codesourcery.com>
7810 * remote.c (remote_pass_signals): Remove local 'buf' and use
7812 (remote_program_signals): Likewise.
7814 2014-02-05 Yao Qi <yao@codesourcery.com>
7816 * ctf.c: Include "inferior.h" and "gdbthread.h".
7817 (CTF_PID): A new macro.
7818 (ctf_open): Call inferior_appeared and add_thread_silent.
7819 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7820 (ctf_thread_alive): New function.
7821 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7823 2014-02-05 Yao Qi <yao@codesourcery.com>
7827 2013-05-24 Yao Qi <yao@codesourcery.com>
7829 * tracepoint.c (TFILE_PID): Remove.
7830 (tfile_open): Don't add thread and inferior.
7831 (tfile_close): Don't set 'inferior_ptid'. Don't call
7832 exit_inferior_silent.
7833 (tfile_thread_alive): Remove.
7834 (init_tfile_ops): Don't set field 'to_thread_alive' of
7837 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7839 * remote.c (remote_start_remote): Call remote_check_symbols even
7840 if only symbol-file (not file) has been given.
7842 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7844 * gdbarch.sh (skip_entrypoint): New callback.
7845 * gdbarch.c, gdbarch.h: Regenerate.
7846 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7847 * infrun.c (fill_in_stop_func): Likewise.
7848 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7849 (ppc_elfv2_elf_make_msymbol_special): New function.
7850 (ppc_elfv2_skip_entrypoint): Likewise.
7851 (ppc_linux_init_abi): Install them for ELFv2.
7853 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7855 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7856 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7857 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7858 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7859 structures returned in GPRs.
7861 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7863 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7864 offset to the stack parameter list for the ELFv2 ABI.
7866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7868 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7869 set_gdbarch_convert_from_func_ptr_addr and
7870 set_gdbarch_elf_make_msymbol_special for ELFv1.
7871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7872 function descriptors on ELFv1.
7873 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7874 set up r12 at function entry.
7876 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7878 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7879 (struct gdbarch_tdep): New member elf_abi.
7881 * rs6000-tdep.c: Include "elf/ppc64.h".
7882 (rs6000_gdbarch_init): Detect ELF ABI version.
7884 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7887 within a register pair holding a DFP 128-bit value on little-endian.
7888 (ppc64_sysv_abi_return_value_base): Likewise.
7889 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7890 (dfp_pseudo_register_write): Likewise.
7892 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7894 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7895 offset on little-endian when passing _Decimal32.
7896 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7898 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7900 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7901 of the overlapped FP register within the VSX register on little-
7903 (efpr_pseudo_register_write): Likewise.
7905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7907 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7908 offset on little-endian when passing small structures.
7910 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7912 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7913 (struct ppc64_sysv_argpos): New data structure.
7914 (ppc64_sysv_abi_push_float): Remove.
7915 (ppc64_sysv_abi_push_val): New function.
7916 (ppc64_sysv_abi_push_integer): Likewise.
7917 (ppc64_sysv_abi_push_freg): Likewise.
7918 (ppc64_sysv_abi_push_vreg): Likewise.
7919 (ppc64_sysv_abi_push_param): Likewise.
7920 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7921 (ppc64_sysv_abi_return_value_base): New function.
7922 (ppc64_sysv_abi_return_value): Refactor to use it.
7924 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7926 * NEWS: Document new target powerpc64le-*-linux*.
7928 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7930 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7931 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7933 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7934 register set used in ELF core dumps. Add floating-point register set.
7936 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7938 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7939 dwarf2_to_gdb[] table using symbolic constants. Adjust
7940 penultimate entry from number representing the PC register
7941 to symbolic constant representing the MDR register. Add
7942 constant for the PC register to the end of the table.
7944 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7946 * bsd-kvm.c: Include <sys/param.h>
7948 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7950 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7952 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7954 * ada-lang.h (clear_ada_sym_cache): Delete.
7956 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7958 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7960 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7962 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7963 the sigreturn register save area only if the syscall is
7966 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7968 * valops.c (value_slice): Minor reformatting.
7970 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7972 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7974 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7976 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7978 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7979 (ada_ignore_descriptive_types_p): New static global.
7980 (find_parallel_type_by_descriptive_type): Return immediately
7981 if ada_ignore_descriptive_types_p is set.
7982 (_initialize_ada_language): Register new commands "maintenance
7983 set ada", "maintenance show ada", "maintenance set ada
7984 ignore-descriptive-types" and "maintenance show ada
7985 ignore-descriptive-types".
7986 * NEWS: Add entry for new "maint ada set/show
7987 ignore-descriptive-types" commands.
7989 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7991 * record-btrace.c (record_btrace_close): Call btrace_teardown
7994 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7996 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7999 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8001 * ada-typeprint (type_is_full_subrange_of_target_type):
8003 (print_range): Add parameter bounds_prefered_p. If not set,
8004 try printing range types using the name of their base type.
8005 (print_range_type): Add parameter bounds_prefered_p.
8006 Use it in call to print_range.
8007 (print_array_type, ada_print_type): Update calls to print_range
8008 and print_range_type.
8010 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8012 * ada-typeprint.c (print_array_type, print_choices, print_range)
8013 (print_range_bound, print_dynamic_range_bound, print_range_type):
8016 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8018 * ada-typeprint.c (print_range): Add missing empty line
8019 after local declaration.
8021 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8023 * ada-valprint.c (print_optional_low_bound): Get index_type's
8024 target type for as long as it is a TYPE_CODE_RANGE.
8026 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8028 * procfs.c (procfs_make_note_section): Remove assertion and
8031 2014-01-24 Yao Qi <yao@codesourcery.com>
8033 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8034 * corelow.c (get_core_siginfo): Likewise.
8036 2014-01-24 Yao Qi <yao@codesourcery.com>
8038 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8039 ULONGEST. Don't check 'len' is negative.
8040 (remote_write_bytes): Change type of 'len' to ULONGEST.
8042 2014-01-23 Tom Tromey <tromey@redhat.com>
8045 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8046 Handle exception from frame.block.
8047 (FrameVars.fetch_frame_locals): Likewise.
8049 2014-01-23 Tom Tromey <tromey@redhat.com>
8052 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8053 on a NULL pointer. Move "goto error" to correct place.
8055 2014-01-23 Tom Tromey <tromey@redhat.com>
8058 * python/py-framefilter.c (apply_frame_filter): Call
8059 ensure_python_env after computing gdbarch.
8061 2014-01-23 Yao Qi <yao@codesourcery.com>
8063 * target.c (raw_memory_xfer_partial): Change argument type
8064 from void * to gdb_byte *.
8065 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8067 2014-01-22 Doug Evans <dje@google.com>
8069 New gdbserver option --debug-format=timestamp.
8072 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8074 * syscalls/s390x-linux.xml: New file.
8075 * syscalls/s390-linux.xml: New file.
8076 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8077 (XML_SYSCALL_FILENAME_S390X): Likewise.
8078 (op_svc): New enum value for SVC opcode.
8079 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8080 (s390_linux_get_syscall_number): New function.
8081 (s390_gdbarch_init): Register '*get_syscall_number' and the
8082 syscall xml file name.
8083 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8084 "s390-linux.xml" and "s390x-linux.xml".
8085 * NEWS: Announce new feature.
8087 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8089 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8091 2014-01-22 Pedro Alves <palves@redhat.com>
8093 * xtensa-config.c: Include defs.h.
8095 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8097 * common/common-utils.h: Add "ARI:" comment beside __func__
8100 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8102 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8103 documentation a bit.
8105 2014-01-21 Roland McGrath <mcgrathr@google.com>
8107 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8108 * configure: Regenerate.
8109 * aclocal.m4: Regenerate.
8110 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8111 New substituted variables.
8112 (install-strip): New target.
8113 (INSTALL_SCRIPT): New substituted variable.
8114 (FLAGS_TO_PASS): Add it.
8115 (install-only): Use $(INSTALL_SCRIPT) rather than
8116 $(INSTALL_PROGRAM) for gcore.
8118 2014-01-20 Tom Tromey <tromey@redhat.com>
8120 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8123 2014-01-20 Tom Tromey <tromey@redhat.com>
8125 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8126 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8127 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8128 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8129 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8130 (struct cmd_list_element) <flags>: Remove.
8131 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8132 doc_allocated>: New fields.
8133 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8135 * maint.c (maintenance_do_deprecate): Update.
8136 * top.c (execute_command): Update.
8138 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8140 * xtensa-linux-nat.c: Include asm/ptrace.h.
8142 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8144 * Makefile.in (SFILES): Add d-support.c.
8145 (COMMON_OBS): Add d-support.o.
8146 * d-lang.h (d_parse_symbol): Add comment, now defined in
8148 * d-lang.c (parse_call_convention)
8149 (parse_attributes, parse_function_types)
8150 (parse_function_args, parse_type, parse_identifier)
8151 (call_convention_p, d_parse_symbol): Move functions to ...
8152 * d-support.c: ... New file.
8154 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8156 * d-lang.h (d_parse_symbol): Add declaration.
8157 * d-lang.c (extract_identifiers)
8158 (extract_type_info): Remove functions.
8159 (parse_call_convention, parse_attributes)
8160 (parse_function_types, parse_function_args)
8161 (parse_type, parse_identifier, call_convention_p)
8162 (d_parse_symbol): New functions.
8163 (d_demangle): Use d_parse_symbol to demangle D symbols.
8165 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8167 * d-lang.h (struct builtin_d_type): New data type.
8168 (builtin_d_type): Add declaration.
8169 * d-lang.c (d_language_arch_info, build_d_types)
8170 (builtin_d_type): New functions.
8171 (enum d_primitive_types): New data type.
8172 (d_language_defn): Change c_language_arch_info to
8173 d_language_arch_info.
8174 (d_type_data): New static variable.
8175 (_initialize_d_language): Initialize d_type_data.
8177 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8179 * d-lang.h (d_main_name): Add declaration.
8180 * d-lang.c (d_main_name): New function.
8181 * symtab.c (find_main_name): Add call to d_main_name.
8183 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8185 * d-lang.c (d_language_defn): Change macro_expansion_c to
8188 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8190 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8192 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8194 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8195 gdb_exception" declaration.
8196 * remote.c (getpkt_or_notif_sane): Likewise.
8198 2014-01-17 Doug Evans <dje@google.com>
8200 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8201 function, contents of dirnames_to_char_ptr_vec_append moved here.
8202 (delim_string_to_char_ptr_vec): New function.
8203 (dirnames_to_char_ptr_vec_append): Rewrite.
8204 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8206 2014-01-17 Doug Evans <dje@google.com>
8208 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8210 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8211 #include "common-utils.h".
8212 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8213 * common/vec.h (VEC_ASSERT_PASS): Update.
8214 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8215 (MACH_CHECK_ERROR): Update.
8217 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8219 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8221 * gdbarch.h: Regenerate.
8223 2014-01-16 Tom Tromey <tromey@redhat.com>
8225 * value.c (struct value) <regnum>: Move earlier.
8227 2014-01-16 Tom Tromey <tromey@redhat.com>
8229 * remote.c (extended_remote_create_inferior): Rename from
8230 extended_remote_create_inferior_1. Add "ops" argument. Remove
8233 2014-01-16 Pedro Alves <palves@redhat.com>
8235 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8236 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8239 2014-01-16 Doug Evans <dje@google.com>
8241 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8245 * btrace.h (btrace_thread_flag): New.
8246 (struct btrace_thread_info) <flags>: New.
8247 * record-btrace.c (record_btrace_resume_thread)
8248 (record_btrace_find_thread_to_move, btrace_step_no_history)
8249 (btrace_step_stopped, record_btrace_start_replaying)
8250 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8251 (record_btrace_find_resume_thread): New.
8252 (record_btrace_resume, record_btrace_wait): Extend.
8253 (record_btrace_can_execute_reverse): New.
8254 (record_btrace_open): Fail in non-stop mode.
8255 (record_btrace_set_replay): Split into this, ...
8256 (record_btrace_stop_replaying): ... this, ...
8257 (record_btrace_clear_histories): ... and this.
8258 (init_record_btrace_ops): Init to_can_execute_reverse.
8259 * NEWS: Announce it.
8261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8263 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8264 (forward_target_decr_pc_after_break)
8265 (target_decr_pc_after_break): New.
8266 * target.c (forward_target_decr_pc_after_break)
8267 (target_decr_pc_after_break): New.
8268 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8269 instead of gdbarch_decr_pc_after_break.
8270 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8271 instead of gdbarch_decr_pc_after_break.
8272 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8273 instead of gdbarch_decr_pc_after_break.
8274 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8275 instead of gdbarch_decr_pc_after_break.
8276 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8277 instead of gdbarch_decr_pc_after_break.
8278 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8279 instead of gdbarch_decr_pc_after_break.
8281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8283 * btrace.c: Include regcache.h.
8284 (btrace_add_pc): New.
8285 (btrace_enable): Call btrace_add_pc.
8286 (btrace_is_empty): New.
8287 * btrace.h (btrace_is_empty): New.
8288 * record-btrace.c (require_btrace, record_btrace_info): Call
8291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8293 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8294 Support delta reads.
8295 (linux_disable_btrace): Change return type.
8296 * common/linux-btrace.h (linux_read_btrace): Change parameters
8297 and return type to allow error reporting. Update users.
8298 (linux_disable_btrace): Change return type. Update users.
8299 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8301 (btrace_error): New.
8302 (btrace_block) <begin>: Comment on BEGIN == 0.
8303 * btrace.c (btrace_compute_ftrace): Start from the end of
8305 (btrace_stitch_trace, btrace_clear_history): New.
8306 (btrace_fetch): Read delta trace, return if replaying.
8307 (btrace_clear): Move clear history code to btrace_clear_history.
8308 (parse_xml_btrace): Throw an error if parsing failed.
8309 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8310 and return type to allow error reporting.
8311 (target_read_btrace): Change parameters and return type to allow
8313 * target.c (target_read_btrace): Update.
8314 * remote.c (remote_read_btrace): Support delta reads. Pass
8316 * NEWS: Announce it.
8318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8320 * record.h (record_btrace_frame_unwind)
8321 (record_btrace_tailcall_frame_unwind): New declarations.
8322 * dwarf2-frame: Include record.h
8323 (dwarf2_frame_cfa): Throw an error for btrace frames.
8324 * record-btrace.c: Include hashtab.h.
8325 (btrace_get_bfun_name): New.
8326 (btrace_call_history): Call btrace_get_bfun_name.
8327 (struct btrace_frame_cache): New.
8329 (bfcache_hash, bfcache_eq, bfcache_new): New.
8330 (btrace_get_frame_function): New.
8331 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8332 (record_btrace_frame_this_id): Compute own id.
8333 (record_btrace_frame_prev_register): Provide PC, throw_error
8334 for all other registers.
8335 (record_btrace_frame_sniffer): Detect btrace frames.
8336 (record_btrace_tailcall_frame_sniffer): New.
8337 (record_btrace_frame_dealloc_cache): New.
8338 (record_btrace_frame_unwind): Add new functions.
8339 (record_btrace_tailcall_frame_unwind): New.
8340 (_initialize_record_btrace): Allocate cache.
8341 * btrace.c (btrace_clear): Call reinit_frame_cache.
8342 * NEWS: Announce it.
8344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8346 * record-btrace.c (record_btrace_set_replay)
8347 (record_btrace_goto_begin, record_btrace_goto_end)
8348 (record_btrace_goto): New.
8349 (init_record_btrace_ops): Initialize them.
8350 * NEWS: Announce it.
8352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8354 * record-btrace.c (record_btrace_find_new_threads)
8355 (record_btrace_thread_alive): New.
8356 (init_record_btrace_ops): Initialize to_find_new_threads and
8359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8361 * record-btrace.c (record_btrace_resume): New.
8362 (record_btrace_wait): New.
8363 (init_record_btrace_ops): Initialize to_wait and to_resume.
8365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8367 * record-btrace.c (record_btrace_xfer_partial)
8368 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8369 (record_btrace_allow_memory_access): New.
8370 (init_record_btrace_ops): Initialize new methods.
8371 * target.c (raw_memory_xfer_partial): Bail out if target reports
8372 that this memory is not available.
8374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8376 * target.h (target_ops) <to_insert_breakpoint>
8377 <to_remove_breakpoint>: Add target_ops parameter.
8378 (forward_target_insert_breakpoint): New.
8379 (forward_target_remove_breakpoint): New.
8380 (memory_remove_breakpoint, memory_insert_breakpoint):
8381 Add target_ops parameter.
8382 * target.c (target_insert_breakpoint): Split into this and ...
8383 (forward_target_insert_breakpoint): ... this.
8384 (target_remove_breakpoint): Split into this and ...
8385 (forward_target_remove_breakpoint): ... this.
8386 (debug_to_insert_breakpoint): Add target_ops parameter.
8387 Call forward_target_insert_breakpoint.
8388 (debug_to_remove_breakpoint): Add target_ops parameter.
8389 Call forward_target_remove_breakpoint.
8390 (update_current_target): Do not inherit or default to_insert_breakpoint
8391 and to_remove_breakpoint.
8392 * corelow.c (ignore): Add target_ops parameter.
8393 * exec.c (ignore): Add target_ops parameter.
8394 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8395 Add target_ops parameter.
8396 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8397 Add target_ops parameter.
8398 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8399 Add target_ops parameter.
8400 * record-full.c (record_full_beneath_to_insert_breakpoint)
8401 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8402 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8403 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8404 (record_full_core_remove_breakpoint): Add target_ops parameter.
8406 (record_full_beneath_to_insert_breakpoint_ops)
8407 (record_full_beneath_to_remove_breakpoint_ops)
8408 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8409 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8410 tmp_to_remove_breakpoint_ops,
8411 record_full_beneath_to_insert_breakpoint_ops, and
8412 record_full_beneath_to_remove_breakpoint_ops.
8413 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8414 (m32r_remove_breakpoint): Add target_ops parameter.
8415 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8416 Add target_ops parameter.
8417 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8418 Add target_ops parameter.
8420 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8421 Markus Metzger <markus.t.metzger@intel.com>
8423 * record-btrace.c: Include frame-unwind.h.
8424 (record_btrace_frame_unwind_stop_reason)
8425 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8426 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8428 (init_record_btrace_ops): Install it.
8430 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8432 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8435 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8437 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8440 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8442 * frame-unwind.c: Include target.h.
8443 (frame_unwind_try_unwinder): New function with code from ...
8444 (frame_unwind_find_by_frame): ... here. New variable
8445 unwinder_from_target, call also target_get_unwinder)
8446 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8447 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8448 * target.h (struct target_ops): New fields to_get_unwinder and
8449 to_get_tailcall_unwinder.
8450 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8454 * record-btrace.c (record_btrace_fetch_registers)
8455 (record_btrace_store_registers)
8456 (record_btrace_to_prepare_to_store): New.
8457 (init_record_btrace_ops): Add the above.
8459 2014-01-16 Tom Tromey <tromey@redhat.com>
8461 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8462 * target.h (struct target_ops) <to_prepare_to_store>: Add
8464 (target_prepare_to_store): Add argument.
8465 * target.c (debug_to_prepare_to_store): Add argument.
8466 (update_current_target): Update.
8467 * remote.c (remote_prepare_to_store): Add 'self' argument.
8468 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8469 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8470 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8471 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8473 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8474 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8475 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8476 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8477 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8481 * btrace.h (replay) <replay>: New.
8482 (btrace_is_replaying): New.
8483 * btrace.c (btrace_clear): Free replay iterator.
8484 (btrace_is_replaying): New.
8485 * record-btrace.c (record_btrace_is_replaying): New.
8486 (record_btrace_info): Print insn number if replaying.
8487 (record_btrace_insn_history): Start at replay position.
8488 (record_btrace_call_history): Start at replay position.
8489 (init_record_btrace_ops): Init to_record_is_replaying.
8491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8493 * record-btrace.c (record_btrace_insn_history_range): Include
8495 (record_btrace_insn_history_from): Adjust range.
8496 (record_btrace_call_history_range): Include
8498 (record_btrace_call_history_from): Adjust range.
8499 * NEWS: Announce changes.
8501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8503 * record.h (enum record_print_flag)
8504 <record_print_indent_calls>: New.
8505 * record.c (get_call_history_modifiers): Recognize /c modifier.
8506 (_initialize_record): Document /c modifier.
8507 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8508 Reorder fields. Optionally indent the function name. Update
8510 * NEWS: Announce changes.
8512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8514 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8518 * btrace.c (ftrace_new_function): Start counting at one.
8519 * record-btrace.c (record_btrace_info): Adjust number of calls
8521 * NEWS: Announce it.
8523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8525 * record-btrace.c (btrace_call_history_insn_range): Print
8526 insn range as [begin, end].
8528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8530 * btrace.h (struct btrace_func_link): New.
8531 (enum btrace_function_flag): New.
8532 (struct btrace_inst): Rename to ...
8533 (struct btrace_insn): ...this. Update all users.
8534 (struct btrace_func) <ibegin, iend>: Remove.
8535 (struct btrace_func_link): New.
8536 (struct btrace_func): Rename to ...
8537 (struct btrace_function): ...this. Update all users.
8538 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8539 (number, level, flags>: New.
8540 (struct btrace_insn_iterator): Rename to ...
8541 (struct btrace_insn_history): ...this.
8543 (struct btrace_insn_iterator, btrace_call_iterator): New.
8544 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8545 (struct btrace_target_info) <begin, end, level>
8546 <insn_history, call_history>: New.
8547 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8548 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8549 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8550 (btrace_call_number, btrace_call_begin, btrace_call_end)
8551 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8552 (btrace_find_function_by_number, btrace_set_insn_history)
8553 (btrace_set_call_history): New.
8554 * btrace.c (btrace_init_insn_iterator)
8555 (btrace_init_func_iterator, compute_itrace): Remove.
8556 (ftrace_print_function_name, ftrace_print_filename)
8557 (ftrace_skip_file): Change
8559 (ftrace_init_func): Remove.
8560 (ftrace_debug): Use new btrace_function fields.
8561 (ftrace_function_switched): Also consider gaining and
8562 losing symbol information).
8563 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8564 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8565 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8567 (ftrace_new_function): Move. Remove debug print.
8568 (ftrace_update_lines, ftrace_update_insns): New.
8569 (ftrace_update_function): Check for call, ret, and jump.
8570 (compute_ftrace): Renamed to ...
8571 (btrace_compute_ftrace): ...this. Rewritten to compute call
8573 (btrace_fetch, btrace_clear): Updated.
8574 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8575 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8576 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8577 (btrace_call_number, btrace_call_begin, btrace_call_end)
8578 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8579 (btrace_find_function_by_number, btrace_set_insn_history)
8580 (btrace_set_call_history): New.
8581 * record-btrace.c (require_btrace): Use new btrace thread
8583 (record_btrace_info, btrace_insn_history)
8584 (record_btrace_insn_history, record_btrace_insn_history_range):
8585 Use new btrace thread info fields and new iterator.
8586 (btrace_func_history_src_line): Rename to ...
8587 (btrace_call_history_src_line): ...this. Use new btrace
8589 (btrace_func_history): Rename to ...
8590 (btrace_call_history): ...this. Use new btrace thread info
8591 fields and new iterator.
8592 (record_btrace_call_history, record_btrace_call_history_range):
8593 Use new btrace thread info fields and new iterator.
8595 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8597 * frame.h (frame_id_build_unavailable_stack_special): New.
8598 * frame.c (frame_id_build_unavailable_stack_special): New.
8600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8602 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8603 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8604 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8606 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8607 (i386_insn_is_jump, i386_jmp_p): New.
8608 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8609 insn_is_jump to gdbarch.
8610 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8611 * gdbarch.h: Regenerated.
8612 * gdbarch.c: Regenerated.
8613 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8614 (default_insn_is_jump): New.
8615 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8616 (default_insn_is_jump): New.
8618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8620 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8622 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8623 (btrace_read_type) <btrace_read_new>: Change to ...
8624 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8628 * common/linux-btrace.c (linux_read_btrace): Free trace from
8631 2014-01-15 Doug Evans <dje@google.com>
8633 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8636 2014-01-15 Tom Tromey <tromey@redhat.com>
8638 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8639 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8640 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8641 (set_objfile_main_name): New function.
8642 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8643 language_of_main>: New fields.
8644 (set_objfile_main_name): Declare.
8645 * symtab.c (find_main_name): Loop over objfiles to find the main
8647 (set_main_name): Now static.
8648 (get_main_info): Add comment.
8649 * symtab.h (set_main_name): Don't declare.
8651 2014-01-15 Tom Tromey <tromey@redhat.com>
8653 * symtab.c (main_progspace_key): New global.
8654 (struct main_info): New.
8655 (name_of_main, language_of_main): Remove.
8656 (get_main_info, main_info_cleanup): New function.
8657 (set_main_name, main_name, main_language): Use get_main_info.
8658 (_initialize_symtab): Initialize main_progspace_key.
8660 2014-01-15 Tom Tromey <tromey@redhat.com>
8662 * dbxread.c (process_one_symbol): Update.
8663 * dwarf2read.c (read_partial_die): Update.
8664 * symfile.c (set_initial_language): Call main_language.
8665 * symtab.c (language_of_main): Now static.
8666 (set_main_name): Add 'lang' parameter.
8667 (find_main_name): Update.
8668 (main_language): New function.
8669 (symtab_observer_executable_changed): Update.
8670 * symtab.h (set_main_name): Update.
8671 (language_of_main): Remove.
8672 (main_language): Declare.
8674 2014-01-15 Tom Tromey <tromey@redhat.com>
8676 * symfile.c (init_entry_point_info): Use new "initialized" field.
8678 * objfiles.h (struct entry_point) <initialized>: New field.
8679 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8680 (struct objfile) <ei>: ...here. Remove.
8681 * objfiles.c (entry_point_address_query): Update.
8683 2014-01-15 Tom Tromey <tromey@redhat.com>
8685 * objfiles.c (entry_point_address_query): Relocate entry point
8687 (objfile_relocate1): Do not relocate entry point address.
8688 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8689 <the_bfd_section_index>: New field.
8690 * symfile.c (init_entry_point_info): Find the entry point's
8693 2014-01-15 Tom Tromey <tromey@redhat.com>
8695 * solib-frv.c (enable_break): Use entry_point_address_query.
8697 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8699 * NEWS: Add note on improved process record-replay on
8700 arm*-linux* targets.
8702 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8704 * arm-tdep.c (enum arm_record_result): New enum.
8705 (arm_record_unsupported_insn): New function.
8706 (arm_record_coproc_data_proc): Removed.
8707 (thumb2_record_ld_st_multiple): New function.
8708 (thumb2_record_ld_st_dual_ex_tbb): New function.
8709 (thumb2_record_data_proc_sreg_mimm): New function.
8710 (thumb2_record_ps_dest_generic): New function.
8711 (thumb2_record_branch_misc_cntrl): New function.
8712 (thumb2_record_str_single_data): New function.
8713 (thumb2_record_ld_mem_hints): New function.
8714 (thumb2_record_ld_word): New function.
8715 (thumb2_record_lmul_lmla_div): New function.
8716 (thumb2_record_decode_insn_handler): New function.
8717 (decode_insn): Add thumb32 instruction handlers.
8719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8721 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8722 (struct arm_linux_record_tdep): Declare.
8723 (arm_canonicalize_syscall): New function.
8724 (arm_all_but_pc_registers_record): New function.
8725 (arm_linux_syscall_record): New function.
8726 (arm_linux_init_abi): Add syscall recording constructs.
8727 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8728 decoding. (arm_record_coproc_data_proc): Update arm syscall
8730 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8731 <arm_syscall_record>: New field.
8732 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8735 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8737 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8738 register for push instruction recording.
8740 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8742 * arm-tdep.c (thumb_record_misc): Update to correct logical
8743 error while recording ldm, ldmia and pop instructions.
8745 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8747 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8749 2014-01-15 Pedro Alves <palves@redhat.com>
8751 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8752 (go32_resume, go32_fetch_registers, store_register)
8753 (go32_store_registers, go32_prepare_to_store)
8754 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8755 (go32_create_inferior, go32_can_run, go32_terminal_init)
8756 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8759 2014-01-15 Tom Tromey <tromey@redhat.com>
8761 * target.h (async_callback_ftype): New typedef.
8762 (struct target_ops) <to_async>: Use it.
8764 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8766 * python/py-value.c (get_field_type): Remove unnecessary curly
8767 braces for single-statement if block.
8769 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8771 * python/py-type.c (convert_field): Add missing empty line
8774 2014-01-14 Doug Evans <dje@google.com>
8776 * symfile.h (expand_symtabs_matching): Renamed from
8777 expand_partial_symbol_names. Update prototype.
8778 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8779 * symfile.c (expand_symtabs_matching): Renamed from
8780 expand_partial_symbol_names. New args file_matcher, kind.
8781 Rename arg fun to symbol_matcher.
8782 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8783 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8784 ada_expand_partial_symbol_name.
8785 (ada_make_symbol_completion_list): Update to call
8786 expand_symtabs_matching.
8787 (ada_add_global_exceptions): Call expand_symtabs_matching.
8788 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8789 call map_symbol_filenames.
8790 * symtab.c (sources_info): Update to call map_symbol_filenames.
8791 (search_symbols): Call expand_symtabs_matching.
8792 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8793 (default_make_symbol_completion_list_break_on): Update to call
8794 expand_symtabs_matching.
8795 (make_source_files_completion_list): Update to call
8796 map_symbol_filenames.
8798 2014-01-14 Doug Evans <dje@google.com>
8800 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8801 (expand_symtabs_symbol_matcher_ftype): New typedef.
8802 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8803 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8804 * symfile.c (expand_partial_symbol_names): Update to use
8805 expand_symtabs_symbol_matcher_ftype.
8806 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8807 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8808 Arg name_matcher renamed to symbol_matcher.
8809 * psymtab.c (recursively_search_psymtabs): Update to use
8810 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8812 (expand_symtabs_matching_via_partial): Update to use
8813 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8814 Arg name_matcher renamed to symbol_matcher.
8816 2014-01-14 Doug Evans <dje@google.com>
8818 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8819 (map_partial_symbol_filenames): Ditto.
8820 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8821 (map_partial_symbol_filenames): Ditto.
8822 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8823 (map_partial_symbol_filenames): Ditto.
8824 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8825 (map_partial_symbol_filenames): Ditto.
8826 * symtab.c: Delete #include "psymtab.h".
8828 2014-01-14 Pedro Alves <palves@redhat.com>
8829 Tom Tromey <tromey@redhat.com>
8831 * infrun.c (use_displaced_stepping): Use find_record_target
8832 instead of RECORD_IS_USED.
8833 (adjust_pc_after_break): Use record_full_is_used instead of
8835 * record-btrace.c (record_btrace_open): Call record_preopen
8836 instead of checking RECORD_IS_USED.
8837 * record-full.c (record_full_shortname)
8838 (record_full_core_shortname): New globals.
8839 (record_full_is_used): New function.
8840 (find_full_open): Call record_preopen instead of checking
8842 (init_record_full_ops): Set the target's shortname to
8843 record_full_shortname.
8844 (init_record_full_core_ops): Set the target's shortname to
8845 record_full_core_shortname.
8846 * record-full.h (record_full_is_used): Declare.
8847 * record.c (find_record_target): Make extern.
8848 (record_preopen): New function.
8849 * record.h (RECORD_IS_USED): Delete macro.
8850 (find_record_target, record_preopen): Declare functions.
8852 2014-01-14 Yao Qi <yao@codesourcery.com>
8854 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8855 'len''s type to ULONGEST.
8856 (core_xfer_shared_libraries_aix): Likewise.
8857 * gdbarch.c, gdbarch.h: Regenerated.
8858 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8859 Change type of 'len' to ULONGEST.
8860 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8861 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8863 2014-01-14 Yao Qi <yao@codesourcery.com>
8865 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8866 type of 'len' to ULONGEST.
8867 (linux_xfer_osdata_processgroups): Likewise.
8868 (linux_xfer_osdata_threads): Likewise.
8869 (linux_xfer_osdata_fds): Likewise.
8870 (linux_xfer_osdata_isockets): Likewise.
8871 (linux_xfer_osdata_shm): Likewise.
8872 (linux_xfer_osdata_sem): Likewise.
8873 (linux_xfer_osdata_msg): Likewise.
8874 (linux_common_xfer_osdata): Likewise.
8875 (struct osdata_type) <getter>: Likewise.
8876 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8879 2014-01-14 Yao Qi <yao@codesourcery.com>
8881 * target.h (target_xfer_partial_ftype): Update.
8882 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8884 * aix-thread.c (aix_thread_xfer_partial): Change type of
8885 argument 'len' to ULONGEST.
8886 * auxv.c (procfs_xfer_auxv): Likewise.
8887 (ld_so_xfer_auxv): Likewise.
8888 (memory_xfer_auxv): Likewise.
8889 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8890 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8891 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8892 * corelow.c (core_xfer_partial): Likewise.
8893 * ctf.c (ctf_xfer_partial): Likewise.
8894 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8896 (darwin_read_dyld_info): Likewise.
8897 (darwin_xfer_partial): Likewise.
8898 * exec.c (section_table_xfer_memory_partial): Likewise.
8899 (exec_xfer_partial): Likewise.
8900 * exec.h (section_table_xfer_memory_partial): Update
8902 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8903 instead of plongest.
8904 (gnu_xfer_partial): Likewise.
8905 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8906 (ia64_hpux_xfer_solib_got): Likewise.
8907 (ia64_hpux_xfer_partial): Likewise.
8908 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8909 * inf-ptrace.c (inf_ptrace_xfer_partial):
8910 * inf-ttrace.c (inf_ttrace_xfer_partial):
8911 * linux-nat.c (linux_xfer_siginfo): Likewise.
8912 (linux_nat_xfer_partial): Likewise.
8913 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8914 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8915 * monitor.c (monitor_xfer_memory): Likewise.
8916 (monitor_xfer_partial): Likewise.
8917 * procfs.c (procfs_xfer_partial): Likewise.
8918 * record-full.c (record_full_xfer_partial): Likewise.
8919 (record_full_core_xfer_partial): Likewise.
8920 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8921 instead of plongest.
8922 (gdbsim_xfer_partial): Likewise.
8923 * remote.c (remote_xfer_partial): Likewise.
8924 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8925 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8927 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8928 (rs6000_xfer_shared_libraries): Likewise.
8929 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8930 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8931 (sparc_xfer_partial): Likewise.
8932 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8933 (spu_xfer_partial): Likewise.
8934 * spu-multiarch.c (spu_xfer_partial): Likewise.
8935 * target.c (target_read_live_memory): Likewise.
8936 (memory_xfer_live_readonly_partial): Likewise.
8937 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8938 (target_xfer_partial, default_xfer_partial): Likewise.
8939 (current_xfer_partial): Likewise.
8940 * tracepoint.c (tfile_xfer_partial): Likewise.
8941 * windows-nat.c (windows_xfer_memory): Likewise. Call
8942 pulongest instead of plongest.
8943 (windows_xfer_partial): Likewise.
8944 (windows_xfer_shared_libraries): Likewise.
8946 2014-01-14 Yao Qi <yao@codesourcery.com>
8948 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8949 target_xfer_partial_ftype.
8951 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8955 * valops.c (value_struct_elt_bitpos): New function
8956 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8957 object to 'None' if the field name is an empty string ("").
8958 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8959 attribute to look for a field when 'name' is 'None'.
8960 (get_field_type): New function
8962 2014-01-13 Doug Evans <dje@google.com>
8965 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8966 (try_open_dwop_file): Ditto.
8967 * gdb_bfd.c: #include "vec.h".
8968 (bfdp): New typedef.
8969 (struct gdb_bfd_data): New member included_bfds.
8970 (gdb_bfd_unref): Unref all included bfds.
8971 (gdb_bfd_record_inclusion): New function.
8972 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8974 2014-01-13 Tom Tromey <tromey@redhat.com>
8976 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8978 2014-01-13 Tom Tromey <tromey@redhat.com>
8980 * defs.h (use_windows): Remove.
8981 * gdb.c (main): Update.
8982 * main.c (captured_main, gdb_main): Update.
8983 * main.h (struct captured_main_args) <use_windows>: Remove.
8984 * top.c (use_windows): Remove.
8986 2014-01-13 Tom Tromey <tromey@redhat.com>
8988 * defs.h (deprecated_flush_hook): Remove.
8990 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 * linux-thread-db.c (try_thread_db_load): Add parameter
8994 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8995 (try_thread_db_load_from_pdir_1): Move it there from here.
8996 (try_thread_db_load_from_sdir): Update caller.
8997 (try_thread_db_load_from_dir): Move it there from here.
8999 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9001 * regformats/regdat.sh: Always rewrite the register file.
9003 2014-01-13 Pedro Alves <palves@redhat.com>
9005 * Makefile.in (CHECK_HEADERS): New variable.
9006 (check-headers:): New rule.
9008 2014-01-13 Tom Tromey <tromey@redhat.com>
9010 * cli/cli-setshow.c (do_set_command): Update.
9011 * defs.h (deprecated_set_hook): Remove.
9012 * top.c (deprecated_set_hook): Remove.
9014 2014-01-13 Pedro Alves <palves@redhat.com>
9016 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9017 the tracepoint if the PC is a pseudo-register.
9019 2014-01-13 Tom Tromey <tromey@redhat.com>
9021 * defs.h (XCALLOC): Remove.
9022 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9023 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9024 * dwarf2loc.c (allocate_piece_closure): Likewise.
9025 * elfread.c (elf_symfile_segments): Likewise.
9026 (elf_symfile_segments): Likewise.
9027 * gdbtypes.c (copy_type_recursive): Likewise.
9028 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9029 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9030 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9032 * mt-tdep.c (mt_gdbarch_init): Likewise.
9033 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9035 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9036 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9037 * registry.c (registry_alloc_data): Likewise.
9038 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9039 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9040 * serial.c (serial_fdopen_ops): Likewise.
9041 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9043 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9044 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9047 2014-01-13 Tom Tromey <tromey@redhat.com>
9049 * defs.h (XMALLOC): Remove.
9050 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9051 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9052 * cli-out.c (struct ui_out *): Likewise.
9053 * cli/cli-dump.c (add_dump_command): Likewise.
9054 (add_dump_command): Likewise.
9055 * complaints.c (get_complaints): Likewise.
9056 (find_complaint): Likewise.
9057 * dwarf2-frame.c (execute_cfa_program): Likewise.
9058 * dwarf2read.c (abbrev_table_read_table): Likewise.
9059 * gdbarch.sh: Likewise.
9060 * gdbarch.c: Rebuild.
9061 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9062 * interps.c (interp_new): Likewise.
9063 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9064 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9065 * mi/mi-console.c (mi_console_file_new): Likewise.
9066 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9067 * mi/mi-out.c (mi_out_new): Likewise.
9068 * mi/mi-parse.c (mi_parse): Likewise.
9069 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9070 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9071 * observer.c (xalloc_observer_list_node): Likewise.
9072 * regcache.c (regcache_xmalloc_1): Likewise.
9073 * reggroups.c (reggroup_new): Likewise.
9074 (_initialize_reggroup): Likewise.
9075 * registry.c (register_data_with_cleanup): Likewise.
9076 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9077 * ser-base.c (serial_ttystate): Likewise.
9078 * ser-mingw.c (make_pipe_state): Likewise.
9079 * ser-pipe.c (pipe_open): Likewise.
9080 * serial.c (serial_open): Likewise.
9081 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9082 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9083 (tui_alloc_win_info): Likewise.
9084 (tui_add_content_elements): Likewise.
9085 * tui/tui-file.c (tui_file_new): Likewise.
9086 * tui/tui-out.c (tui_out_new): Likewise.
9087 * ui-file.c (mem_file_new): Likewise.
9088 * ui-out.c (push_level): Likewise.
9089 (make_cleanup_ui_out_end): Likewise.
9090 (append_header_to_list): Likewise.
9091 (ui_out_new): Likewise.
9092 * user-regs.c (user_reg_add_builtin): Likewise.
9094 2014-01-13 Tom Tromey <tromey@redhat.com>
9096 * defs.h (XZALLOC): Remove.
9097 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9098 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9099 (get_ada_tasks_inferior_data): Likewise.
9100 * auto-load.c (get_auto_load_pspace_data): Likewise.
9101 * auxv.c (get_auxv_inferior_data): Likewise.
9102 * bfd-target.c (target_bfd_reopen): Likewise.
9103 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9104 (deprecated_insert_raw_breakpoint): Likewise.
9105 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9106 * corelow.c (core_open): Likewise.
9107 * darwin-nat.c (darwin_check_new_threads): Likewise.
9108 (darwin_attach_pid): Likewise.
9109 * dummy-frame.c (dummy_frame_push): Likewise.
9110 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9111 * dwarf2loc.c (allocate_piece_closure): Likewise.
9112 * elfread.c (elf_symfile_segments): Likewise.
9113 * eval.c (ptrmath_type_p): Likewise.
9114 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9115 * gdbtypes.c (alloc_type_arch): Likewise.
9116 (alloc_type_instance): Likewise.
9117 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9118 * inf-child.c (inf_child_can_use_agent): Likewise.
9119 * inflow.c (get_inflow_inferior_data): Likewise.
9120 * infrun.c (save_infcall_suspend_state): Likewise.
9121 * jit.c (jit_reader_load): Likewise.
9122 (get_jit_objfile_data): Likewise.
9123 (get_jit_program_space_data): Likewise.
9124 (jit_object_open_impl): Likewise.
9125 (jit_symtab_open_impl): Likewise.
9126 (jit_block_open_impl): Likewise.
9127 (jit_frame_sniffer): Likewise.
9128 * linux-fork.c (add_fork): Likewise.
9129 * maint.c (make_command_stats_cleanup): Likewise.
9130 * objfiles.c (get_objfile_pspace_data): Likewise.
9131 * opencl-lang.c (struct lval_closure): Likewise.
9132 * osdata.c (osdata_start_osdata): Likewise.
9133 * progspace.c (new_address_space): Likewise.
9134 (add_program_space): Likewise.
9135 * remote-sim.c (get_sim_inferior_data): Likewise.
9136 * sh-tdep.c (sh_gdbarch_init): Likewise.
9137 * skip.c (Ignore): Likewise.
9138 (skip_delete_command): Likewise.
9139 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9140 (library_list_start_library): Likewise.
9141 (solib_aix_current_sos): Likewise.
9142 * solib-darwin.c (get_darwin_info): Likewise.
9143 (darwin_current_sos): Likewise.
9144 * solib-dsbt.c (get_dsbt_info): Likewise.
9145 * solib-ia64-hpux.c (new_so_list): Likewise.
9146 (ia64_hpux_get_solib_linkage_addr): Likewise.
9147 * solib-spu.c (append_ocl_sos): Likewise.
9148 (spu_current_sos): Likewise.
9149 * solib-svr4.c (get_svr4_info): Likewise.
9150 (svr4_keep_data_in_core): Likewise.
9151 (library_list_start_library): Likewise.
9152 (svr4_default_sos): Likewise.
9153 (svr4_read_so_list): Likewise.
9154 * solib-target.c (library_list_start_library): Likewise.
9155 (solib_target_current_sos): Likewise.
9156 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9157 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9158 * symfile.c (default_symfile_segments): Likewise.
9159 * target-descriptions.c (tdesc_data_init): Likewise.
9160 (tdesc_create_reg): Likewise.
9161 (struct tdesc_type *): Likewise.
9162 (tdesc_create_vector): Likewise.
9163 (tdesc_set_struct_size): Likewise.
9164 (struct tdesc_type *): Likewise.
9165 (tdesc_free_feature): Likewise.
9166 (tdesc_create_feature): Likewise.
9167 * windows-nat.c (windows_add_thread): Likewise.
9168 (windows_make_so): Likewise.
9169 * xml-support.c (gdb_xml_body_text): Likewise.
9170 (gdb_xml_create_parser_and_cleanup): Likewise.
9171 (xml_process_xincludes): Likewise.
9172 * xml-syscall.c (allocate_syscalls_info): Likewise.
9173 (syscall_create_syscall_desc): Likewise.
9175 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9177 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9178 function, with code from i386_stap_parse_special_token.
9179 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9180 (i386_stap_parse_special_token): Move code to the two functions
9183 2014-01-09 Pedro Alves <palves@redhat.com>
9184 Hui Zhu <hui@codesourcery.com>
9187 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9188 bp_err_string. Don't mark the location shlib_disabled if the
9189 error thrown wasn't a generic or memory error. Catch errors
9190 thrown while inserting breakpoints in overlayed code. Output
9191 error message of software breakpoints.
9192 * remote.c (remote_insert_breakpoint): If this breakpoint has
9193 target-side commands but this stub doesn't support Z0 packets,
9194 throw NOT_SUPPORTED_ERROR error.
9195 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9196 * target.h (target_insert_breakpoint): Extend comment.
9197 (target_insert_hw_breakpoint): Add comment.
9199 2014-01-08 Pedro Alves <palves@redhat.com>
9201 * remote.c (remote_add_thread): Add threads silently if starting
9203 (remote_notice_new_inferior): If in all-stop, and starting up,
9204 don't call notice_new_inferior.
9205 (get_current_thread): New function, factored out from ...
9206 (add_current_inferior_and_thread): ... this. Adjust.
9207 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9208 found any thread, then select the remote's current thread as GDB's
9211 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9213 * NEWS: Create a new section for the next release branch.
9214 Rename the section of the current branch, now that it has
9217 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9219 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9220 * version.in: Bump version to 7.7.50.DATE-cvs.
9222 2014-01-08 Yao Qi <yao@codesourcery.com>
9224 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9225 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9226 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9228 2014-01-08 Yao Qi <yao@codesourcery.com>
9230 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9231 return value of bfd_get_filename to symbol_file_add_from_bfd.
9233 2014-01-08 Pierre Muller <muller@sourceware.org>
9236 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9237 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9238 to prim_record_mininal_symbol_and_info.
9239 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9240 in call to prim_record_minimal_symbol_and_info.
9241 (read_pe_exported_syms): Set index field of section_data.
9243 2014-01-07 Andrew Pinski <apinski@cavium.com>
9245 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9246 * features/aarch64.c: Regenerate.
9248 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9250 * target.c (return_null): Define.
9251 (update_current_target): Use it instead of return_zero for
9252 functions that return a pointer.
9254 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9256 * source.c (add_path): Fix check for duplicated paths in the previously
9259 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9261 * ada-lang.c: Remove duplicated include statements.
9262 * alphabsd-nat.c: Ditto.
9263 * amd64-darwin-tdep.c: Ditto.
9264 * amd64fbsd-nat.c: Ditto.
9265 * auto-load.c: Ditto.
9267 * breakpoint.c: Ditto.
9269 * fork-child.c: Ditto.
9270 * gdb_usleep.c: Ditto.
9271 * i386-darwin-tdep.c: Ditto.
9272 * i386fbsd-nat.c: Ditto.
9274 * inferior.c: Ditto.
9276 * linux-nat.c: Ditto.
9277 * linux-tdep.c: Ditto.
9278 * m68kbsd-nat.c: Ditto.
9279 * m68klinux-nat.c: Ditto.
9280 * microblaze-tdep.c: Ditto.
9281 * mips-linux-tdep.c: Ditto.
9282 * mn10300-tdep.c: Ditto.
9283 * nto-tdep.c: Ditto.
9284 * opencl-lang.c: Ditto.
9286 * printcmd.c: Ditto.
9287 * regcache.c: Ditto.
9288 * remote-m32r-sdi.c: Ditto.
9292 * tilegx-linux-nat.c: Ditto.
9293 * tilegx-tdep.c: Ditto.
9294 * tracepoint.c: Ditto.
9296 * vaxbsd-nat.c: Ditto.
9297 * windows-nat.c: Ditto.
9298 * xtensa-tdep.c: Ditto.
9300 2014-01-07 Yao Qi <yao@codesourcery.com>
9302 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9304 2014-01-07 Yao Qi <yao@codesourcery.com>
9305 Joel Brobecker <brobecker@adacore.com>
9307 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9308 (pdc_write_regs): Likewise.
9309 (fetch_regs_kernel_thread): Likewise.
9310 (store_regs_kernel_thread): Likewise.
9312 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9314 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9315 tagged type objects to their actual type.
9317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9319 * ada-valprint.c (print_field_values): Add "language" parameter.
9320 Update calls to print_field_values and print_variant_part.
9321 Pass new parameter "language" in call to val_print instead
9322 of "current_language". Replace call to ada_val_print by call
9324 (print_variant_part): Add "language" parameter.
9325 (ada_val_print_struct_union): Update call to print_field_values.
9327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9329 * ada-valprint.c (ui_memcpy): Delete.
9330 (ada_print_floating): Update documentation. Add empty line
9331 between between function documentation and implementation.
9332 Delete variable "buffer". Use ui_file_xstrdup in place of
9333 ui_file_put. Minor adjustments following this change.
9335 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9337 * ada-valprint.c (ada_val_print_string): New function,
9338 extracted from ada_val_print_array.
9339 (ada_val_print_array): Replace extracted code by call
9340 to ada_val_print_string followed by a return. Move
9341 "else" branch to the function's top block.
9343 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9345 * ada-valprint.c (ada_val_print_array): Move implementation
9346 down. Rename parameter "offset" and "val" into "offset_aligned"
9347 and "original_value" respectively. Add parameter "offset".
9349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9351 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9352 re-organizing the code. Change the "???" message printed
9353 when target type is a TYPE_CODE_UNDEF into
9354 "<ref to undefined type>".
9356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9358 * ada-valprint.c (print_record): Delete, implementation inlined...
9359 (ada_val_print_struct_union): ... here. Remove call to
9360 ada_check_typedef in inlined implementation.
9362 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9364 * ada-valprint.c (ada_val_print_gnat_array): New function,
9365 extracted from ada_val_print_1;
9366 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9367 (ada_val_print_flt, ada_val_print_struct_union)
9368 (ada_val_print_ref): Likewise.
9369 (ada_val_print_1): Delete variables i and elttype.
9370 Replace extracted-out code by call to corresponding
9373 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9375 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9379 * ada-valprint.c (ada_val_print_1): Replace calls to
9380 ada_val_print_1 by calls to val_print.
9382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9384 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9385 Update calls to self accordingly. Replace calls to c_val_print
9386 by calls to val_print.
9388 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9390 * ada-valprint.c (print_record): Delete declaration.
9391 (adjust_type_signedness, ada_val_print_1): Likewise.
9392 (ada_val_print): Move function implementation down.
9393 (print_variant_part, print_field_values, print_record):
9394 Move function implementation up.
9396 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9398 * python/py-type.c (typy_get_name): New function.
9399 (type_object_getset): Add entry for attribute "name".
9400 * NEWS: Add entry mentioning this new attribute.
9402 2014-01-07 Yao Qi <yao@codesourcery.com>
9404 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9407 2014-01-07 Yao Qi <yao@codesourcery.com>
9409 * gnu-nat.c (info_port_rights): Add qualifier const to
9412 2014-01-07 Yao Qi <yao@codesourcery.com>
9414 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9416 2014-01-07 Yao Qi <yao@codesourcery.com>
9418 * gnu-nat.c (make_inf) Update declaration.
9419 (make_inf): Make it static.
9420 (inf_set_traced): Likewise.
9421 (inf_port_to_thread, inf_task_died_status): Likewise.
9423 2014-01-07 Yao Qi <yao@codesourcery.com>
9425 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9427 2014-01-07 Yao Qi <yao@codesourcery.com>
9429 * gnu-nat.c (_initialize_gnu_nat): Declare.
9431 2014-01-07 Yao Qi <yao@codesourcery.com>
9433 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9435 (struct gdbarch_info) <byte_order>: Change type to
9437 <byte_order_for_code>: Likewise.
9438 * gdbarch.c, gdbarch.h: Regenerated.
9440 2014-01-06 Sasha Smundak <asmundak@google.com>
9442 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9444 2014-01-06 Tom Tromey <tromey@redhat.com>
9446 * doublest.c (convert_doublest_to_floatformat): Use const, not
9448 * somread.c (som_symtab_read): Likewise.
9450 2014-01-07 Hui Zhu <hui@codesourcery.com>
9452 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9453 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9454 (gdb_bfd_fopen): Ditto.
9455 (gdb_bfd_openr): Ditto.
9456 (gdb_bfd_openw): Ditto.
9457 (gdb_bfd_openr_iovec): Ditto.
9458 (gdb_bfd_fdopenr): Ditto.
9459 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9460 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9462 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9464 * symfile-mem.c (symbol_file_add_from_memory): Removed
9465 gdb_bfd_stash_filename.
9467 2014-01-03 Doug Evans <dje@google.com>
9469 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9472 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9474 Update year range in copyright notice of all files.
9476 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9478 * top.c (print_gdb_version): Set copyright year to 2014.
9480 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9482 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9484 For older changes see ChangeLog-2013.
9490 version-control: never