1 2014-06-19 Gary Benson <gbenson@redhat.com>
3 * utils.h (resource_limit_kind): New enum.
4 (can_dump_core): New declaration.
5 (warn_cant_dump_core): Likewise.
7 * utils.c (dump_core): Made nonstatic. Added new
8 parameter "limit_kind".
9 (can_dump_core): Made nonstatic. Moved printing code to...
10 (warn_cant_dump_core): New function.
11 (can_dump_core_warn): Likewise.
12 (internal_vproblem): Replace calls to can_dump_core with
13 calls to can_dump_core_warn. Supply new argument to each.
15 2014-06-19 Gary Benson <gbenson@redhat.com>
17 * utils.h (demangler_vwarning): New declaration.
18 (demangler_warning): Likewise.
19 * utils.c (struct internal_problem)
20 <user_settable_should_quit>: New field.
21 <user_settable_should_dump_core>: Likewise
22 (internal_error_problem): Add values for above new fields.
23 (internal_warning_problem): Likewise.
24 (demangler_warning_problem): New static global.
25 (demangler_vwarning): New function.
26 (demangler_warning): Likewise.
27 (add_internal_problem_command): Selectively add commands.
28 (_initialize_utils): New internal problem command.
29 * maint.c (maintenance_demangler_warning): New function.
30 (_initialize_maint_cmds): New command.
32 2014-06-18 Tom Tromey <tromey@redhat.com>
34 * f-valprint.c (info_common_command_for_block): Update.
35 * symtab.h (struct general_symbol_info) <common_block>: Now
38 2014-06-18 Tom Tromey <tromey@redhat.com>
40 * symtab.h (struct symtab) <blockvector>: Now const.
41 * ada-lang.c (ada_add_global_exceptions): Update.
42 * buildsym.c (augment_type_symtab): Update.
43 * dwarf2read.c (dw2_lookup_symbol): Update.
44 * jit.c (finalize_symtab): Update.
45 * jv-lang.c (add_class_symtab_symbol): Update.
46 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
48 * objfiles.c (objfile_relocate1): Update.
49 * psymtab.c (lookup_symbol_aux_psymtabs)
50 (maintenance_check_psymtabs): Update.
51 * python/py-symtab.c (stpy_global_block, stpy_static_block):
53 * spu-tdep.c (spu_catch_start): Update.
54 * symmisc.c (dump_symtab_1): Update.
55 * symtab.c (lookup_global_symbol_from_objfile)
56 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
57 (basic_lookup_transparent_type_quick)
58 (basic_lookup_transparent_type, find_pc_sect_symtab)
59 (find_pc_sect_line, search_symbols): Update.
60 * block.c (find_block_in_blockvector): Make "bl" const.
61 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
63 (blockvector_contains_pc): Make "bv" const.
64 (block_for_pc_sect): Update.
65 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
66 (blockvector_contains_pc): Update.
67 * breakpoint.c (resolve_sal_pc): Update.
68 * inline-frame.c (block_starting_point_at): Update.
70 2014-06-18 Tom Tromey <tromey@redhat.com>
72 * completer.c (complete_line): Make "line_buffer" const.
73 * completer.h (complete_line): Update.
75 2014-06-18 Tom Tromey <tromey@redhat.com>
77 * symtab.c (add_macro_name): Remove unneeded cast.
79 2014-06-18 Tom Tromey <tromey@redhat.com>
81 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
82 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
84 2014-06-18 Tom Tromey <tromey@redhat.com>
86 * probe.c (info_probes_for_ops): Make "arg" const.
87 * probe.h (info_probes_for_ops): Update.
89 2014-06-18 Tom Tromey <tromey@redhat.com>
91 * varobj.c (varobj_create): Update.
92 * valops.c (value_of_this): Update.
93 * tracepoint.c (add_local_symbols, scope_info): Update.
94 * symtab.h (struct general_symbol_info) <block>: Now const.
95 * symtab.c (skip_prologue_sal)
96 (default_make_symbol_completion_list_break_on)
97 (skip_prologue_using_sal): Update.
98 * stack.h (iterate_over_block_locals)
99 (iterate_over_block_local_vars): Update.
100 * stack.c (print_frame_args): Update.
101 (iterate_over_block_locals, iterate_over_block_local_vars): Make
103 (get_selected_block): Make return type const.
104 * python/py-frame.c (frapy_block): Update.
105 * python/py-block.c (gdbpy_block_for_pc): Update.
106 * p-exp.y (%union) <bval>: Now const.
107 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
108 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
109 * m2-exp.y (%union) <bval>: Now const.
110 * linespec.c (get_current_search_block): Make return type const.
111 (create_sals_line_offset, find_label_symbols): Update.
112 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
114 (block_starting_point_at): Make "block" const.
115 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
116 (check_exception_resume): Update.
117 * guile/scm-frame.c (gdbscm_frame_block): Update.
118 * guile/scm-block.c (gdbscm_lookup_block): Update.
119 * frame.h (get_frame_block): Update.
120 (get_selected_block): Make return type const.
121 * frame.c (frame_id_inner): Update.
122 * f-valprint.c (info_common_command_for_block)
123 (info_common_command): Update.
124 * dwarf2loc.c (dwarf2_find_location_expression)
125 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
126 (locexpr_describe_location_piece): Update.
127 * c-exp.y (%union) <bval>: Now const.
128 * breakpoint.c (resolve_sal_pc): Update.
129 * blockframe.c (get_frame_block):Make return type const.
130 (get_pc_function_start, get_frame_function, find_pc_sect_function)
131 (block_innermost_frame): Update.
132 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
133 (block_for_pc, block_for_pc_sect): Update.
134 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
136 (block_for_pc_sect, block_for_pc): Make return type const.
137 * ax-gdb.c (gen_expr): Update.
138 * alpha-mdebug-tdep.c (find_proc_desc): Update.
139 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
140 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
141 (ada_read_var_value): Update.
142 * ada-exp.y (struct name_info) <block>: Now const.
144 (block_lookup): Constify.
146 2014-06-18 Gary Benson <gbenson@redhat.com>
148 * nat/i386-dregs.h: New file.
149 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
150 * i386-nat.h (i386-dregs.h): New include.
151 (DR_FIRSTADDR): Now in i386-dregs.h.
152 (DR_LASTADDR): Likewise.
153 (DR_NADDR): Likewise.
154 (DR_STATUS): Likewise.
155 (DR_CONTROL): Likewise.
156 (i386_debug_reg_state): Likewise.
157 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
159 2014-06-18 Don Breazeal <donb@codesourcery.com>
161 * breakpoint.c (set_longjmp_breakpoint): Call
162 momentary_breakpoint_from_master with additional argument.
163 (set_longjmp_breakpoint_for_call_dummy): Call
164 momentary_breakpoint_from_master with additional argument.
165 (set_std_terminate_breakpoint): Call
166 momentary_breakpoint_from_master with additional argument.
167 (momentary_breakpoint_from_master): Add argument to function
168 definition and use it to initialize structure member flag.
169 (clone_momentary_breakpoint): Call
170 momentary_breakpoint_from_master with additional argument.
171 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
172 member flags set in momentary_breakpoint_from_master.
174 2014-06-18 Gary Benson <gbenson@redhat.com>
176 * i386-nat.c (i386_show_dr): Renamed to
177 i386_dr_show and made nonstatic. All uses updated.
178 (i386_length_and_rw_bits): Renamed to
179 i386_dr_length_and_rw_bits and made nonstatic.
181 (i386_insert_aligned_watchpoint): Renamed to
182 i386_dr_insert_aligned_watchpoint and made nonstatic.
184 (i386_remove_aligned_watchpoint): Renamed to
185 i386_dr_remove_aligned_watchpoint and made nonstatic.
187 (i386_update_inferior_debug_regs): Renamed to
188 i386_dr_update_inferior_debug_regs and made nonstatic.
191 2014-06-18 Gary Benson <gbenson@redhat.com>
193 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
194 (i386_dr_low_can_set_control): Likewise.
195 (i386_dr_low_set_addr): Likewise.
196 (i386_dr_low_set_control): Likewise.
197 (i386_dr_low_get_addr): Likewise.
198 (i386_dr_low_get_status): Likewise.
199 (i386_dr_low_get_control): Likewise.
200 (i386_insert_aligned_watchpoint): Use new macros.
201 (i386_update_inferior_debug_regs): Likewise.
202 (i386_stopped_data_address): Likewise.
204 2014-06-18 Gary Benson <gbenson@redhat.com>
206 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
207 New parameter. All uses updated.
209 2014-06-18 Gary Benson <gbenson@redhat.com>
211 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
214 2014-06-18 Gary Benson <gbenson@redhat.com>
216 * i386-nat.c (debug_printf): New macro.
217 (i386_get_debug_register_length): Likewise.
218 (TARGET_HAS_DR_LEN_8): Use above macro.
219 (i386_show_dr): Use debug_printf instead of puts_unfiltered
220 and printf_unfiltered. Use phex to format values.
222 2014-06-18 Gary Benson <gbenson@redhat.com>
224 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
227 2014-06-18 Gary Benson <gbenson@redhat.com>
229 * i386-nat.c: Comment changes.
231 2014-06-18 Gary Benson <gbenson@redhat.com>
233 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
235 2014-06-18 Gary Benson <gbenson@redhat.com>
237 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
238 (i386_insert_aligned_watchpoint): Likewise.
239 (i386_remove_aligned_watchpoint): Likewise.
240 (i386_handle_nonaligned_watchpoint): Likewise.
242 2014-06-18 Gary Benson <gbenson@redhat.com>
244 * i386-nat.c: Whitespace changes.
246 2014-06-17 Samuel Bronson <naesten@gmail.com>
248 * MAINTAINERS: Update Roland McGrath's email address.
249 Thanks to Sergio Durigan Junior for pointing out that he left
250 Red Hat a while ago, and giving me a current address.
252 2014-06-17 Tom Tromey <tromey@redhat.com>
254 * utils.h (savestring): Remove declaration.
256 2014-06-17 Tom Tromey <tromey@redhat.com>
258 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
260 2014-06-16 Keith Seitz <keiths@redhat.com>
263 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
264 to update the varobj if inferior_ptid is null_ptid.
266 2014-06-16 Tom Tromey <tromey@redhat.com>
268 * target.h (struct target_ops) <to_info_proc>: Make parameter
270 (target_info_proc): Update.
271 * target.c (target_info_proc): Make "args" const.
272 * procfs.c (procfs_info_proc): Update.
273 * linux-tdep.c (linux_info_proc): Update.
274 (linux_core_info_proc_mappings): Make "args" const.
275 (linux_core_info_proc): Update.
276 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
277 * gdbarch.c: Rebuild.
278 * gdbarch.h: Rebuild.
279 * corelow.c (core_info_proc): Update.
281 2014-06-16 Tom Tromey <tromey@redhat.com>
283 * target.h (struct target_ops) <to_disconnect>: Make parameter
285 (target_disconnect): Update.
286 * target.c (target_disconnect): Make "args" const.
287 * target-delegates.c: Rebuild.
288 * remote.c (remote_disconnect): Update.
289 * record.h (record_disconnect): Update.
290 * record.c (record_disconnect): Update.
291 * inf-child.c (inf_child_disconnect): Update.
293 2014-06-16 Tom Tromey <tromey@redhat.com>
295 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
296 * target.c (debug_to_rcmd, default_rcmd): Update.
297 * target-delegates.c: Rebuild.
298 * remote.c (remote_rcmd): Update.
299 * monitor.c (monitor_rcmd): Update.
301 2014-06-16 Pedro Alves <palves@redhat.com>
303 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
304 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
305 have OBJF_SHARED set.
306 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
307 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
308 instead of OBJF_USERLOADED.
309 * objfiles.h (OBJF_SHARED): Update comment.
310 (userloaded_objfile_contains_address_p): Rename to ...
311 (shared_objfile_contains_address_p): ... this, and update
313 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
315 (remove_symbol_file_command): Skip objfiles that don't have
318 2014-06-16 Tom Tromey <tromey@redhat.com>
320 * minsyms.h (prim_record_minimal_symbol)
321 (prim_record_minimal_symbol_and_info): Update comments.
323 2014-06-14 Eli Zaretskii <eliz@gnu.org>
325 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
326 or --without-guile, according to how GDB was built.
328 2014-06-13 Tom Tromey <tromey@redhat.com>
330 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
332 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
334 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
336 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
337 help_list.Pass all_commands, not -1, to help_list.
338 * cli/cli-dump.c (dump_command, append_command)
339 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
340 (binary_dump_command, binary_append_command): Pass all_commands,
341 not -1, to help_list.
342 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
344 * valprint.c (set_print, set_print_raw): Pass all_commands, not
346 * typeprint.c (set_print_type): Pass all_commands, not -1, to
348 * top.c (set_history): Pass all_commands, not -1, to help_list.
349 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
350 all_commands, not -1, to help_list.
351 * symfile.c (overlay_command): Pass all_commands, not -1, to
353 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
355 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
357 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
359 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
360 not -1, to help_list.
361 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
362 not -1, to help_list.
363 * maint.c (maintenance_command, maintenance_info_command)
364 (maintenance_print_command, maintenance_set_cmd): Pass
365 all_commands, not -1, to help_list.
366 * macrocmd.c (macro_command): Pass all_commands, not -1, to
368 * language.c (set_check): Pass all_commands, not -1, to help_list.
369 * infcmd.c (unset_command): Pass all_commands, not -1, to
371 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
373 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
375 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
377 * breakpoint.c (save_command): Pass all_commands, not -1, to
379 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
380 all_commands, not -1, to help_list.
382 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
384 * regcache.c (struct register_to_invalidate): New structure.
385 (do_register_invalidate, make_cleanup_regcache_invalidate): New
387 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
389 2014-06-12 Yao Qi <yao@codesourcery.com>
391 * varobj.c (varobj_get_num_children): Call
393 (varobj_list_children): Likewise.
394 (varobj_update): Likewise. Update comments.
396 2014-06-12 Yao Qi <yao@codesourcery.com>
398 * varobj.c (varobj_pretty_printed_p): Rename to ...
399 (varobj_is_dynamic_p): ... this. New function.
400 * varobj.h (varobj_pretty_printed_p): Remove declaration.
401 (varobj_is_dynamic_p): Declare.
402 * mi/mi-cmd-var.c (print_varobj): All callers updated.
403 (mi_print_value_p, varobj_update_one): Likewise.
405 2014-06-12 Pedro Alves <pedro@codesourcery.com>
406 Yao Qi <yao@codesourcery.com>
408 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
409 (varobj_get_iterator): Wrap up code for pretty-printer by
410 "#if HAVE_PYTHON" and "#endif".
411 (update_dynamic_varobj_children): Likewise.
413 2014-06-12 Pedro Alves <pedro@codesourcery.com>
414 Yao Qi <yao@codesourcery.com>
416 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
417 gdb_python_initialized is false. Move some code from varobj.c.
418 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
419 * varobj.c: Move "varobj-iter.h" inclusion earlier.
420 (struct varobj_item): Moved to varobj-iter.h".
421 (varobj_clear_saved_item): New function.
422 (update_dynamic_varobj_children): Move python-related code to
424 (free_variable): Call varobj_clear_saved_item and
427 2014-06-12 Pedro Alves <pedro@codesourcery.com>
428 Yao Qi <yao@codesourcery.com>
430 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
431 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
432 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
433 (py-varobj.o): New rule.
434 * python/py-varobj.c: New file.
435 * python/python-internal.h (py_varobj_get_iterator): Declare.
436 * varobj-iter.h: New file.
437 * varobj.c: Include "varobj-iter.h"
438 (struct varobj) <child_iter>: Change its type from "PyObject *"
439 to "struct varobj_iter *".
440 <saved_item>: Likewise.
441 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
442 [HAVE_PYTHON] (varobj_get_iterator): New function.
443 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
444 python-specific code to python/py-varobj.c.
445 (install_visualizer): Call varobj_iter_delete instead of
447 * varobj.h (varobj_ensure_python_env): Declare.
449 2014-06-12 Yao Qi <yao@codesourcery.com>
451 * varobj.c (struct varobj_item): New structure.
452 (create_child_with_value): Update declaration.
453 (varobj_add_child): Replace arguments 'name' and 'value' with
454 'item'. All callers updated.
455 (install_dynamic_child): Likewise.
456 (update_dynamic_varobj_children): Likewise.
457 (varobj_add_child): Likewise.
458 (create_child_with_value): Likewise.
460 2014-06-11 Joel Brobecker <brobecker@adacore.com>
462 * NEWS: Create a new section for the next release branch.
463 Rename the section of the current branch, now that it has
466 2014-06-11 Joel Brobecker <brobecker@adacore.com>
468 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
469 * version.in: Bump version to 7.8.50.DATE-cvs.
471 2014-06-11 Pedro Alves <palves@redhat.com>
474 * ser-mingw.c (net_windows_socket_check_pending): New function.
475 (net_windows_select_thread): Ignore spurious wakeups. Use
476 net_windows_socket_check_pending.
477 (net_windows_wait_handle): Check for pending events with
478 ioctlsocket, through net_windows_socket_check_pending, instead of
479 checking the socket's event.
481 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
483 * python/python-internal.h (gdb_PyObject_GetAttrString)
484 (gdb_PyObject_HasAttrString): New inline function definitions.
485 * py-value.c (get_field_flag): Remove the now unnecessary cast to
486 char * of the second argument to PyObject_GetAttrString.
488 2014-06-10 Joel Brobecker <brobecker@adacore.com>
490 * serial.c (serial_write): Fix index of character to be printed
491 in call to serial_logchar when serial debug traces are enabled.
493 2014-06-10 Joel Brobecker <brobecker@adacore.com>
495 * gdbtypes (resolve_dynamic_range): Add function description.
497 2014-06-09 Pedro Alves <palves@redhat.com>
499 * linux-nat.c (linux_child_follow_fork): Initialize status with
500 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
501 inner block. Only pass the signal to PTRACE_DETACH if in pass
504 2014-06-09 Gary Benson <gbenson@redhat.com>
506 * common/signals.c (gdb_signal_from_host): Reorder to separate
507 the always-available ANSI-standard signals from the signals that
509 (do_gdb_signal_to_host): Likewise.
510 * proc-events.c (signal_table): Likewise.
512 2014-06-08 Hui Zhu <hui@codesourcery.com>
514 * common/linux-ptrace.c (linux_disable_event_reporting): New
516 * common/linux-ptrace.h (linux_disable_event_reporting): New
518 * linux-nat.c (linux_child_follow_fork): Do a single step before
521 2014-06-07 Keith Seitz <keiths@redhat.com>
525 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
526 from symbol_matches_domain in symtab.c. All local callers
527 of symbol_matches_domain updated.
528 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
529 search STRUCT_DOMAIN.
530 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
531 independently. standard_lookup will do that automatically.
532 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
533 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
534 (cp_lookup_symbol_in_namespace): Likewise.
535 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
536 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
537 may return a STRUCT_DOMAIN match.
538 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
539 * cp-support.c: Include language.h.
540 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
542 * psymtab.c (match_partial_symbol): Compare the requested
543 domain with the symbol's domain directly.
544 (lookup_partial_symbol): Likewise.
545 * symtab.c (lookup_symbol_in_language): Explain when/why
546 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
547 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
548 appropriate languages.
549 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
550 and moved to ada-lang.c
551 (lookup_block_symbol): Explain that this function only returns
552 symbol matching the requested DOMAIN.
553 Compare the requested domain with the symbol's domain directly.
554 (iterate_over_symbols): Compare the requested domain with the
555 symbol's domain directly.
556 * symtab.h (symbol_matches_domain): Remove.
558 2014-06-06 Doug Evans <xdje42@gmail.com>
560 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
561 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
562 (gdbscm_guile_version_is_at_least): Declare.
563 (gdbscm_scm_string_to_int): Declare.
564 * guile/guile.c (gdbscm_guile_major_version): New global.
565 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
566 (guile_datadir): New static global.
567 (gdbscm_guile_data_directory): New function.
568 (initialize_scheme_side): Update.
569 (misc_guile_functions): Add guile-data-directory.
570 (initialize_gdb_module): Fetch guile version number.
571 * guile/lib/gdb.scm: Remove call to add-to-load-path.
572 * guile/lib/gdb/init.scm (%initialize!): Ditto.
573 * guile/lib/gdb/boot.scm: Use guile-data-directory.
574 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
576 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
577 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
578 * guile/scm-value.c (gdbscm_value_to_string): Only call
579 scm_port_conversion_strategy if Guile version >= 2.0.6.
581 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
583 * main.c (print_gdb_help): Add -q and --silent.
585 2014-06-06 Gary Benson <gbenson@redhat.com>
587 * common/signals.c: Remove preprocessor conditionals for
588 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
590 * proc-events.c: Likewise.
592 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
594 * symfile.c (symfile_free_objfile): Remove restriction to
596 * symfile-mem.c (symbol_file_add_from_memory): Call
597 add_target_sections_of_objfile.
599 2014-06-05 Ludovic Courtès <ludo@gnu.org>
601 * guile/scm-value.c (gdbscm_history_append_x): Use
602 'vlscm_get_value_smob_arg_unsafe' instead of
603 'vlscm_scm_to_value'.
605 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
608 * utils.c (printchar): Don't escape at all if quoter is NUL.
609 Update function documentation to clarify effect of parameter
611 * remote.c (escape_buffer): Pass '\\' as the quoter to
613 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
615 (mi_solib_unloaded): Same.
617 2014-06-05 Joel Brobecker <brobecker@adacore.com>
619 * development.sh: Delete.
620 * Makefile.in (config.status): Adjust dependency on development.sh.
621 * configure.ac: Adjust development.sh source call.
622 * configure: Regenerate.
624 2014-06-04 Doug Evans <xdje42@gmail.com>
626 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
627 is_scheme_bkpt, spec.
628 (bpscm_make_breakpoint_smob): Initialize new members.
629 (gdbscm_create_breakpoint_x): Split into two ...
630 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
631 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
632 (scheme_function breakpoint_functions): Update.
633 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
634 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
635 register-breakpoint!.
637 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
640 * mem-break.c (z_type_supported): Return zero if
641 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
643 2014-06-04 Tom Tromey <tromey@redhat.com>
645 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
646 value_from_contents_and_address_unresolved.
647 (ada_template_to_fixed_record_type_1): Likewise.
648 (ada_which_variant_applies): Likewise.
649 * value.h (value_from_contents_and_address_unresolved): Declare.
650 * value.c (value_from_contents_and_address_unresolved): New
652 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
653 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
654 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
656 2014-06-04 Tom Tromey <tromey@redhat.com>
658 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
660 2014-06-04 Tom Tromey <tromey@redhat.com>
662 * procfs.c (procfs_attach): Make "args" const.
663 * windows-nat.c (windows_attach): Make "args" const.
664 * nto-procfs.c (procfs_attach): Make "args" const.
665 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
666 * go32-nat.c (go32_attach): Make "args" const.
667 * gnu-nat.c (gnu_attach): Make "args" const.
668 * darwin-nat.c (darwin_attach): Make "args" const.
669 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
670 * linux-nat.c (linux_nat_attach): Make "args" const.
671 * remote.c (extended_remote_attach_1, extended_remote_attach):
673 * target.h (struct target_ops) <to_attach>: Make "args" const.
674 (find_default_attach): Likewise.
675 * utils.c (parse_pid_to_attach): Make "args" const.
676 * utils.h (parse_pid_to_attach): Update.
678 2014-06-04 Tom Tromey <tromey@redhat.com>
680 * target-delegates.c: Rebuild.
681 * target.c (default_thread_address_space): New function.
682 (target_thread_address_space): Simplify.
683 * target.h (struct target_ops) <to_thread_address_space>: Add
686 2014-06-04 Doug Evans <xdje42@gmail.com>
688 * guile/scm-type.c (type_smob): Remove duplicate typedef.
690 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
692 * record-btrace.c: Include event-loop.h and inf-loop.h.
693 (record_btrace_resume_exec_dir)
694 (record_btrace_async_inferior_event_handler)
695 (record_btrace_handle_async_inferior_event): New.
696 (record_btrace_open): Create async event handler.
697 (record_btrace_close): Delete async event handler.
698 (record_btrace_resume): Set record_btrace_resume_exec_dir,
699 Mark async event handler.
700 (record_btrace_execution_direction): New.
701 (init_record_btrace_ops): Initialize to_execution_direction.
703 2014-06-03 Doug Evans <xdje42@gmail.com>
705 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
706 (gdbscm_make_parameter): Ditto.
708 2014-06-03 Doug Evans <dje@google.com>
710 * exec.c (exec_close_1): Call clear_section_table instead of
711 resize_section_table.
712 (clear_section_table): New function.
713 (resize_section_table): Make static. Rename arg num_added to
715 * exec.h (clear_section_table): Declare.
716 (resize_section_table): Delete.
717 * progspace.c (release_program_space): Call clear_section_table
718 instead of resize_section_table.
720 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
722 * NEWS (Python Scripting): Add entry about the new xmethods
725 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
727 * python/py-xmethods.c: New file.
728 * python/py-objfile.c (objfile_object): New field 'xmethods'.
729 (objfpy_dealloc): XDECREF on the new xmethods field.
730 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
732 (objfpy_get_xmethods): New function.
733 (objfile_getset): New entry 'xmethods'.
734 * python/py-progspace.c (pspace_object): New field 'xmethods'.
735 (pspy_dealloc): XDECREF on the new xmethods field.
736 (pspy_new, pspace_to_pspace_object): Initialize xmethods
738 (pspy_get_xmethods): New function.
739 (pspace_getset): New entry 'xmethods'.
740 * python/python-internal.h: Add declarations for new functions.
741 * python/python.c (_initialize_python): Invoke
742 gdbpy_initialize_xmethods.
743 * python/lib/gdb/__init__.py (xmethods): New
745 * python/lib/gdb/xmethod.py: New file.
746 * python/lib/gdb/command/xmethods.py: New file.
748 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
750 * eval.c (evaluate_subexp_standard): Call the xmethod if the
751 best match method returned by find_overload_match is an xmethod.
752 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
753 the best matching operator returned by find_overload_match is an
755 * valops.c: #include "extension.h".
756 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
757 Return void. The list of matching source methods is returned in
758 "fn_list" and a vector of matching debug method workers is
759 returned in "xm_worker_vec". Update all callers.
760 (value_find_oload_method_list): Likewise.
761 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
762 non-NULL, then the index of the best matching method in this
763 vector is returned. Update all callers.
764 (find_overload_match): Include xmethods while performing overload
767 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
769 * defs.h (enum lval_type): New enumerator "lval_xcallable".
770 * extension-priv.h (struct extension_language_ops): Add the
772 * extension.c (new_xmethod_worker, clone_xmethod_worker,
773 get_matching_xmethod_workers, get_xmethod_argtypes,
774 invoke_xmethod, free_xmethod_worker,
775 free_xmethod_worker_vec): New functions.
776 * extension.h: #include "common/vec.h".
777 New function declarations.
778 (struct xmethod_worker): New struct.
779 (VEC (xmethod_worker_ptr)): New vector type.
780 (xmethod_worker_ptr): New typedef.
781 (xmethod_worker_vec): Likewise.
782 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
784 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
785 (struct builtin_type): New field "xmethod".
786 * valarith.c (value_ptradd): Assert that the value argument is not
788 * valops.c (value_must_coerce_to_target): Return 0 for
789 lval_xcallable values.
790 * value.c (struct value): New field XM_WORKER in the field
792 (value_address, value_raw_address): Return 0 for lval_xcallable
794 (set_value_address): Assert that the value is not an
796 (value_free): Free the associated xmethod worker when freeing
797 lval_xcallable values.
798 (set_value_component_location): Assert that the WHOLE value is not
800 (value_of_xmethod, call_xmethod): New functions.
801 * value.h: Declare "struct xmethod_worker".
802 Declare new functions value_of_xmethod, call_xmethod.
804 2014-06-03 Joel Brobecker <brobecker@adacore.com>
805 Pedro Alves <palves@redhat.com>
808 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
809 New function, extracted from software_breakpoint_inserted_here_p.
810 (software_breakpoint_inserted_here_p): Replace factored out code
811 by call to find_non_raw_software_breakpoint_inserted_here.
812 (bp_target_info_copy_insertion_state): New function.
813 (bkpt_insert_location): Handle the case of a single-step
814 breakpoint already inserted at the same address.
815 (bkpt_remove_location): Handle the case of a single-step
816 breakpoint still inserted at the same address.
817 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
818 breakpoint already inserted at the same address.
819 (deprecated_remove_raw_breakpoint): Handle the case of a
820 non-raw breakpoint still inserted at the same address.
821 (find_single_step_breakpoint): New function, extracted from
822 single_step_breakpoint_inserted_here_p.
823 (find_single_step_breakpoint): New function,
824 factored out from single_step_breakpoint_inserted_here_p.
825 (single_step_breakpoint_inserted_here_p): Reimplement.
827 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
829 Pushed by Joel Brobecker <brobecker@adacore.com>
830 * source.c (show_substitute_path_command): Fix display of matching
833 2014-06-03 Gary Benson <gbenson@redhat.com>
835 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
837 2014-06-02 Doug Evans <xdje42@gmail.com>
839 Add parameter support for Guile.
840 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
841 (SUBDIR_GUILE_SRCS): Add scm-param.c.
842 (scm-param.o): New rule.
843 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
844 (gdbscm_misc_error): Declare.
845 (gdbscm_canonicalize_command_name): Declare.
846 (gdbscm_scm_to_host_string): Declare.
847 (gdbscm_scm_from_host_string): Declare.
848 (gdbscm_initialize_parameters): Declare.
849 * guile/guile.c (initialize_gdb_module): Call
850 gdbscm_initialize_parameters.
851 * guile/lib/gdb.scm: Export parameter symbols.
852 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
853 cmdscm_canonicalize_name and made public. All callers updated.
854 * guile/scm-exception.c (gdbscm_misc_error): New function.
855 * guile/scm-param.c: New file.
856 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
857 (gdbscm_scm_to_host_string): New function.
858 (gdbscm_scm_from_host_string): New function.
859 * scm-utils.c (gdbscm_gc_dup_argv): New function.
861 2014-06-02 Doug Evans <xdje42@gmail.com>
863 Add command support for Guile.
864 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
865 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
866 (scm-cmd.o): New rule.
867 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
868 (gdbscm_user_error_p): Declare.
869 (gdbscm_parse_command_name): Declare.
870 (gdbscm_valid_command_class_p): Declare.
871 (gdbscm_initialize_commands): Declare.
872 * guile/guile.c (initialize_gdb_module): Call
873 gdbscm_initialize_commands.
874 * guile/lib/gdb.scm: Export command symbols.
875 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
876 (throw-user-error): New function.
877 * guile/scm-cmd.c: New file.
878 * guile/scm-exception.c (user_error_symbol): New static global.
879 (gdbscm_user_error_p): New function.
880 (gdbscm_initialize_exceptions): Set user_error_symbol.
881 * scm-utils.c (gdbscm_gc_xstrdup): New function.
883 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
885 * top.c (command_loop): Handle comments here...
886 (command_line_input): ... not here.
888 2014-06-02 Doug Evans <xdje42@gmail.com>
890 Add progspace support for Guile.
891 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
892 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
893 (scm-progspace.o): New rule.
894 * guile/guile-internal.h (pspace_smob): New typedef.
895 (psscm_pspace_smob_pretty_printers): Declare.
896 (psscm_pspace_smob_from_pspace): Declare.
897 (psscm_scm_from_pspace): Declare.
898 * guile/guile.c (initialize_gdb_module): Call
899 gdbscm_initialize_pspaces.
900 * guile/lib/gdb.scm: Export progspace symbols.
901 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
903 (append-pretty-printer!): Ditto.
904 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
906 * guile/scm-progspace.c: New file.
908 2014-06-03 Alan Modra <amodra@gmail.com>
910 * ppc64-tdep.c (ppc64_standard_linkage8): New.
911 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
913 2014-06-02 Doug Evans <dje@google.com>
915 Add support for skeletonless type units.
916 * dwarf2read.c (struct dwarf2_per_objfile): New member
917 n_allocated_type_units.
918 (struct dwarf2_per_objfile) <tu_stats>: New member
919 nr_all_type_units_reallocs.
920 (create_signatured_type_table_from_index): Initialize
921 n_allocated_type_units
922 (create_all_type_units): Ditto.
923 (add_type_unit): Move up in file. New arg slot.
924 All callers updated. Increase space for all_type_units more
926 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
927 (lookup_dwo_signatured_type): Handle skeletonless TUs.
928 (lookup_dwp_signatured_type): Ditto.
929 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
931 (build_type_psymtabs_1): Leave type_unit_groups as
932 NULL if no TUs present.
933 (print_tu_stats): New function.
934 (process_skeletonless_type_unit): New function.
935 (process_dwo_file_for_skeletonless_type_units): New
937 (process_skeletonless_type_units): New function.
938 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
939 Call print tu_stats if debugging enabled.
941 2014-06-02 Pedro Alves <palves@redhat.com>
943 * breakpoint.c (build_target_command_list): Don't build a command
944 list if we have any duplicate location that isn't a dprintf.
946 2014-06-02 Pedro Alves <palves@redhat.com>
948 * breakpoint.c (dprintf_breakpoint_hit): New function.
949 (initialize_breakpoint_ops): Install it as dprintf's
950 breakpoint_hit method.
952 2014-06-02 Joel Brobecker <brobecker@adacore.com>
954 * source.c (substitute_path_rule_matches): Simplify using
955 filename_ncmp instead of FILENAME_CMP.
957 2014-06-02 Joel Brobecker <brobecker@adacore.com>
959 * source.c (substitute_path_rule_matches): Remove trailing spaces.
961 2014-06-01 Ludovic Courtès <ludo@gnu.org>
963 * configure.ac: When Guile is available, check for the
964 availability of 'scm_new_smob'.
965 * configure, config.h.in: Regenerate.
966 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
969 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
971 * frame.c (struct frame_info): Add stop_string field.
972 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
973 (get_prev_frame_always): Old content moved into
974 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
975 TRY_CATCH, handle MEMORY_ERROR exceptions.
976 (frame_stop_reason_string): New function definition.
977 * frame.h (unwind_stop_reason_to_string): Extend comment to
978 mention frame_stop_reason_string.
979 (frame_stop_reason_string): New function declaration.
980 * stack.c (frame_info): Switch to frame_stop_reason_string.
981 (backtrace_command_1): Switch to frame_stop_reason_string.
982 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
983 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
984 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
986 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
988 * frame.c (frame_stop_reason_string): Rename to ...
989 (unwind_stop_reason_to_string): this.
990 * frame.h (frame_stop_reason_string): Rename to ...
991 (unwind_stop_reason_to_string): this.
992 * stack.c (frame_info): Update call to frame_stop_reason_string.
993 (backtrace_command_1): Likewise.
994 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
995 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
997 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
999 * frame.c (remove_prev_frame): New function.
1000 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1003 2014-05-29 Pedro Alves <palves@redhat.com>
1005 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1006 and make it const. When a single-step decays to a continue,
1007 clear 'step', not 'hw_step'. Pass whether the caller wanted
1008 to step to user_visible_resume_ptid, not what we ask the
1011 2014-05-29 Pedro Alves <palves@redhat.com>
1013 * infrun.c (process_event_stop_test, handle_step_into_function)
1014 (handle_step_into_function_backward): Adjust.
1015 Don't set the even thread's stop_step and call stop_waiting before
1016 calling end_stepping_range. Instead do that ...
1017 (end_stepping_range): ... here. Take an ecs pointer parameter.
1019 2014-05-29 Pedro Alves <palves@redhat.com>
1021 * infrun.c (stop_stepping): Rename to ...
1022 (stop_waiting): ... this.
1023 (proceed): Update comment.
1024 (process_event_stop_test, handle_inferior_event)
1025 (handle_signal_stop, handle_step_into_function)
1026 (handle_step_into_function_backward): Update.
1028 2014-05-29 Pedro Alves <palves@redhat.com>
1030 * infcall.c (run_inferior_call): Don't check whether the current
1031 thread is running after the proceed call.
1033 2014-05-29 Pedro Alves <palves@redhat.com>
1034 Tom Tromey <tromey@redhat.com>
1036 * NEWS: Mention "maint set target-async", "set mi-async", and that
1037 background execution commands are now always available.
1038 * target.h (target_async_permitted): Update comment.
1039 * target.c (target_async_permitted, target_async_permitted_1):
1041 (set_target_async_command): Rename to ...
1042 (maint_set_target_async_command): ... this.
1043 (show_target_async_command): Rename to ...
1044 (maint_show_target_async_command): ... this.
1045 (_initialize_target): Adjust.
1046 * infcmd.c (prepare_execution_command): Make extern.
1047 * inferior.h (prepare_execution_command): Declare.
1048 * infrun.c (set_observer_mode): Leave target async alone.
1049 * mi/mi-interp.c (mi_interpreter_init): Install
1050 mi_on_sync_execution_done as sync_execution_done observer.
1051 (mi_on_sync_execution_done): New function.
1052 (mi_execute_command_input_handler): Don't print the prompt if we
1053 just started a synchronous command with an async target.
1054 (mi_on_resume): Check sync_execution before printing prompt.
1055 * mi/mi-main.h (mi_async_p): Declare.
1056 * mi/mi-main.c: Include gdbcmd.h.
1057 (mi_async_p): New function.
1058 (mi_async, mi_async_1): New globals.
1059 (set_mi_async_command, show_mi_async_command, mi_async): New
1061 (exec_continue): Call prepare_execution_command.
1062 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1063 (mi_execute_async_cli_command): Use mi_async_p.
1064 (_initialize_mi_main): Install "set mi-async". Make
1065 "target-async" a deprecated alias.
1067 2014-05-29 Pedro Alves <palves@redhat.com>
1069 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1070 (_initialize_cli_interp): Adjust.
1071 * event-loop.c: Include "observer.h".
1072 (start_event_loop): Notify 'command_error' observers instead of
1073 calling display_gdb_prompt. Remove FIXME comment.
1074 * event-top.c (display_gdb_prompt): Remove call into the
1076 * inf-loop.c: Include "observer.h".
1077 (inferior_event_handler): Notify 'command_error' observers instead
1078 of calling display_gdb_prompt.
1079 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1080 observers instead of calling display_gdb_prompt.
1081 * interps.c (interp_set): Don't call display_gdb_prompt.
1082 (current_interp_display_prompt_p): Delete.
1083 * interps.h (interp_prompt_p): Delete declaration.
1084 (interp_prompt_p_ftype): Delete.
1085 (struct interp_procs) <prompt_proc_p>: Delete field.
1086 (current_interp_display_prompt_p): Delete declaration.
1087 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1088 (_initialize_mi_interp): Adjust.
1089 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1090 'command_error' observers.
1091 (tui_on_sync_execution_done, tui_on_command_error): New
1093 (tui_display_prompt_p): Delete.
1094 (_initialize_tui_interp): Adjust.
1096 2014-05-29 Pedro Alves <palves@redhat.com>
1099 * cli/cli-interp.c: Include infrun.h and observer.h.
1100 (cli_uiout, cli_interp): New globals.
1101 (cli_on_signal_received, cli_on_end_stepping_range)
1102 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1104 (cli_interpreter_init): Install them as 'end_stepping_range',
1105 'signal_received' 'signal_exited', 'exited' and 'no_history'
1107 (_initialize_cli_interp): Remove cli_interp local.
1108 * infrun.c (handle_inferior_event): Call the several stop reason
1109 observers instead of printing the stop reason directly.
1110 (end_stepping_range): New function.
1111 (print_end_stepping_range_reason, print_signal_exited_reason)
1112 (print_exited_reason, print_signal_received_reason)
1113 (print_no_history_reason): Make static, and add an uiout
1114 parameter. Print to that instead of to CURRENT_UIOUT.
1115 * infrun.h (print_end_stepping_range_reason)
1116 (print_signal_exited_reason, print_exited_reason)
1117 (print_signal_received_reason print_no_history_reason): New
1119 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1121 <cli_uiout>: New field.
1122 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1123 uiout for CLI output. Install 'signal_received',
1124 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1126 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1127 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1128 (mi_on_no_history): New functions.
1129 (ui_out_free_cleanup): Delete function.
1130 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1131 instead use the one already stored in the MI interpreter data.
1132 (mi_ui_out): Adjust.
1133 * tui/tui-interp.c: Include infrun.h and observer.h.
1134 (tui_interp): New global.
1135 (tui_on_signal_received, tui_on_end_stepping_range)
1136 (tui_on_signal_exited, tui_on_exited)
1137 (tui_on_no_history): New functions.
1138 (tui_init): Install them as 'end_stepping_range',
1139 'signal_received' 'signal_exited', 'exited' and 'no_history'
1141 (_initialize_tui_interp): Delete tui_interp local.
1143 2014-05-29 Pedro Alves <palves@redhat.com>
1146 * linux-nat.c (linux_nat_resume_callback): Rename the second
1147 parameter to 'except'. Skip LP if it points to EXCEPT.
1148 (linux_nat_resume): Don't mark the event lwp as not stopped
1149 before resuming sibling lwps. Instead ask
1150 linux_nat_resume_callback to skip the event lwp. Mark it as not
1151 stopped after actually resuming it.
1152 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1154 (wait_lwp): Mark the lwp as stopped here.
1155 (stop_wait_callback): Mark the lwp as not stopped right after
1156 resuming it. Don't mark lwps as stopped here.
1157 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1158 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1160 2014-05-29 Pedro Alves <palves@redhat.com>
1163 * infrun.c (resume): Determine how much to resume depending on
1164 whether the caller wanted a step, not whether we can hardware step
1165 the target. Mark all threads that we intend to run as running,
1166 unless we're calling an inferior function.
1167 (normal_stop): If the thread is running an infcall, don't finish
1169 * target.c (target_resume): Don't mark threads as running here.
1171 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1173 * serial.c (_initialize_serial): Remove support for
1174 the "set remotebaud" and "show remotebaud" commands.
1175 * NEWS: Add entry documenting the removal of that command.
1177 2014-05-28 Yao Qi <yao@codesourcery.com>
1179 * charset.c: Fix typo in comments.
1181 2014-05-27 Gary Benson <gbenson@redhat.com>
1183 * utils.c (internal_vproblem): Prompt for a bug report.
1185 2014-05-26 Andy Wingo <wingo@igalia.com>
1187 * guile/scm-arch.c (arscm_mark_arch_smob):
1188 * guile/scm-block.c (bkscm_mark_block_smob)
1189 (bkscm_mark_block_syms_progress_smob):
1190 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1191 * guile/scm-exception.c (exscm_mark_exception_smob):
1192 * guile/scm-frame.c (frscm_mark_frame_smob):
1193 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1194 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1195 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1196 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1197 (ppscm_mark_pretty_printer_worker_smob):
1198 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1199 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1200 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1201 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1203 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1206 2014-05-26 Andy Wingo <wingo@igalia.com>
1207 Doug Evans <xdje42@gmail.com>
1209 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1210 empty_base_class. All uses updated.
1211 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1212 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1214 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1215 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1216 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1217 (gdbscm_gsmob_has_property_p, add_property_name)
1218 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1219 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1220 (gdb-object-has-property?, gdb-object-properties): Remove.
1221 (gdb-object-kind): Renamed from gsmob-kind.
1223 2014-05-26 Andy Wingo <wingo@igalia.com>
1225 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1226 * configure: Regenerate.
1228 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1230 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1232 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1234 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1235 (replay_memory_access_read_only, replay_memory_access_read_write)
1236 (replay_memory_access_types, replay_memory_access)
1237 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1238 (cmd_set_record_btrace, cmd_show_record_btrace)
1239 (cmd_show_replay_memory_access): New.
1240 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1241 (record_btrace_remove_breakpoint): Replace
1242 record_btrace_allow_memory_access with replay_memory_access.
1243 (_initialize_record_btrace): Add commands.
1244 * NEWS: Announce it.
1246 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1248 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1250 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1252 * MAINTAINERS (Write After Approval): Move self back from
1255 2014-05-22 Pedro Alves <palves@redhat.com>
1257 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1258 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1259 (disable_randomization, enum exec_direction_kind)
1260 (execution_direction, stop_registers, start_remote)
1261 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1262 (wait_for_inferior, normal_stop, get_last_target_status)
1263 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1264 (insert_step_resume_breakpoint_at_sal)
1265 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1266 (set_step_info, print_stop_event, signal_stop_state)
1267 (signal_print_state, signal_pass_state, signal_stop_update)
1268 (signal_print_update, signal_pass_update)
1269 (update_signals_program_target, clear_exit_convenience_vars)
1270 (displaced_step_dump_bytes, update_observer_mode)
1271 (signal_catch_update, gdb_signal_from_command): Move
1273 * infrun.h: ... to this new file.
1274 * amd64-tdep.c: Include infrun.h.
1275 * annotate.c: Include infrun.h.
1276 * arch-utils.c: Include infrun.h.
1277 * arm-linux-tdep.c: Include infrun.h.
1278 * arm-tdep.c: Include infrun.h.
1279 * break-catch-sig.c: Include infrun.h.
1280 * breakpoint.c: Include infrun.h.
1281 * common/agent.c: Include infrun.h instead of inferior.h.
1282 * corelow.c: Include infrun.h.
1283 * event-top.c: Include infrun.h.
1284 * go32-nat.c: Include infrun.h.
1285 * i386-tdep.c: Include infrun.h.
1286 * inf-loop.c: Include infrun.h.
1287 * infcall.c: Include infrun.h.
1288 * infcmd.c: Include infrun.h.
1289 * infrun.c: Include infrun.h.
1290 * linux-fork.c: Include infrun.h.
1291 * linux-nat.c: Include infrun.h.
1292 * linux-thread-db.c: Include infrun.h.
1293 * monitor.c: Include infrun.h.
1294 * nto-tdep.c: Include infrun.h.
1295 * procfs.c: Include infrun.h.
1296 * record-btrace.c: Include infrun.h.
1297 * record-full.c: Include infrun.h.
1298 * remote-m32r-sdi.c: Include infrun.h.
1299 * remote-mips.c: Include infrun.h.
1300 * remote-notif.c: Include infrun.h.
1301 * remote-sim.c: Include infrun.h.
1302 * remote.c: Include infrun.h.
1303 * reverse.c: Include infrun.h.
1304 * rs6000-tdep.c: Include infrun.h.
1305 * s390-linux-tdep.c: Include infrun.h.
1306 * solib-irix.c: Include infrun.h.
1307 * solib-osf.c: Include infrun.h.
1308 * solib-svr4.c: Include infrun.h.
1309 * target.c: Include infrun.h.
1310 * top.c: Include infrun.h.
1311 * windows-nat.c: Include infrun.h.
1312 * mi/mi-interp.c: Include infrun.h.
1313 * mi/mi-main.c: Include infrun.h.
1314 * python/py-threadevent.c: Include infrun.h.
1316 2014-05-22 Pedro Alves <palves@redhat.com>
1318 * infrun.c (handle_inferior_event): Store the exit code for
1319 --return-child-result here, instead of ...
1320 (print_exited_reason): ... here.
1322 2014-05-21 Pedro Alves <palves@redhat.com>
1325 * gdbthread.h (struct thread_control_state): New field
1327 * infrun.c (follow_fork): Copy the new thread control field to the
1329 (clear_proceed_status_thread): Clear the new thread control field.
1330 (proceed): Set the new thread control field.
1331 * interps.h (command_interp): Declare.
1332 * interps.c (command_interpreter): New global.
1333 (command_interp): New function.
1334 (interp_exec): Set `command_interpreter' while here.
1335 * cli-out.c (cli_uiout_dtor): New function.
1336 (cli_ui_out_impl): Install it.
1337 * mi/mi-interp.c: Include cli-out.h.
1338 (mi_cmd_interpreter_exec): Add comment.
1339 (restore_current_uiout_cleanup): New function.
1340 (ui_out_free_cleanup): New function.
1341 (mi_on_normal_stop): If finishing an execution command started by
1342 a CLI command, or any kind of breakpoint-like event triggered,
1343 print the stop event to the output (CLI) stream.
1344 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1346 2014-05-21 Pedro Alves <palves@redhat.com>
1348 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1349 current source line having changed.
1350 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1351 * infrun.c (normal_stop): Adjust call to
1352 set_current_sal_from_frame.
1353 * source.c (clear_lines_listed_range): New function.
1354 (set_current_source_symtab_and_line, identify_source_line): Clear
1355 the lines listed range.
1356 (line_info): Handle the first "info line" after the current source
1357 line having changed.
1358 * stack.c (print_stack_frame): Remove center handling.
1359 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1362 2014-05-21 Pedro Alves <palves@redhat.com>
1364 * inf-child.c (inf_child_mourn_inferior): New function.
1365 * inf-child.h (inf_child_mourn_inferior): New declaration.
1366 * darwin-nat.c (darwin_mourn_inferior): Use
1367 inf_child_mourn_inferior.
1368 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1369 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1370 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1371 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1372 * windows-nat.c (windows_mourn_inferior): Likewise.
1374 2014-05-21 Doug Evans <xdje42@gmail.com>
1376 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1378 2014-05-21 Doug Evans <xdje42@gmail.com>
1380 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1381 (gdbscm_out_of_range_error): Ditto.
1382 (gdbscm_memory_error): Ditto.
1383 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1384 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1385 (gdbscm_out_of_range_error): Update.
1386 (gdbscm_memory_error): Update.
1387 (gdbscm_scm_to_target_string_unsafe): Delete.
1389 2014-05-21 Pedro Alves <palves@redhat.com>
1391 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1393 (inf_child_open_target): New function.
1394 (inf_child_open): Use inf_child_open_target to push the target
1395 instead of erroring out.
1396 (inf_child_disconnect, inf_child_close)
1397 (inf_child_maybe_unpush_target): New functions.
1398 (inf_child_target): Install inf_child_disconnect and
1399 inf_child_close. Store a pointer to the returned object.
1400 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1402 * target.c (auto_connect_native_target): New global.
1403 (show_default_run_target): New function.
1404 (find_default_run_target): Return NULL if automatically connecting
1405 to the native target is disabled.
1406 (_initialize_target): Install set/show auto-connect-native-target.
1407 * NEWS: Mention "set auto-connect-native-target", and "target
1409 * linux-nat.c (super_close): New global.
1410 (linux_nat_close): Call super_close.
1411 (linux_nat_add_target): Store a pointer to the base class's
1413 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1414 inf_child_maybe_unpush.
1415 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1417 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1418 the inferior. Use inf_child_maybe_unpush_target.
1419 (inf_ttrace_attach): Don't push the target if it is already
1421 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1422 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1423 after mourning the inferior. Use inf_child_maybe_unpush_target.
1424 (darwin_attach_pid): Don't push the target if it is already
1426 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1427 mourning the inferior. Use inf_child_maybe_unpush_target.
1428 (gnu_detach): Use inf_child_maybe_unpush_target.
1429 * go32-nat.c (go32_create_inferior): Don't push the target if it
1431 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1432 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1433 (procfs_open): Rename to ...
1434 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1435 comments. Can target_preopen before changing node. Call
1436 inf_child_open_target to push the target explicitly.
1437 (procfs_attach): Don't push the target if it is already pushed.
1438 (procfs_detach): Use inf_child_maybe_unpush_target.
1439 (procfs_create_inferior): Don't push the target if it is already
1441 (nto_native_ops): New global.
1442 (procfs_open): Reimplement.
1443 (procfs_native_open): New function.
1444 (init_procfs_targets): Install procfs_native_open as to_open of
1445 "target native". Store a pointer to the "native" target in
1447 * procfs.c (procfs_attach): Don't push the target if it is already
1449 (procfs_detach): Use inf_child_maybe_unpush_target.
1450 (procfs_mourn_inferior): Only unpush the target after mourning the
1451 inferior. Use inf_child_maybe_unpush_target.
1452 (procfs_init_inferior): Don't push the target if it is already
1454 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1455 if it is already pushed.
1457 2014-05-21 Pedro Alves <palves@redhat.com>
1459 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1460 and "procfs" targets are now called "native" instead.
1462 2014-05-21 Pedro Alves <palves@redhat.com>
1464 * go32-nat.c (go32_open): Delete.
1465 (go32_target): Don't override the to_open method.
1467 2014-05-21 Pedro Alves <palves@redhat.com>
1469 * nto-procfs.c (procfs_can_run): New function.
1470 (nto_procfs_ops): New global.
1471 (init_procfs_targets): New, based on procfs_target. Install
1472 "target native" in addition to "target procfs".
1473 (_initialize_procfs): Call init_procfs_targets instead of adding
1476 2014-05-21 Pedro Alves <palves@redhat.com>
1478 * windows-nat.c (windows_target): Don't override to_shortname,
1479 to_longname or to_doc.
1481 2014-05-21 Pedro Alves <palves@redhat.com>
1483 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1486 2014-05-21 Pedro Alves <palves@redhat.com>
1488 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1489 to_shortname, to_longname or to_doc.
1491 2014-05-21 Pedro Alves <palves@redhat.com>
1493 * go32-nat.c (go32_target): Don't override to_shortname,
1494 to_longname or to_doc.
1496 2014-05-21 Pedro Alves <palves@redhat.com>
1498 * inf-child.c (inf_child_open): Remove mention of "child".
1499 (inf_child_target): Rename target to "native" instead of "child".
1501 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503 * Makefile.in (SFILES): Delete "regset.c".
1504 (COMMON_OBS): Delete "regset.o".
1506 * regset.h (regset_alloc): Delete prototype.
1508 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1510 * sparc-linux-tdep.c (sparc32_linux_gregset)
1511 (sparc32_linux_fpregset): New static regset structures.
1512 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1513 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1515 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1516 (sparc64_linux_fpregset): New static regset structures.
1517 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1518 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1519 New static regset structures.
1520 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1521 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1522 New static regset structures.
1523 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1524 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1525 New static regset structures.
1526 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1527 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1528 New static regset structures.
1529 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1531 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1533 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1534 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1535 register maps ("regmaps") from "*regset" to "*regmap". Do this
1536 for all regmap types and variables.
1537 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1538 (sparc32_linux_supply_core_gregset)
1539 (sparc32_linux_collect_core_gregset)
1540 (sparc32_linux_supply_core_fpregset)
1541 (sparc32_linux_collect_core_fpregset): Likewise.
1542 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1543 (sparc_gregmap, sparc_fpregmap): ... these.
1544 (sparc_supply_gregset, sparc_collect_gregset)
1545 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1546 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1547 (_initialize_sparc_nat): Rename regmaps.
1548 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1549 (sparc_gregmap, sparc_fpregmap): ... these.
1550 (sparc_supply_gregset, sparc_collect_gregset)
1551 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1552 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1554 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1555 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1557 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1559 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1560 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1561 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1563 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1564 (sparc32_bsd_fpregset): Rename to...
1565 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1566 (sparc32_bsd_fpregmap): ... these.
1567 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1568 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1569 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1570 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1571 (struct sparc_gregmap, struct sparc_fpregmap)
1572 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1573 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1574 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1575 (sparc32_supply_regset, sparc32_collect_gregset)
1576 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1578 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1579 (sparc64_linux_ptrace_gregmap): ... this.
1580 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1581 (_initialize_sparc64_linux_nat): Rename regmaps.
1582 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1583 (sparc64_linux_core_gregmap): ... this.
1584 (sparc64_linux_supply_core_gregset)
1585 (sparc64_linux_collect_core_gregset)
1586 (sparc64_linux_supply_core_fpregset)
1587 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1588 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1589 (sparc64_sol2_fpregset): Rename to...
1590 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1591 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1592 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1594 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1595 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1596 (sparc64_bsd_fpregset): Rename to...
1597 (struct sparc_gregmap, sparc64_sol2_gregmap)
1598 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1599 (sparc64_bsd_fpregmap): ... these.
1600 (sparc64_supply_gregset, sparc64_collect_gregset)
1601 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1603 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1604 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1605 (sparc64fbsd_gregmap): ... this.
1606 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1607 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1609 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1610 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1611 (sparc64nbsd_collect_fpregset): Likewise.
1612 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1613 (sparc64nbsd_gregmap): ... this.
1614 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1616 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1617 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1618 (sparc64obsd_gregmap): ... this.
1619 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1621 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1622 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1623 (sparc32nbsd_gregmap): ... this.
1624 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1629 * score-tdep.c (score7_linux_gregset): New static regset
1631 (score7_linux_regset_from_core_section): Remove dynamic regset
1633 (score_gdbarch_init): Drop allocation of tdep structure.
1634 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1636 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1638 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1640 (am33_regset_from_core_section): Remove dynamic regset
1643 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1645 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1646 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1648 (mips_linux_regset_from_core_section): Remove dynamic regset
1650 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1651 'gregset64', 'fpregset', and 'fpregset64'.
1652 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1653 deleted tdep fields.
1655 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1657 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1659 (amd64_regset_from_core_section): Remove dynamic regset
1661 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1663 (amd64obsd_regset_from_core_section): Remove dynamic regset
1665 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1667 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1668 x86-common regset supply function.
1669 * i386-tdep.c (i386_collect_gregset): Make static.
1670 (i386_gregset): New global regset structure.
1671 (i386_fpregset, i386_xstateregset): New static regset structures.
1672 (i386_regset_from_core_section): Remove dynamic regset
1674 (i386_gdbarch_init): Remove initialization of tdep fields
1675 'gregset', 'fpregset', and 'xstateregset'.
1676 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1677 'fpregset', and 'xstateregset'.
1678 (i386_collect_gregset): Remove prototype.
1679 (i386_gregset): New declaration.
1680 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1682 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1685 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1687 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1688 (arm_linux_vfpregset): New static regset structures.
1689 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1691 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1692 and 'vfpregset' fields.
1694 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1696 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1697 (aarch64_linux_fpregset): New static regset structures.
1698 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1699 of regset structures.
1700 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1703 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1705 * regset.h (struct regset): Remove gdbarch field.
1706 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1707 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1708 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1710 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1711 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1712 (ppc32_linux_vsxregset): Likewise.
1713 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1714 via the regcache instead of the regset.
1715 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1716 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1717 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1718 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1721 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1723 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1724 Constify structures.
1725 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1726 (alphanbsd_aout_gregset): Likewise.
1727 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1728 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1730 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1731 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1733 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1734 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1735 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1736 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1737 * m88k-tdep.c (m88k_gregset): Likewise.
1738 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1739 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1740 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1741 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1742 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1743 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1744 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1745 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1746 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1748 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1749 * sh-tdep.h (sh_corefile_gregset): Likewise.
1750 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1751 * vax-tdep.c (vax_gregset): Likewise.
1753 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Fix TLS access for -static -pthread.
1756 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1757 (try_thread_db_load_1): Initialize it.
1758 (thread_db_get_thread_local_address): Call it if LM is zero.
1759 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1760 * target.h (struct target_ops) (to_get_thread_local_address): Add
1761 load_module_addr comment.
1763 2014-05-21 Pedro Alves <palves@redhat.com>
1765 * dcache.c (dcache_read_memory_partial): If reading the cache line
1766 fails, fallback to reading just the memory the caller wanted.
1768 2014-05-20 Doug Evans <dje@google.com>
1770 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1771 instead of get_current_arch.
1773 2014-05-20 Pedro Alves <palves@redhat.com>
1775 * NEWS: Mention that compare-sections now works with all targets.
1777 * remote.c (PACKET_qCRC): New enum value.
1778 (remote_verify_memory): Don't send qCRC if the target has no
1779 execution. Use packet_support/packet_ok. If the target doesn't
1780 support the qCRC packet, fallback to a deep memory copy.
1781 (compare_sections_command): Say "target image" instead of "remote
1783 (_initialize_remote): Add PACKET_qCRC to the list of config
1784 packets that have no associated command. Extend comment.
1785 * target.c (simple_verify_memory, default_verify_memory): New
1787 * target.h (struct target_ops) <to_verify_memory>: Default to
1788 default_verify_memory.
1789 (simple_verify_memory): New declaration.
1790 * target-delegates.c: Regenerate.
1792 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1794 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1796 2014-05-20 Hui Zhu <hui@codesourcery.com>
1797 Yao Qi <yao@codesourcery.com>
1800 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1801 and change address of sp and pc.
1803 2014-05-19 Tom Tromey <tromey@redhat.com>
1805 * gdbtypes.c (rank_function): Use XNEWVEC.
1806 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1808 2014-05-19 Doug Evans <dje@google.com>
1810 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1811 build_type_unit_groups and moved closer to only caller. Remove
1812 arguments. All references updated. Remove outdated .gdb_index
1814 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1815 build_type_psymtabs_1.
1817 2014-05-19 Doug Evans <dje@google.com>
1819 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1820 n_type_unit_groups, all_type_unit_groups. All uses removed.
1821 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1822 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1823 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1824 (add_type_unit_group_to_table): Delete.
1826 2014-05-19 Doug Evans <dje@google.com>
1828 * eval.c (evaluate_subexp_standard): Add some comments.
1830 2014-05-17 Doug Evans <xdje42@gmail.com>
1832 * progspace.c (remove_program_space): Delete, unused.
1833 * progspace.h (remove_program_space): Ditto.
1835 2014-05-17 Doug Evans <xdje42@gmail.com>
1837 * inferior.c (prune_inferiors): Fix comment.
1838 (remove_inferior_command): Call prune_program_spaces.
1840 2014-05-16 Doug Evans <dje@google.com>
1842 New command line option -D.
1844 * main.c (set_gdb_data_directory): New function.
1845 (captured_main): Recognize -D. Flag error for --data-directory "".
1846 Call set_gdb_data_directory.
1847 (print_gdb_help): Print --data-directory, -D.
1848 * main.h (set_gdb_data_directory): Declare.
1849 * top.c (staged_gdb_datadir): New static global.
1850 (set_gdb_datadir): Call set_gdb_data_directory
1851 (show_gdb_datadir): New function.
1852 (init_main): Update init of data-directory parameter.
1854 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1856 Import the "dirfd" gnulib module.
1857 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1858 * gnulib/aclocal.m4: Update.
1859 * gnulib/config.in: Update.
1860 * gnulib/configure: Update.
1861 * gnulib/import/Makefile.am: Update.
1862 * gnulib/import/Makefile.in: Update.
1863 * gnulib/import/dirfd.c: New.
1864 * gnulib/import/m4/dirfd.m4: New.
1865 * gnulib/import/m4/gnulib-cache.m4: Update.
1866 * gnulib/import/m4/gnulib-comp.m4: Update.
1868 2014-05-16 Pierre Muller <muller@sourceware.org>
1869 Yao Qi <yao@codesourcery.com>
1871 * valprint.c (print_wchar): Move the code on checking whether
1872 W is a printable wide char to the default branch of switch
1873 statement below. Call wchar_printable instead of gdb_iswprint.
1875 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1877 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1878 ldr.w and ldrd instructions.
1880 2014-05-15 Doug Evans <dje@google.com>
1882 * dwarf2read.c (read_structure_type): Delete outdated comments.
1884 2014-05-14 Tom Tromey <tromey@redhat.com>
1886 * macrocmd.c (print_macro_definition): Reindent.
1888 2014-05-13 Doug Evans <xdje42@gmail.com>
1890 * python/py-cmd.c (cmdpy_completer): Add comment.
1891 (completers): Make const.
1893 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1895 * infrun.c (resume): Remove should_resume (unused). Move up
1896 declaration of resume_ptid.
1898 2014-05-13 Tom Tromey <tromey@redhat.com>
1900 * language.h (unop_type_check): Remove.
1901 (binop_type_check): Don't declare.
1903 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1905 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1906 call to regcache_raw_collect.
1908 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1910 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1911 mi_console->quote as the quoting character.
1913 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1915 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1917 2014-04-29 Tom Tromey <tromey@redhat.com>
1919 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1920 "show debug varobj".
1922 2014-05-07 Kyle McMartin <kyle@redhat.com>
1924 Pushed by Joel Brobecker <brobecker@adacore.com>.
1925 * aarch64-tdep.c (aarch64_software_single_step): New function.
1926 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1927 with aarch64_software_single_step.
1929 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1933 2014-05-05 Keith Seitz <keiths@redhat.com>
1935 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1936 variable or history value is successfully parsed.
1938 2014-05-05 Yao Qi <yao@codesourcery.com>
1939 Pedro Alves <palves@redhat.com>
1941 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1942 address of blocks that intersects the requested range. Trim
1943 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1945 * ctf.c (ctf_xfer_partial): Likewise.
1947 2014-05-05 Yao Qi <yao@codesourcery.com>
1949 * printcmd.c (display_command): Remove the check to
1950 target_has_execution.
1952 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1954 * ppcobsd-nat.c: Include "obsd-nat.h".
1955 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1957 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1959 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1961 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1962 and 16-bit signed and unsigned arguments. Update comment.
1963 (stap_parse_probe_arguments): Extend code to handle such
1964 arguments. Use warning instead of complaint to notify about
1965 unrecognized bitness.
1967 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1969 PR breakpoints/16889
1970 * stap-probe.c (stap_parse_probe_arguments): Simplify
1971 check for non-prefixed probes (i.e., probes whose
1972 arguments do not start with "N@"). Always set the
1973 argument type to a sane value.
1975 2014-05-01 David Taylor <dtaylor@emc.com>
1977 * remote.c (compare_sections_command): Add -r option to compare
1978 all loadable read-only sections.
1980 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1982 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1983 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1985 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1986 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1987 Remove unused CORE_ADDR argument. Update all callers.
1989 2014-04-29 Pedro Alves <palves@redhat.com>
1991 * remote.c (struct packet_config) <detect>: Extend comment.
1992 (add_packet_config_cmd): Don't set the config's detect or support
1994 (init_all_packet_configs): Also initialize the config's 'detect'
1996 (reset_all_packet_configs_support): New function.
1997 (remote_open_1): Call reset_all_packet_configs_support instead of
1998 init_all_packet_configs.
1999 (_initialize_remote): Initialize all packet configs. Assert that
2000 all packets have an associated command, except a few known
2003 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2005 * dwarf2read.c (read_subrange_type): Handle dynamic
2006 DW_AT_lower_bound attributes.
2008 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2010 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2011 dynamic bounds before computing its upper bound.
2012 (ada_discrete_type_low_bound): Same as above with the lower bound.
2014 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2016 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2017 range types. Adjust the array handling implementation to
2018 take advantage of this change.
2019 (resolve_dynamic_range): New function, mostly extracted from
2020 resolve_dynamic_bounds.
2021 (resolve_dynamic_array): New function, mostly extracted from
2022 resolve_dynamic_bounds.
2023 (resolve_dynamic_bounds): Delete.
2024 (resolve_dynamic_type): Reimplement. Add handling of
2025 TYPE_CODE_RANGE types.
2027 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2029 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2030 handling of parallel ___XA types.
2032 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2034 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2035 unnecessary second call to static_unwrap_type.
2037 2014-04-27 Hui Zhu <hui@codesourcery.com>
2039 * stack.c (print_frame_info): Call do_gdb_disassembly with
2040 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2042 2014-04-26 Doug Evans <xdje42@gmail.com>
2044 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2046 2014-04-25 Pedro Alves <palves@redhat.com>
2049 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2050 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2051 and newline from built string.
2052 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2053 (linux_ptrace_attach_fail_reason): ... this.
2054 * linux-nat.c (linux_nat_attach): Adjust to use
2055 linux_ptrace_attach_fail_reason.
2057 2014-04-25 Pedro Alves <palves@redhat.com>
2059 * remote.c (struct remote_state): Remove multi_process_aware,
2060 non_stop_aware, cond_tracepoints, cond_breakpoints,
2061 breakpoint_commands, fast_tracepoints, static_tracepoints,
2062 install_in_trace, disconnected_tracing,
2063 enable_disable_tracepoints, string_tracing, and
2064 augmented_libraries_svr4_read fields.
2065 (remote_multi_process_p): Move further below in the file.
2066 (struct packet_config): Add comments.
2067 (update_packet_config): Delete function.
2068 (show_packet_config_cmd): Use packet_config_support.
2069 (add_packet_config_cmd): Use NULL as set callback.
2070 (packet_ok): "set remote foo-packet"-style commands no longer
2071 change config->supported -- adjust.
2072 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2073 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2074 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2075 (PACKET_QNonStop, PACKET_multiprocess_feature)
2076 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2077 (PACKET_DisconnectedTracing_feature)
2078 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2079 (set_remote_protocol_packet_cmd): Delete function.
2080 (packet_config_support, packet_support): New functions.
2081 (set_remote_protocol_Z_packet_cmd): Don't call
2082 update_packet_config.
2083 (remote_query_attached, remote_pass_signals)
2084 (remote_program_signals, remote_threads_info)
2085 (remote_threads_extra_info, remote_start_remote): Use
2087 (remote_start_remote): Use packet_config_support and
2089 (init_all_packet_configs): Set all packets to unknown support,
2090 instead of calling update_packet_config.
2091 (remote_check_symbols): Use packet_support.
2092 (remote_supported_packet): Unconditionally set the packet config's
2094 (remote_multi_process_feature, remote_non_stop_feature)
2095 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2096 (remote_breakpoint_commands_feature)
2097 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2098 (remote_install_in_trace_feature)
2099 (remote_disconnected_tracing_feature)
2100 (remote_enable_disable_tracepoint_feature)
2101 (remote_string_tracing_feature)
2102 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2103 (remote_protocol_features): Adjust to use remote_supported_packet
2104 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2105 "ConditionalTracepoints", "ConditionalBreakpoints",
2106 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2107 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2108 "EnableDisableTracepoints", and "tracenz".
2109 (remote_query_supported): Use packet_support.
2110 (remote_open_1): Adjust.
2111 (extended_remote_attach_1): Use packet_support. Switch on the
2112 result of packet_ok instead of checking whether the packet ended
2114 (remote_vcont_resume): Use packet_support.
2115 (remote_resume, remote_stop_ns, fetch_register_using_p)
2116 (remote_prepare_to_store, store_register_using_P)
2117 (check_binary_download, remote_write_bytes): Use packet_support.
2118 (remote_vkill): Use packet_support. Switch on the result of
2119 packet_ok instead of checking whether the packet ended up
2121 (extended_remote_supports_disable_randomization): Use
2123 (extended_remote_run): Switch on the result of packet_ok instead
2124 of checking whether the packet ended up disabled.
2125 (remote_insert_breakpoint, remote_remove_breakpoint)
2126 (remote_insert_watchpoint, remote_remove_watchpoint)
2127 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2129 (remote_search_memory): Use packet_config_support.
2130 (remote_get_thread_local_address, remote_get_tib_address)
2131 (remote_hostio_send_command, remote_can_execute_reverse): Use
2133 (remote_supports_cond_tracepoints)
2134 (remote_supports_cond_breakpoints)
2135 (remote_supports_fast_tracepoints)
2136 (remote_supports_static_tracepoints)
2137 (remote_supports_install_in_trace)
2138 (remote_supports_enable_disable_tracepoint)
2139 (remote_supports_string_tracing)
2140 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2141 the packet config says the feature is enabled or disabled.
2142 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2143 (remote_get_trace_status): Use packet_support.
2144 (remote_set_disconnected_tracing): Adjust to check whether the
2145 feature is enabled with packet_support.
2146 (remote_set_trace_buffer_size, remote_use_agent)
2147 (remote_can_use_agent, remote_supports_btrace): Use
2149 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2150 Use packet_config_support.
2151 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2152 the packet config says the feature is enabled or disabled.
2153 (set_range_stepping): Use packet_support.
2155 2014-04-25 Tom Tromey <tromey@redhat.com>
2157 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2160 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2162 * NEWS: Mention support for C99 variable length arrays.
2164 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2166 * ada-lang.c (standard_exc): Expand introductory comment.
2168 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2169 Walfred Tedeschi <walfred.tedeschi@intel.com>
2171 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2173 (amd64_linux_read_description): Add code to handle AVX512 xstate
2174 mask and return respective tdesc.
2175 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2176 and features/i386/x32-avx512-linux.c.
2177 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2178 (amd64_linux_core_read_description): Add code to handle AVX512
2179 xstate mask and return respective tdesc.
2180 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2181 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2183 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2184 (tdesc_amd64_avx512_linux): New prototype.
2185 (tdesc_x32_avx512_linux): Likewise.
2186 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2187 features/i386/x32-avx512.c.
2188 (amd64_ymm_avx512_names): New register names for pseudo
2190 (amd64_ymmh_avx512_names): New register names for raw registers
2192 (amd64_k_names): New register names for K registers.
2193 (amd64_zmmh_names): New register names for ZMM raw registers.
2194 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2195 (amd64_xmm_avx512_names): New register names for XMM16-31
2197 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2199 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2200 if feature is present.
2201 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2202 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2203 (AMD64_NUM_REGS): Adjust to new number of registers.
2204 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2205 registers supplied via XSTATE by AVX512 registers.
2206 (i386_linux_read_description): Add case for AVX512.
2207 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2208 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2209 (i386_linux_core_read_description): Add case for AVX512.
2210 (i386_linux_init_abi): Install supported register note section
2212 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2214 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2215 registers to be number of zmm7h + 1.
2216 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2217 * i386-tdep.c: Include features/i386/i386-avx512.c.
2218 (i386_zmm_names): Add ZMM pseudo register names array.
2219 (i386_zmmh_names): Add ZMM raw register names array.
2220 (i386_k_names): Add K raw register names array.
2221 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2222 registers. AVX512 has 16 more ZMM registers than there are YMM
2224 (i386_zmmh_regnum_p): Add function to look up register number of
2226 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2227 (i386_k_regnum_p): Likewise for K raw registers.
2228 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2229 registers added by AVX512.
2230 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2231 registers added by AVX512.
2232 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2234 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2235 (i386_pseudo_register_name): Add ZMM pseudo registers.
2236 (i386_zmm_type): Construct and return vector registers type for ZMM
2238 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2239 ZMM0-31 pseudo registers and K registers.
2240 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2241 and YMM16-31 registers from register cache.
2242 (i386_pseudo_register_write): Add code to write K, ZMM and
2244 (i386_register_reggroup_p): Add code to include/exclude AVX512
2245 registers in/from respective register groups.
2246 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2247 registers if feature is present in xcr0.
2248 (i386_gdbarch_init): Add code to initialize AVX512 feature
2249 variables in tdep structure, wire in pseudo registers and call
2250 initialize_tdesc_i386_avx512.
2251 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2253 (i386_regnum): Add AVX512 registers.
2254 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2255 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2256 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2257 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2259 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2260 (i386_ymm_avx512_regnum_p): Likewise.
2261 (i386_k_regnum_p): Likewise.
2262 (i386_zmm_regnum_p): Likewise.
2263 (i386_zmmh_regnum_p): Likewise.
2264 * i387-tdep.c : Update year in copyright notice.
2265 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2267 (XSAVE_YMM_AVX512_ADDR): New macro.
2268 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2270 (XSAVE_XMM_AVX512_ADDR): New macro.
2271 (xsave_avx512_k_offset): New table for K register offsets in
2273 (XSAVE_AVX512_K_ADDR): New macro.
2274 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2276 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2277 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2279 (i387_collect_xsave): Add code to collect AVX512 registers from
2281 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2282 of XMM16-31 registers.
2283 (I387_NUM_K_REGS): New define for number of K registers.
2284 (I387_K0_REGNUM): New define for K0 register number.
2285 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2286 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2287 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2289 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2290 (I387_XMM16_REGNUM): New define for XMM16 register number.
2291 (I387_YMM0_REGNUM): New define for YMM0 register number.
2292 (I387_KEND_REGNUM): New define for last K register number.
2293 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2294 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2296 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2298 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2300 * features/Makefile: Add AVX512 related files.
2301 * features/i386/32bit-avx512.xml: New file.
2302 * features/i386/64bit-avx512.xml: Likewise.
2303 * features/i386/amd64-avx512-linux.c: Likewise.
2304 * features/i386/amd64-avx512-linux.xml: Likewise.
2305 * features/i386/amd64-avx512.c: Likewise.
2306 * features/i386/amd64-avx512.xml: Likewise.
2307 * features/i386/i386-avx512-linux.c: Likewise.
2308 * features/i386/i386-avx512-linux.xml: Likewise.
2309 * features/i386/i386-avx512.c: Likewise.
2310 * features/i386/i386-avx512.xml: Likewise.
2311 * features/i386/x32-avx512-linux.c: Likewise.
2312 * features/i386/x32-avx512-linux.xml: Likewise.
2313 * features/i386/x32-avx512.c: Likewise.
2314 * features/i386/x32-avx512.xml: Likewise.
2315 * regformats/i386/amd64-avx512-linux.dat: New file.
2316 * regformats/i386/amd64-avx512.dat: Likewise.
2317 * regformats/i386/i386-avx512-linux.dat: Likewise.
2318 * regformats/i386/i386-avx512.dat: Likewise.
2319 * regformats/i386/x32-avx512-linux.dat: Likewise.
2320 * regformats/i386/x32-avx512.dat: Likewise.
2321 * NEWS: Add note about new support for AVX512.
2324 2014-04-23 Pedro Alves <palves@redhat.com>
2326 * breakpoint.c (insert_bp_location): Tolerate errors if the
2327 breakpoint is set in a user-loaded objfile.
2328 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2329 location is marked shlib_disabled. If the breakpoint is set in a
2330 user-loaded objfile is a GDB-side memory breakpoint, validate it
2331 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2332 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2334 * mem-break.c (memory_validate_breakpoint): New function.
2335 * objfiles.c (userloaded_objfile_contains_address_p): New
2337 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2338 * target.h (memory_validate_breakpoint): New declaration.
2340 2014-04-23 Pedro Alves <palves@redhat.com>
2342 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2343 the breakpoint is set in a shared library, only suppress
2344 errors for software breakpoints, not hardware breakpoints.
2346 2014-04-22 Pedro Alves <palves@redhat.com>
2348 * infrun.c (schedlock_applies): New function, factored out from
2349 find_thread_needs_step_over.
2350 (find_thread_needs_step_over): Use it.
2351 (switch_back_to_stepped_thread): Always clear trap_expected if the
2352 step over is finished. Return early if scheduler locking applies.
2353 Look for the stepping thread and a potential step-over thread with
2355 (currently_stepping_or_nexting_callback): Delete.
2357 2014-04-22 Nick Clifton <nickc@redhat.com>
2359 * NEWS: Mention that ARM sim now supports tracing.
2361 2014-04-22 Yao Qi <yao@codesourcery.com>
2363 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2365 * tracefile.c (tracefile_fetch_registers): ... it. New
2367 * tracefile.h (tracefile_fetch_registers): Declare.
2368 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2369 tracefile_fetch_registers.
2371 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2374 * windows-nat.c (thread_rec): Don't display a warning when
2375 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2376 fails for any reason, set th->suspended to -1, so that we don't
2377 try to resume such a thread. Also, don't return NULL in these
2378 cases, to avoid completely ruin the session due to "PC register is
2379 not available" error.
2380 (do_windows_fetch_inferior_registers): Check errors in
2381 GetThreadContext call.
2382 (windows_continue): Accept an additional argument KILLED; if not
2383 zero, ignore errors in the SetThreadContext call, since the
2384 inferior was killed and is shutting down.
2385 (windows_resume, get_windows_debug_event)
2386 (windows_create_inferior, windows_mourn_inferior)
2387 (windows_kill_inferior): All callers of windows_continue changed
2388 to adjust to its new calling sequence.
2390 2014-04-19 Yao Qi <yao@codesourcery.com>
2392 * ctf.c (ctf_open): Call post_create_inferior.
2394 2014-04-19 Yao Qi <yao@codesourcery.com>
2396 * ctf.c (handle_id): New static variable.
2397 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2398 value. Get the declaration of event "register" and get length
2399 of field "contents".
2401 2014-04-19 Yao Qi <yao@codesourcery.com>
2403 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2405 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2407 * valops.c (oload_method_static): Remove unnecessary argument
2408 METHOD. Update all callers.
2410 2014-04-18 Pedro alves <palves@redhat.com>
2411 Tom Tromey <tromey@redhat.com>
2414 * frame.c (get_prev_frame_1): Rename to ...
2415 (get_prev_frame_always): ... this, and make extern. Adjust.
2416 (skip_artificial_frames): Use get_prev_frame_always.
2417 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2418 (get_frame_unwind_stop_reason): Adjust to rename.
2419 * frame.h (get_prev_frame_always): Declare.
2420 * inline-frame.c: Include frame.h.
2421 (inline_frame_this_id): Use get_prev_frame_always.
2423 2014-04-18 Tristan Gingold <gingold@adacore.com>
2425 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2426 code by using bfd_mach_o_get_base_address.
2428 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2430 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2431 (spu_ax_pseudo_register_collect): New function.
2432 (spu_ax_pseudo_register_push_stack): Likewise.
2433 (spu_dwarf_reg_to_regnum): Likewise.
2434 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2436 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2438 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2439 Replace FRAME argument with FRAME_ID.
2440 * gdbarch.c, gdbarch.h: Regenerate.
2441 * findvar.c (default_value_from_register): Add GDBARCH argument;
2442 replace FRAME by FRAME_ID. No longer call get_frame_id.
2443 (value_from_register): Update call to gdbarch_value_from_register.
2444 * value.h (default_value_from_register): Update prototype.
2445 * s390-linux-tdep.c (s390_value_from_register): Update interface
2446 and call to default_value_from_register.
2447 * spu-tdep.c (spu_value_from_register): Likewise.
2449 * findvar.c (address_from_register): Remove TYPE argument.
2450 Do not call value_from_register; use gdbarch_value_from_register
2451 with null_frame_id instead.
2452 * value.h (address_from_register): Update prototype.
2453 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2454 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2455 address_from_register interface change.
2457 2014-04-17 Yao Qi <yao@codesourcery.com>
2459 * gdbtypes.h: Update comments to link to types and macros'
2462 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2464 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2466 2014-04-16 Keith Seitz <keiths@redhat.com>
2469 * dwarf2read.c (skip_one_die): Check that all relative-offset
2470 sibling DIEs fall within range of the current reader's buffer.
2471 (read_partial_die): Likewise.
2473 2014-04-16 Keith Seitz <keiths@redhat.com>
2476 * cp-namespace.c (lookup_symbol_file): If the type name of
2477 `this' is NULL, return immediately.
2479 2014-04-14 Keith Seitz <keiths@redhat.com>
2482 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2483 from symbol_matches_domain in symtab.c. All local callers
2484 of symbol_matches_domain updated.
2485 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2486 search STRUCT_DOMAIN.
2487 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2488 independently. standard_lookup will do that automatically.
2489 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2490 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2491 (cp_lookup_symbol_in_namespace): Likewise.
2492 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2493 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2494 may return a STRUCT_DOMAIN match.
2495 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2496 * cp-support.c: Include language.h.
2497 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2499 * psymtab.c (match_partial_symbol): Compare the requested
2500 domain with the symbol's domain directly.
2501 (lookup_partial_symbol): Likewise.
2502 * symtab.c (lookup_symbol_in_language): Explain when/why
2503 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2505 appropriate languages.
2506 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2507 and moved to ada-lang.c
2508 (lookup_block_symbol): Explain that this function only returns
2509 symbol matching the requested DOMAIN.
2510 Compare the requested domain with the symbol's domain directly.
2511 (iterate_over_symbols): Compare the requested domain with the
2512 symbol's domain directly.
2513 * symtab.h (symbol_matches_domain): Remove.
2515 2014-04-14 Tom Tromey <tromey@redhat.com>
2518 * c-exp.y (type_aggregate_p): New function.
2519 (qualified_name, classify_inner_name): Use it.
2520 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2521 and TYPE_TARGET_TYPE of an enum type.
2522 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2524 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2525 handle TYPE_DECLARED_CLASS.
2526 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2528 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2529 * valops.c (enum_constant_from_type): New function.
2530 (value_aggregate_elt): Use it.
2531 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2534 2014-04-14 Tom Tromey <tromey@redhat.com>
2536 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2537 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2539 * value.h (value_aggregate_elt): Update.
2541 2014-04-14 Tom Tromey <tromey@redhat.com>
2543 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2545 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2547 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2548 (evaluate_subexp_standard): Pass noside argument.
2549 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2550 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2551 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2552 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2553 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2555 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2557 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2558 points to a constant blob.
2560 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2562 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2563 property and store it as the high bound and flag the range accordingly.
2564 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2565 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2566 * gdbtypes.h (enum range_flags): New enum.
2567 (struct range_bounds): Add flags member.
2569 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2571 * c-typeprint.c (c_type_print_varspec_suffix): Added
2572 check for not yet resolved high bound. If unresolved, print
2573 "variable length" string to the console instead of random
2576 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2578 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2580 (ada_template_to_fixed_record_type_1): Likewise.
2581 (ada_to_fixed_type_1): Likewise.
2582 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2583 (cp_print_value): Likewise.
2584 * d-valprint.c (dynamic_array_type): Likewise.
2585 * findvar.c (address_of_variable): Likewise.
2586 * jv-valprint.c (java_value_print): Likewise.
2587 * valops.c (value_ind): Likewise.
2588 * value.c (coerce_ref): Likewise.
2590 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2592 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2593 value and retrieve the dynamic type size.
2595 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2597 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2598 passed to sizeof is dynamic evaluate the argument to compute the length.
2600 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2601 Joel Brobecker <brobecker@adacore.com>
2603 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2604 (dwarf2_evaluate_property): New function.
2605 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2606 * dwarf2read.c (attr_to_dynamic_prop): New function.
2607 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2609 * gdbtypes.c: Include dwarf2loc.h.
2610 (is_dynamic_type): New function.
2611 (resolve_dynamic_type): New function.
2612 (resolve_dynamic_bounds): New function.
2613 (get_type_length): New function.
2614 (check_typedef): Use get_type_length to compute type length.
2615 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2616 (TYPE_LOW_BOUND_KIND): New macro.
2617 (is_dynamic_type): New function prototype.
2618 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2619 to resolve dynamic properties of the type. Update comment.
2620 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2622 2014-04-14 Richard Henderson <rth@redhat.com>
2624 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2626 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2627 Doug Evans <xdje42@gmail.com>
2629 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2630 dereference TYPE_CODE_REF values.
2632 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2634 Revert the following changes due to regressions:
2636 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2637 (dwarf2_evaluate_property): New function.
2638 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2639 * dwarf2read.c (attr_to_dynamic_prop): New function.
2640 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2642 * gdbtypes.c: Include dwarf2loc.h.
2643 (is_dynamic_type): New function.
2644 (resolve_dynamic_type): New function.
2645 (resolve_dynamic_bounds): New function.
2646 (get_type_length): New function.
2647 (check_typedef): Use get_type_length to compute type length.
2648 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2649 (TYPE_LOW_BOUND_KIND): New macro.
2650 (is_dynamic_type): New function prototype.
2651 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2652 to resolve dynamic properties of the type. Update comment.
2653 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2655 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2656 passed to sizeof is dynamic evaluate the argument to compute the length.
2658 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2659 value and retrieve the dynamic type size.
2661 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2662 (ada_template_to_fixed_record_type_1): Likewise.
2663 (ada_to_fixed_type_1): Likewise.
2664 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2665 (cp_print_value): Likewise.
2666 * d-valprint.c (dynamic_array_type): Likewise.
2667 * eval.c (evaluate_subexp_with_coercion): Likewise.
2668 * findvar.c (address_of_variable): Likewise.
2669 * jv-valprint.c (java_value_print): Likewise.
2670 * valops.c (value_ind): Likewise.
2671 * value.c (coerce_ref): Likewise.
2673 * c-typeprint.c (c_type_print_varspec_suffix): Added
2674 check for not yet resolved high bound. If unresolved, print
2675 "variable length" string to the console instead of random
2678 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2679 property and store it as the high bound and flag the range accordingly.
2680 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2681 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2682 * gdbtypes.h (enum range_flags): New enum.
2683 (struct range_bounds): Add flags member.
2685 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2686 points to a constant blob.
2688 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2689 (evaluate_subexp_standard): Pass noside argument.
2690 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2691 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2692 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2693 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2694 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2696 2014-04-11 Keith Seitz <keiths@redhat.com>
2699 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2700 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2703 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2705 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2706 (evaluate_subexp_standard): Pass noside argument.
2707 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2708 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2709 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2710 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2711 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2715 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2716 points to a constant blob.
2718 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2720 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2721 property and store it as the high bound and flag the range accordingly.
2722 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2723 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2724 * gdbtypes.h (enum range_flags): New enum.
2725 (struct range_bounds): Add flags member.
2727 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2729 * c-typeprint.c (c_type_print_varspec_suffix): Added
2730 check for not yet resolved high bound. If unresolved, print
2731 "variable length" string to the console instead of random
2734 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2736 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2737 (ada_template_to_fixed_record_type_1): Likewise.
2738 (ada_to_fixed_type_1): Likewise.
2739 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2740 (cp_print_value): Likewise.
2741 * d-valprint.c (dynamic_array_type): Likewise.
2742 * eval.c (evaluate_subexp_with_coercion): Likewise.
2743 * findvar.c (address_of_variable): Likewise.
2744 * jv-valprint.c (java_value_print): Likewise.
2745 * valops.c (value_ind): Likewise.
2746 * value.c (coerce_ref): Likewise.
2748 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2750 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2751 value and retrieve the dynamic type size.
2753 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2755 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2756 passed to sizeof is dynamic evaluate the argument to compute the length.
2758 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2760 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2761 (dwarf2_evaluate_property): New function.
2762 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2763 * dwarf2read.c (attr_to_dynamic_prop): New function.
2764 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2766 * gdbtypes.c: Include dwarf2loc.h.
2767 (is_dynamic_type): New function.
2768 (resolve_dynamic_type): New function.
2769 (resolve_dynamic_bounds): New function.
2770 (get_type_length): New function.
2771 (check_typedef): Use get_type_length to compute type length.
2772 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2773 (TYPE_LOW_BOUND_KIND): New macro.
2774 (is_dynamic_type): New function prototype.
2775 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2776 to resolve dynamic properties of the type. Update comment.
2777 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2779 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2781 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2782 declaring high/low bounds and change uses accordingly. Call
2783 create_range_type instead of create_static_range_type.
2784 * gdbtypes.c (create_range_type): New function.
2785 (create_range_type): Convert bounds into struct bound_prop and pass
2786 them to create_range_type.
2787 * gdbtypes.h (struct bound_prop): New struct.
2788 (create_range_type): New function prototype.
2789 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2790 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2791 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2793 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2795 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2797 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2798 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2799 * ada-lang.c: All uses of create_range_type updated.
2800 * coffread.c: All uses of create_range_type updated.
2801 * dwarf2read.c: All uses of create_range_type updated.
2802 * f-exp.y: All uses of create_range_type updated.
2803 * m2-valprint.c: All uses of create_range_type updated.
2804 * mdebugread.c: All uses of create_range_type updated.
2805 * stabsread.c: All uses of create_range_type updated.
2806 * valops.c: All uses of create_range_type updated.
2807 * valprint.c: All uses of create_range_type updated.
2809 2014-04-10 Pedro Alves <palves@redhat.com>
2811 * breakpoint.c (single_step_breakpoints)
2812 (single_step_gdbarch): Move up in the file.
2813 (one_breakpoint_xfer_memory): New function, factored out from ...
2814 (breakpoint_xfer_memory): ... here. Also process single-step
2817 2014-04-09 Tristan Gingold <gingold@adacore.com>
2819 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2821 (darwin_decode_exception_message): Free port only after use.
2823 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2825 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2826 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2827 when setting the size of call_length.
2829 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2831 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2832 dereference TYPE_CODE_REF values.
2834 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2836 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2837 end of warning message.
2839 2014-04-03 Doug Evans <dje@google.com>
2841 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2842 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2844 2014-04-02 Alan Modra <amodra@gmail.com>
2846 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2847 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2848 (struct symbol_file_add_from_memory_args): Add size field.
2849 (find_vdso_size): New function.
2850 (add_vsyscall_page): Attempt to find vdso size.
2852 2014-04-01 Doug Evans <dje@google.com>
2854 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2856 2014-04-01 Tristan Gingold <gingold@adacore.com>
2858 * darwin-nat.c (darwin_encode_reply): Add prototype.
2859 (darwin_decode_exception_message): Reply to unknown inferiors.
2860 (darwin_decode_message): Handle message by id. Ignore message
2861 to unknown inferior.
2862 (darwin_wait): Discard unknown messages, add debug trace.
2864 2014-03-31 Doug Evans <dje@google.com>
2866 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2869 2014-03-31 Doug Evans <dje@google.com>
2871 New option "set print symbol-loading".
2873 * solib.c (solib_read_symbols): Only print symbol loading messages
2875 (solib_add): If symbol loading is in "brief" mode, notify user
2876 symbols are being loaded.
2877 (reload_shared_libraries_1): Ditto.
2878 * symfile.c (print_symbol_loading_off): New static global.
2879 (print_symbol_loading_brief): New static global.
2880 (print_symbol_loading_full): New static global.
2881 (print_symbol_loading_enums): New static global.
2882 (print_symbol_loading): New static global.
2883 (print_symbol_loading_p): New function.
2884 (symbol_file_add_with_addrs): Only print symbol loading messages
2886 (_initialize_symfile): Register "print symbol-loading" set/show
2888 * symfile.h (print_symbol_loading_p): Declare.
2890 2014-03-30 Doug Evans <xdje42@gmail.com>
2892 * infrun.c (set_last_target_status): New function.
2893 (handle_inferior_event): Call it.
2895 2014-03-30 Doug Evans <xdje42@gmail.com>
2897 * inferior.h (enum stop_kind): Improve comment.
2899 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2901 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2902 a reference, strip the reference layer before calling
2903 the lang_ops value_has_mutated callback.
2905 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2907 Remove some globals from our parser.
2908 * language.c (unk_lang_parser): Add "struct parser_state"
2910 * language.h (struct language_defn) <la_parser>: Likewise.
2911 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2912 (initialize_expout): Add "struct parser_state" argument.
2913 Rewrite function to use the parser state.
2914 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2915 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2916 write_exp_elt_longcst, write_exp_elt_dblcst,
2917 write_exp_elt_decfloatcst, write_exp_elt_type,
2918 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2919 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2920 write_dollar_variable): Likewise.
2921 (parse_exp_in_context_1): Use parser state.
2922 (insert_type_address_space): Add "struct parser_state" argument.
2924 (increase_expout_size): New function.
2925 * parser-defs.h: Forward declare "struct language_defn" and
2926 "struct parser_state".
2927 (expout, expout_size, expout_ptr): Remove extern declarations.
2928 (parse_gdbarch, parse_language): Rewrite macro declarations to
2929 accept the parser state.
2930 (struct parser_state): New struct.
2931 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2932 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2933 write_exp_elt_decfloatcst, write_exp_elt_type,
2934 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2935 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2936 write_exp_msymbol, write_dollar_variable,
2937 mark_struct_expression, insert_type_address_space): Add "struct
2938 parser_state" argument.
2939 (increase_expout_size): New function.
2940 * utils.c (do_clear_parser_state): New function.
2941 (make_cleanup_clear_parser_state): Likewise.
2942 * utils.h (make_cleanup_clear_parser_state): New function
2944 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2945 Update calls to write_exp* in order to pass the parser state.
2946 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2947 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2948 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2949 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2950 * stap-probe.c (stap_parse_register_operand): Likewise.
2951 (stap_parse_single_operand): Likewise.
2952 (stap_parse_argument_1): Likewise.
2953 (stap_parse_argument): Use parser state.
2954 * stap-probe.h: Include "parser-defs.h".
2955 (struct stap_parse_info) <pstate>: New field.
2956 * c-exp.y (parse_type): Rewrite to use parser state.
2957 (yyparse): Redefine to c_parse_internal.
2958 (pstate): New global variable.
2959 (parse_number): Add "struct parser_state" argument.
2960 (write_destructor_name): Likewise.
2961 (type_exp): Update calls to write_exp* and similars in order to
2963 (exp1, exp, variable, qualified_name, space_identifier,
2964 typename, typebase): Likewise.
2965 (write_destructor_name, parse_number, lex_one_token,
2966 classify_name, classify_inner_name, c_parse): Add "struct
2967 parser_state" argument. Update function to use parser state.
2968 * c-lang.h: Forward declare "struct parser_state".
2969 (c_parse): Add "struct parser_state" argument.
2970 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2971 (yyparse): Redefine macro to ada_parse_internal.
2972 (pstate): New variable.
2973 (write_int, write_object_renaming, write_var_or_type,
2974 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2975 type_int, type_long, type_long_long, type_float, type_double,
2976 type_long_double, type_char, type_boolean, type_system_address):
2977 Add "struct parser_state" argument.
2978 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2979 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2980 var_or_type, aggregate, aggregate_component_list,
2981 positional_list, others, component_group,
2982 component_associations): Update calls to write_exp* and similar
2983 functions in order to use parser state.
2984 (ada_parse, write_var_from_sym, write_int,
2985 write_exp_op_with_string, write_object_renaming,
2986 find_primitive_type, write_selectors, write_ambiguous_var,
2987 write_var_or_type, write_name_assoc, type_int, type_long,
2988 type_long_long, type_float, type_double, type_long_double,
2989 type_char, type_boolean, type_system_address): Add "struct
2990 parser_state" argument. Adjust function to use parser state.
2991 * ada-lang.c (parse): Likewise.
2992 * ada-lang.h: Forward declare "struct parser_state".
2993 (ada_parse): Add "struct parser_state" argument.
2994 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2995 calls to both functions.
2996 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2998 (yyparse): Redefine macro to f_parse_internal.
2999 (pstate): New variable.
3000 (parse_number): Add "struct parser_state" argument.
3001 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3002 and similars in order to use parser state.
3003 (parse_number): Adjust code to use parser state.
3005 (f_parse): New function.
3006 * f-lang.h: Forward declare "struct parser_state".
3007 (f_parse): Add "struct parser_state" argument.
3008 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3010 (yyparse): Redefine macro for java_parse_internal.
3011 (pstate): New variable.
3012 (push_expression_name, push_expression_name, insert_exp): Add
3013 "struct parser_state" argument.
3014 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3015 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3016 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3017 PostIncrementExpression, PostDecrementExpression,
3018 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3019 UnaryExpressionNotPlusMinus, CastExpression,
3020 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3021 RelationalExpression, EqualityExpression, AndExpression,
3022 ExclusiveOrExpression, InclusiveOrExpression,
3023 ConditionalAndExpression, ConditionalOrExpression,
3024 ConditionalExpression, Assignment, LeftHandSide): Update
3025 calls to write_exp* and similars in order to use parser state.
3026 (parse_number): Ajust code to use parser state.
3028 (java_parse): New function.
3029 (push_variable): Add "struct parser_state" argument. Adjust
3030 code to user parser state.
3031 (push_fieldnames, push_qualified_expression_name,
3032 push_expression_name, insert_exp): Likewise.
3033 * jv-lang.h: Forward declare "struct parser_state".
3034 (java_parse): Add "struct parser_state" argument.
3035 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3037 (yyparse): Redefine macro to m2_parse_internal.
3038 (pstate): New variable.
3039 (type_exp, exp, fblock, variable, type): Update calls to
3040 write_exp* and similars to use parser state.
3042 (m2_parse): New function.
3043 * m2-lang.h: Forward declare "struct parser_state".
3044 (m2_parse): Add "struct parser_state" argument.
3045 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3046 * objc-lang.h: Forward declare "struct parser_state".
3047 (end_msglist): Add "struct parser_state" argument.
3048 * p-exp.y (parse_type): Rewrite macro to use parser state.
3049 (yyparse): Redefine macro to pascal_parse_internal.
3050 (pstate): New variable.
3051 (parse_number): Add "struct parser_state" argument.
3052 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3053 write_exp* and similars in order to use parser state.
3054 (parse_number, yylex): Adjust code to use parser state.
3055 (pascal_parse): New function.
3056 * p-lang.h: Forward declare "struct parser_state".
3057 (pascal_parse): Add "struct parser_state" argument.
3058 * go-exp.y (parse_type): Rewrite macro to use parser state.
3059 (yyparse): Redefine macro to go_parse_internal.
3060 (pstate): New variable.
3061 (parse_number): Add "struct parser_state" argument.
3062 (type_exp, exp1, exp, variable, type): Update calls to
3063 write_exp* and similars in order to use parser state.
3064 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3065 to use parser state.
3066 (go_parse): Likewise.
3067 * go-lang.h: Forward declare "struct parser_state".
3068 (go_parse): Add "struct parser_state" argument.
3070 2014-03-27 Doug Evans <dje@google.com>
3072 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3074 2014-03-27 Doug Evans <dje@google.com>
3076 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3077 Remove argument abbrev_section. All callers updated.
3079 2014-03-27 Doug Evans <dje@google.com>
3081 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3082 addr_base, ranges_base.
3084 2014-03-26 Keith Seitz <keiths@redhat.com>
3086 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3087 types, not VAR_DOMAIN.
3089 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3091 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3093 * features/nios2-linux.c: Regenerated.
3094 * features/nios2.c: Regenerated.
3096 2014-03-25 Pedro Alves <palves@redhat.com>
3098 * cli/cli-script.c (script_from_file): Force the interpreter to
3101 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3103 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3104 small stack allocation.
3106 2014-03-24 Tristan Gingold <gingold@adacore.com>
3108 * darwin-nat.c (exc_server): Remove unused prototype.
3109 (darwin_dump_message): Correctly display data on x86_64.
3110 (darwin_encode_reply): Fix style.
3111 Add comments and fix indentation.
3113 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3115 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3117 2014-03-22 Doug Evans <xdje42@gmail.com>
3119 * infcmd.c: Whitespace fixes.
3120 (interrupt_command): Merge two function comments into one.
3122 2014-03-22 Doug Evans <xdje42@gmail.com>
3124 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3127 2014-03-22 Yao Qi <yao@codesourcery.com>
3129 * remote.c (target_read_live_memory): Remove.
3130 (memory_xfer_live_readonly_partial): Rename it to
3131 remote_xfer_live_readonly_partial. Remove argument 'object'.
3132 All callers updated. Call remote_read_bytes_1
3133 instead of target_read_live_memory.
3134 * tracepoint.c (set_traceframe_number): Remove.
3135 (make_cleanup_restore_traceframe_number): Likewise .
3136 * tracepoint.h (set_traceframe_number): Remove declaration.
3137 (make_cleanup_restore_traceframe_number): Likewise.
3139 2014-03-22 Yao Qi <yao@codesourcery.com>
3141 * remote.c (remote_read_bytes): Move code on reading from the
3143 (remote_read_bytes_1): ... here. New function.
3145 2014-03-22 Yao Qi <yao@codesourcery.com>
3147 * ctf.c (ctf_xfer_partial): Check the return value of
3148 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3149 return TARGET_XFER_UNAVAILABLE.
3150 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3151 * target.c (target_read_live_memory): Move it to remote.c.
3152 (memory_xfer_live_readonly_partial): Likewise.
3153 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3154 * remote.c (target_read_live_memory): Moved from target.c.
3155 (memory_xfer_live_readonly_partial): Likewise.
3156 (remote_read_bytes): Factored out from
3157 memory_xfer_partial_1.
3159 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3161 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3164 2014-03-21 Pedro Alves <palves@redhat.com>
3166 * infrun.c (normal_stop): Extend comment.
3168 2014-03-21 Hui Zhu <hui@codesourcery.com>
3169 Pedro Alves <palves@redhat.com>
3171 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3173 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3174 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3175 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3177 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3179 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3180 `z' formatted output modifier.
3182 2014-03-20 Tom Tromey <tromey@redhat.com>
3183 Sergio Durigan Junior <sergiodj@redhat.com>
3185 * probe.c (parse_probes): Turn assert into an ordinary error.
3186 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3187 exceptions when parsing probes. Rearrange the code for clarity.
3189 2014-03-20 Tom Tromey <tromey@redhat.com>
3192 * top.c (execute_command): Only dispatch events if the command
3195 2014-03-20 Tom Tromey <tromey@redhat.com>
3198 * infcall.c: Include event-top.h.
3199 (run_inferior_call): Call async_disable_stdin if needed.
3201 2014-03-20 Pedro Alves <palves@redhat.com>
3203 * infrun.c (prepare_to_proceed): Delete.
3204 (thread_still_needs_step_over): New function.
3205 (find_thread_needs_step_over): New function.
3206 (proceed): If the current thread needs a step-over, set its
3207 steping_over_breakpoint flag. Adjust to use
3208 find_thread_needs_step_over instead of prepare_to_proceed.
3209 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3210 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3212 (switch_back_to_stepped_thread): Step over breakpoints of all
3213 threads not the stepping thread, before switching back to the
3216 2014-03-20 Pedro Alves <palves@redhat.com>
3218 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3220 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3221 * infrun.c (saved_singlestep_ptid)
3222 (stepping_past_singlestep_breakpoint): Delete.
3223 (resume): Remove stepping_past_singlestep_breakpoint handling.
3224 (proceed): Store the prev_pc of the stepping thread too.
3225 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3227 (enum infwait_states): Delete infwait_thread_hop_state.
3228 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3230 (handle_inferior_event): Adjust.
3231 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3232 handling and the thread-hop code. Before removing single-step
3233 breakpoints, check whether the thread hit a single-step breakpoint
3234 of another thread. If it did, the trap is not a random signal.
3235 (switch_back_to_stepped_thread): If the event thread hit a
3236 single-step breakpoint, unblock it before switching to the
3237 stepping thread. Handle the case of the stepped thread having
3239 (keep_going): Handle the case of the current thread moving past a
3240 single-step breakpoint.
3242 2014-03-20 Pedro Alves <palves@redhat.com>
3245 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3246 are being stepped over.
3247 (breakpoint_address_match): Make extern.
3248 * breakpoint.h (breakpoint_address_match): New declaration.
3249 * inferior.h (stepping_past_instruction_at): New declaration.
3250 * infrun.c (struct step_over_info): New type.
3251 (step_over_info): New global.
3252 (set_step_over_info, clear_step_over_info)
3253 (stepping_past_instruction_at): New functions.
3254 (handle_inferior_event): Clear the step-over info when
3255 trap_expected is cleared.
3256 (resume): Remove now stale comment.
3257 (clear_proceed_status): Clear step-over info.
3258 (proceed): Adjust step-over handling to set or clear the step-over
3259 info instead of removing all breakpoints.
3260 (handle_signal_stop): When setting up a thread-hop, don't remove
3262 (stop_stepping): Clear step-over info.
3263 (keep_going): Adjust step-over handling to set or clear step-over
3264 info and then always inserting breakpoints, instead of removing
3265 all breakpoints when stepping over one.
3267 2014-03-20 Pedro Alves <palves@redhat.com>
3269 * infrun.c (previous_inferior_ptid): Adjust comment.
3270 (deferred_step_ptid): Delete.
3271 (infrun_thread_ptid_changed, prepare_to_proceed)
3272 (init_wait_for_inferior): Adjust.
3273 (handle_signal_stop): Delete deferred_step_ptid handling.
3275 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3278 * defs.h (sync_quit_force_run): New declaration.
3279 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3280 * event-top.c (async_sigterm_handler): New declaration.
3281 (async_sigterm_token): New variable.
3282 (async_init_signals): Create also async_sigterm_token.
3283 (async_sigterm_handler): New function.
3284 (sync_quit_force_run): New variable.
3285 (handle_sigterm): Replace quit_force call by other calls.
3286 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3288 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3290 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3291 offset into SPE pseudo registers.
3293 2014-03-18 Pedro Alves <palves@redhat.com>
3296 * inferior.h (print_stop_event): Declare.
3297 * infrun.c (print_stop_event): New, factored out from ...
3298 (normal_stop): ... this.
3299 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3300 of bpstat_print/print_stack_frame.
3302 2014-03-17 Tom Tromey <tromey@redhat.com>
3304 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3306 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3308 * ada-lang.c (decode_constrained_packed_array): Perform a
3309 minimal coercion for reference with coerce_ref instead of
3312 2014-03-17 Tristan Gingold <gingold@adacore.com>
3314 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3315 (darwin_solib_create_inferior_hook): Emit a warning if version
3318 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3320 * python/py-value.c (get_field_flag): Cast flag_name argument to
3321 PyObject_GetAttrString to support Python 2.4.
3323 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3326 (Global Maintainers): Remove Jan Kratochvil.
3328 2014-03-14 Pedro Alves <palves@redhat.com>
3330 * inferior.h (terminal_ours_for_output): Rename to ...
3331 (child_terminal_ours_for_output): ... this.
3332 (terminal_save_ours): Rename to ...
3333 (child_terminal_save_ours): ... this.
3334 (terminal_ours): Rename to ...
3335 (child_terminal_ours): ... this.
3336 (terminal_inferior): Rename to ...
3337 (child_terminal_inferior): ... this.
3338 (terminal_init_inferior): Rename to ...
3339 (child_terminal_init_inferior): ... this.
3340 (terminal_init_inferior_with_pgrp): Rename to ...
3341 (child_terminal_init_inferior_with_pgrp): ... this.
3342 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3343 (child_terminal_init_with_pgrp): ... this.
3344 (terminal_save_ours): Rename to ...
3345 (child_terminal_save_ours): ... this.
3346 (terminal_init_inferior): Rename to ...
3347 (child_terminal_init): ... this. Adjust.
3348 (terminal_inferior): Rename to ...
3349 (child_terminal_inferior): ... this.
3350 (terminal_ours_for_output): Rename to ...
3351 (child_terminal_ours_for_output): ... this. Adjust.
3352 (terminal_ours): Rename to ...
3353 (child_terminal_ours): ... this.
3354 (terminal_ours_1): Rename to ...
3355 (child_terminal_ours_1): ... this. Adjust.
3356 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3357 * windows-nat.c (do_initial_windows_stuff): Adjust.
3358 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3359 (gnu_terminal_init): ... this. Adjust.
3360 (gnu_target): Adjust.
3361 * inf-child.c (inf_child_target): Adjust.
3363 2014-03-13 Doug Evans <xdje42@gmail.com>
3366 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3369 2014-03-13 Doug Evans <xdje42@gmail.com>
3371 * value.c (record_latest_value): Call release_value_or_incref
3372 instead of release_value.
3374 2014-03-13 Pedro Alves <palves@redhat.com>
3376 * procfs.c (procfs_target): Don't override to_shortname,
3377 to_longname or to_doc.
3379 2014-03-13 Pedro Alves <palves@redhat.com>
3381 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3382 Unix in user visible strings.
3384 2014-03-12 Stan Shebs <stan@codesourcery.com>
3386 * gdbtypes.h: Annotate comments for Doxygen, add a page
3387 block comment with some general info.
3389 2014-03-12 Pedro Alves <palves@redhat.com>
3391 * infcmd.c (prepare_execution_command): New function, factored out
3392 from several execution commands.
3393 (run_command_1, continue_command, step_1, jump_command)
3394 (signal_command, until_command, advance_command, finish_command)
3395 (attach_command): Use prepare_execution_command.
3397 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3399 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3402 (struct arm_linux_thread_points): Removed.
3403 (struct arm_linux_process_info): New.
3404 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3405 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3406 (arm_linux_find_breakpoints_by_tid): Removed.
3407 (struct arch_lwp_info): New.
3408 (arm_linux_find_process_pid): New functions.
3409 (arm_linux_add_process): New functions.
3410 (arm_linux_process_info_get): New functions.
3411 (arm_linux_forget_process): New function.
3412 (arm_linux_get_debug_reg_state): New function.
3413 (struct update_registers_data): New.
3414 (update_registers_callback): New function.
3415 (arm_linux_insert_hw_breakpoint1): Updated.
3416 (arm_linux_remove_hw_breakpoint1): Updated.
3417 (arm_linux_insert_hw_breakpoint): Updated.
3418 (arm_linux_remove_hw_breakpoint): Updated.
3419 (arm_linux_insert_watchpoint): Updated.
3420 (arm_linux_remove_watchpoint): Updated.
3421 (arm_linux_new_thread): Updated.
3422 (arm_linux_prepare_to_resume): New function.
3423 (arm_linux_new_fork): New function.
3424 (_initialize_arm_linux_nat): Updated.
3426 2014-03-12 Pedro Alves <palves@redhat.com>
3428 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3430 2014-03-12 Tom Tromey <tromey@redhat.com>
3432 * inf-child.c (return_zero): New function.
3433 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3434 * aix-thread.c (aix_thread_inferior_created): New function.
3435 (aix_thread_attach): Remove.
3436 (init_aix_thread_ops): Don't set to_attach.
3437 (_initialize_aix_thread): Register inferior_created observer.
3438 * corelow.c (init_core_ops): Don't set to_attach or
3440 * exec.c (init_exec_ops): Don't set to_attach or
3442 * infcmd.c (run_command_1): Use find_run_target. Make direct
3444 (attach_command): Use find_attach_target. Make direct target
3446 * record-btrace.c (init_record_btrace_ops): Don't set
3448 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3450 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3451 set to_create_inferior.
3452 * target.c (complete_target_initialization): Add assertion.
3453 (target_create_inferior): Remove.
3454 (find_default_attach, find_default_create_inferior): Remove.
3455 (find_attach_target, find_run_target): New functions.
3456 (find_default_is_async_p, find_default_can_async_p)
3457 (target_supports_non_stop, target_attach): Remove.
3458 (init_dummy_target): Don't set to_create_inferior or
3459 to_supports_non_stop.
3460 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3461 TARGET_DEFAULT_FUNC.
3462 <to_create_inferior>: Add comment.
3463 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3464 TARGET_DEFAULT_RETURN.
3465 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3466 (find_attach_target, find_run_target): Declare.
3467 (target_create_inferior): Remove.
3468 (target_has_execution_1): Update comment.
3469 (target_supports_non_stop): Remove.
3470 * target-delegates.c: Rebuild.
3472 2014-03-12 Pedro Alves <palves@redhat.com>
3474 * inf-child.h: Update comment to not mention Unix.
3476 2014-03-12 Pedro Alves <palves@redhat.com>
3478 * inf-child.c: Update top comment to not mention Unix. Add
3479 generic comment describing how this target is meant to be used.
3480 (inf_child_post_attach, inf_child_post_startup_inferior)
3481 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3484 2014-03-12 Pedro Alves <palves@redhat.com>
3486 * nto-procfs.c: Include inf-child.h.
3487 (procfs_ops): Delete global.
3488 (procfs_can_run): Delete method.
3489 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3490 target pointer instead of referencing procfs_ops.
3491 (procfs_prepare_to_store): Delete.
3492 (init_procfs_ops): Delete function.
3493 (procfs_target): New function, based on init_procfs_ops, but
3494 inherit inf_child_target.
3495 (_initialize_procfs): Use procfs_target.
3497 2014-03-12 Pedro Alves <palves@redhat.com>
3499 * windows-nat.c: Include inf-child.h.
3500 (windows_ops): Delete global.
3501 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3503 (init_windows_ops): Delete function.
3504 (windows_target): New function, based on init_windows_ops, but
3505 inherit inf_child_target.
3506 (_initialize_windows_nat): Use windows_target. Install x86
3507 specific target methods here.
3509 2014-03-10 Doug Evans <xdje42@gmail.com>
3511 * guile/guile.c (call_initialize_gdb_module): New function.
3512 (initialize_guile): Replace call to scm_init_guile with call to
3515 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3517 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3518 in call to TYPE_CODE macro.
3520 2014-03-10 Jerome Guitton <guitton@adacore.com>
3522 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3523 Resolve tagged types to full view.
3525 2014-03-10 Hui Zhu <hui@codesourcery.com>
3527 * target.h (target_insert_breakpoint): Remove "hardware" from its
3530 2014-03-07 Doug Evans <dje@google.com>
3532 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3534 2014-03-07 Doug Evans <dje@google.com>
3536 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3537 Remove unused local comp_dir_attr. Assert exactly one of
3538 stub_comp_unit_die, stub_comp_dir is non-NULL.
3540 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3542 * target.h (complete_target_initialization, add_target):
3545 2014-03-07 Pedro Alves <palves@redhat.com>
3547 * go32-nat.c: Include inf-child.h.
3548 (go32_ops): Delete global.
3549 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3551 (go32_create_inferior): Push the passed in target pointer instead
3552 of referencing go32_ops.
3553 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3554 (go32_target): New function, based on init_go32_ops, but inherit
3556 (_initialize_go32_nat): Use go32_target. Move parts of
3559 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3561 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3562 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3563 SYMBOL_VALUE_ADDRESS.
3564 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3566 2014-03-06 Yao Qi <yao@codesourcery.com>
3568 * breakpoint.c (get_tracepoint_by_number): Remove argument
3569 optional_p. All callers updated. Adjust comments. Update
3571 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3573 2014-03-06 Yao Qi <yao@codesourcery.com>
3575 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3576 early if get_number returns zero. Use 'p' instead of 'args'.
3578 2014-03-06 Yao Qi <yao@codesourcery.com>
3580 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3583 2014-03-06 Yao Qi <yao@codesourcery.com>
3585 PR breakpoints/16508
3586 * tracepoint.c (check_trace_running): New function.
3587 (trace_find_command): Move code to check_trace_running and
3588 call check_trace_running.
3589 (trace_find_pc_command): Likewise.
3590 (trace_find_tracepoint_command): Likewise.
3591 (trace_find_line_command): Likewise.
3592 (trace_find_range_command): Likewise.
3593 * tracepoint.h (check_trace_running): Likewise.
3594 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3596 2014-03-06 Yao Qi <yao@codesourcery.com>
3598 * target.h (struct target_ops) <to_traceframe_info>: Use
3599 TARGET_DEFAULT_NORETURN (tcomplain ()).
3600 * target-delegates.c: Regenerated.
3602 2014-03-05 Pedro Alves <palves@redhat.com>
3605 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3606 void. Update comment.
3607 (dcache_xfer_memory): Delete.
3608 (dcache_read_memory_partial): New, based on the read bits of
3610 (dcache_update): Add status parameter. Use ULONGEST for len, and
3611 adjust. Discard cache lines if the reason for the update was
3613 * dcache.h (dcache_xfer_memory): Delete declaration.
3614 (dcache_read_memory_partial): New declaration.
3615 (dcache_update): Update prototype.
3616 * target.c (raw_memory_xfer_partial): Update the dcache here.
3617 (memory_xfer_partial_1): Don't handle dcache writes here.
3619 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3621 * remote-sim.c (gdbsim_load): Add const to prog.
3623 2014-03-03 Tom Tromey <tromey@redhat.com>
3625 * elfread.c (probe_key): Change to bfd_data.
3626 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3627 now per-BFD, not per-objfile.
3628 * stap-probe.c (stap_probe_destroy): Update comment.
3629 (handle_stap_probe): Allocate on the per-BFD obstack.
3631 2014-03-03 Tom Tromey <tromey@redhat.com>
3633 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3634 * breakpoint.c (create_longjmp_master_breakpoint): Use
3636 (add_location_to_breakpoint, bkpt_probe_insert_location)
3637 (bkpt_probe_remove_location): Update.
3638 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3639 * elfread.c (elf_symfile_relocate_probe): Remove.
3640 (elf_probe_fns): Update.
3641 (insert_exception_resume_breakpoint): Change type of "probe"
3642 parameter to bound_probe.
3643 (check_exception_resume): Update.
3644 * objfiles.c (objfile_relocate1): Don't relocate probes.
3645 * probe.c (bound_probe_s): New typedef.
3646 (parse_probes): Use get_probe_address. Set sal's objfile.
3647 (find_probe_by_pc): Return a bound_probe.
3648 (collect_probes): Return a VEC(bound_probe_s).
3649 (compare_probes): Update.
3650 (gen_ui_out_table_header_info): Change type of "probes"
3652 (info_probes_for_ops): Update.
3653 (get_probe_address): New function.
3654 (probe_safe_evaluate_at_pc): Update.
3655 * probe.h (struct probe_ops) <get_probe_address>: New field.
3656 <set_semaphore, clear_semaphore>: Add objfile parameter.
3657 (struct probe) <objfile>: Remove field.
3659 <address>: Update comment.
3660 (struct bound_probe): New.
3661 (find_probe_by_pc): Return a bound_probe.
3662 (get_probe_address): Declare.
3663 * solib-svr4.c (struct probe_and_action) <address>: New field.
3664 (hash_probe_and_action, equal_probe_and_action): Update.
3665 (register_solib_event_probe): Add address parameter.
3666 (solib_event_probe_at): Update.
3667 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3669 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3670 (stap_get_probe_address): New function.
3671 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3672 (compile_probe_arg): Update.
3673 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3675 (handle_stap_probe): Don't relocate the probe.
3676 (stap_relocate): Remove.
3677 (stap_gen_info_probes_table_values): Update.
3678 (stap_probe_ops): Remove stap_relocate.
3679 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3680 (debug_sym_probe_fns): Update.
3681 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3682 * symtab.c (init_sal): Use memset.
3683 * symtab.h (struct symtab_and_line) <objfile>: New field.
3684 * tracepoint.c (start_tracing, stop_tracing): Update.
3686 2014-03-03 Tom Tromey <tromey@redhat.com>
3688 * probe.h (parse_probes, find_probe_by_pc)
3689 (find_probes_in_objfile): Fix comments.
3691 2014-03-02 Doug Evans <xdje42@gmail.com>
3693 * infrun.c (handle_signal_stop): Replace test for
3694 TARGET_WAITKIND_STOPPED with an assert.
3696 2014-03-02 Doug Evans <xdje42@gmail.com>
3698 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3700 2014-03-02 Doug Evans <xdje42@gmail.com>
3702 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3704 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3706 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3708 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3710 * i386obsd-nat.c: Include "obsd-nat.h".
3711 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3713 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3715 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3717 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3719 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3721 * mips64obsd-nat.c: Include "obsd-nath".
3722 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3724 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3726 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3728 * amd64obsd-nat.c: Include "obsd-nat,h.
3729 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3731 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3733 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3735 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3736 (find_overload_match): Update call to find_oload_champ.
3737 (find_oload_champ_namespace_loop): Likewise
3739 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3741 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3743 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3744 * config/sparc/obsd64.mh: New file.
3745 * sparc64obsd-nat.c: New file.
3747 * obsd-nat.h: New file.
3748 * obsd-nat.c: New file.
3749 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3750 (ALLDEPFILES): Add obsd-nat.c.
3752 2014-02-28 Tom Tromey <tromey@redhat.com>
3754 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3755 * cli-out.h (cli_ui_out_impl): Now const.
3756 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3757 * ui-out.c (struct ui_out) <impl>: Now const.
3758 (default_ui_out_impl): Now const.
3759 (ui_out_new): Make 'impl' parameter const.
3760 * ui-out.h (ui_out_new): Update.
3762 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3764 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3766 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3768 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3770 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3772 Additional PR 8882 fix.
3773 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3775 2014-02-27 Pedro Alves <palves@redhat.com>
3777 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3780 2014-02-27 Pedro Alves <palves@redhat.com>
3783 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3784 * nat/linux-waitpid.c: Include string.h.
3785 (status_to_str): Moved here and made extern.
3786 * nat/linux-waitpid.h (status_to_str): New declaration.
3788 2014-02-27 Hui Zhu <hui@codesourcery.com>
3791 * infrun.c (ptid_match): Move ...
3792 * common/ptid.c (ptid_match): ... here.
3793 * inferior.h (ptid_match): Move ...
3794 * common/ptid.h (ptid_match): ... here.
3796 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3798 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3799 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3802 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3804 * obsd-tdep.c (obsd_auxv_parse): New function.
3805 (obsd_init_abi): Set auxv_parse.
3807 * gdbarch.sh (auxv_parse): New.
3808 * gdbarch.h: Regenerated.
3809 * gdbarch.c: Regenerated.
3810 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3812 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3814 * guile/scm-value.c (gdbscm_history_append_x): New function.
3815 (value_functions): Add it.
3817 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3819 * dwarf2read.c (attr_value_as_address): New function.
3820 (dwarf2_find_base_address, read_call_site_scope): Use
3821 attr_value_as_address in place of DW_ADDR.
3822 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3823 the low and high addresses. Slight rework of the handling
3824 of the high pc being a constant form, and limit it to
3825 DWARF verson 4 or higher.
3826 (dwarf2_record_block_ranges): Likewise.
3827 (read_partial_die): Likewise.
3828 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3830 2014-02-26 Tom Tromey <tromey@redhat.com>
3832 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3834 2014-02-26 Tom Tromey <tromey@redhat.com>
3836 * elfread.c (elf_read_minimal_symbols): Return early if
3837 minimal symbols have already been read. Add "ei" parameter.
3838 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3839 * minsyms.c (prim_record_minimal_symbol_full): Update.
3840 * objfiles.h (struct objstats) <n_minsyms>: Move...
3841 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3842 * symmisc.c (print_objfile_statistics): Update.
3844 2014-02-26 Tom Tromey <tromey@redhat.com>
3846 * elfread.c (elf_read_minimal_symbols): New function, from
3848 (elf_symfile_read): Call it.
3850 2014-02-26 Tom Tromey <tromey@redhat.com>
3852 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3853 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3854 (lookup_minimal_symbol_solib_trampoline)
3855 (lookup_minimal_symbol_by_pc_section_1)
3856 (lookup_minimal_symbol_and_objfile): Update.
3857 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3858 Don't allocate a minimal symbol if minsyms have already been read.
3859 (build_minimal_symbol_hash_tables): Update.
3860 (install_minimal_symbols): Do nothing if minsyms already read.
3861 Use the per-BFD obstack.
3862 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3863 * objfiles.c (allocate_objfile): Call
3864 terminate_minimal_symbol_table later.
3865 (have_minimal_symbols): Update.
3866 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3867 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3868 Move from struct objfile.
3869 <minsyms_read>: New field.
3870 (struct objfile) <msymbols, minimal_symbol_count,
3871 msymbol_hash, msymbol_demangled_hash>: Move.
3872 (ALL_OBJFILE_MSYMBOLS): Update.
3873 * symfile.c (read_symbols): Set minsyms_read.
3874 (reread_symbols): Update.
3875 * symmisc.c (dump_objfile, dump_msymbols): Update.
3877 2014-02-26 Tom Tromey <tromey@redhat.com>
3879 * minsyms.c (msymbols_sort): Remove.
3880 * minsyms.h (msymbols_sort): Remove.
3881 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3882 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3883 * elfread.c (elf_symtab_read): Don't add section offsets.
3884 * xcoffread.c (record_minimal_symbol): Don't add section offset
3885 to minimal symbol address.
3886 * somread.c (text_offset, data_offset): Remove.
3887 (som_symtab_read): Don't add section offsets to minimal symbol
3889 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3890 Don't add section offsets to minimal symbols.
3891 * coffread.c (coff_symtab_read): Don't add section offsets
3892 to minimal symbol addresses.
3893 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3894 to minimal symbol addresses.
3895 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3896 section offset to minimal symbol addresses.
3897 * mdebugread.c (parse_partial_symbols): Don't add section
3898 offset to minimal symbol addresses.
3899 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3900 offset to minimal symbol addresses.
3902 2014-02-26 Tom Tromey <tromey@redhat.com>
3904 * ada-lang.c (ada_main_name): Update.
3905 (ada_add_standard_exceptions): Update.
3906 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3907 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3908 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3909 * auxv.c (ld_so_xfer_auxv): Update.
3910 * avr-tdep.c (avr_scan_prologue): Update.
3911 * ax-gdb.c (gen_var_ref): Update.
3912 * blockframe.c (get_pc_function_start)
3913 (find_pc_partial_function_gnu_ifunc): Update.
3914 * breakpoint.c (create_overlay_event_breakpoint)
3915 (create_longjmp_master_breakpoint)
3916 (create_std_terminate_master_breakpoint)
3917 (create_exception_master_breakpoint): Update.
3918 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3919 * c-valprint.c (c_val_print): Update.
3920 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3921 * common/agent.c (agent_look_up_symbols): Update.
3922 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3923 * dwarf2loc.c (call_site_to_target_addr): Update.
3924 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3925 * elfread.c (elf_gnu_ifunc_record_cache)
3926 (elf_gnu_ifunc_resolve_by_got): Update.
3927 * findvar.c (default_read_var_value): Update.
3928 * frame.c (inside_main_func): Update.
3929 * frv-tdep.c (frv_frame_this_id): Update.
3930 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3931 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3933 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3934 (hppa_hpux_find_dummy_bpaddr): Update.
3935 * hppa-tdep.c (hppa_symbol_address): Update.
3936 * infcmd.c (until_next_command): Update.
3937 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3939 * linespec.c (minsym_found, add_minsym): Update.
3940 * linux-nat.c (get_signo): Update.
3941 * linux-thread-db.c (inferior_has_bug): Update.
3942 * m32c-tdep.c (m32c_return_value)
3943 (m32c_m16c_address_to_pointer): Update.
3944 * m32r-tdep.c (m32r_frame_this_id): Update.
3945 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3946 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3947 * maint.c (maintenance_translate_address): Update.
3948 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3949 (frob_address): New function.
3950 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3951 frob_address. Rename parameter to "pc_in".
3952 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3954 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3956 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3957 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3958 * objc-lang.c (find_objc_msgsend): Update.
3959 * objfiles.c (objfile_relocate1): Update.
3960 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3961 * p-valprint.c (pascal_val_print): Update.
3962 * parse.c (write_exp_msymbol): Update.
3963 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3964 (ppc_elfv2_skip_entrypoint): Update.
3965 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3966 * printcmd.c (build_address_symbolic, msym_info)
3967 (address_info): Update.
3968 * proc-service.c (ps_pglobal_lookup): Update.
3969 * psymtab.c (find_pc_sect_psymtab_closer)
3970 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3971 Change msymbol parameter to bound_minimal_symbol.
3972 * ravenscar-thread.c (get_running_thread_id): Update.
3973 * remote.c (remote_check_symbols): Update.
3974 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3976 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3977 * solib-dsbt.c (lm_base): Update.
3978 * solib-frv.c (lm_base, main_got): Update.
3979 * solib-irix.c (locate_base): Update.
3980 * solib-som.c (som_solib_create_inferior_hook)
3981 (link_map_start): Update.
3982 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3983 * solib-svr4.c (elf_locate_base, enable_break): Update.
3984 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3985 (flush_ea_cache): Update.
3986 * stabsread.c (define_symbol, scan_file_globals): Update.
3987 * stack.c (find_frame_funname): Update.
3988 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3989 (debug_qf_find_pc_sect_symtab): Update.
3990 * symfile.c (simple_read_overlay_table)
3991 (simple_overlay_update): Update.
3992 * symfile.h (struct quick_symbol_functions)
3993 <find_pc_sect_symtab>: Change type of msymbol to
3994 bound_minimal_symbol.
3995 * symmisc.c (dump_msymbols): Update.
3996 * symtab.c (find_pc_sect_symtab_via_partial)
3997 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3998 (search_symbols, print_msymbol_info): Update.
3999 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4000 (MSYMBOL_VALUE_ADDRESS): Redefine.
4001 (BMSYMBOL_VALUE_ADDRESS): New macro.
4002 * tracepoint.c (scope_info): Update.
4003 * tui/tui-disasm.c (tui_find_disassembly_address)
4004 (tui_get_begin_asm_address): Update.
4005 * valops.c (find_function_in_inferior): Update.
4006 * value.c (value_static_field, value_fn_field): Update.
4008 2014-02-26 Tom Tromey <tromey@redhat.com>
4010 * ada-lang.c (ada_update_initial_language): Update.
4011 (ada_main_name, ada_has_this_exception_support): Update.
4012 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4013 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4014 * arm-tdep.c (arm_skip_stub): Update.
4015 * auxv.c (ld_so_xfer_auxv): Update.
4016 * avr-tdep.c (avr_scan_prologue): Update.
4017 * ax-gdb.c (gen_var_ref): Update.
4018 * breakpoint.c (struct breakpoint_objfile_data)
4019 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4020 type to bound_minimal_symbol.
4021 (create_overlay_event_breakpoint)
4022 (create_longjmp_master_breakpoint)
4023 (create_std_terminate_master_breakpoint)
4024 (create_exception_master_breakpoint): Update.
4025 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4026 * c-exp.y (classify_name): Update.
4027 * coffread.c (coff_symfile_read): Update.
4028 * common/agent.c (agent_look_up_symbols): Update.
4029 * d-lang.c (d_main_name): Update.
4030 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4031 * dec-thread.c (enable_dec_thread): Update.
4032 * dwarf2loc.c (call_site_to_target_addr): Update.
4033 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4034 * eval.c (evaluate_subexp_standard): Update.
4035 * findvar.c (struct minsym_lookup_data) <result>: Change type
4036 to bound_minimal_symbol.
4038 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4039 * frame.c (inside_main_func): Update.
4040 * frv-tdep.c (frv_frame_this_id): Update.
4041 * gcore.c (call_target_sbrk): Update.
4042 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4043 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4045 * go-lang.c (go_main_name): Update.
4046 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4047 (hppa_hpux_find_import_stub_for_addr): Update.
4048 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4049 Update. Change return type.
4050 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4052 * jit.c (jit_breakpoint_re_set_internal): Update.
4053 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4055 * linux-nat.c (get_signo): Update.
4056 * linux-thread-db.c (inferior_has_bug): Update
4057 * m32c-tdep.c (m32c_return_value)
4058 (m32c_m16c_address_to_pointer): Update.
4059 * m32r-tdep.c (m32r_frame_this_id): Update.
4060 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4061 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4062 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4063 lookup_minimal_symbol. Change return type.
4064 (lookup_minimal_symbol): Remove.
4065 (lookup_bound_minimal_symbol): Update.
4066 (lookup_minimal_symbol_text): Change return type.
4067 (lookup_minimal_symbol_solib_trampoline): Change return type.
4068 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4069 (lookup_minimal_symbol_solib_trampoline): Change return type.
4070 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4071 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4072 (value_nsstring, find_imps): Update.
4073 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4074 * p-lang.c (pascal_main_name): Update.
4075 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4076 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4077 * proc-service.c (ps_pglobal_lookup): Update.
4078 * ravenscar-thread.c (get_running_thread_msymbol): Change
4080 (has_ravenscar_runtime, get_running_thread_id): Update.
4081 * remote.c (remote_check_symbols): Update.
4082 * sol-thread.c (ps_pglobal_lookup): Update.
4083 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4084 * solib-dsbt.c (lm_base): Update.
4085 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4087 * solib-irix.c (locate_base): Update.
4088 * solib-som.c (som_solib_create_inferior_hook)
4089 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4091 * solib-spu.c (spu_enable_break): Update.
4092 * solib-svr4.c (elf_locate_base, enable_break): Update.
4093 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4094 (flush_ea_cache): Update.
4095 * stabsread.c (define_symbol): Update.
4096 * symfile.c (simple_read_overlay_table): Update.
4097 * symtab.c (find_pc_sect_line): Update.
4098 * tracepoint.c (scope_info): Update.
4099 * tui-disasm.c (tui_get_begin_asm_address): Update.
4100 * value.c (value_static_field): Update.
4102 2014-02-26 Tom Tromey <tromey@redhat.com>
4104 * minsyms.c (prim_record_minimal_symbol_full): Use
4105 SET_MSYMBOL_VALUE_ADDRESS.
4106 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4107 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4108 SET_MSYMBOL_VALUE_ADDRESS.
4109 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4110 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4112 2014-02-26 Tom Tromey <tromey@redhat.com>
4114 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4115 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4116 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4117 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4118 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4119 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4120 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4121 * ada-lang.c (ada_main_name): Update.
4122 (ada_lookup_simple_minsym): Update.
4123 (ada_make_symbol_completion_list): Update.
4124 (ada_add_standard_exceptions): Update.
4125 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4126 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4127 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4128 * arm-tdep.c (skip_prologue_function): Update.
4129 (arm_skip_stack_protector, arm_skip_stub): Update.
4130 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4131 (arm_wince_skip_main_prologue): Update.
4132 * auxv.c (ld_so_xfer_auxv): Update.
4133 * avr-tdep.c (avr_scan_prologue): Update.
4134 * ax-gdb.c (gen_var_ref): Update.
4135 * block.c (call_site_for_pc): Update.
4136 * blockframe.c (get_pc_function_start): Update.
4137 (find_pc_partial_function_gnu_ifunc): Update.
4138 * breakpoint.c (create_overlay_event_breakpoint): Update.
4139 (create_longjmp_master_breakpoint): Update.
4140 (create_std_terminate_master_breakpoint): Update.
4141 (create_exception_master_breakpoint): Update.
4142 (resolve_sal_pc): Update.
4143 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4144 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4146 * c-valprint.c (c_val_print): Update.
4147 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4148 * coffread.c (coff_symfile_read): Update.
4149 * common/agent.c (agent_look_up_symbols): Update.
4150 * dbxread.c (find_stab_function_addr): Update.
4151 (end_psymtab): Update.
4152 * dwarf2loc.c (call_site_to_target_addr): Update.
4153 (func_verify_no_selftailcall): Update.
4154 (tailcall_dump): Update.
4155 (call_site_find_chain_1): Update.
4156 (dwarf_expr_reg_to_entry_parameter): Update.
4157 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4158 (elf_gnu_ifunc_resolve_by_got): Update.
4159 * f-valprint.c (info_common_command): Update.
4160 * findvar.c (read_var_value): Update.
4161 * frame.c (get_prev_frame_1): Update.
4162 (inside_main_func): Update.
4163 * frv-tdep.c (frv_skip_main_prologue): Update.
4164 (frv_frame_this_id): Update.
4165 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4166 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4167 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4168 (gnuv3_skip_trampoline): Update.
4169 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4170 (hppa64_hpux_in_solib_call_trampoline): Update.
4171 (hppa_hpux_skip_trampoline_code): Update.
4172 (hppa64_hpux_search_dummy_call_sequence): Update.
4173 (hppa_hpux_find_import_stub_for_addr): Update.
4174 (hppa_hpux_find_dummy_bpaddr): Update.
4175 * hppa-tdep.c (hppa_symbol_address)
4176 (hppa_lookup_stub_minimal_symbol): Update.
4177 * i386-tdep.c (i386_skip_main_prologue): Update.
4178 (i386_pe_skip_trampoline_code): Update.
4179 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4180 * infcall.c (get_function_name): Update.
4181 * infcmd.c (until_next_command): Update.
4182 * jit.c (jit_breakpoint_re_set_internal): Update.
4183 (jit_inferior_init): Update.
4184 * linespec.c (minsym_found): Update.
4185 (add_minsym): Update.
4186 * linux-fork.c (info_checkpoints_command): Update.
4187 * linux-nat.c (get_signo): Update.
4188 * linux-thread-db.c (inferior_has_bug): Update.
4189 * m32c-tdep.c (m32c_return_value): Update.
4190 (m32c_m16c_address_to_pointer): Update.
4191 (m32c_m16c_pointer_to_address): Update.
4192 * m32r-tdep.c (m32r_frame_this_id): Update.
4193 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4194 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4195 * maint.c (maintenance_translate_address): Update.
4196 * minsyms.c (add_minsym_to_hash_table): Update.
4197 (add_minsym_to_demangled_hash_table): Update.
4198 (msymbol_objfile): Update.
4199 (lookup_minimal_symbol): Update.
4200 (iterate_over_minimal_symbols): Update.
4201 (lookup_minimal_symbol_text): Update.
4202 (lookup_minimal_symbol_by_pc_name): Update.
4203 (lookup_minimal_symbol_solib_trampoline): Update.
4204 (lookup_minimal_symbol_by_pc_section_1): Update.
4205 (lookup_minimal_symbol_and_objfile): Update.
4206 (prim_record_minimal_symbol_full): Update.
4207 (compare_minimal_symbols): Update.
4208 (compact_minimal_symbols): Update.
4209 (build_minimal_symbol_hash_tables): Update.
4210 (install_minimal_symbols): Update.
4211 (terminate_minimal_symbol_table): Update.
4212 (find_solib_trampoline_target): Update.
4213 (minimal_symbol_upper_bound): Update.
4214 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4215 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4216 (mips_skip_pic_trampoline_code): Update.
4217 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4218 * objc-lang.c (selectors_info): Update.
4219 (classes_info): Update.
4220 (find_methods): Update.
4221 (find_imps): Update.
4222 (find_objc_msgsend): Update.
4223 * objfiles.c (objfile_relocate1): Update.
4224 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4225 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4226 * p-valprint.c (pascal_val_print): Update.
4227 * parse.c (write_exp_msymbol): Update.
4228 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4229 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4230 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4231 * printcmd.c (build_address_symbolic): Update.
4233 (address_info): Update.
4234 * proc-service.c (ps_pglobal_lookup): Update.
4235 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4236 (find_pc_sect_psymtab): Update.
4237 * python/py-framefilter.c (py_print_frame): Update.
4238 * ravenscar-thread.c (get_running_thread_id): Update.
4239 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4241 * remote.c (remote_check_symbols): Update.
4242 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4243 (rs6000_skip_trampoline_code): Update.
4244 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4245 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4246 * solib-dsbt.c (lm_base): Update.
4247 * solib-frv.c (lm_base): Update.
4249 * solib-irix.c (locate_base): Update.
4250 * solib-som.c (som_solib_create_inferior_hook): Update.
4251 (som_solib_desire_dynamic_linker_symbols): Update.
4252 (link_map_start): Update.
4253 * solib-spu.c (spu_enable_break): Update.
4254 (ocl_enable_break): Update.
4255 * solib-svr4.c (elf_locate_base): Update.
4256 (enable_break): Update.
4257 * spu-tdep.c (spu_get_overlay_table): Update.
4258 (spu_catch_start): Update.
4259 (flush_ea_cache): Update.
4260 * stabsread.c (define_symbol): Update.
4261 (scan_file_globals): Update.
4262 * stack.c (find_frame_funname): Update.
4263 (frame_info): Update.
4264 * symfile.c (simple_read_overlay_table): Update.
4265 (simple_overlay_update): Update.
4266 * symmisc.c (dump_msymbols): Update.
4267 * symtab.c (fixup_section): Update.
4268 (find_pc_sect_line): Update.
4269 (skip_prologue_sal): Update.
4270 (search_symbols): Update.
4271 (print_msymbol_info): Update.
4272 (rbreak_command): Update.
4273 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4274 (completion_list_objc_symbol): Update.
4275 (default_make_symbol_completion_list_break_on): Update.
4276 * tracepoint.c (scope_info): Update.
4277 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4278 (tui_get_begin_asm_address): Update.
4279 * valops.c (find_function_in_inferior): Update.
4280 * value.c (value_static_field): Update.
4281 (value_fn_field): Update.
4283 2014-02-26 Tom Tromey <tromey@redhat.com>
4285 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4286 bound minimal symbols. Move code that knows about minsym
4288 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4290 * minsyms.h (minimal_symbol_upper_bound): Declare.
4291 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4292 minimal_symbol_upper_bound.
4294 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4296 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4297 Use the type's name if its basic type does not have a tag.
4299 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4301 * dwarf2read.c (read_subrange_type): Add comment.
4303 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4305 * dwarf2read.c (update_enumeration_type_from_children): New
4306 function, mostly extracted from process_structure_scope.
4307 (read_enumeration_type): Call update_enumeration_type_from_children.
4308 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4309 and flag_flag_enum fields.
4311 2014-02-26 Pedro Alves <palves@redhat.com>
4313 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4314 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4315 to_xfer_partial method.
4317 2014-02-26 Pedro Alves <palves@redhat.com>
4319 * target.c (complete_target_initialization): Don't install
4320 default_xfer_partial as to_xfer_partial hook.
4322 (update_current_target): Don't INHERIT nor de_fault
4323 deprecated_xfer_memory. Delete de_fault macro.
4324 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4325 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4326 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4329 2014-02-26 Pedro Alves <palves@redhat.com>
4331 * go32-nat.c (my_write_child): New function.
4332 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4333 (go32_xfer_partial): New function.
4334 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4335 Instead install a to_xfer_partial hook.
4337 2014-02-26 Pedro Alves <palves@redhat.com>
4339 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4340 to_xfer_partial helper. Rewrite.
4341 (procfs_xfer_partial): New function.
4342 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4343 Install a to_xfer_partial hook.
4345 2014-02-26 Pedro Alves <palves@redhat.com>
4347 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4348 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4349 (m32r_xfer_partial): New function.
4350 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4351 Install a to_xfer_partial hook.
4353 2014-02-26 Pedro Alves <palves@redhat.com>
4355 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4357 (mips_xfer_partial): New function.
4358 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4359 hook. Install a to_xfer_partial hook.
4361 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4363 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4364 * gdbtypes.c (create_array_type_with_stride): New function,
4365 renaming create_array_type, but with an added parameter
4366 called "bit_stride".
4367 (create_array_type): Re-implement using
4368 create_array_type_with_stride.
4369 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4370 and DW_AT_bit_stride attributes.
4372 2014-02-26 Pedro Alves <palves@redhat.com>
4374 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4375 task-specific breakpoints.
4377 2014-02-25 Pedro Alves <palves@redhat.com>
4379 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4380 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4382 2014-02-25 Stan Shebs <stan@codesourcery.com>
4384 * defs.h: Annotate comments for Doxygen.
4386 2014-02-25 Tom Tromey <tromey@redhat.com>
4388 * target.h (target_ignore): Don't declare.
4389 * target.c (target_ignore): Remove.
4391 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4394 * auto-load.c (auto_load_objfile_script_1): Change filename to
4397 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4399 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4400 documentation. Adjust prototype to match the target_ops
4401 to_xfer_partial method. Adjust implementation accordingly.
4403 2014-02-25 Hui Zhu <hui@codesourcery.com>
4405 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4408 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4410 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4411 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4412 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4413 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4414 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4415 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4416 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4417 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4419 (rl78_register_type): Use a data pointer type for SP and
4420 new pseudo registers mentioned above. Use a 16 bit integer
4421 type for all other register pairs.
4422 (rl78_register_name, rl78_g10_register_name): Update for
4423 new pseudo registers.
4424 (rl78_pseudo_register_read): Likewise.
4425 (rl78_pseudo_register_write): Likewise.
4426 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4427 to the newly added pseudo registers.
4429 2014-02-24 Doug Evans <dje@google.com>
4431 * value.c (record_latest_value): Fix comment.
4432 * printcmd.c (print_command_1): Remove code to handle -1 return from
4433 record_latest_value.
4435 2014-02-24 Pedro Alves <palves@redhat.com>
4437 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4438 deprecated_xfer_memory hook.
4439 (procfs_xfer_partial): Call procfs_xfer_memory instead
4440 of the deprecated_xfer_memory target hook.
4441 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4444 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4446 * windows-nat.c (windows_xfer_shared_libraries): Return
4447 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4448 requested object is TARGET_OBJECT_LIBRARIES.
4450 2014-02-24 Yao Qi <yao@codesourcery.com>
4452 * target.h (enum target_xfer_status)
4453 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4454 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4456 * corefile.c (memory_error_message): User updated.
4457 * exec.c (section_table_read_available_memory): Likewise.
4458 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4459 * target.c (target_xfer_status_to_string): Likewise.
4460 (raw_memory_xfer_partial): Likewise.
4461 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4462 * valops.c (read_value_memory): Likewise.
4463 * exec.h: Update comments.
4465 2014-02-24 Yao Qi <yao@codesourcery.com>
4467 * target.c (target_xfer_status_to_string): Rename argument err
4469 * target.h (target_xfer_status_to_string): Update declaration.
4470 Replace target_xfer_error_to_string with
4471 target_xfer_status_to_string in comment.
4473 2014-02-24 Yao Qi <yao@codesourcery.com>
4475 * mips-linux-nat.c (super_close): Update its type.
4476 (mips_linux_close): Pass 'self' to super_close.
4478 2014-02-24 Yao Qi <yao@codesourcery.com>
4480 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4481 * corefile.c (read_memory): Adjusted.
4482 * target.c (target_write_with_progress): Adjusted.
4484 2014-02-23 Yao Qi <yao@codesourcery.com>
4488 2013-10-25 Yao Qi <yao@codesourcery.com>
4490 * remote.c (remote_traceframe_info): Return early if
4491 traceframe is not selected.
4493 2013-07-19 Yao Qi <yao@codesourcery.com>
4495 * target.c (update_current_target): Change the default action
4496 of 'to_traceframe_info' from tcomplain to return_zero.
4497 * target.h (struct target_ops) <to_traceframe_info>: Add more
4500 2014-02-23 Yao Qi <yao@codesourcery.com>
4502 * valops.c (read_value_memory): Rewrite it. Call
4503 target_xfer_partial in a loop.
4504 * exec.h (section_table_available_memory): Remove declaration.
4505 Move comments to ...
4506 * exec.c (section_table_available_memory): ... here. Make it
4509 2014-02-23 Yao Qi <yao@codesourcery.com>
4511 * exec.c (section_table_read_available_memory): New function.
4512 * exec.h (section_table_read_available_memory): Declare.
4513 * ctf.c (ctf_xfer_partial): Call
4514 section_table_read_available_memory.
4515 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4517 2014-02-23 Yao Qi <yao@codesourcery.com>
4519 * ctf.c (ctf_xfer_partial): Move code to ...
4520 * exec.c (exec_read_partial_read_only): ... it. New function.
4521 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4522 * tracefile.c: Include "exec.h".
4523 * exec.h (exec_read_partial_read_only): Declare.
4525 2014-02-23 Yao Qi <yao@codesourcery.com>
4527 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4528 (tfile_has_memory): Remove.
4529 (init_tfile_ops): Don't set fields to_has_all_memory and
4530 to_has_memory of tfile_ops.
4531 * tracefile.c (tracefile_has_all_memory): New function.
4532 (tracefile_has_memory): New function.
4533 (init_tracefile_ops): Initialize fields to_has_all_memory and
4534 to_has_memory of 'ops'.
4536 2014-02-23 Yao Qi <yao@codesourcery.com>
4538 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4539 (ctf_thread_alive, ctf_get_trace_status): Remove.
4540 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4542 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4543 (tfile_has_stack, tfile_has_registers): Remove.
4544 (tfile_thread_alive): Remove.
4545 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4547 * tracefile.c (tracefile_has_stack): New function.
4548 (tracefile_has_registers): New function.
4549 (tracefile_thread_alive): New function.
4550 (tracefile_get_trace_status): New function.
4551 (init_tracefile_ops): New function.
4552 * tracefile.h (init_tracefile_ops): Declare.
4554 2014-02-23 Yao Qi <yao@codesourcery.com>
4556 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4557 (O_LARGEFILE): Likewise.
4558 (tfile_ops): Likewise.
4559 (TRACE_HEADER_SIZE): Likewise.
4560 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4561 (cur_data_size): Likewise.
4562 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4563 (tfile_close, tfile_files_info): Likewise.
4564 (tfile_get_trace_status): Likewise.
4565 (tfile_get_tracepoint_status): Likewise.
4566 (tfile_get_traceframe_address): Likewise.
4567 (tfile_trace_find, match_blocktype): Likewise.
4568 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4569 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4570 (tfile_get_trace_state_variable_value): Likewise.
4571 (tfile_has_all_memory, tfile_has_memory): Likewise.
4572 (tfile_has_stack, tfile_has_registers): Likewise.
4573 (tfile_thread_alive, build_traceframe_info): Likewise.
4574 (tfile_traceframe_info, init_tfile_ops): Likewise.
4575 (_initialize_tracepoint): Don't call init_tfile_ops
4576 and add_target_with_completer.
4577 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4578 exec.h, completer.h and filenames.h.
4579 (_initialize_tracefile_tfile): New function.
4581 2014-02-23 Yao Qi <yao@codesourcery.com>
4583 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4585 (HFILES_NO_SRCDIR): Add tracefile.h.
4586 * ctf.c: Include "tracefile.h".
4587 * tracefile.h: New file.
4588 * tracefile.c: New file
4589 * tracefile-tfile.c: New file.
4590 * tracepoint.c: Include "tracefile.h".
4591 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4592 (stop_reason_names): Add const.
4593 (trace_file_writer_xfree): Move it to tracefile.c.
4594 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4595 (trace_save_ctf): Likewise.
4596 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4597 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4598 (tfile_write_header, tfile_write_regblock_type): Likewise.
4599 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4600 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4601 (tfile_write_raw_data, tfile_end): Likewise.
4602 (tfile_trace_file_writer_new): Likewise.
4603 (free_uploaded_tp): Make it extern.
4604 (free_uploaded_tsv): Make it extern.
4605 (_initialize_tracepoint): Move code to register command 'tsave'
4607 * tracepoint.h (stop_reason_names): Declare.
4608 (struct trace_frame_write_ops): Move it to tracefile.h.
4609 (struct trace_file_write_ops): Likewise.
4610 (struct trace_file_writer): Likewise.
4611 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4613 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4616 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4618 (get_cores_used_by_process): New parameter num_cores, use it.
4619 (linux_xfer_osdata_processes): Pass num_cores to it.
4620 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4623 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4625 * target.c (memory_xfer_partial): Fix length arg in call to
4626 breakpoint_xfer_memory.
4628 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4631 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4632 number comes after the + or - signs. Adjust length of register
4633 name to be extracted.
4635 2014-02-20 Tom Tromey <tromey@redhat.com>
4637 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4638 (ada_varobj_ops): Mark "extern".
4640 2014-02-20 Tom Tromey <tromey@redhat.com>
4642 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4644 2014-02-20 Doug Evans <xdje42@gmail.com>
4646 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4647 All callers updated.
4648 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4649 All callers updated.
4650 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4651 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4653 2014-02-20 lin zuojian <manjian2006@gmail.com>
4654 Joel Brobecker <brobecker@adacore.com>
4655 Doug Evans <xdje42@gmail.com>
4658 * dwarf2read.c (struct die_info): New member in_process.
4659 (reset_die_in_process): New function.
4660 (process_die): Set it at the start, reset when returning.
4661 (inherit_abstract_dies): Only call process_die if origin_child_die
4662 not already being processed.
4664 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4666 * windows-nat.c (handle_unload_dll): Add function documentation.
4667 (do_initial_windows_stuff): Add comment explaining why we wait
4668 until after inferior initialization has finished before
4669 processing all DLLs.
4671 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4673 * windows-nat.c (get_module_name): Delete.
4674 (windows_get_exec_module_filename): New function, mostly
4675 inspired from get_module_name.
4676 (windows_pid_to_exec_file): Replace call to get_module_name
4677 by call to windows_get_exec_module_filename.
4679 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4681 * windows-nat.c (handle_load_dll): Rewrite this function's
4682 introductory comment. Remove code using get_module_name
4683 to get the DLL's name.
4685 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4687 * windows-nat.c (get_windows_debug_event): Ignore
4688 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4689 if windows_initialization_done == 0.
4690 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4691 Adjust implementation to always load all DLLs.
4692 (do_initial_windows_stuff): Replace call to
4693 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4695 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4697 * windows-nat.c (_initialize_windows_nat): Deprecate the
4698 "dll-symbols" command. Turn the "add-shared-symbol-files"
4699 and "assf" aliases into commands, and deprecate them as well.
4700 * NEWS: Add entry explaining that "dll-symbols" and its two
4701 aliases are now deprecated.
4703 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4705 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4706 new-line in debug string. Remove trailing spaces.
4708 2014-02-19 Stan Shebs <stan@codesourcery.com>
4710 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4712 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4714 * NEWS: Add entry for the new feature
4715 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4718 2014-02-19 Stan Shebs <stan@codesourcery.com>
4720 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4722 2014-02-19 Pedro Alves <palves@redhat.com>
4724 * common/ptid.h (struct ptid): Mention that process_stratum
4725 targets should prefer ptid.lwp.
4727 2014-02-19 Pedro Alves <palves@redhat.com>
4729 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4730 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4731 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4732 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4733 store remote thread ids rather than ptid.tid.
4734 (_initialize_remote): Adjust.
4736 2014-02-19 Tom Tromey <tromey@redhat.com>
4738 * target.c (target_get_unwinder): Rewrite.
4739 (target_get_tailcall_unwinder): Rewrite.
4740 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4741 (record_btrace_to_get_tailcall_unwinder): New function.
4742 (init_record_btrace_ops): Update.
4743 * target.h (struct target_ops) <to_get_unwinder,
4744 to_get_tailcall_unwinder>: Now function pointers. Use
4745 TARGET_DEFAULT_RETURN.
4747 2014-02-19 Tom Tromey <tromey@redhat.com>
4749 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4751 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4757 * target-delegates.c: Rebuild.
4758 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4759 TARGET_DEFAULT_FUNC.
4760 * target.c (default_target_decr_pc_after_break): Rename from
4761 forward_target_decr_pc_after_break. Simplify.
4762 (target_decr_pc_after_break): Rely on delegation.
4764 2014-02-19 Tom Tromey <tromey@redhat.com>
4766 * target.c (update_current_target): Do not INHERIT to_doc or
4767 to_magic. Do not de_fault to_open or to_close.
4769 2014-02-19 Tom Tromey <tromey@redhat.com>
4771 * gcore.h (objfile_find_memory_regions): Declare.
4772 * gcore.c (objfile_find_memory_regions): No longer static. Add
4774 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4775 * exec.c: Include gcore.h.
4776 (exec_set_find_memory_regions): Remove.
4777 (exec_find_memory_regions): Remove.
4778 (exec_do_find_memory_regions): Remove.
4779 (init_exec_ops): Update.
4780 * defs.h (exec_set_find_memory_regions): Remove.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target-delegates.c: Rebuild.
4785 * target.h (struct target_ops) <to_extra_thread_info,
4786 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4787 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4788 not 0, in TARGET_DEFAULT_RETURN.
4790 2014-02-19 Tom Tromey <tromey@redhat.com>
4792 * target.c (complete_target_initialization): Remove casts. Use
4793 return_zero_has_execution.
4794 (return_zero): Add "ignore" argument.
4795 (return_zero_has_execution): New function.
4796 (init_dummy_target): Remove casts. Use
4797 return_zero_has_execution.
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * target.c (update_current_target): Update comments. Do not
4804 2014-02-19 Tom Tromey <tromey@redhat.com>
4806 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4808 * corelow.c (core_read_description): Delegate when needed.
4809 * remote.c (remote_read_description): Delegate when needed.
4810 * target-delegates.c: Rebuild.
4811 * target.c (target_read_description): Rewrite.
4812 * target.h (struct target_ops) <to_read_description>: Update
4813 comment. Use TARGET_DEFAULT_RETURN.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (update_current_target): Don't inherit or default
4820 (find_default_run_target): Check against delegate_can_run.
4821 * target.h (struct target_ops) <to_can_run>: Use
4822 TARGET_DEFAULT_RETURN.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (target_disconnect): Unconditionally delegate.
4828 * target.h (struct target_ops) <to_disconnect>: Use
4829 TARGET_DEFAULT_NORETURN.
4831 2014-02-19 Tom Tromey <tromey@redhat.com>
4833 * record.c (record_stop): Unconditionally delegate.
4834 * target-delegates.c: Rebuild.
4835 * target.c (target_stop_recording): Unconditionally delegate.
4836 * target.h (struct target_ops) <to_stop_recording>: Use
4837 TARGET_DEFAULT_IGNORE.
4839 2014-02-19 Tom Tromey <tromey@redhat.com>
4841 * target-delegates.c: Rebuild.
4842 * target.c (target_enable_btrace): Unconditionally delegate.
4843 * target.h (struct target_ops) <to_enable_btrace>: Use
4844 TARGET_DEFAULT_NORETURN.
4846 2014-02-19 Tom Tromey <tromey@redhat.com>
4848 * target-delegates.c: Rebuild.
4849 * target.c (target_read_btrace): Unconditionally delegate.
4850 * target.h (struct target_ops) <to_read_btrace>: Use
4851 TARGET_DEFAULT_NORETURN.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target-delegates.c: Rebuild.
4856 * target.c (target_teardown_btrace): Unconditionally delegate.
4857 * target.h (struct target_ops) <to_teardown_btrace>: Use
4858 TARGET_DEFAULT_NORETURN.
4860 2014-02-19 Tom Tromey <tromey@redhat.com>
4862 * target-delegates.c: Rebuild.
4863 * target.c (target_disable_btrace): Unconditionally delegate.
4864 * target.h (struct target_ops) <to_disable_btrace>: Use
4865 TARGET_DEFAULT_NORETURN.
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target-delegates.c: Rebuild.
4870 * target.c (default_search_memory): New function.
4871 (simple_search_memory): Update comment.
4872 (target_search_memory): Unconditionally delegate.
4873 * target.h (struct target_ops) <to_search_memory>: Use
4874 TARGET_DEFAULT_FUNC.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * auxv.c (default_auxv_parse): No longer static.
4879 (target_auxv_parse): Unconditionally delegate.
4880 * auxv.h (default_auxv_parse): Declare.
4881 * target-delegates.c: Rebuild.
4882 * target.c: Include auxv.h.
4883 * target.h (struct target_ops) <to_auxv_parse>: Use
4884 TARGET_DEFAULT_FUNC.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (target_memory_map): Unconditionally delegate.
4890 * target.h (struct target_ops) <to_memory_map>: Use
4891 TARGET_DEFAULT_RETURN.
4893 2014-02-19 Tom Tromey <tromey@redhat.com>
4895 * target-delegates.c: Rebuild.
4896 * target.c (target_thread_alive): Unconditionally delegate.
4897 * target.h (struct target_ops) <to_thread_alive>: Use
4898 TARGET_DEFAULT_RETURN.
4900 2014-02-19 Tom Tromey <tromey@redhat.com>
4902 * target-delegates.c: Rebuild.
4903 * target.c (target_save_record): Unconditionally delegate.
4904 * target.h (struct target_ops) <to_save_record>: Use
4905 TARGET_DEFAULT_NORETURN.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (target_delete_record): Unconditionally delegate.
4911 * target.h (struct target_ops) <to_delete_record>: Use
4912 TARGET_DEFAULT_NORETURN.
4914 2014-02-19 Tom Tromey <tromey@redhat.com>
4916 * target-delegates.c: Rebuild.
4917 * target.c (target_record_is_replaying): Unconditionally
4919 * target.h (struct target_ops) <to_record_is_replaying>: Use
4920 TARGET_DEFAULT_RETURN.
4922 2014-02-19 Tom Tromey <tromey@redhat.com>
4924 * target-delegates.c: Rebuild.
4925 * target.c (target_goto_record_begin): Unconditionally delegate.
4926 * target.h (struct target_ops) <to_goto_record_begin>: Use
4927 TARGET_DEFAULT_NORETURN.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * target-delegates.c: Rebuild.
4932 * target.c (target_goto_record_end): Unconditionally delegate.
4933 * target.h (struct target_ops) <to_goto_record_end>: Use
4934 TARGET_DEFAULT_NORETURN.
4936 2014-02-19 Tom Tromey <tromey@redhat.com>
4938 * target-delegates.c: Rebuild.
4939 * target.c (target_goto_record): Unconditionally delegate.
4940 * target.h (struct target_ops) <to_goto_record>: Use
4941 TARGET_DEFAULT_NORETURN.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target-delegates.c: Rebuild.
4946 * target.c (target_insn_history): Unconditionally delegate.
4947 * target.h (struct target_ops) <to_insn_history>: Use
4948 TARGET_DEFAULT_NORETURN.
4950 2014-02-19 Tom Tromey <tromey@redhat.com>
4952 * target-delegates.c: Rebuild.
4953 * target.c (target_insn_history_from): Unconditionally delegate.
4954 * target.h (struct target_ops) <to_insn_history_from>: Use
4955 TARGET_DEFAULT_NORETURN.
4957 2014-02-19 Tom Tromey <tromey@redhat.com>
4959 * target-delegates.c: Rebuild.
4960 * target.c (target_insn_history_range): Unconditionally delegate.
4961 * target.h (struct target_ops) <to_insn_history_range>: Use
4962 TARGET_DEFAULT_NORETURN.
4964 2014-02-19 Tom Tromey <tromey@redhat.com>
4966 * target-delegates.c: Rebuild.
4967 * target.c (target_call_history): Unconditionally delegate.
4968 * target.h (struct target_ops) <to_call_history>: Use
4969 TARGET_DEFAULT_NORETURN.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target-delegates.c: Rebuild.
4974 * target.c (target_call_history_from): Unconditionally delegate.
4975 * target.h (struct target_ops) <to_call_history_from>: Use
4976 TARGET_DEFAULT_NORETURN.
4978 2014-02-19 Tom Tromey <tromey@redhat.com>
4980 * target-delegates.c: Rebuild.
4981 * target.c (target_call_history_range): Unconditionally delegate.
4982 * target.h (struct target_ops) <to_call_history_range>: Use
4983 TARGET_DEFAULT_NORETURN.
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target-delegates.c: Rebuild.
4988 * target.c (target_verify_memory): Unconditionally delegate.
4989 * target.h (struct target_ops) <to_verify_memory>: Use
4990 TARGET_DEFAULT_NORETURN.
4992 2014-02-19 Tom Tromey <tromey@redhat.com>
4994 * target-delegates.c: Rebuild.
4995 * target.c (target_core_of_thread): Unconditionally delegate.
4996 * target.h (struct target_ops) <to_core_of_thread>: Use
4997 TARGET_DEFAULT_RETURN.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target-delegates.c: Rebuild.
5002 * target.c (target_flash_done): Unconditionally delegate.
5003 * target.h (struct target_ops) <to_flash_done>: Use
5004 TARGET_DEFAULT_NORETURN.
5006 2014-02-19 Tom Tromey <tromey@redhat.com>
5008 * target-delegates.c: Rebuild.
5009 * target.c (target_flash_erase): Unconditionally delegate.
5010 * target.h (struct target_ops) <to_flash_erase>: Use
5011 TARGET_DEFAULT_NORETURN.
5013 2014-02-19 Tom Tromey <tromey@redhat.com>
5015 * target-delegates.c: Rebuild.
5016 * target.c (target_get_section_table): Unconditionally delegate.
5017 * target.h (struct target_ops) <to_get_section_table>: Use
5018 TARGET_DEFAULT_RETURN.
5020 2014-02-19 Tom Tromey <tromey@redhat.com>
5022 * target-delegates.c: Rebuild.
5023 * target.c (target_pid_to_str): Unconditionally delegate.
5024 (init_dummy_target): Don't initialize to_pid_to_str.
5025 (default_pid_to_str): Rename from dummy_pid_to_str.
5026 * target.h (struct target_ops) <to_pid_to_str>: Use
5027 TARGET_DEFAULT_FUNC.
5029 2014-02-19 Tom Tromey <tromey@redhat.com>
5031 * target-delegates.c: Rebuild.
5032 * target.c (target_find_new_threads): Unconditionally delegate.
5033 * target.h (struct target_ops) <to_find_new_threads>: Use
5034 TARGET_DEFAULT_RETURN.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target-delegates.c: Rebuild.
5039 * target.c (target_program_signals): Unconditionally delegate.
5040 * target.h (struct target_ops) <to_program_signals>: Use
5041 TARGET_DEFAULT_IGNORE.
5043 2014-02-19 Tom Tromey <tromey@redhat.com>
5045 * target-delegates.c: Rebuild.
5046 * target.c (target_pass_signals): Unconditionally delegate.
5047 * target.h (struct target_ops) <to_pass_signals>: Use
5048 TARGET_DEFAULT_IGNORE.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (default_mourn_inferior): New function.
5054 (target_mourn_inferior): Unconditionally delegate.
5055 * target.h (struct target_ops) <to_mourn_inferior>: Use
5056 TARGET_DEFAULT_FUNC.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (default_follow_fork): New function.
5062 (target_follow_fork): Unconditionally delegate.
5063 * target.h (struct target_ops) <to_follow_fork>: Use
5064 TARGET_DEFAULT_FUNC.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (target_kill): Unconditionally delegate.
5070 * target.h (struct target_ops) <to_kill>: Use
5071 TARGET_DEFAULT_NORETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (target_masked_watch_num_registers): Unconditionally
5078 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5079 Use TARGET_DEFAULT_RETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (target_remove_mask_watchpoint): Unconditionally
5086 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5087 TARGET_DEFAULT_RETURN.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (target_insert_mask_watchpoint): Unconditionally
5094 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5095 TARGET_DEFAULT_RETURN.
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target-delegates.c: Rebuild.
5100 * target.c (target_ranged_break_num_registers): Unconditionally
5102 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5103 Use TARGET_DEFAULT_RETURN.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * target-delegates.c: Rebuild.
5108 * target.c (target_fetch_registers): Unconditionally delegate.
5109 * target.h (struct target_ops) <to_fetch_registers>: Use
5110 TARGET_DEFAULT_NORETURN.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: Rebuild.
5115 * target.c (update_current_target): Don't inherit or default
5117 * target.h (struct target_ops) <to_stop>: Use
5118 TARGET_DEFAULT_IGNORE.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (update_current_target): Don't inherit or default
5124 to_can_run_breakpoint_commands.
5125 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5126 Use TARGET_DEFAULT_RETURN.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (update_current_target): Don't inherit or default
5132 to_supports_evaluation_of_breakpoint_conditions.
5133 * target.h (struct target_ops)
5134 <to_supports_evaluation_of_breakpoint_conditions>: Use
5135 TARGET_DEFAULT_RETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (update_current_target): Don't inherit or default
5141 to_augmented_libraries_svr4_read.
5142 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5143 Use TARGET_DEFAULT_RETURN.
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target-delegates.c: Rebuild.
5148 * target.c (update_current_target): Don't inherit or default
5150 * target.h (struct target_ops) <to_can_use_agent>: Use
5151 TARGET_DEFAULT_RETURN.
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target-delegates.c: Rebuild.
5156 * target.c (update_current_target): Don't inherit or default
5158 * target.h (struct target_ops) <to_use_agent>: Use
5159 TARGET_DEFAULT_NORETURN.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * target-delegates.c: Rebuild.
5164 * target.c (update_current_target): Don't inherit or default
5166 (return_null): Remove.
5167 * target.h (struct target_ops) <to_traceframe_info>: Use
5168 TARGET_DEFAULT_RETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (update_current_target): Don't inherit or default
5174 to_static_tracepoint_markers_by_strid.
5175 * target.h (struct target_ops)
5176 <to_static_tracepoint_markers_by_strid>: Use
5177 TARGET_DEFAULT_NORETURN.
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target-delegates.c: Rebuild.
5182 * target.c (update_current_target): Don't inherit or default
5183 to_static_tracepoint_marker_at.
5184 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5185 Use TARGET_DEFAULT_RETURN.
5187 2014-02-19 Tom Tromey <tromey@redhat.com>
5189 * target-delegates.c: Rebuild.
5190 * target.c (update_current_target): Don't inherit or default
5192 * target.h (struct target_ops) <to_set_permissions>: Use
5193 TARGET_DEFAULT_IGNORE.
5195 2014-02-19 Tom Tromey <tromey@redhat.com>
5197 * target-delegates.c: Rebuild.
5198 * target.c (update_current_target): Don't inherit or default
5200 * target.h (struct target_ops) <to_get_tib_address>: Use
5201 TARGET_DEFAULT_NORETURN.
5203 2014-02-19 Tom Tromey <tromey@redhat.com>
5205 * target-delegates.c: Rebuild.
5206 * target.c (update_current_target): Don't inherit or default
5208 * target.h (struct target_ops) <to_set_trace_notes>: Use
5209 TARGET_DEFAULT_RETURN.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (update_current_target): Don't initialize
5215 to_set_trace_buffer_size.
5216 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5217 TARGET_DEFAULT_IGNORE.
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * target-delegates.c: Rebuild.
5222 * target.c (update_current_target): Don't inherit or default
5223 to_set_circular_trace_buffer.
5224 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5225 TARGET_DEFAULT_IGNORE.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (update_current_target): Don't inherit or default
5231 to_set_disconnected_tracing.
5232 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5233 TARGET_DEFAULT_IGNORE.
5235 2014-02-19 Tom Tromey <tromey@redhat.com>
5237 * target-delegates.c: Rebuild.
5238 * target.c (update_current_target): Don't inherit or default
5239 to_get_min_fast_tracepoint_insn_len.
5240 (return_minus_one): Remove.
5241 * target.h (struct target_ops)
5242 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target-delegates.c: Rebuild.
5247 * target.c (update_current_target): Don't inherit or default
5248 to_get_raw_trace_data.
5249 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5250 TARGET_DEFAULT_NORETURN.
5252 2014-02-19 Tom Tromey <tromey@redhat.com>
5254 * target-delegates.c: Rebuild.
5255 * target.c (update_current_target): Don't inherit or default
5256 to_upload_trace_state_variables.
5257 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5258 Use TARGET_DEFAULT_RETURN.
5260 2014-02-19 Tom Tromey <tromey@redhat.com>
5262 * target-delegates.c: Rebuild.
5263 * target.c (update_current_target): Don't inherit or default
5264 to_upload_tracepoints.
5265 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5266 TARGET_DEFAULT_RETURN.
5268 2014-02-19 Tom Tromey <tromey@redhat.com>
5270 * target-delegates.c: Rebuild.
5271 * target.c (update_current_target): Don't inherit or default
5273 * target.h (struct target_ops) <to_save_trace_data>: Use
5274 TARGET_DEFAULT_NORETURN.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target-delegates.c: Rebuild.
5279 * target.c (update_current_target): Don't inherit or default
5280 to_get_trace_state_variable_value.
5281 * target.h (struct target_ops)
5282 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target-delegates.c: Rebuild.
5287 * target.c (update_current_target): Don't inherit or default
5289 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5293 * target-delegates.c: Rebuild.
5294 * target.c (update_current_target): Don't inherit or default
5296 * target.h (struct target_ops) <to_trace_stop>: Use
5297 TARGET_DEFAULT_NORETURN.
5299 2014-02-19 Tom Tromey <tromey@redhat.com>
5301 * target-delegates.c: Rebuild.
5302 * target.c (update_current_target): Don't inherit or default
5303 to_get_tracepoint_status.
5304 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5305 TARGET_DEFAULT_NORETURN.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target-delegates.c: Rebuild.
5310 * target.c (update_current_target): Don't inherit or default
5311 to_get_trace_status.
5312 * target.h (struct target_ops) <to_get_trace_status>: Use
5313 TARGET_DEFAULT_RETURN.
5315 2014-02-19 Tom Tromey <tromey@redhat.com>
5317 * target-delegates.c: Rebuild.
5318 * target.c (update_current_target): Don't inherit or default
5320 * target.h (struct target_ops) <to_trace_start>: Use
5321 TARGET_DEFAULT_NORETURN.
5323 2014-02-19 Tom Tromey <tromey@redhat.com>
5325 * target-delegates.c: Rebuild.
5326 * target.c (update_current_target): Don't inherit or default
5327 to_trace_set_readonly_regions.
5328 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5329 Use TARGET_DEFAULT_NORETURN.
5331 2014-02-19 Tom Tromey <tromey@redhat.com>
5333 * target-delegates.c: Rebuild.
5334 * target.c (update_current_target): Don't inherit or default
5335 to_disable_tracepoint.
5336 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5337 TARGET_DEFAULT_NORETURN.
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target-delegates.c: Rebuild.
5342 * target.c (update_current_target): Don't inherit or default
5343 to_enable_tracepoint.
5344 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5345 TARGET_DEFAULT_NORETURN.
5347 2014-02-19 Tom Tromey <tromey@redhat.com>
5349 * target-delegates.c: Rebuild.
5350 * target.c (update_current_target): Don't inherit or default
5351 to_download_trace_state_variable.
5352 * target.h (struct target_ops) <to_download_trace_state_variable>:
5353 Use TARGET_DEFAULT_NORETURN.
5355 2014-02-19 Tom Tromey <tromey@redhat.com>
5357 * target-delegates.c: Rebuild.
5358 * target.c (update_current_target): Don't inherit or default
5359 to_can_download_tracepoint.
5360 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5361 TARGET_DEFAULT_RETURN.
5363 2014-02-19 Tom Tromey <tromey@redhat.com>
5365 * target-delegates.c: Rebuild.
5366 * target.c (update_current_target): Don't inherit or default
5367 to_download_tracepoint.
5368 * target.h (struct target_ops) <to_download_tracepoint>: Use
5369 TARGET_DEFAULT_NORETURN.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target-delegates.c: Rebuild.
5374 * target.c (update_current_target): Don't inherit or default
5376 * target.h (struct target_ops) <to_trace_init>: Use
5377 TARGET_DEFAULT_RETURN.
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target-delegates.c: Rebuild.
5382 * target.c (update_current_target): Don't inherit or default
5383 to_supports_string_tracing.
5384 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5385 TARGET_DEFAULT_RETURN.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target-delegates.c: Rebuild.
5390 * target.c (update_current_target): Don't inherit or default
5391 to_supports_enable_disable_tracepoint.
5392 * target.h (struct target_ops)
5393 <to_supports_enable_disable_tracepoint>: Use
5394 TARGET_DEFAULT_RETURN.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target-delegates.c: Rebuild.
5399 * target.c (update_current_target): Don't inherit or default
5400 to_supports_multi_process.
5401 * target.h (struct target_ops) <to_supports_multi_process>: Use
5402 TARGET_DEFAULT_RETURN.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target-delegates.c: Rebuild.
5407 * target.c (update_current_target): Don't inherit or default
5408 to_get_ada_task_ptid.
5409 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5410 TARGET_DEFAULT_FUNC.
5412 2014-02-19 Tom Tromey <tromey@redhat.com>
5414 * target-delegates.c: Rebuild.
5415 * target.c (update_current_target): Don't inherit or default
5416 to_thread_architecture.
5417 * target.h (struct target_ops) <to_thread_architecture>: Use
5418 TARGET_DEFAULT_FUNC.
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_execution_direction.
5425 * target.h (struct target_ops) <to_execution_direction>: Use
5426 TARGET_DEFAULT_FUNC.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target-delegates.c: Rebuild.
5431 * target.c (update_current_target): Don't inherit or default
5432 to_can_execute_reverse.
5433 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5434 TARGET_DEFAULT_RETURN.
5435 (target_can_execute_reverse): Unconditionally delegate.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target-delegates.c: Rebuild.
5440 * target.c (update_current_target): Don't inherit or default
5442 (dummy_goto_bookmark): Remove.
5443 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5444 * target.h (struct target_ops) <to_goto_bookmark>: Use
5445 TARGET_DEFAULT_NORETURN.
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
5452 (dummy_get_bookmark): Remove.
5453 (init_dummy_target): Don't inherit or default to_get_bookmark.
5454 * target.h (struct target_ops) <to_get_bookmark>: Use
5455 TARGET_DEFAULT_NORETURN
5457 2014-02-19 Tom Tromey <tromey@redhat.com>
5459 * target-delegates.c: Rebuild.
5460 * target.c (update_current_target): Don't inherit or default
5461 to_make_corefile_notes.
5462 (init_dummy_target): Don't initialize to_make_corefile_notes.
5463 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5464 TARGET_DEFAULT_FUNC.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target-delegates.c: Rebuild.
5469 * target.c (update_current_target): Don't inherit or default
5470 to_find_memory_regions.
5471 (init_dummy_target): Don't initialize to_find_memory_regions.
5472 * target.h (struct target_ops) <to_find_memory_regions>: Use
5473 TARGET_DEFAULT_FUNC.
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target-delegates.c: Rebuild.
5478 * target.c (update_current_target): Don't inherit or default
5480 * target.h (struct target_ops) <to_log_command>: Use
5481 TARGET_DEFAULT_IGNORE.
5482 (target_log_command): Unconditionally delegate.
5484 2014-02-19 Tom Tromey <tromey@redhat.com>
5486 * target-delegates.c: Rebuild.
5487 * target.c (update_current_target): Don't inherit or default
5488 to_pid_to_exec_file.
5489 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5490 TARGET_DEFAULT_RETURN.
5492 2014-02-19 Tom Tromey <tromey@redhat.com>
5494 * target-delegates.c: Rebuild.
5495 * target.c (update_current_target): Don't inherit or default
5497 (target_thread_name): Unconditionally delegate.
5498 * target.h (struct target_ops) <to_thread_name>: Use
5499 TARGET_DEFAULT_RETURN.
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target-delegates.c: Rebuild.
5504 * target.c (update_current_target): Don't inherit or default
5505 to_extra_thread_info.
5506 * target.h (struct target_ops) <to_extra_thread_info>: Use
5507 TARGET_DEFAULT_RETURN.
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target-delegates.c: Rebuild.
5512 * target.c (update_current_target): Don't inherit or default
5514 * target.h (struct target_ops) <to_has_exited>: Use
5515 TARGET_DEFAULT_RETURN..
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5521 to_set_syscall_catchpoint.
5522 (return_one): Remove.
5523 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5524 TARGET_DEFAULT_RETURN.
5526 2014-02-19 Tom Tromey <tromey@redhat.com>
5528 * target-delegates.c: Rebuild.
5529 * target.c (update_current_target): Don't inherit or default
5530 to_insert_exec_catchpoint.
5531 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5532 TARGET_DEFAULT_RETURN.
5534 2014-01-08 Tom Tromey <tromey@redhat.com>
5536 * target-delegates.c: Rebuild.
5537 * target.c (update_current_target): Don't inherit or default
5538 to_insert_exec_catchpoint.
5539 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5540 TARGET_DEFAULT_RETURN.
5542 2014-02-19 Tom Tromey <tromey@redhat.com>
5544 * target-delegates.c: Rebuild.
5545 * target.c (update_current_target): Don't inherit or default
5546 to_remove_vfork_catchpoint.
5547 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5548 TARGET_DEFAULT_RETURN.
5550 2014-02-19 Tom Tromey <tromey@redhat.com>
5552 * target-delegates.c: Rebuild.
5553 * target.c (update_current_target): Don't inherit or default
5554 to_insert_vfork_catchpoint.
5555 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5556 TARGET_DEFAULT_RETURN.
5558 2014-02-19 Tom Tromey <tromey@redhat.com>
5560 * target-delegates.c: Rebuild.
5561 * target.c (update_current_target): Don't inherit or default
5562 to_remove_fork_catchpoint.
5563 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5564 TARGET_DEFAULT_RETURN.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * target-delegates.c: Rebuild.
5569 * target.c (update_current_target): Don't inherit or default
5570 to_insert_fork_catchpoint.
5571 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5572 TARGET_DEFAULT_RETURN.
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target-delegates.c: Rebuild.
5577 * target.c (update_current_target): Don't inherit or default
5578 to_post_startup_inferior.
5579 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5580 TARGET_DEFAULT_IGNORE.
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * target-delegates.c: Rebuild.
5585 * target.c (update_current_target): Don't inherit or default
5587 * target.h (struct target_ops) <to_load>: Use
5588 TARGET_DEFAULT_NORETURN.
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5592 * target-delegates.c: Rebuild.
5593 * target.c (update_current_target): Don't inherit or default
5595 * target.h (struct target_ops) <to_terminal_info>: Use
5596 TARGET_DEFAULT_FUNC.
5598 2014-02-19 Tom Tromey <tromey@redhat.com>
5600 * target-delegates.c: Rebuild.
5601 * target.c (update_current_target): Don't inherit or default
5602 to_terminal_save_ours.
5603 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5604 TARGET_DEFAULT_IGNORE.
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target-delegates.c: Rebuild.
5609 * target.c (update_current_target): Don't inherit or default
5611 * target.h (struct target_ops) <to_terminal_ours>: Use
5612 TARGET_DEFAULT_IGNORE.
5614 2014-02-19 Tom Tromey <tromey@redhat.com>
5616 * target-delegates.c: Rebuild.
5617 * target.c (update_current_target): Don't inherit or default
5618 to_terminal_ours_for_output.
5619 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5620 TARGET_DEFAULT_IGNORE.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target-delegates.c: Rebuild.
5625 * target.c (update_current_target): Don't inherit or default
5626 to_terminal_inferior.
5627 * target.h (struct target_ops) <to_terminal_inferior>: Use
5628 TARGET_DEFAULT_IGNORE.
5630 2014-02-19 Tom Tromey <tromey@redhat.com>
5632 * target-delegates.c: Rebuild.
5633 * target.c (update_current_target): Don't inherit or default
5635 * target.h (struct target_ops) <to_terminal_init>: Use
5636 TARGET_DEFAULT_IGNORE.
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target-delegates.c: Rebuild.
5641 * target.c (update_current_target): Don't inherit or default
5642 to_can_accel_watchpoint_condition.
5643 * target.h (struct target_ops)
5644 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5646 2014-02-19 Tom Tromey <tromey@redhat.com>
5648 * target-delegates.c: Rebuild.
5649 * target.c (update_current_target): Don't inherit or default
5650 to_region_ok_for_hw_watchpoint.
5651 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5652 Use TARGET_DEFAULT_FUNC.
5654 2014-02-19 Tom Tromey <tromey@redhat.com>
5656 * target-delegates.c: Rebuild.
5657 * target.c (update_current_target): Don't inherit or default
5658 to_watchpoint_addr_within_range.
5659 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5660 Use TARGET_DEFAULT_FUNC.
5662 2014-02-19 Tom Tromey <tromey@redhat.com>
5664 * target-delegates.c: Rebuild.
5665 * target.c (update_current_target): Don't inherit or default
5666 to_remove_watchpoint.
5667 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5668 TARGET_DEFAULT_NORETURN.
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * target-delegates.c: Rebuild.
5673 * target.c (update_current_target): Don't inherit or default
5674 to_insert_watchpoint.
5675 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5676 TARGET_DEFAULT_RETURN.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target-delegates.c: Rebuild.
5681 * target.c (update_current_target): Don't inherit or default
5682 to_remove_hw_breakpoint.
5683 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5684 TARGET_DEFAULT_RETURN.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target-delegates.c: Rebuild.
5689 * target.c (update_current_target): Don't inherit or default
5690 to_insert_hw_breakpoint.
5691 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5692 TARGET_DEFAULT_RETURN.
5694 2014-02-19 Tom Tromey <tromey@redhat.com>
5696 * target-delegates.c: Rebuild.
5697 * target.c (update_current_target): Don't inherit or default
5698 to_can_use_hw_breakpoint.
5699 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5700 TARGET_DEFAULT_RETURN.
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * target-delegates.c: Rebuild.
5705 * target.c (update_current_target): Don't inherit or default
5707 * target.h (struct target_ops) <to_files_info>: Use
5708 TARGET_DEFAULT_IGNORE.
5710 2014-02-19 Tom Tromey <tromey@redhat.com>
5712 * target-delegates.c: Rebuild.
5713 * target.c (update_current_target): Don't inherit or default
5715 * target.h (struct target_ops) <to_store>: Use
5716 TARGET_DEFAULT_NORETURN.
5718 2014-02-19 Tom Tromey <tromey@redhat.com>
5720 * target-delegates.c: Rebuild.
5721 * target.c (update_current_target): Don't inherit or default
5723 * target.h (struct target_ops) <to_post_attach>: Use
5724 TARGET_DEFAULT_IGNORE.
5726 2014-02-19 Tom Tromey <tromey@redhat.com>
5728 * target-delegates.c: Rebuild.
5729 * target.c (update_current_target): Don't inherit or default
5731 (default_rcmd): New function.
5732 (do_monitor_command): Unconditionally delegate.
5733 * target.h (struct target_ops) <to_rmcd>: Use
5734 TARGET_DEFAULT_FUNC.
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target-delegates.c: Rebuild.
5739 * target.c (init_dummy_target): Don't initialize to_attach.
5740 (target_attach): Unconditionally delegate.
5741 * target.h (struct target_ops) <to_attach>: Use
5742 TARGET_DEFAULT_FUNC.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target-delegates.c: Rebuild.
5747 * target.c (target_detach): Unconditionally delegate.
5748 (init_dummy_target): Don't initialize to_detach.
5749 * target.h (struct target_ops) <to_detach>: Use
5750 TARGET_DEFAULT_IGNORE.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5756 (target_augmented_libraries_svr4_read): Add argument.
5757 * target.c (update_current_target): Update.
5758 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5761 2014-02-19 Tom Tromey <tromey@redhat.com>
5763 * target.h (struct target_ops) <to_call_history_range>: Add
5765 * target.c (target_call_history_range): Add argument.
5766 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5768 (record_btrace_call_history_from): Update.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target.h (struct target_ops) <to_call_history_from>: Add
5774 * target.c (target_call_history_from): Add argument.
5775 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target.h (struct target_ops) <to_call_history>: Add argument.
5781 * target.c (target_call_history): Add argument.
5782 * record-btrace.c (record_btrace_call_history): Add 'self'
5785 2014-02-19 Tom Tromey <tromey@redhat.com>
5787 * target.h (struct target_ops) <to_insn_history_range>: Add
5789 * target.c (target_insn_history_range): Add argument.
5790 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5792 (record_btrace_insn_history_from): Update.
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target.h (struct target_ops) <to_insn_history_from>: Add
5798 * target.c (target_insn_history_from): Add argument.
5799 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5802 2014-02-19 Tom Tromey <tromey@redhat.com>
5804 * target.h (struct target_ops) <to_insn_history>: Add argument.
5805 * target.c (target_insn_history): Add argument.
5806 * record-btrace.c (record_btrace_insn_history): Add 'self'
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * target.h (struct target_ops) <to_goto_record>: Add argument.
5812 * target.c (target_goto_record): Add argument.
5813 * record-full.c (record_full_goto): Add 'self' argument.
5814 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5816 2014-02-19 Tom Tromey <tromey@redhat.com>
5818 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5819 * target.c (target_goto_record_end): Add argument.
5820 * record-full.c (record_full_goto_end): Add 'self' argument.
5821 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target.h (struct target_ops) <to_goto_record_begin>: Add
5827 * target.c (target_goto_record_begin): Add argument.
5828 * record-full.c (record_full_goto_begin): Add 'self' argument.
5829 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target.h (struct target_ops) <to_record_is_replaying>: Add
5836 * target.c (target_record_is_replaying): Add argument.
5837 * record-full.c (record_full_is_replaying): Add 'self' argument.
5838 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5840 (record_btrace_xfer_partial, record_btrace_store_registers)
5841 (record_btrace_prepare_to_store, record_btrace_resume)
5842 (record_btrace_wait, record_btrace_decr_pc_after_break)
5843 (record_btrace_find_new_threads, record_btrace_thread_alive):
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target.h (struct target_ops) <to_delete_record>: Add argument.
5849 * target.c (target_delete_record): Add argument.
5850 * record-full.c (record_full_delete): Add 'self' argument.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * target.h (struct target_ops) <to_save_record>: Add argument.
5855 * target.c (target_save_record): Add argument.
5856 * record-full.c (record_full_save): Add 'self' argument.
5857 (record_full_save): Add 'self' argument.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target.h (struct target_ops) <to_info_record>: Add argument.
5862 * target.c (target_info_record): Add argument.
5863 * record.c (info_record_command): Add argument.
5864 * record-full.c (record_full_info): Add 'self' argument.
5865 * record-btrace.c (record_btrace_info): Add 'self' argument.
5867 2014-02-19 Tom Tromey <tromey@redhat.com>
5869 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5870 * target.c (target_stop_recording): Add argument.
5871 * record.c (record_stop): Add argument.
5872 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5878 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5879 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5881 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5882 (_initialize_amd64_linux_nat): Use it.
5883 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5884 (_initialize_i386_linux_nat): Use it.
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5889 * target.c (target_teardown_btrace): Add argument.
5890 * remote.c (remote_teardown_btrace): Add 'self' argument.
5891 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5893 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5899 * target.c (target_disable_btrace): Add argument.
5900 * remote.c (remote_disable_btrace): Add 'self' argument.
5901 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5903 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5909 * target.c (target_enable_btrace): Add argument.
5910 * remote.c (remote_enable_btrace): Add 'self' argument.
5911 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5913 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5919 (target_can_use_agent): Add argument.
5920 * target.c (update_current_target): Update.
5921 * remote.c (remote_can_use_agent): Add 'self' argument.
5922 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target.h (struct target_ops) <to_use_agent>: Add argument.
5927 (target_use_agent): Add argument.
5928 * target.c (update_current_target): Update.
5929 * remote.c (remote_use_agent): Add 'self' argument.
5930 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5935 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5936 (target_traceframe_info): Add argument.
5937 * target.c (update_current_target): Update.
5938 * remote.c (remote_traceframe_info): Add 'self' argument.
5939 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target.h (target_static_tracepoint_markers_by_strid): Add
5945 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5947 * target.c (update_current_target): Update.
5948 * remote.c (struct target_ops)
5949 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5950 * linux-nat.c (struct target_ops)
5951 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5953 2014-02-19 Tom Tromey <tromey@redhat.com>
5955 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5957 (target_static_tracepoint_marker_at): Add argument.
5958 * target.c (update_current_target): Update.
5959 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5965 (target_set_permissions): Add argument.
5966 * target.c (update_current_target): Update.
5967 * remote.c (remote_set_permissions): Add 'self' argument.
5968 (remote_start_remote): Update.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5973 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5974 (target_get_tib_address): Add argument.
5975 * target.c (update_current_target): Update.
5976 * remote.c (remote_get_tib_address): Add 'self' argument.
5978 2014-02-19 Tom Tromey <tromey@redhat.com>
5980 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5981 (target_set_trace_notes): Add argument.
5982 * target.c (update_current_target): Update.
5983 * remote.c (remote_set_trace_notes): Add 'self' argument.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5989 (target_set_trace_buffer_size): Add argument.
5990 * target.c (update_current_target): Update.
5991 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5997 (target_set_circular_trace_buffer): Add argument.
5998 * target.c (update_current_target): Update.
5999 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6004 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6006 (target_set_disconnected_tracing): Add argument.
6007 * target.c (update_current_target): Update.
6008 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target.h (struct target_ops)
6013 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6014 (target_get_min_fast_tracepoint_insn_len): Add argument.
6015 * target.c (update_current_target): Update.
6016 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6023 (target_get_raw_trace_data): Add argument.
6024 * target.c (update_current_target): Update.
6025 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6031 (target_upload_trace_state_variables): Add argument.
6032 * target.c (update_current_target): Update.
6033 * remote.c (remote_upload_trace_state_variables): Add 'self'
6035 (remote_start_remote): Update.
6037 2014-02-19 Tom Tromey <tromey@redhat.com>
6039 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6041 (target_upload_tracepoints): Add argument.
6042 * target.c (update_current_target): Update.
6043 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6044 (remote_start_remote): Update.
6046 2014-02-19 Tom Tromey <tromey@redhat.com>
6048 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6049 (target_save_trace_data): Add argument.
6050 * target.c (update_current_target): Update.
6051 * remote.c (remote_save_trace_data): Add 'self' argument.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6057 * target.h (struct target_ops)
6058 <to_get_trace_state_variable_value>: Add argument.
6059 (target_get_trace_state_variable_value): Add argument.
6060 * target.c (update_current_target): Update.
6061 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6063 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6068 * target.h (struct target_ops) <to_trace_find>: Add argument.
6069 (target_trace_find): Add argument.
6070 * target.c (update_current_target): Update.
6071 * remote.c (remote_trace_find): Add 'self' argument.
6072 * ctf.c (ctf_trace_find): Add 'self' argument.
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6077 (target_trace_stop): Add argument.
6078 * target.c (update_current_target): Update.
6079 * remote.c (remote_trace_stop): Add 'self' argument.
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6084 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6086 (target_get_tracepoint_status): Add argument.
6087 * target.c (update_current_target): Update.
6088 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6093 * target.h (struct target_ops) <to_get_trace_status>: Add
6095 (target_get_trace_status): Add argument.
6096 * target.c (update_current_target): Update.
6097 * remote.c (remote_get_trace_status): Add 'self' argument.
6098 (remote_start_remote, remote_can_download_tracepoint): Update.
6099 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_trace_start>: Add argument.
6104 (target_trace_start): Add argument.
6105 * target.c (update_current_target): Update.
6106 * remote.c (remote_trace_start): Add 'self' argument.
6108 2014-02-19 Tom Tromey <tromey@redhat.com>
6110 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6112 (target_trace_set_readonly_regions): Add argument.
6113 * target.c (update_current_target): Update.
6114 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6121 (target_disable_tracepoint): Add argument.
6122 * target.c (update_current_target): Update.
6123 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6125 2014-02-19 Tom Tromey <tromey@redhat.com>
6127 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6129 (target_enable_tracepoint): Add argument.
6130 * target.c (update_current_target): Update.
6131 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6133 2014-02-19 Tom Tromey <tromey@redhat.com>
6135 * target.h (struct target_ops) <to_download_trace_state_variable>:
6137 (target_download_trace_state_variable): Add argument.
6138 * target.c (update_current_target): Update.
6139 * remote.c (remote_download_trace_state_variable): Add 'self'
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6144 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6146 (target_can_download_tracepoint): Add argument.
6147 * target.c (update_current_target): Update.
6148 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_download_tracepoint>: Add
6154 (target_download_tracepoint): Add argument.
6155 * target.c (update_current_target): Update.
6156 * remote.c (remote_download_tracepoint): Add 'self' argument.
6158 2014-02-19 Tom Tromey <tromey@redhat.com>
6160 * target.h (struct target_ops) <to_trace_init>: Add argument.
6161 (target_trace_init): Add argument.
6162 * target.c (update_current_target): Update.
6163 * remote.c (remote_trace_init): Add 'self' argument.
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6168 * target.c (target_fileio_readlink): Add argument.
6169 * remote.c (remote_hostio_readlink): Add 'self' argument.
6170 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6175 * target.c (target_fileio_unlink): Add argument.
6176 * remote.c (remote_hostio_unlink): Add 'self' argument.
6177 (remote_file_delete): Update.
6178 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6183 * target.c (target_fileio_close): Add argument.
6184 * remote.c (remote_hostio_close): Add 'self' argument.
6185 (remote_hostio_close_cleanup): Update.
6186 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6188 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6193 * target.c (target_fileio_pread): Add argument.
6194 * remote.c (remote_hostio_pread): Add 'self' argument.
6195 (remote_bfd_iovec_pread, remote_file_get): Update.
6196 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6201 * target.c (target_fileio_pwrite): Add argument.
6202 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6203 (remote_file_put): Update.
6204 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6206 2014-02-19 Tom Tromey <tromey@redhat.com>
6208 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6209 * target.c (target_fileio_open): Add argument.
6210 * remote.c (remote_hostio_open): Add 'self' argument.
6211 (remote_bfd_iovec_open): Add 'self' argument.
6212 (remote_file_put): Add 'self' argument.
6213 (remote_file_get): Add 'self' argument.
6214 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6218 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6220 (target_can_run_breakpoint_commands): Add argument.
6221 * target.c (update_current_target): Update.
6222 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6224 (remote_insert_breakpoint): Add 'self' argument.
6225 (remote_insert_hw_breakpoint): Add 'self' argument.
6226 (remote_can_run_breakpoint_commands): Add 'self' argument.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops)
6231 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6232 (target_supports_evaluation_of_breakpoint_conditions): Add
6234 * target.c (update_current_target): Update.
6235 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6237 (remote_insert_breakpoint): Add 'self' argument.
6238 (remote_insert_hw_breakpoint): Add 'self' argument.
6239 (remote_supports_cond_breakpoints): Add 'self' argument.
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6243 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6245 (target_supports_string_tracing): Add argument.
6246 * target.c (update_current_target): Update.
6247 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target.h (struct target_ops)
6252 <to_supports_disable_randomization>: Add argument.
6253 * target.c (find_default_supports_disable_randomization): Add
6255 (target_supports_disable_randomization): Add argument.
6256 (find_default_supports_disable_randomization): Add 'self'
6258 * remote.c (extended_remote_supports_disable_randomization): Add
6260 (remote_supports_disable_randomization): Add 'self' argument.
6261 (extended_remote_create_inferior): Update.
6262 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6265 2014-02-19 Tom Tromey <tromey@redhat.com>
6267 * target.h (struct target_ops)
6268 <to_supports_enable_disable_tracepoint>: Add argument.
6269 (target_supports_enable_disable_tracepoint): Add argument.
6270 * target.c (update_current_target): Update.
6271 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target.h (struct target_ops) <to_supports_multi_process>: Add
6278 (target_supports_multi_process): Add argument.
6279 * target.c (update_current_target): Update.
6280 * remote.c (remote_supports_multi_process): Add 'self' argument.
6281 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6283 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target.h (struct target_ops) <to_execution_direction>: Add
6290 (target_execution_direction): Add argument.
6291 * target.c (default_execution_direction): Add 'self' argument.
6292 * record-full.c (record_full_execution_direction): Add 'self'
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6299 (target_can_execute_reverse): Add argument.
6300 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6301 * record-full.c (record_full_can_execute_reverse): Add 'self'
6303 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6309 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6311 (target_get_ada_task_ptid): Add argument.
6312 * target.c (update_current_target): Update.
6313 (default_get_ada_task_ptid): Add 'self' argument.
6314 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6315 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6316 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6318 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6320 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6322 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6324 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6325 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6331 (target_goto_bookmark): Add argument.
6332 * target.c (dummy_goto_bookmark): Add 'self' argument.
6333 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6338 (target_get_bookmark): Add argument.
6339 * target.c (dummy_get_bookmark): Add 'self' argument.
6340 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6342 2014-02-19 Tom Tromey <tromey@redhat.com>
6344 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6346 (target_make_corefile_notes): Add argument.
6347 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6348 * procfs.c (procfs_make_note_section): Add 'self' argument.
6349 (procfs_make_note_section): Add 'self' argument.
6350 (procfs_make_note_section): Add 'self' argument.
6351 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6353 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6354 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6355 * exec.c (exec_make_note_section): Add 'self' argument.
6356 (exec_make_note_section): Add 'self' argument.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * target.h (struct target_ops) <to_find_memory_regions>: Add
6362 (target_find_memory_regions): Add argument.
6363 * target.c (dummy_find_memory_regions): Add 'self' argument.
6364 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6365 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6366 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6367 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6368 * exec. (exec_do_find_memory_regions): New global.
6369 (exec_set_find_memory_regions): Rewrite.
6370 (exec_find_memory_regions): New function.
6371 (init_exec_ops): Use exec_find_memory_regions.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * target.h (struct target_ops) <to_supports_non_stop>: Add
6377 * target.c (find_default_supports_non_stop): Add argument.
6378 (target_supports_non_stop): Add argument.
6379 (find_default_supports_non_stop): Add 'self' argument.
6380 * remote.c (remote_supports_non_stop): Add 'self' argument.
6381 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6383 2014-02-19 Tom Tromey <tromey@redhat.com>
6385 * target.h (struct target_ops) <to_log_command>: Add argument.
6386 (target_log_command): Add argument.
6387 * serial.h (serial_log_command): Add 'self' argument.
6388 * serial.c (serial_log_command): Add 'self' argument.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6393 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6395 (target_pid_to_exec_file): Add argument.
6396 * target.c (debug_to_pid_to_exec_file): Add argument.
6397 (update_current_target): Update.
6398 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6399 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6400 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6401 (linux_handle_extended_wait): Update.
6402 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6403 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6404 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6405 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6407 2014-02-19 Tom Tromey <tromey@redhat.com>
6409 * target.h (struct target_ops) <to_rcmd>: Add argument.
6410 (target_rcmd): Add argument.
6411 * target.c (debug_to_rcmd): Add argument.
6412 (update_current_target, do_monitor_command): Update.
6413 * remote.c (remote_rcmd): Add 'self' argument.
6414 * monitor.c (monitor_rcmd): Add 'self' argument.
6416 2014-02-19 Tom Tromey <tromey@redhat.com>
6418 * windows-nat.c (windows_stop): Add 'self' argument.
6419 * target.h (struct target_ops) <to_stop>: Add argument.
6420 * target.c (target_stop): Add argument.
6421 (debug_to_stop): Add argument.
6422 (update_current_target): Update.
6423 * remote.c (remote_stop): Add 'self' argument.
6424 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6425 (gdbsim_cntrl_c): Update.
6426 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6427 * procfs.c (procfs_stop): Add 'self' argument.
6428 * nto-procfs.c (procfs_stop): Add 'self' argument.
6429 * monitor.c (monitor_stop): Add 'self' argument.
6430 (monitor_open): Update.
6431 * linux-nat.c (linux_nat_stop): Add argument.
6432 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6433 * gnu-nat.c (gnu_stop): Add 'self' argument.
6434 * darwin-nat.c (darwin_stop): Add 'self' argument.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target.h (struct target_ops) <to_thread_name>: Add argument.
6439 * target.c (target_thread_name): Add argument.
6440 (update_current_target): Update.
6441 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6443 2014-02-19 Tom Tromey <tromey@redhat.com>
6445 * target.h (struct target_ops) <to_extra_thread_info>: Add
6447 (target_extra_thread_info): Add argument.
6448 * target.c (update_current_target): Update.
6449 * remote.c (remote_threads_extra_info): Add 'self' argument.
6450 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6452 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6453 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6454 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6456 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6458 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6460 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target.h (struct target_ops) <to_program_signals>: Add argument.
6466 * target.c (target_program_signals): Add argument.
6467 * remote.c (remote_program_signals): Add 'self' argument.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6472 * target.c (target_pass_signals): Add argument.
6473 * remote.c (remote_pass_signals): Add 'self' argument.
6474 (remote_start_remote): Update.
6475 * procfs.c (procfs_pass_signals): Add 'self' argument.
6476 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6477 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6478 (linux_nat_create_inferior, linux_nat_attach): Update.
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * windows-nat.c (windows_can_run): Add 'self' argument.
6483 * target.h (struct target_ops) <to_can_run>: Add argument.
6484 (target_can_run): Add argument.
6485 * target.c (debug_to_can_run): Add argument.
6486 (update_current_target): Update.
6487 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6488 * inf-child.c (inf_child_can_run): Add 'self' argument.
6489 * go32-nat.c (go32_can_run): Add 'self' argument.
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6493 * target.h (struct target_ops) <to_has_exited>: Add argument.
6494 (target_has_exited): Add argument.
6495 * target.c (debug_to_has_exited): Add argument.
6496 (update_current_target): Update.
6498 2014-02-19 Tom Tromey <tromey@redhat.com>
6500 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6502 (target_set_syscall_catchpoint): Add argument.
6503 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6505 * target.c (update_current_target): Update.
6507 2014-02-19 Tom Tromey <tromey@redhat.com>
6509 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6511 (target_remove_exec_catchpoint): Add argument.
6512 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6513 (update_current_target): Update.
6514 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6519 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6521 (target_insert_exec_catchpoint): Add argument.
6522 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6523 (update_current_target): Update.
6524 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6531 (target_remove_vfork_catchpoint): Add argument.
6532 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6533 (update_current_target): Update.
6534 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6539 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6541 (target_insert_vfork_catchpoint): Add argument.
6542 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6543 (update_current_target): Update.
6544 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6547 2014-02-19 Tom Tromey <tromey@redhat.com>
6549 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6551 (target_remove_fork_catchpoint): Add argument.
6552 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6553 (update_current_target): Update.
6554 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6561 (target_insert_fork_catchpoint): Add argument.
6562 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6563 (update_current_target): Update.
6564 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6571 (target_post_startup_inferior): Add argument.
6572 * target.c (debug_to_post_startup_inferior): Add argument.
6573 (update_current_target): Update.
6574 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6576 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6578 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6580 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6582 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6584 (super_post_startup_inferior): Likewise.
6585 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6587 (super_post_startup_inferior): Likewise.
6588 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6589 Add 'self' argument.
6590 (super_post_startup_inferior): Likewise.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target.h (struct target_ops) <to_load>: Add argument.
6595 * target.c (target_load): Add argument.
6596 (debug_to_load): Add argument.
6597 (update_current_target): Update.
6598 * remote.c (remote_load): Add 'self' argument.
6599 * remote-sim.c (gdbsim_load): Add 'self' argument.
6600 * remote-mips.c (mips_load): Add 'self' argument.
6601 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6602 * monitor.c (monitor_load): Add 'self' argument.
6603 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6605 2014-02-19 Tom Tromey <tromey@redhat.com>
6607 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6608 (target_terminal_info): Add argument.
6609 * target.c (debug_to_terminal_info): Add argument.
6610 (default_terminal_info): Likewise.
6611 * inflow.c (child_terminal_info): Add 'self' argument.
6612 * inferior.h (child_terminal_info): Add 'self' argument.
6613 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6619 (target_terminal_save_ours): Add argument.
6620 * target.c (debug_to_terminal_save_ours): Add argument.
6621 (update_current_target): Update.
6622 * inflow.c (terminal_save_ours): Add 'self' argument.
6623 * inferior.h (terminal_save_ours): Add 'self' argument.
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6627 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6628 (target_terminal_ours): Add argument.
6629 * target.c (debug_to_terminal_ours): Add argument.
6630 (update_current_target): Update.
6631 * remote.c (remote_terminal_ours): Add 'self' argument.
6632 (remote_close): Update.
6633 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6634 * inflow.c (terminal_ours): Add 'self' argument.
6635 * inferior.h (terminal_ours): Add 'self' argument.
6636 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6638 2014-02-19 Pedro Alves <palves@redhat.com>
6639 Tom Tromey <tromey@redhat.com>
6641 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6643 (target_terminal_ours_for_output): Add argument.
6644 * target.c (debug_to_terminal_ours_for_output): Add argument.
6645 (update_current_target): Update.
6646 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6647 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6648 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6650 2014-02-19 Tom Tromey <tromey@redhat.com>
6652 * target.h (struct target_ops) <to_terminal_inferior>: Add
6654 * target.c (target_terminal_inferior): Add argument.
6655 (update_current_target): Update.
6656 * remote.c (remote_terminal_inferior): Add 'self' argument.
6657 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6658 * inflow.c (terminal_inferior): Add 'self' argument.
6659 * inferior.h (terminal_inferior): Add 'self' argument.
6660 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6661 (go32_terminal_inferior): Add 'self' argument.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6666 (target_terminal_init): Add argument.
6667 * target.c (debug_to_terminal_init): Add argument.
6668 (update_current_target): Update.
6669 * inflow.c (terminal_init_inferior): Add 'self' argument.
6670 * inferior.h (terminal_init_inferior): Add 'self' argument.
6671 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6672 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target.h (struct target_ops)
6677 <to_can_accel_watchpoint_condition>: Add argument.
6678 (target_can_accel_watchpoint_condition): Add argument.
6679 * target.c (debug_to_can_accel_watchpoint_condition): Add
6681 (update_current_target): Update.
6682 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6689 (target_region_ok_for_hw_watchpoint): Add argument.
6690 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6691 (default_region_ok_for_hw_watchpoint): Add argument.
6692 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6693 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6695 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6697 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6699 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6701 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6703 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6705 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6706 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6708 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6709 Add 'self' argument.
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6715 (target_insert_watchpoint): Add argument.
6716 * target.c (debug_to_insert_watchpoint): Add argument.
6717 (update_current_target): Update.
6718 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6719 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6720 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6721 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6722 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6723 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6725 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6726 (procfs_insert_hw_watchpoint): Add 'self' argument.
6727 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6729 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6731 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6733 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6734 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6736 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6739 2014-02-19 Tom Tromey <tromey@redhat.com>
6741 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6743 (target_remove_watchpoint): Add argument.
6744 * target.c (debug_to_remove_watchpoint): Add argument.
6745 (update_current_target): Update.
6746 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6747 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6748 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6749 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6750 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6751 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6753 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6754 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6756 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6758 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6760 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6761 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6763 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6770 (target_remove_hw_breakpoint): Add argument.
6771 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6772 (update_current_target): Update.
6773 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6774 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6776 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6777 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6779 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6786 (target_insert_hw_breakpoint): Add argument.
6787 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6788 (update_current_target): Update.
6789 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6790 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6792 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6793 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6794 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6796 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6799 2014-02-19 Tom Tromey <tromey@redhat.com>
6801 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6803 (target_can_use_hardware_watchpoint): Add argument.
6804 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6805 (update_current_target): Update.
6806 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6808 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6810 * remote.c (remote_check_watch_resources): Add 'self' argument.
6811 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6812 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6814 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6815 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6817 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6819 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6821 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6823 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6825 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6827 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6828 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6830 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target.h (struct target_ops) <to_post_attach>: Add argument.
6836 (target_post_attach): Add argument.
6837 * target.c (debug_to_post_attach): Add argument.
6838 (update_current_target): Update.
6839 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6840 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6841 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6842 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6843 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6845 2014-02-19 Tom Tromey <tromey@redhat.com>
6847 * windows-nat.c (windows_close): Add 'self' argument.
6848 * tracepoint.c (tfile_close): Add 'self' argument.
6849 * target.h (struct target_ops) <to_close>: Add argument.
6850 * target.c (target_close): Add argument.
6851 (update_current_target): Update.
6852 * remote.c (remote_close): Add 'self' argument.
6853 * remote-sim.c (gdbsim_close): Add 'self' argument.
6854 * remote-mips.c (mips_close): Add 'self' argument.
6855 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6856 * record-full.c (record_full_close): Add 'self' argument.
6857 * record-btrace.c (record_btrace_close): Add 'self' argument.
6858 * monitor.h (monitor_close): Add 'self' argument.
6859 * monitor.c (monitor_close): Add 'self' argument.
6860 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6861 * linux-nat.c (linux_nat_close): Add argument.
6862 * go32-nat.c (go32_close): Add 'self' argument.
6863 * exec.c (exec_close_1): Add 'self' argument.
6864 * ctf.c (ctf_close): Add 'self' argument.
6865 * corelow.c (core_close): Add 'self' argument.
6866 (core_close_cleanup): Update.
6867 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6868 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * remote.c (remote_load): New function.
6873 (init_remote_ops): Use it.
6875 2014-02-19 Tom Tromey <tromey@redhat.com>
6877 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6879 * common/linux-btrace.h (linux_supports_btrace): Update.
6880 * remote.c (remote_supports_btrace): Add "self" argument.
6881 * target-delegates.c: Rebuild.
6882 * target.c (target_supports_btrace): Remove.
6883 * target.h (struct target_ops) <to_supports_btrace>: Add
6884 target_ops argument.
6885 (target_supports_btrace): New define.
6887 2014-02-19 Tom Tromey <tromey@redhat.com>
6889 * record-full.c (record_full_beneath_to_resume_ops)
6890 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6891 (record_full_beneath_to_wait)
6892 (record_full_beneath_to_store_registers_ops)
6893 (record_full_beneath_to_store_registers)
6894 (record_full_beneath_to_xfer_partial_ops)
6895 (record_full_beneath_to_xfer_partial)
6896 (record_full_beneath_to_insert_breakpoint_ops)
6897 (record_full_beneath_to_insert_breakpoint)
6898 (record_full_beneath_to_remove_breakpoint_ops)
6899 (record_full_beneath_to_remove_breakpoint)
6900 (record_full_beneath_to_stopped_by_watchpoint)
6901 (record_full_beneath_to_stopped_data_address)
6902 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6903 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6904 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6905 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6906 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6907 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6908 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6909 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6910 (record_full_resume, record_full_wait_1)
6911 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6912 (record_full_store_registers, record_full_xfer_partial)
6913 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6914 (record_full_async, record_full_core_xfer_partial): Use target
6916 * target-delegates.c: Rebuild.
6917 * target.c (current_xfer_partial): Remove.
6918 (update_current_target): Do not INHERIT or de_fault
6919 to_insert_breakpoint, to_remove_breakpoint,
6920 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6921 to_is_async_p, to_async. Do not set to_xfer_partial field.
6922 (default_xfer_partial): Simplify.
6923 (current_xfer_partial): Remove.
6924 (target_wait, target_resume): Simplify.
6925 (find_default_can_async_p, find_default_is_async_p): Update.
6926 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6927 to_xfer_partial, to_stopped_by_watchpoint,
6928 to_stopped_data_address.
6929 (target_store_registers): Simplify.
6930 (forward_target_remove_breakpoint)
6931 (forward_target_insert_breakpoint): Remove.
6932 (target_remove_breakpoint, target_insert_breakpoint)
6933 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6934 * target.h (struct target_ops) <to_resume, to_wait,
6935 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6936 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6937 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6939 (forward_target_remove_breakpoint)
6940 (forward_target_insert_breakpoint): Remove.
6941 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6943 (record_btrace_insert_breakpoint): Delegate directly.
6945 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target-delegates.c: New file.
6949 * target.c: Include target-delegates.c.
6950 (init_dummy_target): Call install_dummy_methods.
6951 (complete_target_initialization): Call install_delegators.
6952 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6953 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6954 * make-target-delegates: New file.
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * record.c (find_record_target): Use find_target_at.
6959 * target.c (find_target_at): New function.
6960 * target.h (find_target_at): Declare.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6966 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6968 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6969 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6971 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6973 * linux-nat.c (save_sigtrap): Update.
6974 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6975 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6976 (linux_nat_close): Update.
6977 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6979 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6981 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6982 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6983 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6984 (tmp_to_async): Add 'ops' argument.
6985 (record_full_stopped_by_watchpoint, record_full_async)
6986 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6988 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6989 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6990 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6991 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6992 (remote_is_async_p, remote_async): Add 'ops' argument.
6993 (remote_stopped_data_address): Update.
6994 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6995 * target.c (update_current_target)
6996 (find_default_can_async_p, find_default_is_async_p): Update.
6997 (init_dummy_target): Update.
6998 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6999 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7000 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7001 (target_can_async_p, target_is_async_p, target_async)
7002 (target_stopped_by_watchpoint): Update.
7004 2014-02-19 Yao Qi <yao@codesourcery.com>
7007 * gdbarch.sh: Remove startup_gdbarch.
7008 * gdbarch.c: Regenerated.
7009 * gdbarch.h: Likewise.
7011 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7013 * rl78-tdep.c (rl78_g10_register_name): New function.
7014 (rl78_return_value): Add g10 support.
7015 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7018 2014-02-17 Doug Evans <xdje42@gmail.com>
7020 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7021 (SUBDIR_GUILE_SRCS): Ditto.
7022 (scm-gsmob.o): Ditto.
7024 2014-02-17 Yao Qi <yao@codesourcery.com>
7026 * gnu-nat.c (ILL_RPC): Declare defined function.
7028 2014-02-17 Yao Qi <yao@codesourcery.com>
7030 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7031 mach_msg_type_number_t.
7032 (gnu_write_inferior): Likewise.
7034 2014-02-17 Yao Qi <yao@codesourcery.com>
7036 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7038 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7039 (inf_validate_procs, inf_signal): Likewise.
7040 (S_exception_raise_request): Likewise.
7041 (do_mach_notify_dead_name): Likewise.
7042 (steal_exc_port): Likewise.
7043 (gnu_read_inferior): Change 'copy_count''s type to
7044 mach_msg_type_number_t.
7045 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7048 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7050 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7051 flag. Adjust all users; in particular...
7052 (gnu_wait): ..., don't decrement its value in here...
7053 (gnu_create_inferior): ..., and instead set the flag in here,
7054 around the startup_inferior call, and call that one with
7055 START_INFERIOR_TRAPS_EXPECTED.
7057 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7058 (ILL_RPC): ... new macro.
7059 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7060 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7061 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7062 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7063 functions with ILL_RPC macro.
7064 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7065 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7066 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7067 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7068 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7069 (S_proc_getlogin_reply, S_proc_getsid_reply)
7070 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7071 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7072 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7073 (S_proc_getnports_reply, S_proc_is_important_reply)
7074 (S_proc_get_code_reply): New stub functions, generated with
7077 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7078 collected the type check structures.
7080 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7082 2014-02-14 Doug Evans <dje@google.com>
7084 * target.c (target_write_partial): Fix result type.
7086 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7088 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7089 the proper offsets to access fpregset_t.
7091 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7093 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7094 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7095 * h8300-tdep.c (setmachinelist): Remove global.
7096 * hppa-tdep.c (hppa_sigtramp): Remove global.
7097 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7098 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7099 * ravenscar-thread.c (update_target_observer): Remove global.
7100 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7102 2014-02-12 Tom Tromey <tromey@redhat.com>
7104 * common/rsp-low.c: Update comments.
7105 * common/rsp-low.h: Update comments.
7107 2014-02-12 Tom Tromey <tromey@redhat.com>
7109 * common/rsp-low.c (convert_ascii_to_int): Remove.
7110 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7112 2014-02-12 Tom Tromey <tromey@redhat.com>
7114 * common/rsp-low.h (unhexify): Don't declare.
7115 * common/rsp-low.c (unhexify): Remove.
7117 2014-02-12 Tom Tromey <tromey@redhat.com>
7119 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7120 * common/rsp-low.c (convert_int_to_ascii): Remove.
7122 2014-02-12 Tom Tromey <tromey@redhat.com>
7124 * common/rsp-low.h (hexify): Don't declare.
7125 * common/rsp-low.c (hexify): Remove.
7127 2014-02-12 Tom Tromey <tromey@redhat.com>
7129 * common/rsp-low.c (hexify): Never take strlen of argument.
7131 2014-02-12 Tom Tromey <tromey@redhat.com>
7133 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7134 * remote.c (extended_remote_run, remote_rcmd)
7135 (remote_download_trace_state_variable, remote_save_trace_data)
7136 (remote_set_trace_notes): Update.
7137 * tracepoint.c (encode_source_string, tfile_write_status)
7138 (tfile_write_uploaded_tsv): Update.
7140 2014-02-12 Tom Tromey <tromey@redhat.com>
7142 * tracepoint.c: Include rsp-low.h.
7143 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7144 * remote.c: Include rsp-low.h.
7145 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7146 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7147 (remote_unescape_input): Move to common/rsp-low.c.
7148 * common/rsp-low.h: New file.
7149 * common/rsp-low.c: New file.
7150 * Makefile.in (SFILES): Add common/rsp-low.c.
7151 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7152 (COMMON_OBS): Add rsp-low.o.
7153 (rsp-low.o): New target.
7155 2014-02-12 Tom Tromey <tromey@redhat.com>
7157 * utils.h: Include print-utils.h.
7158 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7159 (int_string, core_addr_to_string, core_addr_to_string_nz)
7160 (hex_string, hex_string_custom): Don't declare.
7161 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7162 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7163 (hex_string_custom, int_string, core_addr_to_string)
7164 (core_addr_to_string_nz, host_address_to_string): Move to
7165 common/print-utils.c.
7166 * common/print-utils.h: New file.
7167 * common/print-utils.c: New file
7168 * Makefile.in (SFILES): Add common/print-utils.c.
7169 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7170 (COMMON_OBS): Add print-utils.o.
7171 (print-utils.o): New target.
7173 2014-02-12 Tom Tromey <tromey@redhat.com>
7175 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7177 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7179 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7181 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7183 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7184 if a PT_IO ptrace request returns sucessfully but indicates that 0
7185 bytes were transferred.
7187 2014-02-12 Pedro Alves <palves@redhat.com>
7188 Kevin Buettner <kevinb@redhat.com>
7190 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7191 TYPE_INSTANCE_FLAG_CODE_SPACE.
7193 2014-02-12 Pedro Alves <palves@redhat.com>
7195 * h8300-tdep.c (pseudo_from_raw_register)
7196 (raw_from_pseudo_register): New functions.
7197 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7200 2014-02-12 Pedro Alves <palves@redhat.com>
7202 * h8300-tdep.c (h8300_register_sim_regno): New function.
7203 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7204 gdbarch_register_sim_regno hook.
7206 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7208 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7210 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7212 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7214 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7216 * obsd-tdep.h (obsd_init_abi): New prototype.
7217 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7218 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7219 (obsd_init_abi): New functions.
7220 * i386obsd-tdep.c: Include "obsd-tdep.h".
7221 (i386obsd_init_abi): Call obsd_init_abi.
7222 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7223 (amd64obsd_init_abi): Call obsd_init_abi.
7224 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7225 obsd-tdep.c to gdb_target_obs.
7227 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7229 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7230 double float arguments to 16-byte in the argument slots.
7232 2014-02-11 Doug Evans <xdje42@gmail.com>
7234 * configure.ac: Don't crash if pkg-config is not found and guile
7235 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7237 * configure: Regenerate.
7239 2014-02-11 Yao Qi <yao@codesourcery.com>
7241 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7242 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7243 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7244 * gnu-nat.c (gnu_xfer_memory): Likewise.
7245 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7246 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7247 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7248 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7250 2014-02-11 Yao Qi <yao@codesourcery.com>
7252 * target.h (enum target_xfer_error): Rename to ...
7253 (enum target_xfer_status): ... it. New. All users updated.
7254 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7256 (TARGET_XFER_STATUS_ERROR_P): New macro.
7257 (target_xfer_error_to_string): Remove declaration.
7258 (target_xfer_status_to_string): Declare.
7259 (target_xfer_partial_ftype): Adjust it.
7260 (struct target_ops) <to_xfer_partial>: Return
7261 target_xfer_status. Add argument xfered_len. Update
7263 * target.c (target_xfer_error_to_string): Rename to ...
7264 (target_xfer_status_to_string): ... it. New. All callers
7266 (target_read_live_memory): Likewise. Call target_xfer_partial
7267 instead of target_read.
7268 (memory_xfer_live_readonly_partial): Return
7269 target_xfer_status. Add argument xfered_len.
7270 (raw_memory_xfer_partial): Likewise.
7271 (memory_xfer_partial_1): Likewise.
7272 (memory_xfer_partial): Likewise.
7273 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7274 properly. Update debug message.
7275 (default_xfer_partial, current_xfer_partial): Likewise.
7276 (target_write_partial): Likewise.
7277 (target_read_partial): Likewise. All callers updated.
7278 (read_whatever_is_readable): Likewise.
7279 (target_write_with_progress): Likewise.
7280 (target_read_alloc_1): Likewise.
7282 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7283 * auxv.c (procfs_xfer_auxv): Likewise.
7284 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7285 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7286 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7287 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7288 * corefile.c (read_memory): Adjust.
7289 * corelow.c (core_xfer_partial): Likewise.
7290 * ctf.c (ctf_xfer_partial): Likewise.
7291 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7293 (darwin_xfer_partial): Likewise.
7294 * exec.c (section_table_xfer_memory_partial): Likewise. All
7296 (exec_xfer_partial): Likewise.
7297 * exec.h (section_table_xfer_memory_partial): Update
7299 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7301 (gnu_xfer_partial): Likewise.
7302 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7303 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7304 (ia64_hpux_xfer_solib_got): Likewise.
7305 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7306 type of 'partial_len' to ULONGEST.
7307 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7308 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7309 (linux_nat_xfer_partial): Likewise.
7310 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7311 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7312 * monitor.c (monitor_xfer_memory): Likewise.
7313 (monitor_xfer_partial): Likewise.
7314 * procfs.c (procfs_xfer_partial): Likewise.
7315 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7316 * record-full.c (record_full_xfer_partial): Likewise.
7317 (record_full_core_xfer_partial): Likewise.
7318 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7319 (gdbsim_xfer_partial): Likewise.
7320 * remote.c (remote_write_bytes_aux): Likewise. All callers
7322 (remote_write_bytes, remote_read_bytes): Likewise. All
7324 (remote_flash_erase): Likewise. All callers updated.
7325 (remote_write_qxfer): Likewise. All callers updated.
7326 (remote_read_qxfer): Likewise. All callers updated.
7327 (remote_xfer_partial): Likewise.
7328 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7329 (rs6000_xfer_shared_libraries): Likewise.
7330 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7331 (sol_thread_xfer_partial): Likewise.
7332 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7333 (sparc_xfer_partial): Likewise.
7334 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7336 (spu_xfer_partial): Likewise.
7337 * spu-multiarch.c (spu_xfer_partial): Likewise.
7338 * tracepoint.c (tfile_xfer_partial): Likewise.
7339 * windows-nat.c (windows_xfer_memory): Likewise.
7340 (windows_xfer_shared_libraries): Likewise.
7341 (windows_xfer_partial): Likewise.
7342 * valprint.c: Replace 'target_xfer_error' with
7343 'target_xfer_status' in comments.
7345 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7347 Checked in by Joel Brobecker <brobecker@adacore.com>.
7348 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7350 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7352 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7353 function parameters.
7355 2014-02-10 Will Newton <will.newton@linaro.org>
7357 * elfread.c (elf_rel_plt_read): Look for a .got section if
7358 looking up .got.plt fails.
7359 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7360 on address passed to elf_gnu_ifunc_record_cache.
7361 (elf_gnu_ifunc_resolve_addr): Likewise.
7362 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7364 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7366 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7367 (X_RETTURN): New macro.
7368 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7370 * sparc64-tdep.c (sparc64_init_abi): Hook
7371 sparc_in_function_epilogue_p.
7373 2014-02-10 Gary Benson <gbenson@redhat.com>
7375 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7376 Rename name_matcher to symbol_matcher.
7378 2014-02-10 Gary Benson <gbenson@redhat.com>
7380 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7381 Use expand_symtabs_file_matcher_ftype and
7382 expand_symtabs_symbol_matcher_ftype.
7384 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7386 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7387 (struct ada_symbol_cache): New.
7388 (ada_free_symbol_cache): Forward declare.
7389 (struct ada_pspace_data): New.
7390 (ada_pspace_data_handle): New static global.
7391 (get_ada_pspace_data, ada_pspace_data_cleanup)
7392 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7393 (cache_space, cache): Delete, now folded inside struct
7395 (ada_get_symbol_cache): New function.
7396 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7398 (_initialize_ada_language): Remove initialization of cache_space.
7399 Move call to observer_attach_inferior_exit up, grouping it
7400 with the other observer registrations inside this function.
7401 Rename command to be more general. Add call to
7402 register_program_space_data_with_cleanup.
7404 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7406 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7407 ada_new_objfile_observer.
7408 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7409 (_initialize_tasks): Update uses of ada_new_objfile_observer
7410 and ada_tasks_normal_stop_observer.
7412 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7414 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7415 returned by the 'Length attribute to integer.
7417 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7419 * ada-lang.c (_initialize_ada_language): Initialize
7420 cache_space obstack.
7422 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7424 * ada-lang.c (HASH_SIZE): New macro.
7425 (struct cache_entry): New type.
7426 (cache_space, cache): New static globals.
7427 (ada_clear_symbol_cache, find_entry): New functions.
7428 (lookup_cached_symbol, cache_symbol): Implement.
7429 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7430 (_initialize_ada_language): Attach ada_new_objfile_observer
7431 and ada_free_objfile_observer.
7433 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7435 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7436 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7437 struct block * parameter.
7438 (ada_lookup_symbol_list_worker): Constify local variable "block".
7439 Remove cast which is no longer necessary.
7441 2014-02-10 Doug Evans <xdje42@gmail.com>
7443 Add Guile as an extension language.
7444 * NEWS: Mention Guile scripting.
7445 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7446 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7447 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7448 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7449 (CLIBS): Add GUILE_LIBS.
7450 (install-guile): New rule.
7451 (guile.o): New rule.
7452 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7453 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7454 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7455 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7456 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7457 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7458 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7459 * configure.ac: New option --with-guile.
7460 * configure: Regenerate.
7461 * config.in: Regenerate.
7462 * auto-load.c: Remove #include "python/python.h". Add #include
7463 "gdb/section-scripts.h".
7464 (source_section_scripts): Handle Guile scripts.
7465 (_initialize_auto_load): Add name of Guile objfile script to
7466 scripts-directory help text.
7467 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7468 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7469 (struct breakpoint): New member scm_bp_object.
7470 * defs.h (enum command_control_type): New value guile_control.
7471 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7473 (show_user): Update comment.
7474 (_initialize_cli_cmds): Update help text for "show user". Update help
7475 text for max-user-call-depth.
7476 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7478 (multi_line_command_p): Add guile_control.
7479 (print_command_lines): Handle guile_control.
7480 (execute_control_command, recurse_read_control_structure): Ditto.
7481 (process_next_line): Recognize "guile" commands.
7482 * disasm.c (gdb_disassemble_info): Make non-static.
7483 * disasm.h: #include "dis-asm.h".
7484 (struct gdbarch): Add forward decl.
7485 (gdb_disassemble_info): Declare.
7486 * extension.c: #include "guile/guile.h".
7487 (extension_languages): Add guile.
7488 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7489 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7490 * gdbtypes.c (get_unsigned_type_max): New function.
7491 (get_signed_type_minmax): New function.
7492 * gdbtypes.h (get_unsigned_type_max): Declare.
7493 (get_signed_type_minmax): Declare.
7494 * guile/README: New file.
7495 * guile/guile-internal.h: New file.
7496 * guile/guile.c: New file.
7497 * guile/guile.h: New file.
7498 * guile/scm-arch.c: New file.
7499 * guile/scm-auto-load.c: New file.
7500 * guile/scm-block.c: New file.
7501 * guile/scm-breakpoint.c: New file.
7502 * guile/scm-disasm.c: New file.
7503 * guile/scm-exception.c: New file.
7504 * guile/scm-frame.c: New file.
7505 * guile/scm-gsmob.c: New file.
7506 * guile/scm-iterator.c: New file.
7507 * guile/scm-lazy-string.c: New file.
7508 * guile/scm-math.c: New file.
7509 * guile/scm-objfile.c: New file.
7510 * guile/scm-ports.c: New file.
7511 * guile/scm-pretty-print.c: New file.
7512 * guile/scm-safe-call.c: New file.
7513 * guile/scm-string.c: New file.
7514 * guile/scm-symbol.c: New file.
7515 * guile/scm-symtab.c: New file.
7516 * guile/scm-type.c: New file.
7517 * guile/scm-utils.c: New file.
7518 * guile/scm-value.c: New file.
7519 * guile/lib/gdb.scm: New file.
7520 * guile/lib/gdb/boot.scm: New file.
7521 * guile/lib/gdb/experimental.scm: New file.
7522 * guile/lib/gdb/init.scm: New file.
7523 * guile/lib/gdb/iterator.scm: New file.
7524 * guile/lib/gdb/printing.scm: New file.
7525 * guile/lib/gdb/types.scm: New file.
7526 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7527 (VPATH): Add $(GUILE_SRCDIR).
7528 (GUILE_DIR): New variable.
7529 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7530 (all): Add stamp-guile dependency.
7531 (stamp-guile): New rule.
7532 (clean-guile, install-guile, uninstall-guile): New rules.
7533 (install-only): Add install-guile dependency.
7534 (uninstall): Add uninstall-guile dependency.
7535 (clean): Add clean-guile dependency.
7537 2014-02-09 Doug Evans <xdje42@gmail.com>
7539 Revert this patch (which I approved, mea culpa).
7541 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7543 * Makefile.in (all-lib): Remove.
7544 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7546 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7548 Fix Python stack corruption.
7549 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7552 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7554 * Makefile.in (all-lib): Remove.
7555 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7557 2014-02-07 Doug Evans <dje@google.com>
7559 * extension-priv.h (extension_language_script_ops): Add comment.
7560 (extension_language_ops): Add comment.
7561 (active_ext_lang_state): Fix typo in comment.
7563 2014-02-07 Pedro Alves <palves@redhat.com>
7565 PR breakpoints/16292
7566 * infrun.c (handle_signal_stop) <signal arrives while stepping
7567 over a breakpoint>: Switch back to the stepping thread.
7569 2014-02-07 Yao Qi <yao@codesourcery.com>
7571 * target.c (target_xfer_partial): Return zero if LEN is zero.
7573 2014-02-07 Yao Qi <yao@codesourcery.com>
7575 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7576 (ld_so_xfer_auxv): Likewise.
7577 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7578 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7579 * corelow.c (core_xfer_partial): Likewise.
7580 * ctf.c (ctf_xfer_partial): Likewise.
7581 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7582 (darwin_xfer_partial): Likewise.
7583 * exec.c (exec_xfer_partial): Likewise.
7584 * gnu-nat.c (gnu_xfer_partial): Likewise.
7585 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7586 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7587 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7588 * linux-nat.c (linux_xfer_siginfo): Likewise.
7589 (linux_proc_xfer_spu): Likewise.
7590 * procfs.c (procfs_xfer_partial): Likewise.
7591 * record-full.c (record_full_xfer_partial): Likewise.
7592 (record_full_core_xfer_partial): Likewise.
7593 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7594 * remote.c (remote_write_qxfer): Likewise.
7595 (remote_write_qxfer, remote_read_qxfer): Likewise.
7596 (remote_xfer_partial): Likewise.
7597 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7598 (rs6000_xfer_shared_libraries): Likewise.
7599 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7600 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7601 (spu_xfer_partial): Likewise.
7602 * target.c (memory_xfer_partial_1): Likewise.
7603 * tracepoint.c (tfile_xfer_partial): Likewise.
7604 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7605 (windows_xfer_partial): Likewise.
7607 2014-02-07 Yao Qi <yao@codesourcery.com>
7609 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7611 (core_xfer_shared_libraries_aix): Likewise.
7612 * gdbarch.c, gdbarch.h: Regenerated.
7613 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7614 ULONGEST. Change 'len_avail' type to ULONGEST.
7615 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7616 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7618 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7620 2014-02-07 Yao Qi <yao@codesourcery.com>
7622 * corefile.c (memory_error): Get 'exception' from ERR and pass
7623 'exception' to throw_error.
7625 2014-02-06 Doug Evans <xdje42@gmail.com>
7627 * configure.ac (libpython checking): Remove all but python.o from
7628 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7629 * configure: Regenerate.
7631 * Makefile.in (SFILES): Add extension.c.
7632 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7633 (COMMON_OBS): Add extension.o.
7634 * extension.h: New file.
7635 * extension-priv.h: New file.
7636 * extension.c: New file.
7638 * python/python-internal.h: #include "extension.h".
7639 (gdbpy_auto_load_enabled): Declare.
7640 (gdbpy_apply_val_pretty_printer): Declare.
7641 (gdbpy_apply_frame_filter): Declare.
7642 (gdbpy_preserve_values): Declare.
7643 (gdbpy_breakpoint_cond_says_stop): Declare.
7644 (gdbpy_breakpoint_has_cond): Declare.
7645 (void source_python_script_for_objfile): Delete.
7646 * python/python.c: #include "extension-priv.h".
7647 Delete inclusion of "observer.h".
7648 (extension_language_python): Moved here and renamed from
7649 script_language_python in py-auto-load.c.
7650 Redefined to be of type extension_language_defn.
7651 (python_extension_script_ops): New global.
7652 (python_extension_ops): New global.
7653 (struct python_env): New member previous_active.
7654 (restore_python_env): Call restore_active_ext_lang.
7655 (ensure_python_env): Call set_active_ext_lang.
7656 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7658 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7660 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7662 (gdbpy_eval_from_control_command): Renamed from
7663 eval_python_from_control_command, made static. New arg extlang.
7664 (gdbpy_source_script) Renamed from source_python_script, made static.
7666 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7667 result to int. New arg extlang.
7668 (gdbpy_source_objfile_script): Renamed from
7669 source_python_script_for_objfile, made static. New arg extlang.
7670 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7671 static. New args extlang, extlang_printers. Change result type to
7673 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7674 static. New arg extlang. Rename arg printers to extlang_printers
7675 and change type to ext_lang_type_printers *.
7676 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7677 static. Replace argument arg with extlang, extlang_printers.
7678 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7679 (!HAVE_PYTHON, source_python_script): Delete.
7680 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7681 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7682 (!HAVE_PYTHON, start_type_printers): Delete.
7683 (!HAVE_PYTHON, apply_type_printers): Delete.
7684 (!HAVE_PYTHON, free_type_printers): Delete.
7685 (_initialize_python): Delete call to observer_attach_before_prompt.
7686 (finalize_python): Set/restore active extension language.
7687 (gdbpy_finish_initialization) Renamed from
7688 finish_python_initialization, made static. New arg extlang.
7689 (gdbpy_initialized): New function.
7690 * python/python.h: #include "extension.h". Delete #include
7691 "value.h", "mi/mi-cmds.h".
7692 (extension_language_python): Declare.
7693 (GDBPY_AUTO_FILE_NAME): Delete.
7694 (enum py_bt_status): Moved to extension.h and renamed to
7696 (enum frame_filter_flags): Moved to extension.h.
7697 (enum py_frame_args): Moved to extension.h and renamed to
7698 ext_lang_frame_args.
7699 (finish_python_initialization): Delete.
7700 (eval_python_from_control_command): Delete.
7701 (source_python_script): Delete.
7702 (apply_val_pretty_printer): Delete.
7703 (apply_frame_filter): Delete.
7704 (preserve_python_values): Delete.
7705 (gdbpy_script_language_defn): Delete.
7706 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7707 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7709 * auto-load.c: #include "extension.h".
7710 (GDB_AUTO_FILE_NAME): Delete.
7711 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7712 (script_language_gdb): Delete, moved to extension.c and renamed to
7713 extension_language_gdb.
7714 (source_gdb_script_for_objfile): Delete.
7715 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7716 (loaded_script): Change type of language member to
7717 struct extension_language_defn *.
7718 (init_loaded_scripts_info): Initialize
7719 unsupported_script_warning_printed.
7720 (maybe_add_script): Make static. Change type of language arg to
7721 struct extension_language_defn *.
7722 (clear_section_scripts): Reset unsupported_script_warning_printed.
7723 (auto_load_objfile_script_1): Rewrite to use extension language API.
7724 (auto_load_objfile_script): Make public. Remove support-compiled-in
7725 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7726 (source_section_scripts): Rewrite to use extension language API.
7727 (load_auto_scripts_for_objfile): Rewrite to use
7728 auto_load_scripts_for_objfile.
7729 (collect_matching_scripts_data): Change type of language member to
7730 struct extension_language_defn *.
7731 (auto_load_info_scripts): Change type of language arg to
7732 struct extension_language_defn *.
7733 (unsupported_script_warning_print): New function.
7734 (script_not_found_warning_print): Make static.
7735 (_initialize_auto_load): Rewrite construction of scripts-directory
7737 * auto-load.h (struct objfile): Add forward decl.
7738 (struct script_language): Delete.
7739 (struct auto_load_pspace_info): Add forward decl.
7740 (struct extension_language_defn): Add forward decl.
7741 (maybe_add_script): Delete.
7742 (auto_load_objfile_script): Declare.
7743 (script_not_found_warning_print): Delete.
7744 (auto_load_info_scripts): Update prototype.
7745 (auto_load_gdb_scripts_enabled): Declare.
7746 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7747 auto_load_python_scripts_enabled and made public.
7748 (script_language_python): Delete, moved to python.c.
7749 (gdbpy_script_language_defn): Delete.
7750 (info_auto_load_python_scripts): Update to use
7751 extension_language_python.
7753 * breakpoint.c (condition_command): Replace call to
7754 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7755 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7756 with call to breakpoint_ext_lang_cond_says_stop.
7757 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7758 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7759 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7760 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7762 (local_setattro): Print name of extension language with existing
7765 * valprint.c (val_print, value_print): Update to call
7766 apply_ext_lang_val_pretty_printer.
7767 * cp-valprint.c (cp_print_value): Update call to
7768 apply_ext_lang_val_pretty_printer.
7769 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7770 (gdbpy_apply_val_pretty_printer): Renamed from
7771 apply_val_pretty_printer. New arg extlang.
7772 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7774 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7775 extension language API.
7776 * cli/cli-script.c (execute_control_command): Update to call
7777 eval_ext_lang_from_control_command.
7779 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7780 enum ext_lang_bt_status values. Update call to
7781 apply_ext_lang_frame_filter.
7782 (mi_cmd_stack_list_locals): Ditto.
7783 (mi_cmd_stack_list_args): Ditto.
7784 (mi_cmd_stack_list_variables): Ditto.
7785 * mi/mi-main.c: Delete #include "python/python-internal.h".
7786 Add #include "extension.h".
7787 (mi_cmd_list_features): Replace reference to python internal variable
7788 gdb_python_initialized with call to ext_lang_initialized_p.
7790 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7791 Update to use enum ext_lang_frame_args. Update to call
7792 apply_ext_lang_frame_filter.
7793 * python/py-framefilter.c (extract_sym): Update to use enum
7795 (extract_value, py_print_type, py_print_value): Ditto.
7796 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7797 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7798 (py_print_frame): Ditto.
7799 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7800 New arg extlang. Update to use enum ext_lang_bt_status.
7802 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7803 finish_python_initialization. Replace with call to
7804 finish_ext_lang_initialization.
7806 * typeprint.c (do_free_global_table): Update to call
7807 free_ext_lang_type_printers.
7808 (create_global_typedef_table): Update to call
7809 start_ext_lang_type_printers.
7810 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7811 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7812 (type_print_options): Change type of global_printers from "void *"
7813 to "struct ext_lang_type_printers *".
7815 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7816 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7817 (gdbpy_preserve_values): Renamed from preserve_python_values.
7819 (!HAVE_PYTHON, preserve_python_values): Delete.
7821 * utils.c (quit_flag): Delete, moved to extension.c.
7822 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7825 * eval.c: Delete #include "python/python.h".
7826 * main.c: Delete #include "python/python.h".
7828 * defs.h: Update comment.
7830 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7834 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7836 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7839 2014-02-05 Yao Qi <yao@codesourcery.com>
7841 * remote.c (remote_pass_signals): Remove local 'buf' and use
7843 (remote_program_signals): Likewise.
7845 2014-02-05 Yao Qi <yao@codesourcery.com>
7847 * ctf.c: Include "inferior.h" and "gdbthread.h".
7848 (CTF_PID): A new macro.
7849 (ctf_open): Call inferior_appeared and add_thread_silent.
7850 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7851 (ctf_thread_alive): New function.
7852 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7854 2014-02-05 Yao Qi <yao@codesourcery.com>
7858 2013-05-24 Yao Qi <yao@codesourcery.com>
7860 * tracepoint.c (TFILE_PID): Remove.
7861 (tfile_open): Don't add thread and inferior.
7862 (tfile_close): Don't set 'inferior_ptid'. Don't call
7863 exit_inferior_silent.
7864 (tfile_thread_alive): Remove.
7865 (init_tfile_ops): Don't set field 'to_thread_alive' of
7868 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7870 * remote.c (remote_start_remote): Call remote_check_symbols even
7871 if only symbol-file (not file) has been given.
7873 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7875 * gdbarch.sh (skip_entrypoint): New callback.
7876 * gdbarch.c, gdbarch.h: Regenerate.
7877 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7878 * infrun.c (fill_in_stop_func): Likewise.
7879 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7880 (ppc_elfv2_elf_make_msymbol_special): New function.
7881 (ppc_elfv2_skip_entrypoint): Likewise.
7882 (ppc_linux_init_abi): Install them for ELFv2.
7884 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7886 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7887 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7888 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7889 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7890 structures returned in GPRs.
7892 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7894 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7895 offset to the stack parameter list for the ELFv2 ABI.
7897 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7899 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7900 set_gdbarch_convert_from_func_ptr_addr and
7901 set_gdbarch_elf_make_msymbol_special for ELFv1.
7902 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7903 function descriptors on ELFv1.
7904 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7905 set up r12 at function entry.
7907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7909 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7910 (struct gdbarch_tdep): New member elf_abi.
7912 * rs6000-tdep.c: Include "elf/ppc64.h".
7913 (rs6000_gdbarch_init): Detect ELF ABI version.
7915 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7917 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7918 within a register pair holding a DFP 128-bit value on little-endian.
7919 (ppc64_sysv_abi_return_value_base): Likewise.
7920 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7921 (dfp_pseudo_register_write): Likewise.
7923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7925 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7926 offset on little-endian when passing _Decimal32.
7927 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7929 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7931 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7932 of the overlapped FP register within the VSX register on little-
7934 (efpr_pseudo_register_write): Likewise.
7936 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7938 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7939 offset on little-endian when passing small structures.
7941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7943 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7944 (struct ppc64_sysv_argpos): New data structure.
7945 (ppc64_sysv_abi_push_float): Remove.
7946 (ppc64_sysv_abi_push_val): New function.
7947 (ppc64_sysv_abi_push_integer): Likewise.
7948 (ppc64_sysv_abi_push_freg): Likewise.
7949 (ppc64_sysv_abi_push_vreg): Likewise.
7950 (ppc64_sysv_abi_push_param): Likewise.
7951 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7952 (ppc64_sysv_abi_return_value_base): New function.
7953 (ppc64_sysv_abi_return_value): Refactor to use it.
7955 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7957 * NEWS: Document new target powerpc64le-*-linux*.
7959 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7961 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7962 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7964 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7965 register set used in ELF core dumps. Add floating-point register set.
7967 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7969 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7970 dwarf2_to_gdb[] table using symbolic constants. Adjust
7971 penultimate entry from number representing the PC register
7972 to symbolic constant representing the MDR register. Add
7973 constant for the PC register to the end of the table.
7975 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7977 * bsd-kvm.c: Include <sys/param.h>
7979 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7981 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7983 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7985 * ada-lang.h (clear_ada_sym_cache): Delete.
7987 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7989 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7991 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7993 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7994 the sigreturn register save area only if the syscall is
7997 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7999 * valops.c (value_slice): Minor reformatting.
8001 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8003 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8005 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8007 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8009 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8010 (ada_ignore_descriptive_types_p): New static global.
8011 (find_parallel_type_by_descriptive_type): Return immediately
8012 if ada_ignore_descriptive_types_p is set.
8013 (_initialize_ada_language): Register new commands "maintenance
8014 set ada", "maintenance show ada", "maintenance set ada
8015 ignore-descriptive-types" and "maintenance show ada
8016 ignore-descriptive-types".
8017 * NEWS: Add entry for new "maint ada set/show
8018 ignore-descriptive-types" commands.
8020 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8022 * record-btrace.c (record_btrace_close): Call btrace_teardown
8025 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8027 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8030 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8032 * ada-typeprint (type_is_full_subrange_of_target_type):
8034 (print_range): Add parameter bounds_prefered_p. If not set,
8035 try printing range types using the name of their base type.
8036 (print_range_type): Add parameter bounds_prefered_p.
8037 Use it in call to print_range.
8038 (print_array_type, ada_print_type): Update calls to print_range
8039 and print_range_type.
8041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8043 * ada-typeprint.c (print_array_type, print_choices, print_range)
8044 (print_range_bound, print_dynamic_range_bound, print_range_type):
8047 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8049 * ada-typeprint.c (print_range): Add missing empty line
8050 after local declaration.
8052 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8054 * ada-valprint.c (print_optional_low_bound): Get index_type's
8055 target type for as long as it is a TYPE_CODE_RANGE.
8057 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8059 * procfs.c (procfs_make_note_section): Remove assertion and
8062 2014-01-24 Yao Qi <yao@codesourcery.com>
8064 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8065 * corelow.c (get_core_siginfo): Likewise.
8067 2014-01-24 Yao Qi <yao@codesourcery.com>
8069 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8070 ULONGEST. Don't check 'len' is negative.
8071 (remote_write_bytes): Change type of 'len' to ULONGEST.
8073 2014-01-23 Tom Tromey <tromey@redhat.com>
8076 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8077 Handle exception from frame.block.
8078 (FrameVars.fetch_frame_locals): Likewise.
8080 2014-01-23 Tom Tromey <tromey@redhat.com>
8083 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8084 on a NULL pointer. Move "goto error" to correct place.
8086 2014-01-23 Tom Tromey <tromey@redhat.com>
8089 * python/py-framefilter.c (apply_frame_filter): Call
8090 ensure_python_env after computing gdbarch.
8092 2014-01-23 Yao Qi <yao@codesourcery.com>
8094 * target.c (raw_memory_xfer_partial): Change argument type
8095 from void * to gdb_byte *.
8096 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8098 2014-01-22 Doug Evans <dje@google.com>
8100 New gdbserver option --debug-format=timestamp.
8103 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8105 * syscalls/s390x-linux.xml: New file.
8106 * syscalls/s390-linux.xml: New file.
8107 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8108 (XML_SYSCALL_FILENAME_S390X): Likewise.
8109 (op_svc): New enum value for SVC opcode.
8110 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8111 (s390_linux_get_syscall_number): New function.
8112 (s390_gdbarch_init): Register '*get_syscall_number' and the
8113 syscall xml file name.
8114 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8115 "s390-linux.xml" and "s390x-linux.xml".
8116 * NEWS: Announce new feature.
8118 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8120 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8122 2014-01-22 Pedro Alves <palves@redhat.com>
8124 * xtensa-config.c: Include defs.h.
8126 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8128 * common/common-utils.h: Add "ARI:" comment beside __func__
8131 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8133 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8134 documentation a bit.
8136 2014-01-21 Roland McGrath <mcgrathr@google.com>
8138 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8139 * configure: Regenerate.
8140 * aclocal.m4: Regenerate.
8141 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8142 New substituted variables.
8143 (install-strip): New target.
8144 (INSTALL_SCRIPT): New substituted variable.
8145 (FLAGS_TO_PASS): Add it.
8146 (install-only): Use $(INSTALL_SCRIPT) rather than
8147 $(INSTALL_PROGRAM) for gcore.
8149 2014-01-20 Tom Tromey <tromey@redhat.com>
8151 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8154 2014-01-20 Tom Tromey <tromey@redhat.com>
8156 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8157 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8158 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8159 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8160 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8161 (struct cmd_list_element) <flags>: Remove.
8162 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8163 doc_allocated>: New fields.
8164 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8166 * maint.c (maintenance_do_deprecate): Update.
8167 * top.c (execute_command): Update.
8169 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8171 * xtensa-linux-nat.c: Include asm/ptrace.h.
8173 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8175 * Makefile.in (SFILES): Add d-support.c.
8176 (COMMON_OBS): Add d-support.o.
8177 * d-lang.h (d_parse_symbol): Add comment, now defined in
8179 * d-lang.c (parse_call_convention)
8180 (parse_attributes, parse_function_types)
8181 (parse_function_args, parse_type, parse_identifier)
8182 (call_convention_p, d_parse_symbol): Move functions to ...
8183 * d-support.c: ... New file.
8185 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8187 * d-lang.h (d_parse_symbol): Add declaration.
8188 * d-lang.c (extract_identifiers)
8189 (extract_type_info): Remove functions.
8190 (parse_call_convention, parse_attributes)
8191 (parse_function_types, parse_function_args)
8192 (parse_type, parse_identifier, call_convention_p)
8193 (d_parse_symbol): New functions.
8194 (d_demangle): Use d_parse_symbol to demangle D symbols.
8196 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8198 * d-lang.h (struct builtin_d_type): New data type.
8199 (builtin_d_type): Add declaration.
8200 * d-lang.c (d_language_arch_info, build_d_types)
8201 (builtin_d_type): New functions.
8202 (enum d_primitive_types): New data type.
8203 (d_language_defn): Change c_language_arch_info to
8204 d_language_arch_info.
8205 (d_type_data): New static variable.
8206 (_initialize_d_language): Initialize d_type_data.
8208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8210 * d-lang.h (d_main_name): Add declaration.
8211 * d-lang.c (d_main_name): New function.
8212 * symtab.c (find_main_name): Add call to d_main_name.
8214 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8216 * d-lang.c (d_language_defn): Change macro_expansion_c to
8219 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8221 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8223 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8225 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8226 gdb_exception" declaration.
8227 * remote.c (getpkt_or_notif_sane): Likewise.
8229 2014-01-17 Doug Evans <dje@google.com>
8231 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8232 function, contents of dirnames_to_char_ptr_vec_append moved here.
8233 (delim_string_to_char_ptr_vec): New function.
8234 (dirnames_to_char_ptr_vec_append): Rewrite.
8235 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8237 2014-01-17 Doug Evans <dje@google.com>
8239 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8241 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8242 #include "common-utils.h".
8243 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8244 * common/vec.h (VEC_ASSERT_PASS): Update.
8245 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8246 (MACH_CHECK_ERROR): Update.
8248 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8250 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8252 * gdbarch.h: Regenerate.
8254 2014-01-16 Tom Tromey <tromey@redhat.com>
8256 * value.c (struct value) <regnum>: Move earlier.
8258 2014-01-16 Tom Tromey <tromey@redhat.com>
8260 * remote.c (extended_remote_create_inferior): Rename from
8261 extended_remote_create_inferior_1. Add "ops" argument. Remove
8264 2014-01-16 Pedro Alves <palves@redhat.com>
8266 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8267 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8270 2014-01-16 Doug Evans <dje@google.com>
8272 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8276 * btrace.h (btrace_thread_flag): New.
8277 (struct btrace_thread_info) <flags>: New.
8278 * record-btrace.c (record_btrace_resume_thread)
8279 (record_btrace_find_thread_to_move, btrace_step_no_history)
8280 (btrace_step_stopped, record_btrace_start_replaying)
8281 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8282 (record_btrace_find_resume_thread): New.
8283 (record_btrace_resume, record_btrace_wait): Extend.
8284 (record_btrace_can_execute_reverse): New.
8285 (record_btrace_open): Fail in non-stop mode.
8286 (record_btrace_set_replay): Split into this, ...
8287 (record_btrace_stop_replaying): ... this, ...
8288 (record_btrace_clear_histories): ... and this.
8289 (init_record_btrace_ops): Init to_can_execute_reverse.
8290 * NEWS: Announce it.
8292 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8294 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8295 (forward_target_decr_pc_after_break)
8296 (target_decr_pc_after_break): New.
8297 * target.c (forward_target_decr_pc_after_break)
8298 (target_decr_pc_after_break): New.
8299 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8300 instead of gdbarch_decr_pc_after_break.
8301 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8302 instead of gdbarch_decr_pc_after_break.
8303 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8304 instead of gdbarch_decr_pc_after_break.
8305 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8306 instead of gdbarch_decr_pc_after_break.
8307 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8308 instead of gdbarch_decr_pc_after_break.
8309 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8310 instead of gdbarch_decr_pc_after_break.
8312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8314 * btrace.c: Include regcache.h.
8315 (btrace_add_pc): New.
8316 (btrace_enable): Call btrace_add_pc.
8317 (btrace_is_empty): New.
8318 * btrace.h (btrace_is_empty): New.
8319 * record-btrace.c (require_btrace, record_btrace_info): Call
8322 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8324 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8325 Support delta reads.
8326 (linux_disable_btrace): Change return type.
8327 * common/linux-btrace.h (linux_read_btrace): Change parameters
8328 and return type to allow error reporting. Update users.
8329 (linux_disable_btrace): Change return type. Update users.
8330 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8332 (btrace_error): New.
8333 (btrace_block) <begin>: Comment on BEGIN == 0.
8334 * btrace.c (btrace_compute_ftrace): Start from the end of
8336 (btrace_stitch_trace, btrace_clear_history): New.
8337 (btrace_fetch): Read delta trace, return if replaying.
8338 (btrace_clear): Move clear history code to btrace_clear_history.
8339 (parse_xml_btrace): Throw an error if parsing failed.
8340 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8341 and return type to allow error reporting.
8342 (target_read_btrace): Change parameters and return type to allow
8344 * target.c (target_read_btrace): Update.
8345 * remote.c (remote_read_btrace): Support delta reads. Pass
8347 * NEWS: Announce it.
8349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8351 * record.h (record_btrace_frame_unwind)
8352 (record_btrace_tailcall_frame_unwind): New declarations.
8353 * dwarf2-frame: Include record.h
8354 (dwarf2_frame_cfa): Throw an error for btrace frames.
8355 * record-btrace.c: Include hashtab.h.
8356 (btrace_get_bfun_name): New.
8357 (btrace_call_history): Call btrace_get_bfun_name.
8358 (struct btrace_frame_cache): New.
8360 (bfcache_hash, bfcache_eq, bfcache_new): New.
8361 (btrace_get_frame_function): New.
8362 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8363 (record_btrace_frame_this_id): Compute own id.
8364 (record_btrace_frame_prev_register): Provide PC, throw_error
8365 for all other registers.
8366 (record_btrace_frame_sniffer): Detect btrace frames.
8367 (record_btrace_tailcall_frame_sniffer): New.
8368 (record_btrace_frame_dealloc_cache): New.
8369 (record_btrace_frame_unwind): Add new functions.
8370 (record_btrace_tailcall_frame_unwind): New.
8371 (_initialize_record_btrace): Allocate cache.
8372 * btrace.c (btrace_clear): Call reinit_frame_cache.
8373 * NEWS: Announce it.
8375 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8377 * record-btrace.c (record_btrace_set_replay)
8378 (record_btrace_goto_begin, record_btrace_goto_end)
8379 (record_btrace_goto): New.
8380 (init_record_btrace_ops): Initialize them.
8381 * NEWS: Announce it.
8383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8385 * record-btrace.c (record_btrace_find_new_threads)
8386 (record_btrace_thread_alive): New.
8387 (init_record_btrace_ops): Initialize to_find_new_threads and
8390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8392 * record-btrace.c (record_btrace_resume): New.
8393 (record_btrace_wait): New.
8394 (init_record_btrace_ops): Initialize to_wait and to_resume.
8396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8398 * record-btrace.c (record_btrace_xfer_partial)
8399 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8400 (record_btrace_allow_memory_access): New.
8401 (init_record_btrace_ops): Initialize new methods.
8402 * target.c (raw_memory_xfer_partial): Bail out if target reports
8403 that this memory is not available.
8405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8407 * target.h (target_ops) <to_insert_breakpoint>
8408 <to_remove_breakpoint>: Add target_ops parameter.
8409 (forward_target_insert_breakpoint): New.
8410 (forward_target_remove_breakpoint): New.
8411 (memory_remove_breakpoint, memory_insert_breakpoint):
8412 Add target_ops parameter.
8413 * target.c (target_insert_breakpoint): Split into this and ...
8414 (forward_target_insert_breakpoint): ... this.
8415 (target_remove_breakpoint): Split into this and ...
8416 (forward_target_remove_breakpoint): ... this.
8417 (debug_to_insert_breakpoint): Add target_ops parameter.
8418 Call forward_target_insert_breakpoint.
8419 (debug_to_remove_breakpoint): Add target_ops parameter.
8420 Call forward_target_remove_breakpoint.
8421 (update_current_target): Do not inherit or default to_insert_breakpoint
8422 and to_remove_breakpoint.
8423 * corelow.c (ignore): Add target_ops parameter.
8424 * exec.c (ignore): Add target_ops parameter.
8425 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8426 Add target_ops parameter.
8427 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8428 Add target_ops parameter.
8429 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8430 Add target_ops parameter.
8431 * record-full.c (record_full_beneath_to_insert_breakpoint)
8432 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8433 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8434 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8435 (record_full_core_remove_breakpoint): Add target_ops parameter.
8437 (record_full_beneath_to_insert_breakpoint_ops)
8438 (record_full_beneath_to_remove_breakpoint_ops)
8439 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8440 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8441 tmp_to_remove_breakpoint_ops,
8442 record_full_beneath_to_insert_breakpoint_ops, and
8443 record_full_beneath_to_remove_breakpoint_ops.
8444 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8445 (m32r_remove_breakpoint): Add target_ops parameter.
8446 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8447 Add target_ops parameter.
8448 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8449 Add target_ops parameter.
8451 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 Markus Metzger <markus.t.metzger@intel.com>
8454 * record-btrace.c: Include frame-unwind.h.
8455 (record_btrace_frame_unwind_stop_reason)
8456 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8457 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8459 (init_record_btrace_ops): Install it.
8461 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8463 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8466 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8468 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8471 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8473 * frame-unwind.c: Include target.h.
8474 (frame_unwind_try_unwinder): New function with code from ...
8475 (frame_unwind_find_by_frame): ... here. New variable
8476 unwinder_from_target, call also target_get_unwinder)
8477 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8478 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8479 * target.h (struct target_ops): New fields to_get_unwinder and
8480 to_get_tailcall_unwinder.
8481 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8485 * record-btrace.c (record_btrace_fetch_registers)
8486 (record_btrace_store_registers)
8487 (record_btrace_to_prepare_to_store): New.
8488 (init_record_btrace_ops): Add the above.
8490 2014-01-16 Tom Tromey <tromey@redhat.com>
8492 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8493 * target.h (struct target_ops) <to_prepare_to_store>: Add
8495 (target_prepare_to_store): Add argument.
8496 * target.c (debug_to_prepare_to_store): Add argument.
8497 (update_current_target): Update.
8498 * remote.c (remote_prepare_to_store): Add 'self' argument.
8499 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8500 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8501 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8502 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8504 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8505 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8506 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8507 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8508 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8512 * btrace.h (replay) <replay>: New.
8513 (btrace_is_replaying): New.
8514 * btrace.c (btrace_clear): Free replay iterator.
8515 (btrace_is_replaying): New.
8516 * record-btrace.c (record_btrace_is_replaying): New.
8517 (record_btrace_info): Print insn number if replaying.
8518 (record_btrace_insn_history): Start at replay position.
8519 (record_btrace_call_history): Start at replay position.
8520 (init_record_btrace_ops): Init to_record_is_replaying.
8522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8524 * record-btrace.c (record_btrace_insn_history_range): Include
8526 (record_btrace_insn_history_from): Adjust range.
8527 (record_btrace_call_history_range): Include
8529 (record_btrace_call_history_from): Adjust range.
8530 * NEWS: Announce changes.
8532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8534 * record.h (enum record_print_flag)
8535 <record_print_indent_calls>: New.
8536 * record.c (get_call_history_modifiers): Recognize /c modifier.
8537 (_initialize_record): Document /c modifier.
8538 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8539 Reorder fields. Optionally indent the function name. Update
8541 * NEWS: Announce changes.
8543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8545 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8547 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8549 * btrace.c (ftrace_new_function): Start counting at one.
8550 * record-btrace.c (record_btrace_info): Adjust number of calls
8552 * NEWS: Announce it.
8554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8556 * record-btrace.c (btrace_call_history_insn_range): Print
8557 insn range as [begin, end].
8559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8561 * btrace.h (struct btrace_func_link): New.
8562 (enum btrace_function_flag): New.
8563 (struct btrace_inst): Rename to ...
8564 (struct btrace_insn): ...this. Update all users.
8565 (struct btrace_func) <ibegin, iend>: Remove.
8566 (struct btrace_func_link): New.
8567 (struct btrace_func): Rename to ...
8568 (struct btrace_function): ...this. Update all users.
8569 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8570 (number, level, flags>: New.
8571 (struct btrace_insn_iterator): Rename to ...
8572 (struct btrace_insn_history): ...this.
8574 (struct btrace_insn_iterator, btrace_call_iterator): New.
8575 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8576 (struct btrace_target_info) <begin, end, level>
8577 <insn_history, call_history>: New.
8578 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8579 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8580 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8581 (btrace_call_number, btrace_call_begin, btrace_call_end)
8582 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8583 (btrace_find_function_by_number, btrace_set_insn_history)
8584 (btrace_set_call_history): New.
8585 * btrace.c (btrace_init_insn_iterator)
8586 (btrace_init_func_iterator, compute_itrace): Remove.
8587 (ftrace_print_function_name, ftrace_print_filename)
8588 (ftrace_skip_file): Change
8590 (ftrace_init_func): Remove.
8591 (ftrace_debug): Use new btrace_function fields.
8592 (ftrace_function_switched): Also consider gaining and
8593 losing symbol information).
8594 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8595 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8596 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8598 (ftrace_new_function): Move. Remove debug print.
8599 (ftrace_update_lines, ftrace_update_insns): New.
8600 (ftrace_update_function): Check for call, ret, and jump.
8601 (compute_ftrace): Renamed to ...
8602 (btrace_compute_ftrace): ...this. Rewritten to compute call
8604 (btrace_fetch, btrace_clear): Updated.
8605 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8606 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8607 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8608 (btrace_call_number, btrace_call_begin, btrace_call_end)
8609 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8610 (btrace_find_function_by_number, btrace_set_insn_history)
8611 (btrace_set_call_history): New.
8612 * record-btrace.c (require_btrace): Use new btrace thread
8614 (record_btrace_info, btrace_insn_history)
8615 (record_btrace_insn_history, record_btrace_insn_history_range):
8616 Use new btrace thread info fields and new iterator.
8617 (btrace_func_history_src_line): Rename to ...
8618 (btrace_call_history_src_line): ...this. Use new btrace
8620 (btrace_func_history): Rename to ...
8621 (btrace_call_history): ...this. Use new btrace thread info
8622 fields and new iterator.
8623 (record_btrace_call_history, record_btrace_call_history_range):
8624 Use new btrace thread info fields and new iterator.
8626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8628 * frame.h (frame_id_build_unavailable_stack_special): New.
8629 * frame.c (frame_id_build_unavailable_stack_special): New.
8631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8633 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8634 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8635 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8637 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8638 (i386_insn_is_jump, i386_jmp_p): New.
8639 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8640 insn_is_jump to gdbarch.
8641 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8642 * gdbarch.h: Regenerated.
8643 * gdbarch.c: Regenerated.
8644 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8645 (default_insn_is_jump): New.
8646 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8647 (default_insn_is_jump): New.
8649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8651 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8653 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8654 (btrace_read_type) <btrace_read_new>: Change to ...
8655 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8659 * common/linux-btrace.c (linux_read_btrace): Free trace from
8662 2014-01-15 Doug Evans <dje@google.com>
8664 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8667 2014-01-15 Tom Tromey <tromey@redhat.com>
8669 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8670 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8671 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8672 (set_objfile_main_name): New function.
8673 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8674 language_of_main>: New fields.
8675 (set_objfile_main_name): Declare.
8676 * symtab.c (find_main_name): Loop over objfiles to find the main
8678 (set_main_name): Now static.
8679 (get_main_info): Add comment.
8680 * symtab.h (set_main_name): Don't declare.
8682 2014-01-15 Tom Tromey <tromey@redhat.com>
8684 * symtab.c (main_progspace_key): New global.
8685 (struct main_info): New.
8686 (name_of_main, language_of_main): Remove.
8687 (get_main_info, main_info_cleanup): New function.
8688 (set_main_name, main_name, main_language): Use get_main_info.
8689 (_initialize_symtab): Initialize main_progspace_key.
8691 2014-01-15 Tom Tromey <tromey@redhat.com>
8693 * dbxread.c (process_one_symbol): Update.
8694 * dwarf2read.c (read_partial_die): Update.
8695 * symfile.c (set_initial_language): Call main_language.
8696 * symtab.c (language_of_main): Now static.
8697 (set_main_name): Add 'lang' parameter.
8698 (find_main_name): Update.
8699 (main_language): New function.
8700 (symtab_observer_executable_changed): Update.
8701 * symtab.h (set_main_name): Update.
8702 (language_of_main): Remove.
8703 (main_language): Declare.
8705 2014-01-15 Tom Tromey <tromey@redhat.com>
8707 * symfile.c (init_entry_point_info): Use new "initialized" field.
8709 * objfiles.h (struct entry_point) <initialized>: New field.
8710 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8711 (struct objfile) <ei>: ...here. Remove.
8712 * objfiles.c (entry_point_address_query): Update.
8714 2014-01-15 Tom Tromey <tromey@redhat.com>
8716 * objfiles.c (entry_point_address_query): Relocate entry point
8718 (objfile_relocate1): Do not relocate entry point address.
8719 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8720 <the_bfd_section_index>: New field.
8721 * symfile.c (init_entry_point_info): Find the entry point's
8724 2014-01-15 Tom Tromey <tromey@redhat.com>
8726 * solib-frv.c (enable_break): Use entry_point_address_query.
8728 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8730 * NEWS: Add note on improved process record-replay on
8731 arm*-linux* targets.
8733 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8735 * arm-tdep.c (enum arm_record_result): New enum.
8736 (arm_record_unsupported_insn): New function.
8737 (arm_record_coproc_data_proc): Removed.
8738 (thumb2_record_ld_st_multiple): New function.
8739 (thumb2_record_ld_st_dual_ex_tbb): New function.
8740 (thumb2_record_data_proc_sreg_mimm): New function.
8741 (thumb2_record_ps_dest_generic): New function.
8742 (thumb2_record_branch_misc_cntrl): New function.
8743 (thumb2_record_str_single_data): New function.
8744 (thumb2_record_ld_mem_hints): New function.
8745 (thumb2_record_ld_word): New function.
8746 (thumb2_record_lmul_lmla_div): New function.
8747 (thumb2_record_decode_insn_handler): New function.
8748 (decode_insn): Add thumb32 instruction handlers.
8750 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8752 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8753 (struct arm_linux_record_tdep): Declare.
8754 (arm_canonicalize_syscall): New function.
8755 (arm_all_but_pc_registers_record): New function.
8756 (arm_linux_syscall_record): New function.
8757 (arm_linux_init_abi): Add syscall recording constructs.
8758 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8759 decoding. (arm_record_coproc_data_proc): Update arm syscall
8761 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8762 <arm_syscall_record>: New field.
8763 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8766 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8768 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8769 register for push instruction recording.
8771 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8773 * arm-tdep.c (thumb_record_misc): Update to correct logical
8774 error while recording ldm, ldmia and pop instructions.
8776 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8778 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8780 2014-01-15 Pedro Alves <palves@redhat.com>
8782 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8783 (go32_resume, go32_fetch_registers, store_register)
8784 (go32_store_registers, go32_prepare_to_store)
8785 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8786 (go32_create_inferior, go32_can_run, go32_terminal_init)
8787 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8790 2014-01-15 Tom Tromey <tromey@redhat.com>
8792 * target.h (async_callback_ftype): New typedef.
8793 (struct target_ops) <to_async>: Use it.
8795 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8797 * python/py-value.c (get_field_type): Remove unnecessary curly
8798 braces for single-statement if block.
8800 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8802 * python/py-type.c (convert_field): Add missing empty line
8805 2014-01-14 Doug Evans <dje@google.com>
8807 * symfile.h (expand_symtabs_matching): Renamed from
8808 expand_partial_symbol_names. Update prototype.
8809 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8810 * symfile.c (expand_symtabs_matching): Renamed from
8811 expand_partial_symbol_names. New args file_matcher, kind.
8812 Rename arg fun to symbol_matcher.
8813 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8814 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8815 ada_expand_partial_symbol_name.
8816 (ada_make_symbol_completion_list): Update to call
8817 expand_symtabs_matching.
8818 (ada_add_global_exceptions): Call expand_symtabs_matching.
8819 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8820 call map_symbol_filenames.
8821 * symtab.c (sources_info): Update to call map_symbol_filenames.
8822 (search_symbols): Call expand_symtabs_matching.
8823 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8824 (default_make_symbol_completion_list_break_on): Update to call
8825 expand_symtabs_matching.
8826 (make_source_files_completion_list): Update to call
8827 map_symbol_filenames.
8829 2014-01-14 Doug Evans <dje@google.com>
8831 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8832 (expand_symtabs_symbol_matcher_ftype): New typedef.
8833 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8834 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8835 * symfile.c (expand_partial_symbol_names): Update to use
8836 expand_symtabs_symbol_matcher_ftype.
8837 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8838 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8839 Arg name_matcher renamed to symbol_matcher.
8840 * psymtab.c (recursively_search_psymtabs): Update to use
8841 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8843 (expand_symtabs_matching_via_partial): Update to use
8844 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8845 Arg name_matcher renamed to symbol_matcher.
8847 2014-01-14 Doug Evans <dje@google.com>
8849 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8850 (map_partial_symbol_filenames): Ditto.
8851 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8852 (map_partial_symbol_filenames): Ditto.
8853 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8854 (map_partial_symbol_filenames): Ditto.
8855 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8856 (map_partial_symbol_filenames): Ditto.
8857 * symtab.c: Delete #include "psymtab.h".
8859 2014-01-14 Pedro Alves <palves@redhat.com>
8860 Tom Tromey <tromey@redhat.com>
8862 * infrun.c (use_displaced_stepping): Use find_record_target
8863 instead of RECORD_IS_USED.
8864 (adjust_pc_after_break): Use record_full_is_used instead of
8866 * record-btrace.c (record_btrace_open): Call record_preopen
8867 instead of checking RECORD_IS_USED.
8868 * record-full.c (record_full_shortname)
8869 (record_full_core_shortname): New globals.
8870 (record_full_is_used): New function.
8871 (find_full_open): Call record_preopen instead of checking
8873 (init_record_full_ops): Set the target's shortname to
8874 record_full_shortname.
8875 (init_record_full_core_ops): Set the target's shortname to
8876 record_full_core_shortname.
8877 * record-full.h (record_full_is_used): Declare.
8878 * record.c (find_record_target): Make extern.
8879 (record_preopen): New function.
8880 * record.h (RECORD_IS_USED): Delete macro.
8881 (find_record_target, record_preopen): Declare functions.
8883 2014-01-14 Yao Qi <yao@codesourcery.com>
8885 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8886 'len''s type to ULONGEST.
8887 (core_xfer_shared_libraries_aix): Likewise.
8888 * gdbarch.c, gdbarch.h: Regenerated.
8889 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8890 Change type of 'len' to ULONGEST.
8891 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8892 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8894 2014-01-14 Yao Qi <yao@codesourcery.com>
8896 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8897 type of 'len' to ULONGEST.
8898 (linux_xfer_osdata_processgroups): Likewise.
8899 (linux_xfer_osdata_threads): Likewise.
8900 (linux_xfer_osdata_fds): Likewise.
8901 (linux_xfer_osdata_isockets): Likewise.
8902 (linux_xfer_osdata_shm): Likewise.
8903 (linux_xfer_osdata_sem): Likewise.
8904 (linux_xfer_osdata_msg): Likewise.
8905 (linux_common_xfer_osdata): Likewise.
8906 (struct osdata_type) <getter>: Likewise.
8907 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8910 2014-01-14 Yao Qi <yao@codesourcery.com>
8912 * target.h (target_xfer_partial_ftype): Update.
8913 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8915 * aix-thread.c (aix_thread_xfer_partial): Change type of
8916 argument 'len' to ULONGEST.
8917 * auxv.c (procfs_xfer_auxv): Likewise.
8918 (ld_so_xfer_auxv): Likewise.
8919 (memory_xfer_auxv): Likewise.
8920 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8921 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8922 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8923 * corelow.c (core_xfer_partial): Likewise.
8924 * ctf.c (ctf_xfer_partial): Likewise.
8925 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8927 (darwin_read_dyld_info): Likewise.
8928 (darwin_xfer_partial): Likewise.
8929 * exec.c (section_table_xfer_memory_partial): Likewise.
8930 (exec_xfer_partial): Likewise.
8931 * exec.h (section_table_xfer_memory_partial): Update
8933 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8934 instead of plongest.
8935 (gnu_xfer_partial): Likewise.
8936 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8937 (ia64_hpux_xfer_solib_got): Likewise.
8938 (ia64_hpux_xfer_partial): Likewise.
8939 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8940 * inf-ptrace.c (inf_ptrace_xfer_partial):
8941 * inf-ttrace.c (inf_ttrace_xfer_partial):
8942 * linux-nat.c (linux_xfer_siginfo): Likewise.
8943 (linux_nat_xfer_partial): Likewise.
8944 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8945 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8946 * monitor.c (monitor_xfer_memory): Likewise.
8947 (monitor_xfer_partial): Likewise.
8948 * procfs.c (procfs_xfer_partial): Likewise.
8949 * record-full.c (record_full_xfer_partial): Likewise.
8950 (record_full_core_xfer_partial): Likewise.
8951 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8952 instead of plongest.
8953 (gdbsim_xfer_partial): Likewise.
8954 * remote.c (remote_xfer_partial): Likewise.
8955 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8956 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8958 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8959 (rs6000_xfer_shared_libraries): Likewise.
8960 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8961 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8962 (sparc_xfer_partial): Likewise.
8963 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8964 (spu_xfer_partial): Likewise.
8965 * spu-multiarch.c (spu_xfer_partial): Likewise.
8966 * target.c (target_read_live_memory): Likewise.
8967 (memory_xfer_live_readonly_partial): Likewise.
8968 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8969 (target_xfer_partial, default_xfer_partial): Likewise.
8970 (current_xfer_partial): Likewise.
8971 * tracepoint.c (tfile_xfer_partial): Likewise.
8972 * windows-nat.c (windows_xfer_memory): Likewise. Call
8973 pulongest instead of plongest.
8974 (windows_xfer_partial): Likewise.
8975 (windows_xfer_shared_libraries): Likewise.
8977 2014-01-14 Yao Qi <yao@codesourcery.com>
8979 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8980 target_xfer_partial_ftype.
8982 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8986 * valops.c (value_struct_elt_bitpos): New function
8987 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8988 object to 'None' if the field name is an empty string ("").
8989 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8990 attribute to look for a field when 'name' is 'None'.
8991 (get_field_type): New function
8993 2014-01-13 Doug Evans <dje@google.com>
8996 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8997 (try_open_dwop_file): Ditto.
8998 * gdb_bfd.c: #include "vec.h".
8999 (bfdp): New typedef.
9000 (struct gdb_bfd_data): New member included_bfds.
9001 (gdb_bfd_unref): Unref all included bfds.
9002 (gdb_bfd_record_inclusion): New function.
9003 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9005 2014-01-13 Tom Tromey <tromey@redhat.com>
9007 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9009 2014-01-13 Tom Tromey <tromey@redhat.com>
9011 * defs.h (use_windows): Remove.
9012 * gdb.c (main): Update.
9013 * main.c (captured_main, gdb_main): Update.
9014 * main.h (struct captured_main_args) <use_windows>: Remove.
9015 * top.c (use_windows): Remove.
9017 2014-01-13 Tom Tromey <tromey@redhat.com>
9019 * defs.h (deprecated_flush_hook): Remove.
9021 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9024 * linux-thread-db.c (try_thread_db_load): Add parameter
9025 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9026 (try_thread_db_load_from_pdir_1): Move it there from here.
9027 (try_thread_db_load_from_sdir): Update caller.
9028 (try_thread_db_load_from_dir): Move it there from here.
9030 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9032 * regformats/regdat.sh: Always rewrite the register file.
9034 2014-01-13 Pedro Alves <palves@redhat.com>
9036 * Makefile.in (CHECK_HEADERS): New variable.
9037 (check-headers:): New rule.
9039 2014-01-13 Tom Tromey <tromey@redhat.com>
9041 * cli/cli-setshow.c (do_set_command): Update.
9042 * defs.h (deprecated_set_hook): Remove.
9043 * top.c (deprecated_set_hook): Remove.
9045 2014-01-13 Pedro Alves <palves@redhat.com>
9047 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9048 the tracepoint if the PC is a pseudo-register.
9050 2014-01-13 Tom Tromey <tromey@redhat.com>
9052 * defs.h (XCALLOC): Remove.
9053 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9054 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9055 * dwarf2loc.c (allocate_piece_closure): Likewise.
9056 * elfread.c (elf_symfile_segments): Likewise.
9057 (elf_symfile_segments): Likewise.
9058 * gdbtypes.c (copy_type_recursive): Likewise.
9059 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9060 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9061 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9063 * mt-tdep.c (mt_gdbarch_init): Likewise.
9064 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9066 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9067 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9068 * registry.c (registry_alloc_data): Likewise.
9069 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9070 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9071 * serial.c (serial_fdopen_ops): Likewise.
9072 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9074 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9075 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9078 2014-01-13 Tom Tromey <tromey@redhat.com>
9080 * defs.h (XMALLOC): Remove.
9081 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9082 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9083 * cli-out.c (struct ui_out *): Likewise.
9084 * cli/cli-dump.c (add_dump_command): Likewise.
9085 (add_dump_command): Likewise.
9086 * complaints.c (get_complaints): Likewise.
9087 (find_complaint): Likewise.
9088 * dwarf2-frame.c (execute_cfa_program): Likewise.
9089 * dwarf2read.c (abbrev_table_read_table): Likewise.
9090 * gdbarch.sh: Likewise.
9091 * gdbarch.c: Rebuild.
9092 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9093 * interps.c (interp_new): Likewise.
9094 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9095 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9096 * mi/mi-console.c (mi_console_file_new): Likewise.
9097 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9098 * mi/mi-out.c (mi_out_new): Likewise.
9099 * mi/mi-parse.c (mi_parse): Likewise.
9100 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9101 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9102 * observer.c (xalloc_observer_list_node): Likewise.
9103 * regcache.c (regcache_xmalloc_1): Likewise.
9104 * reggroups.c (reggroup_new): Likewise.
9105 (_initialize_reggroup): Likewise.
9106 * registry.c (register_data_with_cleanup): Likewise.
9107 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9108 * ser-base.c (serial_ttystate): Likewise.
9109 * ser-mingw.c (make_pipe_state): Likewise.
9110 * ser-pipe.c (pipe_open): Likewise.
9111 * serial.c (serial_open): Likewise.
9112 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9113 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9114 (tui_alloc_win_info): Likewise.
9115 (tui_add_content_elements): Likewise.
9116 * tui/tui-file.c (tui_file_new): Likewise.
9117 * tui/tui-out.c (tui_out_new): Likewise.
9118 * ui-file.c (mem_file_new): Likewise.
9119 * ui-out.c (push_level): Likewise.
9120 (make_cleanup_ui_out_end): Likewise.
9121 (append_header_to_list): Likewise.
9122 (ui_out_new): Likewise.
9123 * user-regs.c (user_reg_add_builtin): Likewise.
9125 2014-01-13 Tom Tromey <tromey@redhat.com>
9127 * defs.h (XZALLOC): Remove.
9128 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9129 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9130 (get_ada_tasks_inferior_data): Likewise.
9131 * auto-load.c (get_auto_load_pspace_data): Likewise.
9132 * auxv.c (get_auxv_inferior_data): Likewise.
9133 * bfd-target.c (target_bfd_reopen): Likewise.
9134 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9135 (deprecated_insert_raw_breakpoint): Likewise.
9136 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9137 * corelow.c (core_open): Likewise.
9138 * darwin-nat.c (darwin_check_new_threads): Likewise.
9139 (darwin_attach_pid): Likewise.
9140 * dummy-frame.c (dummy_frame_push): Likewise.
9141 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9142 * dwarf2loc.c (allocate_piece_closure): Likewise.
9143 * elfread.c (elf_symfile_segments): Likewise.
9144 * eval.c (ptrmath_type_p): Likewise.
9145 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9146 * gdbtypes.c (alloc_type_arch): Likewise.
9147 (alloc_type_instance): Likewise.
9148 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9149 * inf-child.c (inf_child_can_use_agent): Likewise.
9150 * inflow.c (get_inflow_inferior_data): Likewise.
9151 * infrun.c (save_infcall_suspend_state): Likewise.
9152 * jit.c (jit_reader_load): Likewise.
9153 (get_jit_objfile_data): Likewise.
9154 (get_jit_program_space_data): Likewise.
9155 (jit_object_open_impl): Likewise.
9156 (jit_symtab_open_impl): Likewise.
9157 (jit_block_open_impl): Likewise.
9158 (jit_frame_sniffer): Likewise.
9159 * linux-fork.c (add_fork): Likewise.
9160 * maint.c (make_command_stats_cleanup): Likewise.
9161 * objfiles.c (get_objfile_pspace_data): Likewise.
9162 * opencl-lang.c (struct lval_closure): Likewise.
9163 * osdata.c (osdata_start_osdata): Likewise.
9164 * progspace.c (new_address_space): Likewise.
9165 (add_program_space): Likewise.
9166 * remote-sim.c (get_sim_inferior_data): Likewise.
9167 * sh-tdep.c (sh_gdbarch_init): Likewise.
9168 * skip.c (Ignore): Likewise.
9169 (skip_delete_command): Likewise.
9170 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9171 (library_list_start_library): Likewise.
9172 (solib_aix_current_sos): Likewise.
9173 * solib-darwin.c (get_darwin_info): Likewise.
9174 (darwin_current_sos): Likewise.
9175 * solib-dsbt.c (get_dsbt_info): Likewise.
9176 * solib-ia64-hpux.c (new_so_list): Likewise.
9177 (ia64_hpux_get_solib_linkage_addr): Likewise.
9178 * solib-spu.c (append_ocl_sos): Likewise.
9179 (spu_current_sos): Likewise.
9180 * solib-svr4.c (get_svr4_info): Likewise.
9181 (svr4_keep_data_in_core): Likewise.
9182 (library_list_start_library): Likewise.
9183 (svr4_default_sos): Likewise.
9184 (svr4_read_so_list): Likewise.
9185 * solib-target.c (library_list_start_library): Likewise.
9186 (solib_target_current_sos): Likewise.
9187 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9188 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9189 * symfile.c (default_symfile_segments): Likewise.
9190 * target-descriptions.c (tdesc_data_init): Likewise.
9191 (tdesc_create_reg): Likewise.
9192 (struct tdesc_type *): Likewise.
9193 (tdesc_create_vector): Likewise.
9194 (tdesc_set_struct_size): Likewise.
9195 (struct tdesc_type *): Likewise.
9196 (tdesc_free_feature): Likewise.
9197 (tdesc_create_feature): Likewise.
9198 * windows-nat.c (windows_add_thread): Likewise.
9199 (windows_make_so): Likewise.
9200 * xml-support.c (gdb_xml_body_text): Likewise.
9201 (gdb_xml_create_parser_and_cleanup): Likewise.
9202 (xml_process_xincludes): Likewise.
9203 * xml-syscall.c (allocate_syscalls_info): Likewise.
9204 (syscall_create_syscall_desc): Likewise.
9206 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9208 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9209 function, with code from i386_stap_parse_special_token.
9210 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9211 (i386_stap_parse_special_token): Move code to the two functions
9214 2014-01-09 Pedro Alves <palves@redhat.com>
9215 Hui Zhu <hui@codesourcery.com>
9218 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9219 bp_err_string. Don't mark the location shlib_disabled if the
9220 error thrown wasn't a generic or memory error. Catch errors
9221 thrown while inserting breakpoints in overlayed code. Output
9222 error message of software breakpoints.
9223 * remote.c (remote_insert_breakpoint): If this breakpoint has
9224 target-side commands but this stub doesn't support Z0 packets,
9225 throw NOT_SUPPORTED_ERROR error.
9226 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9227 * target.h (target_insert_breakpoint): Extend comment.
9228 (target_insert_hw_breakpoint): Add comment.
9230 2014-01-08 Pedro Alves <palves@redhat.com>
9232 * remote.c (remote_add_thread): Add threads silently if starting
9234 (remote_notice_new_inferior): If in all-stop, and starting up,
9235 don't call notice_new_inferior.
9236 (get_current_thread): New function, factored out from ...
9237 (add_current_inferior_and_thread): ... this. Adjust.
9238 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9239 found any thread, then select the remote's current thread as GDB's
9242 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9244 * NEWS: Create a new section for the next release branch.
9245 Rename the section of the current branch, now that it has
9248 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9250 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9251 * version.in: Bump version to 7.7.50.DATE-cvs.
9253 2014-01-08 Yao Qi <yao@codesourcery.com>
9255 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9256 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9257 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9259 2014-01-08 Yao Qi <yao@codesourcery.com>
9261 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9262 return value of bfd_get_filename to symbol_file_add_from_bfd.
9264 2014-01-08 Pierre Muller <muller@sourceware.org>
9267 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9268 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9269 to prim_record_mininal_symbol_and_info.
9270 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9271 in call to prim_record_minimal_symbol_and_info.
9272 (read_pe_exported_syms): Set index field of section_data.
9274 2014-01-07 Andrew Pinski <apinski@cavium.com>
9276 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9277 * features/aarch64.c: Regenerate.
9279 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9281 * target.c (return_null): Define.
9282 (update_current_target): Use it instead of return_zero for
9283 functions that return a pointer.
9285 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9287 * source.c (add_path): Fix check for duplicated paths in the previously
9290 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9292 * ada-lang.c: Remove duplicated include statements.
9293 * alphabsd-nat.c: Ditto.
9294 * amd64-darwin-tdep.c: Ditto.
9295 * amd64fbsd-nat.c: Ditto.
9296 * auto-load.c: Ditto.
9298 * breakpoint.c: Ditto.
9300 * fork-child.c: Ditto.
9301 * gdb_usleep.c: Ditto.
9302 * i386-darwin-tdep.c: Ditto.
9303 * i386fbsd-nat.c: Ditto.
9305 * inferior.c: Ditto.
9307 * linux-nat.c: Ditto.
9308 * linux-tdep.c: Ditto.
9309 * m68kbsd-nat.c: Ditto.
9310 * m68klinux-nat.c: Ditto.
9311 * microblaze-tdep.c: Ditto.
9312 * mips-linux-tdep.c: Ditto.
9313 * mn10300-tdep.c: Ditto.
9314 * nto-tdep.c: Ditto.
9315 * opencl-lang.c: Ditto.
9317 * printcmd.c: Ditto.
9318 * regcache.c: Ditto.
9319 * remote-m32r-sdi.c: Ditto.
9323 * tilegx-linux-nat.c: Ditto.
9324 * tilegx-tdep.c: Ditto.
9325 * tracepoint.c: Ditto.
9327 * vaxbsd-nat.c: Ditto.
9328 * windows-nat.c: Ditto.
9329 * xtensa-tdep.c: Ditto.
9331 2014-01-07 Yao Qi <yao@codesourcery.com>
9333 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9335 2014-01-07 Yao Qi <yao@codesourcery.com>
9336 Joel Brobecker <brobecker@adacore.com>
9338 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9339 (pdc_write_regs): Likewise.
9340 (fetch_regs_kernel_thread): Likewise.
9341 (store_regs_kernel_thread): Likewise.
9343 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9345 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9346 tagged type objects to their actual type.
9348 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9350 * ada-valprint.c (print_field_values): Add "language" parameter.
9351 Update calls to print_field_values and print_variant_part.
9352 Pass new parameter "language" in call to val_print instead
9353 of "current_language". Replace call to ada_val_print by call
9355 (print_variant_part): Add "language" parameter.
9356 (ada_val_print_struct_union): Update call to print_field_values.
9358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9360 * ada-valprint.c (ui_memcpy): Delete.
9361 (ada_print_floating): Update documentation. Add empty line
9362 between between function documentation and implementation.
9363 Delete variable "buffer". Use ui_file_xstrdup in place of
9364 ui_file_put. Minor adjustments following this change.
9366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9368 * ada-valprint.c (ada_val_print_string): New function,
9369 extracted from ada_val_print_array.
9370 (ada_val_print_array): Replace extracted code by call
9371 to ada_val_print_string followed by a return. Move
9372 "else" branch to the function's top block.
9374 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9376 * ada-valprint.c (ada_val_print_array): Move implementation
9377 down. Rename parameter "offset" and "val" into "offset_aligned"
9378 and "original_value" respectively. Add parameter "offset".
9380 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9382 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9383 re-organizing the code. Change the "???" message printed
9384 when target type is a TYPE_CODE_UNDEF into
9385 "<ref to undefined type>".
9387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9389 * ada-valprint.c (print_record): Delete, implementation inlined...
9390 (ada_val_print_struct_union): ... here. Remove call to
9391 ada_check_typedef in inlined implementation.
9393 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9395 * ada-valprint.c (ada_val_print_gnat_array): New function,
9396 extracted from ada_val_print_1;
9397 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9398 (ada_val_print_flt, ada_val_print_struct_union)
9399 (ada_val_print_ref): Likewise.
9400 (ada_val_print_1): Delete variables i and elttype.
9401 Replace extracted-out code by call to corresponding
9404 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9406 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9410 * ada-valprint.c (ada_val_print_1): Replace calls to
9411 ada_val_print_1 by calls to val_print.
9413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9415 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9416 Update calls to self accordingly. Replace calls to c_val_print
9417 by calls to val_print.
9419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9421 * ada-valprint.c (print_record): Delete declaration.
9422 (adjust_type_signedness, ada_val_print_1): Likewise.
9423 (ada_val_print): Move function implementation down.
9424 (print_variant_part, print_field_values, print_record):
9425 Move function implementation up.
9427 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9429 * python/py-type.c (typy_get_name): New function.
9430 (type_object_getset): Add entry for attribute "name".
9431 * NEWS: Add entry mentioning this new attribute.
9433 2014-01-07 Yao Qi <yao@codesourcery.com>
9435 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9438 2014-01-07 Yao Qi <yao@codesourcery.com>
9440 * gnu-nat.c (info_port_rights): Add qualifier const to
9443 2014-01-07 Yao Qi <yao@codesourcery.com>
9445 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9447 2014-01-07 Yao Qi <yao@codesourcery.com>
9449 * gnu-nat.c (make_inf) Update declaration.
9450 (make_inf): Make it static.
9451 (inf_set_traced): Likewise.
9452 (inf_port_to_thread, inf_task_died_status): Likewise.
9454 2014-01-07 Yao Qi <yao@codesourcery.com>
9456 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9458 2014-01-07 Yao Qi <yao@codesourcery.com>
9460 * gnu-nat.c (_initialize_gnu_nat): Declare.
9462 2014-01-07 Yao Qi <yao@codesourcery.com>
9464 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9466 (struct gdbarch_info) <byte_order>: Change type to
9468 <byte_order_for_code>: Likewise.
9469 * gdbarch.c, gdbarch.h: Regenerated.
9471 2014-01-06 Sasha Smundak <asmundak@google.com>
9473 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9475 2014-01-06 Tom Tromey <tromey@redhat.com>
9477 * doublest.c (convert_doublest_to_floatformat): Use const, not
9479 * somread.c (som_symtab_read): Likewise.
9481 2014-01-07 Hui Zhu <hui@codesourcery.com>
9483 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9484 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9485 (gdb_bfd_fopen): Ditto.
9486 (gdb_bfd_openr): Ditto.
9487 (gdb_bfd_openw): Ditto.
9488 (gdb_bfd_openr_iovec): Ditto.
9489 (gdb_bfd_fdopenr): Ditto.
9490 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9491 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9493 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9495 * symfile-mem.c (symbol_file_add_from_memory): Removed
9496 gdb_bfd_stash_filename.
9498 2014-01-03 Doug Evans <dje@google.com>
9500 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9503 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9505 Update year range in copyright notice of all files.
9507 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9509 * top.c (print_gdb_version): Set copyright year to 2014.
9511 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9513 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9515 For older changes see ChangeLog-2013.
9521 version-control: never