1 2014-06-18 Tom Tromey <tromey@redhat.com>
3 * symtab.h (struct symtab) <blockvector>: Now const.
4 * ada-lang.c (ada_add_global_exceptions): Update.
5 * buildsym.c (augment_type_symtab): Update.
6 * dwarf2read.c (dw2_lookup_symbol): Update.
7 * jit.c (finalize_symtab): Update.
8 * jv-lang.c (add_class_symtab_symbol): Update.
9 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
11 * objfiles.c (objfile_relocate1): Update.
12 * psymtab.c (lookup_symbol_aux_psymtabs)
13 (maintenance_check_psymtabs): Update.
14 * python/py-symtab.c (stpy_global_block, stpy_static_block):
16 * spu-tdep.c (spu_catch_start): Update.
17 * symmisc.c (dump_symtab_1): Update.
18 * symtab.c (lookup_global_symbol_from_objfile)
19 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
20 (basic_lookup_transparent_type_quick)
21 (basic_lookup_transparent_type, find_pc_sect_symtab)
22 (find_pc_sect_line, search_symbols): Update.
23 * block.c (find_block_in_blockvector): Make "bl" const.
24 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
26 (blockvector_contains_pc): Make "bv" const.
27 (block_for_pc_sect): Update.
28 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
29 (blockvector_contains_pc): Update.
30 * breakpoint.c (resolve_sal_pc): Update.
31 * inline-frame.c (block_starting_point_at): Update.
33 2014-06-18 Tom Tromey <tromey@redhat.com>
35 * completer.c (complete_line): Make "line_buffer" const.
36 * completer.h (complete_line): Update.
38 2014-06-18 Tom Tromey <tromey@redhat.com>
40 * symtab.c (add_macro_name): Remove unneeded cast.
42 2014-06-18 Tom Tromey <tromey@redhat.com>
44 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
45 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
47 2014-06-18 Tom Tromey <tromey@redhat.com>
49 * probe.c (info_probes_for_ops): Make "arg" const.
50 * probe.h (info_probes_for_ops): Update.
52 2014-06-18 Tom Tromey <tromey@redhat.com>
54 * varobj.c (varobj_create): Update.
55 * valops.c (value_of_this): Update.
56 * tracepoint.c (add_local_symbols, scope_info): Update.
57 * symtab.h (struct general_symbol_info) <block>: Now const.
58 * symtab.c (skip_prologue_sal)
59 (default_make_symbol_completion_list_break_on)
60 (skip_prologue_using_sal): Update.
61 * stack.h (iterate_over_block_locals)
62 (iterate_over_block_local_vars): Update.
63 * stack.c (print_frame_args): Update.
64 (iterate_over_block_locals, iterate_over_block_local_vars): Make
66 (get_selected_block): Make return type const.
67 * python/py-frame.c (frapy_block): Update.
68 * python/py-block.c (gdbpy_block_for_pc): Update.
69 * p-exp.y (%union) <bval>: Now const.
70 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
71 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
72 * m2-exp.y (%union) <bval>: Now const.
73 * linespec.c (get_current_search_block): Make return type const.
74 (create_sals_line_offset, find_label_symbols): Update.
75 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
77 (block_starting_point_at): Make "block" const.
78 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
79 (check_exception_resume): Update.
80 * guile/scm-frame.c (gdbscm_frame_block): Update.
81 * guile/scm-block.c (gdbscm_lookup_block): Update.
82 * frame.h (get_frame_block): Update.
83 (get_selected_block): Make return type const.
84 * frame.c (frame_id_inner): Update.
85 * f-valprint.c (info_common_command_for_block)
86 (info_common_command): Update.
87 * dwarf2loc.c (dwarf2_find_location_expression)
88 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
89 (locexpr_describe_location_piece): Update.
90 * c-exp.y (%union) <bval>: Now const.
91 * breakpoint.c (resolve_sal_pc): Update.
92 * blockframe.c (get_frame_block):Make return type const.
93 (get_pc_function_start, get_frame_function, find_pc_sect_function)
94 (block_innermost_frame): Update.
95 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
96 (block_for_pc, block_for_pc_sect): Update.
97 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
99 (block_for_pc_sect, block_for_pc): Make return type const.
100 * ax-gdb.c (gen_expr): Update.
101 * alpha-mdebug-tdep.c (find_proc_desc): Update.
102 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
103 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
104 (ada_read_var_value): Update.
105 * ada-exp.y (struct name_info) <block>: Now const.
107 (block_lookup): Constify.
109 2014-06-18 Gary Benson <gbenson@redhat.com>
111 * nat/i386-dregs.h: New file.
112 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
113 * i386-nat.h (i386-dregs.h): New include.
114 (DR_FIRSTADDR): Now in i386-dregs.h.
115 (DR_LASTADDR): Likewise.
116 (DR_NADDR): Likewise.
117 (DR_STATUS): Likewise.
118 (DR_CONTROL): Likewise.
119 (i386_debug_reg_state): Likewise.
120 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
122 2014-06-18 Don Breazeal <donb@codesourcery.com>
124 * breakpoint.c (set_longjmp_breakpoint): Call
125 momentary_breakpoint_from_master with additional argument.
126 (set_longjmp_breakpoint_for_call_dummy): Call
127 momentary_breakpoint_from_master with additional argument.
128 (set_std_terminate_breakpoint): Call
129 momentary_breakpoint_from_master with additional argument.
130 (momentary_breakpoint_from_master): Add argument to function
131 definition and use it to initialize structure member flag.
132 (clone_momentary_breakpoint): Call
133 momentary_breakpoint_from_master with additional argument.
134 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
135 member flags set in momentary_breakpoint_from_master.
137 2014-06-18 Gary Benson <gbenson@redhat.com>
139 * i386-nat.c (i386_show_dr): Renamed to
140 i386_dr_show and made nonstatic. All uses updated.
141 (i386_length_and_rw_bits): Renamed to
142 i386_dr_length_and_rw_bits and made nonstatic.
144 (i386_insert_aligned_watchpoint): Renamed to
145 i386_dr_insert_aligned_watchpoint and made nonstatic.
147 (i386_remove_aligned_watchpoint): Renamed to
148 i386_dr_remove_aligned_watchpoint and made nonstatic.
150 (i386_update_inferior_debug_regs): Renamed to
151 i386_dr_update_inferior_debug_regs and made nonstatic.
154 2014-06-18 Gary Benson <gbenson@redhat.com>
156 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
157 (i386_dr_low_can_set_control): Likewise.
158 (i386_dr_low_set_addr): Likewise.
159 (i386_dr_low_set_control): Likewise.
160 (i386_dr_low_get_addr): Likewise.
161 (i386_dr_low_get_status): Likewise.
162 (i386_dr_low_get_control): Likewise.
163 (i386_insert_aligned_watchpoint): Use new macros.
164 (i386_update_inferior_debug_regs): Likewise.
165 (i386_stopped_data_address): Likewise.
167 2014-06-18 Gary Benson <gbenson@redhat.com>
169 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
170 New parameter. All uses updated.
172 2014-06-18 Gary Benson <gbenson@redhat.com>
174 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
177 2014-06-18 Gary Benson <gbenson@redhat.com>
179 * i386-nat.c (debug_printf): New macro.
180 (i386_get_debug_register_length): Likewise.
181 (TARGET_HAS_DR_LEN_8): Use above macro.
182 (i386_show_dr): Use debug_printf instead of puts_unfiltered
183 and printf_unfiltered. Use phex to format values.
185 2014-06-18 Gary Benson <gbenson@redhat.com>
187 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
190 2014-06-18 Gary Benson <gbenson@redhat.com>
192 * i386-nat.c: Comment changes.
194 2014-06-18 Gary Benson <gbenson@redhat.com>
196 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
198 2014-06-18 Gary Benson <gbenson@redhat.com>
200 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
201 (i386_insert_aligned_watchpoint): Likewise.
202 (i386_remove_aligned_watchpoint): Likewise.
203 (i386_handle_nonaligned_watchpoint): Likewise.
205 2014-06-18 Gary Benson <gbenson@redhat.com>
207 * i386-nat.c: Whitespace changes.
209 2014-06-17 Samuel Bronson <naesten@gmail.com>
211 * MAINTAINERS: Update Roland McGrath's email address.
212 Thanks to Sergio Durigan Junior for pointing out that he left
213 Red Hat a while ago, and giving me a current address.
215 2014-06-17 Tom Tromey <tromey@redhat.com>
217 * utils.h (savestring): Remove declaration.
219 2014-06-17 Tom Tromey <tromey@redhat.com>
221 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
223 2014-06-16 Keith Seitz <keiths@redhat.com>
226 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
227 to update the varobj if inferior_ptid is null_ptid.
229 2014-06-16 Tom Tromey <tromey@redhat.com>
231 * target.h (struct target_ops) <to_info_proc>: Make parameter
233 (target_info_proc): Update.
234 * target.c (target_info_proc): Make "args" const.
235 * procfs.c (procfs_info_proc): Update.
236 * linux-tdep.c (linux_info_proc): Update.
237 (linux_core_info_proc_mappings): Make "args" const.
238 (linux_core_info_proc): Update.
239 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
240 * gdbarch.c: Rebuild.
241 * gdbarch.h: Rebuild.
242 * corelow.c (core_info_proc): Update.
244 2014-06-16 Tom Tromey <tromey@redhat.com>
246 * target.h (struct target_ops) <to_disconnect>: Make parameter
248 (target_disconnect): Update.
249 * target.c (target_disconnect): Make "args" const.
250 * target-delegates.c: Rebuild.
251 * remote.c (remote_disconnect): Update.
252 * record.h (record_disconnect): Update.
253 * record.c (record_disconnect): Update.
254 * inf-child.c (inf_child_disconnect): Update.
256 2014-06-16 Tom Tromey <tromey@redhat.com>
258 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
259 * target.c (debug_to_rcmd, default_rcmd): Update.
260 * target-delegates.c: Rebuild.
261 * remote.c (remote_rcmd): Update.
262 * monitor.c (monitor_rcmd): Update.
264 2014-06-16 Pedro Alves <palves@redhat.com>
266 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
267 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
268 have OBJF_SHARED set.
269 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
270 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
271 instead of OBJF_USERLOADED.
272 * objfiles.h (OBJF_SHARED): Update comment.
273 (userloaded_objfile_contains_address_p): Rename to ...
274 (shared_objfile_contains_address_p): ... this, and update
276 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
278 (remove_symbol_file_command): Skip objfiles that don't have
281 2014-06-16 Tom Tromey <tromey@redhat.com>
283 * minsyms.h (prim_record_minimal_symbol)
284 (prim_record_minimal_symbol_and_info): Update comments.
286 2014-06-14 Eli Zaretskii <eliz@gnu.org>
288 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
289 or --without-guile, according to how GDB was built.
291 2014-06-13 Tom Tromey <tromey@redhat.com>
293 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
295 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
297 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
299 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
300 help_list.Pass all_commands, not -1, to help_list.
301 * cli/cli-dump.c (dump_command, append_command)
302 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
303 (binary_dump_command, binary_append_command): Pass all_commands,
304 not -1, to help_list.
305 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
307 * valprint.c (set_print, set_print_raw): Pass all_commands, not
309 * typeprint.c (set_print_type): Pass all_commands, not -1, to
311 * top.c (set_history): Pass all_commands, not -1, to help_list.
312 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
313 all_commands, not -1, to help_list.
314 * symfile.c (overlay_command): Pass all_commands, not -1, to
316 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
318 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
320 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
322 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
323 not -1, to help_list.
324 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
325 not -1, to help_list.
326 * maint.c (maintenance_command, maintenance_info_command)
327 (maintenance_print_command, maintenance_set_cmd): Pass
328 all_commands, not -1, to help_list.
329 * macrocmd.c (macro_command): Pass all_commands, not -1, to
331 * language.c (set_check): Pass all_commands, not -1, to help_list.
332 * infcmd.c (unset_command): Pass all_commands, not -1, to
334 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
336 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
338 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
340 * breakpoint.c (save_command): Pass all_commands, not -1, to
342 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
343 all_commands, not -1, to help_list.
345 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
347 * regcache.c (struct register_to_invalidate): New structure.
348 (do_register_invalidate, make_cleanup_regcache_invalidate): New
350 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
352 2014-06-12 Yao Qi <yao@codesourcery.com>
354 * varobj.c (varobj_get_num_children): Call
356 (varobj_list_children): Likewise.
357 (varobj_update): Likewise. Update comments.
359 2014-06-12 Yao Qi <yao@codesourcery.com>
361 * varobj.c (varobj_pretty_printed_p): Rename to ...
362 (varobj_is_dynamic_p): ... this. New function.
363 * varobj.h (varobj_pretty_printed_p): Remove declaration.
364 (varobj_is_dynamic_p): Declare.
365 * mi/mi-cmd-var.c (print_varobj): All callers updated.
366 (mi_print_value_p, varobj_update_one): Likewise.
368 2014-06-12 Pedro Alves <pedro@codesourcery.com>
369 Yao Qi <yao@codesourcery.com>
371 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
372 (varobj_get_iterator): Wrap up code for pretty-printer by
373 "#if HAVE_PYTHON" and "#endif".
374 (update_dynamic_varobj_children): Likewise.
376 2014-06-12 Pedro Alves <pedro@codesourcery.com>
377 Yao Qi <yao@codesourcery.com>
379 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
380 gdb_python_initialized is false. Move some code from varobj.c.
381 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
382 * varobj.c: Move "varobj-iter.h" inclusion earlier.
383 (struct varobj_item): Moved to varobj-iter.h".
384 (varobj_clear_saved_item): New function.
385 (update_dynamic_varobj_children): Move python-related code to
387 (free_variable): Call varobj_clear_saved_item and
390 2014-06-12 Pedro Alves <pedro@codesourcery.com>
391 Yao Qi <yao@codesourcery.com>
393 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
394 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
395 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
396 (py-varobj.o): New rule.
397 * python/py-varobj.c: New file.
398 * python/python-internal.h (py_varobj_get_iterator): Declare.
399 * varobj-iter.h: New file.
400 * varobj.c: Include "varobj-iter.h"
401 (struct varobj) <child_iter>: Change its type from "PyObject *"
402 to "struct varobj_iter *".
403 <saved_item>: Likewise.
404 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
405 [HAVE_PYTHON] (varobj_get_iterator): New function.
406 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
407 python-specific code to python/py-varobj.c.
408 (install_visualizer): Call varobj_iter_delete instead of
410 * varobj.h (varobj_ensure_python_env): Declare.
412 2014-06-12 Yao Qi <yao@codesourcery.com>
414 * varobj.c (struct varobj_item): New structure.
415 (create_child_with_value): Update declaration.
416 (varobj_add_child): Replace arguments 'name' and 'value' with
417 'item'. All callers updated.
418 (install_dynamic_child): Likewise.
419 (update_dynamic_varobj_children): Likewise.
420 (varobj_add_child): Likewise.
421 (create_child_with_value): Likewise.
423 2014-06-11 Joel Brobecker <brobecker@adacore.com>
425 * NEWS: Create a new section for the next release branch.
426 Rename the section of the current branch, now that it has
429 2014-06-11 Joel Brobecker <brobecker@adacore.com>
431 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
432 * version.in: Bump version to 7.8.50.DATE-cvs.
434 2014-06-11 Pedro Alves <palves@redhat.com>
437 * ser-mingw.c (net_windows_socket_check_pending): New function.
438 (net_windows_select_thread): Ignore spurious wakeups. Use
439 net_windows_socket_check_pending.
440 (net_windows_wait_handle): Check for pending events with
441 ioctlsocket, through net_windows_socket_check_pending, instead of
442 checking the socket's event.
444 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
446 * python/python-internal.h (gdb_PyObject_GetAttrString)
447 (gdb_PyObject_HasAttrString): New inline function definitions.
448 * py-value.c (get_field_flag): Remove the now unnecessary cast to
449 char * of the second argument to PyObject_GetAttrString.
451 2014-06-10 Joel Brobecker <brobecker@adacore.com>
453 * serial.c (serial_write): Fix index of character to be printed
454 in call to serial_logchar when serial debug traces are enabled.
456 2014-06-10 Joel Brobecker <brobecker@adacore.com>
458 * gdbtypes (resolve_dynamic_range): Add function description.
460 2014-06-09 Pedro Alves <palves@redhat.com>
462 * linux-nat.c (linux_child_follow_fork): Initialize status with
463 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
464 inner block. Only pass the signal to PTRACE_DETACH if in pass
467 2014-06-09 Gary Benson <gbenson@redhat.com>
469 * common/signals.c (gdb_signal_from_host): Reorder to separate
470 the always-available ANSI-standard signals from the signals that
472 (do_gdb_signal_to_host): Likewise.
473 * proc-events.c (signal_table): Likewise.
475 2014-06-08 Hui Zhu <hui@codesourcery.com>
477 * common/linux-ptrace.c (linux_disable_event_reporting): New
479 * common/linux-ptrace.h (linux_disable_event_reporting): New
481 * linux-nat.c (linux_child_follow_fork): Do a single step before
484 2014-06-07 Keith Seitz <keiths@redhat.com>
488 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
489 from symbol_matches_domain in symtab.c. All local callers
490 of symbol_matches_domain updated.
491 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
492 search STRUCT_DOMAIN.
493 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
494 independently. standard_lookup will do that automatically.
495 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
496 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
497 (cp_lookup_symbol_in_namespace): Likewise.
498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
499 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
500 may return a STRUCT_DOMAIN match.
501 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
502 * cp-support.c: Include language.h.
503 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
505 * psymtab.c (match_partial_symbol): Compare the requested
506 domain with the symbol's domain directly.
507 (lookup_partial_symbol): Likewise.
508 * symtab.c (lookup_symbol_in_language): Explain when/why
509 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
510 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
511 appropriate languages.
512 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
513 and moved to ada-lang.c
514 (lookup_block_symbol): Explain that this function only returns
515 symbol matching the requested DOMAIN.
516 Compare the requested domain with the symbol's domain directly.
517 (iterate_over_symbols): Compare the requested domain with the
518 symbol's domain directly.
519 * symtab.h (symbol_matches_domain): Remove.
521 2014-06-06 Doug Evans <xdje42@gmail.com>
523 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
524 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
525 (gdbscm_guile_version_is_at_least): Declare.
526 (gdbscm_scm_string_to_int): Declare.
527 * guile/guile.c (gdbscm_guile_major_version): New global.
528 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
529 (guile_datadir): New static global.
530 (gdbscm_guile_data_directory): New function.
531 (initialize_scheme_side): Update.
532 (misc_guile_functions): Add guile-data-directory.
533 (initialize_gdb_module): Fetch guile version number.
534 * guile/lib/gdb.scm: Remove call to add-to-load-path.
535 * guile/lib/gdb/init.scm (%initialize!): Ditto.
536 * guile/lib/gdb/boot.scm: Use guile-data-directory.
537 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
539 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
540 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
541 * guile/scm-value.c (gdbscm_value_to_string): Only call
542 scm_port_conversion_strategy if Guile version >= 2.0.6.
544 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
546 * main.c (print_gdb_help): Add -q and --silent.
548 2014-06-06 Gary Benson <gbenson@redhat.com>
550 * common/signals.c: Remove preprocessor conditionals for
551 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
553 * proc-events.c: Likewise.
555 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
557 * symfile.c (symfile_free_objfile): Remove restriction to
559 * symfile-mem.c (symbol_file_add_from_memory): Call
560 add_target_sections_of_objfile.
562 2014-06-05 Ludovic Courtès <ludo@gnu.org>
564 * guile/scm-value.c (gdbscm_history_append_x): Use
565 'vlscm_get_value_smob_arg_unsafe' instead of
566 'vlscm_scm_to_value'.
568 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
571 * utils.c (printchar): Don't escape at all if quoter is NUL.
572 Update function documentation to clarify effect of parameter
574 * remote.c (escape_buffer): Pass '\\' as the quoter to
576 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
578 (mi_solib_unloaded): Same.
580 2014-06-05 Joel Brobecker <brobecker@adacore.com>
582 * development.sh: Delete.
583 * Makefile.in (config.status): Adjust dependency on development.sh.
584 * configure.ac: Adjust development.sh source call.
585 * configure: Regenerate.
587 2014-06-04 Doug Evans <xdje42@gmail.com>
589 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
590 is_scheme_bkpt, spec.
591 (bpscm_make_breakpoint_smob): Initialize new members.
592 (gdbscm_create_breakpoint_x): Split into two ...
593 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
594 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
595 (scheme_function breakpoint_functions): Update.
596 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
597 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
598 register-breakpoint!.
600 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
603 * mem-break.c (z_type_supported): Return zero if
604 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
606 2014-06-04 Tom Tromey <tromey@redhat.com>
608 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
609 value_from_contents_and_address_unresolved.
610 (ada_template_to_fixed_record_type_1): Likewise.
611 (ada_which_variant_applies): Likewise.
612 * value.h (value_from_contents_and_address_unresolved): Declare.
613 * value.c (value_from_contents_and_address_unresolved): New
615 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
616 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
617 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
619 2014-06-04 Tom Tromey <tromey@redhat.com>
621 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
623 2014-06-04 Tom Tromey <tromey@redhat.com>
625 * procfs.c (procfs_attach): Make "args" const.
626 * windows-nat.c (windows_attach): Make "args" const.
627 * nto-procfs.c (procfs_attach): Make "args" const.
628 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
629 * go32-nat.c (go32_attach): Make "args" const.
630 * gnu-nat.c (gnu_attach): Make "args" const.
631 * darwin-nat.c (darwin_attach): Make "args" const.
632 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
633 * linux-nat.c (linux_nat_attach): Make "args" const.
634 * remote.c (extended_remote_attach_1, extended_remote_attach):
636 * target.h (struct target_ops) <to_attach>: Make "args" const.
637 (find_default_attach): Likewise.
638 * utils.c (parse_pid_to_attach): Make "args" const.
639 * utils.h (parse_pid_to_attach): Update.
641 2014-06-04 Tom Tromey <tromey@redhat.com>
643 * target-delegates.c: Rebuild.
644 * target.c (default_thread_address_space): New function.
645 (target_thread_address_space): Simplify.
646 * target.h (struct target_ops) <to_thread_address_space>: Add
649 2014-06-04 Doug Evans <xdje42@gmail.com>
651 * guile/scm-type.c (type_smob): Remove duplicate typedef.
653 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
655 * record-btrace.c: Include event-loop.h and inf-loop.h.
656 (record_btrace_resume_exec_dir)
657 (record_btrace_async_inferior_event_handler)
658 (record_btrace_handle_async_inferior_event): New.
659 (record_btrace_open): Create async event handler.
660 (record_btrace_close): Delete async event handler.
661 (record_btrace_resume): Set record_btrace_resume_exec_dir,
662 Mark async event handler.
663 (record_btrace_execution_direction): New.
664 (init_record_btrace_ops): Initialize to_execution_direction.
666 2014-06-03 Doug Evans <xdje42@gmail.com>
668 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
669 (gdbscm_make_parameter): Ditto.
671 2014-06-03 Doug Evans <dje@google.com>
673 * exec.c (exec_close_1): Call clear_section_table instead of
674 resize_section_table.
675 (clear_section_table): New function.
676 (resize_section_table): Make static. Rename arg num_added to
678 * exec.h (clear_section_table): Declare.
679 (resize_section_table): Delete.
680 * progspace.c (release_program_space): Call clear_section_table
681 instead of resize_section_table.
683 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
685 * NEWS (Python Scripting): Add entry about the new xmethods
688 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
690 * python/py-xmethods.c: New file.
691 * python/py-objfile.c (objfile_object): New field 'xmethods'.
692 (objfpy_dealloc): XDECREF on the new xmethods field.
693 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
695 (objfpy_get_xmethods): New function.
696 (objfile_getset): New entry 'xmethods'.
697 * python/py-progspace.c (pspace_object): New field 'xmethods'.
698 (pspy_dealloc): XDECREF on the new xmethods field.
699 (pspy_new, pspace_to_pspace_object): Initialize xmethods
701 (pspy_get_xmethods): New function.
702 (pspace_getset): New entry 'xmethods'.
703 * python/python-internal.h: Add declarations for new functions.
704 * python/python.c (_initialize_python): Invoke
705 gdbpy_initialize_xmethods.
706 * python/lib/gdb/__init__.py (xmethods): New
708 * python/lib/gdb/xmethod.py: New file.
709 * python/lib/gdb/command/xmethods.py: New file.
711 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
713 * eval.c (evaluate_subexp_standard): Call the xmethod if the
714 best match method returned by find_overload_match is an xmethod.
715 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
716 the best matching operator returned by find_overload_match is an
718 * valops.c: #include "extension.h".
719 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
720 Return void. The list of matching source methods is returned in
721 "fn_list" and a vector of matching debug method workers is
722 returned in "xm_worker_vec". Update all callers.
723 (value_find_oload_method_list): Likewise.
724 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
725 non-NULL, then the index of the best matching method in this
726 vector is returned. Update all callers.
727 (find_overload_match): Include xmethods while performing overload
730 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
732 * defs.h (enum lval_type): New enumerator "lval_xcallable".
733 * extension-priv.h (struct extension_language_ops): Add the
735 * extension.c (new_xmethod_worker, clone_xmethod_worker,
736 get_matching_xmethod_workers, get_xmethod_argtypes,
737 invoke_xmethod, free_xmethod_worker,
738 free_xmethod_worker_vec): New functions.
739 * extension.h: #include "common/vec.h".
740 New function declarations.
741 (struct xmethod_worker): New struct.
742 (VEC (xmethod_worker_ptr)): New vector type.
743 (xmethod_worker_ptr): New typedef.
744 (xmethod_worker_vec): Likewise.
745 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
747 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
748 (struct builtin_type): New field "xmethod".
749 * valarith.c (value_ptradd): Assert that the value argument is not
751 * valops.c (value_must_coerce_to_target): Return 0 for
752 lval_xcallable values.
753 * value.c (struct value): New field XM_WORKER in the field
755 (value_address, value_raw_address): Return 0 for lval_xcallable
757 (set_value_address): Assert that the value is not an
759 (value_free): Free the associated xmethod worker when freeing
760 lval_xcallable values.
761 (set_value_component_location): Assert that the WHOLE value is not
763 (value_of_xmethod, call_xmethod): New functions.
764 * value.h: Declare "struct xmethod_worker".
765 Declare new functions value_of_xmethod, call_xmethod.
767 2014-06-03 Joel Brobecker <brobecker@adacore.com>
768 Pedro Alves <palves@redhat.com>
771 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
772 New function, extracted from software_breakpoint_inserted_here_p.
773 (software_breakpoint_inserted_here_p): Replace factored out code
774 by call to find_non_raw_software_breakpoint_inserted_here.
775 (bp_target_info_copy_insertion_state): New function.
776 (bkpt_insert_location): Handle the case of a single-step
777 breakpoint already inserted at the same address.
778 (bkpt_remove_location): Handle the case of a single-step
779 breakpoint still inserted at the same address.
780 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
781 breakpoint already inserted at the same address.
782 (deprecated_remove_raw_breakpoint): Handle the case of a
783 non-raw breakpoint still inserted at the same address.
784 (find_single_step_breakpoint): New function, extracted from
785 single_step_breakpoint_inserted_here_p.
786 (find_single_step_breakpoint): New function,
787 factored out from single_step_breakpoint_inserted_here_p.
788 (single_step_breakpoint_inserted_here_p): Reimplement.
790 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
792 Pushed by Joel Brobecker <brobecker@adacore.com>
793 * source.c (show_substitute_path_command): Fix display of matching
796 2014-06-03 Gary Benson <gbenson@redhat.com>
798 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
800 2014-06-02 Doug Evans <xdje42@gmail.com>
802 Add parameter support for Guile.
803 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
804 (SUBDIR_GUILE_SRCS): Add scm-param.c.
805 (scm-param.o): New rule.
806 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
807 (gdbscm_misc_error): Declare.
808 (gdbscm_canonicalize_command_name): Declare.
809 (gdbscm_scm_to_host_string): Declare.
810 (gdbscm_scm_from_host_string): Declare.
811 (gdbscm_initialize_parameters): Declare.
812 * guile/guile.c (initialize_gdb_module): Call
813 gdbscm_initialize_parameters.
814 * guile/lib/gdb.scm: Export parameter symbols.
815 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
816 cmdscm_canonicalize_name and made public. All callers updated.
817 * guile/scm-exception.c (gdbscm_misc_error): New function.
818 * guile/scm-param.c: New file.
819 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
820 (gdbscm_scm_to_host_string): New function.
821 (gdbscm_scm_from_host_string): New function.
822 * scm-utils.c (gdbscm_gc_dup_argv): New function.
824 2014-06-02 Doug Evans <xdje42@gmail.com>
826 Add command support for Guile.
827 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
828 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
829 (scm-cmd.o): New rule.
830 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
831 (gdbscm_user_error_p): Declare.
832 (gdbscm_parse_command_name): Declare.
833 (gdbscm_valid_command_class_p): Declare.
834 (gdbscm_initialize_commands): Declare.
835 * guile/guile.c (initialize_gdb_module): Call
836 gdbscm_initialize_commands.
837 * guile/lib/gdb.scm: Export command symbols.
838 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
839 (throw-user-error): New function.
840 * guile/scm-cmd.c: New file.
841 * guile/scm-exception.c (user_error_symbol): New static global.
842 (gdbscm_user_error_p): New function.
843 (gdbscm_initialize_exceptions): Set user_error_symbol.
844 * scm-utils.c (gdbscm_gc_xstrdup): New function.
846 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
848 * top.c (command_loop): Handle comments here...
849 (command_line_input): ... not here.
851 2014-06-02 Doug Evans <xdje42@gmail.com>
853 Add progspace support for Guile.
854 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
855 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
856 (scm-progspace.o): New rule.
857 * guile/guile-internal.h (pspace_smob): New typedef.
858 (psscm_pspace_smob_pretty_printers): Declare.
859 (psscm_pspace_smob_from_pspace): Declare.
860 (psscm_scm_from_pspace): Declare.
861 * guile/guile.c (initialize_gdb_module): Call
862 gdbscm_initialize_pspaces.
863 * guile/lib/gdb.scm: Export progspace symbols.
864 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
866 (append-pretty-printer!): Ditto.
867 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
869 * guile/scm-progspace.c: New file.
871 2014-06-03 Alan Modra <amodra@gmail.com>
873 * ppc64-tdep.c (ppc64_standard_linkage8): New.
874 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
876 2014-06-02 Doug Evans <dje@google.com>
878 Add support for skeletonless type units.
879 * dwarf2read.c (struct dwarf2_per_objfile): New member
880 n_allocated_type_units.
881 (struct dwarf2_per_objfile) <tu_stats>: New member
882 nr_all_type_units_reallocs.
883 (create_signatured_type_table_from_index): Initialize
884 n_allocated_type_units
885 (create_all_type_units): Ditto.
886 (add_type_unit): Move up in file. New arg slot.
887 All callers updated. Increase space for all_type_units more
889 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
890 (lookup_dwo_signatured_type): Handle skeletonless TUs.
891 (lookup_dwp_signatured_type): Ditto.
892 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
894 (build_type_psymtabs_1): Leave type_unit_groups as
895 NULL if no TUs present.
896 (print_tu_stats): New function.
897 (process_skeletonless_type_unit): New function.
898 (process_dwo_file_for_skeletonless_type_units): New
900 (process_skeletonless_type_units): New function.
901 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
902 Call print tu_stats if debugging enabled.
904 2014-06-02 Pedro Alves <palves@redhat.com>
906 * breakpoint.c (build_target_command_list): Don't build a command
907 list if we have any duplicate location that isn't a dprintf.
909 2014-06-02 Pedro Alves <palves@redhat.com>
911 * breakpoint.c (dprintf_breakpoint_hit): New function.
912 (initialize_breakpoint_ops): Install it as dprintf's
913 breakpoint_hit method.
915 2014-06-02 Joel Brobecker <brobecker@adacore.com>
917 * source.c (substitute_path_rule_matches): Simplify using
918 filename_ncmp instead of FILENAME_CMP.
920 2014-06-02 Joel Brobecker <brobecker@adacore.com>
922 * source.c (substitute_path_rule_matches): Remove trailing spaces.
924 2014-06-01 Ludovic Courtès <ludo@gnu.org>
926 * configure.ac: When Guile is available, check for the
927 availability of 'scm_new_smob'.
928 * configure, config.h.in: Regenerate.
929 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
932 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
934 * frame.c (struct frame_info): Add stop_string field.
935 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
936 (get_prev_frame_always): Old content moved into
937 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
938 TRY_CATCH, handle MEMORY_ERROR exceptions.
939 (frame_stop_reason_string): New function definition.
940 * frame.h (unwind_stop_reason_to_string): Extend comment to
941 mention frame_stop_reason_string.
942 (frame_stop_reason_string): New function declaration.
943 * stack.c (frame_info): Switch to frame_stop_reason_string.
944 (backtrace_command_1): Switch to frame_stop_reason_string.
945 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
946 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
947 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
949 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
951 * frame.c (frame_stop_reason_string): Rename to ...
952 (unwind_stop_reason_to_string): this.
953 * frame.h (frame_stop_reason_string): Rename to ...
954 (unwind_stop_reason_to_string): this.
955 * stack.c (frame_info): Update call to frame_stop_reason_string.
956 (backtrace_command_1): Likewise.
957 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
958 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
960 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
962 * frame.c (remove_prev_frame): New function.
963 (get_prev_frame_if_no_cycle): Create / discard cleanup using
966 2014-05-29 Pedro Alves <palves@redhat.com>
968 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
969 and make it const. When a single-step decays to a continue,
970 clear 'step', not 'hw_step'. Pass whether the caller wanted
971 to step to user_visible_resume_ptid, not what we ask the
974 2014-05-29 Pedro Alves <palves@redhat.com>
976 * infrun.c (process_event_stop_test, handle_step_into_function)
977 (handle_step_into_function_backward): Adjust.
978 Don't set the even thread's stop_step and call stop_waiting before
979 calling end_stepping_range. Instead do that ...
980 (end_stepping_range): ... here. Take an ecs pointer parameter.
982 2014-05-29 Pedro Alves <palves@redhat.com>
984 * infrun.c (stop_stepping): Rename to ...
985 (stop_waiting): ... this.
986 (proceed): Update comment.
987 (process_event_stop_test, handle_inferior_event)
988 (handle_signal_stop, handle_step_into_function)
989 (handle_step_into_function_backward): Update.
991 2014-05-29 Pedro Alves <palves@redhat.com>
993 * infcall.c (run_inferior_call): Don't check whether the current
994 thread is running after the proceed call.
996 2014-05-29 Pedro Alves <palves@redhat.com>
997 Tom Tromey <tromey@redhat.com>
999 * NEWS: Mention "maint set target-async", "set mi-async", and that
1000 background execution commands are now always available.
1001 * target.h (target_async_permitted): Update comment.
1002 * target.c (target_async_permitted, target_async_permitted_1):
1004 (set_target_async_command): Rename to ...
1005 (maint_set_target_async_command): ... this.
1006 (show_target_async_command): Rename to ...
1007 (maint_show_target_async_command): ... this.
1008 (_initialize_target): Adjust.
1009 * infcmd.c (prepare_execution_command): Make extern.
1010 * inferior.h (prepare_execution_command): Declare.
1011 * infrun.c (set_observer_mode): Leave target async alone.
1012 * mi/mi-interp.c (mi_interpreter_init): Install
1013 mi_on_sync_execution_done as sync_execution_done observer.
1014 (mi_on_sync_execution_done): New function.
1015 (mi_execute_command_input_handler): Don't print the prompt if we
1016 just started a synchronous command with an async target.
1017 (mi_on_resume): Check sync_execution before printing prompt.
1018 * mi/mi-main.h (mi_async_p): Declare.
1019 * mi/mi-main.c: Include gdbcmd.h.
1020 (mi_async_p): New function.
1021 (mi_async, mi_async_1): New globals.
1022 (set_mi_async_command, show_mi_async_command, mi_async): New
1024 (exec_continue): Call prepare_execution_command.
1025 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1026 (mi_execute_async_cli_command): Use mi_async_p.
1027 (_initialize_mi_main): Install "set mi-async". Make
1028 "target-async" a deprecated alias.
1030 2014-05-29 Pedro Alves <palves@redhat.com>
1032 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1033 (_initialize_cli_interp): Adjust.
1034 * event-loop.c: Include "observer.h".
1035 (start_event_loop): Notify 'command_error' observers instead of
1036 calling display_gdb_prompt. Remove FIXME comment.
1037 * event-top.c (display_gdb_prompt): Remove call into the
1039 * inf-loop.c: Include "observer.h".
1040 (inferior_event_handler): Notify 'command_error' observers instead
1041 of calling display_gdb_prompt.
1042 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1043 observers instead of calling display_gdb_prompt.
1044 * interps.c (interp_set): Don't call display_gdb_prompt.
1045 (current_interp_display_prompt_p): Delete.
1046 * interps.h (interp_prompt_p): Delete declaration.
1047 (interp_prompt_p_ftype): Delete.
1048 (struct interp_procs) <prompt_proc_p>: Delete field.
1049 (current_interp_display_prompt_p): Delete declaration.
1050 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1051 (_initialize_mi_interp): Adjust.
1052 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1053 'command_error' observers.
1054 (tui_on_sync_execution_done, tui_on_command_error): New
1056 (tui_display_prompt_p): Delete.
1057 (_initialize_tui_interp): Adjust.
1059 2014-05-29 Pedro Alves <palves@redhat.com>
1062 * cli/cli-interp.c: Include infrun.h and observer.h.
1063 (cli_uiout, cli_interp): New globals.
1064 (cli_on_signal_received, cli_on_end_stepping_range)
1065 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1067 (cli_interpreter_init): Install them as 'end_stepping_range',
1068 'signal_received' 'signal_exited', 'exited' and 'no_history'
1070 (_initialize_cli_interp): Remove cli_interp local.
1071 * infrun.c (handle_inferior_event): Call the several stop reason
1072 observers instead of printing the stop reason directly.
1073 (end_stepping_range): New function.
1074 (print_end_stepping_range_reason, print_signal_exited_reason)
1075 (print_exited_reason, print_signal_received_reason)
1076 (print_no_history_reason): Make static, and add an uiout
1077 parameter. Print to that instead of to CURRENT_UIOUT.
1078 * infrun.h (print_end_stepping_range_reason)
1079 (print_signal_exited_reason, print_exited_reason)
1080 (print_signal_received_reason print_no_history_reason): New
1082 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1084 <cli_uiout>: New field.
1085 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1086 uiout for CLI output. Install 'signal_received',
1087 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1089 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1090 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1091 (mi_on_no_history): New functions.
1092 (ui_out_free_cleanup): Delete function.
1093 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1094 instead use the one already stored in the MI interpreter data.
1095 (mi_ui_out): Adjust.
1096 * tui/tui-interp.c: Include infrun.h and observer.h.
1097 (tui_interp): New global.
1098 (tui_on_signal_received, tui_on_end_stepping_range)
1099 (tui_on_signal_exited, tui_on_exited)
1100 (tui_on_no_history): New functions.
1101 (tui_init): Install them as 'end_stepping_range',
1102 'signal_received' 'signal_exited', 'exited' and 'no_history'
1104 (_initialize_tui_interp): Delete tui_interp local.
1106 2014-05-29 Pedro Alves <palves@redhat.com>
1109 * linux-nat.c (linux_nat_resume_callback): Rename the second
1110 parameter to 'except'. Skip LP if it points to EXCEPT.
1111 (linux_nat_resume): Don't mark the event lwp as not stopped
1112 before resuming sibling lwps. Instead ask
1113 linux_nat_resume_callback to skip the event lwp. Mark it as not
1114 stopped after actually resuming it.
1115 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1117 (wait_lwp): Mark the lwp as stopped here.
1118 (stop_wait_callback): Mark the lwp as not stopped right after
1119 resuming it. Don't mark lwps as stopped here.
1120 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1121 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1123 2014-05-29 Pedro Alves <palves@redhat.com>
1126 * infrun.c (resume): Determine how much to resume depending on
1127 whether the caller wanted a step, not whether we can hardware step
1128 the target. Mark all threads that we intend to run as running,
1129 unless we're calling an inferior function.
1130 (normal_stop): If the thread is running an infcall, don't finish
1132 * target.c (target_resume): Don't mark threads as running here.
1134 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1136 * serial.c (_initialize_serial): Remove support for
1137 the "set remotebaud" and "show remotebaud" commands.
1138 * NEWS: Add entry documenting the removal of that command.
1140 2014-05-28 Yao Qi <yao@codesourcery.com>
1142 * charset.c: Fix typo in comments.
1144 2014-05-27 Gary Benson <gbenson@redhat.com>
1146 * utils.c (internal_vproblem): Prompt for a bug report.
1148 2014-05-26 Andy Wingo <wingo@igalia.com>
1150 * guile/scm-arch.c (arscm_mark_arch_smob):
1151 * guile/scm-block.c (bkscm_mark_block_smob)
1152 (bkscm_mark_block_syms_progress_smob):
1153 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1154 * guile/scm-exception.c (exscm_mark_exception_smob):
1155 * guile/scm-frame.c (frscm_mark_frame_smob):
1156 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1157 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1158 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1159 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1160 (ppscm_mark_pretty_printer_worker_smob):
1161 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1162 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1163 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1164 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1166 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1169 2014-05-26 Andy Wingo <wingo@igalia.com>
1170 Doug Evans <xdje42@gmail.com>
1172 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1173 empty_base_class. All uses updated.
1174 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1175 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1177 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1178 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1179 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1180 (gdbscm_gsmob_has_property_p, add_property_name)
1181 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1182 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1183 (gdb-object-has-property?, gdb-object-properties): Remove.
1184 (gdb-object-kind): Renamed from gsmob-kind.
1186 2014-05-26 Andy Wingo <wingo@igalia.com>
1188 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1189 * configure: Regenerate.
1191 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1193 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1195 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1197 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1198 (replay_memory_access_read_only, replay_memory_access_read_write)
1199 (replay_memory_access_types, replay_memory_access)
1200 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1201 (cmd_set_record_btrace, cmd_show_record_btrace)
1202 (cmd_show_replay_memory_access): New.
1203 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1204 (record_btrace_remove_breakpoint): Replace
1205 record_btrace_allow_memory_access with replay_memory_access.
1206 (_initialize_record_btrace): Add commands.
1207 * NEWS: Announce it.
1209 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1211 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1213 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1215 * MAINTAINERS (Write After Approval): Move self back from
1218 2014-05-22 Pedro Alves <palves@redhat.com>
1220 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1221 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1222 (disable_randomization, enum exec_direction_kind)
1223 (execution_direction, stop_registers, start_remote)
1224 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1225 (wait_for_inferior, normal_stop, get_last_target_status)
1226 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1227 (insert_step_resume_breakpoint_at_sal)
1228 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1229 (set_step_info, print_stop_event, signal_stop_state)
1230 (signal_print_state, signal_pass_state, signal_stop_update)
1231 (signal_print_update, signal_pass_update)
1232 (update_signals_program_target, clear_exit_convenience_vars)
1233 (displaced_step_dump_bytes, update_observer_mode)
1234 (signal_catch_update, gdb_signal_from_command): Move
1236 * infrun.h: ... to this new file.
1237 * amd64-tdep.c: Include infrun.h.
1238 * annotate.c: Include infrun.h.
1239 * arch-utils.c: Include infrun.h.
1240 * arm-linux-tdep.c: Include infrun.h.
1241 * arm-tdep.c: Include infrun.h.
1242 * break-catch-sig.c: Include infrun.h.
1243 * breakpoint.c: Include infrun.h.
1244 * common/agent.c: Include infrun.h instead of inferior.h.
1245 * corelow.c: Include infrun.h.
1246 * event-top.c: Include infrun.h.
1247 * go32-nat.c: Include infrun.h.
1248 * i386-tdep.c: Include infrun.h.
1249 * inf-loop.c: Include infrun.h.
1250 * infcall.c: Include infrun.h.
1251 * infcmd.c: Include infrun.h.
1252 * infrun.c: Include infrun.h.
1253 * linux-fork.c: Include infrun.h.
1254 * linux-nat.c: Include infrun.h.
1255 * linux-thread-db.c: Include infrun.h.
1256 * monitor.c: Include infrun.h.
1257 * nto-tdep.c: Include infrun.h.
1258 * procfs.c: Include infrun.h.
1259 * record-btrace.c: Include infrun.h.
1260 * record-full.c: Include infrun.h.
1261 * remote-m32r-sdi.c: Include infrun.h.
1262 * remote-mips.c: Include infrun.h.
1263 * remote-notif.c: Include infrun.h.
1264 * remote-sim.c: Include infrun.h.
1265 * remote.c: Include infrun.h.
1266 * reverse.c: Include infrun.h.
1267 * rs6000-tdep.c: Include infrun.h.
1268 * s390-linux-tdep.c: Include infrun.h.
1269 * solib-irix.c: Include infrun.h.
1270 * solib-osf.c: Include infrun.h.
1271 * solib-svr4.c: Include infrun.h.
1272 * target.c: Include infrun.h.
1273 * top.c: Include infrun.h.
1274 * windows-nat.c: Include infrun.h.
1275 * mi/mi-interp.c: Include infrun.h.
1276 * mi/mi-main.c: Include infrun.h.
1277 * python/py-threadevent.c: Include infrun.h.
1279 2014-05-22 Pedro Alves <palves@redhat.com>
1281 * infrun.c (handle_inferior_event): Store the exit code for
1282 --return-child-result here, instead of ...
1283 (print_exited_reason): ... here.
1285 2014-05-21 Pedro Alves <palves@redhat.com>
1288 * gdbthread.h (struct thread_control_state): New field
1290 * infrun.c (follow_fork): Copy the new thread control field to the
1292 (clear_proceed_status_thread): Clear the new thread control field.
1293 (proceed): Set the new thread control field.
1294 * interps.h (command_interp): Declare.
1295 * interps.c (command_interpreter): New global.
1296 (command_interp): New function.
1297 (interp_exec): Set `command_interpreter' while here.
1298 * cli-out.c (cli_uiout_dtor): New function.
1299 (cli_ui_out_impl): Install it.
1300 * mi/mi-interp.c: Include cli-out.h.
1301 (mi_cmd_interpreter_exec): Add comment.
1302 (restore_current_uiout_cleanup): New function.
1303 (ui_out_free_cleanup): New function.
1304 (mi_on_normal_stop): If finishing an execution command started by
1305 a CLI command, or any kind of breakpoint-like event triggered,
1306 print the stop event to the output (CLI) stream.
1307 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1309 2014-05-21 Pedro Alves <palves@redhat.com>
1311 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1312 current source line having changed.
1313 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1314 * infrun.c (normal_stop): Adjust call to
1315 set_current_sal_from_frame.
1316 * source.c (clear_lines_listed_range): New function.
1317 (set_current_source_symtab_and_line, identify_source_line): Clear
1318 the lines listed range.
1319 (line_info): Handle the first "info line" after the current source
1320 line having changed.
1321 * stack.c (print_stack_frame): Remove center handling.
1322 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1325 2014-05-21 Pedro Alves <palves@redhat.com>
1327 * inf-child.c (inf_child_mourn_inferior): New function.
1328 * inf-child.h (inf_child_mourn_inferior): New declaration.
1329 * darwin-nat.c (darwin_mourn_inferior): Use
1330 inf_child_mourn_inferior.
1331 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1332 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1333 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1334 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1335 * windows-nat.c (windows_mourn_inferior): Likewise.
1337 2014-05-21 Doug Evans <xdje42@gmail.com>
1339 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1341 2014-05-21 Doug Evans <xdje42@gmail.com>
1343 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1344 (gdbscm_out_of_range_error): Ditto.
1345 (gdbscm_memory_error): Ditto.
1346 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1347 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1348 (gdbscm_out_of_range_error): Update.
1349 (gdbscm_memory_error): Update.
1350 (gdbscm_scm_to_target_string_unsafe): Delete.
1352 2014-05-21 Pedro Alves <palves@redhat.com>
1354 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1356 (inf_child_open_target): New function.
1357 (inf_child_open): Use inf_child_open_target to push the target
1358 instead of erroring out.
1359 (inf_child_disconnect, inf_child_close)
1360 (inf_child_maybe_unpush_target): New functions.
1361 (inf_child_target): Install inf_child_disconnect and
1362 inf_child_close. Store a pointer to the returned object.
1363 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1365 * target.c (auto_connect_native_target): New global.
1366 (show_default_run_target): New function.
1367 (find_default_run_target): Return NULL if automatically connecting
1368 to the native target is disabled.
1369 (_initialize_target): Install set/show auto-connect-native-target.
1370 * NEWS: Mention "set auto-connect-native-target", and "target
1372 * linux-nat.c (super_close): New global.
1373 (linux_nat_close): Call super_close.
1374 (linux_nat_add_target): Store a pointer to the base class's
1376 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1377 inf_child_maybe_unpush.
1378 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1380 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1381 the inferior. Use inf_child_maybe_unpush_target.
1382 (inf_ttrace_attach): Don't push the target if it is already
1384 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1385 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1386 after mourning the inferior. Use inf_child_maybe_unpush_target.
1387 (darwin_attach_pid): Don't push the target if it is already
1389 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1390 mourning the inferior. Use inf_child_maybe_unpush_target.
1391 (gnu_detach): Use inf_child_maybe_unpush_target.
1392 * go32-nat.c (go32_create_inferior): Don't push the target if it
1394 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1395 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1396 (procfs_open): Rename to ...
1397 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1398 comments. Can target_preopen before changing node. Call
1399 inf_child_open_target to push the target explicitly.
1400 (procfs_attach): Don't push the target if it is already pushed.
1401 (procfs_detach): Use inf_child_maybe_unpush_target.
1402 (procfs_create_inferior): Don't push the target if it is already
1404 (nto_native_ops): New global.
1405 (procfs_open): Reimplement.
1406 (procfs_native_open): New function.
1407 (init_procfs_targets): Install procfs_native_open as to_open of
1408 "target native". Store a pointer to the "native" target in
1410 * procfs.c (procfs_attach): Don't push the target if it is already
1412 (procfs_detach): Use inf_child_maybe_unpush_target.
1413 (procfs_mourn_inferior): Only unpush the target after mourning the
1414 inferior. Use inf_child_maybe_unpush_target.
1415 (procfs_init_inferior): Don't push the target if it is already
1417 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1418 if it is already pushed.
1420 2014-05-21 Pedro Alves <palves@redhat.com>
1422 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1423 and "procfs" targets are now called "native" instead.
1425 2014-05-21 Pedro Alves <palves@redhat.com>
1427 * go32-nat.c (go32_open): Delete.
1428 (go32_target): Don't override the to_open method.
1430 2014-05-21 Pedro Alves <palves@redhat.com>
1432 * nto-procfs.c (procfs_can_run): New function.
1433 (nto_procfs_ops): New global.
1434 (init_procfs_targets): New, based on procfs_target. Install
1435 "target native" in addition to "target procfs".
1436 (_initialize_procfs): Call init_procfs_targets instead of adding
1439 2014-05-21 Pedro Alves <palves@redhat.com>
1441 * windows-nat.c (windows_target): Don't override to_shortname,
1442 to_longname or to_doc.
1444 2014-05-21 Pedro Alves <palves@redhat.com>
1446 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1449 2014-05-21 Pedro Alves <palves@redhat.com>
1451 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1452 to_shortname, to_longname or to_doc.
1454 2014-05-21 Pedro Alves <palves@redhat.com>
1456 * go32-nat.c (go32_target): Don't override to_shortname,
1457 to_longname or to_doc.
1459 2014-05-21 Pedro Alves <palves@redhat.com>
1461 * inf-child.c (inf_child_open): Remove mention of "child".
1462 (inf_child_target): Rename target to "native" instead of "child".
1464 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1466 * Makefile.in (SFILES): Delete "regset.c".
1467 (COMMON_OBS): Delete "regset.o".
1469 * regset.h (regset_alloc): Delete prototype.
1471 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473 * sparc-linux-tdep.c (sparc32_linux_gregset)
1474 (sparc32_linux_fpregset): New static regset structures.
1475 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1476 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1478 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1479 (sparc64_linux_fpregset): New static regset structures.
1480 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1481 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1482 New static regset structures.
1483 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1484 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1485 New static regset structures.
1486 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1487 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1488 New static regset structures.
1489 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1490 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1491 New static regset structures.
1492 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1496 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1497 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1498 register maps ("regmaps") from "*regset" to "*regmap". Do this
1499 for all regmap types and variables.
1500 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1501 (sparc32_linux_supply_core_gregset)
1502 (sparc32_linux_collect_core_gregset)
1503 (sparc32_linux_supply_core_fpregset)
1504 (sparc32_linux_collect_core_fpregset): Likewise.
1505 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1506 (sparc_gregmap, sparc_fpregmap): ... these.
1507 (sparc_supply_gregset, sparc_collect_gregset)
1508 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1509 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1510 (_initialize_sparc_nat): Rename regmaps.
1511 * sparc-nat.h (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-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1517 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1518 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1520 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1522 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1523 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1524 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1526 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1527 (sparc32_bsd_fpregset): Rename to...
1528 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1529 (sparc32_bsd_fpregmap): ... these.
1530 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1531 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1532 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1533 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1534 (struct sparc_gregmap, struct sparc_fpregmap)
1535 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1536 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1537 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1538 (sparc32_supply_regset, sparc32_collect_gregset)
1539 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1541 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1542 (sparc64_linux_ptrace_gregmap): ... this.
1543 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1544 (_initialize_sparc64_linux_nat): Rename regmaps.
1545 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1546 (sparc64_linux_core_gregmap): ... this.
1547 (sparc64_linux_supply_core_gregset)
1548 (sparc64_linux_collect_core_gregset)
1549 (sparc64_linux_supply_core_fpregset)
1550 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1551 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1552 (sparc64_sol2_fpregset): Rename to...
1553 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1554 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1555 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1557 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1558 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1559 (sparc64_bsd_fpregset): Rename to...
1560 (struct sparc_gregmap, sparc64_sol2_gregmap)
1561 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1562 (sparc64_bsd_fpregmap): ... these.
1563 (sparc64_supply_gregset, sparc64_collect_gregset)
1564 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1566 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1567 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1568 (sparc64fbsd_gregmap): ... this.
1569 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1570 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1572 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1573 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1574 (sparc64nbsd_collect_fpregset): Likewise.
1575 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1576 (sparc64nbsd_gregmap): ... this.
1577 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1579 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1580 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1581 (sparc64obsd_gregmap): ... this.
1582 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1584 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1585 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1586 (sparc32nbsd_gregmap): ... this.
1587 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1590 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1592 * score-tdep.c (score7_linux_gregset): New static regset
1594 (score7_linux_regset_from_core_section): Remove dynamic regset
1596 (score_gdbarch_init): Drop allocation of tdep structure.
1597 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1599 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1601 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1603 (am33_regset_from_core_section): Remove dynamic regset
1606 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1608 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1609 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1611 (mips_linux_regset_from_core_section): Remove dynamic regset
1613 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1614 'gregset64', 'fpregset', and 'fpregset64'.
1615 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1616 deleted tdep fields.
1618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1620 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1622 (amd64_regset_from_core_section): Remove dynamic regset
1624 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1626 (amd64obsd_regset_from_core_section): Remove dynamic regset
1628 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1630 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1631 x86-common regset supply function.
1632 * i386-tdep.c (i386_collect_gregset): Make static.
1633 (i386_gregset): New global regset structure.
1634 (i386_fpregset, i386_xstateregset): New static regset structures.
1635 (i386_regset_from_core_section): Remove dynamic regset
1637 (i386_gdbarch_init): Remove initialization of tdep fields
1638 'gregset', 'fpregset', and 'xstateregset'.
1639 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1640 'fpregset', and 'xstateregset'.
1641 (i386_collect_gregset): Remove prototype.
1642 (i386_gregset): New declaration.
1643 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1645 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1648 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1650 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1651 (arm_linux_vfpregset): New static regset structures.
1652 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1654 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1655 and 'vfpregset' fields.
1657 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1660 (aarch64_linux_fpregset): New static regset structures.
1661 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1662 of regset structures.
1663 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1668 * regset.h (struct regset): Remove gdbarch field.
1669 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1670 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1671 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1673 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1674 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1675 (ppc32_linux_vsxregset): Likewise.
1676 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1677 via the regcache instead of the regset.
1678 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1679 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1680 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1681 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1684 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1686 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1687 Constify structures.
1688 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1689 (alphanbsd_aout_gregset): Likewise.
1690 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1691 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1693 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1694 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1696 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1697 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1698 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1699 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1700 * m88k-tdep.c (m88k_gregset): Likewise.
1701 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1702 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1703 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1704 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1705 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1706 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1707 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1708 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1709 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1711 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1712 * sh-tdep.h (sh_corefile_gregset): Likewise.
1713 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1714 * vax-tdep.c (vax_gregset): Likewise.
1716 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 Fix TLS access for -static -pthread.
1719 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1720 (try_thread_db_load_1): Initialize it.
1721 (thread_db_get_thread_local_address): Call it if LM is zero.
1722 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1723 * target.h (struct target_ops) (to_get_thread_local_address): Add
1724 load_module_addr comment.
1726 2014-05-21 Pedro Alves <palves@redhat.com>
1728 * dcache.c (dcache_read_memory_partial): If reading the cache line
1729 fails, fallback to reading just the memory the caller wanted.
1731 2014-05-20 Doug Evans <dje@google.com>
1733 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1734 instead of get_current_arch.
1736 2014-05-20 Pedro Alves <palves@redhat.com>
1738 * NEWS: Mention that compare-sections now works with all targets.
1740 * remote.c (PACKET_qCRC): New enum value.
1741 (remote_verify_memory): Don't send qCRC if the target has no
1742 execution. Use packet_support/packet_ok. If the target doesn't
1743 support the qCRC packet, fallback to a deep memory copy.
1744 (compare_sections_command): Say "target image" instead of "remote
1746 (_initialize_remote): Add PACKET_qCRC to the list of config
1747 packets that have no associated command. Extend comment.
1748 * target.c (simple_verify_memory, default_verify_memory): New
1750 * target.h (struct target_ops) <to_verify_memory>: Default to
1751 default_verify_memory.
1752 (simple_verify_memory): New declaration.
1753 * target-delegates.c: Regenerate.
1755 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1757 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1759 2014-05-20 Hui Zhu <hui@codesourcery.com>
1760 Yao Qi <yao@codesourcery.com>
1763 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1764 and change address of sp and pc.
1766 2014-05-19 Tom Tromey <tromey@redhat.com>
1768 * gdbtypes.c (rank_function): Use XNEWVEC.
1769 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1771 2014-05-19 Doug Evans <dje@google.com>
1773 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1774 build_type_unit_groups and moved closer to only caller. Remove
1775 arguments. All references updated. Remove outdated .gdb_index
1777 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1778 build_type_psymtabs_1.
1780 2014-05-19 Doug Evans <dje@google.com>
1782 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1783 n_type_unit_groups, all_type_unit_groups. All uses removed.
1784 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1785 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1786 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1787 (add_type_unit_group_to_table): Delete.
1789 2014-05-19 Doug Evans <dje@google.com>
1791 * eval.c (evaluate_subexp_standard): Add some comments.
1793 2014-05-17 Doug Evans <xdje42@gmail.com>
1795 * progspace.c (remove_program_space): Delete, unused.
1796 * progspace.h (remove_program_space): Ditto.
1798 2014-05-17 Doug Evans <xdje42@gmail.com>
1800 * inferior.c (prune_inferiors): Fix comment.
1801 (remove_inferior_command): Call prune_program_spaces.
1803 2014-05-16 Doug Evans <dje@google.com>
1805 New command line option -D.
1807 * main.c (set_gdb_data_directory): New function.
1808 (captured_main): Recognize -D. Flag error for --data-directory "".
1809 Call set_gdb_data_directory.
1810 (print_gdb_help): Print --data-directory, -D.
1811 * main.h (set_gdb_data_directory): Declare.
1812 * top.c (staged_gdb_datadir): New static global.
1813 (set_gdb_datadir): Call set_gdb_data_directory
1814 (show_gdb_datadir): New function.
1815 (init_main): Update init of data-directory parameter.
1817 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1819 Import the "dirfd" gnulib module.
1820 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1821 * gnulib/aclocal.m4: Update.
1822 * gnulib/config.in: Update.
1823 * gnulib/configure: Update.
1824 * gnulib/import/Makefile.am: Update.
1825 * gnulib/import/Makefile.in: Update.
1826 * gnulib/import/dirfd.c: New.
1827 * gnulib/import/m4/dirfd.m4: New.
1828 * gnulib/import/m4/gnulib-cache.m4: Update.
1829 * gnulib/import/m4/gnulib-comp.m4: Update.
1831 2014-05-16 Pierre Muller <muller@sourceware.org>
1832 Yao Qi <yao@codesourcery.com>
1834 * valprint.c (print_wchar): Move the code on checking whether
1835 W is a printable wide char to the default branch of switch
1836 statement below. Call wchar_printable instead of gdb_iswprint.
1838 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1840 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1841 ldr.w and ldrd instructions.
1843 2014-05-15 Doug Evans <dje@google.com>
1845 * dwarf2read.c (read_structure_type): Delete outdated comments.
1847 2014-05-14 Tom Tromey <tromey@redhat.com>
1849 * macrocmd.c (print_macro_definition): Reindent.
1851 2014-05-13 Doug Evans <xdje42@gmail.com>
1853 * python/py-cmd.c (cmdpy_completer): Add comment.
1854 (completers): Make const.
1856 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1858 * infrun.c (resume): Remove should_resume (unused). Move up
1859 declaration of resume_ptid.
1861 2014-05-13 Tom Tromey <tromey@redhat.com>
1863 * language.h (unop_type_check): Remove.
1864 (binop_type_check): Don't declare.
1866 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1868 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1869 call to regcache_raw_collect.
1871 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1873 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1874 mi_console->quote as the quoting character.
1876 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1878 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1880 2014-04-29 Tom Tromey <tromey@redhat.com>
1882 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1883 "show debug varobj".
1885 2014-05-07 Kyle McMartin <kyle@redhat.com>
1887 Pushed by Joel Brobecker <brobecker@adacore.com>.
1888 * aarch64-tdep.c (aarch64_software_single_step): New function.
1889 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1890 with aarch64_software_single_step.
1892 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1896 2014-05-05 Keith Seitz <keiths@redhat.com>
1898 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1899 variable or history value is successfully parsed.
1901 2014-05-05 Yao Qi <yao@codesourcery.com>
1902 Pedro Alves <palves@redhat.com>
1904 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1905 address of blocks that intersects the requested range. Trim
1906 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1908 * ctf.c (ctf_xfer_partial): Likewise.
1910 2014-05-05 Yao Qi <yao@codesourcery.com>
1912 * printcmd.c (display_command): Remove the check to
1913 target_has_execution.
1915 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1917 * ppcobsd-nat.c: Include "obsd-nat.h".
1918 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1920 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1922 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1924 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1925 and 16-bit signed and unsigned arguments. Update comment.
1926 (stap_parse_probe_arguments): Extend code to handle such
1927 arguments. Use warning instead of complaint to notify about
1928 unrecognized bitness.
1930 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1932 PR breakpoints/16889
1933 * stap-probe.c (stap_parse_probe_arguments): Simplify
1934 check for non-prefixed probes (i.e., probes whose
1935 arguments do not start with "N@"). Always set the
1936 argument type to a sane value.
1938 2014-05-01 David Taylor <dtaylor@emc.com>
1940 * remote.c (compare_sections_command): Add -r option to compare
1941 all loadable read-only sections.
1943 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1945 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1946 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1948 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1949 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1950 Remove unused CORE_ADDR argument. Update all callers.
1952 2014-04-29 Pedro Alves <palves@redhat.com>
1954 * remote.c (struct packet_config) <detect>: Extend comment.
1955 (add_packet_config_cmd): Don't set the config's detect or support
1957 (init_all_packet_configs): Also initialize the config's 'detect'
1959 (reset_all_packet_configs_support): New function.
1960 (remote_open_1): Call reset_all_packet_configs_support instead of
1961 init_all_packet_configs.
1962 (_initialize_remote): Initialize all packet configs. Assert that
1963 all packets have an associated command, except a few known
1966 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1968 * dwarf2read.c (read_subrange_type): Handle dynamic
1969 DW_AT_lower_bound attributes.
1971 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1973 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1974 dynamic bounds before computing its upper bound.
1975 (ada_discrete_type_low_bound): Same as above with the lower bound.
1977 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1979 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1980 range types. Adjust the array handling implementation to
1981 take advantage of this change.
1982 (resolve_dynamic_range): New function, mostly extracted from
1983 resolve_dynamic_bounds.
1984 (resolve_dynamic_array): New function, mostly extracted from
1985 resolve_dynamic_bounds.
1986 (resolve_dynamic_bounds): Delete.
1987 (resolve_dynamic_type): Reimplement. Add handling of
1988 TYPE_CODE_RANGE types.
1990 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1992 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1993 handling of parallel ___XA types.
1995 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1997 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1998 unnecessary second call to static_unwrap_type.
2000 2014-04-27 Hui Zhu <hui@codesourcery.com>
2002 * stack.c (print_frame_info): Call do_gdb_disassembly with
2003 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2005 2014-04-26 Doug Evans <xdje42@gmail.com>
2007 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2009 2014-04-25 Pedro Alves <palves@redhat.com>
2012 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2013 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2014 and newline from built string.
2015 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2016 (linux_ptrace_attach_fail_reason): ... this.
2017 * linux-nat.c (linux_nat_attach): Adjust to use
2018 linux_ptrace_attach_fail_reason.
2020 2014-04-25 Pedro Alves <palves@redhat.com>
2022 * remote.c (struct remote_state): Remove multi_process_aware,
2023 non_stop_aware, cond_tracepoints, cond_breakpoints,
2024 breakpoint_commands, fast_tracepoints, static_tracepoints,
2025 install_in_trace, disconnected_tracing,
2026 enable_disable_tracepoints, string_tracing, and
2027 augmented_libraries_svr4_read fields.
2028 (remote_multi_process_p): Move further below in the file.
2029 (struct packet_config): Add comments.
2030 (update_packet_config): Delete function.
2031 (show_packet_config_cmd): Use packet_config_support.
2032 (add_packet_config_cmd): Use NULL as set callback.
2033 (packet_ok): "set remote foo-packet"-style commands no longer
2034 change config->supported -- adjust.
2035 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2036 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2037 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2038 (PACKET_QNonStop, PACKET_multiprocess_feature)
2039 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2040 (PACKET_DisconnectedTracing_feature)
2041 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2042 (set_remote_protocol_packet_cmd): Delete function.
2043 (packet_config_support, packet_support): New functions.
2044 (set_remote_protocol_Z_packet_cmd): Don't call
2045 update_packet_config.
2046 (remote_query_attached, remote_pass_signals)
2047 (remote_program_signals, remote_threads_info)
2048 (remote_threads_extra_info, remote_start_remote): Use
2050 (remote_start_remote): Use packet_config_support and
2052 (init_all_packet_configs): Set all packets to unknown support,
2053 instead of calling update_packet_config.
2054 (remote_check_symbols): Use packet_support.
2055 (remote_supported_packet): Unconditionally set the packet config's
2057 (remote_multi_process_feature, remote_non_stop_feature)
2058 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2059 (remote_breakpoint_commands_feature)
2060 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2061 (remote_install_in_trace_feature)
2062 (remote_disconnected_tracing_feature)
2063 (remote_enable_disable_tracepoint_feature)
2064 (remote_string_tracing_feature)
2065 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2066 (remote_protocol_features): Adjust to use remote_supported_packet
2067 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2068 "ConditionalTracepoints", "ConditionalBreakpoints",
2069 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2070 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2071 "EnableDisableTracepoints", and "tracenz".
2072 (remote_query_supported): Use packet_support.
2073 (remote_open_1): Adjust.
2074 (extended_remote_attach_1): Use packet_support. Switch on the
2075 result of packet_ok instead of checking whether the packet ended
2077 (remote_vcont_resume): Use packet_support.
2078 (remote_resume, remote_stop_ns, fetch_register_using_p)
2079 (remote_prepare_to_store, store_register_using_P)
2080 (check_binary_download, remote_write_bytes): Use packet_support.
2081 (remote_vkill): Use packet_support. Switch on the result of
2082 packet_ok instead of checking whether the packet ended up
2084 (extended_remote_supports_disable_randomization): Use
2086 (extended_remote_run): Switch on the result of packet_ok instead
2087 of checking whether the packet ended up disabled.
2088 (remote_insert_breakpoint, remote_remove_breakpoint)
2089 (remote_insert_watchpoint, remote_remove_watchpoint)
2090 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2092 (remote_search_memory): Use packet_config_support.
2093 (remote_get_thread_local_address, remote_get_tib_address)
2094 (remote_hostio_send_command, remote_can_execute_reverse): Use
2096 (remote_supports_cond_tracepoints)
2097 (remote_supports_cond_breakpoints)
2098 (remote_supports_fast_tracepoints)
2099 (remote_supports_static_tracepoints)
2100 (remote_supports_install_in_trace)
2101 (remote_supports_enable_disable_tracepoint)
2102 (remote_supports_string_tracing)
2103 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2104 the packet config says the feature is enabled or disabled.
2105 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2106 (remote_get_trace_status): Use packet_support.
2107 (remote_set_disconnected_tracing): Adjust to check whether the
2108 feature is enabled with packet_support.
2109 (remote_set_trace_buffer_size, remote_use_agent)
2110 (remote_can_use_agent, remote_supports_btrace): Use
2112 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2113 Use packet_config_support.
2114 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2115 the packet config says the feature is enabled or disabled.
2116 (set_range_stepping): Use packet_support.
2118 2014-04-25 Tom Tromey <tromey@redhat.com>
2120 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2123 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2125 * NEWS: Mention support for C99 variable length arrays.
2127 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2129 * ada-lang.c (standard_exc): Expand introductory comment.
2131 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2132 Walfred Tedeschi <walfred.tedeschi@intel.com>
2134 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2136 (amd64_linux_read_description): Add code to handle AVX512 xstate
2137 mask and return respective tdesc.
2138 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2139 and features/i386/x32-avx512-linux.c.
2140 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2141 (amd64_linux_core_read_description): Add code to handle AVX512
2142 xstate mask and return respective tdesc.
2143 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2144 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2146 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2147 (tdesc_amd64_avx512_linux): New prototype.
2148 (tdesc_x32_avx512_linux): Likewise.
2149 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2150 features/i386/x32-avx512.c.
2151 (amd64_ymm_avx512_names): New register names for pseudo
2153 (amd64_ymmh_avx512_names): New register names for raw registers
2155 (amd64_k_names): New register names for K registers.
2156 (amd64_zmmh_names): New register names for ZMM raw registers.
2157 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2158 (amd64_xmm_avx512_names): New register names for XMM16-31
2160 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2162 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2163 if feature is present.
2164 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2165 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2166 (AMD64_NUM_REGS): Adjust to new number of registers.
2167 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2168 registers supplied via XSTATE by AVX512 registers.
2169 (i386_linux_read_description): Add case for AVX512.
2170 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2171 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2172 (i386_linux_core_read_description): Add case for AVX512.
2173 (i386_linux_init_abi): Install supported register note section
2175 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2177 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2178 registers to be number of zmm7h + 1.
2179 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2180 * i386-tdep.c: Include features/i386/i386-avx512.c.
2181 (i386_zmm_names): Add ZMM pseudo register names array.
2182 (i386_zmmh_names): Add ZMM raw register names array.
2183 (i386_k_names): Add K raw register names array.
2184 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2185 registers. AVX512 has 16 more ZMM registers than there are YMM
2187 (i386_zmmh_regnum_p): Add function to look up register number of
2189 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2190 (i386_k_regnum_p): Likewise for K raw registers.
2191 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2192 registers added by AVX512.
2193 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2194 registers added by AVX512.
2195 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2197 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2198 (i386_pseudo_register_name): Add ZMM pseudo registers.
2199 (i386_zmm_type): Construct and return vector registers type for ZMM
2201 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2202 ZMM0-31 pseudo registers and K registers.
2203 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2204 and YMM16-31 registers from register cache.
2205 (i386_pseudo_register_write): Add code to write K, ZMM and
2207 (i386_register_reggroup_p): Add code to include/exclude AVX512
2208 registers in/from respective register groups.
2209 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2210 registers if feature is present in xcr0.
2211 (i386_gdbarch_init): Add code to initialize AVX512 feature
2212 variables in tdep structure, wire in pseudo registers and call
2213 initialize_tdesc_i386_avx512.
2214 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2216 (i386_regnum): Add AVX512 registers.
2217 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2218 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2219 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2220 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2222 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2223 (i386_ymm_avx512_regnum_p): Likewise.
2224 (i386_k_regnum_p): Likewise.
2225 (i386_zmm_regnum_p): Likewise.
2226 (i386_zmmh_regnum_p): Likewise.
2227 * i387-tdep.c : Update year in copyright notice.
2228 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2230 (XSAVE_YMM_AVX512_ADDR): New macro.
2231 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2233 (XSAVE_XMM_AVX512_ADDR): New macro.
2234 (xsave_avx512_k_offset): New table for K register offsets in
2236 (XSAVE_AVX512_K_ADDR): New macro.
2237 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2239 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2240 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2242 (i387_collect_xsave): Add code to collect AVX512 registers from
2244 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2245 of XMM16-31 registers.
2246 (I387_NUM_K_REGS): New define for number of K registers.
2247 (I387_K0_REGNUM): New define for K0 register number.
2248 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2249 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2250 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2252 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2253 (I387_XMM16_REGNUM): New define for XMM16 register number.
2254 (I387_YMM0_REGNUM): New define for YMM0 register number.
2255 (I387_KEND_REGNUM): New define for last K register number.
2256 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2257 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2259 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2261 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2263 * features/Makefile: Add AVX512 related files.
2264 * features/i386/32bit-avx512.xml: New file.
2265 * features/i386/64bit-avx512.xml: Likewise.
2266 * features/i386/amd64-avx512-linux.c: Likewise.
2267 * features/i386/amd64-avx512-linux.xml: Likewise.
2268 * features/i386/amd64-avx512.c: Likewise.
2269 * features/i386/amd64-avx512.xml: Likewise.
2270 * features/i386/i386-avx512-linux.c: Likewise.
2271 * features/i386/i386-avx512-linux.xml: Likewise.
2272 * features/i386/i386-avx512.c: Likewise.
2273 * features/i386/i386-avx512.xml: Likewise.
2274 * features/i386/x32-avx512-linux.c: Likewise.
2275 * features/i386/x32-avx512-linux.xml: Likewise.
2276 * features/i386/x32-avx512.c: Likewise.
2277 * features/i386/x32-avx512.xml: Likewise.
2278 * regformats/i386/amd64-avx512-linux.dat: New file.
2279 * regformats/i386/amd64-avx512.dat: Likewise.
2280 * regformats/i386/i386-avx512-linux.dat: Likewise.
2281 * regformats/i386/i386-avx512.dat: Likewise.
2282 * regformats/i386/x32-avx512-linux.dat: Likewise.
2283 * regformats/i386/x32-avx512.dat: Likewise.
2284 * NEWS: Add note about new support for AVX512.
2287 2014-04-23 Pedro Alves <palves@redhat.com>
2289 * breakpoint.c (insert_bp_location): Tolerate errors if the
2290 breakpoint is set in a user-loaded objfile.
2291 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2292 location is marked shlib_disabled. If the breakpoint is set in a
2293 user-loaded objfile is a GDB-side memory breakpoint, validate it
2294 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2295 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2297 * mem-break.c (memory_validate_breakpoint): New function.
2298 * objfiles.c (userloaded_objfile_contains_address_p): New
2300 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2301 * target.h (memory_validate_breakpoint): New declaration.
2303 2014-04-23 Pedro Alves <palves@redhat.com>
2305 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2306 the breakpoint is set in a shared library, only suppress
2307 errors for software breakpoints, not hardware breakpoints.
2309 2014-04-22 Pedro Alves <palves@redhat.com>
2311 * infrun.c (schedlock_applies): New function, factored out from
2312 find_thread_needs_step_over.
2313 (find_thread_needs_step_over): Use it.
2314 (switch_back_to_stepped_thread): Always clear trap_expected if the
2315 step over is finished. Return early if scheduler locking applies.
2316 Look for the stepping thread and a potential step-over thread with
2318 (currently_stepping_or_nexting_callback): Delete.
2320 2014-04-22 Nick Clifton <nickc@redhat.com>
2322 * NEWS: Mention that ARM sim now supports tracing.
2324 2014-04-22 Yao Qi <yao@codesourcery.com>
2326 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2328 * tracefile.c (tracefile_fetch_registers): ... it. New
2330 * tracefile.h (tracefile_fetch_registers): Declare.
2331 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2332 tracefile_fetch_registers.
2334 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2337 * windows-nat.c (thread_rec): Don't display a warning when
2338 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2339 fails for any reason, set th->suspended to -1, so that we don't
2340 try to resume such a thread. Also, don't return NULL in these
2341 cases, to avoid completely ruin the session due to "PC register is
2342 not available" error.
2343 (do_windows_fetch_inferior_registers): Check errors in
2344 GetThreadContext call.
2345 (windows_continue): Accept an additional argument KILLED; if not
2346 zero, ignore errors in the SetThreadContext call, since the
2347 inferior was killed and is shutting down.
2348 (windows_resume, get_windows_debug_event)
2349 (windows_create_inferior, windows_mourn_inferior)
2350 (windows_kill_inferior): All callers of windows_continue changed
2351 to adjust to its new calling sequence.
2353 2014-04-19 Yao Qi <yao@codesourcery.com>
2355 * ctf.c (ctf_open): Call post_create_inferior.
2357 2014-04-19 Yao Qi <yao@codesourcery.com>
2359 * ctf.c (handle_id): New static variable.
2360 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2361 value. Get the declaration of event "register" and get length
2362 of field "contents".
2364 2014-04-19 Yao Qi <yao@codesourcery.com>
2366 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2368 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2370 * valops.c (oload_method_static): Remove unnecessary argument
2371 METHOD. Update all callers.
2373 2014-04-18 Pedro alves <palves@redhat.com>
2374 Tom Tromey <tromey@redhat.com>
2377 * frame.c (get_prev_frame_1): Rename to ...
2378 (get_prev_frame_always): ... this, and make extern. Adjust.
2379 (skip_artificial_frames): Use get_prev_frame_always.
2380 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2381 (get_frame_unwind_stop_reason): Adjust to rename.
2382 * frame.h (get_prev_frame_always): Declare.
2383 * inline-frame.c: Include frame.h.
2384 (inline_frame_this_id): Use get_prev_frame_always.
2386 2014-04-18 Tristan Gingold <gingold@adacore.com>
2388 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2389 code by using bfd_mach_o_get_base_address.
2391 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2393 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2394 (spu_ax_pseudo_register_collect): New function.
2395 (spu_ax_pseudo_register_push_stack): Likewise.
2396 (spu_dwarf_reg_to_regnum): Likewise.
2397 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2399 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2401 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2402 Replace FRAME argument with FRAME_ID.
2403 * gdbarch.c, gdbarch.h: Regenerate.
2404 * findvar.c (default_value_from_register): Add GDBARCH argument;
2405 replace FRAME by FRAME_ID. No longer call get_frame_id.
2406 (value_from_register): Update call to gdbarch_value_from_register.
2407 * value.h (default_value_from_register): Update prototype.
2408 * s390-linux-tdep.c (s390_value_from_register): Update interface
2409 and call to default_value_from_register.
2410 * spu-tdep.c (spu_value_from_register): Likewise.
2412 * findvar.c (address_from_register): Remove TYPE argument.
2413 Do not call value_from_register; use gdbarch_value_from_register
2414 with null_frame_id instead.
2415 * value.h (address_from_register): Update prototype.
2416 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2417 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2418 address_from_register interface change.
2420 2014-04-17 Yao Qi <yao@codesourcery.com>
2422 * gdbtypes.h: Update comments to link to types and macros'
2425 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2427 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2429 2014-04-16 Keith Seitz <keiths@redhat.com>
2432 * dwarf2read.c (skip_one_die): Check that all relative-offset
2433 sibling DIEs fall within range of the current reader's buffer.
2434 (read_partial_die): Likewise.
2436 2014-04-16 Keith Seitz <keiths@redhat.com>
2439 * cp-namespace.c (lookup_symbol_file): If the type name of
2440 `this' is NULL, return immediately.
2442 2014-04-14 Keith Seitz <keiths@redhat.com>
2445 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2446 from symbol_matches_domain in symtab.c. All local callers
2447 of symbol_matches_domain updated.
2448 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2449 search STRUCT_DOMAIN.
2450 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2451 independently. standard_lookup will do that automatically.
2452 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2453 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2454 (cp_lookup_symbol_in_namespace): Likewise.
2455 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2456 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2457 may return a STRUCT_DOMAIN match.
2458 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2459 * cp-support.c: Include language.h.
2460 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2462 * psymtab.c (match_partial_symbol): Compare the requested
2463 domain with the symbol's domain directly.
2464 (lookup_partial_symbol): Likewise.
2465 * symtab.c (lookup_symbol_in_language): Explain when/why
2466 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2467 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2468 appropriate languages.
2469 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2470 and moved to ada-lang.c
2471 (lookup_block_symbol): Explain that this function only returns
2472 symbol matching the requested DOMAIN.
2473 Compare the requested domain with the symbol's domain directly.
2474 (iterate_over_symbols): Compare the requested domain with the
2475 symbol's domain directly.
2476 * symtab.h (symbol_matches_domain): Remove.
2478 2014-04-14 Tom Tromey <tromey@redhat.com>
2481 * c-exp.y (type_aggregate_p): New function.
2482 (qualified_name, classify_inner_name): Use it.
2483 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2484 and TYPE_TARGET_TYPE of an enum type.
2485 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2487 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2488 handle TYPE_DECLARED_CLASS.
2489 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2491 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2492 * valops.c (enum_constant_from_type): New function.
2493 (value_aggregate_elt): Use it.
2494 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2497 2014-04-14 Tom Tromey <tromey@redhat.com>
2499 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2500 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2502 * value.h (value_aggregate_elt): Update.
2504 2014-04-14 Tom Tromey <tromey@redhat.com>
2506 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2508 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2510 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2511 (evaluate_subexp_standard): Pass noside argument.
2512 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2513 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2514 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2515 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2516 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2518 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2520 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2521 points to a constant blob.
2523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2525 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2526 property and store it as the high bound and flag the range accordingly.
2527 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2528 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2529 * gdbtypes.h (enum range_flags): New enum.
2530 (struct range_bounds): Add flags member.
2532 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2534 * c-typeprint.c (c_type_print_varspec_suffix): Added
2535 check for not yet resolved high bound. If unresolved, print
2536 "variable length" string to the console instead of random
2539 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2541 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2543 (ada_template_to_fixed_record_type_1): Likewise.
2544 (ada_to_fixed_type_1): Likewise.
2545 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2546 (cp_print_value): Likewise.
2547 * d-valprint.c (dynamic_array_type): Likewise.
2548 * findvar.c (address_of_variable): Likewise.
2549 * jv-valprint.c (java_value_print): Likewise.
2550 * valops.c (value_ind): Likewise.
2551 * value.c (coerce_ref): Likewise.
2553 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2555 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2556 value and retrieve the dynamic type size.
2558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2560 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2561 passed to sizeof is dynamic evaluate the argument to compute the length.
2563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2564 Joel Brobecker <brobecker@adacore.com>
2566 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2567 (dwarf2_evaluate_property): New function.
2568 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2569 * dwarf2read.c (attr_to_dynamic_prop): New function.
2570 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2572 * gdbtypes.c: Include dwarf2loc.h.
2573 (is_dynamic_type): New function.
2574 (resolve_dynamic_type): New function.
2575 (resolve_dynamic_bounds): New function.
2576 (get_type_length): New function.
2577 (check_typedef): Use get_type_length to compute type length.
2578 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2579 (TYPE_LOW_BOUND_KIND): New macro.
2580 (is_dynamic_type): New function prototype.
2581 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2582 to resolve dynamic properties of the type. Update comment.
2583 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2585 2014-04-14 Richard Henderson <rth@redhat.com>
2587 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2589 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2590 Doug Evans <xdje42@gmail.com>
2592 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2593 dereference TYPE_CODE_REF values.
2595 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2597 Revert the following changes due to regressions:
2599 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2600 (dwarf2_evaluate_property): New function.
2601 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2602 * dwarf2read.c (attr_to_dynamic_prop): New function.
2603 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2605 * gdbtypes.c: Include dwarf2loc.h.
2606 (is_dynamic_type): New function.
2607 (resolve_dynamic_type): New function.
2608 (resolve_dynamic_bounds): New function.
2609 (get_type_length): New function.
2610 (check_typedef): Use get_type_length to compute type length.
2611 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2612 (TYPE_LOW_BOUND_KIND): New macro.
2613 (is_dynamic_type): New function prototype.
2614 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2615 to resolve dynamic properties of the type. Update comment.
2616 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2618 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2619 passed to sizeof is dynamic evaluate the argument to compute the length.
2621 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2622 value and retrieve the dynamic type size.
2624 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2625 (ada_template_to_fixed_record_type_1): Likewise.
2626 (ada_to_fixed_type_1): Likewise.
2627 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2628 (cp_print_value): Likewise.
2629 * d-valprint.c (dynamic_array_type): Likewise.
2630 * eval.c (evaluate_subexp_with_coercion): Likewise.
2631 * findvar.c (address_of_variable): Likewise.
2632 * jv-valprint.c (java_value_print): Likewise.
2633 * valops.c (value_ind): Likewise.
2634 * value.c (coerce_ref): Likewise.
2636 * c-typeprint.c (c_type_print_varspec_suffix): Added
2637 check for not yet resolved high bound. If unresolved, print
2638 "variable length" string to the console instead of random
2641 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2642 property and store it as the high bound and flag the range accordingly.
2643 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2644 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2645 * gdbtypes.h (enum range_flags): New enum.
2646 (struct range_bounds): Add flags member.
2648 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2649 points to a constant blob.
2651 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2652 (evaluate_subexp_standard): Pass noside argument.
2653 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2654 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2655 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2656 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2657 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2659 2014-04-11 Keith Seitz <keiths@redhat.com>
2662 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2663 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2666 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2668 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2669 (evaluate_subexp_standard): Pass noside argument.
2670 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2671 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2672 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2673 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2674 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2676 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2678 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2679 points to a constant blob.
2681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2683 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2684 property and store it as the high bound and flag the range accordingly.
2685 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2686 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2687 * gdbtypes.h (enum range_flags): New enum.
2688 (struct range_bounds): Add flags member.
2690 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2692 * c-typeprint.c (c_type_print_varspec_suffix): Added
2693 check for not yet resolved high bound. If unresolved, print
2694 "variable length" string to the console instead of random
2697 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2699 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2700 (ada_template_to_fixed_record_type_1): Likewise.
2701 (ada_to_fixed_type_1): Likewise.
2702 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2703 (cp_print_value): Likewise.
2704 * d-valprint.c (dynamic_array_type): Likewise.
2705 * eval.c (evaluate_subexp_with_coercion): Likewise.
2706 * findvar.c (address_of_variable): Likewise.
2707 * jv-valprint.c (java_value_print): Likewise.
2708 * valops.c (value_ind): Likewise.
2709 * value.c (coerce_ref): Likewise.
2711 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2713 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2714 value and retrieve the dynamic type size.
2716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2718 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2719 passed to sizeof is dynamic evaluate the argument to compute the length.
2721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2723 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2724 (dwarf2_evaluate_property): New function.
2725 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2726 * dwarf2read.c (attr_to_dynamic_prop): New function.
2727 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2729 * gdbtypes.c: Include dwarf2loc.h.
2730 (is_dynamic_type): New function.
2731 (resolve_dynamic_type): New function.
2732 (resolve_dynamic_bounds): New function.
2733 (get_type_length): New function.
2734 (check_typedef): Use get_type_length to compute type length.
2735 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2736 (TYPE_LOW_BOUND_KIND): New macro.
2737 (is_dynamic_type): New function prototype.
2738 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2739 to resolve dynamic properties of the type. Update comment.
2740 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2744 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2745 declaring high/low bounds and change uses accordingly. Call
2746 create_range_type instead of create_static_range_type.
2747 * gdbtypes.c (create_range_type): New function.
2748 (create_range_type): Convert bounds into struct bound_prop and pass
2749 them to create_range_type.
2750 * gdbtypes.h (struct bound_prop): New struct.
2751 (create_range_type): New function prototype.
2752 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2753 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2754 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2756 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2758 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2760 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2761 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2762 * ada-lang.c: All uses of create_range_type updated.
2763 * coffread.c: All uses of create_range_type updated.
2764 * dwarf2read.c: All uses of create_range_type updated.
2765 * f-exp.y: All uses of create_range_type updated.
2766 * m2-valprint.c: All uses of create_range_type updated.
2767 * mdebugread.c: All uses of create_range_type updated.
2768 * stabsread.c: All uses of create_range_type updated.
2769 * valops.c: All uses of create_range_type updated.
2770 * valprint.c: All uses of create_range_type updated.
2772 2014-04-10 Pedro Alves <palves@redhat.com>
2774 * breakpoint.c (single_step_breakpoints)
2775 (single_step_gdbarch): Move up in the file.
2776 (one_breakpoint_xfer_memory): New function, factored out from ...
2777 (breakpoint_xfer_memory): ... here. Also process single-step
2780 2014-04-09 Tristan Gingold <gingold@adacore.com>
2782 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2784 (darwin_decode_exception_message): Free port only after use.
2786 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2788 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2789 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2790 when setting the size of call_length.
2792 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2794 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2795 dereference TYPE_CODE_REF values.
2797 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2799 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2800 end of warning message.
2802 2014-04-03 Doug Evans <dje@google.com>
2804 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2805 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2807 2014-04-02 Alan Modra <amodra@gmail.com>
2809 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2810 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2811 (struct symbol_file_add_from_memory_args): Add size field.
2812 (find_vdso_size): New function.
2813 (add_vsyscall_page): Attempt to find vdso size.
2815 2014-04-01 Doug Evans <dje@google.com>
2817 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2819 2014-04-01 Tristan Gingold <gingold@adacore.com>
2821 * darwin-nat.c (darwin_encode_reply): Add prototype.
2822 (darwin_decode_exception_message): Reply to unknown inferiors.
2823 (darwin_decode_message): Handle message by id. Ignore message
2824 to unknown inferior.
2825 (darwin_wait): Discard unknown messages, add debug trace.
2827 2014-03-31 Doug Evans <dje@google.com>
2829 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2832 2014-03-31 Doug Evans <dje@google.com>
2834 New option "set print symbol-loading".
2836 * solib.c (solib_read_symbols): Only print symbol loading messages
2838 (solib_add): If symbol loading is in "brief" mode, notify user
2839 symbols are being loaded.
2840 (reload_shared_libraries_1): Ditto.
2841 * symfile.c (print_symbol_loading_off): New static global.
2842 (print_symbol_loading_brief): New static global.
2843 (print_symbol_loading_full): New static global.
2844 (print_symbol_loading_enums): New static global.
2845 (print_symbol_loading): New static global.
2846 (print_symbol_loading_p): New function.
2847 (symbol_file_add_with_addrs): Only print symbol loading messages
2849 (_initialize_symfile): Register "print symbol-loading" set/show
2851 * symfile.h (print_symbol_loading_p): Declare.
2853 2014-03-30 Doug Evans <xdje42@gmail.com>
2855 * infrun.c (set_last_target_status): New function.
2856 (handle_inferior_event): Call it.
2858 2014-03-30 Doug Evans <xdje42@gmail.com>
2860 * inferior.h (enum stop_kind): Improve comment.
2862 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2864 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2865 a reference, strip the reference layer before calling
2866 the lang_ops value_has_mutated callback.
2868 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2870 Remove some globals from our parser.
2871 * language.c (unk_lang_parser): Add "struct parser_state"
2873 * language.h (struct language_defn) <la_parser>: Likewise.
2874 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2875 (initialize_expout): Add "struct parser_state" argument.
2876 Rewrite function to use the parser state.
2877 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2878 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2879 write_exp_elt_longcst, write_exp_elt_dblcst,
2880 write_exp_elt_decfloatcst, write_exp_elt_type,
2881 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2882 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2883 write_dollar_variable): Likewise.
2884 (parse_exp_in_context_1): Use parser state.
2885 (insert_type_address_space): Add "struct parser_state" argument.
2887 (increase_expout_size): New function.
2888 * parser-defs.h: Forward declare "struct language_defn" and
2889 "struct parser_state".
2890 (expout, expout_size, expout_ptr): Remove extern declarations.
2891 (parse_gdbarch, parse_language): Rewrite macro declarations to
2892 accept the parser state.
2893 (struct parser_state): New struct.
2894 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2895 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2896 write_exp_elt_decfloatcst, write_exp_elt_type,
2897 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2898 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2899 write_exp_msymbol, write_dollar_variable,
2900 mark_struct_expression, insert_type_address_space): Add "struct
2901 parser_state" argument.
2902 (increase_expout_size): New function.
2903 * utils.c (do_clear_parser_state): New function.
2904 (make_cleanup_clear_parser_state): Likewise.
2905 * utils.h (make_cleanup_clear_parser_state): New function
2907 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2908 Update calls to write_exp* in order to pass the parser state.
2909 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2910 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2911 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2912 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2913 * stap-probe.c (stap_parse_register_operand): Likewise.
2914 (stap_parse_single_operand): Likewise.
2915 (stap_parse_argument_1): Likewise.
2916 (stap_parse_argument): Use parser state.
2917 * stap-probe.h: Include "parser-defs.h".
2918 (struct stap_parse_info) <pstate>: New field.
2919 * c-exp.y (parse_type): Rewrite to use parser state.
2920 (yyparse): Redefine to c_parse_internal.
2921 (pstate): New global variable.
2922 (parse_number): Add "struct parser_state" argument.
2923 (write_destructor_name): Likewise.
2924 (type_exp): Update calls to write_exp* and similars in order to
2926 (exp1, exp, variable, qualified_name, space_identifier,
2927 typename, typebase): Likewise.
2928 (write_destructor_name, parse_number, lex_one_token,
2929 classify_name, classify_inner_name, c_parse): Add "struct
2930 parser_state" argument. Update function to use parser state.
2931 * c-lang.h: Forward declare "struct parser_state".
2932 (c_parse): Add "struct parser_state" argument.
2933 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2934 (yyparse): Redefine macro to ada_parse_internal.
2935 (pstate): New variable.
2936 (write_int, write_object_renaming, write_var_or_type,
2937 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2938 type_int, type_long, type_long_long, type_float, type_double,
2939 type_long_double, type_char, type_boolean, type_system_address):
2940 Add "struct parser_state" argument.
2941 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2942 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2943 var_or_type, aggregate, aggregate_component_list,
2944 positional_list, others, component_group,
2945 component_associations): Update calls to write_exp* and similar
2946 functions in order to use parser state.
2947 (ada_parse, write_var_from_sym, write_int,
2948 write_exp_op_with_string, write_object_renaming,
2949 find_primitive_type, write_selectors, write_ambiguous_var,
2950 write_var_or_type, write_name_assoc, type_int, type_long,
2951 type_long_long, type_float, type_double, type_long_double,
2952 type_char, type_boolean, type_system_address): Add "struct
2953 parser_state" argument. Adjust function to use parser state.
2954 * ada-lang.c (parse): Likewise.
2955 * ada-lang.h: Forward declare "struct parser_state".
2956 (ada_parse): Add "struct parser_state" argument.
2957 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2958 calls to both functions.
2959 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2961 (yyparse): Redefine macro to f_parse_internal.
2962 (pstate): New variable.
2963 (parse_number): Add "struct parser_state" argument.
2964 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2965 and similars in order to use parser state.
2966 (parse_number): Adjust code to use parser state.
2968 (f_parse): New function.
2969 * f-lang.h: Forward declare "struct parser_state".
2970 (f_parse): Add "struct parser_state" argument.
2971 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2973 (yyparse): Redefine macro for java_parse_internal.
2974 (pstate): New variable.
2975 (push_expression_name, push_expression_name, insert_exp): Add
2976 "struct parser_state" argument.
2977 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2978 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2979 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2980 PostIncrementExpression, PostDecrementExpression,
2981 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2982 UnaryExpressionNotPlusMinus, CastExpression,
2983 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2984 RelationalExpression, EqualityExpression, AndExpression,
2985 ExclusiveOrExpression, InclusiveOrExpression,
2986 ConditionalAndExpression, ConditionalOrExpression,
2987 ConditionalExpression, Assignment, LeftHandSide): Update
2988 calls to write_exp* and similars in order to use parser state.
2989 (parse_number): Ajust code to use parser state.
2991 (java_parse): New function.
2992 (push_variable): Add "struct parser_state" argument. Adjust
2993 code to user parser state.
2994 (push_fieldnames, push_qualified_expression_name,
2995 push_expression_name, insert_exp): Likewise.
2996 * jv-lang.h: Forward declare "struct parser_state".
2997 (java_parse): Add "struct parser_state" argument.
2998 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3000 (yyparse): Redefine macro to m2_parse_internal.
3001 (pstate): New variable.
3002 (type_exp, exp, fblock, variable, type): Update calls to
3003 write_exp* and similars to use parser state.
3005 (m2_parse): New function.
3006 * m2-lang.h: Forward declare "struct parser_state".
3007 (m2_parse): Add "struct parser_state" argument.
3008 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3009 * objc-lang.h: Forward declare "struct parser_state".
3010 (end_msglist): Add "struct parser_state" argument.
3011 * p-exp.y (parse_type): Rewrite macro to use parser state.
3012 (yyparse): Redefine macro to pascal_parse_internal.
3013 (pstate): New variable.
3014 (parse_number): Add "struct parser_state" argument.
3015 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3016 write_exp* and similars in order to use parser state.
3017 (parse_number, yylex): Adjust code to use parser state.
3018 (pascal_parse): New function.
3019 * p-lang.h: Forward declare "struct parser_state".
3020 (pascal_parse): Add "struct parser_state" argument.
3021 * go-exp.y (parse_type): Rewrite macro to use parser state.
3022 (yyparse): Redefine macro to go_parse_internal.
3023 (pstate): New variable.
3024 (parse_number): Add "struct parser_state" argument.
3025 (type_exp, exp1, exp, variable, type): Update calls to
3026 write_exp* and similars in order to use parser state.
3027 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3028 to use parser state.
3029 (go_parse): Likewise.
3030 * go-lang.h: Forward declare "struct parser_state".
3031 (go_parse): Add "struct parser_state" argument.
3033 2014-03-27 Doug Evans <dje@google.com>
3035 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3037 2014-03-27 Doug Evans <dje@google.com>
3039 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3040 Remove argument abbrev_section. All callers updated.
3042 2014-03-27 Doug Evans <dje@google.com>
3044 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3045 addr_base, ranges_base.
3047 2014-03-26 Keith Seitz <keiths@redhat.com>
3049 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3050 types, not VAR_DOMAIN.
3052 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3054 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3056 * features/nios2-linux.c: Regenerated.
3057 * features/nios2.c: Regenerated.
3059 2014-03-25 Pedro Alves <palves@redhat.com>
3061 * cli/cli-script.c (script_from_file): Force the interpreter to
3064 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3066 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3067 small stack allocation.
3069 2014-03-24 Tristan Gingold <gingold@adacore.com>
3071 * darwin-nat.c (exc_server): Remove unused prototype.
3072 (darwin_dump_message): Correctly display data on x86_64.
3073 (darwin_encode_reply): Fix style.
3074 Add comments and fix indentation.
3076 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3078 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3080 2014-03-22 Doug Evans <xdje42@gmail.com>
3082 * infcmd.c: Whitespace fixes.
3083 (interrupt_command): Merge two function comments into one.
3085 2014-03-22 Doug Evans <xdje42@gmail.com>
3087 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3090 2014-03-22 Yao Qi <yao@codesourcery.com>
3092 * remote.c (target_read_live_memory): Remove.
3093 (memory_xfer_live_readonly_partial): Rename it to
3094 remote_xfer_live_readonly_partial. Remove argument 'object'.
3095 All callers updated. Call remote_read_bytes_1
3096 instead of target_read_live_memory.
3097 * tracepoint.c (set_traceframe_number): Remove.
3098 (make_cleanup_restore_traceframe_number): Likewise .
3099 * tracepoint.h (set_traceframe_number): Remove declaration.
3100 (make_cleanup_restore_traceframe_number): Likewise.
3102 2014-03-22 Yao Qi <yao@codesourcery.com>
3104 * remote.c (remote_read_bytes): Move code on reading from the
3106 (remote_read_bytes_1): ... here. New function.
3108 2014-03-22 Yao Qi <yao@codesourcery.com>
3110 * ctf.c (ctf_xfer_partial): Check the return value of
3111 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3112 return TARGET_XFER_UNAVAILABLE.
3113 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3114 * target.c (target_read_live_memory): Move it to remote.c.
3115 (memory_xfer_live_readonly_partial): Likewise.
3116 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3117 * remote.c (target_read_live_memory): Moved from target.c.
3118 (memory_xfer_live_readonly_partial): Likewise.
3119 (remote_read_bytes): Factored out from
3120 memory_xfer_partial_1.
3122 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3124 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3127 2014-03-21 Pedro Alves <palves@redhat.com>
3129 * infrun.c (normal_stop): Extend comment.
3131 2014-03-21 Hui Zhu <hui@codesourcery.com>
3132 Pedro Alves <palves@redhat.com>
3134 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3136 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3137 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3138 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3140 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3142 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3143 `z' formatted output modifier.
3145 2014-03-20 Tom Tromey <tromey@redhat.com>
3146 Sergio Durigan Junior <sergiodj@redhat.com>
3148 * probe.c (parse_probes): Turn assert into an ordinary error.
3149 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3150 exceptions when parsing probes. Rearrange the code for clarity.
3152 2014-03-20 Tom Tromey <tromey@redhat.com>
3155 * top.c (execute_command): Only dispatch events if the command
3158 2014-03-20 Tom Tromey <tromey@redhat.com>
3161 * infcall.c: Include event-top.h.
3162 (run_inferior_call): Call async_disable_stdin if needed.
3164 2014-03-20 Pedro Alves <palves@redhat.com>
3166 * infrun.c (prepare_to_proceed): Delete.
3167 (thread_still_needs_step_over): New function.
3168 (find_thread_needs_step_over): New function.
3169 (proceed): If the current thread needs a step-over, set its
3170 steping_over_breakpoint flag. Adjust to use
3171 find_thread_needs_step_over instead of prepare_to_proceed.
3172 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3173 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3175 (switch_back_to_stepped_thread): Step over breakpoints of all
3176 threads not the stepping thread, before switching back to the
3179 2014-03-20 Pedro Alves <palves@redhat.com>
3181 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3183 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3184 * infrun.c (saved_singlestep_ptid)
3185 (stepping_past_singlestep_breakpoint): Delete.
3186 (resume): Remove stepping_past_singlestep_breakpoint handling.
3187 (proceed): Store the prev_pc of the stepping thread too.
3188 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3190 (enum infwait_states): Delete infwait_thread_hop_state.
3191 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3193 (handle_inferior_event): Adjust.
3194 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3195 handling and the thread-hop code. Before removing single-step
3196 breakpoints, check whether the thread hit a single-step breakpoint
3197 of another thread. If it did, the trap is not a random signal.
3198 (switch_back_to_stepped_thread): If the event thread hit a
3199 single-step breakpoint, unblock it before switching to the
3200 stepping thread. Handle the case of the stepped thread having
3202 (keep_going): Handle the case of the current thread moving past a
3203 single-step breakpoint.
3205 2014-03-20 Pedro Alves <palves@redhat.com>
3208 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3209 are being stepped over.
3210 (breakpoint_address_match): Make extern.
3211 * breakpoint.h (breakpoint_address_match): New declaration.
3212 * inferior.h (stepping_past_instruction_at): New declaration.
3213 * infrun.c (struct step_over_info): New type.
3214 (step_over_info): New global.
3215 (set_step_over_info, clear_step_over_info)
3216 (stepping_past_instruction_at): New functions.
3217 (handle_inferior_event): Clear the step-over info when
3218 trap_expected is cleared.
3219 (resume): Remove now stale comment.
3220 (clear_proceed_status): Clear step-over info.
3221 (proceed): Adjust step-over handling to set or clear the step-over
3222 info instead of removing all breakpoints.
3223 (handle_signal_stop): When setting up a thread-hop, don't remove
3225 (stop_stepping): Clear step-over info.
3226 (keep_going): Adjust step-over handling to set or clear step-over
3227 info and then always inserting breakpoints, instead of removing
3228 all breakpoints when stepping over one.
3230 2014-03-20 Pedro Alves <palves@redhat.com>
3232 * infrun.c (previous_inferior_ptid): Adjust comment.
3233 (deferred_step_ptid): Delete.
3234 (infrun_thread_ptid_changed, prepare_to_proceed)
3235 (init_wait_for_inferior): Adjust.
3236 (handle_signal_stop): Delete deferred_step_ptid handling.
3238 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3241 * defs.h (sync_quit_force_run): New declaration.
3242 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3243 * event-top.c (async_sigterm_handler): New declaration.
3244 (async_sigterm_token): New variable.
3245 (async_init_signals): Create also async_sigterm_token.
3246 (async_sigterm_handler): New function.
3247 (sync_quit_force_run): New variable.
3248 (handle_sigterm): Replace quit_force call by other calls.
3249 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3251 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3253 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3254 offset into SPE pseudo registers.
3256 2014-03-18 Pedro Alves <palves@redhat.com>
3259 * inferior.h (print_stop_event): Declare.
3260 * infrun.c (print_stop_event): New, factored out from ...
3261 (normal_stop): ... this.
3262 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3263 of bpstat_print/print_stack_frame.
3265 2014-03-17 Tom Tromey <tromey@redhat.com>
3267 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3269 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3271 * ada-lang.c (decode_constrained_packed_array): Perform a
3272 minimal coercion for reference with coerce_ref instead of
3275 2014-03-17 Tristan Gingold <gingold@adacore.com>
3277 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3278 (darwin_solib_create_inferior_hook): Emit a warning if version
3281 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3283 * python/py-value.c (get_field_flag): Cast flag_name argument to
3284 PyObject_GetAttrString to support Python 2.4.
3286 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3289 (Global Maintainers): Remove Jan Kratochvil.
3291 2014-03-14 Pedro Alves <palves@redhat.com>
3293 * inferior.h (terminal_ours_for_output): Rename to ...
3294 (child_terminal_ours_for_output): ... this.
3295 (terminal_save_ours): Rename to ...
3296 (child_terminal_save_ours): ... this.
3297 (terminal_ours): Rename to ...
3298 (child_terminal_ours): ... this.
3299 (terminal_inferior): Rename to ...
3300 (child_terminal_inferior): ... this.
3301 (terminal_init_inferior): Rename to ...
3302 (child_terminal_init_inferior): ... this.
3303 (terminal_init_inferior_with_pgrp): Rename to ...
3304 (child_terminal_init_inferior_with_pgrp): ... this.
3305 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3306 (child_terminal_init_with_pgrp): ... this.
3307 (terminal_save_ours): Rename to ...
3308 (child_terminal_save_ours): ... this.
3309 (terminal_init_inferior): Rename to ...
3310 (child_terminal_init): ... this. Adjust.
3311 (terminal_inferior): Rename to ...
3312 (child_terminal_inferior): ... this.
3313 (terminal_ours_for_output): Rename to ...
3314 (child_terminal_ours_for_output): ... this. Adjust.
3315 (terminal_ours): Rename to ...
3316 (child_terminal_ours): ... this.
3317 (terminal_ours_1): Rename to ...
3318 (child_terminal_ours_1): ... this. Adjust.
3319 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3320 * windows-nat.c (do_initial_windows_stuff): Adjust.
3321 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3322 (gnu_terminal_init): ... this. Adjust.
3323 (gnu_target): Adjust.
3324 * inf-child.c (inf_child_target): Adjust.
3326 2014-03-13 Doug Evans <xdje42@gmail.com>
3329 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3332 2014-03-13 Doug Evans <xdje42@gmail.com>
3334 * value.c (record_latest_value): Call release_value_or_incref
3335 instead of release_value.
3337 2014-03-13 Pedro Alves <palves@redhat.com>
3339 * procfs.c (procfs_target): Don't override to_shortname,
3340 to_longname or to_doc.
3342 2014-03-13 Pedro Alves <palves@redhat.com>
3344 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3345 Unix in user visible strings.
3347 2014-03-12 Stan Shebs <stan@codesourcery.com>
3349 * gdbtypes.h: Annotate comments for Doxygen, add a page
3350 block comment with some general info.
3352 2014-03-12 Pedro Alves <palves@redhat.com>
3354 * infcmd.c (prepare_execution_command): New function, factored out
3355 from several execution commands.
3356 (run_command_1, continue_command, step_1, jump_command)
3357 (signal_command, until_command, advance_command, finish_command)
3358 (attach_command): Use prepare_execution_command.
3360 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3362 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3365 (struct arm_linux_thread_points): Removed.
3366 (struct arm_linux_process_info): New.
3367 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3368 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3369 (arm_linux_find_breakpoints_by_tid): Removed.
3370 (struct arch_lwp_info): New.
3371 (arm_linux_find_process_pid): New functions.
3372 (arm_linux_add_process): New functions.
3373 (arm_linux_process_info_get): New functions.
3374 (arm_linux_forget_process): New function.
3375 (arm_linux_get_debug_reg_state): New function.
3376 (struct update_registers_data): New.
3377 (update_registers_callback): New function.
3378 (arm_linux_insert_hw_breakpoint1): Updated.
3379 (arm_linux_remove_hw_breakpoint1): Updated.
3380 (arm_linux_insert_hw_breakpoint): Updated.
3381 (arm_linux_remove_hw_breakpoint): Updated.
3382 (arm_linux_insert_watchpoint): Updated.
3383 (arm_linux_remove_watchpoint): Updated.
3384 (arm_linux_new_thread): Updated.
3385 (arm_linux_prepare_to_resume): New function.
3386 (arm_linux_new_fork): New function.
3387 (_initialize_arm_linux_nat): Updated.
3389 2014-03-12 Pedro Alves <palves@redhat.com>
3391 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3393 2014-03-12 Tom Tromey <tromey@redhat.com>
3395 * inf-child.c (return_zero): New function.
3396 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3397 * aix-thread.c (aix_thread_inferior_created): New function.
3398 (aix_thread_attach): Remove.
3399 (init_aix_thread_ops): Don't set to_attach.
3400 (_initialize_aix_thread): Register inferior_created observer.
3401 * corelow.c (init_core_ops): Don't set to_attach or
3403 * exec.c (init_exec_ops): Don't set to_attach or
3405 * infcmd.c (run_command_1): Use find_run_target. Make direct
3407 (attach_command): Use find_attach_target. Make direct target
3409 * record-btrace.c (init_record_btrace_ops): Don't set
3411 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3413 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3414 set to_create_inferior.
3415 * target.c (complete_target_initialization): Add assertion.
3416 (target_create_inferior): Remove.
3417 (find_default_attach, find_default_create_inferior): Remove.
3418 (find_attach_target, find_run_target): New functions.
3419 (find_default_is_async_p, find_default_can_async_p)
3420 (target_supports_non_stop, target_attach): Remove.
3421 (init_dummy_target): Don't set to_create_inferior or
3422 to_supports_non_stop.
3423 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3424 TARGET_DEFAULT_FUNC.
3425 <to_create_inferior>: Add comment.
3426 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3427 TARGET_DEFAULT_RETURN.
3428 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3429 (find_attach_target, find_run_target): Declare.
3430 (target_create_inferior): Remove.
3431 (target_has_execution_1): Update comment.
3432 (target_supports_non_stop): Remove.
3433 * target-delegates.c: Rebuild.
3435 2014-03-12 Pedro Alves <palves@redhat.com>
3437 * inf-child.h: Update comment to not mention Unix.
3439 2014-03-12 Pedro Alves <palves@redhat.com>
3441 * inf-child.c: Update top comment to not mention Unix. Add
3442 generic comment describing how this target is meant to be used.
3443 (inf_child_post_attach, inf_child_post_startup_inferior)
3444 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3447 2014-03-12 Pedro Alves <palves@redhat.com>
3449 * nto-procfs.c: Include inf-child.h.
3450 (procfs_ops): Delete global.
3451 (procfs_can_run): Delete method.
3452 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3453 target pointer instead of referencing procfs_ops.
3454 (procfs_prepare_to_store): Delete.
3455 (init_procfs_ops): Delete function.
3456 (procfs_target): New function, based on init_procfs_ops, but
3457 inherit inf_child_target.
3458 (_initialize_procfs): Use procfs_target.
3460 2014-03-12 Pedro Alves <palves@redhat.com>
3462 * windows-nat.c: Include inf-child.h.
3463 (windows_ops): Delete global.
3464 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3466 (init_windows_ops): Delete function.
3467 (windows_target): New function, based on init_windows_ops, but
3468 inherit inf_child_target.
3469 (_initialize_windows_nat): Use windows_target. Install x86
3470 specific target methods here.
3472 2014-03-10 Doug Evans <xdje42@gmail.com>
3474 * guile/guile.c (call_initialize_gdb_module): New function.
3475 (initialize_guile): Replace call to scm_init_guile with call to
3478 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3480 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3481 in call to TYPE_CODE macro.
3483 2014-03-10 Jerome Guitton <guitton@adacore.com>
3485 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3486 Resolve tagged types to full view.
3488 2014-03-10 Hui Zhu <hui@codesourcery.com>
3490 * target.h (target_insert_breakpoint): Remove "hardware" from its
3493 2014-03-07 Doug Evans <dje@google.com>
3495 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3497 2014-03-07 Doug Evans <dje@google.com>
3499 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3500 Remove unused local comp_dir_attr. Assert exactly one of
3501 stub_comp_unit_die, stub_comp_dir is non-NULL.
3503 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3505 * target.h (complete_target_initialization, add_target):
3508 2014-03-07 Pedro Alves <palves@redhat.com>
3510 * go32-nat.c: Include inf-child.h.
3511 (go32_ops): Delete global.
3512 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3514 (go32_create_inferior): Push the passed in target pointer instead
3515 of referencing go32_ops.
3516 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3517 (go32_target): New function, based on init_go32_ops, but inherit
3519 (_initialize_go32_nat): Use go32_target. Move parts of
3522 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3524 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3525 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3526 SYMBOL_VALUE_ADDRESS.
3527 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3529 2014-03-06 Yao Qi <yao@codesourcery.com>
3531 * breakpoint.c (get_tracepoint_by_number): Remove argument
3532 optional_p. All callers updated. Adjust comments. Update
3534 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3536 2014-03-06 Yao Qi <yao@codesourcery.com>
3538 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3539 early if get_number returns zero. Use 'p' instead of 'args'.
3541 2014-03-06 Yao Qi <yao@codesourcery.com>
3543 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3546 2014-03-06 Yao Qi <yao@codesourcery.com>
3548 PR breakpoints/16508
3549 * tracepoint.c (check_trace_running): New function.
3550 (trace_find_command): Move code to check_trace_running and
3551 call check_trace_running.
3552 (trace_find_pc_command): Likewise.
3553 (trace_find_tracepoint_command): Likewise.
3554 (trace_find_line_command): Likewise.
3555 (trace_find_range_command): Likewise.
3556 * tracepoint.h (check_trace_running): Likewise.
3557 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3559 2014-03-06 Yao Qi <yao@codesourcery.com>
3561 * target.h (struct target_ops) <to_traceframe_info>: Use
3562 TARGET_DEFAULT_NORETURN (tcomplain ()).
3563 * target-delegates.c: Regenerated.
3565 2014-03-05 Pedro Alves <palves@redhat.com>
3568 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3569 void. Update comment.
3570 (dcache_xfer_memory): Delete.
3571 (dcache_read_memory_partial): New, based on the read bits of
3573 (dcache_update): Add status parameter. Use ULONGEST for len, and
3574 adjust. Discard cache lines if the reason for the update was
3576 * dcache.h (dcache_xfer_memory): Delete declaration.
3577 (dcache_read_memory_partial): New declaration.
3578 (dcache_update): Update prototype.
3579 * target.c (raw_memory_xfer_partial): Update the dcache here.
3580 (memory_xfer_partial_1): Don't handle dcache writes here.
3582 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3584 * remote-sim.c (gdbsim_load): Add const to prog.
3586 2014-03-03 Tom Tromey <tromey@redhat.com>
3588 * elfread.c (probe_key): Change to bfd_data.
3589 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3590 now per-BFD, not per-objfile.
3591 * stap-probe.c (stap_probe_destroy): Update comment.
3592 (handle_stap_probe): Allocate on the per-BFD obstack.
3594 2014-03-03 Tom Tromey <tromey@redhat.com>
3596 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3597 * breakpoint.c (create_longjmp_master_breakpoint): Use
3599 (add_location_to_breakpoint, bkpt_probe_insert_location)
3600 (bkpt_probe_remove_location): Update.
3601 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3602 * elfread.c (elf_symfile_relocate_probe): Remove.
3603 (elf_probe_fns): Update.
3604 (insert_exception_resume_breakpoint): Change type of "probe"
3605 parameter to bound_probe.
3606 (check_exception_resume): Update.
3607 * objfiles.c (objfile_relocate1): Don't relocate probes.
3608 * probe.c (bound_probe_s): New typedef.
3609 (parse_probes): Use get_probe_address. Set sal's objfile.
3610 (find_probe_by_pc): Return a bound_probe.
3611 (collect_probes): Return a VEC(bound_probe_s).
3612 (compare_probes): Update.
3613 (gen_ui_out_table_header_info): Change type of "probes"
3615 (info_probes_for_ops): Update.
3616 (get_probe_address): New function.
3617 (probe_safe_evaluate_at_pc): Update.
3618 * probe.h (struct probe_ops) <get_probe_address>: New field.
3619 <set_semaphore, clear_semaphore>: Add objfile parameter.
3620 (struct probe) <objfile>: Remove field.
3622 <address>: Update comment.
3623 (struct bound_probe): New.
3624 (find_probe_by_pc): Return a bound_probe.
3625 (get_probe_address): Declare.
3626 * solib-svr4.c (struct probe_and_action) <address>: New field.
3627 (hash_probe_and_action, equal_probe_and_action): Update.
3628 (register_solib_event_probe): Add address parameter.
3629 (solib_event_probe_at): Update.
3630 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3632 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3633 (stap_get_probe_address): New function.
3634 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3635 (compile_probe_arg): Update.
3636 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3638 (handle_stap_probe): Don't relocate the probe.
3639 (stap_relocate): Remove.
3640 (stap_gen_info_probes_table_values): Update.
3641 (stap_probe_ops): Remove stap_relocate.
3642 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3643 (debug_sym_probe_fns): Update.
3644 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3645 * symtab.c (init_sal): Use memset.
3646 * symtab.h (struct symtab_and_line) <objfile>: New field.
3647 * tracepoint.c (start_tracing, stop_tracing): Update.
3649 2014-03-03 Tom Tromey <tromey@redhat.com>
3651 * probe.h (parse_probes, find_probe_by_pc)
3652 (find_probes_in_objfile): Fix comments.
3654 2014-03-02 Doug Evans <xdje42@gmail.com>
3656 * infrun.c (handle_signal_stop): Replace test for
3657 TARGET_WAITKIND_STOPPED with an assert.
3659 2014-03-02 Doug Evans <xdje42@gmail.com>
3661 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3663 2014-03-02 Doug Evans <xdje42@gmail.com>
3665 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3669 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3671 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3673 * i386obsd-nat.c: Include "obsd-nat.h".
3674 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3676 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3678 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3680 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3682 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3684 * mips64obsd-nat.c: Include "obsd-nath".
3685 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3687 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3689 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3691 * amd64obsd-nat.c: Include "obsd-nat,h.
3692 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3694 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3696 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3698 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3699 (find_overload_match): Update call to find_oload_champ.
3700 (find_oload_champ_namespace_loop): Likewise
3702 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3704 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3706 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3707 * config/sparc/obsd64.mh: New file.
3708 * sparc64obsd-nat.c: New file.
3710 * obsd-nat.h: New file.
3711 * obsd-nat.c: New file.
3712 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3713 (ALLDEPFILES): Add obsd-nat.c.
3715 2014-02-28 Tom Tromey <tromey@redhat.com>
3717 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3718 * cli-out.h (cli_ui_out_impl): Now const.
3719 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3720 * ui-out.c (struct ui_out) <impl>: Now const.
3721 (default_ui_out_impl): Now const.
3722 (ui_out_new): Make 'impl' parameter const.
3723 * ui-out.h (ui_out_new): Update.
3725 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3727 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3729 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3731 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3733 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3735 Additional PR 8882 fix.
3736 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3738 2014-02-27 Pedro Alves <palves@redhat.com>
3740 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3743 2014-02-27 Pedro Alves <palves@redhat.com>
3746 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3747 * nat/linux-waitpid.c: Include string.h.
3748 (status_to_str): Moved here and made extern.
3749 * nat/linux-waitpid.h (status_to_str): New declaration.
3751 2014-02-27 Hui Zhu <hui@codesourcery.com>
3754 * infrun.c (ptid_match): Move ...
3755 * common/ptid.c (ptid_match): ... here.
3756 * inferior.h (ptid_match): Move ...
3757 * common/ptid.h (ptid_match): ... here.
3759 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3761 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3762 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3765 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3767 * obsd-tdep.c (obsd_auxv_parse): New function.
3768 (obsd_init_abi): Set auxv_parse.
3770 * gdbarch.sh (auxv_parse): New.
3771 * gdbarch.h: Regenerated.
3772 * gdbarch.c: Regenerated.
3773 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3775 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3777 * guile/scm-value.c (gdbscm_history_append_x): New function.
3778 (value_functions): Add it.
3780 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3782 * dwarf2read.c (attr_value_as_address): New function.
3783 (dwarf2_find_base_address, read_call_site_scope): Use
3784 attr_value_as_address in place of DW_ADDR.
3785 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3786 the low and high addresses. Slight rework of the handling
3787 of the high pc being a constant form, and limit it to
3788 DWARF verson 4 or higher.
3789 (dwarf2_record_block_ranges): Likewise.
3790 (read_partial_die): Likewise.
3791 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3793 2014-02-26 Tom Tromey <tromey@redhat.com>
3795 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3797 2014-02-26 Tom Tromey <tromey@redhat.com>
3799 * elfread.c (elf_read_minimal_symbols): Return early if
3800 minimal symbols have already been read. Add "ei" parameter.
3801 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3802 * minsyms.c (prim_record_minimal_symbol_full): Update.
3803 * objfiles.h (struct objstats) <n_minsyms>: Move...
3804 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3805 * symmisc.c (print_objfile_statistics): Update.
3807 2014-02-26 Tom Tromey <tromey@redhat.com>
3809 * elfread.c (elf_read_minimal_symbols): New function, from
3811 (elf_symfile_read): Call it.
3813 2014-02-26 Tom Tromey <tromey@redhat.com>
3815 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3816 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3817 (lookup_minimal_symbol_solib_trampoline)
3818 (lookup_minimal_symbol_by_pc_section_1)
3819 (lookup_minimal_symbol_and_objfile): Update.
3820 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3821 Don't allocate a minimal symbol if minsyms have already been read.
3822 (build_minimal_symbol_hash_tables): Update.
3823 (install_minimal_symbols): Do nothing if minsyms already read.
3824 Use the per-BFD obstack.
3825 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3826 * objfiles.c (allocate_objfile): Call
3827 terminate_minimal_symbol_table later.
3828 (have_minimal_symbols): Update.
3829 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3830 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3831 Move from struct objfile.
3832 <minsyms_read>: New field.
3833 (struct objfile) <msymbols, minimal_symbol_count,
3834 msymbol_hash, msymbol_demangled_hash>: Move.
3835 (ALL_OBJFILE_MSYMBOLS): Update.
3836 * symfile.c (read_symbols): Set minsyms_read.
3837 (reread_symbols): Update.
3838 * symmisc.c (dump_objfile, dump_msymbols): Update.
3840 2014-02-26 Tom Tromey <tromey@redhat.com>
3842 * minsyms.c (msymbols_sort): Remove.
3843 * minsyms.h (msymbols_sort): Remove.
3844 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3845 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3846 * elfread.c (elf_symtab_read): Don't add section offsets.
3847 * xcoffread.c (record_minimal_symbol): Don't add section offset
3848 to minimal symbol address.
3849 * somread.c (text_offset, data_offset): Remove.
3850 (som_symtab_read): Don't add section offsets to minimal symbol
3852 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3853 Don't add section offsets to minimal symbols.
3854 * coffread.c (coff_symtab_read): Don't add section offsets
3855 to minimal symbol addresses.
3856 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3857 to minimal symbol addresses.
3858 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3859 section offset to minimal symbol addresses.
3860 * mdebugread.c (parse_partial_symbols): Don't add section
3861 offset to minimal symbol addresses.
3862 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3863 offset to minimal symbol addresses.
3865 2014-02-26 Tom Tromey <tromey@redhat.com>
3867 * ada-lang.c (ada_main_name): Update.
3868 (ada_add_standard_exceptions): Update.
3869 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3870 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3871 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3872 * auxv.c (ld_so_xfer_auxv): Update.
3873 * avr-tdep.c (avr_scan_prologue): Update.
3874 * ax-gdb.c (gen_var_ref): Update.
3875 * blockframe.c (get_pc_function_start)
3876 (find_pc_partial_function_gnu_ifunc): Update.
3877 * breakpoint.c (create_overlay_event_breakpoint)
3878 (create_longjmp_master_breakpoint)
3879 (create_std_terminate_master_breakpoint)
3880 (create_exception_master_breakpoint): Update.
3881 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3882 * c-valprint.c (c_val_print): Update.
3883 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3884 * common/agent.c (agent_look_up_symbols): Update.
3885 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3886 * dwarf2loc.c (call_site_to_target_addr): Update.
3887 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3888 * elfread.c (elf_gnu_ifunc_record_cache)
3889 (elf_gnu_ifunc_resolve_by_got): Update.
3890 * findvar.c (default_read_var_value): Update.
3891 * frame.c (inside_main_func): Update.
3892 * frv-tdep.c (frv_frame_this_id): Update.
3893 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3894 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3896 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3897 (hppa_hpux_find_dummy_bpaddr): Update.
3898 * hppa-tdep.c (hppa_symbol_address): Update.
3899 * infcmd.c (until_next_command): Update.
3900 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3902 * linespec.c (minsym_found, add_minsym): Update.
3903 * linux-nat.c (get_signo): Update.
3904 * linux-thread-db.c (inferior_has_bug): Update.
3905 * m32c-tdep.c (m32c_return_value)
3906 (m32c_m16c_address_to_pointer): Update.
3907 * m32r-tdep.c (m32r_frame_this_id): Update.
3908 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3909 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3910 * maint.c (maintenance_translate_address): Update.
3911 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3912 (frob_address): New function.
3913 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3914 frob_address. Rename parameter to "pc_in".
3915 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3917 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3919 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3920 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3921 * objc-lang.c (find_objc_msgsend): Update.
3922 * objfiles.c (objfile_relocate1): Update.
3923 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3924 * p-valprint.c (pascal_val_print): Update.
3925 * parse.c (write_exp_msymbol): Update.
3926 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3927 (ppc_elfv2_skip_entrypoint): Update.
3928 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3929 * printcmd.c (build_address_symbolic, msym_info)
3930 (address_info): Update.
3931 * proc-service.c (ps_pglobal_lookup): Update.
3932 * psymtab.c (find_pc_sect_psymtab_closer)
3933 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3934 Change msymbol parameter to bound_minimal_symbol.
3935 * ravenscar-thread.c (get_running_thread_id): Update.
3936 * remote.c (remote_check_symbols): Update.
3937 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3939 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3940 * solib-dsbt.c (lm_base): Update.
3941 * solib-frv.c (lm_base, main_got): Update.
3942 * solib-irix.c (locate_base): Update.
3943 * solib-som.c (som_solib_create_inferior_hook)
3944 (link_map_start): Update.
3945 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3946 * solib-svr4.c (elf_locate_base, enable_break): Update.
3947 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3948 (flush_ea_cache): Update.
3949 * stabsread.c (define_symbol, scan_file_globals): Update.
3950 * stack.c (find_frame_funname): Update.
3951 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3952 (debug_qf_find_pc_sect_symtab): Update.
3953 * symfile.c (simple_read_overlay_table)
3954 (simple_overlay_update): Update.
3955 * symfile.h (struct quick_symbol_functions)
3956 <find_pc_sect_symtab>: Change type of msymbol to
3957 bound_minimal_symbol.
3958 * symmisc.c (dump_msymbols): Update.
3959 * symtab.c (find_pc_sect_symtab_via_partial)
3960 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3961 (search_symbols, print_msymbol_info): Update.
3962 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3963 (MSYMBOL_VALUE_ADDRESS): Redefine.
3964 (BMSYMBOL_VALUE_ADDRESS): New macro.
3965 * tracepoint.c (scope_info): Update.
3966 * tui/tui-disasm.c (tui_find_disassembly_address)
3967 (tui_get_begin_asm_address): Update.
3968 * valops.c (find_function_in_inferior): Update.
3969 * value.c (value_static_field, value_fn_field): Update.
3971 2014-02-26 Tom Tromey <tromey@redhat.com>
3973 * ada-lang.c (ada_update_initial_language): Update.
3974 (ada_main_name, ada_has_this_exception_support): Update.
3975 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3976 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3977 * arm-tdep.c (arm_skip_stub): Update.
3978 * auxv.c (ld_so_xfer_auxv): Update.
3979 * avr-tdep.c (avr_scan_prologue): Update.
3980 * ax-gdb.c (gen_var_ref): Update.
3981 * breakpoint.c (struct breakpoint_objfile_data)
3982 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3983 type to bound_minimal_symbol.
3984 (create_overlay_event_breakpoint)
3985 (create_longjmp_master_breakpoint)
3986 (create_std_terminate_master_breakpoint)
3987 (create_exception_master_breakpoint): Update.
3988 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3989 * c-exp.y (classify_name): Update.
3990 * coffread.c (coff_symfile_read): Update.
3991 * common/agent.c (agent_look_up_symbols): Update.
3992 * d-lang.c (d_main_name): Update.
3993 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3994 * dec-thread.c (enable_dec_thread): Update.
3995 * dwarf2loc.c (call_site_to_target_addr): Update.
3996 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3997 * eval.c (evaluate_subexp_standard): Update.
3998 * findvar.c (struct minsym_lookup_data) <result>: Change type
3999 to bound_minimal_symbol.
4001 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4002 * frame.c (inside_main_func): Update.
4003 * frv-tdep.c (frv_frame_this_id): Update.
4004 * gcore.c (call_target_sbrk): Update.
4005 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4006 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4008 * go-lang.c (go_main_name): Update.
4009 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4010 (hppa_hpux_find_import_stub_for_addr): Update.
4011 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4012 Update. Change return type.
4013 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4015 * jit.c (jit_breakpoint_re_set_internal): Update.
4016 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4018 * linux-nat.c (get_signo): Update.
4019 * linux-thread-db.c (inferior_has_bug): Update
4020 * m32c-tdep.c (m32c_return_value)
4021 (m32c_m16c_address_to_pointer): Update.
4022 * m32r-tdep.c (m32r_frame_this_id): Update.
4023 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4024 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4025 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4026 lookup_minimal_symbol. Change return type.
4027 (lookup_minimal_symbol): Remove.
4028 (lookup_bound_minimal_symbol): Update.
4029 (lookup_minimal_symbol_text): Change return type.
4030 (lookup_minimal_symbol_solib_trampoline): Change return type.
4031 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4032 (lookup_minimal_symbol_solib_trampoline): Change return type.
4033 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4034 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4035 (value_nsstring, find_imps): Update.
4036 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4037 * p-lang.c (pascal_main_name): Update.
4038 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4039 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4040 * proc-service.c (ps_pglobal_lookup): Update.
4041 * ravenscar-thread.c (get_running_thread_msymbol): Change
4043 (has_ravenscar_runtime, get_running_thread_id): Update.
4044 * remote.c (remote_check_symbols): Update.
4045 * sol-thread.c (ps_pglobal_lookup): Update.
4046 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4047 * solib-dsbt.c (lm_base): Update.
4048 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4050 * solib-irix.c (locate_base): Update.
4051 * solib-som.c (som_solib_create_inferior_hook)
4052 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4054 * solib-spu.c (spu_enable_break): Update.
4055 * solib-svr4.c (elf_locate_base, enable_break): Update.
4056 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4057 (flush_ea_cache): Update.
4058 * stabsread.c (define_symbol): Update.
4059 * symfile.c (simple_read_overlay_table): Update.
4060 * symtab.c (find_pc_sect_line): Update.
4061 * tracepoint.c (scope_info): Update.
4062 * tui-disasm.c (tui_get_begin_asm_address): Update.
4063 * value.c (value_static_field): Update.
4065 2014-02-26 Tom Tromey <tromey@redhat.com>
4067 * minsyms.c (prim_record_minimal_symbol_full): Use
4068 SET_MSYMBOL_VALUE_ADDRESS.
4069 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4070 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4071 SET_MSYMBOL_VALUE_ADDRESS.
4072 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4073 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4075 2014-02-26 Tom Tromey <tromey@redhat.com>
4077 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4078 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4079 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4080 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4081 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4082 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4083 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4084 * ada-lang.c (ada_main_name): Update.
4085 (ada_lookup_simple_minsym): Update.
4086 (ada_make_symbol_completion_list): Update.
4087 (ada_add_standard_exceptions): Update.
4088 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4089 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4090 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4091 * arm-tdep.c (skip_prologue_function): Update.
4092 (arm_skip_stack_protector, arm_skip_stub): Update.
4093 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4094 (arm_wince_skip_main_prologue): Update.
4095 * auxv.c (ld_so_xfer_auxv): Update.
4096 * avr-tdep.c (avr_scan_prologue): Update.
4097 * ax-gdb.c (gen_var_ref): Update.
4098 * block.c (call_site_for_pc): Update.
4099 * blockframe.c (get_pc_function_start): Update.
4100 (find_pc_partial_function_gnu_ifunc): Update.
4101 * breakpoint.c (create_overlay_event_breakpoint): Update.
4102 (create_longjmp_master_breakpoint): Update.
4103 (create_std_terminate_master_breakpoint): Update.
4104 (create_exception_master_breakpoint): Update.
4105 (resolve_sal_pc): Update.
4106 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4107 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4109 * c-valprint.c (c_val_print): Update.
4110 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4111 * coffread.c (coff_symfile_read): Update.
4112 * common/agent.c (agent_look_up_symbols): Update.
4113 * dbxread.c (find_stab_function_addr): Update.
4114 (end_psymtab): Update.
4115 * dwarf2loc.c (call_site_to_target_addr): Update.
4116 (func_verify_no_selftailcall): Update.
4117 (tailcall_dump): Update.
4118 (call_site_find_chain_1): Update.
4119 (dwarf_expr_reg_to_entry_parameter): Update.
4120 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4121 (elf_gnu_ifunc_resolve_by_got): Update.
4122 * f-valprint.c (info_common_command): Update.
4123 * findvar.c (read_var_value): Update.
4124 * frame.c (get_prev_frame_1): Update.
4125 (inside_main_func): Update.
4126 * frv-tdep.c (frv_skip_main_prologue): Update.
4127 (frv_frame_this_id): Update.
4128 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4129 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4130 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4131 (gnuv3_skip_trampoline): Update.
4132 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4133 (hppa64_hpux_in_solib_call_trampoline): Update.
4134 (hppa_hpux_skip_trampoline_code): Update.
4135 (hppa64_hpux_search_dummy_call_sequence): Update.
4136 (hppa_hpux_find_import_stub_for_addr): Update.
4137 (hppa_hpux_find_dummy_bpaddr): Update.
4138 * hppa-tdep.c (hppa_symbol_address)
4139 (hppa_lookup_stub_minimal_symbol): Update.
4140 * i386-tdep.c (i386_skip_main_prologue): Update.
4141 (i386_pe_skip_trampoline_code): Update.
4142 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4143 * infcall.c (get_function_name): Update.
4144 * infcmd.c (until_next_command): Update.
4145 * jit.c (jit_breakpoint_re_set_internal): Update.
4146 (jit_inferior_init): Update.
4147 * linespec.c (minsym_found): Update.
4148 (add_minsym): Update.
4149 * linux-fork.c (info_checkpoints_command): Update.
4150 * linux-nat.c (get_signo): Update.
4151 * linux-thread-db.c (inferior_has_bug): Update.
4152 * m32c-tdep.c (m32c_return_value): Update.
4153 (m32c_m16c_address_to_pointer): Update.
4154 (m32c_m16c_pointer_to_address): Update.
4155 * m32r-tdep.c (m32r_frame_this_id): Update.
4156 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4157 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4158 * maint.c (maintenance_translate_address): Update.
4159 * minsyms.c (add_minsym_to_hash_table): Update.
4160 (add_minsym_to_demangled_hash_table): Update.
4161 (msymbol_objfile): Update.
4162 (lookup_minimal_symbol): Update.
4163 (iterate_over_minimal_symbols): Update.
4164 (lookup_minimal_symbol_text): Update.
4165 (lookup_minimal_symbol_by_pc_name): Update.
4166 (lookup_minimal_symbol_solib_trampoline): Update.
4167 (lookup_minimal_symbol_by_pc_section_1): Update.
4168 (lookup_minimal_symbol_and_objfile): Update.
4169 (prim_record_minimal_symbol_full): Update.
4170 (compare_minimal_symbols): Update.
4171 (compact_minimal_symbols): Update.
4172 (build_minimal_symbol_hash_tables): Update.
4173 (install_minimal_symbols): Update.
4174 (terminate_minimal_symbol_table): Update.
4175 (find_solib_trampoline_target): Update.
4176 (minimal_symbol_upper_bound): Update.
4177 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4178 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4179 (mips_skip_pic_trampoline_code): Update.
4180 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4181 * objc-lang.c (selectors_info): Update.
4182 (classes_info): Update.
4183 (find_methods): Update.
4184 (find_imps): Update.
4185 (find_objc_msgsend): Update.
4186 * objfiles.c (objfile_relocate1): Update.
4187 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4188 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4189 * p-valprint.c (pascal_val_print): Update.
4190 * parse.c (write_exp_msymbol): Update.
4191 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4192 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4193 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4194 * printcmd.c (build_address_symbolic): Update.
4196 (address_info): Update.
4197 * proc-service.c (ps_pglobal_lookup): Update.
4198 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4199 (find_pc_sect_psymtab): Update.
4200 * python/py-framefilter.c (py_print_frame): Update.
4201 * ravenscar-thread.c (get_running_thread_id): Update.
4202 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4204 * remote.c (remote_check_symbols): Update.
4205 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4206 (rs6000_skip_trampoline_code): Update.
4207 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4208 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4209 * solib-dsbt.c (lm_base): Update.
4210 * solib-frv.c (lm_base): Update.
4212 * solib-irix.c (locate_base): Update.
4213 * solib-som.c (som_solib_create_inferior_hook): Update.
4214 (som_solib_desire_dynamic_linker_symbols): Update.
4215 (link_map_start): Update.
4216 * solib-spu.c (spu_enable_break): Update.
4217 (ocl_enable_break): Update.
4218 * solib-svr4.c (elf_locate_base): Update.
4219 (enable_break): Update.
4220 * spu-tdep.c (spu_get_overlay_table): Update.
4221 (spu_catch_start): Update.
4222 (flush_ea_cache): Update.
4223 * stabsread.c (define_symbol): Update.
4224 (scan_file_globals): Update.
4225 * stack.c (find_frame_funname): Update.
4226 (frame_info): Update.
4227 * symfile.c (simple_read_overlay_table): Update.
4228 (simple_overlay_update): Update.
4229 * symmisc.c (dump_msymbols): Update.
4230 * symtab.c (fixup_section): Update.
4231 (find_pc_sect_line): Update.
4232 (skip_prologue_sal): Update.
4233 (search_symbols): Update.
4234 (print_msymbol_info): Update.
4235 (rbreak_command): Update.
4236 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4237 (completion_list_objc_symbol): Update.
4238 (default_make_symbol_completion_list_break_on): Update.
4239 * tracepoint.c (scope_info): Update.
4240 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4241 (tui_get_begin_asm_address): Update.
4242 * valops.c (find_function_in_inferior): Update.
4243 * value.c (value_static_field): Update.
4244 (value_fn_field): Update.
4246 2014-02-26 Tom Tromey <tromey@redhat.com>
4248 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4249 bound minimal symbols. Move code that knows about minsym
4251 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4253 * minsyms.h (minimal_symbol_upper_bound): Declare.
4254 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4255 minimal_symbol_upper_bound.
4257 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4259 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4260 Use the type's name if its basic type does not have a tag.
4262 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4264 * dwarf2read.c (read_subrange_type): Add comment.
4266 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4268 * dwarf2read.c (update_enumeration_type_from_children): New
4269 function, mostly extracted from process_structure_scope.
4270 (read_enumeration_type): Call update_enumeration_type_from_children.
4271 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4272 and flag_flag_enum fields.
4274 2014-02-26 Pedro Alves <palves@redhat.com>
4276 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4277 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4278 to_xfer_partial method.
4280 2014-02-26 Pedro Alves <palves@redhat.com>
4282 * target.c (complete_target_initialization): Don't install
4283 default_xfer_partial as to_xfer_partial hook.
4285 (update_current_target): Don't INHERIT nor de_fault
4286 deprecated_xfer_memory. Delete de_fault macro.
4287 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4288 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4289 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4292 2014-02-26 Pedro Alves <palves@redhat.com>
4294 * go32-nat.c (my_write_child): New function.
4295 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4296 (go32_xfer_partial): New function.
4297 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4298 Instead install a to_xfer_partial hook.
4300 2014-02-26 Pedro Alves <palves@redhat.com>
4302 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4303 to_xfer_partial helper. Rewrite.
4304 (procfs_xfer_partial): New function.
4305 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4306 Install a to_xfer_partial hook.
4308 2014-02-26 Pedro Alves <palves@redhat.com>
4310 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4311 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4312 (m32r_xfer_partial): New function.
4313 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4314 Install a to_xfer_partial hook.
4316 2014-02-26 Pedro Alves <palves@redhat.com>
4318 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4320 (mips_xfer_partial): New function.
4321 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4322 hook. Install a to_xfer_partial hook.
4324 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4326 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4327 * gdbtypes.c (create_array_type_with_stride): New function,
4328 renaming create_array_type, but with an added parameter
4329 called "bit_stride".
4330 (create_array_type): Re-implement using
4331 create_array_type_with_stride.
4332 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4333 and DW_AT_bit_stride attributes.
4335 2014-02-26 Pedro Alves <palves@redhat.com>
4337 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4338 task-specific breakpoints.
4340 2014-02-25 Pedro Alves <palves@redhat.com>
4342 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4343 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4345 2014-02-25 Stan Shebs <stan@codesourcery.com>
4347 * defs.h: Annotate comments for Doxygen.
4349 2014-02-25 Tom Tromey <tromey@redhat.com>
4351 * target.h (target_ignore): Don't declare.
4352 * target.c (target_ignore): Remove.
4354 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4357 * auto-load.c (auto_load_objfile_script_1): Change filename to
4360 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4362 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4363 documentation. Adjust prototype to match the target_ops
4364 to_xfer_partial method. Adjust implementation accordingly.
4366 2014-02-25 Hui Zhu <hui@codesourcery.com>
4368 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4371 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4373 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4374 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4375 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4376 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4377 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4378 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4379 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4380 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4382 (rl78_register_type): Use a data pointer type for SP and
4383 new pseudo registers mentioned above. Use a 16 bit integer
4384 type for all other register pairs.
4385 (rl78_register_name, rl78_g10_register_name): Update for
4386 new pseudo registers.
4387 (rl78_pseudo_register_read): Likewise.
4388 (rl78_pseudo_register_write): Likewise.
4389 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4390 to the newly added pseudo registers.
4392 2014-02-24 Doug Evans <dje@google.com>
4394 * value.c (record_latest_value): Fix comment.
4395 * printcmd.c (print_command_1): Remove code to handle -1 return from
4396 record_latest_value.
4398 2014-02-24 Pedro Alves <palves@redhat.com>
4400 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4401 deprecated_xfer_memory hook.
4402 (procfs_xfer_partial): Call procfs_xfer_memory instead
4403 of the deprecated_xfer_memory target hook.
4404 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4407 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4409 * windows-nat.c (windows_xfer_shared_libraries): Return
4410 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4411 requested object is TARGET_OBJECT_LIBRARIES.
4413 2014-02-24 Yao Qi <yao@codesourcery.com>
4415 * target.h (enum target_xfer_status)
4416 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4417 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4419 * corefile.c (memory_error_message): User updated.
4420 * exec.c (section_table_read_available_memory): Likewise.
4421 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4422 * target.c (target_xfer_status_to_string): Likewise.
4423 (raw_memory_xfer_partial): Likewise.
4424 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4425 * valops.c (read_value_memory): Likewise.
4426 * exec.h: Update comments.
4428 2014-02-24 Yao Qi <yao@codesourcery.com>
4430 * target.c (target_xfer_status_to_string): Rename argument err
4432 * target.h (target_xfer_status_to_string): Update declaration.
4433 Replace target_xfer_error_to_string with
4434 target_xfer_status_to_string in comment.
4436 2014-02-24 Yao Qi <yao@codesourcery.com>
4438 * mips-linux-nat.c (super_close): Update its type.
4439 (mips_linux_close): Pass 'self' to super_close.
4441 2014-02-24 Yao Qi <yao@codesourcery.com>
4443 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4444 * corefile.c (read_memory): Adjusted.
4445 * target.c (target_write_with_progress): Adjusted.
4447 2014-02-23 Yao Qi <yao@codesourcery.com>
4451 2013-10-25 Yao Qi <yao@codesourcery.com>
4453 * remote.c (remote_traceframe_info): Return early if
4454 traceframe is not selected.
4456 2013-07-19 Yao Qi <yao@codesourcery.com>
4458 * target.c (update_current_target): Change the default action
4459 of 'to_traceframe_info' from tcomplain to return_zero.
4460 * target.h (struct target_ops) <to_traceframe_info>: Add more
4463 2014-02-23 Yao Qi <yao@codesourcery.com>
4465 * valops.c (read_value_memory): Rewrite it. Call
4466 target_xfer_partial in a loop.
4467 * exec.h (section_table_available_memory): Remove declaration.
4468 Move comments to ...
4469 * exec.c (section_table_available_memory): ... here. Make it
4472 2014-02-23 Yao Qi <yao@codesourcery.com>
4474 * exec.c (section_table_read_available_memory): New function.
4475 * exec.h (section_table_read_available_memory): Declare.
4476 * ctf.c (ctf_xfer_partial): Call
4477 section_table_read_available_memory.
4478 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4480 2014-02-23 Yao Qi <yao@codesourcery.com>
4482 * ctf.c (ctf_xfer_partial): Move code to ...
4483 * exec.c (exec_read_partial_read_only): ... it. New function.
4484 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4485 * tracefile.c: Include "exec.h".
4486 * exec.h (exec_read_partial_read_only): Declare.
4488 2014-02-23 Yao Qi <yao@codesourcery.com>
4490 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4491 (tfile_has_memory): Remove.
4492 (init_tfile_ops): Don't set fields to_has_all_memory and
4493 to_has_memory of tfile_ops.
4494 * tracefile.c (tracefile_has_all_memory): New function.
4495 (tracefile_has_memory): New function.
4496 (init_tracefile_ops): Initialize fields to_has_all_memory and
4497 to_has_memory of 'ops'.
4499 2014-02-23 Yao Qi <yao@codesourcery.com>
4501 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4502 (ctf_thread_alive, ctf_get_trace_status): Remove.
4503 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4505 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4506 (tfile_has_stack, tfile_has_registers): Remove.
4507 (tfile_thread_alive): Remove.
4508 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4510 * tracefile.c (tracefile_has_stack): New function.
4511 (tracefile_has_registers): New function.
4512 (tracefile_thread_alive): New function.
4513 (tracefile_get_trace_status): New function.
4514 (init_tracefile_ops): New function.
4515 * tracefile.h (init_tracefile_ops): Declare.
4517 2014-02-23 Yao Qi <yao@codesourcery.com>
4519 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4520 (O_LARGEFILE): Likewise.
4521 (tfile_ops): Likewise.
4522 (TRACE_HEADER_SIZE): Likewise.
4523 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4524 (cur_data_size): Likewise.
4525 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4526 (tfile_close, tfile_files_info): Likewise.
4527 (tfile_get_trace_status): Likewise.
4528 (tfile_get_tracepoint_status): Likewise.
4529 (tfile_get_traceframe_address): Likewise.
4530 (tfile_trace_find, match_blocktype): Likewise.
4531 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4532 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4533 (tfile_get_trace_state_variable_value): Likewise.
4534 (tfile_has_all_memory, tfile_has_memory): Likewise.
4535 (tfile_has_stack, tfile_has_registers): Likewise.
4536 (tfile_thread_alive, build_traceframe_info): Likewise.
4537 (tfile_traceframe_info, init_tfile_ops): Likewise.
4538 (_initialize_tracepoint): Don't call init_tfile_ops
4539 and add_target_with_completer.
4540 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4541 exec.h, completer.h and filenames.h.
4542 (_initialize_tracefile_tfile): New function.
4544 2014-02-23 Yao Qi <yao@codesourcery.com>
4546 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4548 (HFILES_NO_SRCDIR): Add tracefile.h.
4549 * ctf.c: Include "tracefile.h".
4550 * tracefile.h: New file.
4551 * tracefile.c: New file
4552 * tracefile-tfile.c: New file.
4553 * tracepoint.c: Include "tracefile.h".
4554 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4555 (stop_reason_names): Add const.
4556 (trace_file_writer_xfree): Move it to tracefile.c.
4557 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4558 (trace_save_ctf): Likewise.
4559 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4560 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4561 (tfile_write_header, tfile_write_regblock_type): Likewise.
4562 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4563 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4564 (tfile_write_raw_data, tfile_end): Likewise.
4565 (tfile_trace_file_writer_new): Likewise.
4566 (free_uploaded_tp): Make it extern.
4567 (free_uploaded_tsv): Make it extern.
4568 (_initialize_tracepoint): Move code to register command 'tsave'
4570 * tracepoint.h (stop_reason_names): Declare.
4571 (struct trace_frame_write_ops): Move it to tracefile.h.
4572 (struct trace_file_write_ops): Likewise.
4573 (struct trace_file_writer): Likewise.
4574 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4576 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4581 (get_cores_used_by_process): New parameter num_cores, use it.
4582 (linux_xfer_osdata_processes): Pass num_cores to it.
4583 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4586 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4588 * target.c (memory_xfer_partial): Fix length arg in call to
4589 breakpoint_xfer_memory.
4591 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4594 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4595 number comes after the + or - signs. Adjust length of register
4596 name to be extracted.
4598 2014-02-20 Tom Tromey <tromey@redhat.com>
4600 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4601 (ada_varobj_ops): Mark "extern".
4603 2014-02-20 Tom Tromey <tromey@redhat.com>
4605 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4607 2014-02-20 Doug Evans <xdje42@gmail.com>
4609 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4610 All callers updated.
4611 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4612 All callers updated.
4613 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4614 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4616 2014-02-20 lin zuojian <manjian2006@gmail.com>
4617 Joel Brobecker <brobecker@adacore.com>
4618 Doug Evans <xdje42@gmail.com>
4621 * dwarf2read.c (struct die_info): New member in_process.
4622 (reset_die_in_process): New function.
4623 (process_die): Set it at the start, reset when returning.
4624 (inherit_abstract_dies): Only call process_die if origin_child_die
4625 not already being processed.
4627 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4629 * windows-nat.c (handle_unload_dll): Add function documentation.
4630 (do_initial_windows_stuff): Add comment explaining why we wait
4631 until after inferior initialization has finished before
4632 processing all DLLs.
4634 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4636 * windows-nat.c (get_module_name): Delete.
4637 (windows_get_exec_module_filename): New function, mostly
4638 inspired from get_module_name.
4639 (windows_pid_to_exec_file): Replace call to get_module_name
4640 by call to windows_get_exec_module_filename.
4642 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4644 * windows-nat.c (handle_load_dll): Rewrite this function's
4645 introductory comment. Remove code using get_module_name
4646 to get the DLL's name.
4648 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4650 * windows-nat.c (get_windows_debug_event): Ignore
4651 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4652 if windows_initialization_done == 0.
4653 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4654 Adjust implementation to always load all DLLs.
4655 (do_initial_windows_stuff): Replace call to
4656 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4658 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4660 * windows-nat.c (_initialize_windows_nat): Deprecate the
4661 "dll-symbols" command. Turn the "add-shared-symbol-files"
4662 and "assf" aliases into commands, and deprecate them as well.
4663 * NEWS: Add entry explaining that "dll-symbols" and its two
4664 aliases are now deprecated.
4666 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4668 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4669 new-line in debug string. Remove trailing spaces.
4671 2014-02-19 Stan Shebs <stan@codesourcery.com>
4673 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4675 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4677 * NEWS: Add entry for the new feature
4678 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4681 2014-02-19 Stan Shebs <stan@codesourcery.com>
4683 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4685 2014-02-19 Pedro Alves <palves@redhat.com>
4687 * common/ptid.h (struct ptid): Mention that process_stratum
4688 targets should prefer ptid.lwp.
4690 2014-02-19 Pedro Alves <palves@redhat.com>
4692 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4693 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4694 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4695 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4696 store remote thread ids rather than ptid.tid.
4697 (_initialize_remote): Adjust.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target.c (target_get_unwinder): Rewrite.
4702 (target_get_tailcall_unwinder): Rewrite.
4703 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4704 (record_btrace_to_get_tailcall_unwinder): New function.
4705 (init_record_btrace_ops): Update.
4706 * target.h (struct target_ops) <to_get_unwinder,
4707 to_get_tailcall_unwinder>: Now function pointers. Use
4708 TARGET_DEFAULT_RETURN.
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4714 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4720 * target-delegates.c: Rebuild.
4721 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4722 TARGET_DEFAULT_FUNC.
4723 * target.c (default_target_decr_pc_after_break): Rename from
4724 forward_target_decr_pc_after_break. Simplify.
4725 (target_decr_pc_after_break): Rely on delegation.
4727 2014-02-19 Tom Tromey <tromey@redhat.com>
4729 * target.c (update_current_target): Do not INHERIT to_doc or
4730 to_magic. Do not de_fault to_open or to_close.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * gcore.h (objfile_find_memory_regions): Declare.
4735 * gcore.c (objfile_find_memory_regions): No longer static. Add
4737 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4738 * exec.c: Include gcore.h.
4739 (exec_set_find_memory_regions): Remove.
4740 (exec_find_memory_regions): Remove.
4741 (exec_do_find_memory_regions): Remove.
4742 (init_exec_ops): Update.
4743 * defs.h (exec_set_find_memory_regions): Remove.
4745 2014-02-19 Tom Tromey <tromey@redhat.com>
4747 * target-delegates.c: Rebuild.
4748 * target.h (struct target_ops) <to_extra_thread_info,
4749 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4750 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4751 not 0, in TARGET_DEFAULT_RETURN.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.c (complete_target_initialization): Remove casts. Use
4756 return_zero_has_execution.
4757 (return_zero): Add "ignore" argument.
4758 (return_zero_has_execution): New function.
4759 (init_dummy_target): Remove casts. Use
4760 return_zero_has_execution.
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * target.c (update_current_target): Update comments. Do not
4767 2014-02-19 Tom Tromey <tromey@redhat.com>
4769 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4771 * corelow.c (core_read_description): Delegate when needed.
4772 * remote.c (remote_read_description): Delegate when needed.
4773 * target-delegates.c: Rebuild.
4774 * target.c (target_read_description): Rewrite.
4775 * target.h (struct target_ops) <to_read_description>: Update
4776 comment. Use TARGET_DEFAULT_RETURN.
4778 2014-02-19 Tom Tromey <tromey@redhat.com>
4780 * target-delegates.c: Rebuild.
4781 * target.c (update_current_target): Don't inherit or default
4783 (find_default_run_target): Check against delegate_can_run.
4784 * target.h (struct target_ops) <to_can_run>: Use
4785 TARGET_DEFAULT_RETURN.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target-delegates.c: Rebuild.
4790 * target.c (target_disconnect): Unconditionally delegate.
4791 * target.h (struct target_ops) <to_disconnect>: Use
4792 TARGET_DEFAULT_NORETURN.
4794 2014-02-19 Tom Tromey <tromey@redhat.com>
4796 * record.c (record_stop): Unconditionally delegate.
4797 * target-delegates.c: Rebuild.
4798 * target.c (target_stop_recording): Unconditionally delegate.
4799 * target.h (struct target_ops) <to_stop_recording>: Use
4800 TARGET_DEFAULT_IGNORE.
4802 2014-02-19 Tom Tromey <tromey@redhat.com>
4804 * target-delegates.c: Rebuild.
4805 * target.c (target_enable_btrace): Unconditionally delegate.
4806 * target.h (struct target_ops) <to_enable_btrace>: Use
4807 TARGET_DEFAULT_NORETURN.
4809 2014-02-19 Tom Tromey <tromey@redhat.com>
4811 * target-delegates.c: Rebuild.
4812 * target.c (target_read_btrace): Unconditionally delegate.
4813 * target.h (struct target_ops) <to_read_btrace>: Use
4814 TARGET_DEFAULT_NORETURN.
4816 2014-02-19 Tom Tromey <tromey@redhat.com>
4818 * target-delegates.c: Rebuild.
4819 * target.c (target_teardown_btrace): Unconditionally delegate.
4820 * target.h (struct target_ops) <to_teardown_btrace>: Use
4821 TARGET_DEFAULT_NORETURN.
4823 2014-02-19 Tom Tromey <tromey@redhat.com>
4825 * target-delegates.c: Rebuild.
4826 * target.c (target_disable_btrace): Unconditionally delegate.
4827 * target.h (struct target_ops) <to_disable_btrace>: Use
4828 TARGET_DEFAULT_NORETURN.
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target-delegates.c: Rebuild.
4833 * target.c (default_search_memory): New function.
4834 (simple_search_memory): Update comment.
4835 (target_search_memory): Unconditionally delegate.
4836 * target.h (struct target_ops) <to_search_memory>: Use
4837 TARGET_DEFAULT_FUNC.
4839 2014-02-19 Tom Tromey <tromey@redhat.com>
4841 * auxv.c (default_auxv_parse): No longer static.
4842 (target_auxv_parse): Unconditionally delegate.
4843 * auxv.h (default_auxv_parse): Declare.
4844 * target-delegates.c: Rebuild.
4845 * target.c: Include auxv.h.
4846 * target.h (struct target_ops) <to_auxv_parse>: Use
4847 TARGET_DEFAULT_FUNC.
4849 2014-02-19 Tom Tromey <tromey@redhat.com>
4851 * target-delegates.c: Rebuild.
4852 * target.c (target_memory_map): Unconditionally delegate.
4853 * target.h (struct target_ops) <to_memory_map>: Use
4854 TARGET_DEFAULT_RETURN.
4856 2014-02-19 Tom Tromey <tromey@redhat.com>
4858 * target-delegates.c: Rebuild.
4859 * target.c (target_thread_alive): Unconditionally delegate.
4860 * target.h (struct target_ops) <to_thread_alive>: Use
4861 TARGET_DEFAULT_RETURN.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target-delegates.c: Rebuild.
4866 * target.c (target_save_record): Unconditionally delegate.
4867 * target.h (struct target_ops) <to_save_record>: Use
4868 TARGET_DEFAULT_NORETURN.
4870 2014-02-19 Tom Tromey <tromey@redhat.com>
4872 * target-delegates.c: Rebuild.
4873 * target.c (target_delete_record): Unconditionally delegate.
4874 * target.h (struct target_ops) <to_delete_record>: Use
4875 TARGET_DEFAULT_NORETURN.
4877 2014-02-19 Tom Tromey <tromey@redhat.com>
4879 * target-delegates.c: Rebuild.
4880 * target.c (target_record_is_replaying): Unconditionally
4882 * target.h (struct target_ops) <to_record_is_replaying>: Use
4883 TARGET_DEFAULT_RETURN.
4885 2014-02-19 Tom Tromey <tromey@redhat.com>
4887 * target-delegates.c: Rebuild.
4888 * target.c (target_goto_record_begin): Unconditionally delegate.
4889 * target.h (struct target_ops) <to_goto_record_begin>: Use
4890 TARGET_DEFAULT_NORETURN.
4892 2014-02-19 Tom Tromey <tromey@redhat.com>
4894 * target-delegates.c: Rebuild.
4895 * target.c (target_goto_record_end): Unconditionally delegate.
4896 * target.h (struct target_ops) <to_goto_record_end>: Use
4897 TARGET_DEFAULT_NORETURN.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * target-delegates.c: Rebuild.
4902 * target.c (target_goto_record): Unconditionally delegate.
4903 * target.h (struct target_ops) <to_goto_record>: Use
4904 TARGET_DEFAULT_NORETURN.
4906 2014-02-19 Tom Tromey <tromey@redhat.com>
4908 * target-delegates.c: Rebuild.
4909 * target.c (target_insn_history): Unconditionally delegate.
4910 * target.h (struct target_ops) <to_insn_history>: Use
4911 TARGET_DEFAULT_NORETURN.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target-delegates.c: Rebuild.
4916 * target.c (target_insn_history_from): Unconditionally delegate.
4917 * target.h (struct target_ops) <to_insn_history_from>: Use
4918 TARGET_DEFAULT_NORETURN.
4920 2014-02-19 Tom Tromey <tromey@redhat.com>
4922 * target-delegates.c: Rebuild.
4923 * target.c (target_insn_history_range): Unconditionally delegate.
4924 * target.h (struct target_ops) <to_insn_history_range>: Use
4925 TARGET_DEFAULT_NORETURN.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (target_call_history): Unconditionally delegate.
4931 * target.h (struct target_ops) <to_call_history>: Use
4932 TARGET_DEFAULT_NORETURN.
4934 2014-02-19 Tom Tromey <tromey@redhat.com>
4936 * target-delegates.c: Rebuild.
4937 * target.c (target_call_history_from): Unconditionally delegate.
4938 * target.h (struct target_ops) <to_call_history_from>: Use
4939 TARGET_DEFAULT_NORETURN.
4941 2014-02-19 Tom Tromey <tromey@redhat.com>
4943 * target-delegates.c: Rebuild.
4944 * target.c (target_call_history_range): Unconditionally delegate.
4945 * target.h (struct target_ops) <to_call_history_range>: Use
4946 TARGET_DEFAULT_NORETURN.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target-delegates.c: Rebuild.
4951 * target.c (target_verify_memory): Unconditionally delegate.
4952 * target.h (struct target_ops) <to_verify_memory>: Use
4953 TARGET_DEFAULT_NORETURN.
4955 2014-02-19 Tom Tromey <tromey@redhat.com>
4957 * target-delegates.c: Rebuild.
4958 * target.c (target_core_of_thread): Unconditionally delegate.
4959 * target.h (struct target_ops) <to_core_of_thread>: Use
4960 TARGET_DEFAULT_RETURN.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target-delegates.c: Rebuild.
4965 * target.c (target_flash_done): Unconditionally delegate.
4966 * target.h (struct target_ops) <to_flash_done>: Use
4967 TARGET_DEFAULT_NORETURN.
4969 2014-02-19 Tom Tromey <tromey@redhat.com>
4971 * target-delegates.c: Rebuild.
4972 * target.c (target_flash_erase): Unconditionally delegate.
4973 * target.h (struct target_ops) <to_flash_erase>: Use
4974 TARGET_DEFAULT_NORETURN.
4976 2014-02-19 Tom Tromey <tromey@redhat.com>
4978 * target-delegates.c: Rebuild.
4979 * target.c (target_get_section_table): Unconditionally delegate.
4980 * target.h (struct target_ops) <to_get_section_table>: Use
4981 TARGET_DEFAULT_RETURN.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target-delegates.c: Rebuild.
4986 * target.c (target_pid_to_str): Unconditionally delegate.
4987 (init_dummy_target): Don't initialize to_pid_to_str.
4988 (default_pid_to_str): Rename from dummy_pid_to_str.
4989 * target.h (struct target_ops) <to_pid_to_str>: Use
4990 TARGET_DEFAULT_FUNC.
4992 2014-02-19 Tom Tromey <tromey@redhat.com>
4994 * target-delegates.c: Rebuild.
4995 * target.c (target_find_new_threads): Unconditionally delegate.
4996 * target.h (struct target_ops) <to_find_new_threads>: Use
4997 TARGET_DEFAULT_RETURN.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target-delegates.c: Rebuild.
5002 * target.c (target_program_signals): Unconditionally delegate.
5003 * target.h (struct target_ops) <to_program_signals>: Use
5004 TARGET_DEFAULT_IGNORE.
5006 2014-02-19 Tom Tromey <tromey@redhat.com>
5008 * target-delegates.c: Rebuild.
5009 * target.c (target_pass_signals): Unconditionally delegate.
5010 * target.h (struct target_ops) <to_pass_signals>: Use
5011 TARGET_DEFAULT_IGNORE.
5013 2014-02-19 Tom Tromey <tromey@redhat.com>
5015 * target-delegates.c: Rebuild.
5016 * target.c (default_mourn_inferior): New function.
5017 (target_mourn_inferior): Unconditionally delegate.
5018 * target.h (struct target_ops) <to_mourn_inferior>: Use
5019 TARGET_DEFAULT_FUNC.
5021 2014-02-19 Tom Tromey <tromey@redhat.com>
5023 * target-delegates.c: Rebuild.
5024 * target.c (default_follow_fork): New function.
5025 (target_follow_fork): Unconditionally delegate.
5026 * target.h (struct target_ops) <to_follow_fork>: Use
5027 TARGET_DEFAULT_FUNC.
5029 2014-02-19 Tom Tromey <tromey@redhat.com>
5031 * target-delegates.c: Rebuild.
5032 * target.c (target_kill): Unconditionally delegate.
5033 * target.h (struct target_ops) <to_kill>: Use
5034 TARGET_DEFAULT_NORETURN.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target-delegates.c: Rebuild.
5039 * target.c (target_masked_watch_num_registers): Unconditionally
5041 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5042 Use TARGET_DEFAULT_RETURN.
5044 2014-02-19 Tom Tromey <tromey@redhat.com>
5046 * target-delegates.c: Rebuild.
5047 * target.c (target_remove_mask_watchpoint): Unconditionally
5049 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5050 TARGET_DEFAULT_RETURN.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (target_insert_mask_watchpoint): Unconditionally
5057 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5058 TARGET_DEFAULT_RETURN.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * target-delegates.c: Rebuild.
5063 * target.c (target_ranged_break_num_registers): Unconditionally
5065 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5066 Use TARGET_DEFAULT_RETURN.
5068 2014-02-19 Tom Tromey <tromey@redhat.com>
5070 * target-delegates.c: Rebuild.
5071 * target.c (target_fetch_registers): Unconditionally delegate.
5072 * target.h (struct target_ops) <to_fetch_registers>: Use
5073 TARGET_DEFAULT_NORETURN.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * target-delegates.c: Rebuild.
5078 * target.c (update_current_target): Don't inherit or default
5080 * target.h (struct target_ops) <to_stop>: Use
5081 TARGET_DEFAULT_IGNORE.
5083 2014-02-19 Tom Tromey <tromey@redhat.com>
5085 * target-delegates.c: Rebuild.
5086 * target.c (update_current_target): Don't inherit or default
5087 to_can_run_breakpoint_commands.
5088 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5089 Use TARGET_DEFAULT_RETURN.
5091 2014-02-19 Tom Tromey <tromey@redhat.com>
5093 * target-delegates.c: Rebuild.
5094 * target.c (update_current_target): Don't inherit or default
5095 to_supports_evaluation_of_breakpoint_conditions.
5096 * target.h (struct target_ops)
5097 <to_supports_evaluation_of_breakpoint_conditions>: Use
5098 TARGET_DEFAULT_RETURN.
5100 2014-02-19 Tom Tromey <tromey@redhat.com>
5102 * target-delegates.c: Rebuild.
5103 * target.c (update_current_target): Don't inherit or default
5104 to_augmented_libraries_svr4_read.
5105 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5106 Use TARGET_DEFAULT_RETURN.
5108 2014-02-19 Tom Tromey <tromey@redhat.com>
5110 * target-delegates.c: Rebuild.
5111 * target.c (update_current_target): Don't inherit or default
5113 * target.h (struct target_ops) <to_can_use_agent>: Use
5114 TARGET_DEFAULT_RETURN.
5116 2014-02-19 Tom Tromey <tromey@redhat.com>
5118 * target-delegates.c: Rebuild.
5119 * target.c (update_current_target): Don't inherit or default
5121 * target.h (struct target_ops) <to_use_agent>: Use
5122 TARGET_DEFAULT_NORETURN.
5124 2014-02-19 Tom Tromey <tromey@redhat.com>
5126 * target-delegates.c: Rebuild.
5127 * target.c (update_current_target): Don't inherit or default
5129 (return_null): Remove.
5130 * target.h (struct target_ops) <to_traceframe_info>: Use
5131 TARGET_DEFAULT_RETURN.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target-delegates.c: Rebuild.
5136 * target.c (update_current_target): Don't inherit or default
5137 to_static_tracepoint_markers_by_strid.
5138 * target.h (struct target_ops)
5139 <to_static_tracepoint_markers_by_strid>: Use
5140 TARGET_DEFAULT_NORETURN.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (update_current_target): Don't inherit or default
5146 to_static_tracepoint_marker_at.
5147 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5148 Use TARGET_DEFAULT_RETURN.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * target-delegates.c: Rebuild.
5153 * target.c (update_current_target): Don't inherit or default
5155 * target.h (struct target_ops) <to_set_permissions>: Use
5156 TARGET_DEFAULT_IGNORE.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target-delegates.c: Rebuild.
5161 * target.c (update_current_target): Don't inherit or default
5163 * target.h (struct target_ops) <to_get_tib_address>: Use
5164 TARGET_DEFAULT_NORETURN.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5171 * target.h (struct target_ops) <to_set_trace_notes>: Use
5172 TARGET_DEFAULT_RETURN.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target-delegates.c: Rebuild.
5177 * target.c (update_current_target): Don't initialize
5178 to_set_trace_buffer_size.
5179 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5180 TARGET_DEFAULT_IGNORE.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target-delegates.c: Rebuild.
5185 * target.c (update_current_target): Don't inherit or default
5186 to_set_circular_trace_buffer.
5187 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5188 TARGET_DEFAULT_IGNORE.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target-delegates.c: Rebuild.
5193 * target.c (update_current_target): Don't inherit or default
5194 to_set_disconnected_tracing.
5195 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5196 TARGET_DEFAULT_IGNORE.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (update_current_target): Don't inherit or default
5202 to_get_min_fast_tracepoint_insn_len.
5203 (return_minus_one): Remove.
5204 * target.h (struct target_ops)
5205 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5207 2014-02-19 Tom Tromey <tromey@redhat.com>
5209 * target-delegates.c: Rebuild.
5210 * target.c (update_current_target): Don't inherit or default
5211 to_get_raw_trace_data.
5212 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5213 TARGET_DEFAULT_NORETURN.
5215 2014-02-19 Tom Tromey <tromey@redhat.com>
5217 * target-delegates.c: Rebuild.
5218 * target.c (update_current_target): Don't inherit or default
5219 to_upload_trace_state_variables.
5220 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5221 Use TARGET_DEFAULT_RETURN.
5223 2014-02-19 Tom Tromey <tromey@redhat.com>
5225 * target-delegates.c: Rebuild.
5226 * target.c (update_current_target): Don't inherit or default
5227 to_upload_tracepoints.
5228 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5229 TARGET_DEFAULT_RETURN.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target-delegates.c: Rebuild.
5234 * target.c (update_current_target): Don't inherit or default
5236 * target.h (struct target_ops) <to_save_trace_data>: Use
5237 TARGET_DEFAULT_NORETURN.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target-delegates.c: Rebuild.
5242 * target.c (update_current_target): Don't inherit or default
5243 to_get_trace_state_variable_value.
5244 * target.h (struct target_ops)
5245 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5247 2014-02-19 Tom Tromey <tromey@redhat.com>
5249 * target-delegates.c: Rebuild.
5250 * target.c (update_current_target): Don't inherit or default
5252 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * target-delegates.c: Rebuild.
5257 * target.c (update_current_target): Don't inherit or default
5259 * target.h (struct target_ops) <to_trace_stop>: Use
5260 TARGET_DEFAULT_NORETURN.
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target-delegates.c: Rebuild.
5265 * target.c (update_current_target): Don't inherit or default
5266 to_get_tracepoint_status.
5267 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5268 TARGET_DEFAULT_NORETURN.
5270 2014-02-19 Tom Tromey <tromey@redhat.com>
5272 * target-delegates.c: Rebuild.
5273 * target.c (update_current_target): Don't inherit or default
5274 to_get_trace_status.
5275 * target.h (struct target_ops) <to_get_trace_status>: Use
5276 TARGET_DEFAULT_RETURN.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * target-delegates.c: Rebuild.
5281 * target.c (update_current_target): Don't inherit or default
5283 * target.h (struct target_ops) <to_trace_start>: Use
5284 TARGET_DEFAULT_NORETURN.
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5288 * target-delegates.c: Rebuild.
5289 * target.c (update_current_target): Don't inherit or default
5290 to_trace_set_readonly_regions.
5291 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5292 Use TARGET_DEFAULT_NORETURN.
5294 2014-02-19 Tom Tromey <tromey@redhat.com>
5296 * target-delegates.c: Rebuild.
5297 * target.c (update_current_target): Don't inherit or default
5298 to_disable_tracepoint.
5299 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5300 TARGET_DEFAULT_NORETURN.
5302 2014-02-19 Tom Tromey <tromey@redhat.com>
5304 * target-delegates.c: Rebuild.
5305 * target.c (update_current_target): Don't inherit or default
5306 to_enable_tracepoint.
5307 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5308 TARGET_DEFAULT_NORETURN.
5310 2014-02-19 Tom Tromey <tromey@redhat.com>
5312 * target-delegates.c: Rebuild.
5313 * target.c (update_current_target): Don't inherit or default
5314 to_download_trace_state_variable.
5315 * target.h (struct target_ops) <to_download_trace_state_variable>:
5316 Use TARGET_DEFAULT_NORETURN.
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target-delegates.c: Rebuild.
5321 * target.c (update_current_target): Don't inherit or default
5322 to_can_download_tracepoint.
5323 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5324 TARGET_DEFAULT_RETURN.
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target-delegates.c: Rebuild.
5329 * target.c (update_current_target): Don't inherit or default
5330 to_download_tracepoint.
5331 * target.h (struct target_ops) <to_download_tracepoint>: Use
5332 TARGET_DEFAULT_NORETURN.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * target-delegates.c: Rebuild.
5337 * target.c (update_current_target): Don't inherit or default
5339 * target.h (struct target_ops) <to_trace_init>: Use
5340 TARGET_DEFAULT_RETURN.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target-delegates.c: Rebuild.
5345 * target.c (update_current_target): Don't inherit or default
5346 to_supports_string_tracing.
5347 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5348 TARGET_DEFAULT_RETURN.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * target-delegates.c: Rebuild.
5353 * target.c (update_current_target): Don't inherit or default
5354 to_supports_enable_disable_tracepoint.
5355 * target.h (struct target_ops)
5356 <to_supports_enable_disable_tracepoint>: Use
5357 TARGET_DEFAULT_RETURN.
5359 2014-02-19 Tom Tromey <tromey@redhat.com>
5361 * target-delegates.c: Rebuild.
5362 * target.c (update_current_target): Don't inherit or default
5363 to_supports_multi_process.
5364 * target.h (struct target_ops) <to_supports_multi_process>: Use
5365 TARGET_DEFAULT_RETURN.
5367 2014-02-19 Tom Tromey <tromey@redhat.com>
5369 * target-delegates.c: Rebuild.
5370 * target.c (update_current_target): Don't inherit or default
5371 to_get_ada_task_ptid.
5372 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5373 TARGET_DEFAULT_FUNC.
5375 2014-02-19 Tom Tromey <tromey@redhat.com>
5377 * target-delegates.c: Rebuild.
5378 * target.c (update_current_target): Don't inherit or default
5379 to_thread_architecture.
5380 * target.h (struct target_ops) <to_thread_architecture>: Use
5381 TARGET_DEFAULT_FUNC.
5383 2014-02-19 Tom Tromey <tromey@redhat.com>
5385 * target-delegates.c: Rebuild.
5386 * target.c (update_current_target): Don't inherit or default
5387 to_execution_direction.
5388 * target.h (struct target_ops) <to_execution_direction>: Use
5389 TARGET_DEFAULT_FUNC.
5391 2014-02-19 Tom Tromey <tromey@redhat.com>
5393 * target-delegates.c: Rebuild.
5394 * target.c (update_current_target): Don't inherit or default
5395 to_can_execute_reverse.
5396 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5397 TARGET_DEFAULT_RETURN.
5398 (target_can_execute_reverse): Unconditionally delegate.
5400 2014-02-19 Tom Tromey <tromey@redhat.com>
5402 * target-delegates.c: Rebuild.
5403 * target.c (update_current_target): Don't inherit or default
5405 (dummy_goto_bookmark): Remove.
5406 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5407 * target.h (struct target_ops) <to_goto_bookmark>: Use
5408 TARGET_DEFAULT_NORETURN.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target-delegates.c: Rebuild.
5413 * target.c (update_current_target): Don't inherit or default
5415 (dummy_get_bookmark): Remove.
5416 (init_dummy_target): Don't inherit or default to_get_bookmark.
5417 * target.h (struct target_ops) <to_get_bookmark>: Use
5418 TARGET_DEFAULT_NORETURN
5420 2014-02-19 Tom Tromey <tromey@redhat.com>
5422 * target-delegates.c: Rebuild.
5423 * target.c (update_current_target): Don't inherit or default
5424 to_make_corefile_notes.
5425 (init_dummy_target): Don't initialize to_make_corefile_notes.
5426 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5427 TARGET_DEFAULT_FUNC.
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target-delegates.c: Rebuild.
5432 * target.c (update_current_target): Don't inherit or default
5433 to_find_memory_regions.
5434 (init_dummy_target): Don't initialize to_find_memory_regions.
5435 * target.h (struct target_ops) <to_find_memory_regions>: Use
5436 TARGET_DEFAULT_FUNC.
5438 2014-02-19 Tom Tromey <tromey@redhat.com>
5440 * target-delegates.c: Rebuild.
5441 * target.c (update_current_target): Don't inherit or default
5443 * target.h (struct target_ops) <to_log_command>: Use
5444 TARGET_DEFAULT_IGNORE.
5445 (target_log_command): Unconditionally delegate.
5447 2014-02-19 Tom Tromey <tromey@redhat.com>
5449 * target-delegates.c: Rebuild.
5450 * target.c (update_current_target): Don't inherit or default
5451 to_pid_to_exec_file.
5452 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5453 TARGET_DEFAULT_RETURN.
5455 2014-02-19 Tom Tromey <tromey@redhat.com>
5457 * target-delegates.c: Rebuild.
5458 * target.c (update_current_target): Don't inherit or default
5460 (target_thread_name): Unconditionally delegate.
5461 * target.h (struct target_ops) <to_thread_name>: Use
5462 TARGET_DEFAULT_RETURN.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5468 to_extra_thread_info.
5469 * target.h (struct target_ops) <to_extra_thread_info>: Use
5470 TARGET_DEFAULT_RETURN.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5477 * target.h (struct target_ops) <to_has_exited>: Use
5478 TARGET_DEFAULT_RETURN..
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_set_syscall_catchpoint.
5485 (return_one): Remove.
5486 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5487 TARGET_DEFAULT_RETURN.
5489 2014-02-19 Tom Tromey <tromey@redhat.com>
5491 * target-delegates.c: Rebuild.
5492 * target.c (update_current_target): Don't inherit or default
5493 to_insert_exec_catchpoint.
5494 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5495 TARGET_DEFAULT_RETURN.
5497 2014-01-08 Tom Tromey <tromey@redhat.com>
5499 * target-delegates.c: Rebuild.
5500 * target.c (update_current_target): Don't inherit or default
5501 to_insert_exec_catchpoint.
5502 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5503 TARGET_DEFAULT_RETURN.
5505 2014-02-19 Tom Tromey <tromey@redhat.com>
5507 * target-delegates.c: Rebuild.
5508 * target.c (update_current_target): Don't inherit or default
5509 to_remove_vfork_catchpoint.
5510 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5511 TARGET_DEFAULT_RETURN.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target-delegates.c: Rebuild.
5516 * target.c (update_current_target): Don't inherit or default
5517 to_insert_vfork_catchpoint.
5518 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5519 TARGET_DEFAULT_RETURN.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target-delegates.c: Rebuild.
5524 * target.c (update_current_target): Don't inherit or default
5525 to_remove_fork_catchpoint.
5526 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5527 TARGET_DEFAULT_RETURN.
5529 2014-02-19 Tom Tromey <tromey@redhat.com>
5531 * target-delegates.c: Rebuild.
5532 * target.c (update_current_target): Don't inherit or default
5533 to_insert_fork_catchpoint.
5534 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5535 TARGET_DEFAULT_RETURN.
5537 2014-02-19 Tom Tromey <tromey@redhat.com>
5539 * target-delegates.c: Rebuild.
5540 * target.c (update_current_target): Don't inherit or default
5541 to_post_startup_inferior.
5542 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5543 TARGET_DEFAULT_IGNORE.
5545 2014-02-19 Tom Tromey <tromey@redhat.com>
5547 * target-delegates.c: Rebuild.
5548 * target.c (update_current_target): Don't inherit or default
5550 * target.h (struct target_ops) <to_load>: Use
5551 TARGET_DEFAULT_NORETURN.
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5555 * target-delegates.c: Rebuild.
5556 * target.c (update_current_target): Don't inherit or default
5558 * target.h (struct target_ops) <to_terminal_info>: Use
5559 TARGET_DEFAULT_FUNC.
5561 2014-02-19 Tom Tromey <tromey@redhat.com>
5563 * target-delegates.c: Rebuild.
5564 * target.c (update_current_target): Don't inherit or default
5565 to_terminal_save_ours.
5566 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5567 TARGET_DEFAULT_IGNORE.
5569 2014-02-19 Tom Tromey <tromey@redhat.com>
5571 * target-delegates.c: Rebuild.
5572 * target.c (update_current_target): Don't inherit or default
5574 * target.h (struct target_ops) <to_terminal_ours>: Use
5575 TARGET_DEFAULT_IGNORE.
5577 2014-02-19 Tom Tromey <tromey@redhat.com>
5579 * target-delegates.c: Rebuild.
5580 * target.c (update_current_target): Don't inherit or default
5581 to_terminal_ours_for_output.
5582 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5583 TARGET_DEFAULT_IGNORE.
5585 2014-02-19 Tom Tromey <tromey@redhat.com>
5587 * target-delegates.c: Rebuild.
5588 * target.c (update_current_target): Don't inherit or default
5589 to_terminal_inferior.
5590 * target.h (struct target_ops) <to_terminal_inferior>: Use
5591 TARGET_DEFAULT_IGNORE.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * target-delegates.c: Rebuild.
5596 * target.c (update_current_target): Don't inherit or default
5598 * target.h (struct target_ops) <to_terminal_init>: Use
5599 TARGET_DEFAULT_IGNORE.
5601 2014-02-19 Tom Tromey <tromey@redhat.com>
5603 * target-delegates.c: Rebuild.
5604 * target.c (update_current_target): Don't inherit or default
5605 to_can_accel_watchpoint_condition.
5606 * target.h (struct target_ops)
5607 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * target-delegates.c: Rebuild.
5612 * target.c (update_current_target): Don't inherit or default
5613 to_region_ok_for_hw_watchpoint.
5614 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5615 Use TARGET_DEFAULT_FUNC.
5617 2014-02-19 Tom Tromey <tromey@redhat.com>
5619 * target-delegates.c: Rebuild.
5620 * target.c (update_current_target): Don't inherit or default
5621 to_watchpoint_addr_within_range.
5622 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5623 Use TARGET_DEFAULT_FUNC.
5625 2014-02-19 Tom Tromey <tromey@redhat.com>
5627 * target-delegates.c: Rebuild.
5628 * target.c (update_current_target): Don't inherit or default
5629 to_remove_watchpoint.
5630 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5631 TARGET_DEFAULT_NORETURN.
5633 2014-02-19 Tom Tromey <tromey@redhat.com>
5635 * target-delegates.c: Rebuild.
5636 * target.c (update_current_target): Don't inherit or default
5637 to_insert_watchpoint.
5638 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5639 TARGET_DEFAULT_RETURN.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * target-delegates.c: Rebuild.
5644 * target.c (update_current_target): Don't inherit or default
5645 to_remove_hw_breakpoint.
5646 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5647 TARGET_DEFAULT_RETURN.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target-delegates.c: Rebuild.
5652 * target.c (update_current_target): Don't inherit or default
5653 to_insert_hw_breakpoint.
5654 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5655 TARGET_DEFAULT_RETURN.
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target-delegates.c: Rebuild.
5660 * target.c (update_current_target): Don't inherit or default
5661 to_can_use_hw_breakpoint.
5662 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5663 TARGET_DEFAULT_RETURN.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target-delegates.c: Rebuild.
5668 * target.c (update_current_target): Don't inherit or default
5670 * target.h (struct target_ops) <to_files_info>: Use
5671 TARGET_DEFAULT_IGNORE.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target-delegates.c: Rebuild.
5676 * target.c (update_current_target): Don't inherit or default
5678 * target.h (struct target_ops) <to_store>: Use
5679 TARGET_DEFAULT_NORETURN.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target-delegates.c: Rebuild.
5684 * target.c (update_current_target): Don't inherit or default
5686 * target.h (struct target_ops) <to_post_attach>: Use
5687 TARGET_DEFAULT_IGNORE.
5689 2014-02-19 Tom Tromey <tromey@redhat.com>
5691 * target-delegates.c: Rebuild.
5692 * target.c (update_current_target): Don't inherit or default
5694 (default_rcmd): New function.
5695 (do_monitor_command): Unconditionally delegate.
5696 * target.h (struct target_ops) <to_rmcd>: Use
5697 TARGET_DEFAULT_FUNC.
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5701 * target-delegates.c: Rebuild.
5702 * target.c (init_dummy_target): Don't initialize to_attach.
5703 (target_attach): Unconditionally delegate.
5704 * target.h (struct target_ops) <to_attach>: Use
5705 TARGET_DEFAULT_FUNC.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target-delegates.c: Rebuild.
5710 * target.c (target_detach): Unconditionally delegate.
5711 (init_dummy_target): Don't initialize to_detach.
5712 * target.h (struct target_ops) <to_detach>: Use
5713 TARGET_DEFAULT_IGNORE.
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5717 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5719 (target_augmented_libraries_svr4_read): Add argument.
5720 * target.c (update_current_target): Update.
5721 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * target.h (struct target_ops) <to_call_history_range>: Add
5728 * target.c (target_call_history_range): Add argument.
5729 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5731 (record_btrace_call_history_from): Update.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target.h (struct target_ops) <to_call_history_from>: Add
5737 * target.c (target_call_history_from): Add argument.
5738 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target.h (struct target_ops) <to_call_history>: Add argument.
5744 * target.c (target_call_history): Add argument.
5745 * record-btrace.c (record_btrace_call_history): Add 'self'
5748 2014-02-19 Tom Tromey <tromey@redhat.com>
5750 * target.h (struct target_ops) <to_insn_history_range>: Add
5752 * target.c (target_insn_history_range): Add argument.
5753 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5755 (record_btrace_insn_history_from): Update.
5757 2014-02-19 Tom Tromey <tromey@redhat.com>
5759 * target.h (struct target_ops) <to_insn_history_from>: Add
5761 * target.c (target_insn_history_from): Add argument.
5762 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * target.h (struct target_ops) <to_insn_history>: Add argument.
5768 * target.c (target_insn_history): Add argument.
5769 * record-btrace.c (record_btrace_insn_history): Add 'self'
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target.h (struct target_ops) <to_goto_record>: Add argument.
5775 * target.c (target_goto_record): Add argument.
5776 * record-full.c (record_full_goto): Add 'self' argument.
5777 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5782 * target.c (target_goto_record_end): Add argument.
5783 * record-full.c (record_full_goto_end): Add 'self' argument.
5784 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target.h (struct target_ops) <to_goto_record_begin>: Add
5790 * target.c (target_goto_record_begin): Add argument.
5791 * record-full.c (record_full_goto_begin): Add 'self' argument.
5792 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5795 2014-02-19 Tom Tromey <tromey@redhat.com>
5797 * target.h (struct target_ops) <to_record_is_replaying>: Add
5799 * target.c (target_record_is_replaying): Add argument.
5800 * record-full.c (record_full_is_replaying): Add 'self' argument.
5801 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5803 (record_btrace_xfer_partial, record_btrace_store_registers)
5804 (record_btrace_prepare_to_store, record_btrace_resume)
5805 (record_btrace_wait, record_btrace_decr_pc_after_break)
5806 (record_btrace_find_new_threads, record_btrace_thread_alive):
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * target.h (struct target_ops) <to_delete_record>: Add argument.
5812 * target.c (target_delete_record): Add argument.
5813 * record-full.c (record_full_delete): Add 'self' argument.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target.h (struct target_ops) <to_save_record>: Add argument.
5818 * target.c (target_save_record): Add argument.
5819 * record-full.c (record_full_save): Add 'self' argument.
5820 (record_full_save): Add 'self' argument.
5822 2014-02-19 Tom Tromey <tromey@redhat.com>
5824 * target.h (struct target_ops) <to_info_record>: Add argument.
5825 * target.c (target_info_record): Add argument.
5826 * record.c (info_record_command): Add argument.
5827 * record-full.c (record_full_info): Add 'self' argument.
5828 * record-btrace.c (record_btrace_info): Add 'self' argument.
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5833 * target.c (target_stop_recording): Add argument.
5834 * record.c (record_stop): Add argument.
5835 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5841 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5842 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5844 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5845 (_initialize_amd64_linux_nat): Use it.
5846 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5847 (_initialize_i386_linux_nat): Use it.
5849 2014-02-19 Tom Tromey <tromey@redhat.com>
5851 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5852 * target.c (target_teardown_btrace): Add argument.
5853 * remote.c (remote_teardown_btrace): Add 'self' argument.
5854 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5856 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5862 * target.c (target_disable_btrace): Add argument.
5863 * remote.c (remote_disable_btrace): Add 'self' argument.
5864 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5866 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5872 * target.c (target_enable_btrace): Add argument.
5873 * remote.c (remote_enable_btrace): Add 'self' argument.
5874 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5876 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5882 (target_can_use_agent): Add argument.
5883 * target.c (update_current_target): Update.
5884 * remote.c (remote_can_use_agent): Add 'self' argument.
5885 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target.h (struct target_ops) <to_use_agent>: Add argument.
5890 (target_use_agent): Add argument.
5891 * target.c (update_current_target): Update.
5892 * remote.c (remote_use_agent): Add 'self' argument.
5893 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5898 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5899 (target_traceframe_info): Add argument.
5900 * target.c (update_current_target): Update.
5901 * remote.c (remote_traceframe_info): Add 'self' argument.
5902 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target.h (target_static_tracepoint_markers_by_strid): Add
5908 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5910 * target.c (update_current_target): Update.
5911 * remote.c (struct target_ops)
5912 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5913 * linux-nat.c (struct target_ops)
5914 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5920 (target_static_tracepoint_marker_at): Add argument.
5921 * target.c (update_current_target): Update.
5922 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5928 (target_set_permissions): Add argument.
5929 * target.c (update_current_target): Update.
5930 * remote.c (remote_set_permissions): Add 'self' argument.
5931 (remote_start_remote): Update.
5933 2014-02-19 Tom Tromey <tromey@redhat.com>
5935 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5936 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5937 (target_get_tib_address): Add argument.
5938 * target.c (update_current_target): Update.
5939 * remote.c (remote_get_tib_address): Add 'self' argument.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5944 (target_set_trace_notes): Add argument.
5945 * target.c (update_current_target): Update.
5946 * remote.c (remote_set_trace_notes): Add 'self' argument.
5948 2014-02-19 Tom Tromey <tromey@redhat.com>
5950 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5952 (target_set_trace_buffer_size): Add argument.
5953 * target.c (update_current_target): Update.
5954 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5960 (target_set_circular_trace_buffer): Add argument.
5961 * target.c (update_current_target): Update.
5962 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5967 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5969 (target_set_disconnected_tracing): Add argument.
5970 * target.c (update_current_target): Update.
5971 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target.h (struct target_ops)
5976 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5977 (target_get_min_fast_tracepoint_insn_len): Add argument.
5978 * target.c (update_current_target): Update.
5979 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5986 (target_get_raw_trace_data): Add argument.
5987 * target.c (update_current_target): Update.
5988 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5994 (target_upload_trace_state_variables): Add argument.
5995 * target.c (update_current_target): Update.
5996 * remote.c (remote_upload_trace_state_variables): Add 'self'
5998 (remote_start_remote): Update.
6000 2014-02-19 Tom Tromey <tromey@redhat.com>
6002 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6004 (target_upload_tracepoints): Add argument.
6005 * target.c (update_current_target): Update.
6006 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6007 (remote_start_remote): Update.
6009 2014-02-19 Tom Tromey <tromey@redhat.com>
6011 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6012 (target_save_trace_data): Add argument.
6013 * target.c (update_current_target): Update.
6014 * remote.c (remote_save_trace_data): Add 'self' argument.
6016 2014-02-19 Tom Tromey <tromey@redhat.com>
6018 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6020 * target.h (struct target_ops)
6021 <to_get_trace_state_variable_value>: Add argument.
6022 (target_get_trace_state_variable_value): Add argument.
6023 * target.c (update_current_target): Update.
6024 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6026 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6031 * target.h (struct target_ops) <to_trace_find>: Add argument.
6032 (target_trace_find): Add argument.
6033 * target.c (update_current_target): Update.
6034 * remote.c (remote_trace_find): Add 'self' argument.
6035 * ctf.c (ctf_trace_find): Add 'self' argument.
6037 2014-02-19 Tom Tromey <tromey@redhat.com>
6039 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6040 (target_trace_stop): Add argument.
6041 * target.c (update_current_target): Update.
6042 * remote.c (remote_trace_stop): Add 'self' argument.
6044 2014-02-19 Tom Tromey <tromey@redhat.com>
6046 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6047 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6049 (target_get_tracepoint_status): Add argument.
6050 * target.c (update_current_target): Update.
6051 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6056 * target.h (struct target_ops) <to_get_trace_status>: Add
6058 (target_get_trace_status): Add argument.
6059 * target.c (update_current_target): Update.
6060 * remote.c (remote_get_trace_status): Add 'self' argument.
6061 (remote_start_remote, remote_can_download_tracepoint): Update.
6062 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6066 * target.h (struct target_ops) <to_trace_start>: Add argument.
6067 (target_trace_start): Add argument.
6068 * target.c (update_current_target): Update.
6069 * remote.c (remote_trace_start): Add 'self' argument.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6075 (target_trace_set_readonly_regions): Add argument.
6076 * target.c (update_current_target): Update.
6077 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6084 (target_disable_tracepoint): Add argument.
6085 * target.c (update_current_target): Update.
6086 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6092 (target_enable_tracepoint): Add argument.
6093 * target.c (update_current_target): Update.
6094 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target.h (struct target_ops) <to_download_trace_state_variable>:
6100 (target_download_trace_state_variable): Add argument.
6101 * target.c (update_current_target): Update.
6102 * remote.c (remote_download_trace_state_variable): Add 'self'
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6109 (target_can_download_tracepoint): Add argument.
6110 * target.c (update_current_target): Update.
6111 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6113 2014-02-19 Tom Tromey <tromey@redhat.com>
6115 * target.h (struct target_ops) <to_download_tracepoint>: Add
6117 (target_download_tracepoint): Add argument.
6118 * target.c (update_current_target): Update.
6119 * remote.c (remote_download_tracepoint): Add 'self' argument.
6121 2014-02-19 Tom Tromey <tromey@redhat.com>
6123 * target.h (struct target_ops) <to_trace_init>: Add argument.
6124 (target_trace_init): Add argument.
6125 * target.c (update_current_target): Update.
6126 * remote.c (remote_trace_init): Add 'self' argument.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6131 * target.c (target_fileio_readlink): Add argument.
6132 * remote.c (remote_hostio_readlink): Add 'self' argument.
6133 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6138 * target.c (target_fileio_unlink): Add argument.
6139 * remote.c (remote_hostio_unlink): Add 'self' argument.
6140 (remote_file_delete): Update.
6141 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6146 * target.c (target_fileio_close): Add argument.
6147 * remote.c (remote_hostio_close): Add 'self' argument.
6148 (remote_hostio_close_cleanup): Update.
6149 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6151 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6153 2014-02-19 Tom Tromey <tromey@redhat.com>
6155 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6156 * target.c (target_fileio_pread): Add argument.
6157 * remote.c (remote_hostio_pread): Add 'self' argument.
6158 (remote_bfd_iovec_pread, remote_file_get): Update.
6159 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6164 * target.c (target_fileio_pwrite): Add argument.
6165 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6166 (remote_file_put): Update.
6167 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6169 2014-02-19 Tom Tromey <tromey@redhat.com>
6171 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6172 * target.c (target_fileio_open): Add argument.
6173 * remote.c (remote_hostio_open): Add 'self' argument.
6174 (remote_bfd_iovec_open): Add 'self' argument.
6175 (remote_file_put): Add 'self' argument.
6176 (remote_file_get): Add 'self' argument.
6177 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6183 (target_can_run_breakpoint_commands): Add argument.
6184 * target.c (update_current_target): Update.
6185 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6187 (remote_insert_breakpoint): Add 'self' argument.
6188 (remote_insert_hw_breakpoint): Add 'self' argument.
6189 (remote_can_run_breakpoint_commands): Add 'self' argument.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target.h (struct target_ops)
6194 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6195 (target_supports_evaluation_of_breakpoint_conditions): Add
6197 * target.c (update_current_target): Update.
6198 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6200 (remote_insert_breakpoint): Add 'self' argument.
6201 (remote_insert_hw_breakpoint): Add 'self' argument.
6202 (remote_supports_cond_breakpoints): Add 'self' argument.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6208 (target_supports_string_tracing): Add argument.
6209 * target.c (update_current_target): Update.
6210 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target.h (struct target_ops)
6215 <to_supports_disable_randomization>: Add argument.
6216 * target.c (find_default_supports_disable_randomization): Add
6218 (target_supports_disable_randomization): Add argument.
6219 (find_default_supports_disable_randomization): Add 'self'
6221 * remote.c (extended_remote_supports_disable_randomization): Add
6223 (remote_supports_disable_randomization): Add 'self' argument.
6224 (extended_remote_create_inferior): Update.
6225 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops)
6231 <to_supports_enable_disable_tracepoint>: Add argument.
6232 (target_supports_enable_disable_tracepoint): Add argument.
6233 * target.c (update_current_target): Update.
6234 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.h (struct target_ops) <to_supports_multi_process>: Add
6241 (target_supports_multi_process): Add argument.
6242 * target.c (update_current_target): Update.
6243 * remote.c (remote_supports_multi_process): Add 'self' argument.
6244 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6246 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target.h (struct target_ops) <to_execution_direction>: Add
6253 (target_execution_direction): Add argument.
6254 * target.c (default_execution_direction): Add 'self' argument.
6255 * record-full.c (record_full_execution_direction): Add 'self'
6258 2014-02-19 Tom Tromey <tromey@redhat.com>
6260 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6262 (target_can_execute_reverse): Add argument.
6263 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6264 * record-full.c (record_full_can_execute_reverse): Add 'self'
6266 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6272 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6274 (target_get_ada_task_ptid): Add argument.
6275 * target.c (update_current_target): Update.
6276 (default_get_ada_task_ptid): Add 'self' argument.
6277 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6278 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6279 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6281 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6283 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6285 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6287 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6288 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6294 (target_goto_bookmark): Add argument.
6295 * target.c (dummy_goto_bookmark): Add 'self' argument.
6296 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6301 (target_get_bookmark): Add argument.
6302 * target.c (dummy_get_bookmark): Add 'self' argument.
6303 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6309 (target_make_corefile_notes): Add argument.
6310 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6311 * procfs.c (procfs_make_note_section): Add 'self' argument.
6312 (procfs_make_note_section): Add 'self' argument.
6313 (procfs_make_note_section): Add 'self' argument.
6314 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6316 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6317 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6318 * exec.c (exec_make_note_section): Add 'self' argument.
6319 (exec_make_note_section): Add 'self' argument.
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target.h (struct target_ops) <to_find_memory_regions>: Add
6325 (target_find_memory_regions): Add argument.
6326 * target.c (dummy_find_memory_regions): Add 'self' argument.
6327 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6328 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6329 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6330 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6331 * exec. (exec_do_find_memory_regions): New global.
6332 (exec_set_find_memory_regions): Rewrite.
6333 (exec_find_memory_regions): New function.
6334 (init_exec_ops): Use exec_find_memory_regions.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target.h (struct target_ops) <to_supports_non_stop>: Add
6340 * target.c (find_default_supports_non_stop): Add argument.
6341 (target_supports_non_stop): Add argument.
6342 (find_default_supports_non_stop): Add 'self' argument.
6343 * remote.c (remote_supports_non_stop): Add 'self' argument.
6344 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target.h (struct target_ops) <to_log_command>: Add argument.
6349 (target_log_command): Add argument.
6350 * serial.h (serial_log_command): Add 'self' argument.
6351 * serial.c (serial_log_command): Add 'self' argument.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6356 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6358 (target_pid_to_exec_file): Add argument.
6359 * target.c (debug_to_pid_to_exec_file): Add argument.
6360 (update_current_target): Update.
6361 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6362 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6363 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6364 (linux_handle_extended_wait): Update.
6365 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6366 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6367 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6368 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target.h (struct target_ops) <to_rcmd>: Add argument.
6373 (target_rcmd): Add argument.
6374 * target.c (debug_to_rcmd): Add argument.
6375 (update_current_target, do_monitor_command): Update.
6376 * remote.c (remote_rcmd): Add 'self' argument.
6377 * monitor.c (monitor_rcmd): Add 'self' argument.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * windows-nat.c (windows_stop): Add 'self' argument.
6382 * target.h (struct target_ops) <to_stop>: Add argument.
6383 * target.c (target_stop): Add argument.
6384 (debug_to_stop): Add argument.
6385 (update_current_target): Update.
6386 * remote.c (remote_stop): Add 'self' argument.
6387 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6388 (gdbsim_cntrl_c): Update.
6389 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6390 * procfs.c (procfs_stop): Add 'self' argument.
6391 * nto-procfs.c (procfs_stop): Add 'self' argument.
6392 * monitor.c (monitor_stop): Add 'self' argument.
6393 (monitor_open): Update.
6394 * linux-nat.c (linux_nat_stop): Add argument.
6395 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6396 * gnu-nat.c (gnu_stop): Add 'self' argument.
6397 * darwin-nat.c (darwin_stop): Add 'self' argument.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target.h (struct target_ops) <to_thread_name>: Add argument.
6402 * target.c (target_thread_name): Add argument.
6403 (update_current_target): Update.
6404 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target.h (struct target_ops) <to_extra_thread_info>: Add
6410 (target_extra_thread_info): Add argument.
6411 * target.c (update_current_target): Update.
6412 * remote.c (remote_threads_extra_info): Add 'self' argument.
6413 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6415 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6416 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6417 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6419 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6421 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6423 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target.h (struct target_ops) <to_program_signals>: Add argument.
6429 * target.c (target_program_signals): Add argument.
6430 * remote.c (remote_program_signals): Add 'self' argument.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6435 * target.c (target_pass_signals): Add argument.
6436 * remote.c (remote_pass_signals): Add 'self' argument.
6437 (remote_start_remote): Update.
6438 * procfs.c (procfs_pass_signals): Add 'self' argument.
6439 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6440 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6441 (linux_nat_create_inferior, linux_nat_attach): Update.
6443 2014-02-19 Tom Tromey <tromey@redhat.com>
6445 * windows-nat.c (windows_can_run): Add 'self' argument.
6446 * target.h (struct target_ops) <to_can_run>: Add argument.
6447 (target_can_run): Add argument.
6448 * target.c (debug_to_can_run): Add argument.
6449 (update_current_target): Update.
6450 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6451 * inf-child.c (inf_child_can_run): Add 'self' argument.
6452 * go32-nat.c (go32_can_run): Add 'self' argument.
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target.h (struct target_ops) <to_has_exited>: Add argument.
6457 (target_has_exited): Add argument.
6458 * target.c (debug_to_has_exited): Add argument.
6459 (update_current_target): Update.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6465 (target_set_syscall_catchpoint): Add argument.
6466 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6468 * target.c (update_current_target): Update.
6470 2014-02-19 Tom Tromey <tromey@redhat.com>
6472 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6474 (target_remove_exec_catchpoint): Add argument.
6475 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6476 (update_current_target): Update.
6477 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6484 (target_insert_exec_catchpoint): Add argument.
6485 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6486 (update_current_target): Update.
6487 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6494 (target_remove_vfork_catchpoint): Add argument.
6495 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6496 (update_current_target): Update.
6497 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6500 2014-02-19 Tom Tromey <tromey@redhat.com>
6502 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6504 (target_insert_vfork_catchpoint): Add argument.
6505 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6506 (update_current_target): Update.
6507 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6514 (target_remove_fork_catchpoint): Add argument.
6515 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6516 (update_current_target): Update.
6517 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6524 (target_insert_fork_catchpoint): Add argument.
6525 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6526 (update_current_target): Update.
6527 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6534 (target_post_startup_inferior): Add argument.
6535 * target.c (debug_to_post_startup_inferior): Add argument.
6536 (update_current_target): Update.
6537 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6539 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6541 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6543 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6545 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6547 (super_post_startup_inferior): Likewise.
6548 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6550 (super_post_startup_inferior): Likewise.
6551 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6552 Add 'self' argument.
6553 (super_post_startup_inferior): Likewise.
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * target.h (struct target_ops) <to_load>: Add argument.
6558 * target.c (target_load): Add argument.
6559 (debug_to_load): Add argument.
6560 (update_current_target): Update.
6561 * remote.c (remote_load): Add 'self' argument.
6562 * remote-sim.c (gdbsim_load): Add 'self' argument.
6563 * remote-mips.c (mips_load): Add 'self' argument.
6564 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6565 * monitor.c (monitor_load): Add 'self' argument.
6566 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6571 (target_terminal_info): Add argument.
6572 * target.c (debug_to_terminal_info): Add argument.
6573 (default_terminal_info): Likewise.
6574 * inflow.c (child_terminal_info): Add 'self' argument.
6575 * inferior.h (child_terminal_info): Add 'self' argument.
6576 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6580 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6582 (target_terminal_save_ours): Add argument.
6583 * target.c (debug_to_terminal_save_ours): Add argument.
6584 (update_current_target): Update.
6585 * inflow.c (terminal_save_ours): Add 'self' argument.
6586 * inferior.h (terminal_save_ours): Add 'self' argument.
6588 2014-02-19 Tom Tromey <tromey@redhat.com>
6590 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6591 (target_terminal_ours): Add argument.
6592 * target.c (debug_to_terminal_ours): Add argument.
6593 (update_current_target): Update.
6594 * remote.c (remote_terminal_ours): Add 'self' argument.
6595 (remote_close): Update.
6596 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6597 * inflow.c (terminal_ours): Add 'self' argument.
6598 * inferior.h (terminal_ours): Add 'self' argument.
6599 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6601 2014-02-19 Pedro Alves <palves@redhat.com>
6602 Tom Tromey <tromey@redhat.com>
6604 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6606 (target_terminal_ours_for_output): Add argument.
6607 * target.c (debug_to_terminal_ours_for_output): Add argument.
6608 (update_current_target): Update.
6609 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6610 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6611 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6613 2014-02-19 Tom Tromey <tromey@redhat.com>
6615 * target.h (struct target_ops) <to_terminal_inferior>: Add
6617 * target.c (target_terminal_inferior): Add argument.
6618 (update_current_target): Update.
6619 * remote.c (remote_terminal_inferior): Add 'self' argument.
6620 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6621 * inflow.c (terminal_inferior): Add 'self' argument.
6622 * inferior.h (terminal_inferior): Add 'self' argument.
6623 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6624 (go32_terminal_inferior): Add 'self' argument.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6629 (target_terminal_init): Add argument.
6630 * target.c (debug_to_terminal_init): Add argument.
6631 (update_current_target): Update.
6632 * inflow.c (terminal_init_inferior): Add 'self' argument.
6633 * inferior.h (terminal_init_inferior): Add 'self' argument.
6634 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6635 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6637 2014-02-19 Tom Tromey <tromey@redhat.com>
6639 * target.h (struct target_ops)
6640 <to_can_accel_watchpoint_condition>: Add argument.
6641 (target_can_accel_watchpoint_condition): Add argument.
6642 * target.c (debug_to_can_accel_watchpoint_condition): Add
6644 (update_current_target): Update.
6645 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6652 (target_region_ok_for_hw_watchpoint): Add argument.
6653 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6654 (default_region_ok_for_hw_watchpoint): Add argument.
6655 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6656 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6658 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6660 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6662 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6664 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6666 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6668 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6669 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6671 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6672 Add 'self' argument.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6678 (target_insert_watchpoint): Add argument.
6679 * target.c (debug_to_insert_watchpoint): Add argument.
6680 (update_current_target): Update.
6681 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6682 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6683 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6684 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6685 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6686 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6688 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6689 (procfs_insert_hw_watchpoint): Add 'self' argument.
6690 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6692 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6694 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6696 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6697 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6699 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6702 2014-02-19 Tom Tromey <tromey@redhat.com>
6704 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6706 (target_remove_watchpoint): Add argument.
6707 * target.c (debug_to_remove_watchpoint): Add argument.
6708 (update_current_target): Update.
6709 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6710 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6711 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6712 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6713 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6714 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6716 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6717 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6719 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6721 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6723 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6724 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6726 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6733 (target_remove_hw_breakpoint): Add argument.
6734 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6735 (update_current_target): Update.
6736 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6737 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6739 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6740 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6742 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6749 (target_insert_hw_breakpoint): Add argument.
6750 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6751 (update_current_target): Update.
6752 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6753 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6755 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6756 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6757 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6759 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6762 2014-02-19 Tom Tromey <tromey@redhat.com>
6764 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6766 (target_can_use_hardware_watchpoint): Add argument.
6767 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6768 (update_current_target): Update.
6769 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6771 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6773 * remote.c (remote_check_watch_resources): Add 'self' argument.
6774 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6775 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6777 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6778 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6780 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6782 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6784 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6786 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6788 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6790 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6791 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6793 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6798 * target.h (struct target_ops) <to_post_attach>: Add argument.
6799 (target_post_attach): Add argument.
6800 * target.c (debug_to_post_attach): Add argument.
6801 (update_current_target): Update.
6802 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6803 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6804 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6805 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6806 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6808 2014-02-19 Tom Tromey <tromey@redhat.com>
6810 * windows-nat.c (windows_close): Add 'self' argument.
6811 * tracepoint.c (tfile_close): Add 'self' argument.
6812 * target.h (struct target_ops) <to_close>: Add argument.
6813 * target.c (target_close): Add argument.
6814 (update_current_target): Update.
6815 * remote.c (remote_close): Add 'self' argument.
6816 * remote-sim.c (gdbsim_close): Add 'self' argument.
6817 * remote-mips.c (mips_close): Add 'self' argument.
6818 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6819 * record-full.c (record_full_close): Add 'self' argument.
6820 * record-btrace.c (record_btrace_close): Add 'self' argument.
6821 * monitor.h (monitor_close): Add 'self' argument.
6822 * monitor.c (monitor_close): Add 'self' argument.
6823 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6824 * linux-nat.c (linux_nat_close): Add argument.
6825 * go32-nat.c (go32_close): Add 'self' argument.
6826 * exec.c (exec_close_1): Add 'self' argument.
6827 * ctf.c (ctf_close): Add 'self' argument.
6828 * corelow.c (core_close): Add 'self' argument.
6829 (core_close_cleanup): Update.
6830 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6831 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * remote.c (remote_load): New function.
6836 (init_remote_ops): Use it.
6838 2014-02-19 Tom Tromey <tromey@redhat.com>
6840 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6842 * common/linux-btrace.h (linux_supports_btrace): Update.
6843 * remote.c (remote_supports_btrace): Add "self" argument.
6844 * target-delegates.c: Rebuild.
6845 * target.c (target_supports_btrace): Remove.
6846 * target.h (struct target_ops) <to_supports_btrace>: Add
6847 target_ops argument.
6848 (target_supports_btrace): New define.
6850 2014-02-19 Tom Tromey <tromey@redhat.com>
6852 * record-full.c (record_full_beneath_to_resume_ops)
6853 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6854 (record_full_beneath_to_wait)
6855 (record_full_beneath_to_store_registers_ops)
6856 (record_full_beneath_to_store_registers)
6857 (record_full_beneath_to_xfer_partial_ops)
6858 (record_full_beneath_to_xfer_partial)
6859 (record_full_beneath_to_insert_breakpoint_ops)
6860 (record_full_beneath_to_insert_breakpoint)
6861 (record_full_beneath_to_remove_breakpoint_ops)
6862 (record_full_beneath_to_remove_breakpoint)
6863 (record_full_beneath_to_stopped_by_watchpoint)
6864 (record_full_beneath_to_stopped_data_address)
6865 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6866 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6867 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6868 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6869 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6870 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6871 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6872 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6873 (record_full_resume, record_full_wait_1)
6874 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6875 (record_full_store_registers, record_full_xfer_partial)
6876 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6877 (record_full_async, record_full_core_xfer_partial): Use target
6879 * target-delegates.c: Rebuild.
6880 * target.c (current_xfer_partial): Remove.
6881 (update_current_target): Do not INHERIT or de_fault
6882 to_insert_breakpoint, to_remove_breakpoint,
6883 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6884 to_is_async_p, to_async. Do not set to_xfer_partial field.
6885 (default_xfer_partial): Simplify.
6886 (current_xfer_partial): Remove.
6887 (target_wait, target_resume): Simplify.
6888 (find_default_can_async_p, find_default_is_async_p): Update.
6889 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6890 to_xfer_partial, to_stopped_by_watchpoint,
6891 to_stopped_data_address.
6892 (target_store_registers): Simplify.
6893 (forward_target_remove_breakpoint)
6894 (forward_target_insert_breakpoint): Remove.
6895 (target_remove_breakpoint, target_insert_breakpoint)
6896 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6897 * target.h (struct target_ops) <to_resume, to_wait,
6898 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6899 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6900 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6902 (forward_target_remove_breakpoint)
6903 (forward_target_insert_breakpoint): Remove.
6904 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6906 (record_btrace_insert_breakpoint): Delegate directly.
6908 2014-02-19 Tom Tromey <tromey@redhat.com>
6911 * target-delegates.c: New file.
6912 * target.c: Include target-delegates.c.
6913 (init_dummy_target): Call install_dummy_methods.
6914 (complete_target_initialization): Call install_delegators.
6915 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6916 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6917 * make-target-delegates: New file.
6919 2014-02-19 Tom Tromey <tromey@redhat.com>
6921 * record.c (find_record_target): Use find_target_at.
6922 * target.c (find_target_at): New function.
6923 * target.h (find_target_at): Declare.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6929 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6931 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6932 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6934 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6936 * linux-nat.c (save_sigtrap): Update.
6937 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6938 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6939 (linux_nat_close): Update.
6940 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6942 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6944 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6945 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6946 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6947 (tmp_to_async): Add 'ops' argument.
6948 (record_full_stopped_by_watchpoint, record_full_async)
6949 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6951 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6952 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6953 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6954 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6955 (remote_is_async_p, remote_async): Add 'ops' argument.
6956 (remote_stopped_data_address): Update.
6957 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6958 * target.c (update_current_target)
6959 (find_default_can_async_p, find_default_is_async_p): Update.
6960 (init_dummy_target): Update.
6961 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6962 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6963 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6964 (target_can_async_p, target_is_async_p, target_async)
6965 (target_stopped_by_watchpoint): Update.
6967 2014-02-19 Yao Qi <yao@codesourcery.com>
6970 * gdbarch.sh: Remove startup_gdbarch.
6971 * gdbarch.c: Regenerated.
6972 * gdbarch.h: Likewise.
6974 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6976 * rl78-tdep.c (rl78_g10_register_name): New function.
6977 (rl78_return_value): Add g10 support.
6978 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6981 2014-02-17 Doug Evans <xdje42@gmail.com>
6983 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6984 (SUBDIR_GUILE_SRCS): Ditto.
6985 (scm-gsmob.o): Ditto.
6987 2014-02-17 Yao Qi <yao@codesourcery.com>
6989 * gnu-nat.c (ILL_RPC): Declare defined function.
6991 2014-02-17 Yao Qi <yao@codesourcery.com>
6993 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6994 mach_msg_type_number_t.
6995 (gnu_write_inferior): Likewise.
6997 2014-02-17 Yao Qi <yao@codesourcery.com>
6999 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7001 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7002 (inf_validate_procs, inf_signal): Likewise.
7003 (S_exception_raise_request): Likewise.
7004 (do_mach_notify_dead_name): Likewise.
7005 (steal_exc_port): Likewise.
7006 (gnu_read_inferior): Change 'copy_count''s type to
7007 mach_msg_type_number_t.
7008 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7011 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7013 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7014 flag. Adjust all users; in particular...
7015 (gnu_wait): ..., don't decrement its value in here...
7016 (gnu_create_inferior): ..., and instead set the flag in here,
7017 around the startup_inferior call, and call that one with
7018 START_INFERIOR_TRAPS_EXPECTED.
7020 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7021 (ILL_RPC): ... new macro.
7022 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7023 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7024 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7025 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7026 functions with ILL_RPC macro.
7027 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7028 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7029 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7030 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7031 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7032 (S_proc_getlogin_reply, S_proc_getsid_reply)
7033 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7034 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7035 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7036 (S_proc_getnports_reply, S_proc_is_important_reply)
7037 (S_proc_get_code_reply): New stub functions, generated with
7040 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7041 collected the type check structures.
7043 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7045 2014-02-14 Doug Evans <dje@google.com>
7047 * target.c (target_write_partial): Fix result type.
7049 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7051 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7052 the proper offsets to access fpregset_t.
7054 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7056 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7057 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7058 * h8300-tdep.c (setmachinelist): Remove global.
7059 * hppa-tdep.c (hppa_sigtramp): Remove global.
7060 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7061 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7062 * ravenscar-thread.c (update_target_observer): Remove global.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7065 2014-02-12 Tom Tromey <tromey@redhat.com>
7067 * common/rsp-low.c: Update comments.
7068 * common/rsp-low.h: Update comments.
7070 2014-02-12 Tom Tromey <tromey@redhat.com>
7072 * common/rsp-low.c (convert_ascii_to_int): Remove.
7073 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7075 2014-02-12 Tom Tromey <tromey@redhat.com>
7077 * common/rsp-low.h (unhexify): Don't declare.
7078 * common/rsp-low.c (unhexify): Remove.
7080 2014-02-12 Tom Tromey <tromey@redhat.com>
7082 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7083 * common/rsp-low.c (convert_int_to_ascii): Remove.
7085 2014-02-12 Tom Tromey <tromey@redhat.com>
7087 * common/rsp-low.h (hexify): Don't declare.
7088 * common/rsp-low.c (hexify): Remove.
7090 2014-02-12 Tom Tromey <tromey@redhat.com>
7092 * common/rsp-low.c (hexify): Never take strlen of argument.
7094 2014-02-12 Tom Tromey <tromey@redhat.com>
7096 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7097 * remote.c (extended_remote_run, remote_rcmd)
7098 (remote_download_trace_state_variable, remote_save_trace_data)
7099 (remote_set_trace_notes): Update.
7100 * tracepoint.c (encode_source_string, tfile_write_status)
7101 (tfile_write_uploaded_tsv): Update.
7103 2014-02-12 Tom Tromey <tromey@redhat.com>
7105 * tracepoint.c: Include rsp-low.h.
7106 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7107 * remote.c: Include rsp-low.h.
7108 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7109 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7110 (remote_unescape_input): Move to common/rsp-low.c.
7111 * common/rsp-low.h: New file.
7112 * common/rsp-low.c: New file.
7113 * Makefile.in (SFILES): Add common/rsp-low.c.
7114 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7115 (COMMON_OBS): Add rsp-low.o.
7116 (rsp-low.o): New target.
7118 2014-02-12 Tom Tromey <tromey@redhat.com>
7120 * utils.h: Include print-utils.h.
7121 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7122 (int_string, core_addr_to_string, core_addr_to_string_nz)
7123 (hex_string, hex_string_custom): Don't declare.
7124 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7125 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7126 (hex_string_custom, int_string, core_addr_to_string)
7127 (core_addr_to_string_nz, host_address_to_string): Move to
7128 common/print-utils.c.
7129 * common/print-utils.h: New file.
7130 * common/print-utils.c: New file
7131 * Makefile.in (SFILES): Add common/print-utils.c.
7132 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7133 (COMMON_OBS): Add print-utils.o.
7134 (print-utils.o): New target.
7136 2014-02-12 Tom Tromey <tromey@redhat.com>
7138 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7140 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7142 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7144 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7146 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7147 if a PT_IO ptrace request returns sucessfully but indicates that 0
7148 bytes were transferred.
7150 2014-02-12 Pedro Alves <palves@redhat.com>
7151 Kevin Buettner <kevinb@redhat.com>
7153 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7154 TYPE_INSTANCE_FLAG_CODE_SPACE.
7156 2014-02-12 Pedro Alves <palves@redhat.com>
7158 * h8300-tdep.c (pseudo_from_raw_register)
7159 (raw_from_pseudo_register): New functions.
7160 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7163 2014-02-12 Pedro Alves <palves@redhat.com>
7165 * h8300-tdep.c (h8300_register_sim_regno): New function.
7166 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7167 gdbarch_register_sim_regno hook.
7169 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7171 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7173 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7175 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7177 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7179 * obsd-tdep.h (obsd_init_abi): New prototype.
7180 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7181 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7182 (obsd_init_abi): New functions.
7183 * i386obsd-tdep.c: Include "obsd-tdep.h".
7184 (i386obsd_init_abi): Call obsd_init_abi.
7185 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7186 (amd64obsd_init_abi): Call obsd_init_abi.
7187 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7188 obsd-tdep.c to gdb_target_obs.
7190 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7192 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7193 double float arguments to 16-byte in the argument slots.
7195 2014-02-11 Doug Evans <xdje42@gmail.com>
7197 * configure.ac: Don't crash if pkg-config is not found and guile
7198 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7200 * configure: Regenerate.
7202 2014-02-11 Yao Qi <yao@codesourcery.com>
7204 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7205 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7206 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7207 * gnu-nat.c (gnu_xfer_memory): Likewise.
7208 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7209 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7210 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7211 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7213 2014-02-11 Yao Qi <yao@codesourcery.com>
7215 * target.h (enum target_xfer_error): Rename to ...
7216 (enum target_xfer_status): ... it. New. All users updated.
7217 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7219 (TARGET_XFER_STATUS_ERROR_P): New macro.
7220 (target_xfer_error_to_string): Remove declaration.
7221 (target_xfer_status_to_string): Declare.
7222 (target_xfer_partial_ftype): Adjust it.
7223 (struct target_ops) <to_xfer_partial>: Return
7224 target_xfer_status. Add argument xfered_len. Update
7226 * target.c (target_xfer_error_to_string): Rename to ...
7227 (target_xfer_status_to_string): ... it. New. All callers
7229 (target_read_live_memory): Likewise. Call target_xfer_partial
7230 instead of target_read.
7231 (memory_xfer_live_readonly_partial): Return
7232 target_xfer_status. Add argument xfered_len.
7233 (raw_memory_xfer_partial): Likewise.
7234 (memory_xfer_partial_1): Likewise.
7235 (memory_xfer_partial): Likewise.
7236 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7237 properly. Update debug message.
7238 (default_xfer_partial, current_xfer_partial): Likewise.
7239 (target_write_partial): Likewise.
7240 (target_read_partial): Likewise. All callers updated.
7241 (read_whatever_is_readable): Likewise.
7242 (target_write_with_progress): Likewise.
7243 (target_read_alloc_1): Likewise.
7245 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7246 * auxv.c (procfs_xfer_auxv): Likewise.
7247 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7248 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7249 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7250 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7251 * corefile.c (read_memory): Adjust.
7252 * corelow.c (core_xfer_partial): Likewise.
7253 * ctf.c (ctf_xfer_partial): Likewise.
7254 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7256 (darwin_xfer_partial): Likewise.
7257 * exec.c (section_table_xfer_memory_partial): Likewise. All
7259 (exec_xfer_partial): Likewise.
7260 * exec.h (section_table_xfer_memory_partial): Update
7262 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7264 (gnu_xfer_partial): Likewise.
7265 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7266 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7267 (ia64_hpux_xfer_solib_got): Likewise.
7268 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7269 type of 'partial_len' to ULONGEST.
7270 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7271 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7272 (linux_nat_xfer_partial): Likewise.
7273 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7274 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7275 * monitor.c (monitor_xfer_memory): Likewise.
7276 (monitor_xfer_partial): Likewise.
7277 * procfs.c (procfs_xfer_partial): Likewise.
7278 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7279 * record-full.c (record_full_xfer_partial): Likewise.
7280 (record_full_core_xfer_partial): Likewise.
7281 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7282 (gdbsim_xfer_partial): Likewise.
7283 * remote.c (remote_write_bytes_aux): Likewise. All callers
7285 (remote_write_bytes, remote_read_bytes): Likewise. All
7287 (remote_flash_erase): Likewise. All callers updated.
7288 (remote_write_qxfer): Likewise. All callers updated.
7289 (remote_read_qxfer): Likewise. All callers updated.
7290 (remote_xfer_partial): Likewise.
7291 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7292 (rs6000_xfer_shared_libraries): Likewise.
7293 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7294 (sol_thread_xfer_partial): Likewise.
7295 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7296 (sparc_xfer_partial): Likewise.
7297 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7299 (spu_xfer_partial): Likewise.
7300 * spu-multiarch.c (spu_xfer_partial): Likewise.
7301 * tracepoint.c (tfile_xfer_partial): Likewise.
7302 * windows-nat.c (windows_xfer_memory): Likewise.
7303 (windows_xfer_shared_libraries): Likewise.
7304 (windows_xfer_partial): Likewise.
7305 * valprint.c: Replace 'target_xfer_error' with
7306 'target_xfer_status' in comments.
7308 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7310 Checked in by Joel Brobecker <brobecker@adacore.com>.
7311 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7313 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7315 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7316 function parameters.
7318 2014-02-10 Will Newton <will.newton@linaro.org>
7320 * elfread.c (elf_rel_plt_read): Look for a .got section if
7321 looking up .got.plt fails.
7322 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7323 on address passed to elf_gnu_ifunc_record_cache.
7324 (elf_gnu_ifunc_resolve_addr): Likewise.
7325 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7327 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7329 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7330 (X_RETTURN): New macro.
7331 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7333 * sparc64-tdep.c (sparc64_init_abi): Hook
7334 sparc_in_function_epilogue_p.
7336 2014-02-10 Gary Benson <gbenson@redhat.com>
7338 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7339 Rename name_matcher to symbol_matcher.
7341 2014-02-10 Gary Benson <gbenson@redhat.com>
7343 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7344 Use expand_symtabs_file_matcher_ftype and
7345 expand_symtabs_symbol_matcher_ftype.
7347 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7349 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7350 (struct ada_symbol_cache): New.
7351 (ada_free_symbol_cache): Forward declare.
7352 (struct ada_pspace_data): New.
7353 (ada_pspace_data_handle): New static global.
7354 (get_ada_pspace_data, ada_pspace_data_cleanup)
7355 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7356 (cache_space, cache): Delete, now folded inside struct
7358 (ada_get_symbol_cache): New function.
7359 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7361 (_initialize_ada_language): Remove initialization of cache_space.
7362 Move call to observer_attach_inferior_exit up, grouping it
7363 with the other observer registrations inside this function.
7364 Rename command to be more general. Add call to
7365 register_program_space_data_with_cleanup.
7367 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7369 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7370 ada_new_objfile_observer.
7371 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7372 (_initialize_tasks): Update uses of ada_new_objfile_observer
7373 and ada_tasks_normal_stop_observer.
7375 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7377 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7378 returned by the 'Length attribute to integer.
7380 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7382 * ada-lang.c (_initialize_ada_language): Initialize
7383 cache_space obstack.
7385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7387 * ada-lang.c (HASH_SIZE): New macro.
7388 (struct cache_entry): New type.
7389 (cache_space, cache): New static globals.
7390 (ada_clear_symbol_cache, find_entry): New functions.
7391 (lookup_cached_symbol, cache_symbol): Implement.
7392 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7393 (_initialize_ada_language): Attach ada_new_objfile_observer
7394 and ada_free_objfile_observer.
7396 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7398 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7399 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7400 struct block * parameter.
7401 (ada_lookup_symbol_list_worker): Constify local variable "block".
7402 Remove cast which is no longer necessary.
7404 2014-02-10 Doug Evans <xdje42@gmail.com>
7406 Add Guile as an extension language.
7407 * NEWS: Mention Guile scripting.
7408 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7409 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7410 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7411 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7412 (CLIBS): Add GUILE_LIBS.
7413 (install-guile): New rule.
7414 (guile.o): New rule.
7415 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7416 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7417 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7418 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7419 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7420 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7421 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7422 * configure.ac: New option --with-guile.
7423 * configure: Regenerate.
7424 * config.in: Regenerate.
7425 * auto-load.c: Remove #include "python/python.h". Add #include
7426 "gdb/section-scripts.h".
7427 (source_section_scripts): Handle Guile scripts.
7428 (_initialize_auto_load): Add name of Guile objfile script to
7429 scripts-directory help text.
7430 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7431 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7432 (struct breakpoint): New member scm_bp_object.
7433 * defs.h (enum command_control_type): New value guile_control.
7434 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7436 (show_user): Update comment.
7437 (_initialize_cli_cmds): Update help text for "show user". Update help
7438 text for max-user-call-depth.
7439 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7441 (multi_line_command_p): Add guile_control.
7442 (print_command_lines): Handle guile_control.
7443 (execute_control_command, recurse_read_control_structure): Ditto.
7444 (process_next_line): Recognize "guile" commands.
7445 * disasm.c (gdb_disassemble_info): Make non-static.
7446 * disasm.h: #include "dis-asm.h".
7447 (struct gdbarch): Add forward decl.
7448 (gdb_disassemble_info): Declare.
7449 * extension.c: #include "guile/guile.h".
7450 (extension_languages): Add guile.
7451 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7452 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7453 * gdbtypes.c (get_unsigned_type_max): New function.
7454 (get_signed_type_minmax): New function.
7455 * gdbtypes.h (get_unsigned_type_max): Declare.
7456 (get_signed_type_minmax): Declare.
7457 * guile/README: New file.
7458 * guile/guile-internal.h: New file.
7459 * guile/guile.c: New file.
7460 * guile/guile.h: New file.
7461 * guile/scm-arch.c: New file.
7462 * guile/scm-auto-load.c: New file.
7463 * guile/scm-block.c: New file.
7464 * guile/scm-breakpoint.c: New file.
7465 * guile/scm-disasm.c: New file.
7466 * guile/scm-exception.c: New file.
7467 * guile/scm-frame.c: New file.
7468 * guile/scm-gsmob.c: New file.
7469 * guile/scm-iterator.c: New file.
7470 * guile/scm-lazy-string.c: New file.
7471 * guile/scm-math.c: New file.
7472 * guile/scm-objfile.c: New file.
7473 * guile/scm-ports.c: New file.
7474 * guile/scm-pretty-print.c: New file.
7475 * guile/scm-safe-call.c: New file.
7476 * guile/scm-string.c: New file.
7477 * guile/scm-symbol.c: New file.
7478 * guile/scm-symtab.c: New file.
7479 * guile/scm-type.c: New file.
7480 * guile/scm-utils.c: New file.
7481 * guile/scm-value.c: New file.
7482 * guile/lib/gdb.scm: New file.
7483 * guile/lib/gdb/boot.scm: New file.
7484 * guile/lib/gdb/experimental.scm: New file.
7485 * guile/lib/gdb/init.scm: New file.
7486 * guile/lib/gdb/iterator.scm: New file.
7487 * guile/lib/gdb/printing.scm: New file.
7488 * guile/lib/gdb/types.scm: New file.
7489 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7490 (VPATH): Add $(GUILE_SRCDIR).
7491 (GUILE_DIR): New variable.
7492 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7493 (all): Add stamp-guile dependency.
7494 (stamp-guile): New rule.
7495 (clean-guile, install-guile, uninstall-guile): New rules.
7496 (install-only): Add install-guile dependency.
7497 (uninstall): Add uninstall-guile dependency.
7498 (clean): Add clean-guile dependency.
7500 2014-02-09 Doug Evans <xdje42@gmail.com>
7502 Revert this patch (which I approved, mea culpa).
7504 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7506 * Makefile.in (all-lib): Remove.
7507 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7509 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7511 Fix Python stack corruption.
7512 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7515 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7517 * Makefile.in (all-lib): Remove.
7518 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7520 2014-02-07 Doug Evans <dje@google.com>
7522 * extension-priv.h (extension_language_script_ops): Add comment.
7523 (extension_language_ops): Add comment.
7524 (active_ext_lang_state): Fix typo in comment.
7526 2014-02-07 Pedro Alves <palves@redhat.com>
7528 PR breakpoints/16292
7529 * infrun.c (handle_signal_stop) <signal arrives while stepping
7530 over a breakpoint>: Switch back to the stepping thread.
7532 2014-02-07 Yao Qi <yao@codesourcery.com>
7534 * target.c (target_xfer_partial): Return zero if LEN is zero.
7536 2014-02-07 Yao Qi <yao@codesourcery.com>
7538 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7539 (ld_so_xfer_auxv): Likewise.
7540 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7541 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7542 * corelow.c (core_xfer_partial): Likewise.
7543 * ctf.c (ctf_xfer_partial): Likewise.
7544 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7545 (darwin_xfer_partial): Likewise.
7546 * exec.c (exec_xfer_partial): Likewise.
7547 * gnu-nat.c (gnu_xfer_partial): Likewise.
7548 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7549 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7550 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7551 * linux-nat.c (linux_xfer_siginfo): Likewise.
7552 (linux_proc_xfer_spu): Likewise.
7553 * procfs.c (procfs_xfer_partial): Likewise.
7554 * record-full.c (record_full_xfer_partial): Likewise.
7555 (record_full_core_xfer_partial): Likewise.
7556 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7557 * remote.c (remote_write_qxfer): Likewise.
7558 (remote_write_qxfer, remote_read_qxfer): Likewise.
7559 (remote_xfer_partial): Likewise.
7560 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7561 (rs6000_xfer_shared_libraries): Likewise.
7562 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7563 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7564 (spu_xfer_partial): Likewise.
7565 * target.c (memory_xfer_partial_1): Likewise.
7566 * tracepoint.c (tfile_xfer_partial): Likewise.
7567 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7568 (windows_xfer_partial): Likewise.
7570 2014-02-07 Yao Qi <yao@codesourcery.com>
7572 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7574 (core_xfer_shared_libraries_aix): Likewise.
7575 * gdbarch.c, gdbarch.h: Regenerated.
7576 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7577 ULONGEST. Change 'len_avail' type to ULONGEST.
7578 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7579 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7581 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7583 2014-02-07 Yao Qi <yao@codesourcery.com>
7585 * corefile.c (memory_error): Get 'exception' from ERR and pass
7586 'exception' to throw_error.
7588 2014-02-06 Doug Evans <xdje42@gmail.com>
7590 * configure.ac (libpython checking): Remove all but python.o from
7591 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7592 * configure: Regenerate.
7594 * Makefile.in (SFILES): Add extension.c.
7595 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7596 (COMMON_OBS): Add extension.o.
7597 * extension.h: New file.
7598 * extension-priv.h: New file.
7599 * extension.c: New file.
7601 * python/python-internal.h: #include "extension.h".
7602 (gdbpy_auto_load_enabled): Declare.
7603 (gdbpy_apply_val_pretty_printer): Declare.
7604 (gdbpy_apply_frame_filter): Declare.
7605 (gdbpy_preserve_values): Declare.
7606 (gdbpy_breakpoint_cond_says_stop): Declare.
7607 (gdbpy_breakpoint_has_cond): Declare.
7608 (void source_python_script_for_objfile): Delete.
7609 * python/python.c: #include "extension-priv.h".
7610 Delete inclusion of "observer.h".
7611 (extension_language_python): Moved here and renamed from
7612 script_language_python in py-auto-load.c.
7613 Redefined to be of type extension_language_defn.
7614 (python_extension_script_ops): New global.
7615 (python_extension_ops): New global.
7616 (struct python_env): New member previous_active.
7617 (restore_python_env): Call restore_active_ext_lang.
7618 (ensure_python_env): Call set_active_ext_lang.
7619 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7621 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7623 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7625 (gdbpy_eval_from_control_command): Renamed from
7626 eval_python_from_control_command, made static. New arg extlang.
7627 (gdbpy_source_script) Renamed from source_python_script, made static.
7629 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7630 result to int. New arg extlang.
7631 (gdbpy_source_objfile_script): Renamed from
7632 source_python_script_for_objfile, made static. New arg extlang.
7633 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7634 static. New args extlang, extlang_printers. Change result type to
7636 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7637 static. New arg extlang. Rename arg printers to extlang_printers
7638 and change type to ext_lang_type_printers *.
7639 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7640 static. Replace argument arg with extlang, extlang_printers.
7641 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7642 (!HAVE_PYTHON, source_python_script): Delete.
7643 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7644 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7645 (!HAVE_PYTHON, start_type_printers): Delete.
7646 (!HAVE_PYTHON, apply_type_printers): Delete.
7647 (!HAVE_PYTHON, free_type_printers): Delete.
7648 (_initialize_python): Delete call to observer_attach_before_prompt.
7649 (finalize_python): Set/restore active extension language.
7650 (gdbpy_finish_initialization) Renamed from
7651 finish_python_initialization, made static. New arg extlang.
7652 (gdbpy_initialized): New function.
7653 * python/python.h: #include "extension.h". Delete #include
7654 "value.h", "mi/mi-cmds.h".
7655 (extension_language_python): Declare.
7656 (GDBPY_AUTO_FILE_NAME): Delete.
7657 (enum py_bt_status): Moved to extension.h and renamed to
7659 (enum frame_filter_flags): Moved to extension.h.
7660 (enum py_frame_args): Moved to extension.h and renamed to
7661 ext_lang_frame_args.
7662 (finish_python_initialization): Delete.
7663 (eval_python_from_control_command): Delete.
7664 (source_python_script): Delete.
7665 (apply_val_pretty_printer): Delete.
7666 (apply_frame_filter): Delete.
7667 (preserve_python_values): Delete.
7668 (gdbpy_script_language_defn): Delete.
7669 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7670 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7672 * auto-load.c: #include "extension.h".
7673 (GDB_AUTO_FILE_NAME): Delete.
7674 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7675 (script_language_gdb): Delete, moved to extension.c and renamed to
7676 extension_language_gdb.
7677 (source_gdb_script_for_objfile): Delete.
7678 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7679 (loaded_script): Change type of language member to
7680 struct extension_language_defn *.
7681 (init_loaded_scripts_info): Initialize
7682 unsupported_script_warning_printed.
7683 (maybe_add_script): Make static. Change type of language arg to
7684 struct extension_language_defn *.
7685 (clear_section_scripts): Reset unsupported_script_warning_printed.
7686 (auto_load_objfile_script_1): Rewrite to use extension language API.
7687 (auto_load_objfile_script): Make public. Remove support-compiled-in
7688 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7689 (source_section_scripts): Rewrite to use extension language API.
7690 (load_auto_scripts_for_objfile): Rewrite to use
7691 auto_load_scripts_for_objfile.
7692 (collect_matching_scripts_data): Change type of language member to
7693 struct extension_language_defn *.
7694 (auto_load_info_scripts): Change type of language arg to
7695 struct extension_language_defn *.
7696 (unsupported_script_warning_print): New function.
7697 (script_not_found_warning_print): Make static.
7698 (_initialize_auto_load): Rewrite construction of scripts-directory
7700 * auto-load.h (struct objfile): Add forward decl.
7701 (struct script_language): Delete.
7702 (struct auto_load_pspace_info): Add forward decl.
7703 (struct extension_language_defn): Add forward decl.
7704 (maybe_add_script): Delete.
7705 (auto_load_objfile_script): Declare.
7706 (script_not_found_warning_print): Delete.
7707 (auto_load_info_scripts): Update prototype.
7708 (auto_load_gdb_scripts_enabled): Declare.
7709 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7710 auto_load_python_scripts_enabled and made public.
7711 (script_language_python): Delete, moved to python.c.
7712 (gdbpy_script_language_defn): Delete.
7713 (info_auto_load_python_scripts): Update to use
7714 extension_language_python.
7716 * breakpoint.c (condition_command): Replace call to
7717 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7718 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7719 with call to breakpoint_ext_lang_cond_says_stop.
7720 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7721 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7722 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7723 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7725 (local_setattro): Print name of extension language with existing
7728 * valprint.c (val_print, value_print): Update to call
7729 apply_ext_lang_val_pretty_printer.
7730 * cp-valprint.c (cp_print_value): Update call to
7731 apply_ext_lang_val_pretty_printer.
7732 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7733 (gdbpy_apply_val_pretty_printer): Renamed from
7734 apply_val_pretty_printer. New arg extlang.
7735 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7737 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7738 extension language API.
7739 * cli/cli-script.c (execute_control_command): Update to call
7740 eval_ext_lang_from_control_command.
7742 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7743 enum ext_lang_bt_status values. Update call to
7744 apply_ext_lang_frame_filter.
7745 (mi_cmd_stack_list_locals): Ditto.
7746 (mi_cmd_stack_list_args): Ditto.
7747 (mi_cmd_stack_list_variables): Ditto.
7748 * mi/mi-main.c: Delete #include "python/python-internal.h".
7749 Add #include "extension.h".
7750 (mi_cmd_list_features): Replace reference to python internal variable
7751 gdb_python_initialized with call to ext_lang_initialized_p.
7753 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7754 Update to use enum ext_lang_frame_args. Update to call
7755 apply_ext_lang_frame_filter.
7756 * python/py-framefilter.c (extract_sym): Update to use enum
7758 (extract_value, py_print_type, py_print_value): Ditto.
7759 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7760 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7761 (py_print_frame): Ditto.
7762 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7763 New arg extlang. Update to use enum ext_lang_bt_status.
7765 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7766 finish_python_initialization. Replace with call to
7767 finish_ext_lang_initialization.
7769 * typeprint.c (do_free_global_table): Update to call
7770 free_ext_lang_type_printers.
7771 (create_global_typedef_table): Update to call
7772 start_ext_lang_type_printers.
7773 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7774 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7775 (type_print_options): Change type of global_printers from "void *"
7776 to "struct ext_lang_type_printers *".
7778 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7779 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7780 (gdbpy_preserve_values): Renamed from preserve_python_values.
7782 (!HAVE_PYTHON, preserve_python_values): Delete.
7784 * utils.c (quit_flag): Delete, moved to extension.c.
7785 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7788 * eval.c: Delete #include "python/python.h".
7789 * main.c: Delete #include "python/python.h".
7791 * defs.h: Update comment.
7793 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7797 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7799 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7802 2014-02-05 Yao Qi <yao@codesourcery.com>
7804 * remote.c (remote_pass_signals): Remove local 'buf' and use
7806 (remote_program_signals): Likewise.
7808 2014-02-05 Yao Qi <yao@codesourcery.com>
7810 * ctf.c: Include "inferior.h" and "gdbthread.h".
7811 (CTF_PID): A new macro.
7812 (ctf_open): Call inferior_appeared and add_thread_silent.
7813 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7814 (ctf_thread_alive): New function.
7815 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7817 2014-02-05 Yao Qi <yao@codesourcery.com>
7821 2013-05-24 Yao Qi <yao@codesourcery.com>
7823 * tracepoint.c (TFILE_PID): Remove.
7824 (tfile_open): Don't add thread and inferior.
7825 (tfile_close): Don't set 'inferior_ptid'. Don't call
7826 exit_inferior_silent.
7827 (tfile_thread_alive): Remove.
7828 (init_tfile_ops): Don't set field 'to_thread_alive' of
7831 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7833 * remote.c (remote_start_remote): Call remote_check_symbols even
7834 if only symbol-file (not file) has been given.
7836 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7838 * gdbarch.sh (skip_entrypoint): New callback.
7839 * gdbarch.c, gdbarch.h: Regenerate.
7840 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7841 * infrun.c (fill_in_stop_func): Likewise.
7842 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7843 (ppc_elfv2_elf_make_msymbol_special): New function.
7844 (ppc_elfv2_skip_entrypoint): Likewise.
7845 (ppc_linux_init_abi): Install them for ELFv2.
7847 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7849 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7850 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7851 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7852 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7853 structures returned in GPRs.
7855 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7857 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7858 offset to the stack parameter list for the ELFv2 ABI.
7860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7862 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7863 set_gdbarch_convert_from_func_ptr_addr and
7864 set_gdbarch_elf_make_msymbol_special for ELFv1.
7865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7866 function descriptors on ELFv1.
7867 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7868 set up r12 at function entry.
7870 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7872 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7873 (struct gdbarch_tdep): New member elf_abi.
7875 * rs6000-tdep.c: Include "elf/ppc64.h".
7876 (rs6000_gdbarch_init): Detect ELF ABI version.
7878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7880 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7881 within a register pair holding a DFP 128-bit value on little-endian.
7882 (ppc64_sysv_abi_return_value_base): Likewise.
7883 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7884 (dfp_pseudo_register_write): Likewise.
7886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7889 offset on little-endian when passing _Decimal32.
7890 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7892 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7894 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7895 of the overlapped FP register within the VSX register on little-
7897 (efpr_pseudo_register_write): Likewise.
7899 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7901 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7902 offset on little-endian when passing small structures.
7904 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7906 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7907 (struct ppc64_sysv_argpos): New data structure.
7908 (ppc64_sysv_abi_push_float): Remove.
7909 (ppc64_sysv_abi_push_val): New function.
7910 (ppc64_sysv_abi_push_integer): Likewise.
7911 (ppc64_sysv_abi_push_freg): Likewise.
7912 (ppc64_sysv_abi_push_vreg): Likewise.
7913 (ppc64_sysv_abi_push_param): Likewise.
7914 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7915 (ppc64_sysv_abi_return_value_base): New function.
7916 (ppc64_sysv_abi_return_value): Refactor to use it.
7918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7920 * NEWS: Document new target powerpc64le-*-linux*.
7922 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7924 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7925 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7927 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7928 register set used in ELF core dumps. Add floating-point register set.
7930 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7932 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7933 dwarf2_to_gdb[] table using symbolic constants. Adjust
7934 penultimate entry from number representing the PC register
7935 to symbolic constant representing the MDR register. Add
7936 constant for the PC register to the end of the table.
7938 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7940 * bsd-kvm.c: Include <sys/param.h>
7942 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7944 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7946 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7948 * ada-lang.h (clear_ada_sym_cache): Delete.
7950 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7952 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7954 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7956 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7957 the sigreturn register save area only if the syscall is
7960 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7962 * valops.c (value_slice): Minor reformatting.
7964 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7966 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7968 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7970 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7972 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7973 (ada_ignore_descriptive_types_p): New static global.
7974 (find_parallel_type_by_descriptive_type): Return immediately
7975 if ada_ignore_descriptive_types_p is set.
7976 (_initialize_ada_language): Register new commands "maintenance
7977 set ada", "maintenance show ada", "maintenance set ada
7978 ignore-descriptive-types" and "maintenance show ada
7979 ignore-descriptive-types".
7980 * NEWS: Add entry for new "maint ada set/show
7981 ignore-descriptive-types" commands.
7983 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7985 * record-btrace.c (record_btrace_close): Call btrace_teardown
7988 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7990 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7993 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7995 * ada-typeprint (type_is_full_subrange_of_target_type):
7997 (print_range): Add parameter bounds_prefered_p. If not set,
7998 try printing range types using the name of their base type.
7999 (print_range_type): Add parameter bounds_prefered_p.
8000 Use it in call to print_range.
8001 (print_array_type, ada_print_type): Update calls to print_range
8002 and print_range_type.
8004 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8006 * ada-typeprint.c (print_array_type, print_choices, print_range)
8007 (print_range_bound, print_dynamic_range_bound, print_range_type):
8010 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8012 * ada-typeprint.c (print_range): Add missing empty line
8013 after local declaration.
8015 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8017 * ada-valprint.c (print_optional_low_bound): Get index_type's
8018 target type for as long as it is a TYPE_CODE_RANGE.
8020 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8022 * procfs.c (procfs_make_note_section): Remove assertion and
8025 2014-01-24 Yao Qi <yao@codesourcery.com>
8027 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8028 * corelow.c (get_core_siginfo): Likewise.
8030 2014-01-24 Yao Qi <yao@codesourcery.com>
8032 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8033 ULONGEST. Don't check 'len' is negative.
8034 (remote_write_bytes): Change type of 'len' to ULONGEST.
8036 2014-01-23 Tom Tromey <tromey@redhat.com>
8039 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8040 Handle exception from frame.block.
8041 (FrameVars.fetch_frame_locals): Likewise.
8043 2014-01-23 Tom Tromey <tromey@redhat.com>
8046 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8047 on a NULL pointer. Move "goto error" to correct place.
8049 2014-01-23 Tom Tromey <tromey@redhat.com>
8052 * python/py-framefilter.c (apply_frame_filter): Call
8053 ensure_python_env after computing gdbarch.
8055 2014-01-23 Yao Qi <yao@codesourcery.com>
8057 * target.c (raw_memory_xfer_partial): Change argument type
8058 from void * to gdb_byte *.
8059 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8061 2014-01-22 Doug Evans <dje@google.com>
8063 New gdbserver option --debug-format=timestamp.
8066 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8068 * syscalls/s390x-linux.xml: New file.
8069 * syscalls/s390-linux.xml: New file.
8070 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8071 (XML_SYSCALL_FILENAME_S390X): Likewise.
8072 (op_svc): New enum value for SVC opcode.
8073 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8074 (s390_linux_get_syscall_number): New function.
8075 (s390_gdbarch_init): Register '*get_syscall_number' and the
8076 syscall xml file name.
8077 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8078 "s390-linux.xml" and "s390x-linux.xml".
8079 * NEWS: Announce new feature.
8081 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8083 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8085 2014-01-22 Pedro Alves <palves@redhat.com>
8087 * xtensa-config.c: Include defs.h.
8089 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8091 * common/common-utils.h: Add "ARI:" comment beside __func__
8094 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8096 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8097 documentation a bit.
8099 2014-01-21 Roland McGrath <mcgrathr@google.com>
8101 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8102 * configure: Regenerate.
8103 * aclocal.m4: Regenerate.
8104 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8105 New substituted variables.
8106 (install-strip): New target.
8107 (INSTALL_SCRIPT): New substituted variable.
8108 (FLAGS_TO_PASS): Add it.
8109 (install-only): Use $(INSTALL_SCRIPT) rather than
8110 $(INSTALL_PROGRAM) for gcore.
8112 2014-01-20 Tom Tromey <tromey@redhat.com>
8114 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8117 2014-01-20 Tom Tromey <tromey@redhat.com>
8119 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8120 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8121 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8122 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8123 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8124 (struct cmd_list_element) <flags>: Remove.
8125 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8126 doc_allocated>: New fields.
8127 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8129 * maint.c (maintenance_do_deprecate): Update.
8130 * top.c (execute_command): Update.
8132 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8134 * xtensa-linux-nat.c: Include asm/ptrace.h.
8136 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8138 * Makefile.in (SFILES): Add d-support.c.
8139 (COMMON_OBS): Add d-support.o.
8140 * d-lang.h (d_parse_symbol): Add comment, now defined in
8142 * d-lang.c (parse_call_convention)
8143 (parse_attributes, parse_function_types)
8144 (parse_function_args, parse_type, parse_identifier)
8145 (call_convention_p, d_parse_symbol): Move functions to ...
8146 * d-support.c: ... New file.
8148 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8150 * d-lang.h (d_parse_symbol): Add declaration.
8151 * d-lang.c (extract_identifiers)
8152 (extract_type_info): Remove functions.
8153 (parse_call_convention, parse_attributes)
8154 (parse_function_types, parse_function_args)
8155 (parse_type, parse_identifier, call_convention_p)
8156 (d_parse_symbol): New functions.
8157 (d_demangle): Use d_parse_symbol to demangle D symbols.
8159 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8161 * d-lang.h (struct builtin_d_type): New data type.
8162 (builtin_d_type): Add declaration.
8163 * d-lang.c (d_language_arch_info, build_d_types)
8164 (builtin_d_type): New functions.
8165 (enum d_primitive_types): New data type.
8166 (d_language_defn): Change c_language_arch_info to
8167 d_language_arch_info.
8168 (d_type_data): New static variable.
8169 (_initialize_d_language): Initialize d_type_data.
8171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8173 * d-lang.h (d_main_name): Add declaration.
8174 * d-lang.c (d_main_name): New function.
8175 * symtab.c (find_main_name): Add call to d_main_name.
8177 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8179 * d-lang.c (d_language_defn): Change macro_expansion_c to
8182 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8184 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8186 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8188 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8189 gdb_exception" declaration.
8190 * remote.c (getpkt_or_notif_sane): Likewise.
8192 2014-01-17 Doug Evans <dje@google.com>
8194 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8195 function, contents of dirnames_to_char_ptr_vec_append moved here.
8196 (delim_string_to_char_ptr_vec): New function.
8197 (dirnames_to_char_ptr_vec_append): Rewrite.
8198 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8200 2014-01-17 Doug Evans <dje@google.com>
8202 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8204 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8205 #include "common-utils.h".
8206 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8207 * common/vec.h (VEC_ASSERT_PASS): Update.
8208 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8209 (MACH_CHECK_ERROR): Update.
8211 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8213 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8215 * gdbarch.h: Regenerate.
8217 2014-01-16 Tom Tromey <tromey@redhat.com>
8219 * value.c (struct value) <regnum>: Move earlier.
8221 2014-01-16 Tom Tromey <tromey@redhat.com>
8223 * remote.c (extended_remote_create_inferior): Rename from
8224 extended_remote_create_inferior_1. Add "ops" argument. Remove
8227 2014-01-16 Pedro Alves <palves@redhat.com>
8229 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8230 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8233 2014-01-16 Doug Evans <dje@google.com>
8235 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8239 * btrace.h (btrace_thread_flag): New.
8240 (struct btrace_thread_info) <flags>: New.
8241 * record-btrace.c (record_btrace_resume_thread)
8242 (record_btrace_find_thread_to_move, btrace_step_no_history)
8243 (btrace_step_stopped, record_btrace_start_replaying)
8244 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8245 (record_btrace_find_resume_thread): New.
8246 (record_btrace_resume, record_btrace_wait): Extend.
8247 (record_btrace_can_execute_reverse): New.
8248 (record_btrace_open): Fail in non-stop mode.
8249 (record_btrace_set_replay): Split into this, ...
8250 (record_btrace_stop_replaying): ... this, ...
8251 (record_btrace_clear_histories): ... and this.
8252 (init_record_btrace_ops): Init to_can_execute_reverse.
8253 * NEWS: Announce it.
8255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8257 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8258 (forward_target_decr_pc_after_break)
8259 (target_decr_pc_after_break): New.
8260 * target.c (forward_target_decr_pc_after_break)
8261 (target_decr_pc_after_break): New.
8262 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8263 instead of gdbarch_decr_pc_after_break.
8264 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8265 instead of gdbarch_decr_pc_after_break.
8266 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8267 instead of gdbarch_decr_pc_after_break.
8268 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8269 instead of gdbarch_decr_pc_after_break.
8270 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8271 instead of gdbarch_decr_pc_after_break.
8272 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8273 instead of gdbarch_decr_pc_after_break.
8275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8277 * btrace.c: Include regcache.h.
8278 (btrace_add_pc): New.
8279 (btrace_enable): Call btrace_add_pc.
8280 (btrace_is_empty): New.
8281 * btrace.h (btrace_is_empty): New.
8282 * record-btrace.c (require_btrace, record_btrace_info): Call
8285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8287 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8288 Support delta reads.
8289 (linux_disable_btrace): Change return type.
8290 * common/linux-btrace.h (linux_read_btrace): Change parameters
8291 and return type to allow error reporting. Update users.
8292 (linux_disable_btrace): Change return type. Update users.
8293 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8295 (btrace_error): New.
8296 (btrace_block) <begin>: Comment on BEGIN == 0.
8297 * btrace.c (btrace_compute_ftrace): Start from the end of
8299 (btrace_stitch_trace, btrace_clear_history): New.
8300 (btrace_fetch): Read delta trace, return if replaying.
8301 (btrace_clear): Move clear history code to btrace_clear_history.
8302 (parse_xml_btrace): Throw an error if parsing failed.
8303 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8304 and return type to allow error reporting.
8305 (target_read_btrace): Change parameters and return type to allow
8307 * target.c (target_read_btrace): Update.
8308 * remote.c (remote_read_btrace): Support delta reads. Pass
8310 * NEWS: Announce it.
8312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8314 * record.h (record_btrace_frame_unwind)
8315 (record_btrace_tailcall_frame_unwind): New declarations.
8316 * dwarf2-frame: Include record.h
8317 (dwarf2_frame_cfa): Throw an error for btrace frames.
8318 * record-btrace.c: Include hashtab.h.
8319 (btrace_get_bfun_name): New.
8320 (btrace_call_history): Call btrace_get_bfun_name.
8321 (struct btrace_frame_cache): New.
8323 (bfcache_hash, bfcache_eq, bfcache_new): New.
8324 (btrace_get_frame_function): New.
8325 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8326 (record_btrace_frame_this_id): Compute own id.
8327 (record_btrace_frame_prev_register): Provide PC, throw_error
8328 for all other registers.
8329 (record_btrace_frame_sniffer): Detect btrace frames.
8330 (record_btrace_tailcall_frame_sniffer): New.
8331 (record_btrace_frame_dealloc_cache): New.
8332 (record_btrace_frame_unwind): Add new functions.
8333 (record_btrace_tailcall_frame_unwind): New.
8334 (_initialize_record_btrace): Allocate cache.
8335 * btrace.c (btrace_clear): Call reinit_frame_cache.
8336 * NEWS: Announce it.
8338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8340 * record-btrace.c (record_btrace_set_replay)
8341 (record_btrace_goto_begin, record_btrace_goto_end)
8342 (record_btrace_goto): New.
8343 (init_record_btrace_ops): Initialize them.
8344 * NEWS: Announce it.
8346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8348 * record-btrace.c (record_btrace_find_new_threads)
8349 (record_btrace_thread_alive): New.
8350 (init_record_btrace_ops): Initialize to_find_new_threads and
8353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8355 * record-btrace.c (record_btrace_resume): New.
8356 (record_btrace_wait): New.
8357 (init_record_btrace_ops): Initialize to_wait and to_resume.
8359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8361 * record-btrace.c (record_btrace_xfer_partial)
8362 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8363 (record_btrace_allow_memory_access): New.
8364 (init_record_btrace_ops): Initialize new methods.
8365 * target.c (raw_memory_xfer_partial): Bail out if target reports
8366 that this memory is not available.
8368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8370 * target.h (target_ops) <to_insert_breakpoint>
8371 <to_remove_breakpoint>: Add target_ops parameter.
8372 (forward_target_insert_breakpoint): New.
8373 (forward_target_remove_breakpoint): New.
8374 (memory_remove_breakpoint, memory_insert_breakpoint):
8375 Add target_ops parameter.
8376 * target.c (target_insert_breakpoint): Split into this and ...
8377 (forward_target_insert_breakpoint): ... this.
8378 (target_remove_breakpoint): Split into this and ...
8379 (forward_target_remove_breakpoint): ... this.
8380 (debug_to_insert_breakpoint): Add target_ops parameter.
8381 Call forward_target_insert_breakpoint.
8382 (debug_to_remove_breakpoint): Add target_ops parameter.
8383 Call forward_target_remove_breakpoint.
8384 (update_current_target): Do not inherit or default to_insert_breakpoint
8385 and to_remove_breakpoint.
8386 * corelow.c (ignore): Add target_ops parameter.
8387 * exec.c (ignore): Add target_ops parameter.
8388 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8389 Add target_ops parameter.
8390 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8391 Add target_ops parameter.
8392 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8393 Add target_ops parameter.
8394 * record-full.c (record_full_beneath_to_insert_breakpoint)
8395 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8396 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8397 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8398 (record_full_core_remove_breakpoint): Add target_ops parameter.
8400 (record_full_beneath_to_insert_breakpoint_ops)
8401 (record_full_beneath_to_remove_breakpoint_ops)
8402 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8403 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8404 tmp_to_remove_breakpoint_ops,
8405 record_full_beneath_to_insert_breakpoint_ops, and
8406 record_full_beneath_to_remove_breakpoint_ops.
8407 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8408 (m32r_remove_breakpoint): Add target_ops parameter.
8409 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8410 Add target_ops parameter.
8411 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8412 Add target_ops parameter.
8414 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8415 Markus Metzger <markus.t.metzger@intel.com>
8417 * record-btrace.c: Include frame-unwind.h.
8418 (record_btrace_frame_unwind_stop_reason)
8419 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8420 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8422 (init_record_btrace_ops): Install it.
8424 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8426 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8429 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8431 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8434 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8436 * frame-unwind.c: Include target.h.
8437 (frame_unwind_try_unwinder): New function with code from ...
8438 (frame_unwind_find_by_frame): ... here. New variable
8439 unwinder_from_target, call also target_get_unwinder)
8440 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8441 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8442 * target.h (struct target_ops): New fields to_get_unwinder and
8443 to_get_tailcall_unwinder.
8444 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8448 * record-btrace.c (record_btrace_fetch_registers)
8449 (record_btrace_store_registers)
8450 (record_btrace_to_prepare_to_store): New.
8451 (init_record_btrace_ops): Add the above.
8453 2014-01-16 Tom Tromey <tromey@redhat.com>
8455 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8456 * target.h (struct target_ops) <to_prepare_to_store>: Add
8458 (target_prepare_to_store): Add argument.
8459 * target.c (debug_to_prepare_to_store): Add argument.
8460 (update_current_target): Update.
8461 * remote.c (remote_prepare_to_store): Add 'self' argument.
8462 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8463 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8464 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8465 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8467 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8468 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8469 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8470 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8471 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8475 * btrace.h (replay) <replay>: New.
8476 (btrace_is_replaying): New.
8477 * btrace.c (btrace_clear): Free replay iterator.
8478 (btrace_is_replaying): New.
8479 * record-btrace.c (record_btrace_is_replaying): New.
8480 (record_btrace_info): Print insn number if replaying.
8481 (record_btrace_insn_history): Start at replay position.
8482 (record_btrace_call_history): Start at replay position.
8483 (init_record_btrace_ops): Init to_record_is_replaying.
8485 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8487 * record-btrace.c (record_btrace_insn_history_range): Include
8489 (record_btrace_insn_history_from): Adjust range.
8490 (record_btrace_call_history_range): Include
8492 (record_btrace_call_history_from): Adjust range.
8493 * NEWS: Announce changes.
8495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8497 * record.h (enum record_print_flag)
8498 <record_print_indent_calls>: New.
8499 * record.c (get_call_history_modifiers): Recognize /c modifier.
8500 (_initialize_record): Document /c modifier.
8501 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8502 Reorder fields. Optionally indent the function name. Update
8504 * NEWS: Announce changes.
8506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8508 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8512 * btrace.c (ftrace_new_function): Start counting at one.
8513 * record-btrace.c (record_btrace_info): Adjust number of calls
8515 * NEWS: Announce it.
8517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8519 * record-btrace.c (btrace_call_history_insn_range): Print
8520 insn range as [begin, end].
8522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8524 * btrace.h (struct btrace_func_link): New.
8525 (enum btrace_function_flag): New.
8526 (struct btrace_inst): Rename to ...
8527 (struct btrace_insn): ...this. Update all users.
8528 (struct btrace_func) <ibegin, iend>: Remove.
8529 (struct btrace_func_link): New.
8530 (struct btrace_func): Rename to ...
8531 (struct btrace_function): ...this. Update all users.
8532 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8533 (number, level, flags>: New.
8534 (struct btrace_insn_iterator): Rename to ...
8535 (struct btrace_insn_history): ...this.
8537 (struct btrace_insn_iterator, btrace_call_iterator): New.
8538 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8539 (struct btrace_target_info) <begin, end, level>
8540 <insn_history, call_history>: New.
8541 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8542 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8543 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8544 (btrace_call_number, btrace_call_begin, btrace_call_end)
8545 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8546 (btrace_find_function_by_number, btrace_set_insn_history)
8547 (btrace_set_call_history): New.
8548 * btrace.c (btrace_init_insn_iterator)
8549 (btrace_init_func_iterator, compute_itrace): Remove.
8550 (ftrace_print_function_name, ftrace_print_filename)
8551 (ftrace_skip_file): Change
8553 (ftrace_init_func): Remove.
8554 (ftrace_debug): Use new btrace_function fields.
8555 (ftrace_function_switched): Also consider gaining and
8556 losing symbol information).
8557 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8558 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8559 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8561 (ftrace_new_function): Move. Remove debug print.
8562 (ftrace_update_lines, ftrace_update_insns): New.
8563 (ftrace_update_function): Check for call, ret, and jump.
8564 (compute_ftrace): Renamed to ...
8565 (btrace_compute_ftrace): ...this. Rewritten to compute call
8567 (btrace_fetch, btrace_clear): Updated.
8568 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8569 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8570 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8571 (btrace_call_number, btrace_call_begin, btrace_call_end)
8572 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8573 (btrace_find_function_by_number, btrace_set_insn_history)
8574 (btrace_set_call_history): New.
8575 * record-btrace.c (require_btrace): Use new btrace thread
8577 (record_btrace_info, btrace_insn_history)
8578 (record_btrace_insn_history, record_btrace_insn_history_range):
8579 Use new btrace thread info fields and new iterator.
8580 (btrace_func_history_src_line): Rename to ...
8581 (btrace_call_history_src_line): ...this. Use new btrace
8583 (btrace_func_history): Rename to ...
8584 (btrace_call_history): ...this. Use new btrace thread info
8585 fields and new iterator.
8586 (record_btrace_call_history, record_btrace_call_history_range):
8587 Use new btrace thread info fields and new iterator.
8589 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8591 * frame.h (frame_id_build_unavailable_stack_special): New.
8592 * frame.c (frame_id_build_unavailable_stack_special): New.
8594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8596 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8597 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8598 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8600 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8601 (i386_insn_is_jump, i386_jmp_p): New.
8602 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8603 insn_is_jump to gdbarch.
8604 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8605 * gdbarch.h: Regenerated.
8606 * gdbarch.c: Regenerated.
8607 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8608 (default_insn_is_jump): New.
8609 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8610 (default_insn_is_jump): New.
8612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8614 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8616 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8617 (btrace_read_type) <btrace_read_new>: Change to ...
8618 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8622 * common/linux-btrace.c (linux_read_btrace): Free trace from
8625 2014-01-15 Doug Evans <dje@google.com>
8627 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8630 2014-01-15 Tom Tromey <tromey@redhat.com>
8632 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8633 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8634 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8635 (set_objfile_main_name): New function.
8636 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8637 language_of_main>: New fields.
8638 (set_objfile_main_name): Declare.
8639 * symtab.c (find_main_name): Loop over objfiles to find the main
8641 (set_main_name): Now static.
8642 (get_main_info): Add comment.
8643 * symtab.h (set_main_name): Don't declare.
8645 2014-01-15 Tom Tromey <tromey@redhat.com>
8647 * symtab.c (main_progspace_key): New global.
8648 (struct main_info): New.
8649 (name_of_main, language_of_main): Remove.
8650 (get_main_info, main_info_cleanup): New function.
8651 (set_main_name, main_name, main_language): Use get_main_info.
8652 (_initialize_symtab): Initialize main_progspace_key.
8654 2014-01-15 Tom Tromey <tromey@redhat.com>
8656 * dbxread.c (process_one_symbol): Update.
8657 * dwarf2read.c (read_partial_die): Update.
8658 * symfile.c (set_initial_language): Call main_language.
8659 * symtab.c (language_of_main): Now static.
8660 (set_main_name): Add 'lang' parameter.
8661 (find_main_name): Update.
8662 (main_language): New function.
8663 (symtab_observer_executable_changed): Update.
8664 * symtab.h (set_main_name): Update.
8665 (language_of_main): Remove.
8666 (main_language): Declare.
8668 2014-01-15 Tom Tromey <tromey@redhat.com>
8670 * symfile.c (init_entry_point_info): Use new "initialized" field.
8672 * objfiles.h (struct entry_point) <initialized>: New field.
8673 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8674 (struct objfile) <ei>: ...here. Remove.
8675 * objfiles.c (entry_point_address_query): Update.
8677 2014-01-15 Tom Tromey <tromey@redhat.com>
8679 * objfiles.c (entry_point_address_query): Relocate entry point
8681 (objfile_relocate1): Do not relocate entry point address.
8682 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8683 <the_bfd_section_index>: New field.
8684 * symfile.c (init_entry_point_info): Find the entry point's
8687 2014-01-15 Tom Tromey <tromey@redhat.com>
8689 * solib-frv.c (enable_break): Use entry_point_address_query.
8691 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8693 * NEWS: Add note on improved process record-replay on
8694 arm*-linux* targets.
8696 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8698 * arm-tdep.c (enum arm_record_result): New enum.
8699 (arm_record_unsupported_insn): New function.
8700 (arm_record_coproc_data_proc): Removed.
8701 (thumb2_record_ld_st_multiple): New function.
8702 (thumb2_record_ld_st_dual_ex_tbb): New function.
8703 (thumb2_record_data_proc_sreg_mimm): New function.
8704 (thumb2_record_ps_dest_generic): New function.
8705 (thumb2_record_branch_misc_cntrl): New function.
8706 (thumb2_record_str_single_data): New function.
8707 (thumb2_record_ld_mem_hints): New function.
8708 (thumb2_record_ld_word): New function.
8709 (thumb2_record_lmul_lmla_div): New function.
8710 (thumb2_record_decode_insn_handler): New function.
8711 (decode_insn): Add thumb32 instruction handlers.
8713 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8715 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8716 (struct arm_linux_record_tdep): Declare.
8717 (arm_canonicalize_syscall): New function.
8718 (arm_all_but_pc_registers_record): New function.
8719 (arm_linux_syscall_record): New function.
8720 (arm_linux_init_abi): Add syscall recording constructs.
8721 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8722 decoding. (arm_record_coproc_data_proc): Update arm syscall
8724 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8725 <arm_syscall_record>: New field.
8726 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8729 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8731 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8732 register for push instruction recording.
8734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8736 * arm-tdep.c (thumb_record_misc): Update to correct logical
8737 error while recording ldm, ldmia and pop instructions.
8739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8741 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8743 2014-01-15 Pedro Alves <palves@redhat.com>
8745 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8746 (go32_resume, go32_fetch_registers, store_register)
8747 (go32_store_registers, go32_prepare_to_store)
8748 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8749 (go32_create_inferior, go32_can_run, go32_terminal_init)
8750 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8753 2014-01-15 Tom Tromey <tromey@redhat.com>
8755 * target.h (async_callback_ftype): New typedef.
8756 (struct target_ops) <to_async>: Use it.
8758 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8760 * python/py-value.c (get_field_type): Remove unnecessary curly
8761 braces for single-statement if block.
8763 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8765 * python/py-type.c (convert_field): Add missing empty line
8768 2014-01-14 Doug Evans <dje@google.com>
8770 * symfile.h (expand_symtabs_matching): Renamed from
8771 expand_partial_symbol_names. Update prototype.
8772 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8773 * symfile.c (expand_symtabs_matching): Renamed from
8774 expand_partial_symbol_names. New args file_matcher, kind.
8775 Rename arg fun to symbol_matcher.
8776 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8777 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8778 ada_expand_partial_symbol_name.
8779 (ada_make_symbol_completion_list): Update to call
8780 expand_symtabs_matching.
8781 (ada_add_global_exceptions): Call expand_symtabs_matching.
8782 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8783 call map_symbol_filenames.
8784 * symtab.c (sources_info): Update to call map_symbol_filenames.
8785 (search_symbols): Call expand_symtabs_matching.
8786 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8787 (default_make_symbol_completion_list_break_on): Update to call
8788 expand_symtabs_matching.
8789 (make_source_files_completion_list): Update to call
8790 map_symbol_filenames.
8792 2014-01-14 Doug Evans <dje@google.com>
8794 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8795 (expand_symtabs_symbol_matcher_ftype): New typedef.
8796 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8797 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8798 * symfile.c (expand_partial_symbol_names): Update to use
8799 expand_symtabs_symbol_matcher_ftype.
8800 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8801 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8802 Arg name_matcher renamed to symbol_matcher.
8803 * psymtab.c (recursively_search_psymtabs): Update to use
8804 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8806 (expand_symtabs_matching_via_partial): Update to use
8807 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8808 Arg name_matcher renamed to symbol_matcher.
8810 2014-01-14 Doug Evans <dje@google.com>
8812 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8813 (map_partial_symbol_filenames): Ditto.
8814 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8815 (map_partial_symbol_filenames): Ditto.
8816 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8817 (map_partial_symbol_filenames): Ditto.
8818 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8819 (map_partial_symbol_filenames): Ditto.
8820 * symtab.c: Delete #include "psymtab.h".
8822 2014-01-14 Pedro Alves <palves@redhat.com>
8823 Tom Tromey <tromey@redhat.com>
8825 * infrun.c (use_displaced_stepping): Use find_record_target
8826 instead of RECORD_IS_USED.
8827 (adjust_pc_after_break): Use record_full_is_used instead of
8829 * record-btrace.c (record_btrace_open): Call record_preopen
8830 instead of checking RECORD_IS_USED.
8831 * record-full.c (record_full_shortname)
8832 (record_full_core_shortname): New globals.
8833 (record_full_is_used): New function.
8834 (find_full_open): Call record_preopen instead of checking
8836 (init_record_full_ops): Set the target's shortname to
8837 record_full_shortname.
8838 (init_record_full_core_ops): Set the target's shortname to
8839 record_full_core_shortname.
8840 * record-full.h (record_full_is_used): Declare.
8841 * record.c (find_record_target): Make extern.
8842 (record_preopen): New function.
8843 * record.h (RECORD_IS_USED): Delete macro.
8844 (find_record_target, record_preopen): Declare functions.
8846 2014-01-14 Yao Qi <yao@codesourcery.com>
8848 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8849 'len''s type to ULONGEST.
8850 (core_xfer_shared_libraries_aix): Likewise.
8851 * gdbarch.c, gdbarch.h: Regenerated.
8852 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8853 Change type of 'len' to ULONGEST.
8854 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8855 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8857 2014-01-14 Yao Qi <yao@codesourcery.com>
8859 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8860 type of 'len' to ULONGEST.
8861 (linux_xfer_osdata_processgroups): Likewise.
8862 (linux_xfer_osdata_threads): Likewise.
8863 (linux_xfer_osdata_fds): Likewise.
8864 (linux_xfer_osdata_isockets): Likewise.
8865 (linux_xfer_osdata_shm): Likewise.
8866 (linux_xfer_osdata_sem): Likewise.
8867 (linux_xfer_osdata_msg): Likewise.
8868 (linux_common_xfer_osdata): Likewise.
8869 (struct osdata_type) <getter>: Likewise.
8870 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8873 2014-01-14 Yao Qi <yao@codesourcery.com>
8875 * target.h (target_xfer_partial_ftype): Update.
8876 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8878 * aix-thread.c (aix_thread_xfer_partial): Change type of
8879 argument 'len' to ULONGEST.
8880 * auxv.c (procfs_xfer_auxv): Likewise.
8881 (ld_so_xfer_auxv): Likewise.
8882 (memory_xfer_auxv): Likewise.
8883 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8884 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8885 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8886 * corelow.c (core_xfer_partial): Likewise.
8887 * ctf.c (ctf_xfer_partial): Likewise.
8888 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8890 (darwin_read_dyld_info): Likewise.
8891 (darwin_xfer_partial): Likewise.
8892 * exec.c (section_table_xfer_memory_partial): Likewise.
8893 (exec_xfer_partial): Likewise.
8894 * exec.h (section_table_xfer_memory_partial): Update
8896 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8897 instead of plongest.
8898 (gnu_xfer_partial): Likewise.
8899 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8900 (ia64_hpux_xfer_solib_got): Likewise.
8901 (ia64_hpux_xfer_partial): Likewise.
8902 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8903 * inf-ptrace.c (inf_ptrace_xfer_partial):
8904 * inf-ttrace.c (inf_ttrace_xfer_partial):
8905 * linux-nat.c (linux_xfer_siginfo): Likewise.
8906 (linux_nat_xfer_partial): Likewise.
8907 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8908 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8909 * monitor.c (monitor_xfer_memory): Likewise.
8910 (monitor_xfer_partial): Likewise.
8911 * procfs.c (procfs_xfer_partial): Likewise.
8912 * record-full.c (record_full_xfer_partial): Likewise.
8913 (record_full_core_xfer_partial): Likewise.
8914 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8915 instead of plongest.
8916 (gdbsim_xfer_partial): Likewise.
8917 * remote.c (remote_xfer_partial): Likewise.
8918 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8919 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8921 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8922 (rs6000_xfer_shared_libraries): Likewise.
8923 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8924 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8925 (sparc_xfer_partial): Likewise.
8926 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8927 (spu_xfer_partial): Likewise.
8928 * spu-multiarch.c (spu_xfer_partial): Likewise.
8929 * target.c (target_read_live_memory): Likewise.
8930 (memory_xfer_live_readonly_partial): Likewise.
8931 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8932 (target_xfer_partial, default_xfer_partial): Likewise.
8933 (current_xfer_partial): Likewise.
8934 * tracepoint.c (tfile_xfer_partial): Likewise.
8935 * windows-nat.c (windows_xfer_memory): Likewise. Call
8936 pulongest instead of plongest.
8937 (windows_xfer_partial): Likewise.
8938 (windows_xfer_shared_libraries): Likewise.
8940 2014-01-14 Yao Qi <yao@codesourcery.com>
8942 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8943 target_xfer_partial_ftype.
8945 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8949 * valops.c (value_struct_elt_bitpos): New function
8950 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8951 object to 'None' if the field name is an empty string ("").
8952 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8953 attribute to look for a field when 'name' is 'None'.
8954 (get_field_type): New function
8956 2014-01-13 Doug Evans <dje@google.com>
8959 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8960 (try_open_dwop_file): Ditto.
8961 * gdb_bfd.c: #include "vec.h".
8962 (bfdp): New typedef.
8963 (struct gdb_bfd_data): New member included_bfds.
8964 (gdb_bfd_unref): Unref all included bfds.
8965 (gdb_bfd_record_inclusion): New function.
8966 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8968 2014-01-13 Tom Tromey <tromey@redhat.com>
8970 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8972 2014-01-13 Tom Tromey <tromey@redhat.com>
8974 * defs.h (use_windows): Remove.
8975 * gdb.c (main): Update.
8976 * main.c (captured_main, gdb_main): Update.
8977 * main.h (struct captured_main_args) <use_windows>: Remove.
8978 * top.c (use_windows): Remove.
8980 2014-01-13 Tom Tromey <tromey@redhat.com>
8982 * defs.h (deprecated_flush_hook): Remove.
8984 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8987 * linux-thread-db.c (try_thread_db_load): Add parameter
8988 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8989 (try_thread_db_load_from_pdir_1): Move it there from here.
8990 (try_thread_db_load_from_sdir): Update caller.
8991 (try_thread_db_load_from_dir): Move it there from here.
8993 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8995 * regformats/regdat.sh: Always rewrite the register file.
8997 2014-01-13 Pedro Alves <palves@redhat.com>
8999 * Makefile.in (CHECK_HEADERS): New variable.
9000 (check-headers:): New rule.
9002 2014-01-13 Tom Tromey <tromey@redhat.com>
9004 * cli/cli-setshow.c (do_set_command): Update.
9005 * defs.h (deprecated_set_hook): Remove.
9006 * top.c (deprecated_set_hook): Remove.
9008 2014-01-13 Pedro Alves <palves@redhat.com>
9010 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9011 the tracepoint if the PC is a pseudo-register.
9013 2014-01-13 Tom Tromey <tromey@redhat.com>
9015 * defs.h (XCALLOC): Remove.
9016 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9017 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9018 * dwarf2loc.c (allocate_piece_closure): Likewise.
9019 * elfread.c (elf_symfile_segments): Likewise.
9020 (elf_symfile_segments): Likewise.
9021 * gdbtypes.c (copy_type_recursive): Likewise.
9022 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9023 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9024 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9026 * mt-tdep.c (mt_gdbarch_init): Likewise.
9027 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9029 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9030 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9031 * registry.c (registry_alloc_data): Likewise.
9032 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9033 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9034 * serial.c (serial_fdopen_ops): Likewise.
9035 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9037 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9038 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9041 2014-01-13 Tom Tromey <tromey@redhat.com>
9043 * defs.h (XMALLOC): Remove.
9044 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9045 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9046 * cli-out.c (struct ui_out *): Likewise.
9047 * cli/cli-dump.c (add_dump_command): Likewise.
9048 (add_dump_command): Likewise.
9049 * complaints.c (get_complaints): Likewise.
9050 (find_complaint): Likewise.
9051 * dwarf2-frame.c (execute_cfa_program): Likewise.
9052 * dwarf2read.c (abbrev_table_read_table): Likewise.
9053 * gdbarch.sh: Likewise.
9054 * gdbarch.c: Rebuild.
9055 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9056 * interps.c (interp_new): Likewise.
9057 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9058 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9059 * mi/mi-console.c (mi_console_file_new): Likewise.
9060 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9061 * mi/mi-out.c (mi_out_new): Likewise.
9062 * mi/mi-parse.c (mi_parse): Likewise.
9063 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9064 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9065 * observer.c (xalloc_observer_list_node): Likewise.
9066 * regcache.c (regcache_xmalloc_1): Likewise.
9067 * reggroups.c (reggroup_new): Likewise.
9068 (_initialize_reggroup): Likewise.
9069 * registry.c (register_data_with_cleanup): Likewise.
9070 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9071 * ser-base.c (serial_ttystate): Likewise.
9072 * ser-mingw.c (make_pipe_state): Likewise.
9073 * ser-pipe.c (pipe_open): Likewise.
9074 * serial.c (serial_open): Likewise.
9075 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9076 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9077 (tui_alloc_win_info): Likewise.
9078 (tui_add_content_elements): Likewise.
9079 * tui/tui-file.c (tui_file_new): Likewise.
9080 * tui/tui-out.c (tui_out_new): Likewise.
9081 * ui-file.c (mem_file_new): Likewise.
9082 * ui-out.c (push_level): Likewise.
9083 (make_cleanup_ui_out_end): Likewise.
9084 (append_header_to_list): Likewise.
9085 (ui_out_new): Likewise.
9086 * user-regs.c (user_reg_add_builtin): Likewise.
9088 2014-01-13 Tom Tromey <tromey@redhat.com>
9090 * defs.h (XZALLOC): Remove.
9091 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9092 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9093 (get_ada_tasks_inferior_data): Likewise.
9094 * auto-load.c (get_auto_load_pspace_data): Likewise.
9095 * auxv.c (get_auxv_inferior_data): Likewise.
9096 * bfd-target.c (target_bfd_reopen): Likewise.
9097 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9098 (deprecated_insert_raw_breakpoint): Likewise.
9099 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9100 * corelow.c (core_open): Likewise.
9101 * darwin-nat.c (darwin_check_new_threads): Likewise.
9102 (darwin_attach_pid): Likewise.
9103 * dummy-frame.c (dummy_frame_push): Likewise.
9104 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9105 * dwarf2loc.c (allocate_piece_closure): Likewise.
9106 * elfread.c (elf_symfile_segments): Likewise.
9107 * eval.c (ptrmath_type_p): Likewise.
9108 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9109 * gdbtypes.c (alloc_type_arch): Likewise.
9110 (alloc_type_instance): Likewise.
9111 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9112 * inf-child.c (inf_child_can_use_agent): Likewise.
9113 * inflow.c (get_inflow_inferior_data): Likewise.
9114 * infrun.c (save_infcall_suspend_state): Likewise.
9115 * jit.c (jit_reader_load): Likewise.
9116 (get_jit_objfile_data): Likewise.
9117 (get_jit_program_space_data): Likewise.
9118 (jit_object_open_impl): Likewise.
9119 (jit_symtab_open_impl): Likewise.
9120 (jit_block_open_impl): Likewise.
9121 (jit_frame_sniffer): Likewise.
9122 * linux-fork.c (add_fork): Likewise.
9123 * maint.c (make_command_stats_cleanup): Likewise.
9124 * objfiles.c (get_objfile_pspace_data): Likewise.
9125 * opencl-lang.c (struct lval_closure): Likewise.
9126 * osdata.c (osdata_start_osdata): Likewise.
9127 * progspace.c (new_address_space): Likewise.
9128 (add_program_space): Likewise.
9129 * remote-sim.c (get_sim_inferior_data): Likewise.
9130 * sh-tdep.c (sh_gdbarch_init): Likewise.
9131 * skip.c (Ignore): Likewise.
9132 (skip_delete_command): Likewise.
9133 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9134 (library_list_start_library): Likewise.
9135 (solib_aix_current_sos): Likewise.
9136 * solib-darwin.c (get_darwin_info): Likewise.
9137 (darwin_current_sos): Likewise.
9138 * solib-dsbt.c (get_dsbt_info): Likewise.
9139 * solib-ia64-hpux.c (new_so_list): Likewise.
9140 (ia64_hpux_get_solib_linkage_addr): Likewise.
9141 * solib-spu.c (append_ocl_sos): Likewise.
9142 (spu_current_sos): Likewise.
9143 * solib-svr4.c (get_svr4_info): Likewise.
9144 (svr4_keep_data_in_core): Likewise.
9145 (library_list_start_library): Likewise.
9146 (svr4_default_sos): Likewise.
9147 (svr4_read_so_list): Likewise.
9148 * solib-target.c (library_list_start_library): Likewise.
9149 (solib_target_current_sos): Likewise.
9150 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9151 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9152 * symfile.c (default_symfile_segments): Likewise.
9153 * target-descriptions.c (tdesc_data_init): Likewise.
9154 (tdesc_create_reg): Likewise.
9155 (struct tdesc_type *): Likewise.
9156 (tdesc_create_vector): Likewise.
9157 (tdesc_set_struct_size): Likewise.
9158 (struct tdesc_type *): Likewise.
9159 (tdesc_free_feature): Likewise.
9160 (tdesc_create_feature): Likewise.
9161 * windows-nat.c (windows_add_thread): Likewise.
9162 (windows_make_so): Likewise.
9163 * xml-support.c (gdb_xml_body_text): Likewise.
9164 (gdb_xml_create_parser_and_cleanup): Likewise.
9165 (xml_process_xincludes): Likewise.
9166 * xml-syscall.c (allocate_syscalls_info): Likewise.
9167 (syscall_create_syscall_desc): Likewise.
9169 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9171 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9172 function, with code from i386_stap_parse_special_token.
9173 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9174 (i386_stap_parse_special_token): Move code to the two functions
9177 2014-01-09 Pedro Alves <palves@redhat.com>
9178 Hui Zhu <hui@codesourcery.com>
9181 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9182 bp_err_string. Don't mark the location shlib_disabled if the
9183 error thrown wasn't a generic or memory error. Catch errors
9184 thrown while inserting breakpoints in overlayed code. Output
9185 error message of software breakpoints.
9186 * remote.c (remote_insert_breakpoint): If this breakpoint has
9187 target-side commands but this stub doesn't support Z0 packets,
9188 throw NOT_SUPPORTED_ERROR error.
9189 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9190 * target.h (target_insert_breakpoint): Extend comment.
9191 (target_insert_hw_breakpoint): Add comment.
9193 2014-01-08 Pedro Alves <palves@redhat.com>
9195 * remote.c (remote_add_thread): Add threads silently if starting
9197 (remote_notice_new_inferior): If in all-stop, and starting up,
9198 don't call notice_new_inferior.
9199 (get_current_thread): New function, factored out from ...
9200 (add_current_inferior_and_thread): ... this. Adjust.
9201 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9202 found any thread, then select the remote's current thread as GDB's
9205 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9207 * NEWS: Create a new section for the next release branch.
9208 Rename the section of the current branch, now that it has
9211 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9213 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9214 * version.in: Bump version to 7.7.50.DATE-cvs.
9216 2014-01-08 Yao Qi <yao@codesourcery.com>
9218 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9219 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9220 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9222 2014-01-08 Yao Qi <yao@codesourcery.com>
9224 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9225 return value of bfd_get_filename to symbol_file_add_from_bfd.
9227 2014-01-08 Pierre Muller <muller@sourceware.org>
9230 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9231 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9232 to prim_record_mininal_symbol_and_info.
9233 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9234 in call to prim_record_minimal_symbol_and_info.
9235 (read_pe_exported_syms): Set index field of section_data.
9237 2014-01-07 Andrew Pinski <apinski@cavium.com>
9239 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9240 * features/aarch64.c: Regenerate.
9242 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9244 * target.c (return_null): Define.
9245 (update_current_target): Use it instead of return_zero for
9246 functions that return a pointer.
9248 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9250 * source.c (add_path): Fix check for duplicated paths in the previously
9253 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9255 * ada-lang.c: Remove duplicated include statements.
9256 * alphabsd-nat.c: Ditto.
9257 * amd64-darwin-tdep.c: Ditto.
9258 * amd64fbsd-nat.c: Ditto.
9259 * auto-load.c: Ditto.
9261 * breakpoint.c: Ditto.
9263 * fork-child.c: Ditto.
9264 * gdb_usleep.c: Ditto.
9265 * i386-darwin-tdep.c: Ditto.
9266 * i386fbsd-nat.c: Ditto.
9268 * inferior.c: Ditto.
9270 * linux-nat.c: Ditto.
9271 * linux-tdep.c: Ditto.
9272 * m68kbsd-nat.c: Ditto.
9273 * m68klinux-nat.c: Ditto.
9274 * microblaze-tdep.c: Ditto.
9275 * mips-linux-tdep.c: Ditto.
9276 * mn10300-tdep.c: Ditto.
9277 * nto-tdep.c: Ditto.
9278 * opencl-lang.c: Ditto.
9280 * printcmd.c: Ditto.
9281 * regcache.c: Ditto.
9282 * remote-m32r-sdi.c: Ditto.
9286 * tilegx-linux-nat.c: Ditto.
9287 * tilegx-tdep.c: Ditto.
9288 * tracepoint.c: Ditto.
9290 * vaxbsd-nat.c: Ditto.
9291 * windows-nat.c: Ditto.
9292 * xtensa-tdep.c: Ditto.
9294 2014-01-07 Yao Qi <yao@codesourcery.com>
9296 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9298 2014-01-07 Yao Qi <yao@codesourcery.com>
9299 Joel Brobecker <brobecker@adacore.com>
9301 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9302 (pdc_write_regs): Likewise.
9303 (fetch_regs_kernel_thread): Likewise.
9304 (store_regs_kernel_thread): Likewise.
9306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9308 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9309 tagged type objects to their actual type.
9311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9313 * ada-valprint.c (print_field_values): Add "language" parameter.
9314 Update calls to print_field_values and print_variant_part.
9315 Pass new parameter "language" in call to val_print instead
9316 of "current_language". Replace call to ada_val_print by call
9318 (print_variant_part): Add "language" parameter.
9319 (ada_val_print_struct_union): Update call to print_field_values.
9321 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9323 * ada-valprint.c (ui_memcpy): Delete.
9324 (ada_print_floating): Update documentation. Add empty line
9325 between between function documentation and implementation.
9326 Delete variable "buffer". Use ui_file_xstrdup in place of
9327 ui_file_put. Minor adjustments following this change.
9329 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9331 * ada-valprint.c (ada_val_print_string): New function,
9332 extracted from ada_val_print_array.
9333 (ada_val_print_array): Replace extracted code by call
9334 to ada_val_print_string followed by a return. Move
9335 "else" branch to the function's top block.
9337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9339 * ada-valprint.c (ada_val_print_array): Move implementation
9340 down. Rename parameter "offset" and "val" into "offset_aligned"
9341 and "original_value" respectively. Add parameter "offset".
9343 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9345 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9346 re-organizing the code. Change the "???" message printed
9347 when target type is a TYPE_CODE_UNDEF into
9348 "<ref to undefined type>".
9350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9352 * ada-valprint.c (print_record): Delete, implementation inlined...
9353 (ada_val_print_struct_union): ... here. Remove call to
9354 ada_check_typedef in inlined implementation.
9356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9358 * ada-valprint.c (ada_val_print_gnat_array): New function,
9359 extracted from ada_val_print_1;
9360 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9361 (ada_val_print_flt, ada_val_print_struct_union)
9362 (ada_val_print_ref): Likewise.
9363 (ada_val_print_1): Delete variables i and elttype.
9364 Replace extracted-out code by call to corresponding
9367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9369 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9371 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9373 * ada-valprint.c (ada_val_print_1): Replace calls to
9374 ada_val_print_1 by calls to val_print.
9376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9378 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9379 Update calls to self accordingly. Replace calls to c_val_print
9380 by calls to val_print.
9382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9384 * ada-valprint.c (print_record): Delete declaration.
9385 (adjust_type_signedness, ada_val_print_1): Likewise.
9386 (ada_val_print): Move function implementation down.
9387 (print_variant_part, print_field_values, print_record):
9388 Move function implementation up.
9390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9392 * python/py-type.c (typy_get_name): New function.
9393 (type_object_getset): Add entry for attribute "name".
9394 * NEWS: Add entry mentioning this new attribute.
9396 2014-01-07 Yao Qi <yao@codesourcery.com>
9398 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9401 2014-01-07 Yao Qi <yao@codesourcery.com>
9403 * gnu-nat.c (info_port_rights): Add qualifier const to
9406 2014-01-07 Yao Qi <yao@codesourcery.com>
9408 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9410 2014-01-07 Yao Qi <yao@codesourcery.com>
9412 * gnu-nat.c (make_inf) Update declaration.
9413 (make_inf): Make it static.
9414 (inf_set_traced): Likewise.
9415 (inf_port_to_thread, inf_task_died_status): Likewise.
9417 2014-01-07 Yao Qi <yao@codesourcery.com>
9419 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9421 2014-01-07 Yao Qi <yao@codesourcery.com>
9423 * gnu-nat.c (_initialize_gnu_nat): Declare.
9425 2014-01-07 Yao Qi <yao@codesourcery.com>
9427 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9429 (struct gdbarch_info) <byte_order>: Change type to
9431 <byte_order_for_code>: Likewise.
9432 * gdbarch.c, gdbarch.h: Regenerated.
9434 2014-01-06 Sasha Smundak <asmundak@google.com>
9436 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9438 2014-01-06 Tom Tromey <tromey@redhat.com>
9440 * doublest.c (convert_doublest_to_floatformat): Use const, not
9442 * somread.c (som_symtab_read): Likewise.
9444 2014-01-07 Hui Zhu <hui@codesourcery.com>
9446 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9447 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9448 (gdb_bfd_fopen): Ditto.
9449 (gdb_bfd_openr): Ditto.
9450 (gdb_bfd_openw): Ditto.
9451 (gdb_bfd_openr_iovec): Ditto.
9452 (gdb_bfd_fdopenr): Ditto.
9453 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9454 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9456 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9458 * symfile-mem.c (symbol_file_add_from_memory): Removed
9459 gdb_bfd_stash_filename.
9461 2014-01-03 Doug Evans <dje@google.com>
9463 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9466 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9468 Update year range in copyright notice of all files.
9470 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9472 * top.c (print_gdb_version): Set copyright year to 2014.
9474 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9476 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9478 For older changes see ChangeLog-2013.
9484 version-control: never