1 2014-06-19 Gary Benson <gbenson@redhat.com>
3 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4 * configure: Regenerate.
6 * main.c (signal.h): New include.
7 (setup_alternate_signal_stack): New function.
8 (captured_main): Call the above.
9 * cp-support.c (signal.h): New include.
10 (catch_demangler_crashes): New flag.
11 (SIGJMP_BUF): New define.
12 (SIGSETJMP): Likewise.
13 (SIGLONGJMP): Likewise.
14 (gdb_demangle_jmp_buf): New static global.
15 (gdb_demangle_attempt_core_dump): Likewise.
16 (gdb_demangle_signal_handler): New function.
17 (gdb_demangle): If catch_demangler_crashes is set, install the
18 above signal handler before calling bfd_demangle, and restore
19 the original signal handler afterwards. Display the offending
20 symbol and call demangler_warning the first time a segmentation
22 (_initialize_cp_support): New maint set/show command.
24 2014-06-19 Gary Benson <gbenson@redhat.com>
26 * utils.h (resource_limit_kind): New enum.
27 (can_dump_core): New declaration.
28 (warn_cant_dump_core): Likewise.
29 (dump_core): Likewise.
30 * utils.c (dump_core): Made nonstatic. Added new
31 parameter "limit_kind".
32 (can_dump_core): Made nonstatic. Moved printing code to...
33 (warn_cant_dump_core): New function.
34 (can_dump_core_warn): Likewise.
35 (internal_vproblem): Replace calls to can_dump_core with
36 calls to can_dump_core_warn. Supply new argument to each.
38 2014-06-19 Gary Benson <gbenson@redhat.com>
40 * utils.h (demangler_vwarning): New declaration.
41 (demangler_warning): Likewise.
42 * utils.c (struct internal_problem)
43 <user_settable_should_quit>: New field.
44 <user_settable_should_dump_core>: Likewise
45 (internal_error_problem): Add values for above new fields.
46 (internal_warning_problem): Likewise.
47 (demangler_warning_problem): New static global.
48 (demangler_vwarning): New function.
49 (demangler_warning): Likewise.
50 (add_internal_problem_command): Selectively add commands.
51 (_initialize_utils): New internal problem command.
52 * maint.c (maintenance_demangler_warning): New function.
53 (_initialize_maint_cmds): New command.
55 2014-06-18 Tom Tromey <tromey@redhat.com>
57 * f-valprint.c (info_common_command_for_block): Update.
58 * symtab.h (struct general_symbol_info) <common_block>: Now
61 2014-06-18 Tom Tromey <tromey@redhat.com>
63 * symtab.h (struct symtab) <blockvector>: Now const.
64 * ada-lang.c (ada_add_global_exceptions): Update.
65 * buildsym.c (augment_type_symtab): Update.
66 * dwarf2read.c (dw2_lookup_symbol): Update.
67 * jit.c (finalize_symtab): Update.
68 * jv-lang.c (add_class_symtab_symbol): Update.
69 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
71 * objfiles.c (objfile_relocate1): Update.
72 * psymtab.c (lookup_symbol_aux_psymtabs)
73 (maintenance_check_psymtabs): Update.
74 * python/py-symtab.c (stpy_global_block, stpy_static_block):
76 * spu-tdep.c (spu_catch_start): Update.
77 * symmisc.c (dump_symtab_1): Update.
78 * symtab.c (lookup_global_symbol_from_objfile)
79 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
80 (basic_lookup_transparent_type_quick)
81 (basic_lookup_transparent_type, find_pc_sect_symtab)
82 (find_pc_sect_line, search_symbols): Update.
83 * block.c (find_block_in_blockvector): Make "bl" const.
84 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
86 (blockvector_contains_pc): Make "bv" const.
87 (block_for_pc_sect): Update.
88 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
89 (blockvector_contains_pc): Update.
90 * breakpoint.c (resolve_sal_pc): Update.
91 * inline-frame.c (block_starting_point_at): Update.
93 2014-06-18 Tom Tromey <tromey@redhat.com>
95 * completer.c (complete_line): Make "line_buffer" const.
96 * completer.h (complete_line): Update.
98 2014-06-18 Tom Tromey <tromey@redhat.com>
100 * symtab.c (add_macro_name): Remove unneeded cast.
102 2014-06-18 Tom Tromey <tromey@redhat.com>
104 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
105 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
107 2014-06-18 Tom Tromey <tromey@redhat.com>
109 * probe.c (info_probes_for_ops): Make "arg" const.
110 * probe.h (info_probes_for_ops): Update.
112 2014-06-18 Tom Tromey <tromey@redhat.com>
114 * varobj.c (varobj_create): Update.
115 * valops.c (value_of_this): Update.
116 * tracepoint.c (add_local_symbols, scope_info): Update.
117 * symtab.h (struct general_symbol_info) <block>: Now const.
118 * symtab.c (skip_prologue_sal)
119 (default_make_symbol_completion_list_break_on)
120 (skip_prologue_using_sal): Update.
121 * stack.h (iterate_over_block_locals)
122 (iterate_over_block_local_vars): Update.
123 * stack.c (print_frame_args): Update.
124 (iterate_over_block_locals, iterate_over_block_local_vars): Make
126 (get_selected_block): Make return type const.
127 * python/py-frame.c (frapy_block): Update.
128 * python/py-block.c (gdbpy_block_for_pc): Update.
129 * p-exp.y (%union) <bval>: Now const.
130 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
131 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
132 * m2-exp.y (%union) <bval>: Now const.
133 * linespec.c (get_current_search_block): Make return type const.
134 (create_sals_line_offset, find_label_symbols): Update.
135 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
137 (block_starting_point_at): Make "block" const.
138 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
139 (check_exception_resume): Update.
140 * guile/scm-frame.c (gdbscm_frame_block): Update.
141 * guile/scm-block.c (gdbscm_lookup_block): Update.
142 * frame.h (get_frame_block): Update.
143 (get_selected_block): Make return type const.
144 * frame.c (frame_id_inner): Update.
145 * f-valprint.c (info_common_command_for_block)
146 (info_common_command): Update.
147 * dwarf2loc.c (dwarf2_find_location_expression)
148 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
149 (locexpr_describe_location_piece): Update.
150 * c-exp.y (%union) <bval>: Now const.
151 * breakpoint.c (resolve_sal_pc): Update.
152 * blockframe.c (get_frame_block):Make return type const.
153 (get_pc_function_start, get_frame_function, find_pc_sect_function)
154 (block_innermost_frame): Update.
155 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
156 (block_for_pc, block_for_pc_sect): Update.
157 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
159 (block_for_pc_sect, block_for_pc): Make return type const.
160 * ax-gdb.c (gen_expr): Update.
161 * alpha-mdebug-tdep.c (find_proc_desc): Update.
162 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
163 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
164 (ada_read_var_value): Update.
165 * ada-exp.y (struct name_info) <block>: Now const.
167 (block_lookup): Constify.
169 2014-06-18 Gary Benson <gbenson@redhat.com>
171 * nat/i386-dregs.h: New file.
172 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
173 * i386-nat.h (i386-dregs.h): New include.
174 (DR_FIRSTADDR): Now in i386-dregs.h.
175 (DR_LASTADDR): Likewise.
176 (DR_NADDR): Likewise.
177 (DR_STATUS): Likewise.
178 (DR_CONTROL): Likewise.
179 (i386_debug_reg_state): Likewise.
180 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
182 2014-06-18 Don Breazeal <donb@codesourcery.com>
184 * breakpoint.c (set_longjmp_breakpoint): Call
185 momentary_breakpoint_from_master with additional argument.
186 (set_longjmp_breakpoint_for_call_dummy): Call
187 momentary_breakpoint_from_master with additional argument.
188 (set_std_terminate_breakpoint): Call
189 momentary_breakpoint_from_master with additional argument.
190 (momentary_breakpoint_from_master): Add argument to function
191 definition and use it to initialize structure member flag.
192 (clone_momentary_breakpoint): Call
193 momentary_breakpoint_from_master with additional argument.
194 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
195 member flags set in momentary_breakpoint_from_master.
197 2014-06-18 Gary Benson <gbenson@redhat.com>
199 * i386-nat.c (i386_show_dr): Renamed to
200 i386_dr_show and made nonstatic. All uses updated.
201 (i386_length_and_rw_bits): Renamed to
202 i386_dr_length_and_rw_bits and made nonstatic.
204 (i386_insert_aligned_watchpoint): Renamed to
205 i386_dr_insert_aligned_watchpoint and made nonstatic.
207 (i386_remove_aligned_watchpoint): Renamed to
208 i386_dr_remove_aligned_watchpoint and made nonstatic.
210 (i386_update_inferior_debug_regs): Renamed to
211 i386_dr_update_inferior_debug_regs and made nonstatic.
214 2014-06-18 Gary Benson <gbenson@redhat.com>
216 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
217 (i386_dr_low_can_set_control): Likewise.
218 (i386_dr_low_set_addr): Likewise.
219 (i386_dr_low_set_control): Likewise.
220 (i386_dr_low_get_addr): Likewise.
221 (i386_dr_low_get_status): Likewise.
222 (i386_dr_low_get_control): Likewise.
223 (i386_insert_aligned_watchpoint): Use new macros.
224 (i386_update_inferior_debug_regs): Likewise.
225 (i386_stopped_data_address): Likewise.
227 2014-06-18 Gary Benson <gbenson@redhat.com>
229 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
230 New parameter. All uses updated.
232 2014-06-18 Gary Benson <gbenson@redhat.com>
234 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
237 2014-06-18 Gary Benson <gbenson@redhat.com>
239 * i386-nat.c (debug_printf): New macro.
240 (i386_get_debug_register_length): Likewise.
241 (TARGET_HAS_DR_LEN_8): Use above macro.
242 (i386_show_dr): Use debug_printf instead of puts_unfiltered
243 and printf_unfiltered. Use phex to format values.
245 2014-06-18 Gary Benson <gbenson@redhat.com>
247 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
250 2014-06-18 Gary Benson <gbenson@redhat.com>
252 * i386-nat.c: Comment changes.
254 2014-06-18 Gary Benson <gbenson@redhat.com>
256 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
258 2014-06-18 Gary Benson <gbenson@redhat.com>
260 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
261 (i386_insert_aligned_watchpoint): Likewise.
262 (i386_remove_aligned_watchpoint): Likewise.
263 (i386_handle_nonaligned_watchpoint): Likewise.
265 2014-06-18 Gary Benson <gbenson@redhat.com>
267 * i386-nat.c: Whitespace changes.
269 2014-06-17 Samuel Bronson <naesten@gmail.com>
271 * MAINTAINERS: Update Roland McGrath's email address.
272 Thanks to Sergio Durigan Junior for pointing out that he left
273 Red Hat a while ago, and giving me a current address.
275 2014-06-17 Tom Tromey <tromey@redhat.com>
277 * utils.h (savestring): Remove declaration.
279 2014-06-17 Tom Tromey <tromey@redhat.com>
281 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
283 2014-06-16 Keith Seitz <keiths@redhat.com>
286 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
287 to update the varobj if inferior_ptid is null_ptid.
289 2014-06-16 Tom Tromey <tromey@redhat.com>
291 * target.h (struct target_ops) <to_info_proc>: Make parameter
293 (target_info_proc): Update.
294 * target.c (target_info_proc): Make "args" const.
295 * procfs.c (procfs_info_proc): Update.
296 * linux-tdep.c (linux_info_proc): Update.
297 (linux_core_info_proc_mappings): Make "args" const.
298 (linux_core_info_proc): Update.
299 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
300 * gdbarch.c: Rebuild.
301 * gdbarch.h: Rebuild.
302 * corelow.c (core_info_proc): Update.
304 2014-06-16 Tom Tromey <tromey@redhat.com>
306 * target.h (struct target_ops) <to_disconnect>: Make parameter
308 (target_disconnect): Update.
309 * target.c (target_disconnect): Make "args" const.
310 * target-delegates.c: Rebuild.
311 * remote.c (remote_disconnect): Update.
312 * record.h (record_disconnect): Update.
313 * record.c (record_disconnect): Update.
314 * inf-child.c (inf_child_disconnect): Update.
316 2014-06-16 Tom Tromey <tromey@redhat.com>
318 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
319 * target.c (debug_to_rcmd, default_rcmd): Update.
320 * target-delegates.c: Rebuild.
321 * remote.c (remote_rcmd): Update.
322 * monitor.c (monitor_rcmd): Update.
324 2014-06-16 Pedro Alves <palves@redhat.com>
326 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
327 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
328 have OBJF_SHARED set.
329 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
330 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
331 instead of OBJF_USERLOADED.
332 * objfiles.h (OBJF_SHARED): Update comment.
333 (userloaded_objfile_contains_address_p): Rename to ...
334 (shared_objfile_contains_address_p): ... this, and update
336 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
338 (remove_symbol_file_command): Skip objfiles that don't have
341 2014-06-16 Tom Tromey <tromey@redhat.com>
343 * minsyms.h (prim_record_minimal_symbol)
344 (prim_record_minimal_symbol_and_info): Update comments.
346 2014-06-14 Eli Zaretskii <eliz@gnu.org>
348 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
349 or --without-guile, according to how GDB was built.
351 2014-06-13 Tom Tromey <tromey@redhat.com>
353 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
355 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
357 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
359 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
360 help_list.Pass all_commands, not -1, to help_list.
361 * cli/cli-dump.c (dump_command, append_command)
362 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
363 (binary_dump_command, binary_append_command): Pass all_commands,
364 not -1, to help_list.
365 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
367 * valprint.c (set_print, set_print_raw): Pass all_commands, not
369 * typeprint.c (set_print_type): Pass all_commands, not -1, to
371 * top.c (set_history): Pass all_commands, not -1, to help_list.
372 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
373 all_commands, not -1, to help_list.
374 * symfile.c (overlay_command): Pass all_commands, not -1, to
376 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
378 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
380 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
382 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
383 not -1, to help_list.
384 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
385 not -1, to help_list.
386 * maint.c (maintenance_command, maintenance_info_command)
387 (maintenance_print_command, maintenance_set_cmd): Pass
388 all_commands, not -1, to help_list.
389 * macrocmd.c (macro_command): Pass all_commands, not -1, to
391 * language.c (set_check): Pass all_commands, not -1, to help_list.
392 * infcmd.c (unset_command): Pass all_commands, not -1, to
394 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
396 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
398 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
400 * breakpoint.c (save_command): Pass all_commands, not -1, to
402 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
403 all_commands, not -1, to help_list.
405 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
407 * regcache.c (struct register_to_invalidate): New structure.
408 (do_register_invalidate, make_cleanup_regcache_invalidate): New
410 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
412 2014-06-12 Yao Qi <yao@codesourcery.com>
414 * varobj.c (varobj_get_num_children): Call
416 (varobj_list_children): Likewise.
417 (varobj_update): Likewise. Update comments.
419 2014-06-12 Yao Qi <yao@codesourcery.com>
421 * varobj.c (varobj_pretty_printed_p): Rename to ...
422 (varobj_is_dynamic_p): ... this. New function.
423 * varobj.h (varobj_pretty_printed_p): Remove declaration.
424 (varobj_is_dynamic_p): Declare.
425 * mi/mi-cmd-var.c (print_varobj): All callers updated.
426 (mi_print_value_p, varobj_update_one): Likewise.
428 2014-06-12 Pedro Alves <pedro@codesourcery.com>
429 Yao Qi <yao@codesourcery.com>
431 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
432 (varobj_get_iterator): Wrap up code for pretty-printer by
433 "#if HAVE_PYTHON" and "#endif".
434 (update_dynamic_varobj_children): Likewise.
436 2014-06-12 Pedro Alves <pedro@codesourcery.com>
437 Yao Qi <yao@codesourcery.com>
439 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
440 gdb_python_initialized is false. Move some code from varobj.c.
441 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
442 * varobj.c: Move "varobj-iter.h" inclusion earlier.
443 (struct varobj_item): Moved to varobj-iter.h".
444 (varobj_clear_saved_item): New function.
445 (update_dynamic_varobj_children): Move python-related code to
447 (free_variable): Call varobj_clear_saved_item and
450 2014-06-12 Pedro Alves <pedro@codesourcery.com>
451 Yao Qi <yao@codesourcery.com>
453 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
454 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
455 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
456 (py-varobj.o): New rule.
457 * python/py-varobj.c: New file.
458 * python/python-internal.h (py_varobj_get_iterator): Declare.
459 * varobj-iter.h: New file.
460 * varobj.c: Include "varobj-iter.h"
461 (struct varobj) <child_iter>: Change its type from "PyObject *"
462 to "struct varobj_iter *".
463 <saved_item>: Likewise.
464 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
465 [HAVE_PYTHON] (varobj_get_iterator): New function.
466 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
467 python-specific code to python/py-varobj.c.
468 (install_visualizer): Call varobj_iter_delete instead of
470 * varobj.h (varobj_ensure_python_env): Declare.
472 2014-06-12 Yao Qi <yao@codesourcery.com>
474 * varobj.c (struct varobj_item): New structure.
475 (create_child_with_value): Update declaration.
476 (varobj_add_child): Replace arguments 'name' and 'value' with
477 'item'. All callers updated.
478 (install_dynamic_child): Likewise.
479 (update_dynamic_varobj_children): Likewise.
480 (varobj_add_child): Likewise.
481 (create_child_with_value): Likewise.
483 2014-06-11 Joel Brobecker <brobecker@adacore.com>
485 * NEWS: Create a new section for the next release branch.
486 Rename the section of the current branch, now that it has
489 2014-06-11 Joel Brobecker <brobecker@adacore.com>
491 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
492 * version.in: Bump version to 7.8.50.DATE-cvs.
494 2014-06-11 Pedro Alves <palves@redhat.com>
497 * ser-mingw.c (net_windows_socket_check_pending): New function.
498 (net_windows_select_thread): Ignore spurious wakeups. Use
499 net_windows_socket_check_pending.
500 (net_windows_wait_handle): Check for pending events with
501 ioctlsocket, through net_windows_socket_check_pending, instead of
502 checking the socket's event.
504 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
506 * python/python-internal.h (gdb_PyObject_GetAttrString)
507 (gdb_PyObject_HasAttrString): New inline function definitions.
508 * py-value.c (get_field_flag): Remove the now unnecessary cast to
509 char * of the second argument to PyObject_GetAttrString.
511 2014-06-10 Joel Brobecker <brobecker@adacore.com>
513 * serial.c (serial_write): Fix index of character to be printed
514 in call to serial_logchar when serial debug traces are enabled.
516 2014-06-10 Joel Brobecker <brobecker@adacore.com>
518 * gdbtypes (resolve_dynamic_range): Add function description.
520 2014-06-09 Pedro Alves <palves@redhat.com>
522 * linux-nat.c (linux_child_follow_fork): Initialize status with
523 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
524 inner block. Only pass the signal to PTRACE_DETACH if in pass
527 2014-06-09 Gary Benson <gbenson@redhat.com>
529 * common/signals.c (gdb_signal_from_host): Reorder to separate
530 the always-available ANSI-standard signals from the signals that
532 (do_gdb_signal_to_host): Likewise.
533 * proc-events.c (signal_table): Likewise.
535 2014-06-08 Hui Zhu <hui@codesourcery.com>
537 * common/linux-ptrace.c (linux_disable_event_reporting): New
539 * common/linux-ptrace.h (linux_disable_event_reporting): New
541 * linux-nat.c (linux_child_follow_fork): Do a single step before
544 2014-06-07 Keith Seitz <keiths@redhat.com>
548 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
549 from symbol_matches_domain in symtab.c. All local callers
550 of symbol_matches_domain updated.
551 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
552 search STRUCT_DOMAIN.
553 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
554 independently. standard_lookup will do that automatically.
555 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
556 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
557 (cp_lookup_symbol_in_namespace): Likewise.
558 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
559 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
560 may return a STRUCT_DOMAIN match.
561 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
562 * cp-support.c: Include language.h.
563 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
565 * psymtab.c (match_partial_symbol): Compare the requested
566 domain with the symbol's domain directly.
567 (lookup_partial_symbol): Likewise.
568 * symtab.c (lookup_symbol_in_language): Explain when/why
569 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
570 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
571 appropriate languages.
572 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
573 and moved to ada-lang.c
574 (lookup_block_symbol): Explain that this function only returns
575 symbol matching the requested DOMAIN.
576 Compare the requested domain with the symbol's domain directly.
577 (iterate_over_symbols): Compare the requested domain with the
578 symbol's domain directly.
579 * symtab.h (symbol_matches_domain): Remove.
581 2014-06-06 Doug Evans <xdje42@gmail.com>
583 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
584 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
585 (gdbscm_guile_version_is_at_least): Declare.
586 (gdbscm_scm_string_to_int): Declare.
587 * guile/guile.c (gdbscm_guile_major_version): New global.
588 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
589 (guile_datadir): New static global.
590 (gdbscm_guile_data_directory): New function.
591 (initialize_scheme_side): Update.
592 (misc_guile_functions): Add guile-data-directory.
593 (initialize_gdb_module): Fetch guile version number.
594 * guile/lib/gdb.scm: Remove call to add-to-load-path.
595 * guile/lib/gdb/init.scm (%initialize!): Ditto.
596 * guile/lib/gdb/boot.scm: Use guile-data-directory.
597 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
599 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
600 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
601 * guile/scm-value.c (gdbscm_value_to_string): Only call
602 scm_port_conversion_strategy if Guile version >= 2.0.6.
604 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
606 * main.c (print_gdb_help): Add -q and --silent.
608 2014-06-06 Gary Benson <gbenson@redhat.com>
610 * common/signals.c: Remove preprocessor conditionals for
611 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
613 * proc-events.c: Likewise.
615 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
617 * symfile.c (symfile_free_objfile): Remove restriction to
619 * symfile-mem.c (symbol_file_add_from_memory): Call
620 add_target_sections_of_objfile.
622 2014-06-05 Ludovic Courtès <ludo@gnu.org>
624 * guile/scm-value.c (gdbscm_history_append_x): Use
625 'vlscm_get_value_smob_arg_unsafe' instead of
626 'vlscm_scm_to_value'.
628 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
631 * utils.c (printchar): Don't escape at all if quoter is NUL.
632 Update function documentation to clarify effect of parameter
634 * remote.c (escape_buffer): Pass '\\' as the quoter to
636 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
638 (mi_solib_unloaded): Same.
640 2014-06-05 Joel Brobecker <brobecker@adacore.com>
642 * development.sh: Delete.
643 * Makefile.in (config.status): Adjust dependency on development.sh.
644 * configure.ac: Adjust development.sh source call.
645 * configure: Regenerate.
647 2014-06-04 Doug Evans <xdje42@gmail.com>
649 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
650 is_scheme_bkpt, spec.
651 (bpscm_make_breakpoint_smob): Initialize new members.
652 (gdbscm_create_breakpoint_x): Split into two ...
653 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
654 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
655 (scheme_function breakpoint_functions): Update.
656 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
657 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
658 register-breakpoint!.
660 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
663 * mem-break.c (z_type_supported): Return zero if
664 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
666 2014-06-04 Tom Tromey <tromey@redhat.com>
668 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
669 value_from_contents_and_address_unresolved.
670 (ada_template_to_fixed_record_type_1): Likewise.
671 (ada_which_variant_applies): Likewise.
672 * value.h (value_from_contents_and_address_unresolved): Declare.
673 * value.c (value_from_contents_and_address_unresolved): New
675 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
676 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
677 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
679 2014-06-04 Tom Tromey <tromey@redhat.com>
681 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
683 2014-06-04 Tom Tromey <tromey@redhat.com>
685 * procfs.c (procfs_attach): Make "args" const.
686 * windows-nat.c (windows_attach): Make "args" const.
687 * nto-procfs.c (procfs_attach): Make "args" const.
688 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
689 * go32-nat.c (go32_attach): Make "args" const.
690 * gnu-nat.c (gnu_attach): Make "args" const.
691 * darwin-nat.c (darwin_attach): Make "args" const.
692 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
693 * linux-nat.c (linux_nat_attach): Make "args" const.
694 * remote.c (extended_remote_attach_1, extended_remote_attach):
696 * target.h (struct target_ops) <to_attach>: Make "args" const.
697 (find_default_attach): Likewise.
698 * utils.c (parse_pid_to_attach): Make "args" const.
699 * utils.h (parse_pid_to_attach): Update.
701 2014-06-04 Tom Tromey <tromey@redhat.com>
703 * target-delegates.c: Rebuild.
704 * target.c (default_thread_address_space): New function.
705 (target_thread_address_space): Simplify.
706 * target.h (struct target_ops) <to_thread_address_space>: Add
709 2014-06-04 Doug Evans <xdje42@gmail.com>
711 * guile/scm-type.c (type_smob): Remove duplicate typedef.
713 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
715 * record-btrace.c: Include event-loop.h and inf-loop.h.
716 (record_btrace_resume_exec_dir)
717 (record_btrace_async_inferior_event_handler)
718 (record_btrace_handle_async_inferior_event): New.
719 (record_btrace_open): Create async event handler.
720 (record_btrace_close): Delete async event handler.
721 (record_btrace_resume): Set record_btrace_resume_exec_dir,
722 Mark async event handler.
723 (record_btrace_execution_direction): New.
724 (init_record_btrace_ops): Initialize to_execution_direction.
726 2014-06-03 Doug Evans <xdje42@gmail.com>
728 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
729 (gdbscm_make_parameter): Ditto.
731 2014-06-03 Doug Evans <dje@google.com>
733 * exec.c (exec_close_1): Call clear_section_table instead of
734 resize_section_table.
735 (clear_section_table): New function.
736 (resize_section_table): Make static. Rename arg num_added to
738 * exec.h (clear_section_table): Declare.
739 (resize_section_table): Delete.
740 * progspace.c (release_program_space): Call clear_section_table
741 instead of resize_section_table.
743 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
745 * NEWS (Python Scripting): Add entry about the new xmethods
748 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
750 * python/py-xmethods.c: New file.
751 * python/py-objfile.c (objfile_object): New field 'xmethods'.
752 (objfpy_dealloc): XDECREF on the new xmethods field.
753 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
755 (objfpy_get_xmethods): New function.
756 (objfile_getset): New entry 'xmethods'.
757 * python/py-progspace.c (pspace_object): New field 'xmethods'.
758 (pspy_dealloc): XDECREF on the new xmethods field.
759 (pspy_new, pspace_to_pspace_object): Initialize xmethods
761 (pspy_get_xmethods): New function.
762 (pspace_getset): New entry 'xmethods'.
763 * python/python-internal.h: Add declarations for new functions.
764 * python/python.c (_initialize_python): Invoke
765 gdbpy_initialize_xmethods.
766 * python/lib/gdb/__init__.py (xmethods): New
768 * python/lib/gdb/xmethod.py: New file.
769 * python/lib/gdb/command/xmethods.py: New file.
771 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
773 * eval.c (evaluate_subexp_standard): Call the xmethod if the
774 best match method returned by find_overload_match is an xmethod.
775 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
776 the best matching operator returned by find_overload_match is an
778 * valops.c: #include "extension.h".
779 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
780 Return void. The list of matching source methods is returned in
781 "fn_list" and a vector of matching debug method workers is
782 returned in "xm_worker_vec". Update all callers.
783 (value_find_oload_method_list): Likewise.
784 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
785 non-NULL, then the index of the best matching method in this
786 vector is returned. Update all callers.
787 (find_overload_match): Include xmethods while performing overload
790 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
792 * defs.h (enum lval_type): New enumerator "lval_xcallable".
793 * extension-priv.h (struct extension_language_ops): Add the
795 * extension.c (new_xmethod_worker, clone_xmethod_worker,
796 get_matching_xmethod_workers, get_xmethod_argtypes,
797 invoke_xmethod, free_xmethod_worker,
798 free_xmethod_worker_vec): New functions.
799 * extension.h: #include "common/vec.h".
800 New function declarations.
801 (struct xmethod_worker): New struct.
802 (VEC (xmethod_worker_ptr)): New vector type.
803 (xmethod_worker_ptr): New typedef.
804 (xmethod_worker_vec): Likewise.
805 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
807 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
808 (struct builtin_type): New field "xmethod".
809 * valarith.c (value_ptradd): Assert that the value argument is not
811 * valops.c (value_must_coerce_to_target): Return 0 for
812 lval_xcallable values.
813 * value.c (struct value): New field XM_WORKER in the field
815 (value_address, value_raw_address): Return 0 for lval_xcallable
817 (set_value_address): Assert that the value is not an
819 (value_free): Free the associated xmethod worker when freeing
820 lval_xcallable values.
821 (set_value_component_location): Assert that the WHOLE value is not
823 (value_of_xmethod, call_xmethod): New functions.
824 * value.h: Declare "struct xmethod_worker".
825 Declare new functions value_of_xmethod, call_xmethod.
827 2014-06-03 Joel Brobecker <brobecker@adacore.com>
828 Pedro Alves <palves@redhat.com>
831 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
832 New function, extracted from software_breakpoint_inserted_here_p.
833 (software_breakpoint_inserted_here_p): Replace factored out code
834 by call to find_non_raw_software_breakpoint_inserted_here.
835 (bp_target_info_copy_insertion_state): New function.
836 (bkpt_insert_location): Handle the case of a single-step
837 breakpoint already inserted at the same address.
838 (bkpt_remove_location): Handle the case of a single-step
839 breakpoint still inserted at the same address.
840 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
841 breakpoint already inserted at the same address.
842 (deprecated_remove_raw_breakpoint): Handle the case of a
843 non-raw breakpoint still inserted at the same address.
844 (find_single_step_breakpoint): New function, extracted from
845 single_step_breakpoint_inserted_here_p.
846 (find_single_step_breakpoint): New function,
847 factored out from single_step_breakpoint_inserted_here_p.
848 (single_step_breakpoint_inserted_here_p): Reimplement.
850 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
852 Pushed by Joel Brobecker <brobecker@adacore.com>
853 * source.c (show_substitute_path_command): Fix display of matching
856 2014-06-03 Gary Benson <gbenson@redhat.com>
858 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
860 2014-06-02 Doug Evans <xdje42@gmail.com>
862 Add parameter support for Guile.
863 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
864 (SUBDIR_GUILE_SRCS): Add scm-param.c.
865 (scm-param.o): New rule.
866 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
867 (gdbscm_misc_error): Declare.
868 (gdbscm_canonicalize_command_name): Declare.
869 (gdbscm_scm_to_host_string): Declare.
870 (gdbscm_scm_from_host_string): Declare.
871 (gdbscm_initialize_parameters): Declare.
872 * guile/guile.c (initialize_gdb_module): Call
873 gdbscm_initialize_parameters.
874 * guile/lib/gdb.scm: Export parameter symbols.
875 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
876 cmdscm_canonicalize_name and made public. All callers updated.
877 * guile/scm-exception.c (gdbscm_misc_error): New function.
878 * guile/scm-param.c: New file.
879 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
880 (gdbscm_scm_to_host_string): New function.
881 (gdbscm_scm_from_host_string): New function.
882 * scm-utils.c (gdbscm_gc_dup_argv): New function.
884 2014-06-02 Doug Evans <xdje42@gmail.com>
886 Add command support for Guile.
887 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
888 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
889 (scm-cmd.o): New rule.
890 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
891 (gdbscm_user_error_p): Declare.
892 (gdbscm_parse_command_name): Declare.
893 (gdbscm_valid_command_class_p): Declare.
894 (gdbscm_initialize_commands): Declare.
895 * guile/guile.c (initialize_gdb_module): Call
896 gdbscm_initialize_commands.
897 * guile/lib/gdb.scm: Export command symbols.
898 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
899 (throw-user-error): New function.
900 * guile/scm-cmd.c: New file.
901 * guile/scm-exception.c (user_error_symbol): New static global.
902 (gdbscm_user_error_p): New function.
903 (gdbscm_initialize_exceptions): Set user_error_symbol.
904 * scm-utils.c (gdbscm_gc_xstrdup): New function.
906 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
908 * top.c (command_loop): Handle comments here...
909 (command_line_input): ... not here.
911 2014-06-02 Doug Evans <xdje42@gmail.com>
913 Add progspace support for Guile.
914 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
915 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
916 (scm-progspace.o): New rule.
917 * guile/guile-internal.h (pspace_smob): New typedef.
918 (psscm_pspace_smob_pretty_printers): Declare.
919 (psscm_pspace_smob_from_pspace): Declare.
920 (psscm_scm_from_pspace): Declare.
921 * guile/guile.c (initialize_gdb_module): Call
922 gdbscm_initialize_pspaces.
923 * guile/lib/gdb.scm: Export progspace symbols.
924 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
926 (append-pretty-printer!): Ditto.
927 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
929 * guile/scm-progspace.c: New file.
931 2014-06-03 Alan Modra <amodra@gmail.com>
933 * ppc64-tdep.c (ppc64_standard_linkage8): New.
934 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
936 2014-06-02 Doug Evans <dje@google.com>
938 Add support for skeletonless type units.
939 * dwarf2read.c (struct dwarf2_per_objfile): New member
940 n_allocated_type_units.
941 (struct dwarf2_per_objfile) <tu_stats>: New member
942 nr_all_type_units_reallocs.
943 (create_signatured_type_table_from_index): Initialize
944 n_allocated_type_units
945 (create_all_type_units): Ditto.
946 (add_type_unit): Move up in file. New arg slot.
947 All callers updated. Increase space for all_type_units more
949 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
950 (lookup_dwo_signatured_type): Handle skeletonless TUs.
951 (lookup_dwp_signatured_type): Ditto.
952 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
954 (build_type_psymtabs_1): Leave type_unit_groups as
955 NULL if no TUs present.
956 (print_tu_stats): New function.
957 (process_skeletonless_type_unit): New function.
958 (process_dwo_file_for_skeletonless_type_units): New
960 (process_skeletonless_type_units): New function.
961 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
962 Call print tu_stats if debugging enabled.
964 2014-06-02 Pedro Alves <palves@redhat.com>
966 * breakpoint.c (build_target_command_list): Don't build a command
967 list if we have any duplicate location that isn't a dprintf.
969 2014-06-02 Pedro Alves <palves@redhat.com>
971 * breakpoint.c (dprintf_breakpoint_hit): New function.
972 (initialize_breakpoint_ops): Install it as dprintf's
973 breakpoint_hit method.
975 2014-06-02 Joel Brobecker <brobecker@adacore.com>
977 * source.c (substitute_path_rule_matches): Simplify using
978 filename_ncmp instead of FILENAME_CMP.
980 2014-06-02 Joel Brobecker <brobecker@adacore.com>
982 * source.c (substitute_path_rule_matches): Remove trailing spaces.
984 2014-06-01 Ludovic Courtès <ludo@gnu.org>
986 * configure.ac: When Guile is available, check for the
987 availability of 'scm_new_smob'.
988 * configure, config.h.in: Regenerate.
989 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
992 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
994 * frame.c (struct frame_info): Add stop_string field.
995 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
996 (get_prev_frame_always): Old content moved into
997 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
998 TRY_CATCH, handle MEMORY_ERROR exceptions.
999 (frame_stop_reason_string): New function definition.
1000 * frame.h (unwind_stop_reason_to_string): Extend comment to
1001 mention frame_stop_reason_string.
1002 (frame_stop_reason_string): New function declaration.
1003 * stack.c (frame_info): Switch to frame_stop_reason_string.
1004 (backtrace_command_1): Switch to frame_stop_reason_string.
1005 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1006 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1007 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1009 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1011 * frame.c (frame_stop_reason_string): Rename to ...
1012 (unwind_stop_reason_to_string): this.
1013 * frame.h (frame_stop_reason_string): Rename to ...
1014 (unwind_stop_reason_to_string): this.
1015 * stack.c (frame_info): Update call to frame_stop_reason_string.
1016 (backtrace_command_1): Likewise.
1017 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1018 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1020 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1022 * frame.c (remove_prev_frame): New function.
1023 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1026 2014-05-29 Pedro Alves <palves@redhat.com>
1028 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1029 and make it const. When a single-step decays to a continue,
1030 clear 'step', not 'hw_step'. Pass whether the caller wanted
1031 to step to user_visible_resume_ptid, not what we ask the
1034 2014-05-29 Pedro Alves <palves@redhat.com>
1036 * infrun.c (process_event_stop_test, handle_step_into_function)
1037 (handle_step_into_function_backward): Adjust.
1038 Don't set the even thread's stop_step and call stop_waiting before
1039 calling end_stepping_range. Instead do that ...
1040 (end_stepping_range): ... here. Take an ecs pointer parameter.
1042 2014-05-29 Pedro Alves <palves@redhat.com>
1044 * infrun.c (stop_stepping): Rename to ...
1045 (stop_waiting): ... this.
1046 (proceed): Update comment.
1047 (process_event_stop_test, handle_inferior_event)
1048 (handle_signal_stop, handle_step_into_function)
1049 (handle_step_into_function_backward): Update.
1051 2014-05-29 Pedro Alves <palves@redhat.com>
1053 * infcall.c (run_inferior_call): Don't check whether the current
1054 thread is running after the proceed call.
1056 2014-05-29 Pedro Alves <palves@redhat.com>
1057 Tom Tromey <tromey@redhat.com>
1059 * NEWS: Mention "maint set target-async", "set mi-async", and that
1060 background execution commands are now always available.
1061 * target.h (target_async_permitted): Update comment.
1062 * target.c (target_async_permitted, target_async_permitted_1):
1064 (set_target_async_command): Rename to ...
1065 (maint_set_target_async_command): ... this.
1066 (show_target_async_command): Rename to ...
1067 (maint_show_target_async_command): ... this.
1068 (_initialize_target): Adjust.
1069 * infcmd.c (prepare_execution_command): Make extern.
1070 * inferior.h (prepare_execution_command): Declare.
1071 * infrun.c (set_observer_mode): Leave target async alone.
1072 * mi/mi-interp.c (mi_interpreter_init): Install
1073 mi_on_sync_execution_done as sync_execution_done observer.
1074 (mi_on_sync_execution_done): New function.
1075 (mi_execute_command_input_handler): Don't print the prompt if we
1076 just started a synchronous command with an async target.
1077 (mi_on_resume): Check sync_execution before printing prompt.
1078 * mi/mi-main.h (mi_async_p): Declare.
1079 * mi/mi-main.c: Include gdbcmd.h.
1080 (mi_async_p): New function.
1081 (mi_async, mi_async_1): New globals.
1082 (set_mi_async_command, show_mi_async_command, mi_async): New
1084 (exec_continue): Call prepare_execution_command.
1085 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1086 (mi_execute_async_cli_command): Use mi_async_p.
1087 (_initialize_mi_main): Install "set mi-async". Make
1088 "target-async" a deprecated alias.
1090 2014-05-29 Pedro Alves <palves@redhat.com>
1092 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1093 (_initialize_cli_interp): Adjust.
1094 * event-loop.c: Include "observer.h".
1095 (start_event_loop): Notify 'command_error' observers instead of
1096 calling display_gdb_prompt. Remove FIXME comment.
1097 * event-top.c (display_gdb_prompt): Remove call into the
1099 * inf-loop.c: Include "observer.h".
1100 (inferior_event_handler): Notify 'command_error' observers instead
1101 of calling display_gdb_prompt.
1102 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1103 observers instead of calling display_gdb_prompt.
1104 * interps.c (interp_set): Don't call display_gdb_prompt.
1105 (current_interp_display_prompt_p): Delete.
1106 * interps.h (interp_prompt_p): Delete declaration.
1107 (interp_prompt_p_ftype): Delete.
1108 (struct interp_procs) <prompt_proc_p>: Delete field.
1109 (current_interp_display_prompt_p): Delete declaration.
1110 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1111 (_initialize_mi_interp): Adjust.
1112 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1113 'command_error' observers.
1114 (tui_on_sync_execution_done, tui_on_command_error): New
1116 (tui_display_prompt_p): Delete.
1117 (_initialize_tui_interp): Adjust.
1119 2014-05-29 Pedro Alves <palves@redhat.com>
1122 * cli/cli-interp.c: Include infrun.h and observer.h.
1123 (cli_uiout, cli_interp): New globals.
1124 (cli_on_signal_received, cli_on_end_stepping_range)
1125 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1127 (cli_interpreter_init): Install them as 'end_stepping_range',
1128 'signal_received' 'signal_exited', 'exited' and 'no_history'
1130 (_initialize_cli_interp): Remove cli_interp local.
1131 * infrun.c (handle_inferior_event): Call the several stop reason
1132 observers instead of printing the stop reason directly.
1133 (end_stepping_range): New function.
1134 (print_end_stepping_range_reason, print_signal_exited_reason)
1135 (print_exited_reason, print_signal_received_reason)
1136 (print_no_history_reason): Make static, and add an uiout
1137 parameter. Print to that instead of to CURRENT_UIOUT.
1138 * infrun.h (print_end_stepping_range_reason)
1139 (print_signal_exited_reason, print_exited_reason)
1140 (print_signal_received_reason print_no_history_reason): New
1142 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1144 <cli_uiout>: New field.
1145 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1146 uiout for CLI output. Install 'signal_received',
1147 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1149 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1150 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1151 (mi_on_no_history): New functions.
1152 (ui_out_free_cleanup): Delete function.
1153 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1154 instead use the one already stored in the MI interpreter data.
1155 (mi_ui_out): Adjust.
1156 * tui/tui-interp.c: Include infrun.h and observer.h.
1157 (tui_interp): New global.
1158 (tui_on_signal_received, tui_on_end_stepping_range)
1159 (tui_on_signal_exited, tui_on_exited)
1160 (tui_on_no_history): New functions.
1161 (tui_init): Install them as 'end_stepping_range',
1162 'signal_received' 'signal_exited', 'exited' and 'no_history'
1164 (_initialize_tui_interp): Delete tui_interp local.
1166 2014-05-29 Pedro Alves <palves@redhat.com>
1169 * linux-nat.c (linux_nat_resume_callback): Rename the second
1170 parameter to 'except'. Skip LP if it points to EXCEPT.
1171 (linux_nat_resume): Don't mark the event lwp as not stopped
1172 before resuming sibling lwps. Instead ask
1173 linux_nat_resume_callback to skip the event lwp. Mark it as not
1174 stopped after actually resuming it.
1175 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1177 (wait_lwp): Mark the lwp as stopped here.
1178 (stop_wait_callback): Mark the lwp as not stopped right after
1179 resuming it. Don't mark lwps as stopped here.
1180 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1181 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1183 2014-05-29 Pedro Alves <palves@redhat.com>
1186 * infrun.c (resume): Determine how much to resume depending on
1187 whether the caller wanted a step, not whether we can hardware step
1188 the target. Mark all threads that we intend to run as running,
1189 unless we're calling an inferior function.
1190 (normal_stop): If the thread is running an infcall, don't finish
1192 * target.c (target_resume): Don't mark threads as running here.
1194 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1196 * serial.c (_initialize_serial): Remove support for
1197 the "set remotebaud" and "show remotebaud" commands.
1198 * NEWS: Add entry documenting the removal of that command.
1200 2014-05-28 Yao Qi <yao@codesourcery.com>
1202 * charset.c: Fix typo in comments.
1204 2014-05-27 Gary Benson <gbenson@redhat.com>
1206 * utils.c (internal_vproblem): Prompt for a bug report.
1208 2014-05-26 Andy Wingo <wingo@igalia.com>
1210 * guile/scm-arch.c (arscm_mark_arch_smob):
1211 * guile/scm-block.c (bkscm_mark_block_smob)
1212 (bkscm_mark_block_syms_progress_smob):
1213 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1214 * guile/scm-exception.c (exscm_mark_exception_smob):
1215 * guile/scm-frame.c (frscm_mark_frame_smob):
1216 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1217 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1218 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1219 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1220 (ppscm_mark_pretty_printer_worker_smob):
1221 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1222 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1223 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1224 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1226 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1229 2014-05-26 Andy Wingo <wingo@igalia.com>
1230 Doug Evans <xdje42@gmail.com>
1232 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1233 empty_base_class. All uses updated.
1234 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1235 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1237 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1238 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1239 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1240 (gdbscm_gsmob_has_property_p, add_property_name)
1241 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1242 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1243 (gdb-object-has-property?, gdb-object-properties): Remove.
1244 (gdb-object-kind): Renamed from gsmob-kind.
1246 2014-05-26 Andy Wingo <wingo@igalia.com>
1248 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1249 * configure: Regenerate.
1251 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1253 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1255 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1257 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1258 (replay_memory_access_read_only, replay_memory_access_read_write)
1259 (replay_memory_access_types, replay_memory_access)
1260 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1261 (cmd_set_record_btrace, cmd_show_record_btrace)
1262 (cmd_show_replay_memory_access): New.
1263 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1264 (record_btrace_remove_breakpoint): Replace
1265 record_btrace_allow_memory_access with replay_memory_access.
1266 (_initialize_record_btrace): Add commands.
1267 * NEWS: Announce it.
1269 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1271 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1273 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1275 * MAINTAINERS (Write After Approval): Move self back from
1278 2014-05-22 Pedro Alves <palves@redhat.com>
1280 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1281 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1282 (disable_randomization, enum exec_direction_kind)
1283 (execution_direction, stop_registers, start_remote)
1284 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1285 (wait_for_inferior, normal_stop, get_last_target_status)
1286 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1287 (insert_step_resume_breakpoint_at_sal)
1288 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1289 (set_step_info, print_stop_event, signal_stop_state)
1290 (signal_print_state, signal_pass_state, signal_stop_update)
1291 (signal_print_update, signal_pass_update)
1292 (update_signals_program_target, clear_exit_convenience_vars)
1293 (displaced_step_dump_bytes, update_observer_mode)
1294 (signal_catch_update, gdb_signal_from_command): Move
1296 * infrun.h: ... to this new file.
1297 * amd64-tdep.c: Include infrun.h.
1298 * annotate.c: Include infrun.h.
1299 * arch-utils.c: Include infrun.h.
1300 * arm-linux-tdep.c: Include infrun.h.
1301 * arm-tdep.c: Include infrun.h.
1302 * break-catch-sig.c: Include infrun.h.
1303 * breakpoint.c: Include infrun.h.
1304 * common/agent.c: Include infrun.h instead of inferior.h.
1305 * corelow.c: Include infrun.h.
1306 * event-top.c: Include infrun.h.
1307 * go32-nat.c: Include infrun.h.
1308 * i386-tdep.c: Include infrun.h.
1309 * inf-loop.c: Include infrun.h.
1310 * infcall.c: Include infrun.h.
1311 * infcmd.c: Include infrun.h.
1312 * infrun.c: Include infrun.h.
1313 * linux-fork.c: Include infrun.h.
1314 * linux-nat.c: Include infrun.h.
1315 * linux-thread-db.c: Include infrun.h.
1316 * monitor.c: Include infrun.h.
1317 * nto-tdep.c: Include infrun.h.
1318 * procfs.c: Include infrun.h.
1319 * record-btrace.c: Include infrun.h.
1320 * record-full.c: Include infrun.h.
1321 * remote-m32r-sdi.c: Include infrun.h.
1322 * remote-mips.c: Include infrun.h.
1323 * remote-notif.c: Include infrun.h.
1324 * remote-sim.c: Include infrun.h.
1325 * remote.c: Include infrun.h.
1326 * reverse.c: Include infrun.h.
1327 * rs6000-tdep.c: Include infrun.h.
1328 * s390-linux-tdep.c: Include infrun.h.
1329 * solib-irix.c: Include infrun.h.
1330 * solib-osf.c: Include infrun.h.
1331 * solib-svr4.c: Include infrun.h.
1332 * target.c: Include infrun.h.
1333 * top.c: Include infrun.h.
1334 * windows-nat.c: Include infrun.h.
1335 * mi/mi-interp.c: Include infrun.h.
1336 * mi/mi-main.c: Include infrun.h.
1337 * python/py-threadevent.c: Include infrun.h.
1339 2014-05-22 Pedro Alves <palves@redhat.com>
1341 * infrun.c (handle_inferior_event): Store the exit code for
1342 --return-child-result here, instead of ...
1343 (print_exited_reason): ... here.
1345 2014-05-21 Pedro Alves <palves@redhat.com>
1348 * gdbthread.h (struct thread_control_state): New field
1350 * infrun.c (follow_fork): Copy the new thread control field to the
1352 (clear_proceed_status_thread): Clear the new thread control field.
1353 (proceed): Set the new thread control field.
1354 * interps.h (command_interp): Declare.
1355 * interps.c (command_interpreter): New global.
1356 (command_interp): New function.
1357 (interp_exec): Set `command_interpreter' while here.
1358 * cli-out.c (cli_uiout_dtor): New function.
1359 (cli_ui_out_impl): Install it.
1360 * mi/mi-interp.c: Include cli-out.h.
1361 (mi_cmd_interpreter_exec): Add comment.
1362 (restore_current_uiout_cleanup): New function.
1363 (ui_out_free_cleanup): New function.
1364 (mi_on_normal_stop): If finishing an execution command started by
1365 a CLI command, or any kind of breakpoint-like event triggered,
1366 print the stop event to the output (CLI) stream.
1367 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1369 2014-05-21 Pedro Alves <palves@redhat.com>
1371 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1372 current source line having changed.
1373 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1374 * infrun.c (normal_stop): Adjust call to
1375 set_current_sal_from_frame.
1376 * source.c (clear_lines_listed_range): New function.
1377 (set_current_source_symtab_and_line, identify_source_line): Clear
1378 the lines listed range.
1379 (line_info): Handle the first "info line" after the current source
1380 line having changed.
1381 * stack.c (print_stack_frame): Remove center handling.
1382 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1385 2014-05-21 Pedro Alves <palves@redhat.com>
1387 * inf-child.c (inf_child_mourn_inferior): New function.
1388 * inf-child.h (inf_child_mourn_inferior): New declaration.
1389 * darwin-nat.c (darwin_mourn_inferior): Use
1390 inf_child_mourn_inferior.
1391 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1392 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1393 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1394 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1395 * windows-nat.c (windows_mourn_inferior): Likewise.
1397 2014-05-21 Doug Evans <xdje42@gmail.com>
1399 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1401 2014-05-21 Doug Evans <xdje42@gmail.com>
1403 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1404 (gdbscm_out_of_range_error): Ditto.
1405 (gdbscm_memory_error): Ditto.
1406 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1407 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1408 (gdbscm_out_of_range_error): Update.
1409 (gdbscm_memory_error): Update.
1410 (gdbscm_scm_to_target_string_unsafe): Delete.
1412 2014-05-21 Pedro Alves <palves@redhat.com>
1414 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1416 (inf_child_open_target): New function.
1417 (inf_child_open): Use inf_child_open_target to push the target
1418 instead of erroring out.
1419 (inf_child_disconnect, inf_child_close)
1420 (inf_child_maybe_unpush_target): New functions.
1421 (inf_child_target): Install inf_child_disconnect and
1422 inf_child_close. Store a pointer to the returned object.
1423 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1425 * target.c (auto_connect_native_target): New global.
1426 (show_default_run_target): New function.
1427 (find_default_run_target): Return NULL if automatically connecting
1428 to the native target is disabled.
1429 (_initialize_target): Install set/show auto-connect-native-target.
1430 * NEWS: Mention "set auto-connect-native-target", and "target
1432 * linux-nat.c (super_close): New global.
1433 (linux_nat_close): Call super_close.
1434 (linux_nat_add_target): Store a pointer to the base class's
1436 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1437 inf_child_maybe_unpush.
1438 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1440 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1441 the inferior. Use inf_child_maybe_unpush_target.
1442 (inf_ttrace_attach): Don't push the target if it is already
1444 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1445 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1446 after mourning the inferior. Use inf_child_maybe_unpush_target.
1447 (darwin_attach_pid): Don't push the target if it is already
1449 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1450 mourning the inferior. Use inf_child_maybe_unpush_target.
1451 (gnu_detach): Use inf_child_maybe_unpush_target.
1452 * go32-nat.c (go32_create_inferior): Don't push the target if it
1454 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1455 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1456 (procfs_open): Rename to ...
1457 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1458 comments. Can target_preopen before changing node. Call
1459 inf_child_open_target to push the target explicitly.
1460 (procfs_attach): Don't push the target if it is already pushed.
1461 (procfs_detach): Use inf_child_maybe_unpush_target.
1462 (procfs_create_inferior): Don't push the target if it is already
1464 (nto_native_ops): New global.
1465 (procfs_open): Reimplement.
1466 (procfs_native_open): New function.
1467 (init_procfs_targets): Install procfs_native_open as to_open of
1468 "target native". Store a pointer to the "native" target in
1470 * procfs.c (procfs_attach): Don't push the target if it is already
1472 (procfs_detach): Use inf_child_maybe_unpush_target.
1473 (procfs_mourn_inferior): Only unpush the target after mourning the
1474 inferior. Use inf_child_maybe_unpush_target.
1475 (procfs_init_inferior): Don't push the target if it is already
1477 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1478 if it is already pushed.
1480 2014-05-21 Pedro Alves <palves@redhat.com>
1482 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1483 and "procfs" targets are now called "native" instead.
1485 2014-05-21 Pedro Alves <palves@redhat.com>
1487 * go32-nat.c (go32_open): Delete.
1488 (go32_target): Don't override the to_open method.
1490 2014-05-21 Pedro Alves <palves@redhat.com>
1492 * nto-procfs.c (procfs_can_run): New function.
1493 (nto_procfs_ops): New global.
1494 (init_procfs_targets): New, based on procfs_target. Install
1495 "target native" in addition to "target procfs".
1496 (_initialize_procfs): Call init_procfs_targets instead of adding
1499 2014-05-21 Pedro Alves <palves@redhat.com>
1501 * windows-nat.c (windows_target): Don't override to_shortname,
1502 to_longname or to_doc.
1504 2014-05-21 Pedro Alves <palves@redhat.com>
1506 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1509 2014-05-21 Pedro Alves <palves@redhat.com>
1511 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1512 to_shortname, to_longname or to_doc.
1514 2014-05-21 Pedro Alves <palves@redhat.com>
1516 * go32-nat.c (go32_target): Don't override to_shortname,
1517 to_longname or to_doc.
1519 2014-05-21 Pedro Alves <palves@redhat.com>
1521 * inf-child.c (inf_child_open): Remove mention of "child".
1522 (inf_child_target): Rename target to "native" instead of "child".
1524 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526 * Makefile.in (SFILES): Delete "regset.c".
1527 (COMMON_OBS): Delete "regset.o".
1529 * regset.h (regset_alloc): Delete prototype.
1531 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1533 * sparc-linux-tdep.c (sparc32_linux_gregset)
1534 (sparc32_linux_fpregset): New static regset structures.
1535 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1536 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1538 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1539 (sparc64_linux_fpregset): New static regset structures.
1540 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1541 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1542 New static regset structures.
1543 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1544 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1545 New static regset structures.
1546 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1547 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1548 New static regset structures.
1549 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1550 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1551 New static regset structures.
1552 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1556 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1557 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1558 register maps ("regmaps") from "*regset" to "*regmap". Do this
1559 for all regmap types and variables.
1560 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1561 (sparc32_linux_supply_core_gregset)
1562 (sparc32_linux_collect_core_gregset)
1563 (sparc32_linux_supply_core_fpregset)
1564 (sparc32_linux_collect_core_fpregset): Likewise.
1565 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1566 (sparc_gregmap, sparc_fpregmap): ... these.
1567 (sparc_supply_gregset, sparc_collect_gregset)
1568 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1569 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1570 (_initialize_sparc_nat): Rename regmaps.
1571 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1572 (sparc_gregmap, sparc_fpregmap): ... these.
1573 (sparc_supply_gregset, sparc_collect_gregset)
1574 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1575 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1577 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1578 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1580 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1582 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1583 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1584 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1586 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1587 (sparc32_bsd_fpregset): Rename to...
1588 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1589 (sparc32_bsd_fpregmap): ... these.
1590 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1591 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1592 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1593 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1594 (struct sparc_gregmap, struct sparc_fpregmap)
1595 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1596 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1597 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1598 (sparc32_supply_regset, sparc32_collect_gregset)
1599 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1601 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1602 (sparc64_linux_ptrace_gregmap): ... this.
1603 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1604 (_initialize_sparc64_linux_nat): Rename regmaps.
1605 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1606 (sparc64_linux_core_gregmap): ... this.
1607 (sparc64_linux_supply_core_gregset)
1608 (sparc64_linux_collect_core_gregset)
1609 (sparc64_linux_supply_core_fpregset)
1610 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1611 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1612 (sparc64_sol2_fpregset): Rename to...
1613 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1614 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1615 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1617 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1618 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1619 (sparc64_bsd_fpregset): Rename to...
1620 (struct sparc_gregmap, sparc64_sol2_gregmap)
1621 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1622 (sparc64_bsd_fpregmap): ... these.
1623 (sparc64_supply_gregset, sparc64_collect_gregset)
1624 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1626 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1627 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1628 (sparc64fbsd_gregmap): ... this.
1629 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1630 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1632 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1633 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1634 (sparc64nbsd_collect_fpregset): Likewise.
1635 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1636 (sparc64nbsd_gregmap): ... this.
1637 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1639 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1640 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1641 (sparc64obsd_gregmap): ... this.
1642 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1644 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1645 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1646 (sparc32nbsd_gregmap): ... this.
1647 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1650 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1652 * score-tdep.c (score7_linux_gregset): New static regset
1654 (score7_linux_regset_from_core_section): Remove dynamic regset
1656 (score_gdbarch_init): Drop allocation of tdep structure.
1657 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1659 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1661 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1663 (am33_regset_from_core_section): Remove dynamic regset
1666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1668 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1669 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1671 (mips_linux_regset_from_core_section): Remove dynamic regset
1673 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1674 'gregset64', 'fpregset', and 'fpregset64'.
1675 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1676 deleted tdep fields.
1678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1680 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1682 (amd64_regset_from_core_section): Remove dynamic regset
1684 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1686 (amd64obsd_regset_from_core_section): Remove dynamic regset
1688 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1690 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1691 x86-common regset supply function.
1692 * i386-tdep.c (i386_collect_gregset): Make static.
1693 (i386_gregset): New global regset structure.
1694 (i386_fpregset, i386_xstateregset): New static regset structures.
1695 (i386_regset_from_core_section): Remove dynamic regset
1697 (i386_gdbarch_init): Remove initialization of tdep fields
1698 'gregset', 'fpregset', and 'xstateregset'.
1699 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1700 'fpregset', and 'xstateregset'.
1701 (i386_collect_gregset): Remove prototype.
1702 (i386_gregset): New declaration.
1703 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1705 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1708 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1710 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1711 (arm_linux_vfpregset): New static regset structures.
1712 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1714 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1715 and 'vfpregset' fields.
1717 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1719 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1720 (aarch64_linux_fpregset): New static regset structures.
1721 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1722 of regset structures.
1723 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1728 * regset.h (struct regset): Remove gdbarch field.
1729 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1730 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1731 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1733 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1734 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1735 (ppc32_linux_vsxregset): Likewise.
1736 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1737 via the regcache instead of the regset.
1738 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1739 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1740 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1741 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1744 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1746 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1747 Constify structures.
1748 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1749 (alphanbsd_aout_gregset): Likewise.
1750 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1751 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1753 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1754 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1756 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1757 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1758 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1759 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1760 * m88k-tdep.c (m88k_gregset): Likewise.
1761 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1762 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1763 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1764 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1765 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1766 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1767 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1768 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1769 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1771 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1772 * sh-tdep.h (sh_corefile_gregset): Likewise.
1773 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1774 * vax-tdep.c (vax_gregset): Likewise.
1776 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1778 Fix TLS access for -static -pthread.
1779 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1780 (try_thread_db_load_1): Initialize it.
1781 (thread_db_get_thread_local_address): Call it if LM is zero.
1782 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1783 * target.h (struct target_ops) (to_get_thread_local_address): Add
1784 load_module_addr comment.
1786 2014-05-21 Pedro Alves <palves@redhat.com>
1788 * dcache.c (dcache_read_memory_partial): If reading the cache line
1789 fails, fallback to reading just the memory the caller wanted.
1791 2014-05-20 Doug Evans <dje@google.com>
1793 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1794 instead of get_current_arch.
1796 2014-05-20 Pedro Alves <palves@redhat.com>
1798 * NEWS: Mention that compare-sections now works with all targets.
1800 * remote.c (PACKET_qCRC): New enum value.
1801 (remote_verify_memory): Don't send qCRC if the target has no
1802 execution. Use packet_support/packet_ok. If the target doesn't
1803 support the qCRC packet, fallback to a deep memory copy.
1804 (compare_sections_command): Say "target image" instead of "remote
1806 (_initialize_remote): Add PACKET_qCRC to the list of config
1807 packets that have no associated command. Extend comment.
1808 * target.c (simple_verify_memory, default_verify_memory): New
1810 * target.h (struct target_ops) <to_verify_memory>: Default to
1811 default_verify_memory.
1812 (simple_verify_memory): New declaration.
1813 * target-delegates.c: Regenerate.
1815 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1817 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1819 2014-05-20 Hui Zhu <hui@codesourcery.com>
1820 Yao Qi <yao@codesourcery.com>
1823 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1824 and change address of sp and pc.
1826 2014-05-19 Tom Tromey <tromey@redhat.com>
1828 * gdbtypes.c (rank_function): Use XNEWVEC.
1829 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1831 2014-05-19 Doug Evans <dje@google.com>
1833 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1834 build_type_unit_groups and moved closer to only caller. Remove
1835 arguments. All references updated. Remove outdated .gdb_index
1837 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1838 build_type_psymtabs_1.
1840 2014-05-19 Doug Evans <dje@google.com>
1842 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1843 n_type_unit_groups, all_type_unit_groups. All uses removed.
1844 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1845 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1846 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1847 (add_type_unit_group_to_table): Delete.
1849 2014-05-19 Doug Evans <dje@google.com>
1851 * eval.c (evaluate_subexp_standard): Add some comments.
1853 2014-05-17 Doug Evans <xdje42@gmail.com>
1855 * progspace.c (remove_program_space): Delete, unused.
1856 * progspace.h (remove_program_space): Ditto.
1858 2014-05-17 Doug Evans <xdje42@gmail.com>
1860 * inferior.c (prune_inferiors): Fix comment.
1861 (remove_inferior_command): Call prune_program_spaces.
1863 2014-05-16 Doug Evans <dje@google.com>
1865 New command line option -D.
1867 * main.c (set_gdb_data_directory): New function.
1868 (captured_main): Recognize -D. Flag error for --data-directory "".
1869 Call set_gdb_data_directory.
1870 (print_gdb_help): Print --data-directory, -D.
1871 * main.h (set_gdb_data_directory): Declare.
1872 * top.c (staged_gdb_datadir): New static global.
1873 (set_gdb_datadir): Call set_gdb_data_directory
1874 (show_gdb_datadir): New function.
1875 (init_main): Update init of data-directory parameter.
1877 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1879 Import the "dirfd" gnulib module.
1880 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1881 * gnulib/aclocal.m4: Update.
1882 * gnulib/config.in: Update.
1883 * gnulib/configure: Update.
1884 * gnulib/import/Makefile.am: Update.
1885 * gnulib/import/Makefile.in: Update.
1886 * gnulib/import/dirfd.c: New.
1887 * gnulib/import/m4/dirfd.m4: New.
1888 * gnulib/import/m4/gnulib-cache.m4: Update.
1889 * gnulib/import/m4/gnulib-comp.m4: Update.
1891 2014-05-16 Pierre Muller <muller@sourceware.org>
1892 Yao Qi <yao@codesourcery.com>
1894 * valprint.c (print_wchar): Move the code on checking whether
1895 W is a printable wide char to the default branch of switch
1896 statement below. Call wchar_printable instead of gdb_iswprint.
1898 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1900 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1901 ldr.w and ldrd instructions.
1903 2014-05-15 Doug Evans <dje@google.com>
1905 * dwarf2read.c (read_structure_type): Delete outdated comments.
1907 2014-05-14 Tom Tromey <tromey@redhat.com>
1909 * macrocmd.c (print_macro_definition): Reindent.
1911 2014-05-13 Doug Evans <xdje42@gmail.com>
1913 * python/py-cmd.c (cmdpy_completer): Add comment.
1914 (completers): Make const.
1916 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1918 * infrun.c (resume): Remove should_resume (unused). Move up
1919 declaration of resume_ptid.
1921 2014-05-13 Tom Tromey <tromey@redhat.com>
1923 * language.h (unop_type_check): Remove.
1924 (binop_type_check): Don't declare.
1926 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1928 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1929 call to regcache_raw_collect.
1931 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1933 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1934 mi_console->quote as the quoting character.
1936 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1938 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1940 2014-04-29 Tom Tromey <tromey@redhat.com>
1942 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1943 "show debug varobj".
1945 2014-05-07 Kyle McMartin <kyle@redhat.com>
1947 Pushed by Joel Brobecker <brobecker@adacore.com>.
1948 * aarch64-tdep.c (aarch64_software_single_step): New function.
1949 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1950 with aarch64_software_single_step.
1952 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1956 2014-05-05 Keith Seitz <keiths@redhat.com>
1958 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1959 variable or history value is successfully parsed.
1961 2014-05-05 Yao Qi <yao@codesourcery.com>
1962 Pedro Alves <palves@redhat.com>
1964 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1965 address of blocks that intersects the requested range. Trim
1966 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1968 * ctf.c (ctf_xfer_partial): Likewise.
1970 2014-05-05 Yao Qi <yao@codesourcery.com>
1972 * printcmd.c (display_command): Remove the check to
1973 target_has_execution.
1975 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1977 * ppcobsd-nat.c: Include "obsd-nat.h".
1978 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1980 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1982 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1984 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1985 and 16-bit signed and unsigned arguments. Update comment.
1986 (stap_parse_probe_arguments): Extend code to handle such
1987 arguments. Use warning instead of complaint to notify about
1988 unrecognized bitness.
1990 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1992 PR breakpoints/16889
1993 * stap-probe.c (stap_parse_probe_arguments): Simplify
1994 check for non-prefixed probes (i.e., probes whose
1995 arguments do not start with "N@"). Always set the
1996 argument type to a sane value.
1998 2014-05-01 David Taylor <dtaylor@emc.com>
2000 * remote.c (compare_sections_command): Add -r option to compare
2001 all loadable read-only sections.
2003 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2005 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2006 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2008 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2009 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2010 Remove unused CORE_ADDR argument. Update all callers.
2012 2014-04-29 Pedro Alves <palves@redhat.com>
2014 * remote.c (struct packet_config) <detect>: Extend comment.
2015 (add_packet_config_cmd): Don't set the config's detect or support
2017 (init_all_packet_configs): Also initialize the config's 'detect'
2019 (reset_all_packet_configs_support): New function.
2020 (remote_open_1): Call reset_all_packet_configs_support instead of
2021 init_all_packet_configs.
2022 (_initialize_remote): Initialize all packet configs. Assert that
2023 all packets have an associated command, except a few known
2026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2028 * dwarf2read.c (read_subrange_type): Handle dynamic
2029 DW_AT_lower_bound attributes.
2031 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2033 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2034 dynamic bounds before computing its upper bound.
2035 (ada_discrete_type_low_bound): Same as above with the lower bound.
2037 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2039 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2040 range types. Adjust the array handling implementation to
2041 take advantage of this change.
2042 (resolve_dynamic_range): New function, mostly extracted from
2043 resolve_dynamic_bounds.
2044 (resolve_dynamic_array): New function, mostly extracted from
2045 resolve_dynamic_bounds.
2046 (resolve_dynamic_bounds): Delete.
2047 (resolve_dynamic_type): Reimplement. Add handling of
2048 TYPE_CODE_RANGE types.
2050 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2052 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2053 handling of parallel ___XA types.
2055 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2057 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2058 unnecessary second call to static_unwrap_type.
2060 2014-04-27 Hui Zhu <hui@codesourcery.com>
2062 * stack.c (print_frame_info): Call do_gdb_disassembly with
2063 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2065 2014-04-26 Doug Evans <xdje42@gmail.com>
2067 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2069 2014-04-25 Pedro Alves <palves@redhat.com>
2072 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2073 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2074 and newline from built string.
2075 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2076 (linux_ptrace_attach_fail_reason): ... this.
2077 * linux-nat.c (linux_nat_attach): Adjust to use
2078 linux_ptrace_attach_fail_reason.
2080 2014-04-25 Pedro Alves <palves@redhat.com>
2082 * remote.c (struct remote_state): Remove multi_process_aware,
2083 non_stop_aware, cond_tracepoints, cond_breakpoints,
2084 breakpoint_commands, fast_tracepoints, static_tracepoints,
2085 install_in_trace, disconnected_tracing,
2086 enable_disable_tracepoints, string_tracing, and
2087 augmented_libraries_svr4_read fields.
2088 (remote_multi_process_p): Move further below in the file.
2089 (struct packet_config): Add comments.
2090 (update_packet_config): Delete function.
2091 (show_packet_config_cmd): Use packet_config_support.
2092 (add_packet_config_cmd): Use NULL as set callback.
2093 (packet_ok): "set remote foo-packet"-style commands no longer
2094 change config->supported -- adjust.
2095 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2096 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2097 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2098 (PACKET_QNonStop, PACKET_multiprocess_feature)
2099 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2100 (PACKET_DisconnectedTracing_feature)
2101 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2102 (set_remote_protocol_packet_cmd): Delete function.
2103 (packet_config_support, packet_support): New functions.
2104 (set_remote_protocol_Z_packet_cmd): Don't call
2105 update_packet_config.
2106 (remote_query_attached, remote_pass_signals)
2107 (remote_program_signals, remote_threads_info)
2108 (remote_threads_extra_info, remote_start_remote): Use
2110 (remote_start_remote): Use packet_config_support and
2112 (init_all_packet_configs): Set all packets to unknown support,
2113 instead of calling update_packet_config.
2114 (remote_check_symbols): Use packet_support.
2115 (remote_supported_packet): Unconditionally set the packet config's
2117 (remote_multi_process_feature, remote_non_stop_feature)
2118 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2119 (remote_breakpoint_commands_feature)
2120 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2121 (remote_install_in_trace_feature)
2122 (remote_disconnected_tracing_feature)
2123 (remote_enable_disable_tracepoint_feature)
2124 (remote_string_tracing_feature)
2125 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2126 (remote_protocol_features): Adjust to use remote_supported_packet
2127 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2128 "ConditionalTracepoints", "ConditionalBreakpoints",
2129 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2130 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2131 "EnableDisableTracepoints", and "tracenz".
2132 (remote_query_supported): Use packet_support.
2133 (remote_open_1): Adjust.
2134 (extended_remote_attach_1): Use packet_support. Switch on the
2135 result of packet_ok instead of checking whether the packet ended
2137 (remote_vcont_resume): Use packet_support.
2138 (remote_resume, remote_stop_ns, fetch_register_using_p)
2139 (remote_prepare_to_store, store_register_using_P)
2140 (check_binary_download, remote_write_bytes): Use packet_support.
2141 (remote_vkill): Use packet_support. Switch on the result of
2142 packet_ok instead of checking whether the packet ended up
2144 (extended_remote_supports_disable_randomization): Use
2146 (extended_remote_run): Switch on the result of packet_ok instead
2147 of checking whether the packet ended up disabled.
2148 (remote_insert_breakpoint, remote_remove_breakpoint)
2149 (remote_insert_watchpoint, remote_remove_watchpoint)
2150 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2152 (remote_search_memory): Use packet_config_support.
2153 (remote_get_thread_local_address, remote_get_tib_address)
2154 (remote_hostio_send_command, remote_can_execute_reverse): Use
2156 (remote_supports_cond_tracepoints)
2157 (remote_supports_cond_breakpoints)
2158 (remote_supports_fast_tracepoints)
2159 (remote_supports_static_tracepoints)
2160 (remote_supports_install_in_trace)
2161 (remote_supports_enable_disable_tracepoint)
2162 (remote_supports_string_tracing)
2163 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2164 the packet config says the feature is enabled or disabled.
2165 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2166 (remote_get_trace_status): Use packet_support.
2167 (remote_set_disconnected_tracing): Adjust to check whether the
2168 feature is enabled with packet_support.
2169 (remote_set_trace_buffer_size, remote_use_agent)
2170 (remote_can_use_agent, remote_supports_btrace): Use
2172 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2173 Use packet_config_support.
2174 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2175 the packet config says the feature is enabled or disabled.
2176 (set_range_stepping): Use packet_support.
2178 2014-04-25 Tom Tromey <tromey@redhat.com>
2180 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2183 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2185 * NEWS: Mention support for C99 variable length arrays.
2187 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2189 * ada-lang.c (standard_exc): Expand introductory comment.
2191 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2192 Walfred Tedeschi <walfred.tedeschi@intel.com>
2194 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2196 (amd64_linux_read_description): Add code to handle AVX512 xstate
2197 mask and return respective tdesc.
2198 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2199 and features/i386/x32-avx512-linux.c.
2200 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2201 (amd64_linux_core_read_description): Add code to handle AVX512
2202 xstate mask and return respective tdesc.
2203 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2204 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2206 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2207 (tdesc_amd64_avx512_linux): New prototype.
2208 (tdesc_x32_avx512_linux): Likewise.
2209 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2210 features/i386/x32-avx512.c.
2211 (amd64_ymm_avx512_names): New register names for pseudo
2213 (amd64_ymmh_avx512_names): New register names for raw registers
2215 (amd64_k_names): New register names for K registers.
2216 (amd64_zmmh_names): New register names for ZMM raw registers.
2217 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2218 (amd64_xmm_avx512_names): New register names for XMM16-31
2220 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2222 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2223 if feature is present.
2224 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2225 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2226 (AMD64_NUM_REGS): Adjust to new number of registers.
2227 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2228 registers supplied via XSTATE by AVX512 registers.
2229 (i386_linux_read_description): Add case for AVX512.
2230 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2231 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2232 (i386_linux_core_read_description): Add case for AVX512.
2233 (i386_linux_init_abi): Install supported register note section
2235 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2237 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2238 registers to be number of zmm7h + 1.
2239 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2240 * i386-tdep.c: Include features/i386/i386-avx512.c.
2241 (i386_zmm_names): Add ZMM pseudo register names array.
2242 (i386_zmmh_names): Add ZMM raw register names array.
2243 (i386_k_names): Add K raw register names array.
2244 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2245 registers. AVX512 has 16 more ZMM registers than there are YMM
2247 (i386_zmmh_regnum_p): Add function to look up register number of
2249 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2250 (i386_k_regnum_p): Likewise for K raw registers.
2251 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2252 registers added by AVX512.
2253 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2254 registers added by AVX512.
2255 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2257 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2258 (i386_pseudo_register_name): Add ZMM pseudo registers.
2259 (i386_zmm_type): Construct and return vector registers type for ZMM
2261 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2262 ZMM0-31 pseudo registers and K registers.
2263 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2264 and YMM16-31 registers from register cache.
2265 (i386_pseudo_register_write): Add code to write K, ZMM and
2267 (i386_register_reggroup_p): Add code to include/exclude AVX512
2268 registers in/from respective register groups.
2269 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2270 registers if feature is present in xcr0.
2271 (i386_gdbarch_init): Add code to initialize AVX512 feature
2272 variables in tdep structure, wire in pseudo registers and call
2273 initialize_tdesc_i386_avx512.
2274 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2276 (i386_regnum): Add AVX512 registers.
2277 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2278 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2279 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2280 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2282 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2283 (i386_ymm_avx512_regnum_p): Likewise.
2284 (i386_k_regnum_p): Likewise.
2285 (i386_zmm_regnum_p): Likewise.
2286 (i386_zmmh_regnum_p): Likewise.
2287 * i387-tdep.c : Update year in copyright notice.
2288 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2290 (XSAVE_YMM_AVX512_ADDR): New macro.
2291 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2293 (XSAVE_XMM_AVX512_ADDR): New macro.
2294 (xsave_avx512_k_offset): New table for K register offsets in
2296 (XSAVE_AVX512_K_ADDR): New macro.
2297 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2299 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2300 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2302 (i387_collect_xsave): Add code to collect AVX512 registers from
2304 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2305 of XMM16-31 registers.
2306 (I387_NUM_K_REGS): New define for number of K registers.
2307 (I387_K0_REGNUM): New define for K0 register number.
2308 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2309 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2310 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2312 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2313 (I387_XMM16_REGNUM): New define for XMM16 register number.
2314 (I387_YMM0_REGNUM): New define for YMM0 register number.
2315 (I387_KEND_REGNUM): New define for last K register number.
2316 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2317 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2319 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2321 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2323 * features/Makefile: Add AVX512 related files.
2324 * features/i386/32bit-avx512.xml: New file.
2325 * features/i386/64bit-avx512.xml: Likewise.
2326 * features/i386/amd64-avx512-linux.c: Likewise.
2327 * features/i386/amd64-avx512-linux.xml: Likewise.
2328 * features/i386/amd64-avx512.c: Likewise.
2329 * features/i386/amd64-avx512.xml: Likewise.
2330 * features/i386/i386-avx512-linux.c: Likewise.
2331 * features/i386/i386-avx512-linux.xml: Likewise.
2332 * features/i386/i386-avx512.c: Likewise.
2333 * features/i386/i386-avx512.xml: Likewise.
2334 * features/i386/x32-avx512-linux.c: Likewise.
2335 * features/i386/x32-avx512-linux.xml: Likewise.
2336 * features/i386/x32-avx512.c: Likewise.
2337 * features/i386/x32-avx512.xml: Likewise.
2338 * regformats/i386/amd64-avx512-linux.dat: New file.
2339 * regformats/i386/amd64-avx512.dat: Likewise.
2340 * regformats/i386/i386-avx512-linux.dat: Likewise.
2341 * regformats/i386/i386-avx512.dat: Likewise.
2342 * regformats/i386/x32-avx512-linux.dat: Likewise.
2343 * regformats/i386/x32-avx512.dat: Likewise.
2344 * NEWS: Add note about new support for AVX512.
2347 2014-04-23 Pedro Alves <palves@redhat.com>
2349 * breakpoint.c (insert_bp_location): Tolerate errors if the
2350 breakpoint is set in a user-loaded objfile.
2351 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2352 location is marked shlib_disabled. If the breakpoint is set in a
2353 user-loaded objfile is a GDB-side memory breakpoint, validate it
2354 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2355 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2357 * mem-break.c (memory_validate_breakpoint): New function.
2358 * objfiles.c (userloaded_objfile_contains_address_p): New
2360 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2361 * target.h (memory_validate_breakpoint): New declaration.
2363 2014-04-23 Pedro Alves <palves@redhat.com>
2365 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2366 the breakpoint is set in a shared library, only suppress
2367 errors for software breakpoints, not hardware breakpoints.
2369 2014-04-22 Pedro Alves <palves@redhat.com>
2371 * infrun.c (schedlock_applies): New function, factored out from
2372 find_thread_needs_step_over.
2373 (find_thread_needs_step_over): Use it.
2374 (switch_back_to_stepped_thread): Always clear trap_expected if the
2375 step over is finished. Return early if scheduler locking applies.
2376 Look for the stepping thread and a potential step-over thread with
2378 (currently_stepping_or_nexting_callback): Delete.
2380 2014-04-22 Nick Clifton <nickc@redhat.com>
2382 * NEWS: Mention that ARM sim now supports tracing.
2384 2014-04-22 Yao Qi <yao@codesourcery.com>
2386 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2388 * tracefile.c (tracefile_fetch_registers): ... it. New
2390 * tracefile.h (tracefile_fetch_registers): Declare.
2391 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2392 tracefile_fetch_registers.
2394 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2397 * windows-nat.c (thread_rec): Don't display a warning when
2398 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2399 fails for any reason, set th->suspended to -1, so that we don't
2400 try to resume such a thread. Also, don't return NULL in these
2401 cases, to avoid completely ruin the session due to "PC register is
2402 not available" error.
2403 (do_windows_fetch_inferior_registers): Check errors in
2404 GetThreadContext call.
2405 (windows_continue): Accept an additional argument KILLED; if not
2406 zero, ignore errors in the SetThreadContext call, since the
2407 inferior was killed and is shutting down.
2408 (windows_resume, get_windows_debug_event)
2409 (windows_create_inferior, windows_mourn_inferior)
2410 (windows_kill_inferior): All callers of windows_continue changed
2411 to adjust to its new calling sequence.
2413 2014-04-19 Yao Qi <yao@codesourcery.com>
2415 * ctf.c (ctf_open): Call post_create_inferior.
2417 2014-04-19 Yao Qi <yao@codesourcery.com>
2419 * ctf.c (handle_id): New static variable.
2420 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2421 value. Get the declaration of event "register" and get length
2422 of field "contents".
2424 2014-04-19 Yao Qi <yao@codesourcery.com>
2426 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2428 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2430 * valops.c (oload_method_static): Remove unnecessary argument
2431 METHOD. Update all callers.
2433 2014-04-18 Pedro alves <palves@redhat.com>
2434 Tom Tromey <tromey@redhat.com>
2437 * frame.c (get_prev_frame_1): Rename to ...
2438 (get_prev_frame_always): ... this, and make extern. Adjust.
2439 (skip_artificial_frames): Use get_prev_frame_always.
2440 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2441 (get_frame_unwind_stop_reason): Adjust to rename.
2442 * frame.h (get_prev_frame_always): Declare.
2443 * inline-frame.c: Include frame.h.
2444 (inline_frame_this_id): Use get_prev_frame_always.
2446 2014-04-18 Tristan Gingold <gingold@adacore.com>
2448 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2449 code by using bfd_mach_o_get_base_address.
2451 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2453 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2454 (spu_ax_pseudo_register_collect): New function.
2455 (spu_ax_pseudo_register_push_stack): Likewise.
2456 (spu_dwarf_reg_to_regnum): Likewise.
2457 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2459 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2461 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2462 Replace FRAME argument with FRAME_ID.
2463 * gdbarch.c, gdbarch.h: Regenerate.
2464 * findvar.c (default_value_from_register): Add GDBARCH argument;
2465 replace FRAME by FRAME_ID. No longer call get_frame_id.
2466 (value_from_register): Update call to gdbarch_value_from_register.
2467 * value.h (default_value_from_register): Update prototype.
2468 * s390-linux-tdep.c (s390_value_from_register): Update interface
2469 and call to default_value_from_register.
2470 * spu-tdep.c (spu_value_from_register): Likewise.
2472 * findvar.c (address_from_register): Remove TYPE argument.
2473 Do not call value_from_register; use gdbarch_value_from_register
2474 with null_frame_id instead.
2475 * value.h (address_from_register): Update prototype.
2476 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2477 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2478 address_from_register interface change.
2480 2014-04-17 Yao Qi <yao@codesourcery.com>
2482 * gdbtypes.h: Update comments to link to types and macros'
2485 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2487 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2489 2014-04-16 Keith Seitz <keiths@redhat.com>
2492 * dwarf2read.c (skip_one_die): Check that all relative-offset
2493 sibling DIEs fall within range of the current reader's buffer.
2494 (read_partial_die): Likewise.
2496 2014-04-16 Keith Seitz <keiths@redhat.com>
2499 * cp-namespace.c (lookup_symbol_file): If the type name of
2500 `this' is NULL, return immediately.
2502 2014-04-14 Keith Seitz <keiths@redhat.com>
2505 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2506 from symbol_matches_domain in symtab.c. All local callers
2507 of symbol_matches_domain updated.
2508 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2509 search STRUCT_DOMAIN.
2510 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2511 independently. standard_lookup will do that automatically.
2512 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2513 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2514 (cp_lookup_symbol_in_namespace): Likewise.
2515 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2516 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2517 may return a STRUCT_DOMAIN match.
2518 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2519 * cp-support.c: Include language.h.
2520 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2522 * psymtab.c (match_partial_symbol): Compare the requested
2523 domain with the symbol's domain directly.
2524 (lookup_partial_symbol): Likewise.
2525 * symtab.c (lookup_symbol_in_language): Explain when/why
2526 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2527 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2528 appropriate languages.
2529 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2530 and moved to ada-lang.c
2531 (lookup_block_symbol): Explain that this function only returns
2532 symbol matching the requested DOMAIN.
2533 Compare the requested domain with the symbol's domain directly.
2534 (iterate_over_symbols): Compare the requested domain with the
2535 symbol's domain directly.
2536 * symtab.h (symbol_matches_domain): Remove.
2538 2014-04-14 Tom Tromey <tromey@redhat.com>
2541 * c-exp.y (type_aggregate_p): New function.
2542 (qualified_name, classify_inner_name): Use it.
2543 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2544 and TYPE_TARGET_TYPE of an enum type.
2545 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2547 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2548 handle TYPE_DECLARED_CLASS.
2549 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2551 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2552 * valops.c (enum_constant_from_type): New function.
2553 (value_aggregate_elt): Use it.
2554 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2557 2014-04-14 Tom Tromey <tromey@redhat.com>
2559 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2560 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2562 * value.h (value_aggregate_elt): Update.
2564 2014-04-14 Tom Tromey <tromey@redhat.com>
2566 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2568 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2570 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2571 (evaluate_subexp_standard): Pass noside argument.
2572 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2573 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2574 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2575 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2576 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2578 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2580 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2581 points to a constant blob.
2583 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2585 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2586 property and store it as the high bound and flag the range accordingly.
2587 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2588 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2589 * gdbtypes.h (enum range_flags): New enum.
2590 (struct range_bounds): Add flags member.
2592 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2594 * c-typeprint.c (c_type_print_varspec_suffix): Added
2595 check for not yet resolved high bound. If unresolved, print
2596 "variable length" string to the console instead of random
2599 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2601 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2603 (ada_template_to_fixed_record_type_1): Likewise.
2604 (ada_to_fixed_type_1): Likewise.
2605 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2606 (cp_print_value): Likewise.
2607 * d-valprint.c (dynamic_array_type): Likewise.
2608 * findvar.c (address_of_variable): Likewise.
2609 * jv-valprint.c (java_value_print): Likewise.
2610 * valops.c (value_ind): Likewise.
2611 * value.c (coerce_ref): Likewise.
2613 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2615 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2616 value and retrieve the dynamic type size.
2618 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2620 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2621 passed to sizeof is dynamic evaluate the argument to compute the length.
2623 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2624 Joel Brobecker <brobecker@adacore.com>
2626 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2627 (dwarf2_evaluate_property): New function.
2628 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2629 * dwarf2read.c (attr_to_dynamic_prop): New function.
2630 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2632 * gdbtypes.c: Include dwarf2loc.h.
2633 (is_dynamic_type): New function.
2634 (resolve_dynamic_type): New function.
2635 (resolve_dynamic_bounds): New function.
2636 (get_type_length): New function.
2637 (check_typedef): Use get_type_length to compute type length.
2638 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2639 (TYPE_LOW_BOUND_KIND): New macro.
2640 (is_dynamic_type): New function prototype.
2641 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2642 to resolve dynamic properties of the type. Update comment.
2643 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2645 2014-04-14 Richard Henderson <rth@redhat.com>
2647 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2649 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2650 Doug Evans <xdje42@gmail.com>
2652 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2653 dereference TYPE_CODE_REF values.
2655 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2657 Revert the following changes due to regressions:
2659 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2660 (dwarf2_evaluate_property): New function.
2661 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2662 * dwarf2read.c (attr_to_dynamic_prop): New function.
2663 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2665 * gdbtypes.c: Include dwarf2loc.h.
2666 (is_dynamic_type): New function.
2667 (resolve_dynamic_type): New function.
2668 (resolve_dynamic_bounds): New function.
2669 (get_type_length): New function.
2670 (check_typedef): Use get_type_length to compute type length.
2671 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2672 (TYPE_LOW_BOUND_KIND): New macro.
2673 (is_dynamic_type): New function prototype.
2674 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2675 to resolve dynamic properties of the type. Update comment.
2676 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2678 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2679 passed to sizeof is dynamic evaluate the argument to compute the length.
2681 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2682 value and retrieve the dynamic type size.
2684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2685 (ada_template_to_fixed_record_type_1): Likewise.
2686 (ada_to_fixed_type_1): Likewise.
2687 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2688 (cp_print_value): Likewise.
2689 * d-valprint.c (dynamic_array_type): Likewise.
2690 * eval.c (evaluate_subexp_with_coercion): Likewise.
2691 * findvar.c (address_of_variable): Likewise.
2692 * jv-valprint.c (java_value_print): Likewise.
2693 * valops.c (value_ind): Likewise.
2694 * value.c (coerce_ref): Likewise.
2696 * c-typeprint.c (c_type_print_varspec_suffix): Added
2697 check for not yet resolved high bound. If unresolved, print
2698 "variable length" string to the console instead of random
2701 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2702 property and store it as the high bound and flag the range accordingly.
2703 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2704 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2705 * gdbtypes.h (enum range_flags): New enum.
2706 (struct range_bounds): Add flags member.
2708 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2709 points to a constant blob.
2711 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2712 (evaluate_subexp_standard): Pass noside argument.
2713 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2714 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2715 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2716 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2717 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2719 2014-04-11 Keith Seitz <keiths@redhat.com>
2722 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2723 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2726 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2728 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2729 (evaluate_subexp_standard): Pass noside argument.
2730 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2731 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2732 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2733 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2734 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2736 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2738 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2739 points to a constant blob.
2741 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2743 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2744 property and store it as the high bound and flag the range accordingly.
2745 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2746 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2747 * gdbtypes.h (enum range_flags): New enum.
2748 (struct range_bounds): Add flags member.
2750 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2752 * c-typeprint.c (c_type_print_varspec_suffix): Added
2753 check for not yet resolved high bound. If unresolved, print
2754 "variable length" string to the console instead of random
2757 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2759 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2760 (ada_template_to_fixed_record_type_1): Likewise.
2761 (ada_to_fixed_type_1): Likewise.
2762 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2763 (cp_print_value): Likewise.
2764 * d-valprint.c (dynamic_array_type): Likewise.
2765 * eval.c (evaluate_subexp_with_coercion): Likewise.
2766 * findvar.c (address_of_variable): Likewise.
2767 * jv-valprint.c (java_value_print): Likewise.
2768 * valops.c (value_ind): Likewise.
2769 * value.c (coerce_ref): Likewise.
2771 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2773 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2774 value and retrieve the dynamic type size.
2776 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2778 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2779 passed to sizeof is dynamic evaluate the argument to compute the length.
2781 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2783 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2784 (dwarf2_evaluate_property): New function.
2785 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2786 * dwarf2read.c (attr_to_dynamic_prop): New function.
2787 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2789 * gdbtypes.c: Include dwarf2loc.h.
2790 (is_dynamic_type): New function.
2791 (resolve_dynamic_type): New function.
2792 (resolve_dynamic_bounds): New function.
2793 (get_type_length): New function.
2794 (check_typedef): Use get_type_length to compute type length.
2795 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2796 (TYPE_LOW_BOUND_KIND): New macro.
2797 (is_dynamic_type): New function prototype.
2798 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2799 to resolve dynamic properties of the type. Update comment.
2800 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2802 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2804 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2805 declaring high/low bounds and change uses accordingly. Call
2806 create_range_type instead of create_static_range_type.
2807 * gdbtypes.c (create_range_type): New function.
2808 (create_range_type): Convert bounds into struct bound_prop and pass
2809 them to create_range_type.
2810 * gdbtypes.h (struct bound_prop): New struct.
2811 (create_range_type): New function prototype.
2812 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2813 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2814 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2816 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2818 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2820 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2821 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2822 * ada-lang.c: All uses of create_range_type updated.
2823 * coffread.c: All uses of create_range_type updated.
2824 * dwarf2read.c: All uses of create_range_type updated.
2825 * f-exp.y: All uses of create_range_type updated.
2826 * m2-valprint.c: All uses of create_range_type updated.
2827 * mdebugread.c: All uses of create_range_type updated.
2828 * stabsread.c: All uses of create_range_type updated.
2829 * valops.c: All uses of create_range_type updated.
2830 * valprint.c: All uses of create_range_type updated.
2832 2014-04-10 Pedro Alves <palves@redhat.com>
2834 * breakpoint.c (single_step_breakpoints)
2835 (single_step_gdbarch): Move up in the file.
2836 (one_breakpoint_xfer_memory): New function, factored out from ...
2837 (breakpoint_xfer_memory): ... here. Also process single-step
2840 2014-04-09 Tristan Gingold <gingold@adacore.com>
2842 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2844 (darwin_decode_exception_message): Free port only after use.
2846 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2848 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2849 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2850 when setting the size of call_length.
2852 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2854 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2855 dereference TYPE_CODE_REF values.
2857 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2859 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2860 end of warning message.
2862 2014-04-03 Doug Evans <dje@google.com>
2864 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2865 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2867 2014-04-02 Alan Modra <amodra@gmail.com>
2869 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2870 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2871 (struct symbol_file_add_from_memory_args): Add size field.
2872 (find_vdso_size): New function.
2873 (add_vsyscall_page): Attempt to find vdso size.
2875 2014-04-01 Doug Evans <dje@google.com>
2877 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2879 2014-04-01 Tristan Gingold <gingold@adacore.com>
2881 * darwin-nat.c (darwin_encode_reply): Add prototype.
2882 (darwin_decode_exception_message): Reply to unknown inferiors.
2883 (darwin_decode_message): Handle message by id. Ignore message
2884 to unknown inferior.
2885 (darwin_wait): Discard unknown messages, add debug trace.
2887 2014-03-31 Doug Evans <dje@google.com>
2889 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2892 2014-03-31 Doug Evans <dje@google.com>
2894 New option "set print symbol-loading".
2896 * solib.c (solib_read_symbols): Only print symbol loading messages
2898 (solib_add): If symbol loading is in "brief" mode, notify user
2899 symbols are being loaded.
2900 (reload_shared_libraries_1): Ditto.
2901 * symfile.c (print_symbol_loading_off): New static global.
2902 (print_symbol_loading_brief): New static global.
2903 (print_symbol_loading_full): New static global.
2904 (print_symbol_loading_enums): New static global.
2905 (print_symbol_loading): New static global.
2906 (print_symbol_loading_p): New function.
2907 (symbol_file_add_with_addrs): Only print symbol loading messages
2909 (_initialize_symfile): Register "print symbol-loading" set/show
2911 * symfile.h (print_symbol_loading_p): Declare.
2913 2014-03-30 Doug Evans <xdje42@gmail.com>
2915 * infrun.c (set_last_target_status): New function.
2916 (handle_inferior_event): Call it.
2918 2014-03-30 Doug Evans <xdje42@gmail.com>
2920 * inferior.h (enum stop_kind): Improve comment.
2922 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2924 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2925 a reference, strip the reference layer before calling
2926 the lang_ops value_has_mutated callback.
2928 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2930 Remove some globals from our parser.
2931 * language.c (unk_lang_parser): Add "struct parser_state"
2933 * language.h (struct language_defn) <la_parser>: Likewise.
2934 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2935 (initialize_expout): Add "struct parser_state" argument.
2936 Rewrite function to use the parser state.
2937 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2938 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2939 write_exp_elt_longcst, write_exp_elt_dblcst,
2940 write_exp_elt_decfloatcst, write_exp_elt_type,
2941 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2942 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2943 write_dollar_variable): Likewise.
2944 (parse_exp_in_context_1): Use parser state.
2945 (insert_type_address_space): Add "struct parser_state" argument.
2947 (increase_expout_size): New function.
2948 * parser-defs.h: Forward declare "struct language_defn" and
2949 "struct parser_state".
2950 (expout, expout_size, expout_ptr): Remove extern declarations.
2951 (parse_gdbarch, parse_language): Rewrite macro declarations to
2952 accept the parser state.
2953 (struct parser_state): New struct.
2954 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2955 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2956 write_exp_elt_decfloatcst, write_exp_elt_type,
2957 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2958 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2959 write_exp_msymbol, write_dollar_variable,
2960 mark_struct_expression, insert_type_address_space): Add "struct
2961 parser_state" argument.
2962 (increase_expout_size): New function.
2963 * utils.c (do_clear_parser_state): New function.
2964 (make_cleanup_clear_parser_state): Likewise.
2965 * utils.h (make_cleanup_clear_parser_state): New function
2967 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2968 Update calls to write_exp* in order to pass the parser state.
2969 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2970 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2971 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2972 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2973 * stap-probe.c (stap_parse_register_operand): Likewise.
2974 (stap_parse_single_operand): Likewise.
2975 (stap_parse_argument_1): Likewise.
2976 (stap_parse_argument): Use parser state.
2977 * stap-probe.h: Include "parser-defs.h".
2978 (struct stap_parse_info) <pstate>: New field.
2979 * c-exp.y (parse_type): Rewrite to use parser state.
2980 (yyparse): Redefine to c_parse_internal.
2981 (pstate): New global variable.
2982 (parse_number): Add "struct parser_state" argument.
2983 (write_destructor_name): Likewise.
2984 (type_exp): Update calls to write_exp* and similars in order to
2986 (exp1, exp, variable, qualified_name, space_identifier,
2987 typename, typebase): Likewise.
2988 (write_destructor_name, parse_number, lex_one_token,
2989 classify_name, classify_inner_name, c_parse): Add "struct
2990 parser_state" argument. Update function to use parser state.
2991 * c-lang.h: Forward declare "struct parser_state".
2992 (c_parse): Add "struct parser_state" argument.
2993 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2994 (yyparse): Redefine macro to ada_parse_internal.
2995 (pstate): New variable.
2996 (write_int, write_object_renaming, write_var_or_type,
2997 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2998 type_int, type_long, type_long_long, type_float, type_double,
2999 type_long_double, type_char, type_boolean, type_system_address):
3000 Add "struct parser_state" argument.
3001 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3002 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3003 var_or_type, aggregate, aggregate_component_list,
3004 positional_list, others, component_group,
3005 component_associations): Update calls to write_exp* and similar
3006 functions in order to use parser state.
3007 (ada_parse, write_var_from_sym, write_int,
3008 write_exp_op_with_string, write_object_renaming,
3009 find_primitive_type, write_selectors, write_ambiguous_var,
3010 write_var_or_type, write_name_assoc, type_int, type_long,
3011 type_long_long, type_float, type_double, type_long_double,
3012 type_char, type_boolean, type_system_address): Add "struct
3013 parser_state" argument. Adjust function to use parser state.
3014 * ada-lang.c (parse): Likewise.
3015 * ada-lang.h: Forward declare "struct parser_state".
3016 (ada_parse): Add "struct parser_state" argument.
3017 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3018 calls to both functions.
3019 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3021 (yyparse): Redefine macro to f_parse_internal.
3022 (pstate): New variable.
3023 (parse_number): Add "struct parser_state" argument.
3024 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3025 and similars in order to use parser state.
3026 (parse_number): Adjust code to use parser state.
3028 (f_parse): New function.
3029 * f-lang.h: Forward declare "struct parser_state".
3030 (f_parse): Add "struct parser_state" argument.
3031 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3033 (yyparse): Redefine macro for java_parse_internal.
3034 (pstate): New variable.
3035 (push_expression_name, push_expression_name, insert_exp): Add
3036 "struct parser_state" argument.
3037 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3038 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3039 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3040 PostIncrementExpression, PostDecrementExpression,
3041 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3042 UnaryExpressionNotPlusMinus, CastExpression,
3043 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3044 RelationalExpression, EqualityExpression, AndExpression,
3045 ExclusiveOrExpression, InclusiveOrExpression,
3046 ConditionalAndExpression, ConditionalOrExpression,
3047 ConditionalExpression, Assignment, LeftHandSide): Update
3048 calls to write_exp* and similars in order to use parser state.
3049 (parse_number): Ajust code to use parser state.
3051 (java_parse): New function.
3052 (push_variable): Add "struct parser_state" argument. Adjust
3053 code to user parser state.
3054 (push_fieldnames, push_qualified_expression_name,
3055 push_expression_name, insert_exp): Likewise.
3056 * jv-lang.h: Forward declare "struct parser_state".
3057 (java_parse): Add "struct parser_state" argument.
3058 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3060 (yyparse): Redefine macro to m2_parse_internal.
3061 (pstate): New variable.
3062 (type_exp, exp, fblock, variable, type): Update calls to
3063 write_exp* and similars to use parser state.
3065 (m2_parse): New function.
3066 * m2-lang.h: Forward declare "struct parser_state".
3067 (m2_parse): Add "struct parser_state" argument.
3068 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3069 * objc-lang.h: Forward declare "struct parser_state".
3070 (end_msglist): Add "struct parser_state" argument.
3071 * p-exp.y (parse_type): Rewrite macro to use parser state.
3072 (yyparse): Redefine macro to pascal_parse_internal.
3073 (pstate): New variable.
3074 (parse_number): Add "struct parser_state" argument.
3075 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3076 write_exp* and similars in order to use parser state.
3077 (parse_number, yylex): Adjust code to use parser state.
3078 (pascal_parse): New function.
3079 * p-lang.h: Forward declare "struct parser_state".
3080 (pascal_parse): Add "struct parser_state" argument.
3081 * go-exp.y (parse_type): Rewrite macro to use parser state.
3082 (yyparse): Redefine macro to go_parse_internal.
3083 (pstate): New variable.
3084 (parse_number): Add "struct parser_state" argument.
3085 (type_exp, exp1, exp, variable, type): Update calls to
3086 write_exp* and similars in order to use parser state.
3087 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3088 to use parser state.
3089 (go_parse): Likewise.
3090 * go-lang.h: Forward declare "struct parser_state".
3091 (go_parse): Add "struct parser_state" argument.
3093 2014-03-27 Doug Evans <dje@google.com>
3095 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3097 2014-03-27 Doug Evans <dje@google.com>
3099 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3100 Remove argument abbrev_section. All callers updated.
3102 2014-03-27 Doug Evans <dje@google.com>
3104 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3105 addr_base, ranges_base.
3107 2014-03-26 Keith Seitz <keiths@redhat.com>
3109 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3110 types, not VAR_DOMAIN.
3112 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3114 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3116 * features/nios2-linux.c: Regenerated.
3117 * features/nios2.c: Regenerated.
3119 2014-03-25 Pedro Alves <palves@redhat.com>
3121 * cli/cli-script.c (script_from_file): Force the interpreter to
3124 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3126 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3127 small stack allocation.
3129 2014-03-24 Tristan Gingold <gingold@adacore.com>
3131 * darwin-nat.c (exc_server): Remove unused prototype.
3132 (darwin_dump_message): Correctly display data on x86_64.
3133 (darwin_encode_reply): Fix style.
3134 Add comments and fix indentation.
3136 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3138 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3140 2014-03-22 Doug Evans <xdje42@gmail.com>
3142 * infcmd.c: Whitespace fixes.
3143 (interrupt_command): Merge two function comments into one.
3145 2014-03-22 Doug Evans <xdje42@gmail.com>
3147 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3150 2014-03-22 Yao Qi <yao@codesourcery.com>
3152 * remote.c (target_read_live_memory): Remove.
3153 (memory_xfer_live_readonly_partial): Rename it to
3154 remote_xfer_live_readonly_partial. Remove argument 'object'.
3155 All callers updated. Call remote_read_bytes_1
3156 instead of target_read_live_memory.
3157 * tracepoint.c (set_traceframe_number): Remove.
3158 (make_cleanup_restore_traceframe_number): Likewise .
3159 * tracepoint.h (set_traceframe_number): Remove declaration.
3160 (make_cleanup_restore_traceframe_number): Likewise.
3162 2014-03-22 Yao Qi <yao@codesourcery.com>
3164 * remote.c (remote_read_bytes): Move code on reading from the
3166 (remote_read_bytes_1): ... here. New function.
3168 2014-03-22 Yao Qi <yao@codesourcery.com>
3170 * ctf.c (ctf_xfer_partial): Check the return value of
3171 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3172 return TARGET_XFER_UNAVAILABLE.
3173 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3174 * target.c (target_read_live_memory): Move it to remote.c.
3175 (memory_xfer_live_readonly_partial): Likewise.
3176 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3177 * remote.c (target_read_live_memory): Moved from target.c.
3178 (memory_xfer_live_readonly_partial): Likewise.
3179 (remote_read_bytes): Factored out from
3180 memory_xfer_partial_1.
3182 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3184 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3187 2014-03-21 Pedro Alves <palves@redhat.com>
3189 * infrun.c (normal_stop): Extend comment.
3191 2014-03-21 Hui Zhu <hui@codesourcery.com>
3192 Pedro Alves <palves@redhat.com>
3194 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3196 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3197 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3198 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3200 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3202 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3203 `z' formatted output modifier.
3205 2014-03-20 Tom Tromey <tromey@redhat.com>
3206 Sergio Durigan Junior <sergiodj@redhat.com>
3208 * probe.c (parse_probes): Turn assert into an ordinary error.
3209 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3210 exceptions when parsing probes. Rearrange the code for clarity.
3212 2014-03-20 Tom Tromey <tromey@redhat.com>
3215 * top.c (execute_command): Only dispatch events if the command
3218 2014-03-20 Tom Tromey <tromey@redhat.com>
3221 * infcall.c: Include event-top.h.
3222 (run_inferior_call): Call async_disable_stdin if needed.
3224 2014-03-20 Pedro Alves <palves@redhat.com>
3226 * infrun.c (prepare_to_proceed): Delete.
3227 (thread_still_needs_step_over): New function.
3228 (find_thread_needs_step_over): New function.
3229 (proceed): If the current thread needs a step-over, set its
3230 steping_over_breakpoint flag. Adjust to use
3231 find_thread_needs_step_over instead of prepare_to_proceed.
3232 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3233 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3235 (switch_back_to_stepped_thread): Step over breakpoints of all
3236 threads not the stepping thread, before switching back to the
3239 2014-03-20 Pedro Alves <palves@redhat.com>
3241 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3243 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3244 * infrun.c (saved_singlestep_ptid)
3245 (stepping_past_singlestep_breakpoint): Delete.
3246 (resume): Remove stepping_past_singlestep_breakpoint handling.
3247 (proceed): Store the prev_pc of the stepping thread too.
3248 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3250 (enum infwait_states): Delete infwait_thread_hop_state.
3251 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3253 (handle_inferior_event): Adjust.
3254 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3255 handling and the thread-hop code. Before removing single-step
3256 breakpoints, check whether the thread hit a single-step breakpoint
3257 of another thread. If it did, the trap is not a random signal.
3258 (switch_back_to_stepped_thread): If the event thread hit a
3259 single-step breakpoint, unblock it before switching to the
3260 stepping thread. Handle the case of the stepped thread having
3262 (keep_going): Handle the case of the current thread moving past a
3263 single-step breakpoint.
3265 2014-03-20 Pedro Alves <palves@redhat.com>
3268 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3269 are being stepped over.
3270 (breakpoint_address_match): Make extern.
3271 * breakpoint.h (breakpoint_address_match): New declaration.
3272 * inferior.h (stepping_past_instruction_at): New declaration.
3273 * infrun.c (struct step_over_info): New type.
3274 (step_over_info): New global.
3275 (set_step_over_info, clear_step_over_info)
3276 (stepping_past_instruction_at): New functions.
3277 (handle_inferior_event): Clear the step-over info when
3278 trap_expected is cleared.
3279 (resume): Remove now stale comment.
3280 (clear_proceed_status): Clear step-over info.
3281 (proceed): Adjust step-over handling to set or clear the step-over
3282 info instead of removing all breakpoints.
3283 (handle_signal_stop): When setting up a thread-hop, don't remove
3285 (stop_stepping): Clear step-over info.
3286 (keep_going): Adjust step-over handling to set or clear step-over
3287 info and then always inserting breakpoints, instead of removing
3288 all breakpoints when stepping over one.
3290 2014-03-20 Pedro Alves <palves@redhat.com>
3292 * infrun.c (previous_inferior_ptid): Adjust comment.
3293 (deferred_step_ptid): Delete.
3294 (infrun_thread_ptid_changed, prepare_to_proceed)
3295 (init_wait_for_inferior): Adjust.
3296 (handle_signal_stop): Delete deferred_step_ptid handling.
3298 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * defs.h (sync_quit_force_run): New declaration.
3302 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3303 * event-top.c (async_sigterm_handler): New declaration.
3304 (async_sigterm_token): New variable.
3305 (async_init_signals): Create also async_sigterm_token.
3306 (async_sigterm_handler): New function.
3307 (sync_quit_force_run): New variable.
3308 (handle_sigterm): Replace quit_force call by other calls.
3309 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3311 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3313 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3314 offset into SPE pseudo registers.
3316 2014-03-18 Pedro Alves <palves@redhat.com>
3319 * inferior.h (print_stop_event): Declare.
3320 * infrun.c (print_stop_event): New, factored out from ...
3321 (normal_stop): ... this.
3322 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3323 of bpstat_print/print_stack_frame.
3325 2014-03-17 Tom Tromey <tromey@redhat.com>
3327 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3329 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3331 * ada-lang.c (decode_constrained_packed_array): Perform a
3332 minimal coercion for reference with coerce_ref instead of
3335 2014-03-17 Tristan Gingold <gingold@adacore.com>
3337 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3338 (darwin_solib_create_inferior_hook): Emit a warning if version
3341 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3343 * python/py-value.c (get_field_flag): Cast flag_name argument to
3344 PyObject_GetAttrString to support Python 2.4.
3346 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3349 (Global Maintainers): Remove Jan Kratochvil.
3351 2014-03-14 Pedro Alves <palves@redhat.com>
3353 * inferior.h (terminal_ours_for_output): Rename to ...
3354 (child_terminal_ours_for_output): ... this.
3355 (terminal_save_ours): Rename to ...
3356 (child_terminal_save_ours): ... this.
3357 (terminal_ours): Rename to ...
3358 (child_terminal_ours): ... this.
3359 (terminal_inferior): Rename to ...
3360 (child_terminal_inferior): ... this.
3361 (terminal_init_inferior): Rename to ...
3362 (child_terminal_init_inferior): ... this.
3363 (terminal_init_inferior_with_pgrp): Rename to ...
3364 (child_terminal_init_inferior_with_pgrp): ... this.
3365 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3366 (child_terminal_init_with_pgrp): ... this.
3367 (terminal_save_ours): Rename to ...
3368 (child_terminal_save_ours): ... this.
3369 (terminal_init_inferior): Rename to ...
3370 (child_terminal_init): ... this. Adjust.
3371 (terminal_inferior): Rename to ...
3372 (child_terminal_inferior): ... this.
3373 (terminal_ours_for_output): Rename to ...
3374 (child_terminal_ours_for_output): ... this. Adjust.
3375 (terminal_ours): Rename to ...
3376 (child_terminal_ours): ... this.
3377 (terminal_ours_1): Rename to ...
3378 (child_terminal_ours_1): ... this. Adjust.
3379 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3380 * windows-nat.c (do_initial_windows_stuff): Adjust.
3381 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3382 (gnu_terminal_init): ... this. Adjust.
3383 (gnu_target): Adjust.
3384 * inf-child.c (inf_child_target): Adjust.
3386 2014-03-13 Doug Evans <xdje42@gmail.com>
3389 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3392 2014-03-13 Doug Evans <xdje42@gmail.com>
3394 * value.c (record_latest_value): Call release_value_or_incref
3395 instead of release_value.
3397 2014-03-13 Pedro Alves <palves@redhat.com>
3399 * procfs.c (procfs_target): Don't override to_shortname,
3400 to_longname or to_doc.
3402 2014-03-13 Pedro Alves <palves@redhat.com>
3404 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3405 Unix in user visible strings.
3407 2014-03-12 Stan Shebs <stan@codesourcery.com>
3409 * gdbtypes.h: Annotate comments for Doxygen, add a page
3410 block comment with some general info.
3412 2014-03-12 Pedro Alves <palves@redhat.com>
3414 * infcmd.c (prepare_execution_command): New function, factored out
3415 from several execution commands.
3416 (run_command_1, continue_command, step_1, jump_command)
3417 (signal_command, until_command, advance_command, finish_command)
3418 (attach_command): Use prepare_execution_command.
3420 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3422 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3425 (struct arm_linux_thread_points): Removed.
3426 (struct arm_linux_process_info): New.
3427 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3428 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3429 (arm_linux_find_breakpoints_by_tid): Removed.
3430 (struct arch_lwp_info): New.
3431 (arm_linux_find_process_pid): New functions.
3432 (arm_linux_add_process): New functions.
3433 (arm_linux_process_info_get): New functions.
3434 (arm_linux_forget_process): New function.
3435 (arm_linux_get_debug_reg_state): New function.
3436 (struct update_registers_data): New.
3437 (update_registers_callback): New function.
3438 (arm_linux_insert_hw_breakpoint1): Updated.
3439 (arm_linux_remove_hw_breakpoint1): Updated.
3440 (arm_linux_insert_hw_breakpoint): Updated.
3441 (arm_linux_remove_hw_breakpoint): Updated.
3442 (arm_linux_insert_watchpoint): Updated.
3443 (arm_linux_remove_watchpoint): Updated.
3444 (arm_linux_new_thread): Updated.
3445 (arm_linux_prepare_to_resume): New function.
3446 (arm_linux_new_fork): New function.
3447 (_initialize_arm_linux_nat): Updated.
3449 2014-03-12 Pedro Alves <palves@redhat.com>
3451 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3453 2014-03-12 Tom Tromey <tromey@redhat.com>
3455 * inf-child.c (return_zero): New function.
3456 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3457 * aix-thread.c (aix_thread_inferior_created): New function.
3458 (aix_thread_attach): Remove.
3459 (init_aix_thread_ops): Don't set to_attach.
3460 (_initialize_aix_thread): Register inferior_created observer.
3461 * corelow.c (init_core_ops): Don't set to_attach or
3463 * exec.c (init_exec_ops): Don't set to_attach or
3465 * infcmd.c (run_command_1): Use find_run_target. Make direct
3467 (attach_command): Use find_attach_target. Make direct target
3469 * record-btrace.c (init_record_btrace_ops): Don't set
3471 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3473 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3474 set to_create_inferior.
3475 * target.c (complete_target_initialization): Add assertion.
3476 (target_create_inferior): Remove.
3477 (find_default_attach, find_default_create_inferior): Remove.
3478 (find_attach_target, find_run_target): New functions.
3479 (find_default_is_async_p, find_default_can_async_p)
3480 (target_supports_non_stop, target_attach): Remove.
3481 (init_dummy_target): Don't set to_create_inferior or
3482 to_supports_non_stop.
3483 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3484 TARGET_DEFAULT_FUNC.
3485 <to_create_inferior>: Add comment.
3486 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3487 TARGET_DEFAULT_RETURN.
3488 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3489 (find_attach_target, find_run_target): Declare.
3490 (target_create_inferior): Remove.
3491 (target_has_execution_1): Update comment.
3492 (target_supports_non_stop): Remove.
3493 * target-delegates.c: Rebuild.
3495 2014-03-12 Pedro Alves <palves@redhat.com>
3497 * inf-child.h: Update comment to not mention Unix.
3499 2014-03-12 Pedro Alves <palves@redhat.com>
3501 * inf-child.c: Update top comment to not mention Unix. Add
3502 generic comment describing how this target is meant to be used.
3503 (inf_child_post_attach, inf_child_post_startup_inferior)
3504 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3507 2014-03-12 Pedro Alves <palves@redhat.com>
3509 * nto-procfs.c: Include inf-child.h.
3510 (procfs_ops): Delete global.
3511 (procfs_can_run): Delete method.
3512 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3513 target pointer instead of referencing procfs_ops.
3514 (procfs_prepare_to_store): Delete.
3515 (init_procfs_ops): Delete function.
3516 (procfs_target): New function, based on init_procfs_ops, but
3517 inherit inf_child_target.
3518 (_initialize_procfs): Use procfs_target.
3520 2014-03-12 Pedro Alves <palves@redhat.com>
3522 * windows-nat.c: Include inf-child.h.
3523 (windows_ops): Delete global.
3524 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3526 (init_windows_ops): Delete function.
3527 (windows_target): New function, based on init_windows_ops, but
3528 inherit inf_child_target.
3529 (_initialize_windows_nat): Use windows_target. Install x86
3530 specific target methods here.
3532 2014-03-10 Doug Evans <xdje42@gmail.com>
3534 * guile/guile.c (call_initialize_gdb_module): New function.
3535 (initialize_guile): Replace call to scm_init_guile with call to
3538 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3540 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3541 in call to TYPE_CODE macro.
3543 2014-03-10 Jerome Guitton <guitton@adacore.com>
3545 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3546 Resolve tagged types to full view.
3548 2014-03-10 Hui Zhu <hui@codesourcery.com>
3550 * target.h (target_insert_breakpoint): Remove "hardware" from its
3553 2014-03-07 Doug Evans <dje@google.com>
3555 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3557 2014-03-07 Doug Evans <dje@google.com>
3559 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3560 Remove unused local comp_dir_attr. Assert exactly one of
3561 stub_comp_unit_die, stub_comp_dir is non-NULL.
3563 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3565 * target.h (complete_target_initialization, add_target):
3568 2014-03-07 Pedro Alves <palves@redhat.com>
3570 * go32-nat.c: Include inf-child.h.
3571 (go32_ops): Delete global.
3572 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3574 (go32_create_inferior): Push the passed in target pointer instead
3575 of referencing go32_ops.
3576 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3577 (go32_target): New function, based on init_go32_ops, but inherit
3579 (_initialize_go32_nat): Use go32_target. Move parts of
3582 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3584 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3585 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3586 SYMBOL_VALUE_ADDRESS.
3587 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3589 2014-03-06 Yao Qi <yao@codesourcery.com>
3591 * breakpoint.c (get_tracepoint_by_number): Remove argument
3592 optional_p. All callers updated. Adjust comments. Update
3594 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3596 2014-03-06 Yao Qi <yao@codesourcery.com>
3598 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3599 early if get_number returns zero. Use 'p' instead of 'args'.
3601 2014-03-06 Yao Qi <yao@codesourcery.com>
3603 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3606 2014-03-06 Yao Qi <yao@codesourcery.com>
3608 PR breakpoints/16508
3609 * tracepoint.c (check_trace_running): New function.
3610 (trace_find_command): Move code to check_trace_running and
3611 call check_trace_running.
3612 (trace_find_pc_command): Likewise.
3613 (trace_find_tracepoint_command): Likewise.
3614 (trace_find_line_command): Likewise.
3615 (trace_find_range_command): Likewise.
3616 * tracepoint.h (check_trace_running): Likewise.
3617 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3619 2014-03-06 Yao Qi <yao@codesourcery.com>
3621 * target.h (struct target_ops) <to_traceframe_info>: Use
3622 TARGET_DEFAULT_NORETURN (tcomplain ()).
3623 * target-delegates.c: Regenerated.
3625 2014-03-05 Pedro Alves <palves@redhat.com>
3628 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3629 void. Update comment.
3630 (dcache_xfer_memory): Delete.
3631 (dcache_read_memory_partial): New, based on the read bits of
3633 (dcache_update): Add status parameter. Use ULONGEST for len, and
3634 adjust. Discard cache lines if the reason for the update was
3636 * dcache.h (dcache_xfer_memory): Delete declaration.
3637 (dcache_read_memory_partial): New declaration.
3638 (dcache_update): Update prototype.
3639 * target.c (raw_memory_xfer_partial): Update the dcache here.
3640 (memory_xfer_partial_1): Don't handle dcache writes here.
3642 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3644 * remote-sim.c (gdbsim_load): Add const to prog.
3646 2014-03-03 Tom Tromey <tromey@redhat.com>
3648 * elfread.c (probe_key): Change to bfd_data.
3649 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3650 now per-BFD, not per-objfile.
3651 * stap-probe.c (stap_probe_destroy): Update comment.
3652 (handle_stap_probe): Allocate on the per-BFD obstack.
3654 2014-03-03 Tom Tromey <tromey@redhat.com>
3656 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3657 * breakpoint.c (create_longjmp_master_breakpoint): Use
3659 (add_location_to_breakpoint, bkpt_probe_insert_location)
3660 (bkpt_probe_remove_location): Update.
3661 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3662 * elfread.c (elf_symfile_relocate_probe): Remove.
3663 (elf_probe_fns): Update.
3664 (insert_exception_resume_breakpoint): Change type of "probe"
3665 parameter to bound_probe.
3666 (check_exception_resume): Update.
3667 * objfiles.c (objfile_relocate1): Don't relocate probes.
3668 * probe.c (bound_probe_s): New typedef.
3669 (parse_probes): Use get_probe_address. Set sal's objfile.
3670 (find_probe_by_pc): Return a bound_probe.
3671 (collect_probes): Return a VEC(bound_probe_s).
3672 (compare_probes): Update.
3673 (gen_ui_out_table_header_info): Change type of "probes"
3675 (info_probes_for_ops): Update.
3676 (get_probe_address): New function.
3677 (probe_safe_evaluate_at_pc): Update.
3678 * probe.h (struct probe_ops) <get_probe_address>: New field.
3679 <set_semaphore, clear_semaphore>: Add objfile parameter.
3680 (struct probe) <objfile>: Remove field.
3682 <address>: Update comment.
3683 (struct bound_probe): New.
3684 (find_probe_by_pc): Return a bound_probe.
3685 (get_probe_address): Declare.
3686 * solib-svr4.c (struct probe_and_action) <address>: New field.
3687 (hash_probe_and_action, equal_probe_and_action): Update.
3688 (register_solib_event_probe): Add address parameter.
3689 (solib_event_probe_at): Update.
3690 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3692 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3693 (stap_get_probe_address): New function.
3694 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3695 (compile_probe_arg): Update.
3696 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3698 (handle_stap_probe): Don't relocate the probe.
3699 (stap_relocate): Remove.
3700 (stap_gen_info_probes_table_values): Update.
3701 (stap_probe_ops): Remove stap_relocate.
3702 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3703 (debug_sym_probe_fns): Update.
3704 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3705 * symtab.c (init_sal): Use memset.
3706 * symtab.h (struct symtab_and_line) <objfile>: New field.
3707 * tracepoint.c (start_tracing, stop_tracing): Update.
3709 2014-03-03 Tom Tromey <tromey@redhat.com>
3711 * probe.h (parse_probes, find_probe_by_pc)
3712 (find_probes_in_objfile): Fix comments.
3714 2014-03-02 Doug Evans <xdje42@gmail.com>
3716 * infrun.c (handle_signal_stop): Replace test for
3717 TARGET_WAITKIND_STOPPED with an assert.
3719 2014-03-02 Doug Evans <xdje42@gmail.com>
3721 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3723 2014-03-02 Doug Evans <xdje42@gmail.com>
3725 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3727 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3729 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3731 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3733 * i386obsd-nat.c: Include "obsd-nat.h".
3734 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3736 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3738 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3740 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3742 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3744 * mips64obsd-nat.c: Include "obsd-nath".
3745 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3747 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3749 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3751 * amd64obsd-nat.c: Include "obsd-nat,h.
3752 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3754 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3756 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3758 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3759 (find_overload_match): Update call to find_oload_champ.
3760 (find_oload_champ_namespace_loop): Likewise
3762 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3764 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3766 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3767 * config/sparc/obsd64.mh: New file.
3768 * sparc64obsd-nat.c: New file.
3770 * obsd-nat.h: New file.
3771 * obsd-nat.c: New file.
3772 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3773 (ALLDEPFILES): Add obsd-nat.c.
3775 2014-02-28 Tom Tromey <tromey@redhat.com>
3777 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3778 * cli-out.h (cli_ui_out_impl): Now const.
3779 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3780 * ui-out.c (struct ui_out) <impl>: Now const.
3781 (default_ui_out_impl): Now const.
3782 (ui_out_new): Make 'impl' parameter const.
3783 * ui-out.h (ui_out_new): Update.
3785 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3787 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3789 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3791 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3793 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3795 Additional PR 8882 fix.
3796 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3798 2014-02-27 Pedro Alves <palves@redhat.com>
3800 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3803 2014-02-27 Pedro Alves <palves@redhat.com>
3806 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3807 * nat/linux-waitpid.c: Include string.h.
3808 (status_to_str): Moved here and made extern.
3809 * nat/linux-waitpid.h (status_to_str): New declaration.
3811 2014-02-27 Hui Zhu <hui@codesourcery.com>
3814 * infrun.c (ptid_match): Move ...
3815 * common/ptid.c (ptid_match): ... here.
3816 * inferior.h (ptid_match): Move ...
3817 * common/ptid.h (ptid_match): ... here.
3819 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3821 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3822 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3825 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3827 * obsd-tdep.c (obsd_auxv_parse): New function.
3828 (obsd_init_abi): Set auxv_parse.
3830 * gdbarch.sh (auxv_parse): New.
3831 * gdbarch.h: Regenerated.
3832 * gdbarch.c: Regenerated.
3833 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3835 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3837 * guile/scm-value.c (gdbscm_history_append_x): New function.
3838 (value_functions): Add it.
3840 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3842 * dwarf2read.c (attr_value_as_address): New function.
3843 (dwarf2_find_base_address, read_call_site_scope): Use
3844 attr_value_as_address in place of DW_ADDR.
3845 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3846 the low and high addresses. Slight rework of the handling
3847 of the high pc being a constant form, and limit it to
3848 DWARF verson 4 or higher.
3849 (dwarf2_record_block_ranges): Likewise.
3850 (read_partial_die): Likewise.
3851 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3853 2014-02-26 Tom Tromey <tromey@redhat.com>
3855 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3857 2014-02-26 Tom Tromey <tromey@redhat.com>
3859 * elfread.c (elf_read_minimal_symbols): Return early if
3860 minimal symbols have already been read. Add "ei" parameter.
3861 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3862 * minsyms.c (prim_record_minimal_symbol_full): Update.
3863 * objfiles.h (struct objstats) <n_minsyms>: Move...
3864 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3865 * symmisc.c (print_objfile_statistics): Update.
3867 2014-02-26 Tom Tromey <tromey@redhat.com>
3869 * elfread.c (elf_read_minimal_symbols): New function, from
3871 (elf_symfile_read): Call it.
3873 2014-02-26 Tom Tromey <tromey@redhat.com>
3875 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3876 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3877 (lookup_minimal_symbol_solib_trampoline)
3878 (lookup_minimal_symbol_by_pc_section_1)
3879 (lookup_minimal_symbol_and_objfile): Update.
3880 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3881 Don't allocate a minimal symbol if minsyms have already been read.
3882 (build_minimal_symbol_hash_tables): Update.
3883 (install_minimal_symbols): Do nothing if minsyms already read.
3884 Use the per-BFD obstack.
3885 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3886 * objfiles.c (allocate_objfile): Call
3887 terminate_minimal_symbol_table later.
3888 (have_minimal_symbols): Update.
3889 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3890 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3891 Move from struct objfile.
3892 <minsyms_read>: New field.
3893 (struct objfile) <msymbols, minimal_symbol_count,
3894 msymbol_hash, msymbol_demangled_hash>: Move.
3895 (ALL_OBJFILE_MSYMBOLS): Update.
3896 * symfile.c (read_symbols): Set minsyms_read.
3897 (reread_symbols): Update.
3898 * symmisc.c (dump_objfile, dump_msymbols): Update.
3900 2014-02-26 Tom Tromey <tromey@redhat.com>
3902 * minsyms.c (msymbols_sort): Remove.
3903 * minsyms.h (msymbols_sort): Remove.
3904 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3905 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3906 * elfread.c (elf_symtab_read): Don't add section offsets.
3907 * xcoffread.c (record_minimal_symbol): Don't add section offset
3908 to minimal symbol address.
3909 * somread.c (text_offset, data_offset): Remove.
3910 (som_symtab_read): Don't add section offsets to minimal symbol
3912 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3913 Don't add section offsets to minimal symbols.
3914 * coffread.c (coff_symtab_read): Don't add section offsets
3915 to minimal symbol addresses.
3916 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3917 to minimal symbol addresses.
3918 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3919 section offset to minimal symbol addresses.
3920 * mdebugread.c (parse_partial_symbols): Don't add section
3921 offset to minimal symbol addresses.
3922 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3923 offset to minimal symbol addresses.
3925 2014-02-26 Tom Tromey <tromey@redhat.com>
3927 * ada-lang.c (ada_main_name): Update.
3928 (ada_add_standard_exceptions): Update.
3929 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3930 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3931 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3932 * auxv.c (ld_so_xfer_auxv): Update.
3933 * avr-tdep.c (avr_scan_prologue): Update.
3934 * ax-gdb.c (gen_var_ref): Update.
3935 * blockframe.c (get_pc_function_start)
3936 (find_pc_partial_function_gnu_ifunc): Update.
3937 * breakpoint.c (create_overlay_event_breakpoint)
3938 (create_longjmp_master_breakpoint)
3939 (create_std_terminate_master_breakpoint)
3940 (create_exception_master_breakpoint): Update.
3941 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3942 * c-valprint.c (c_val_print): Update.
3943 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3944 * common/agent.c (agent_look_up_symbols): Update.
3945 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3946 * dwarf2loc.c (call_site_to_target_addr): Update.
3947 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3948 * elfread.c (elf_gnu_ifunc_record_cache)
3949 (elf_gnu_ifunc_resolve_by_got): Update.
3950 * findvar.c (default_read_var_value): Update.
3951 * frame.c (inside_main_func): Update.
3952 * frv-tdep.c (frv_frame_this_id): Update.
3953 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3954 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3956 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3957 (hppa_hpux_find_dummy_bpaddr): Update.
3958 * hppa-tdep.c (hppa_symbol_address): Update.
3959 * infcmd.c (until_next_command): Update.
3960 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3962 * linespec.c (minsym_found, add_minsym): Update.
3963 * linux-nat.c (get_signo): Update.
3964 * linux-thread-db.c (inferior_has_bug): Update.
3965 * m32c-tdep.c (m32c_return_value)
3966 (m32c_m16c_address_to_pointer): Update.
3967 * m32r-tdep.c (m32r_frame_this_id): Update.
3968 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3969 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3970 * maint.c (maintenance_translate_address): Update.
3971 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3972 (frob_address): New function.
3973 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3974 frob_address. Rename parameter to "pc_in".
3975 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3977 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3979 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3980 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3981 * objc-lang.c (find_objc_msgsend): Update.
3982 * objfiles.c (objfile_relocate1): Update.
3983 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3984 * p-valprint.c (pascal_val_print): Update.
3985 * parse.c (write_exp_msymbol): Update.
3986 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3987 (ppc_elfv2_skip_entrypoint): Update.
3988 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3989 * printcmd.c (build_address_symbolic, msym_info)
3990 (address_info): Update.
3991 * proc-service.c (ps_pglobal_lookup): Update.
3992 * psymtab.c (find_pc_sect_psymtab_closer)
3993 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3994 Change msymbol parameter to bound_minimal_symbol.
3995 * ravenscar-thread.c (get_running_thread_id): Update.
3996 * remote.c (remote_check_symbols): Update.
3997 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3999 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4000 * solib-dsbt.c (lm_base): Update.
4001 * solib-frv.c (lm_base, main_got): Update.
4002 * solib-irix.c (locate_base): Update.
4003 * solib-som.c (som_solib_create_inferior_hook)
4004 (link_map_start): Update.
4005 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4006 * solib-svr4.c (elf_locate_base, enable_break): Update.
4007 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4008 (flush_ea_cache): Update.
4009 * stabsread.c (define_symbol, scan_file_globals): Update.
4010 * stack.c (find_frame_funname): Update.
4011 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4012 (debug_qf_find_pc_sect_symtab): Update.
4013 * symfile.c (simple_read_overlay_table)
4014 (simple_overlay_update): Update.
4015 * symfile.h (struct quick_symbol_functions)
4016 <find_pc_sect_symtab>: Change type of msymbol to
4017 bound_minimal_symbol.
4018 * symmisc.c (dump_msymbols): Update.
4019 * symtab.c (find_pc_sect_symtab_via_partial)
4020 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4021 (search_symbols, print_msymbol_info): Update.
4022 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4023 (MSYMBOL_VALUE_ADDRESS): Redefine.
4024 (BMSYMBOL_VALUE_ADDRESS): New macro.
4025 * tracepoint.c (scope_info): Update.
4026 * tui/tui-disasm.c (tui_find_disassembly_address)
4027 (tui_get_begin_asm_address): Update.
4028 * valops.c (find_function_in_inferior): Update.
4029 * value.c (value_static_field, value_fn_field): Update.
4031 2014-02-26 Tom Tromey <tromey@redhat.com>
4033 * ada-lang.c (ada_update_initial_language): Update.
4034 (ada_main_name, ada_has_this_exception_support): Update.
4035 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4036 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4037 * arm-tdep.c (arm_skip_stub): Update.
4038 * auxv.c (ld_so_xfer_auxv): Update.
4039 * avr-tdep.c (avr_scan_prologue): Update.
4040 * ax-gdb.c (gen_var_ref): Update.
4041 * breakpoint.c (struct breakpoint_objfile_data)
4042 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4043 type to bound_minimal_symbol.
4044 (create_overlay_event_breakpoint)
4045 (create_longjmp_master_breakpoint)
4046 (create_std_terminate_master_breakpoint)
4047 (create_exception_master_breakpoint): Update.
4048 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4049 * c-exp.y (classify_name): Update.
4050 * coffread.c (coff_symfile_read): Update.
4051 * common/agent.c (agent_look_up_symbols): Update.
4052 * d-lang.c (d_main_name): Update.
4053 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4054 * dec-thread.c (enable_dec_thread): Update.
4055 * dwarf2loc.c (call_site_to_target_addr): Update.
4056 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4057 * eval.c (evaluate_subexp_standard): Update.
4058 * findvar.c (struct minsym_lookup_data) <result>: Change type
4059 to bound_minimal_symbol.
4061 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4062 * frame.c (inside_main_func): Update.
4063 * frv-tdep.c (frv_frame_this_id): Update.
4064 * gcore.c (call_target_sbrk): Update.
4065 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4066 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4068 * go-lang.c (go_main_name): Update.
4069 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4070 (hppa_hpux_find_import_stub_for_addr): Update.
4071 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4072 Update. Change return type.
4073 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4075 * jit.c (jit_breakpoint_re_set_internal): Update.
4076 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4078 * linux-nat.c (get_signo): Update.
4079 * linux-thread-db.c (inferior_has_bug): Update
4080 * m32c-tdep.c (m32c_return_value)
4081 (m32c_m16c_address_to_pointer): Update.
4082 * m32r-tdep.c (m32r_frame_this_id): Update.
4083 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4084 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4085 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4086 lookup_minimal_symbol. Change return type.
4087 (lookup_minimal_symbol): Remove.
4088 (lookup_bound_minimal_symbol): Update.
4089 (lookup_minimal_symbol_text): Change return type.
4090 (lookup_minimal_symbol_solib_trampoline): Change return type.
4091 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4092 (lookup_minimal_symbol_solib_trampoline): Change return type.
4093 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4094 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4095 (value_nsstring, find_imps): Update.
4096 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4097 * p-lang.c (pascal_main_name): Update.
4098 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4099 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4100 * proc-service.c (ps_pglobal_lookup): Update.
4101 * ravenscar-thread.c (get_running_thread_msymbol): Change
4103 (has_ravenscar_runtime, get_running_thread_id): Update.
4104 * remote.c (remote_check_symbols): Update.
4105 * sol-thread.c (ps_pglobal_lookup): Update.
4106 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4107 * solib-dsbt.c (lm_base): Update.
4108 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4110 * solib-irix.c (locate_base): Update.
4111 * solib-som.c (som_solib_create_inferior_hook)
4112 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4114 * solib-spu.c (spu_enable_break): Update.
4115 * solib-svr4.c (elf_locate_base, enable_break): Update.
4116 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4117 (flush_ea_cache): Update.
4118 * stabsread.c (define_symbol): Update.
4119 * symfile.c (simple_read_overlay_table): Update.
4120 * symtab.c (find_pc_sect_line): Update.
4121 * tracepoint.c (scope_info): Update.
4122 * tui-disasm.c (tui_get_begin_asm_address): Update.
4123 * value.c (value_static_field): Update.
4125 2014-02-26 Tom Tromey <tromey@redhat.com>
4127 * minsyms.c (prim_record_minimal_symbol_full): Use
4128 SET_MSYMBOL_VALUE_ADDRESS.
4129 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4130 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4131 SET_MSYMBOL_VALUE_ADDRESS.
4132 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4133 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4135 2014-02-26 Tom Tromey <tromey@redhat.com>
4137 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4138 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4139 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4140 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4141 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4142 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4143 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4144 * ada-lang.c (ada_main_name): Update.
4145 (ada_lookup_simple_minsym): Update.
4146 (ada_make_symbol_completion_list): Update.
4147 (ada_add_standard_exceptions): Update.
4148 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4149 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4150 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4151 * arm-tdep.c (skip_prologue_function): Update.
4152 (arm_skip_stack_protector, arm_skip_stub): Update.
4153 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4154 (arm_wince_skip_main_prologue): Update.
4155 * auxv.c (ld_so_xfer_auxv): Update.
4156 * avr-tdep.c (avr_scan_prologue): Update.
4157 * ax-gdb.c (gen_var_ref): Update.
4158 * block.c (call_site_for_pc): Update.
4159 * blockframe.c (get_pc_function_start): Update.
4160 (find_pc_partial_function_gnu_ifunc): Update.
4161 * breakpoint.c (create_overlay_event_breakpoint): Update.
4162 (create_longjmp_master_breakpoint): Update.
4163 (create_std_terminate_master_breakpoint): Update.
4164 (create_exception_master_breakpoint): Update.
4165 (resolve_sal_pc): Update.
4166 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4167 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4169 * c-valprint.c (c_val_print): Update.
4170 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4171 * coffread.c (coff_symfile_read): Update.
4172 * common/agent.c (agent_look_up_symbols): Update.
4173 * dbxread.c (find_stab_function_addr): Update.
4174 (end_psymtab): Update.
4175 * dwarf2loc.c (call_site_to_target_addr): Update.
4176 (func_verify_no_selftailcall): Update.
4177 (tailcall_dump): Update.
4178 (call_site_find_chain_1): Update.
4179 (dwarf_expr_reg_to_entry_parameter): Update.
4180 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4181 (elf_gnu_ifunc_resolve_by_got): Update.
4182 * f-valprint.c (info_common_command): Update.
4183 * findvar.c (read_var_value): Update.
4184 * frame.c (get_prev_frame_1): Update.
4185 (inside_main_func): Update.
4186 * frv-tdep.c (frv_skip_main_prologue): Update.
4187 (frv_frame_this_id): Update.
4188 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4189 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4190 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4191 (gnuv3_skip_trampoline): Update.
4192 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4193 (hppa64_hpux_in_solib_call_trampoline): Update.
4194 (hppa_hpux_skip_trampoline_code): Update.
4195 (hppa64_hpux_search_dummy_call_sequence): Update.
4196 (hppa_hpux_find_import_stub_for_addr): Update.
4197 (hppa_hpux_find_dummy_bpaddr): Update.
4198 * hppa-tdep.c (hppa_symbol_address)
4199 (hppa_lookup_stub_minimal_symbol): Update.
4200 * i386-tdep.c (i386_skip_main_prologue): Update.
4201 (i386_pe_skip_trampoline_code): Update.
4202 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4203 * infcall.c (get_function_name): Update.
4204 * infcmd.c (until_next_command): Update.
4205 * jit.c (jit_breakpoint_re_set_internal): Update.
4206 (jit_inferior_init): Update.
4207 * linespec.c (minsym_found): Update.
4208 (add_minsym): Update.
4209 * linux-fork.c (info_checkpoints_command): Update.
4210 * linux-nat.c (get_signo): Update.
4211 * linux-thread-db.c (inferior_has_bug): Update.
4212 * m32c-tdep.c (m32c_return_value): Update.
4213 (m32c_m16c_address_to_pointer): Update.
4214 (m32c_m16c_pointer_to_address): Update.
4215 * m32r-tdep.c (m32r_frame_this_id): Update.
4216 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4217 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4218 * maint.c (maintenance_translate_address): Update.
4219 * minsyms.c (add_minsym_to_hash_table): Update.
4220 (add_minsym_to_demangled_hash_table): Update.
4221 (msymbol_objfile): Update.
4222 (lookup_minimal_symbol): Update.
4223 (iterate_over_minimal_symbols): Update.
4224 (lookup_minimal_symbol_text): Update.
4225 (lookup_minimal_symbol_by_pc_name): Update.
4226 (lookup_minimal_symbol_solib_trampoline): Update.
4227 (lookup_minimal_symbol_by_pc_section_1): Update.
4228 (lookup_minimal_symbol_and_objfile): Update.
4229 (prim_record_minimal_symbol_full): Update.
4230 (compare_minimal_symbols): Update.
4231 (compact_minimal_symbols): Update.
4232 (build_minimal_symbol_hash_tables): Update.
4233 (install_minimal_symbols): Update.
4234 (terminate_minimal_symbol_table): Update.
4235 (find_solib_trampoline_target): Update.
4236 (minimal_symbol_upper_bound): Update.
4237 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4238 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4239 (mips_skip_pic_trampoline_code): Update.
4240 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4241 * objc-lang.c (selectors_info): Update.
4242 (classes_info): Update.
4243 (find_methods): Update.
4244 (find_imps): Update.
4245 (find_objc_msgsend): Update.
4246 * objfiles.c (objfile_relocate1): Update.
4247 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4248 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4249 * p-valprint.c (pascal_val_print): Update.
4250 * parse.c (write_exp_msymbol): Update.
4251 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4252 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4253 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4254 * printcmd.c (build_address_symbolic): Update.
4256 (address_info): Update.
4257 * proc-service.c (ps_pglobal_lookup): Update.
4258 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4259 (find_pc_sect_psymtab): Update.
4260 * python/py-framefilter.c (py_print_frame): Update.
4261 * ravenscar-thread.c (get_running_thread_id): Update.
4262 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4264 * remote.c (remote_check_symbols): Update.
4265 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4266 (rs6000_skip_trampoline_code): Update.
4267 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4268 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4269 * solib-dsbt.c (lm_base): Update.
4270 * solib-frv.c (lm_base): Update.
4272 * solib-irix.c (locate_base): Update.
4273 * solib-som.c (som_solib_create_inferior_hook): Update.
4274 (som_solib_desire_dynamic_linker_symbols): Update.
4275 (link_map_start): Update.
4276 * solib-spu.c (spu_enable_break): Update.
4277 (ocl_enable_break): Update.
4278 * solib-svr4.c (elf_locate_base): Update.
4279 (enable_break): Update.
4280 * spu-tdep.c (spu_get_overlay_table): Update.
4281 (spu_catch_start): Update.
4282 (flush_ea_cache): Update.
4283 * stabsread.c (define_symbol): Update.
4284 (scan_file_globals): Update.
4285 * stack.c (find_frame_funname): Update.
4286 (frame_info): Update.
4287 * symfile.c (simple_read_overlay_table): Update.
4288 (simple_overlay_update): Update.
4289 * symmisc.c (dump_msymbols): Update.
4290 * symtab.c (fixup_section): Update.
4291 (find_pc_sect_line): Update.
4292 (skip_prologue_sal): Update.
4293 (search_symbols): Update.
4294 (print_msymbol_info): Update.
4295 (rbreak_command): Update.
4296 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4297 (completion_list_objc_symbol): Update.
4298 (default_make_symbol_completion_list_break_on): Update.
4299 * tracepoint.c (scope_info): Update.
4300 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4301 (tui_get_begin_asm_address): Update.
4302 * valops.c (find_function_in_inferior): Update.
4303 * value.c (value_static_field): Update.
4304 (value_fn_field): Update.
4306 2014-02-26 Tom Tromey <tromey@redhat.com>
4308 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4309 bound minimal symbols. Move code that knows about minsym
4311 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4313 * minsyms.h (minimal_symbol_upper_bound): Declare.
4314 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4315 minimal_symbol_upper_bound.
4317 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4319 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4320 Use the type's name if its basic type does not have a tag.
4322 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4324 * dwarf2read.c (read_subrange_type): Add comment.
4326 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4328 * dwarf2read.c (update_enumeration_type_from_children): New
4329 function, mostly extracted from process_structure_scope.
4330 (read_enumeration_type): Call update_enumeration_type_from_children.
4331 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4332 and flag_flag_enum fields.
4334 2014-02-26 Pedro Alves <palves@redhat.com>
4336 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4337 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4338 to_xfer_partial method.
4340 2014-02-26 Pedro Alves <palves@redhat.com>
4342 * target.c (complete_target_initialization): Don't install
4343 default_xfer_partial as to_xfer_partial hook.
4345 (update_current_target): Don't INHERIT nor de_fault
4346 deprecated_xfer_memory. Delete de_fault macro.
4347 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4348 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4349 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4352 2014-02-26 Pedro Alves <palves@redhat.com>
4354 * go32-nat.c (my_write_child): New function.
4355 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4356 (go32_xfer_partial): New function.
4357 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4358 Instead install a to_xfer_partial hook.
4360 2014-02-26 Pedro Alves <palves@redhat.com>
4362 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4363 to_xfer_partial helper. Rewrite.
4364 (procfs_xfer_partial): New function.
4365 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4366 Install a to_xfer_partial hook.
4368 2014-02-26 Pedro Alves <palves@redhat.com>
4370 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4371 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4372 (m32r_xfer_partial): New function.
4373 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4374 Install a to_xfer_partial hook.
4376 2014-02-26 Pedro Alves <palves@redhat.com>
4378 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4380 (mips_xfer_partial): New function.
4381 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4382 hook. Install a to_xfer_partial hook.
4384 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4386 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4387 * gdbtypes.c (create_array_type_with_stride): New function,
4388 renaming create_array_type, but with an added parameter
4389 called "bit_stride".
4390 (create_array_type): Re-implement using
4391 create_array_type_with_stride.
4392 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4393 and DW_AT_bit_stride attributes.
4395 2014-02-26 Pedro Alves <palves@redhat.com>
4397 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4398 task-specific breakpoints.
4400 2014-02-25 Pedro Alves <palves@redhat.com>
4402 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4403 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4405 2014-02-25 Stan Shebs <stan@codesourcery.com>
4407 * defs.h: Annotate comments for Doxygen.
4409 2014-02-25 Tom Tromey <tromey@redhat.com>
4411 * target.h (target_ignore): Don't declare.
4412 * target.c (target_ignore): Remove.
4414 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4417 * auto-load.c (auto_load_objfile_script_1): Change filename to
4420 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4422 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4423 documentation. Adjust prototype to match the target_ops
4424 to_xfer_partial method. Adjust implementation accordingly.
4426 2014-02-25 Hui Zhu <hui@codesourcery.com>
4428 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4431 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4433 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4434 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4435 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4436 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4437 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4438 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4439 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4440 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4442 (rl78_register_type): Use a data pointer type for SP and
4443 new pseudo registers mentioned above. Use a 16 bit integer
4444 type for all other register pairs.
4445 (rl78_register_name, rl78_g10_register_name): Update for
4446 new pseudo registers.
4447 (rl78_pseudo_register_read): Likewise.
4448 (rl78_pseudo_register_write): Likewise.
4449 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4450 to the newly added pseudo registers.
4452 2014-02-24 Doug Evans <dje@google.com>
4454 * value.c (record_latest_value): Fix comment.
4455 * printcmd.c (print_command_1): Remove code to handle -1 return from
4456 record_latest_value.
4458 2014-02-24 Pedro Alves <palves@redhat.com>
4460 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4461 deprecated_xfer_memory hook.
4462 (procfs_xfer_partial): Call procfs_xfer_memory instead
4463 of the deprecated_xfer_memory target hook.
4464 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4467 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4469 * windows-nat.c (windows_xfer_shared_libraries): Return
4470 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4471 requested object is TARGET_OBJECT_LIBRARIES.
4473 2014-02-24 Yao Qi <yao@codesourcery.com>
4475 * target.h (enum target_xfer_status)
4476 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4477 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4479 * corefile.c (memory_error_message): User updated.
4480 * exec.c (section_table_read_available_memory): Likewise.
4481 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4482 * target.c (target_xfer_status_to_string): Likewise.
4483 (raw_memory_xfer_partial): Likewise.
4484 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4485 * valops.c (read_value_memory): Likewise.
4486 * exec.h: Update comments.
4488 2014-02-24 Yao Qi <yao@codesourcery.com>
4490 * target.c (target_xfer_status_to_string): Rename argument err
4492 * target.h (target_xfer_status_to_string): Update declaration.
4493 Replace target_xfer_error_to_string with
4494 target_xfer_status_to_string in comment.
4496 2014-02-24 Yao Qi <yao@codesourcery.com>
4498 * mips-linux-nat.c (super_close): Update its type.
4499 (mips_linux_close): Pass 'self' to super_close.
4501 2014-02-24 Yao Qi <yao@codesourcery.com>
4503 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4504 * corefile.c (read_memory): Adjusted.
4505 * target.c (target_write_with_progress): Adjusted.
4507 2014-02-23 Yao Qi <yao@codesourcery.com>
4511 2013-10-25 Yao Qi <yao@codesourcery.com>
4513 * remote.c (remote_traceframe_info): Return early if
4514 traceframe is not selected.
4516 2013-07-19 Yao Qi <yao@codesourcery.com>
4518 * target.c (update_current_target): Change the default action
4519 of 'to_traceframe_info' from tcomplain to return_zero.
4520 * target.h (struct target_ops) <to_traceframe_info>: Add more
4523 2014-02-23 Yao Qi <yao@codesourcery.com>
4525 * valops.c (read_value_memory): Rewrite it. Call
4526 target_xfer_partial in a loop.
4527 * exec.h (section_table_available_memory): Remove declaration.
4528 Move comments to ...
4529 * exec.c (section_table_available_memory): ... here. Make it
4532 2014-02-23 Yao Qi <yao@codesourcery.com>
4534 * exec.c (section_table_read_available_memory): New function.
4535 * exec.h (section_table_read_available_memory): Declare.
4536 * ctf.c (ctf_xfer_partial): Call
4537 section_table_read_available_memory.
4538 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4540 2014-02-23 Yao Qi <yao@codesourcery.com>
4542 * ctf.c (ctf_xfer_partial): Move code to ...
4543 * exec.c (exec_read_partial_read_only): ... it. New function.
4544 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4545 * tracefile.c: Include "exec.h".
4546 * exec.h (exec_read_partial_read_only): Declare.
4548 2014-02-23 Yao Qi <yao@codesourcery.com>
4550 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4551 (tfile_has_memory): Remove.
4552 (init_tfile_ops): Don't set fields to_has_all_memory and
4553 to_has_memory of tfile_ops.
4554 * tracefile.c (tracefile_has_all_memory): New function.
4555 (tracefile_has_memory): New function.
4556 (init_tracefile_ops): Initialize fields to_has_all_memory and
4557 to_has_memory of 'ops'.
4559 2014-02-23 Yao Qi <yao@codesourcery.com>
4561 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4562 (ctf_thread_alive, ctf_get_trace_status): Remove.
4563 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4565 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4566 (tfile_has_stack, tfile_has_registers): Remove.
4567 (tfile_thread_alive): Remove.
4568 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4570 * tracefile.c (tracefile_has_stack): New function.
4571 (tracefile_has_registers): New function.
4572 (tracefile_thread_alive): New function.
4573 (tracefile_get_trace_status): New function.
4574 (init_tracefile_ops): New function.
4575 * tracefile.h (init_tracefile_ops): Declare.
4577 2014-02-23 Yao Qi <yao@codesourcery.com>
4579 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4580 (O_LARGEFILE): Likewise.
4581 (tfile_ops): Likewise.
4582 (TRACE_HEADER_SIZE): Likewise.
4583 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4584 (cur_data_size): Likewise.
4585 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4586 (tfile_close, tfile_files_info): Likewise.
4587 (tfile_get_trace_status): Likewise.
4588 (tfile_get_tracepoint_status): Likewise.
4589 (tfile_get_traceframe_address): Likewise.
4590 (tfile_trace_find, match_blocktype): Likewise.
4591 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4592 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4593 (tfile_get_trace_state_variable_value): Likewise.
4594 (tfile_has_all_memory, tfile_has_memory): Likewise.
4595 (tfile_has_stack, tfile_has_registers): Likewise.
4596 (tfile_thread_alive, build_traceframe_info): Likewise.
4597 (tfile_traceframe_info, init_tfile_ops): Likewise.
4598 (_initialize_tracepoint): Don't call init_tfile_ops
4599 and add_target_with_completer.
4600 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4601 exec.h, completer.h and filenames.h.
4602 (_initialize_tracefile_tfile): New function.
4604 2014-02-23 Yao Qi <yao@codesourcery.com>
4606 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4608 (HFILES_NO_SRCDIR): Add tracefile.h.
4609 * ctf.c: Include "tracefile.h".
4610 * tracefile.h: New file.
4611 * tracefile.c: New file
4612 * tracefile-tfile.c: New file.
4613 * tracepoint.c: Include "tracefile.h".
4614 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4615 (stop_reason_names): Add const.
4616 (trace_file_writer_xfree): Move it to tracefile.c.
4617 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4618 (trace_save_ctf): Likewise.
4619 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4620 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4621 (tfile_write_header, tfile_write_regblock_type): Likewise.
4622 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4623 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4624 (tfile_write_raw_data, tfile_end): Likewise.
4625 (tfile_trace_file_writer_new): Likewise.
4626 (free_uploaded_tp): Make it extern.
4627 (free_uploaded_tsv): Make it extern.
4628 (_initialize_tracepoint): Move code to register command 'tsave'
4630 * tracepoint.h (stop_reason_names): Declare.
4631 (struct trace_frame_write_ops): Move it to tracefile.h.
4632 (struct trace_file_write_ops): Likewise.
4633 (struct trace_file_writer): Likewise.
4634 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4636 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4639 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4641 (get_cores_used_by_process): New parameter num_cores, use it.
4642 (linux_xfer_osdata_processes): Pass num_cores to it.
4643 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4646 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4648 * target.c (memory_xfer_partial): Fix length arg in call to
4649 breakpoint_xfer_memory.
4651 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4654 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4655 number comes after the + or - signs. Adjust length of register
4656 name to be extracted.
4658 2014-02-20 Tom Tromey <tromey@redhat.com>
4660 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4661 (ada_varobj_ops): Mark "extern".
4663 2014-02-20 Tom Tromey <tromey@redhat.com>
4665 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4667 2014-02-20 Doug Evans <xdje42@gmail.com>
4669 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4670 All callers updated.
4671 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4672 All callers updated.
4673 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4674 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4676 2014-02-20 lin zuojian <manjian2006@gmail.com>
4677 Joel Brobecker <brobecker@adacore.com>
4678 Doug Evans <xdje42@gmail.com>
4681 * dwarf2read.c (struct die_info): New member in_process.
4682 (reset_die_in_process): New function.
4683 (process_die): Set it at the start, reset when returning.
4684 (inherit_abstract_dies): Only call process_die if origin_child_die
4685 not already being processed.
4687 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4689 * windows-nat.c (handle_unload_dll): Add function documentation.
4690 (do_initial_windows_stuff): Add comment explaining why we wait
4691 until after inferior initialization has finished before
4692 processing all DLLs.
4694 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4696 * windows-nat.c (get_module_name): Delete.
4697 (windows_get_exec_module_filename): New function, mostly
4698 inspired from get_module_name.
4699 (windows_pid_to_exec_file): Replace call to get_module_name
4700 by call to windows_get_exec_module_filename.
4702 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4704 * windows-nat.c (handle_load_dll): Rewrite this function's
4705 introductory comment. Remove code using get_module_name
4706 to get the DLL's name.
4708 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4710 * windows-nat.c (get_windows_debug_event): Ignore
4711 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4712 if windows_initialization_done == 0.
4713 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4714 Adjust implementation to always load all DLLs.
4715 (do_initial_windows_stuff): Replace call to
4716 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4718 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4720 * windows-nat.c (_initialize_windows_nat): Deprecate the
4721 "dll-symbols" command. Turn the "add-shared-symbol-files"
4722 and "assf" aliases into commands, and deprecate them as well.
4723 * NEWS: Add entry explaining that "dll-symbols" and its two
4724 aliases are now deprecated.
4726 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4728 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4729 new-line in debug string. Remove trailing spaces.
4731 2014-02-19 Stan Shebs <stan@codesourcery.com>
4733 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4735 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4737 * NEWS: Add entry for the new feature
4738 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4741 2014-02-19 Stan Shebs <stan@codesourcery.com>
4743 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4745 2014-02-19 Pedro Alves <palves@redhat.com>
4747 * common/ptid.h (struct ptid): Mention that process_stratum
4748 targets should prefer ptid.lwp.
4750 2014-02-19 Pedro Alves <palves@redhat.com>
4752 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4753 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4754 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4755 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4756 store remote thread ids rather than ptid.tid.
4757 (_initialize_remote): Adjust.
4759 2014-02-19 Tom Tromey <tromey@redhat.com>
4761 * target.c (target_get_unwinder): Rewrite.
4762 (target_get_tailcall_unwinder): Rewrite.
4763 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4764 (record_btrace_to_get_tailcall_unwinder): New function.
4765 (init_record_btrace_ops): Update.
4766 * target.h (struct target_ops) <to_get_unwinder,
4767 to_get_tailcall_unwinder>: Now function pointers. Use
4768 TARGET_DEFAULT_RETURN.
4770 2014-02-19 Tom Tromey <tromey@redhat.com>
4772 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4774 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4776 2014-02-19 Tom Tromey <tromey@redhat.com>
4778 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4780 * target-delegates.c: Rebuild.
4781 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4782 TARGET_DEFAULT_FUNC.
4783 * target.c (default_target_decr_pc_after_break): Rename from
4784 forward_target_decr_pc_after_break. Simplify.
4785 (target_decr_pc_after_break): Rely on delegation.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target.c (update_current_target): Do not INHERIT to_doc or
4790 to_magic. Do not de_fault to_open or to_close.
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * gcore.h (objfile_find_memory_regions): Declare.
4795 * gcore.c (objfile_find_memory_regions): No longer static. Add
4797 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4798 * exec.c: Include gcore.h.
4799 (exec_set_find_memory_regions): Remove.
4800 (exec_find_memory_regions): Remove.
4801 (exec_do_find_memory_regions): Remove.
4802 (init_exec_ops): Update.
4803 * defs.h (exec_set_find_memory_regions): Remove.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.h (struct target_ops) <to_extra_thread_info,
4809 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4810 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4811 not 0, in TARGET_DEFAULT_RETURN.
4813 2014-02-19 Tom Tromey <tromey@redhat.com>
4815 * target.c (complete_target_initialization): Remove casts. Use
4816 return_zero_has_execution.
4817 (return_zero): Add "ignore" argument.
4818 (return_zero_has_execution): New function.
4819 (init_dummy_target): Remove casts. Use
4820 return_zero_has_execution.
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target.c (update_current_target): Update comments. Do not
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4831 * corelow.c (core_read_description): Delegate when needed.
4832 * remote.c (remote_read_description): Delegate when needed.
4833 * target-delegates.c: Rebuild.
4834 * target.c (target_read_description): Rewrite.
4835 * target.h (struct target_ops) <to_read_description>: Update
4836 comment. Use TARGET_DEFAULT_RETURN.
4838 2014-02-19 Tom Tromey <tromey@redhat.com>
4840 * target-delegates.c: Rebuild.
4841 * target.c (update_current_target): Don't inherit or default
4843 (find_default_run_target): Check against delegate_can_run.
4844 * target.h (struct target_ops) <to_can_run>: Use
4845 TARGET_DEFAULT_RETURN.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (target_disconnect): Unconditionally delegate.
4851 * target.h (struct target_ops) <to_disconnect>: Use
4852 TARGET_DEFAULT_NORETURN.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * record.c (record_stop): Unconditionally delegate.
4857 * target-delegates.c: Rebuild.
4858 * target.c (target_stop_recording): Unconditionally delegate.
4859 * target.h (struct target_ops) <to_stop_recording>: Use
4860 TARGET_DEFAULT_IGNORE.
4862 2014-02-19 Tom Tromey <tromey@redhat.com>
4864 * target-delegates.c: Rebuild.
4865 * target.c (target_enable_btrace): Unconditionally delegate.
4866 * target.h (struct target_ops) <to_enable_btrace>: Use
4867 TARGET_DEFAULT_NORETURN.
4869 2014-02-19 Tom Tromey <tromey@redhat.com>
4871 * target-delegates.c: Rebuild.
4872 * target.c (target_read_btrace): Unconditionally delegate.
4873 * target.h (struct target_ops) <to_read_btrace>: Use
4874 TARGET_DEFAULT_NORETURN.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * target-delegates.c: Rebuild.
4879 * target.c (target_teardown_btrace): Unconditionally delegate.
4880 * target.h (struct target_ops) <to_teardown_btrace>: Use
4881 TARGET_DEFAULT_NORETURN.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (target_disable_btrace): Unconditionally delegate.
4887 * target.h (struct target_ops) <to_disable_btrace>: Use
4888 TARGET_DEFAULT_NORETURN.
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target-delegates.c: Rebuild.
4893 * target.c (default_search_memory): New function.
4894 (simple_search_memory): Update comment.
4895 (target_search_memory): Unconditionally delegate.
4896 * target.h (struct target_ops) <to_search_memory>: Use
4897 TARGET_DEFAULT_FUNC.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * auxv.c (default_auxv_parse): No longer static.
4902 (target_auxv_parse): Unconditionally delegate.
4903 * auxv.h (default_auxv_parse): Declare.
4904 * target-delegates.c: Rebuild.
4905 * target.c: Include auxv.h.
4906 * target.h (struct target_ops) <to_auxv_parse>: Use
4907 TARGET_DEFAULT_FUNC.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * target-delegates.c: Rebuild.
4912 * target.c (target_memory_map): Unconditionally delegate.
4913 * target.h (struct target_ops) <to_memory_map>: Use
4914 TARGET_DEFAULT_RETURN.
4916 2014-02-19 Tom Tromey <tromey@redhat.com>
4918 * target-delegates.c: Rebuild.
4919 * target.c (target_thread_alive): Unconditionally delegate.
4920 * target.h (struct target_ops) <to_thread_alive>: Use
4921 TARGET_DEFAULT_RETURN.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * target-delegates.c: Rebuild.
4926 * target.c (target_save_record): Unconditionally delegate.
4927 * target.h (struct target_ops) <to_save_record>: Use
4928 TARGET_DEFAULT_NORETURN.
4930 2014-02-19 Tom Tromey <tromey@redhat.com>
4932 * target-delegates.c: Rebuild.
4933 * target.c (target_delete_record): Unconditionally delegate.
4934 * target.h (struct target_ops) <to_delete_record>: Use
4935 TARGET_DEFAULT_NORETURN.
4937 2014-02-19 Tom Tromey <tromey@redhat.com>
4939 * target-delegates.c: Rebuild.
4940 * target.c (target_record_is_replaying): Unconditionally
4942 * target.h (struct target_ops) <to_record_is_replaying>: Use
4943 TARGET_DEFAULT_RETURN.
4945 2014-02-19 Tom Tromey <tromey@redhat.com>
4947 * target-delegates.c: Rebuild.
4948 * target.c (target_goto_record_begin): Unconditionally delegate.
4949 * target.h (struct target_ops) <to_goto_record_begin>: Use
4950 TARGET_DEFAULT_NORETURN.
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target-delegates.c: Rebuild.
4955 * target.c (target_goto_record_end): Unconditionally delegate.
4956 * target.h (struct target_ops) <to_goto_record_end>: Use
4957 TARGET_DEFAULT_NORETURN.
4959 2014-02-19 Tom Tromey <tromey@redhat.com>
4961 * target-delegates.c: Rebuild.
4962 * target.c (target_goto_record): Unconditionally delegate.
4963 * target.h (struct target_ops) <to_goto_record>: Use
4964 TARGET_DEFAULT_NORETURN.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4968 * target-delegates.c: Rebuild.
4969 * target.c (target_insn_history): Unconditionally delegate.
4970 * target.h (struct target_ops) <to_insn_history>: Use
4971 TARGET_DEFAULT_NORETURN.
4973 2014-02-19 Tom Tromey <tromey@redhat.com>
4975 * target-delegates.c: Rebuild.
4976 * target.c (target_insn_history_from): Unconditionally delegate.
4977 * target.h (struct target_ops) <to_insn_history_from>: Use
4978 TARGET_DEFAULT_NORETURN.
4980 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target-delegates.c: Rebuild.
4983 * target.c (target_insn_history_range): Unconditionally delegate.
4984 * target.h (struct target_ops) <to_insn_history_range>: Use
4985 TARGET_DEFAULT_NORETURN.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target-delegates.c: Rebuild.
4990 * target.c (target_call_history): Unconditionally delegate.
4991 * target.h (struct target_ops) <to_call_history>: Use
4992 TARGET_DEFAULT_NORETURN.
4994 2014-02-19 Tom Tromey <tromey@redhat.com>
4996 * target-delegates.c: Rebuild.
4997 * target.c (target_call_history_from): Unconditionally delegate.
4998 * target.h (struct target_ops) <to_call_history_from>: Use
4999 TARGET_DEFAULT_NORETURN.
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target-delegates.c: Rebuild.
5004 * target.c (target_call_history_range): Unconditionally delegate.
5005 * target.h (struct target_ops) <to_call_history_range>: Use
5006 TARGET_DEFAULT_NORETURN.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target-delegates.c: Rebuild.
5011 * target.c (target_verify_memory): Unconditionally delegate.
5012 * target.h (struct target_ops) <to_verify_memory>: Use
5013 TARGET_DEFAULT_NORETURN.
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * target-delegates.c: Rebuild.
5018 * target.c (target_core_of_thread): Unconditionally delegate.
5019 * target.h (struct target_ops) <to_core_of_thread>: Use
5020 TARGET_DEFAULT_RETURN.
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target-delegates.c: Rebuild.
5025 * target.c (target_flash_done): Unconditionally delegate.
5026 * target.h (struct target_ops) <to_flash_done>: Use
5027 TARGET_DEFAULT_NORETURN.
5029 2014-02-19 Tom Tromey <tromey@redhat.com>
5031 * target-delegates.c: Rebuild.
5032 * target.c (target_flash_erase): Unconditionally delegate.
5033 * target.h (struct target_ops) <to_flash_erase>: Use
5034 TARGET_DEFAULT_NORETURN.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target-delegates.c: Rebuild.
5039 * target.c (target_get_section_table): Unconditionally delegate.
5040 * target.h (struct target_ops) <to_get_section_table>: Use
5041 TARGET_DEFAULT_RETURN.
5043 2014-02-19 Tom Tromey <tromey@redhat.com>
5045 * target-delegates.c: Rebuild.
5046 * target.c (target_pid_to_str): Unconditionally delegate.
5047 (init_dummy_target): Don't initialize to_pid_to_str.
5048 (default_pid_to_str): Rename from dummy_pid_to_str.
5049 * target.h (struct target_ops) <to_pid_to_str>: Use
5050 TARGET_DEFAULT_FUNC.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (target_find_new_threads): Unconditionally delegate.
5056 * target.h (struct target_ops) <to_find_new_threads>: Use
5057 TARGET_DEFAULT_RETURN.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (target_program_signals): Unconditionally delegate.
5063 * target.h (struct target_ops) <to_program_signals>: Use
5064 TARGET_DEFAULT_IGNORE.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (target_pass_signals): Unconditionally delegate.
5070 * target.h (struct target_ops) <to_pass_signals>: Use
5071 TARGET_DEFAULT_IGNORE.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (default_mourn_inferior): New function.
5077 (target_mourn_inferior): Unconditionally delegate.
5078 * target.h (struct target_ops) <to_mourn_inferior>: Use
5079 TARGET_DEFAULT_FUNC.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (default_follow_fork): New function.
5085 (target_follow_fork): Unconditionally delegate.
5086 * target.h (struct target_ops) <to_follow_fork>: Use
5087 TARGET_DEFAULT_FUNC.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (target_kill): Unconditionally delegate.
5093 * target.h (struct target_ops) <to_kill>: Use
5094 TARGET_DEFAULT_NORETURN.
5096 2014-02-19 Tom Tromey <tromey@redhat.com>
5098 * target-delegates.c: Rebuild.
5099 * target.c (target_masked_watch_num_registers): Unconditionally
5101 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5102 Use TARGET_DEFAULT_RETURN.
5104 2014-02-19 Tom Tromey <tromey@redhat.com>
5106 * target-delegates.c: Rebuild.
5107 * target.c (target_remove_mask_watchpoint): Unconditionally
5109 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5110 TARGET_DEFAULT_RETURN.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: Rebuild.
5115 * target.c (target_insert_mask_watchpoint): Unconditionally
5117 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5118 TARGET_DEFAULT_RETURN.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (target_ranged_break_num_registers): Unconditionally
5125 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5126 Use TARGET_DEFAULT_RETURN.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (target_fetch_registers): Unconditionally delegate.
5132 * target.h (struct target_ops) <to_fetch_registers>: Use
5133 TARGET_DEFAULT_NORETURN.
5135 2014-02-19 Tom Tromey <tromey@redhat.com>
5137 * target-delegates.c: Rebuild.
5138 * target.c (update_current_target): Don't inherit or default
5140 * target.h (struct target_ops) <to_stop>: Use
5141 TARGET_DEFAULT_IGNORE.
5143 2014-02-19 Tom Tromey <tromey@redhat.com>
5145 * target-delegates.c: Rebuild.
5146 * target.c (update_current_target): Don't inherit or default
5147 to_can_run_breakpoint_commands.
5148 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5149 Use TARGET_DEFAULT_RETURN.
5151 2014-02-19 Tom Tromey <tromey@redhat.com>
5153 * target-delegates.c: Rebuild.
5154 * target.c (update_current_target): Don't inherit or default
5155 to_supports_evaluation_of_breakpoint_conditions.
5156 * target.h (struct target_ops)
5157 <to_supports_evaluation_of_breakpoint_conditions>: Use
5158 TARGET_DEFAULT_RETURN.
5160 2014-02-19 Tom Tromey <tromey@redhat.com>
5162 * target-delegates.c: Rebuild.
5163 * target.c (update_current_target): Don't inherit or default
5164 to_augmented_libraries_svr4_read.
5165 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5166 Use TARGET_DEFAULT_RETURN.
5168 2014-02-19 Tom Tromey <tromey@redhat.com>
5170 * target-delegates.c: Rebuild.
5171 * target.c (update_current_target): Don't inherit or default
5173 * target.h (struct target_ops) <to_can_use_agent>: Use
5174 TARGET_DEFAULT_RETURN.
5176 2014-02-19 Tom Tromey <tromey@redhat.com>
5178 * target-delegates.c: Rebuild.
5179 * target.c (update_current_target): Don't inherit or default
5181 * target.h (struct target_ops) <to_use_agent>: Use
5182 TARGET_DEFAULT_NORETURN.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (update_current_target): Don't inherit or default
5189 (return_null): Remove.
5190 * target.h (struct target_ops) <to_traceframe_info>: Use
5191 TARGET_DEFAULT_RETURN.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * target-delegates.c: Rebuild.
5196 * target.c (update_current_target): Don't inherit or default
5197 to_static_tracepoint_markers_by_strid.
5198 * target.h (struct target_ops)
5199 <to_static_tracepoint_markers_by_strid>: Use
5200 TARGET_DEFAULT_NORETURN.
5202 2014-02-19 Tom Tromey <tromey@redhat.com>
5204 * target-delegates.c: Rebuild.
5205 * target.c (update_current_target): Don't inherit or default
5206 to_static_tracepoint_marker_at.
5207 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5208 Use TARGET_DEFAULT_RETURN.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target-delegates.c: Rebuild.
5213 * target.c (update_current_target): Don't inherit or default
5215 * target.h (struct target_ops) <to_set_permissions>: Use
5216 TARGET_DEFAULT_IGNORE.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target-delegates.c: Rebuild.
5221 * target.c (update_current_target): Don't inherit or default
5223 * target.h (struct target_ops) <to_get_tib_address>: Use
5224 TARGET_DEFAULT_NORETURN.
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target-delegates.c: Rebuild.
5229 * target.c (update_current_target): Don't inherit or default
5231 * target.h (struct target_ops) <to_set_trace_notes>: Use
5232 TARGET_DEFAULT_RETURN.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (update_current_target): Don't initialize
5238 to_set_trace_buffer_size.
5239 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5240 TARGET_DEFAULT_IGNORE.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target-delegates.c: Rebuild.
5245 * target.c (update_current_target): Don't inherit or default
5246 to_set_circular_trace_buffer.
5247 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5248 TARGET_DEFAULT_IGNORE.
5250 2014-02-19 Tom Tromey <tromey@redhat.com>
5252 * target-delegates.c: Rebuild.
5253 * target.c (update_current_target): Don't inherit or default
5254 to_set_disconnected_tracing.
5255 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5256 TARGET_DEFAULT_IGNORE.
5258 2014-02-19 Tom Tromey <tromey@redhat.com>
5260 * target-delegates.c: Rebuild.
5261 * target.c (update_current_target): Don't inherit or default
5262 to_get_min_fast_tracepoint_insn_len.
5263 (return_minus_one): Remove.
5264 * target.h (struct target_ops)
5265 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5267 2014-02-19 Tom Tromey <tromey@redhat.com>
5269 * target-delegates.c: Rebuild.
5270 * target.c (update_current_target): Don't inherit or default
5271 to_get_raw_trace_data.
5272 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5273 TARGET_DEFAULT_NORETURN.
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target-delegates.c: Rebuild.
5278 * target.c (update_current_target): Don't inherit or default
5279 to_upload_trace_state_variables.
5280 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5281 Use TARGET_DEFAULT_RETURN.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target-delegates.c: Rebuild.
5286 * target.c (update_current_target): Don't inherit or default
5287 to_upload_tracepoints.
5288 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5289 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_save_trace_data>: 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_trace_state_variable_value.
5304 * target.h (struct target_ops)
5305 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
5312 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5314 2014-02-19 Tom Tromey <tromey@redhat.com>
5316 * target-delegates.c: Rebuild.
5317 * target.c (update_current_target): Don't inherit or default
5319 * target.h (struct target_ops) <to_trace_stop>: Use
5320 TARGET_DEFAULT_NORETURN.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target-delegates.c: Rebuild.
5325 * target.c (update_current_target): Don't inherit or default
5326 to_get_tracepoint_status.
5327 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5328 TARGET_DEFAULT_NORETURN.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target-delegates.c: Rebuild.
5333 * target.c (update_current_target): Don't inherit or default
5334 to_get_trace_status.
5335 * target.h (struct target_ops) <to_get_trace_status>: Use
5336 TARGET_DEFAULT_RETURN.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target-delegates.c: Rebuild.
5341 * target.c (update_current_target): Don't inherit or default
5343 * target.h (struct target_ops) <to_trace_start>: Use
5344 TARGET_DEFAULT_NORETURN.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target-delegates.c: Rebuild.
5349 * target.c (update_current_target): Don't inherit or default
5350 to_trace_set_readonly_regions.
5351 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5352 Use TARGET_DEFAULT_NORETURN.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target-delegates.c: Rebuild.
5357 * target.c (update_current_target): Don't inherit or default
5358 to_disable_tracepoint.
5359 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5360 TARGET_DEFAULT_NORETURN.
5362 2014-02-19 Tom Tromey <tromey@redhat.com>
5364 * target-delegates.c: Rebuild.
5365 * target.c (update_current_target): Don't inherit or default
5366 to_enable_tracepoint.
5367 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5368 TARGET_DEFAULT_NORETURN.
5370 2014-02-19 Tom Tromey <tromey@redhat.com>
5372 * target-delegates.c: Rebuild.
5373 * target.c (update_current_target): Don't inherit or default
5374 to_download_trace_state_variable.
5375 * target.h (struct target_ops) <to_download_trace_state_variable>:
5376 Use TARGET_DEFAULT_NORETURN.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target-delegates.c: Rebuild.
5381 * target.c (update_current_target): Don't inherit or default
5382 to_can_download_tracepoint.
5383 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5384 TARGET_DEFAULT_RETURN.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target-delegates.c: Rebuild.
5389 * target.c (update_current_target): Don't inherit or default
5390 to_download_tracepoint.
5391 * target.h (struct target_ops) <to_download_tracepoint>: Use
5392 TARGET_DEFAULT_NORETURN.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target-delegates.c: Rebuild.
5397 * target.c (update_current_target): Don't inherit or default
5399 * target.h (struct target_ops) <to_trace_init>: Use
5400 TARGET_DEFAULT_RETURN.
5402 2014-02-19 Tom Tromey <tromey@redhat.com>
5404 * target-delegates.c: Rebuild.
5405 * target.c (update_current_target): Don't inherit or default
5406 to_supports_string_tracing.
5407 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5408 TARGET_DEFAULT_RETURN.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target-delegates.c: Rebuild.
5413 * target.c (update_current_target): Don't inherit or default
5414 to_supports_enable_disable_tracepoint.
5415 * target.h (struct target_ops)
5416 <to_supports_enable_disable_tracepoint>: Use
5417 TARGET_DEFAULT_RETURN.
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target-delegates.c: Rebuild.
5422 * target.c (update_current_target): Don't inherit or default
5423 to_supports_multi_process.
5424 * target.h (struct target_ops) <to_supports_multi_process>: Use
5425 TARGET_DEFAULT_RETURN.
5427 2014-02-19 Tom Tromey <tromey@redhat.com>
5429 * target-delegates.c: Rebuild.
5430 * target.c (update_current_target): Don't inherit or default
5431 to_get_ada_task_ptid.
5432 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5433 TARGET_DEFAULT_FUNC.
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target-delegates.c: Rebuild.
5438 * target.c (update_current_target): Don't inherit or default
5439 to_thread_architecture.
5440 * target.h (struct target_ops) <to_thread_architecture>: Use
5441 TARGET_DEFAULT_FUNC.
5443 2014-02-19 Tom Tromey <tromey@redhat.com>
5445 * target-delegates.c: Rebuild.
5446 * target.c (update_current_target): Don't inherit or default
5447 to_execution_direction.
5448 * target.h (struct target_ops) <to_execution_direction>: Use
5449 TARGET_DEFAULT_FUNC.
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target-delegates.c: Rebuild.
5454 * target.c (update_current_target): Don't inherit or default
5455 to_can_execute_reverse.
5456 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5457 TARGET_DEFAULT_RETURN.
5458 (target_can_execute_reverse): Unconditionally delegate.
5460 2014-02-19 Tom Tromey <tromey@redhat.com>
5462 * target-delegates.c: Rebuild.
5463 * target.c (update_current_target): Don't inherit or default
5465 (dummy_goto_bookmark): Remove.
5466 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5467 * target.h (struct target_ops) <to_goto_bookmark>: Use
5468 TARGET_DEFAULT_NORETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5475 (dummy_get_bookmark): Remove.
5476 (init_dummy_target): Don't inherit or default to_get_bookmark.
5477 * target.h (struct target_ops) <to_get_bookmark>: Use
5478 TARGET_DEFAULT_NORETURN
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_make_corefile_notes.
5485 (init_dummy_target): Don't initialize to_make_corefile_notes.
5486 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5487 TARGET_DEFAULT_FUNC.
5489 2014-02-19 Tom Tromey <tromey@redhat.com>
5491 * target-delegates.c: Rebuild.
5492 * target.c (update_current_target): Don't inherit or default
5493 to_find_memory_regions.
5494 (init_dummy_target): Don't initialize to_find_memory_regions.
5495 * target.h (struct target_ops) <to_find_memory_regions>: Use
5496 TARGET_DEFAULT_FUNC.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target-delegates.c: Rebuild.
5501 * target.c (update_current_target): Don't inherit or default
5503 * target.h (struct target_ops) <to_log_command>: Use
5504 TARGET_DEFAULT_IGNORE.
5505 (target_log_command): Unconditionally delegate.
5507 2014-02-19 Tom Tromey <tromey@redhat.com>
5509 * target-delegates.c: Rebuild.
5510 * target.c (update_current_target): Don't inherit or default
5511 to_pid_to_exec_file.
5512 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5513 TARGET_DEFAULT_RETURN.
5515 2014-02-19 Tom Tromey <tromey@redhat.com>
5517 * target-delegates.c: Rebuild.
5518 * target.c (update_current_target): Don't inherit or default
5520 (target_thread_name): Unconditionally delegate.
5521 * target.h (struct target_ops) <to_thread_name>: Use
5522 TARGET_DEFAULT_RETURN.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target-delegates.c: Rebuild.
5527 * target.c (update_current_target): Don't inherit or default
5528 to_extra_thread_info.
5529 * target.h (struct target_ops) <to_extra_thread_info>: Use
5530 TARGET_DEFAULT_RETURN.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target-delegates.c: Rebuild.
5535 * target.c (update_current_target): Don't inherit or default
5537 * target.h (struct target_ops) <to_has_exited>: Use
5538 TARGET_DEFAULT_RETURN..
5540 2014-02-19 Tom Tromey <tromey@redhat.com>
5542 * target-delegates.c: Rebuild.
5543 * target.c (update_current_target): Don't inherit or default
5544 to_set_syscall_catchpoint.
5545 (return_one): Remove.
5546 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5547 TARGET_DEFAULT_RETURN.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target-delegates.c: Rebuild.
5552 * target.c (update_current_target): Don't inherit or default
5553 to_insert_exec_catchpoint.
5554 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5555 TARGET_DEFAULT_RETURN.
5557 2014-01-08 Tom Tromey <tromey@redhat.com>
5559 * target-delegates.c: Rebuild.
5560 * target.c (update_current_target): Don't inherit or default
5561 to_insert_exec_catchpoint.
5562 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5563 TARGET_DEFAULT_RETURN.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target-delegates.c: Rebuild.
5568 * target.c (update_current_target): Don't inherit or default
5569 to_remove_vfork_catchpoint.
5570 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5571 TARGET_DEFAULT_RETURN.
5573 2014-02-19 Tom Tromey <tromey@redhat.com>
5575 * target-delegates.c: Rebuild.
5576 * target.c (update_current_target): Don't inherit or default
5577 to_insert_vfork_catchpoint.
5578 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5579 TARGET_DEFAULT_RETURN.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target-delegates.c: Rebuild.
5584 * target.c (update_current_target): Don't inherit or default
5585 to_remove_fork_catchpoint.
5586 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5587 TARGET_DEFAULT_RETURN.
5589 2014-02-19 Tom Tromey <tromey@redhat.com>
5591 * target-delegates.c: Rebuild.
5592 * target.c (update_current_target): Don't inherit or default
5593 to_insert_fork_catchpoint.
5594 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5595 TARGET_DEFAULT_RETURN.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target-delegates.c: Rebuild.
5600 * target.c (update_current_target): Don't inherit or default
5601 to_post_startup_inferior.
5602 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5603 TARGET_DEFAULT_IGNORE.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target-delegates.c: Rebuild.
5608 * target.c (update_current_target): Don't inherit or default
5610 * target.h (struct target_ops) <to_load>: Use
5611 TARGET_DEFAULT_NORETURN.
5613 2014-02-19 Tom Tromey <tromey@redhat.com>
5615 * target-delegates.c: Rebuild.
5616 * target.c (update_current_target): Don't inherit or default
5618 * target.h (struct target_ops) <to_terminal_info>: Use
5619 TARGET_DEFAULT_FUNC.
5621 2014-02-19 Tom Tromey <tromey@redhat.com>
5623 * target-delegates.c: Rebuild.
5624 * target.c (update_current_target): Don't inherit or default
5625 to_terminal_save_ours.
5626 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5627 TARGET_DEFAULT_IGNORE.
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target-delegates.c: Rebuild.
5632 * target.c (update_current_target): Don't inherit or default
5634 * target.h (struct target_ops) <to_terminal_ours>: Use
5635 TARGET_DEFAULT_IGNORE.
5637 2014-02-19 Tom Tromey <tromey@redhat.com>
5639 * target-delegates.c: Rebuild.
5640 * target.c (update_current_target): Don't inherit or default
5641 to_terminal_ours_for_output.
5642 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5643 TARGET_DEFAULT_IGNORE.
5645 2014-02-19 Tom Tromey <tromey@redhat.com>
5647 * target-delegates.c: Rebuild.
5648 * target.c (update_current_target): Don't inherit or default
5649 to_terminal_inferior.
5650 * target.h (struct target_ops) <to_terminal_inferior>: Use
5651 TARGET_DEFAULT_IGNORE.
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target-delegates.c: Rebuild.
5656 * target.c (update_current_target): Don't inherit or default
5658 * target.h (struct target_ops) <to_terminal_init>: Use
5659 TARGET_DEFAULT_IGNORE.
5661 2014-02-19 Tom Tromey <tromey@redhat.com>
5663 * target-delegates.c: Rebuild.
5664 * target.c (update_current_target): Don't inherit or default
5665 to_can_accel_watchpoint_condition.
5666 * target.h (struct target_ops)
5667 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target-delegates.c: Rebuild.
5672 * target.c (update_current_target): Don't inherit or default
5673 to_region_ok_for_hw_watchpoint.
5674 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5675 Use TARGET_DEFAULT_FUNC.
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * target-delegates.c: Rebuild.
5680 * target.c (update_current_target): Don't inherit or default
5681 to_watchpoint_addr_within_range.
5682 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5683 Use TARGET_DEFAULT_FUNC.
5685 2014-02-19 Tom Tromey <tromey@redhat.com>
5687 * target-delegates.c: Rebuild.
5688 * target.c (update_current_target): Don't inherit or default
5689 to_remove_watchpoint.
5690 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5691 TARGET_DEFAULT_NORETURN.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target-delegates.c: Rebuild.
5696 * target.c (update_current_target): Don't inherit or default
5697 to_insert_watchpoint.
5698 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5699 TARGET_DEFAULT_RETURN.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target-delegates.c: Rebuild.
5704 * target.c (update_current_target): Don't inherit or default
5705 to_remove_hw_breakpoint.
5706 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5707 TARGET_DEFAULT_RETURN.
5709 2014-02-19 Tom Tromey <tromey@redhat.com>
5711 * target-delegates.c: Rebuild.
5712 * target.c (update_current_target): Don't inherit or default
5713 to_insert_hw_breakpoint.
5714 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5715 TARGET_DEFAULT_RETURN.
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * target-delegates.c: Rebuild.
5720 * target.c (update_current_target): Don't inherit or default
5721 to_can_use_hw_breakpoint.
5722 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5723 TARGET_DEFAULT_RETURN.
5725 2014-02-19 Tom Tromey <tromey@redhat.com>
5727 * target-delegates.c: Rebuild.
5728 * target.c (update_current_target): Don't inherit or default
5730 * target.h (struct target_ops) <to_files_info>: Use
5731 TARGET_DEFAULT_IGNORE.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target-delegates.c: Rebuild.
5736 * target.c (update_current_target): Don't inherit or default
5738 * target.h (struct target_ops) <to_store>: Use
5739 TARGET_DEFAULT_NORETURN.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target-delegates.c: Rebuild.
5744 * target.c (update_current_target): Don't inherit or default
5746 * target.h (struct target_ops) <to_post_attach>: Use
5747 TARGET_DEFAULT_IGNORE.
5749 2014-02-19 Tom Tromey <tromey@redhat.com>
5751 * target-delegates.c: Rebuild.
5752 * target.c (update_current_target): Don't inherit or default
5754 (default_rcmd): New function.
5755 (do_monitor_command): Unconditionally delegate.
5756 * target.h (struct target_ops) <to_rmcd>: Use
5757 TARGET_DEFAULT_FUNC.
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target-delegates.c: Rebuild.
5762 * target.c (init_dummy_target): Don't initialize to_attach.
5763 (target_attach): Unconditionally delegate.
5764 * target.h (struct target_ops) <to_attach>: Use
5765 TARGET_DEFAULT_FUNC.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target-delegates.c: Rebuild.
5770 * target.c (target_detach): Unconditionally delegate.
5771 (init_dummy_target): Don't initialize to_detach.
5772 * target.h (struct target_ops) <to_detach>: Use
5773 TARGET_DEFAULT_IGNORE.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5779 (target_augmented_libraries_svr4_read): Add argument.
5780 * target.c (update_current_target): Update.
5781 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.h (struct target_ops) <to_call_history_range>: Add
5788 * target.c (target_call_history_range): Add argument.
5789 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5791 (record_btrace_call_history_from): Update.
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target.h (struct target_ops) <to_call_history_from>: Add
5797 * target.c (target_call_history_from): Add argument.
5798 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_call_history>: Add argument.
5804 * target.c (target_call_history): Add argument.
5805 * record-btrace.c (record_btrace_call_history): Add 'self'
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target.h (struct target_ops) <to_insn_history_range>: Add
5812 * target.c (target_insn_history_range): Add argument.
5813 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5815 (record_btrace_insn_history_from): Update.
5817 2014-02-19 Tom Tromey <tromey@redhat.com>
5819 * target.h (struct target_ops) <to_insn_history_from>: Add
5821 * target.c (target_insn_history_from): Add argument.
5822 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * target.h (struct target_ops) <to_insn_history>: Add argument.
5828 * target.c (target_insn_history): Add argument.
5829 * record-btrace.c (record_btrace_insn_history): Add 'self'
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target.h (struct target_ops) <to_goto_record>: Add argument.
5835 * target.c (target_goto_record): Add argument.
5836 * record-full.c (record_full_goto): Add 'self' argument.
5837 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5842 * target.c (target_goto_record_end): Add argument.
5843 * record-full.c (record_full_goto_end): Add 'self' argument.
5844 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target.h (struct target_ops) <to_goto_record_begin>: Add
5850 * target.c (target_goto_record_begin): Add argument.
5851 * record-full.c (record_full_goto_begin): Add 'self' argument.
5852 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target.h (struct target_ops) <to_record_is_replaying>: Add
5859 * target.c (target_record_is_replaying): Add argument.
5860 * record-full.c (record_full_is_replaying): Add 'self' argument.
5861 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5863 (record_btrace_xfer_partial, record_btrace_store_registers)
5864 (record_btrace_prepare_to_store, record_btrace_resume)
5865 (record_btrace_wait, record_btrace_decr_pc_after_break)
5866 (record_btrace_find_new_threads, record_btrace_thread_alive):
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target.h (struct target_ops) <to_delete_record>: Add argument.
5872 * target.c (target_delete_record): Add argument.
5873 * record-full.c (record_full_delete): Add 'self' argument.
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_save_record>: Add argument.
5878 * target.c (target_save_record): Add argument.
5879 * record-full.c (record_full_save): Add 'self' argument.
5880 (record_full_save): Add 'self' argument.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target.h (struct target_ops) <to_info_record>: Add argument.
5885 * target.c (target_info_record): Add argument.
5886 * record.c (info_record_command): Add argument.
5887 * record-full.c (record_full_info): Add 'self' argument.
5888 * record-btrace.c (record_btrace_info): Add 'self' argument.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5893 * target.c (target_stop_recording): Add argument.
5894 * record.c (record_stop): Add argument.
5895 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5901 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5902 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5904 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5905 (_initialize_amd64_linux_nat): Use it.
5906 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5907 (_initialize_i386_linux_nat): Use it.
5909 2014-02-19 Tom Tromey <tromey@redhat.com>
5911 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5912 * target.c (target_teardown_btrace): Add argument.
5913 * remote.c (remote_teardown_btrace): Add 'self' argument.
5914 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5916 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5922 * target.c (target_disable_btrace): Add argument.
5923 * remote.c (remote_disable_btrace): Add 'self' argument.
5924 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5926 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5932 * target.c (target_enable_btrace): Add argument.
5933 * remote.c (remote_enable_btrace): Add 'self' argument.
5934 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5936 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5942 (target_can_use_agent): Add argument.
5943 * target.c (update_current_target): Update.
5944 * remote.c (remote_can_use_agent): Add 'self' argument.
5945 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target.h (struct target_ops) <to_use_agent>: Add argument.
5950 (target_use_agent): Add argument.
5951 * target.c (update_current_target): Update.
5952 * remote.c (remote_use_agent): Add 'self' argument.
5953 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5958 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5959 (target_traceframe_info): Add argument.
5960 * target.c (update_current_target): Update.
5961 * remote.c (remote_traceframe_info): Add 'self' argument.
5962 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (target_static_tracepoint_markers_by_strid): Add
5968 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5970 * target.c (update_current_target): Update.
5971 * remote.c (struct target_ops)
5972 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5973 * linux-nat.c (struct target_ops)
5974 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5980 (target_static_tracepoint_marker_at): Add argument.
5981 * target.c (update_current_target): Update.
5982 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5988 (target_set_permissions): Add argument.
5989 * target.c (update_current_target): Update.
5990 * remote.c (remote_set_permissions): Add 'self' argument.
5991 (remote_start_remote): Update.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5996 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5997 (target_get_tib_address): Add argument.
5998 * target.c (update_current_target): Update.
5999 * remote.c (remote_get_tib_address): Add 'self' argument.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6004 (target_set_trace_notes): Add argument.
6005 * target.c (update_current_target): Update.
6006 * remote.c (remote_set_trace_notes): Add 'self' argument.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6012 (target_set_trace_buffer_size): Add argument.
6013 * target.c (update_current_target): Update.
6014 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6016 2014-02-19 Tom Tromey <tromey@redhat.com>
6018 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6020 (target_set_circular_trace_buffer): Add argument.
6021 * target.c (update_current_target): Update.
6022 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6025 2014-02-19 Tom Tromey <tromey@redhat.com>
6027 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6029 (target_set_disconnected_tracing): Add argument.
6030 * target.c (update_current_target): Update.
6031 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6033 2014-02-19 Tom Tromey <tromey@redhat.com>
6035 * target.h (struct target_ops)
6036 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6037 (target_get_min_fast_tracepoint_insn_len): Add argument.
6038 * target.c (update_current_target): Update.
6039 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6046 (target_get_raw_trace_data): Add argument.
6047 * target.c (update_current_target): Update.
6048 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6054 (target_upload_trace_state_variables): Add argument.
6055 * target.c (update_current_target): Update.
6056 * remote.c (remote_upload_trace_state_variables): Add 'self'
6058 (remote_start_remote): Update.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6064 (target_upload_tracepoints): Add argument.
6065 * target.c (update_current_target): Update.
6066 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6067 (remote_start_remote): Update.
6069 2014-02-19 Tom Tromey <tromey@redhat.com>
6071 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6072 (target_save_trace_data): Add argument.
6073 * target.c (update_current_target): Update.
6074 * remote.c (remote_save_trace_data): Add 'self' argument.
6076 2014-02-19 Tom Tromey <tromey@redhat.com>
6078 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6080 * target.h (struct target_ops)
6081 <to_get_trace_state_variable_value>: Add argument.
6082 (target_get_trace_state_variable_value): Add argument.
6083 * target.c (update_current_target): Update.
6084 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6086 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6091 * target.h (struct target_ops) <to_trace_find>: Add argument.
6092 (target_trace_find): Add argument.
6093 * target.c (update_current_target): Update.
6094 * remote.c (remote_trace_find): Add 'self' argument.
6095 * ctf.c (ctf_trace_find): Add 'self' argument.
6097 2014-02-19 Tom Tromey <tromey@redhat.com>
6099 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6100 (target_trace_stop): Add argument.
6101 * target.c (update_current_target): Update.
6102 * remote.c (remote_trace_stop): Add 'self' argument.
6104 2014-02-19 Tom Tromey <tromey@redhat.com>
6106 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6107 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6109 (target_get_tracepoint_status): Add argument.
6110 * target.c (update_current_target): Update.
6111 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6113 2014-02-19 Tom Tromey <tromey@redhat.com>
6115 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6116 * target.h (struct target_ops) <to_get_trace_status>: Add
6118 (target_get_trace_status): Add argument.
6119 * target.c (update_current_target): Update.
6120 * remote.c (remote_get_trace_status): Add 'self' argument.
6121 (remote_start_remote, remote_can_download_tracepoint): Update.
6122 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target.h (struct target_ops) <to_trace_start>: Add argument.
6127 (target_trace_start): Add argument.
6128 * target.c (update_current_target): Update.
6129 * remote.c (remote_trace_start): Add 'self' argument.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6135 (target_trace_set_readonly_regions): Add argument.
6136 * target.c (update_current_target): Update.
6137 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6140 2014-02-19 Tom Tromey <tromey@redhat.com>
6142 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6144 (target_disable_tracepoint): Add argument.
6145 * target.c (update_current_target): Update.
6146 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6152 (target_enable_tracepoint): Add argument.
6153 * target.c (update_current_target): Update.
6154 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6158 * target.h (struct target_ops) <to_download_trace_state_variable>:
6160 (target_download_trace_state_variable): Add argument.
6161 * target.c (update_current_target): Update.
6162 * remote.c (remote_download_trace_state_variable): Add 'self'
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6169 (target_can_download_tracepoint): Add argument.
6170 * target.c (update_current_target): Update.
6171 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6173 2014-02-19 Tom Tromey <tromey@redhat.com>
6175 * target.h (struct target_ops) <to_download_tracepoint>: Add
6177 (target_download_tracepoint): Add argument.
6178 * target.c (update_current_target): Update.
6179 * remote.c (remote_download_tracepoint): Add 'self' argument.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * target.h (struct target_ops) <to_trace_init>: Add argument.
6184 (target_trace_init): Add argument.
6185 * target.c (update_current_target): Update.
6186 * remote.c (remote_trace_init): Add 'self' argument.
6188 2014-02-19 Tom Tromey <tromey@redhat.com>
6190 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6191 * target.c (target_fileio_readlink): Add argument.
6192 * remote.c (remote_hostio_readlink): Add 'self' argument.
6193 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6195 2014-02-19 Tom Tromey <tromey@redhat.com>
6197 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6198 * target.c (target_fileio_unlink): Add argument.
6199 * remote.c (remote_hostio_unlink): Add 'self' argument.
6200 (remote_file_delete): Update.
6201 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6203 2014-02-19 Tom Tromey <tromey@redhat.com>
6205 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6206 * target.c (target_fileio_close): Add argument.
6207 * remote.c (remote_hostio_close): Add 'self' argument.
6208 (remote_hostio_close_cleanup): Update.
6209 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6211 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6216 * target.c (target_fileio_pread): Add argument.
6217 * remote.c (remote_hostio_pread): Add 'self' argument.
6218 (remote_bfd_iovec_pread, remote_file_get): Update.
6219 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6221 2014-02-19 Tom Tromey <tromey@redhat.com>
6223 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6224 * target.c (target_fileio_pwrite): Add argument.
6225 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6226 (remote_file_put): Update.
6227 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6232 * target.c (target_fileio_open): Add argument.
6233 * remote.c (remote_hostio_open): Add 'self' argument.
6234 (remote_bfd_iovec_open): Add 'self' argument.
6235 (remote_file_put): Add 'self' argument.
6236 (remote_file_get): Add 'self' argument.
6237 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6243 (target_can_run_breakpoint_commands): Add argument.
6244 * target.c (update_current_target): Update.
6245 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6247 (remote_insert_breakpoint): Add 'self' argument.
6248 (remote_insert_hw_breakpoint): Add 'self' argument.
6249 (remote_can_run_breakpoint_commands): Add 'self' argument.
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * target.h (struct target_ops)
6254 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6255 (target_supports_evaluation_of_breakpoint_conditions): Add
6257 * target.c (update_current_target): Update.
6258 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6260 (remote_insert_breakpoint): Add 'self' argument.
6261 (remote_insert_hw_breakpoint): Add 'self' argument.
6262 (remote_supports_cond_breakpoints): Add 'self' argument.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6268 (target_supports_string_tracing): Add argument.
6269 * target.c (update_current_target): Update.
6270 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target.h (struct target_ops)
6275 <to_supports_disable_randomization>: Add argument.
6276 * target.c (find_default_supports_disable_randomization): Add
6278 (target_supports_disable_randomization): Add argument.
6279 (find_default_supports_disable_randomization): Add 'self'
6281 * remote.c (extended_remote_supports_disable_randomization): Add
6283 (remote_supports_disable_randomization): Add 'self' argument.
6284 (extended_remote_create_inferior): Update.
6285 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target.h (struct target_ops)
6291 <to_supports_enable_disable_tracepoint>: Add argument.
6292 (target_supports_enable_disable_tracepoint): Add argument.
6293 * target.c (update_current_target): Update.
6294 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target.h (struct target_ops) <to_supports_multi_process>: Add
6301 (target_supports_multi_process): Add argument.
6302 * target.c (update_current_target): Update.
6303 * remote.c (remote_supports_multi_process): Add 'self' argument.
6304 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6306 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6311 * target.h (struct target_ops) <to_execution_direction>: Add
6313 (target_execution_direction): Add argument.
6314 * target.c (default_execution_direction): Add 'self' argument.
6315 * record-full.c (record_full_execution_direction): Add 'self'
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6322 (target_can_execute_reverse): Add argument.
6323 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6324 * record-full.c (record_full_can_execute_reverse): Add 'self'
6326 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6332 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6334 (target_get_ada_task_ptid): Add argument.
6335 * target.c (update_current_target): Update.
6336 (default_get_ada_task_ptid): Add 'self' argument.
6337 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6338 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6339 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6341 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6343 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6345 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6347 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6348 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6354 (target_goto_bookmark): Add argument.
6355 * target.c (dummy_goto_bookmark): Add 'self' argument.
6356 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6361 (target_get_bookmark): Add argument.
6362 * target.c (dummy_get_bookmark): Add 'self' argument.
6363 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6369 (target_make_corefile_notes): Add argument.
6370 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6371 * procfs.c (procfs_make_note_section): Add 'self' argument.
6372 (procfs_make_note_section): Add 'self' argument.
6373 (procfs_make_note_section): Add 'self' argument.
6374 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6376 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6377 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6378 * exec.c (exec_make_note_section): Add 'self' argument.
6379 (exec_make_note_section): Add 'self' argument.
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * target.h (struct target_ops) <to_find_memory_regions>: Add
6385 (target_find_memory_regions): Add argument.
6386 * target.c (dummy_find_memory_regions): Add 'self' argument.
6387 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6388 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6389 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6390 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6391 * exec. (exec_do_find_memory_regions): New global.
6392 (exec_set_find_memory_regions): Rewrite.
6393 (exec_find_memory_regions): New function.
6394 (init_exec_ops): Use exec_find_memory_regions.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target.h (struct target_ops) <to_supports_non_stop>: Add
6400 * target.c (find_default_supports_non_stop): Add argument.
6401 (target_supports_non_stop): Add argument.
6402 (find_default_supports_non_stop): Add 'self' argument.
6403 * remote.c (remote_supports_non_stop): Add 'self' argument.
6404 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target.h (struct target_ops) <to_log_command>: Add argument.
6409 (target_log_command): Add argument.
6410 * serial.h (serial_log_command): Add 'self' argument.
6411 * serial.c (serial_log_command): Add 'self' argument.
6413 2014-02-19 Tom Tromey <tromey@redhat.com>
6415 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6416 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6418 (target_pid_to_exec_file): Add argument.
6419 * target.c (debug_to_pid_to_exec_file): Add argument.
6420 (update_current_target): Update.
6421 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6422 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6423 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6424 (linux_handle_extended_wait): Update.
6425 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6426 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6427 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6428 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6430 2014-02-19 Tom Tromey <tromey@redhat.com>
6432 * target.h (struct target_ops) <to_rcmd>: Add argument.
6433 (target_rcmd): Add argument.
6434 * target.c (debug_to_rcmd): Add argument.
6435 (update_current_target, do_monitor_command): Update.
6436 * remote.c (remote_rcmd): Add 'self' argument.
6437 * monitor.c (monitor_rcmd): Add 'self' argument.
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * windows-nat.c (windows_stop): Add 'self' argument.
6442 * target.h (struct target_ops) <to_stop>: Add argument.
6443 * target.c (target_stop): Add argument.
6444 (debug_to_stop): Add argument.
6445 (update_current_target): Update.
6446 * remote.c (remote_stop): Add 'self' argument.
6447 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6448 (gdbsim_cntrl_c): Update.
6449 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6450 * procfs.c (procfs_stop): Add 'self' argument.
6451 * nto-procfs.c (procfs_stop): Add 'self' argument.
6452 * monitor.c (monitor_stop): Add 'self' argument.
6453 (monitor_open): Update.
6454 * linux-nat.c (linux_nat_stop): Add argument.
6455 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6456 * gnu-nat.c (gnu_stop): Add 'self' argument.
6457 * darwin-nat.c (darwin_stop): Add 'self' argument.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_thread_name>: Add argument.
6462 * target.c (target_thread_name): Add argument.
6463 (update_current_target): Update.
6464 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target.h (struct target_ops) <to_extra_thread_info>: Add
6470 (target_extra_thread_info): Add argument.
6471 * target.c (update_current_target): Update.
6472 * remote.c (remote_threads_extra_info): Add 'self' argument.
6473 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6475 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6476 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6477 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6479 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6481 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6483 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target.h (struct target_ops) <to_program_signals>: Add argument.
6489 * target.c (target_program_signals): Add argument.
6490 * remote.c (remote_program_signals): Add 'self' argument.
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6495 * target.c (target_pass_signals): Add argument.
6496 * remote.c (remote_pass_signals): Add 'self' argument.
6497 (remote_start_remote): Update.
6498 * procfs.c (procfs_pass_signals): Add 'self' argument.
6499 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6500 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6501 (linux_nat_create_inferior, linux_nat_attach): Update.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * windows-nat.c (windows_can_run): Add 'self' argument.
6506 * target.h (struct target_ops) <to_can_run>: Add argument.
6507 (target_can_run): Add argument.
6508 * target.c (debug_to_can_run): Add argument.
6509 (update_current_target): Update.
6510 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6511 * inf-child.c (inf_child_can_run): Add 'self' argument.
6512 * go32-nat.c (go32_can_run): Add 'self' argument.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target.h (struct target_ops) <to_has_exited>: Add argument.
6517 (target_has_exited): Add argument.
6518 * target.c (debug_to_has_exited): Add argument.
6519 (update_current_target): Update.
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6523 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6525 (target_set_syscall_catchpoint): Add argument.
6526 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6528 * target.c (update_current_target): Update.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6534 (target_remove_exec_catchpoint): Add argument.
6535 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6536 (update_current_target): Update.
6537 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6544 (target_insert_exec_catchpoint): Add argument.
6545 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6546 (update_current_target): Update.
6547 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6550 2014-02-19 Tom Tromey <tromey@redhat.com>
6552 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6554 (target_remove_vfork_catchpoint): Add argument.
6555 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6556 (update_current_target): Update.
6557 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6560 2014-02-19 Tom Tromey <tromey@redhat.com>
6562 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6564 (target_insert_vfork_catchpoint): Add argument.
6565 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6566 (update_current_target): Update.
6567 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6570 2014-02-19 Tom Tromey <tromey@redhat.com>
6572 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6574 (target_remove_fork_catchpoint): Add argument.
6575 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6576 (update_current_target): Update.
6577 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6580 2014-02-19 Tom Tromey <tromey@redhat.com>
6582 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6584 (target_insert_fork_catchpoint): Add argument.
6585 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6586 (update_current_target): Update.
6587 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6594 (target_post_startup_inferior): Add argument.
6595 * target.c (debug_to_post_startup_inferior): Add argument.
6596 (update_current_target): Update.
6597 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6599 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6601 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6603 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6605 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6607 (super_post_startup_inferior): Likewise.
6608 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6610 (super_post_startup_inferior): Likewise.
6611 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6612 Add 'self' argument.
6613 (super_post_startup_inferior): Likewise.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target.h (struct target_ops) <to_load>: Add argument.
6618 * target.c (target_load): Add argument.
6619 (debug_to_load): Add argument.
6620 (update_current_target): Update.
6621 * remote.c (remote_load): Add 'self' argument.
6622 * remote-sim.c (gdbsim_load): Add 'self' argument.
6623 * remote-mips.c (mips_load): Add 'self' argument.
6624 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6625 * monitor.c (monitor_load): Add 'self' argument.
6626 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6628 2014-02-19 Tom Tromey <tromey@redhat.com>
6630 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6631 (target_terminal_info): Add argument.
6632 * target.c (debug_to_terminal_info): Add argument.
6633 (default_terminal_info): Likewise.
6634 * inflow.c (child_terminal_info): Add 'self' argument.
6635 * inferior.h (child_terminal_info): Add 'self' argument.
6636 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6642 (target_terminal_save_ours): Add argument.
6643 * target.c (debug_to_terminal_save_ours): Add argument.
6644 (update_current_target): Update.
6645 * inflow.c (terminal_save_ours): Add 'self' argument.
6646 * inferior.h (terminal_save_ours): Add 'self' argument.
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6651 (target_terminal_ours): Add argument.
6652 * target.c (debug_to_terminal_ours): Add argument.
6653 (update_current_target): Update.
6654 * remote.c (remote_terminal_ours): Add 'self' argument.
6655 (remote_close): Update.
6656 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6657 * inflow.c (terminal_ours): Add 'self' argument.
6658 * inferior.h (terminal_ours): Add 'self' argument.
6659 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6661 2014-02-19 Pedro Alves <palves@redhat.com>
6662 Tom Tromey <tromey@redhat.com>
6664 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6666 (target_terminal_ours_for_output): Add argument.
6667 * target.c (debug_to_terminal_ours_for_output): Add argument.
6668 (update_current_target): Update.
6669 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6670 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6671 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6673 2014-02-19 Tom Tromey <tromey@redhat.com>
6675 * target.h (struct target_ops) <to_terminal_inferior>: Add
6677 * target.c (target_terminal_inferior): Add argument.
6678 (update_current_target): Update.
6679 * remote.c (remote_terminal_inferior): Add 'self' argument.
6680 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6681 * inflow.c (terminal_inferior): Add 'self' argument.
6682 * inferior.h (terminal_inferior): Add 'self' argument.
6683 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6684 (go32_terminal_inferior): Add 'self' argument.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6689 (target_terminal_init): Add argument.
6690 * target.c (debug_to_terminal_init): Add argument.
6691 (update_current_target): Update.
6692 * inflow.c (terminal_init_inferior): Add 'self' argument.
6693 * inferior.h (terminal_init_inferior): Add 'self' argument.
6694 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6695 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6697 2014-02-19 Tom Tromey <tromey@redhat.com>
6699 * target.h (struct target_ops)
6700 <to_can_accel_watchpoint_condition>: Add argument.
6701 (target_can_accel_watchpoint_condition): Add argument.
6702 * target.c (debug_to_can_accel_watchpoint_condition): Add
6704 (update_current_target): Update.
6705 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6708 2014-02-19 Tom Tromey <tromey@redhat.com>
6710 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6712 (target_region_ok_for_hw_watchpoint): Add argument.
6713 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6714 (default_region_ok_for_hw_watchpoint): Add argument.
6715 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6716 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6718 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6720 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6722 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6724 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6726 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6728 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6729 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6731 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6732 Add 'self' argument.
6734 2014-02-19 Tom Tromey <tromey@redhat.com>
6736 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6738 (target_insert_watchpoint): Add argument.
6739 * target.c (debug_to_insert_watchpoint): Add argument.
6740 (update_current_target): Update.
6741 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6742 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6743 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6744 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6745 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6746 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6748 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6749 (procfs_insert_hw_watchpoint): Add 'self' argument.
6750 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6752 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6754 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6756 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6757 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6759 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6762 2014-02-19 Tom Tromey <tromey@redhat.com>
6764 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6766 (target_remove_watchpoint): Add argument.
6767 * target.c (debug_to_remove_watchpoint): Add argument.
6768 (update_current_target): Update.
6769 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6770 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6771 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6772 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6773 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6774 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6776 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6777 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6779 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6781 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6783 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6784 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6786 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6789 2014-02-19 Tom Tromey <tromey@redhat.com>
6791 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6793 (target_remove_hw_breakpoint): Add argument.
6794 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6795 (update_current_target): Update.
6796 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6797 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6799 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6800 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6802 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6805 2014-02-19 Tom Tromey <tromey@redhat.com>
6807 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6809 (target_insert_hw_breakpoint): Add argument.
6810 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6811 (update_current_target): Update.
6812 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6813 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6815 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6816 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6817 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6819 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6822 2014-02-19 Tom Tromey <tromey@redhat.com>
6824 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6826 (target_can_use_hardware_watchpoint): Add argument.
6827 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6828 (update_current_target): Update.
6829 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6831 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6833 * remote.c (remote_check_watch_resources): Add 'self' argument.
6834 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6835 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6837 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6838 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6840 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6842 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6844 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6846 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6848 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6850 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6851 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6853 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6856 2014-02-19 Tom Tromey <tromey@redhat.com>
6858 * target.h (struct target_ops) <to_post_attach>: Add argument.
6859 (target_post_attach): Add argument.
6860 * target.c (debug_to_post_attach): Add argument.
6861 (update_current_target): Update.
6862 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6863 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6864 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6865 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6866 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * windows-nat.c (windows_close): Add 'self' argument.
6871 * tracepoint.c (tfile_close): Add 'self' argument.
6872 * target.h (struct target_ops) <to_close>: Add argument.
6873 * target.c (target_close): Add argument.
6874 (update_current_target): Update.
6875 * remote.c (remote_close): Add 'self' argument.
6876 * remote-sim.c (gdbsim_close): Add 'self' argument.
6877 * remote-mips.c (mips_close): Add 'self' argument.
6878 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6879 * record-full.c (record_full_close): Add 'self' argument.
6880 * record-btrace.c (record_btrace_close): Add 'self' argument.
6881 * monitor.h (monitor_close): Add 'self' argument.
6882 * monitor.c (monitor_close): Add 'self' argument.
6883 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6884 * linux-nat.c (linux_nat_close): Add argument.
6885 * go32-nat.c (go32_close): Add 'self' argument.
6886 * exec.c (exec_close_1): Add 'self' argument.
6887 * ctf.c (ctf_close): Add 'self' argument.
6888 * corelow.c (core_close): Add 'self' argument.
6889 (core_close_cleanup): Update.
6890 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6891 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * remote.c (remote_load): New function.
6896 (init_remote_ops): Use it.
6898 2014-02-19 Tom Tromey <tromey@redhat.com>
6900 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6902 * common/linux-btrace.h (linux_supports_btrace): Update.
6903 * remote.c (remote_supports_btrace): Add "self" argument.
6904 * target-delegates.c: Rebuild.
6905 * target.c (target_supports_btrace): Remove.
6906 * target.h (struct target_ops) <to_supports_btrace>: Add
6907 target_ops argument.
6908 (target_supports_btrace): New define.
6910 2014-02-19 Tom Tromey <tromey@redhat.com>
6912 * record-full.c (record_full_beneath_to_resume_ops)
6913 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6914 (record_full_beneath_to_wait)
6915 (record_full_beneath_to_store_registers_ops)
6916 (record_full_beneath_to_store_registers)
6917 (record_full_beneath_to_xfer_partial_ops)
6918 (record_full_beneath_to_xfer_partial)
6919 (record_full_beneath_to_insert_breakpoint_ops)
6920 (record_full_beneath_to_insert_breakpoint)
6921 (record_full_beneath_to_remove_breakpoint_ops)
6922 (record_full_beneath_to_remove_breakpoint)
6923 (record_full_beneath_to_stopped_by_watchpoint)
6924 (record_full_beneath_to_stopped_data_address)
6925 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6926 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6927 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6928 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6929 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6930 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6931 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6932 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6933 (record_full_resume, record_full_wait_1)
6934 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6935 (record_full_store_registers, record_full_xfer_partial)
6936 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6937 (record_full_async, record_full_core_xfer_partial): Use target
6939 * target-delegates.c: Rebuild.
6940 * target.c (current_xfer_partial): Remove.
6941 (update_current_target): Do not INHERIT or de_fault
6942 to_insert_breakpoint, to_remove_breakpoint,
6943 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6944 to_is_async_p, to_async. Do not set to_xfer_partial field.
6945 (default_xfer_partial): Simplify.
6946 (current_xfer_partial): Remove.
6947 (target_wait, target_resume): Simplify.
6948 (find_default_can_async_p, find_default_is_async_p): Update.
6949 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6950 to_xfer_partial, to_stopped_by_watchpoint,
6951 to_stopped_data_address.
6952 (target_store_registers): Simplify.
6953 (forward_target_remove_breakpoint)
6954 (forward_target_insert_breakpoint): Remove.
6955 (target_remove_breakpoint, target_insert_breakpoint)
6956 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6957 * target.h (struct target_ops) <to_resume, to_wait,
6958 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6959 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6960 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6962 (forward_target_remove_breakpoint)
6963 (forward_target_insert_breakpoint): Remove.
6964 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6966 (record_btrace_insert_breakpoint): Delegate directly.
6968 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target-delegates.c: New file.
6972 * target.c: Include target-delegates.c.
6973 (init_dummy_target): Call install_dummy_methods.
6974 (complete_target_initialization): Call install_delegators.
6975 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6976 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6977 * make-target-delegates: New file.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * record.c (find_record_target): Use find_target_at.
6982 * target.c (find_target_at): New function.
6983 * target.h (find_target_at): Declare.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6989 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6991 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6992 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6994 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6996 * linux-nat.c (save_sigtrap): Update.
6997 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6998 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6999 (linux_nat_close): Update.
7000 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7002 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7004 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7005 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7006 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7007 (tmp_to_async): Add 'ops' argument.
7008 (record_full_stopped_by_watchpoint, record_full_async)
7009 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7011 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7012 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7013 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7014 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7015 (remote_is_async_p, remote_async): Add 'ops' argument.
7016 (remote_stopped_data_address): Update.
7017 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7018 * target.c (update_current_target)
7019 (find_default_can_async_p, find_default_is_async_p): Update.
7020 (init_dummy_target): Update.
7021 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7022 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7023 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7024 (target_can_async_p, target_is_async_p, target_async)
7025 (target_stopped_by_watchpoint): Update.
7027 2014-02-19 Yao Qi <yao@codesourcery.com>
7030 * gdbarch.sh: Remove startup_gdbarch.
7031 * gdbarch.c: Regenerated.
7032 * gdbarch.h: Likewise.
7034 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7036 * rl78-tdep.c (rl78_g10_register_name): New function.
7037 (rl78_return_value): Add g10 support.
7038 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7041 2014-02-17 Doug Evans <xdje42@gmail.com>
7043 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7044 (SUBDIR_GUILE_SRCS): Ditto.
7045 (scm-gsmob.o): Ditto.
7047 2014-02-17 Yao Qi <yao@codesourcery.com>
7049 * gnu-nat.c (ILL_RPC): Declare defined function.
7051 2014-02-17 Yao Qi <yao@codesourcery.com>
7053 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7054 mach_msg_type_number_t.
7055 (gnu_write_inferior): Likewise.
7057 2014-02-17 Yao Qi <yao@codesourcery.com>
7059 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7061 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7062 (inf_validate_procs, inf_signal): Likewise.
7063 (S_exception_raise_request): Likewise.
7064 (do_mach_notify_dead_name): Likewise.
7065 (steal_exc_port): Likewise.
7066 (gnu_read_inferior): Change 'copy_count''s type to
7067 mach_msg_type_number_t.
7068 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7071 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7073 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7074 flag. Adjust all users; in particular...
7075 (gnu_wait): ..., don't decrement its value in here...
7076 (gnu_create_inferior): ..., and instead set the flag in here,
7077 around the startup_inferior call, and call that one with
7078 START_INFERIOR_TRAPS_EXPECTED.
7080 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7081 (ILL_RPC): ... new macro.
7082 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7083 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7084 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7085 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7086 functions with ILL_RPC macro.
7087 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7088 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7089 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7090 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7091 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7092 (S_proc_getlogin_reply, S_proc_getsid_reply)
7093 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7094 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7095 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7096 (S_proc_getnports_reply, S_proc_is_important_reply)
7097 (S_proc_get_code_reply): New stub functions, generated with
7100 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7101 collected the type check structures.
7103 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7105 2014-02-14 Doug Evans <dje@google.com>
7107 * target.c (target_write_partial): Fix result type.
7109 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7111 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7112 the proper offsets to access fpregset_t.
7114 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7116 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7117 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7118 * h8300-tdep.c (setmachinelist): Remove global.
7119 * hppa-tdep.c (hppa_sigtramp): Remove global.
7120 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7121 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7122 * ravenscar-thread.c (update_target_observer): Remove global.
7123 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7125 2014-02-12 Tom Tromey <tromey@redhat.com>
7127 * common/rsp-low.c: Update comments.
7128 * common/rsp-low.h: Update comments.
7130 2014-02-12 Tom Tromey <tromey@redhat.com>
7132 * common/rsp-low.c (convert_ascii_to_int): Remove.
7133 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7135 2014-02-12 Tom Tromey <tromey@redhat.com>
7137 * common/rsp-low.h (unhexify): Don't declare.
7138 * common/rsp-low.c (unhexify): Remove.
7140 2014-02-12 Tom Tromey <tromey@redhat.com>
7142 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7143 * common/rsp-low.c (convert_int_to_ascii): Remove.
7145 2014-02-12 Tom Tromey <tromey@redhat.com>
7147 * common/rsp-low.h (hexify): Don't declare.
7148 * common/rsp-low.c (hexify): Remove.
7150 2014-02-12 Tom Tromey <tromey@redhat.com>
7152 * common/rsp-low.c (hexify): Never take strlen of argument.
7154 2014-02-12 Tom Tromey <tromey@redhat.com>
7156 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7157 * remote.c (extended_remote_run, remote_rcmd)
7158 (remote_download_trace_state_variable, remote_save_trace_data)
7159 (remote_set_trace_notes): Update.
7160 * tracepoint.c (encode_source_string, tfile_write_status)
7161 (tfile_write_uploaded_tsv): Update.
7163 2014-02-12 Tom Tromey <tromey@redhat.com>
7165 * tracepoint.c: Include rsp-low.h.
7166 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7167 * remote.c: Include rsp-low.h.
7168 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7169 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7170 (remote_unescape_input): Move to common/rsp-low.c.
7171 * common/rsp-low.h: New file.
7172 * common/rsp-low.c: New file.
7173 * Makefile.in (SFILES): Add common/rsp-low.c.
7174 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7175 (COMMON_OBS): Add rsp-low.o.
7176 (rsp-low.o): New target.
7178 2014-02-12 Tom Tromey <tromey@redhat.com>
7180 * utils.h: Include print-utils.h.
7181 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7182 (int_string, core_addr_to_string, core_addr_to_string_nz)
7183 (hex_string, hex_string_custom): Don't declare.
7184 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7185 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7186 (hex_string_custom, int_string, core_addr_to_string)
7187 (core_addr_to_string_nz, host_address_to_string): Move to
7188 common/print-utils.c.
7189 * common/print-utils.h: New file.
7190 * common/print-utils.c: New file
7191 * Makefile.in (SFILES): Add common/print-utils.c.
7192 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7193 (COMMON_OBS): Add print-utils.o.
7194 (print-utils.o): New target.
7196 2014-02-12 Tom Tromey <tromey@redhat.com>
7198 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7200 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7202 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7204 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7206 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7207 if a PT_IO ptrace request returns sucessfully but indicates that 0
7208 bytes were transferred.
7210 2014-02-12 Pedro Alves <palves@redhat.com>
7211 Kevin Buettner <kevinb@redhat.com>
7213 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7214 TYPE_INSTANCE_FLAG_CODE_SPACE.
7216 2014-02-12 Pedro Alves <palves@redhat.com>
7218 * h8300-tdep.c (pseudo_from_raw_register)
7219 (raw_from_pseudo_register): New functions.
7220 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7223 2014-02-12 Pedro Alves <palves@redhat.com>
7225 * h8300-tdep.c (h8300_register_sim_regno): New function.
7226 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7227 gdbarch_register_sim_regno hook.
7229 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7231 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7233 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7235 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7237 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7239 * obsd-tdep.h (obsd_init_abi): New prototype.
7240 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7241 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7242 (obsd_init_abi): New functions.
7243 * i386obsd-tdep.c: Include "obsd-tdep.h".
7244 (i386obsd_init_abi): Call obsd_init_abi.
7245 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7246 (amd64obsd_init_abi): Call obsd_init_abi.
7247 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7248 obsd-tdep.c to gdb_target_obs.
7250 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7252 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7253 double float arguments to 16-byte in the argument slots.
7255 2014-02-11 Doug Evans <xdje42@gmail.com>
7257 * configure.ac: Don't crash if pkg-config is not found and guile
7258 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7260 * configure: Regenerate.
7262 2014-02-11 Yao Qi <yao@codesourcery.com>
7264 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7265 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7266 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7267 * gnu-nat.c (gnu_xfer_memory): Likewise.
7268 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7269 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7270 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7271 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7273 2014-02-11 Yao Qi <yao@codesourcery.com>
7275 * target.h (enum target_xfer_error): Rename to ...
7276 (enum target_xfer_status): ... it. New. All users updated.
7277 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7279 (TARGET_XFER_STATUS_ERROR_P): New macro.
7280 (target_xfer_error_to_string): Remove declaration.
7281 (target_xfer_status_to_string): Declare.
7282 (target_xfer_partial_ftype): Adjust it.
7283 (struct target_ops) <to_xfer_partial>: Return
7284 target_xfer_status. Add argument xfered_len. Update
7286 * target.c (target_xfer_error_to_string): Rename to ...
7287 (target_xfer_status_to_string): ... it. New. All callers
7289 (target_read_live_memory): Likewise. Call target_xfer_partial
7290 instead of target_read.
7291 (memory_xfer_live_readonly_partial): Return
7292 target_xfer_status. Add argument xfered_len.
7293 (raw_memory_xfer_partial): Likewise.
7294 (memory_xfer_partial_1): Likewise.
7295 (memory_xfer_partial): Likewise.
7296 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7297 properly. Update debug message.
7298 (default_xfer_partial, current_xfer_partial): Likewise.
7299 (target_write_partial): Likewise.
7300 (target_read_partial): Likewise. All callers updated.
7301 (read_whatever_is_readable): Likewise.
7302 (target_write_with_progress): Likewise.
7303 (target_read_alloc_1): Likewise.
7305 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7306 * auxv.c (procfs_xfer_auxv): Likewise.
7307 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7308 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7309 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7310 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7311 * corefile.c (read_memory): Adjust.
7312 * corelow.c (core_xfer_partial): Likewise.
7313 * ctf.c (ctf_xfer_partial): Likewise.
7314 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7316 (darwin_xfer_partial): Likewise.
7317 * exec.c (section_table_xfer_memory_partial): Likewise. All
7319 (exec_xfer_partial): Likewise.
7320 * exec.h (section_table_xfer_memory_partial): Update
7322 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7324 (gnu_xfer_partial): Likewise.
7325 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7326 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7327 (ia64_hpux_xfer_solib_got): Likewise.
7328 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7329 type of 'partial_len' to ULONGEST.
7330 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7331 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7332 (linux_nat_xfer_partial): Likewise.
7333 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7334 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7335 * monitor.c (monitor_xfer_memory): Likewise.
7336 (monitor_xfer_partial): Likewise.
7337 * procfs.c (procfs_xfer_partial): Likewise.
7338 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7339 * record-full.c (record_full_xfer_partial): Likewise.
7340 (record_full_core_xfer_partial): Likewise.
7341 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7342 (gdbsim_xfer_partial): Likewise.
7343 * remote.c (remote_write_bytes_aux): Likewise. All callers
7345 (remote_write_bytes, remote_read_bytes): Likewise. All
7347 (remote_flash_erase): Likewise. All callers updated.
7348 (remote_write_qxfer): Likewise. All callers updated.
7349 (remote_read_qxfer): Likewise. All callers updated.
7350 (remote_xfer_partial): Likewise.
7351 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7352 (rs6000_xfer_shared_libraries): Likewise.
7353 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7354 (sol_thread_xfer_partial): Likewise.
7355 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7356 (sparc_xfer_partial): Likewise.
7357 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7359 (spu_xfer_partial): Likewise.
7360 * spu-multiarch.c (spu_xfer_partial): Likewise.
7361 * tracepoint.c (tfile_xfer_partial): Likewise.
7362 * windows-nat.c (windows_xfer_memory): Likewise.
7363 (windows_xfer_shared_libraries): Likewise.
7364 (windows_xfer_partial): Likewise.
7365 * valprint.c: Replace 'target_xfer_error' with
7366 'target_xfer_status' in comments.
7368 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7370 Checked in by Joel Brobecker <brobecker@adacore.com>.
7371 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7373 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7375 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7376 function parameters.
7378 2014-02-10 Will Newton <will.newton@linaro.org>
7380 * elfread.c (elf_rel_plt_read): Look for a .got section if
7381 looking up .got.plt fails.
7382 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7383 on address passed to elf_gnu_ifunc_record_cache.
7384 (elf_gnu_ifunc_resolve_addr): Likewise.
7385 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7387 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7389 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7390 (X_RETTURN): New macro.
7391 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7393 * sparc64-tdep.c (sparc64_init_abi): Hook
7394 sparc_in_function_epilogue_p.
7396 2014-02-10 Gary Benson <gbenson@redhat.com>
7398 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7399 Rename name_matcher to symbol_matcher.
7401 2014-02-10 Gary Benson <gbenson@redhat.com>
7403 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7404 Use expand_symtabs_file_matcher_ftype and
7405 expand_symtabs_symbol_matcher_ftype.
7407 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7409 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7410 (struct ada_symbol_cache): New.
7411 (ada_free_symbol_cache): Forward declare.
7412 (struct ada_pspace_data): New.
7413 (ada_pspace_data_handle): New static global.
7414 (get_ada_pspace_data, ada_pspace_data_cleanup)
7415 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7416 (cache_space, cache): Delete, now folded inside struct
7418 (ada_get_symbol_cache): New function.
7419 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7421 (_initialize_ada_language): Remove initialization of cache_space.
7422 Move call to observer_attach_inferior_exit up, grouping it
7423 with the other observer registrations inside this function.
7424 Rename command to be more general. Add call to
7425 register_program_space_data_with_cleanup.
7427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7429 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7430 ada_new_objfile_observer.
7431 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7432 (_initialize_tasks): Update uses of ada_new_objfile_observer
7433 and ada_tasks_normal_stop_observer.
7435 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7437 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7438 returned by the 'Length attribute to integer.
7440 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7442 * ada-lang.c (_initialize_ada_language): Initialize
7443 cache_space obstack.
7445 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7447 * ada-lang.c (HASH_SIZE): New macro.
7448 (struct cache_entry): New type.
7449 (cache_space, cache): New static globals.
7450 (ada_clear_symbol_cache, find_entry): New functions.
7451 (lookup_cached_symbol, cache_symbol): Implement.
7452 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7453 (_initialize_ada_language): Attach ada_new_objfile_observer
7454 and ada_free_objfile_observer.
7456 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7458 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7459 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7460 struct block * parameter.
7461 (ada_lookup_symbol_list_worker): Constify local variable "block".
7462 Remove cast which is no longer necessary.
7464 2014-02-10 Doug Evans <xdje42@gmail.com>
7466 Add Guile as an extension language.
7467 * NEWS: Mention Guile scripting.
7468 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7469 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7470 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7471 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7472 (CLIBS): Add GUILE_LIBS.
7473 (install-guile): New rule.
7474 (guile.o): New rule.
7475 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7476 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7477 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7478 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7479 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7480 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7481 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7482 * configure.ac: New option --with-guile.
7483 * configure: Regenerate.
7484 * config.in: Regenerate.
7485 * auto-load.c: Remove #include "python/python.h". Add #include
7486 "gdb/section-scripts.h".
7487 (source_section_scripts): Handle Guile scripts.
7488 (_initialize_auto_load): Add name of Guile objfile script to
7489 scripts-directory help text.
7490 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7491 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7492 (struct breakpoint): New member scm_bp_object.
7493 * defs.h (enum command_control_type): New value guile_control.
7494 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7496 (show_user): Update comment.
7497 (_initialize_cli_cmds): Update help text for "show user". Update help
7498 text for max-user-call-depth.
7499 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7501 (multi_line_command_p): Add guile_control.
7502 (print_command_lines): Handle guile_control.
7503 (execute_control_command, recurse_read_control_structure): Ditto.
7504 (process_next_line): Recognize "guile" commands.
7505 * disasm.c (gdb_disassemble_info): Make non-static.
7506 * disasm.h: #include "dis-asm.h".
7507 (struct gdbarch): Add forward decl.
7508 (gdb_disassemble_info): Declare.
7509 * extension.c: #include "guile/guile.h".
7510 (extension_languages): Add guile.
7511 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7512 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7513 * gdbtypes.c (get_unsigned_type_max): New function.
7514 (get_signed_type_minmax): New function.
7515 * gdbtypes.h (get_unsigned_type_max): Declare.
7516 (get_signed_type_minmax): Declare.
7517 * guile/README: New file.
7518 * guile/guile-internal.h: New file.
7519 * guile/guile.c: New file.
7520 * guile/guile.h: New file.
7521 * guile/scm-arch.c: New file.
7522 * guile/scm-auto-load.c: New file.
7523 * guile/scm-block.c: New file.
7524 * guile/scm-breakpoint.c: New file.
7525 * guile/scm-disasm.c: New file.
7526 * guile/scm-exception.c: New file.
7527 * guile/scm-frame.c: New file.
7528 * guile/scm-gsmob.c: New file.
7529 * guile/scm-iterator.c: New file.
7530 * guile/scm-lazy-string.c: New file.
7531 * guile/scm-math.c: New file.
7532 * guile/scm-objfile.c: New file.
7533 * guile/scm-ports.c: New file.
7534 * guile/scm-pretty-print.c: New file.
7535 * guile/scm-safe-call.c: New file.
7536 * guile/scm-string.c: New file.
7537 * guile/scm-symbol.c: New file.
7538 * guile/scm-symtab.c: New file.
7539 * guile/scm-type.c: New file.
7540 * guile/scm-utils.c: New file.
7541 * guile/scm-value.c: New file.
7542 * guile/lib/gdb.scm: New file.
7543 * guile/lib/gdb/boot.scm: New file.
7544 * guile/lib/gdb/experimental.scm: New file.
7545 * guile/lib/gdb/init.scm: New file.
7546 * guile/lib/gdb/iterator.scm: New file.
7547 * guile/lib/gdb/printing.scm: New file.
7548 * guile/lib/gdb/types.scm: New file.
7549 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7550 (VPATH): Add $(GUILE_SRCDIR).
7551 (GUILE_DIR): New variable.
7552 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7553 (all): Add stamp-guile dependency.
7554 (stamp-guile): New rule.
7555 (clean-guile, install-guile, uninstall-guile): New rules.
7556 (install-only): Add install-guile dependency.
7557 (uninstall): Add uninstall-guile dependency.
7558 (clean): Add clean-guile dependency.
7560 2014-02-09 Doug Evans <xdje42@gmail.com>
7562 Revert this patch (which I approved, mea culpa).
7564 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7566 * Makefile.in (all-lib): Remove.
7567 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7569 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7571 Fix Python stack corruption.
7572 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7575 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7577 * Makefile.in (all-lib): Remove.
7578 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7580 2014-02-07 Doug Evans <dje@google.com>
7582 * extension-priv.h (extension_language_script_ops): Add comment.
7583 (extension_language_ops): Add comment.
7584 (active_ext_lang_state): Fix typo in comment.
7586 2014-02-07 Pedro Alves <palves@redhat.com>
7588 PR breakpoints/16292
7589 * infrun.c (handle_signal_stop) <signal arrives while stepping
7590 over a breakpoint>: Switch back to the stepping thread.
7592 2014-02-07 Yao Qi <yao@codesourcery.com>
7594 * target.c (target_xfer_partial): Return zero if LEN is zero.
7596 2014-02-07 Yao Qi <yao@codesourcery.com>
7598 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7599 (ld_so_xfer_auxv): Likewise.
7600 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7601 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7602 * corelow.c (core_xfer_partial): Likewise.
7603 * ctf.c (ctf_xfer_partial): Likewise.
7604 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7605 (darwin_xfer_partial): Likewise.
7606 * exec.c (exec_xfer_partial): Likewise.
7607 * gnu-nat.c (gnu_xfer_partial): Likewise.
7608 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7609 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7610 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7611 * linux-nat.c (linux_xfer_siginfo): Likewise.
7612 (linux_proc_xfer_spu): Likewise.
7613 * procfs.c (procfs_xfer_partial): Likewise.
7614 * record-full.c (record_full_xfer_partial): Likewise.
7615 (record_full_core_xfer_partial): Likewise.
7616 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7617 * remote.c (remote_write_qxfer): Likewise.
7618 (remote_write_qxfer, remote_read_qxfer): Likewise.
7619 (remote_xfer_partial): Likewise.
7620 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7621 (rs6000_xfer_shared_libraries): Likewise.
7622 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7623 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7624 (spu_xfer_partial): Likewise.
7625 * target.c (memory_xfer_partial_1): Likewise.
7626 * tracepoint.c (tfile_xfer_partial): Likewise.
7627 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7628 (windows_xfer_partial): Likewise.
7630 2014-02-07 Yao Qi <yao@codesourcery.com>
7632 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7634 (core_xfer_shared_libraries_aix): Likewise.
7635 * gdbarch.c, gdbarch.h: Regenerated.
7636 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7637 ULONGEST. Change 'len_avail' type to ULONGEST.
7638 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7639 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7641 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7643 2014-02-07 Yao Qi <yao@codesourcery.com>
7645 * corefile.c (memory_error): Get 'exception' from ERR and pass
7646 'exception' to throw_error.
7648 2014-02-06 Doug Evans <xdje42@gmail.com>
7650 * configure.ac (libpython checking): Remove all but python.o from
7651 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7652 * configure: Regenerate.
7654 * Makefile.in (SFILES): Add extension.c.
7655 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7656 (COMMON_OBS): Add extension.o.
7657 * extension.h: New file.
7658 * extension-priv.h: New file.
7659 * extension.c: New file.
7661 * python/python-internal.h: #include "extension.h".
7662 (gdbpy_auto_load_enabled): Declare.
7663 (gdbpy_apply_val_pretty_printer): Declare.
7664 (gdbpy_apply_frame_filter): Declare.
7665 (gdbpy_preserve_values): Declare.
7666 (gdbpy_breakpoint_cond_says_stop): Declare.
7667 (gdbpy_breakpoint_has_cond): Declare.
7668 (void source_python_script_for_objfile): Delete.
7669 * python/python.c: #include "extension-priv.h".
7670 Delete inclusion of "observer.h".
7671 (extension_language_python): Moved here and renamed from
7672 script_language_python in py-auto-load.c.
7673 Redefined to be of type extension_language_defn.
7674 (python_extension_script_ops): New global.
7675 (python_extension_ops): New global.
7676 (struct python_env): New member previous_active.
7677 (restore_python_env): Call restore_active_ext_lang.
7678 (ensure_python_env): Call set_active_ext_lang.
7679 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7681 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7683 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7685 (gdbpy_eval_from_control_command): Renamed from
7686 eval_python_from_control_command, made static. New arg extlang.
7687 (gdbpy_source_script) Renamed from source_python_script, made static.
7689 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7690 result to int. New arg extlang.
7691 (gdbpy_source_objfile_script): Renamed from
7692 source_python_script_for_objfile, made static. New arg extlang.
7693 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7694 static. New args extlang, extlang_printers. Change result type to
7696 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7697 static. New arg extlang. Rename arg printers to extlang_printers
7698 and change type to ext_lang_type_printers *.
7699 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7700 static. Replace argument arg with extlang, extlang_printers.
7701 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7702 (!HAVE_PYTHON, source_python_script): Delete.
7703 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7704 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7705 (!HAVE_PYTHON, start_type_printers): Delete.
7706 (!HAVE_PYTHON, apply_type_printers): Delete.
7707 (!HAVE_PYTHON, free_type_printers): Delete.
7708 (_initialize_python): Delete call to observer_attach_before_prompt.
7709 (finalize_python): Set/restore active extension language.
7710 (gdbpy_finish_initialization) Renamed from
7711 finish_python_initialization, made static. New arg extlang.
7712 (gdbpy_initialized): New function.
7713 * python/python.h: #include "extension.h". Delete #include
7714 "value.h", "mi/mi-cmds.h".
7715 (extension_language_python): Declare.
7716 (GDBPY_AUTO_FILE_NAME): Delete.
7717 (enum py_bt_status): Moved to extension.h and renamed to
7719 (enum frame_filter_flags): Moved to extension.h.
7720 (enum py_frame_args): Moved to extension.h and renamed to
7721 ext_lang_frame_args.
7722 (finish_python_initialization): Delete.
7723 (eval_python_from_control_command): Delete.
7724 (source_python_script): Delete.
7725 (apply_val_pretty_printer): Delete.
7726 (apply_frame_filter): Delete.
7727 (preserve_python_values): Delete.
7728 (gdbpy_script_language_defn): Delete.
7729 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7730 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7732 * auto-load.c: #include "extension.h".
7733 (GDB_AUTO_FILE_NAME): Delete.
7734 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7735 (script_language_gdb): Delete, moved to extension.c and renamed to
7736 extension_language_gdb.
7737 (source_gdb_script_for_objfile): Delete.
7738 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7739 (loaded_script): Change type of language member to
7740 struct extension_language_defn *.
7741 (init_loaded_scripts_info): Initialize
7742 unsupported_script_warning_printed.
7743 (maybe_add_script): Make static. Change type of language arg to
7744 struct extension_language_defn *.
7745 (clear_section_scripts): Reset unsupported_script_warning_printed.
7746 (auto_load_objfile_script_1): Rewrite to use extension language API.
7747 (auto_load_objfile_script): Make public. Remove support-compiled-in
7748 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7749 (source_section_scripts): Rewrite to use extension language API.
7750 (load_auto_scripts_for_objfile): Rewrite to use
7751 auto_load_scripts_for_objfile.
7752 (collect_matching_scripts_data): Change type of language member to
7753 struct extension_language_defn *.
7754 (auto_load_info_scripts): Change type of language arg to
7755 struct extension_language_defn *.
7756 (unsupported_script_warning_print): New function.
7757 (script_not_found_warning_print): Make static.
7758 (_initialize_auto_load): Rewrite construction of scripts-directory
7760 * auto-load.h (struct objfile): Add forward decl.
7761 (struct script_language): Delete.
7762 (struct auto_load_pspace_info): Add forward decl.
7763 (struct extension_language_defn): Add forward decl.
7764 (maybe_add_script): Delete.
7765 (auto_load_objfile_script): Declare.
7766 (script_not_found_warning_print): Delete.
7767 (auto_load_info_scripts): Update prototype.
7768 (auto_load_gdb_scripts_enabled): Declare.
7769 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7770 auto_load_python_scripts_enabled and made public.
7771 (script_language_python): Delete, moved to python.c.
7772 (gdbpy_script_language_defn): Delete.
7773 (info_auto_load_python_scripts): Update to use
7774 extension_language_python.
7776 * breakpoint.c (condition_command): Replace call to
7777 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7778 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7779 with call to breakpoint_ext_lang_cond_says_stop.
7780 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7781 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7782 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7783 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7785 (local_setattro): Print name of extension language with existing
7788 * valprint.c (val_print, value_print): Update to call
7789 apply_ext_lang_val_pretty_printer.
7790 * cp-valprint.c (cp_print_value): Update call to
7791 apply_ext_lang_val_pretty_printer.
7792 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7793 (gdbpy_apply_val_pretty_printer): Renamed from
7794 apply_val_pretty_printer. New arg extlang.
7795 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7797 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7798 extension language API.
7799 * cli/cli-script.c (execute_control_command): Update to call
7800 eval_ext_lang_from_control_command.
7802 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7803 enum ext_lang_bt_status values. Update call to
7804 apply_ext_lang_frame_filter.
7805 (mi_cmd_stack_list_locals): Ditto.
7806 (mi_cmd_stack_list_args): Ditto.
7807 (mi_cmd_stack_list_variables): Ditto.
7808 * mi/mi-main.c: Delete #include "python/python-internal.h".
7809 Add #include "extension.h".
7810 (mi_cmd_list_features): Replace reference to python internal variable
7811 gdb_python_initialized with call to ext_lang_initialized_p.
7813 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7814 Update to use enum ext_lang_frame_args. Update to call
7815 apply_ext_lang_frame_filter.
7816 * python/py-framefilter.c (extract_sym): Update to use enum
7818 (extract_value, py_print_type, py_print_value): Ditto.
7819 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7820 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7821 (py_print_frame): Ditto.
7822 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7823 New arg extlang. Update to use enum ext_lang_bt_status.
7825 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7826 finish_python_initialization. Replace with call to
7827 finish_ext_lang_initialization.
7829 * typeprint.c (do_free_global_table): Update to call
7830 free_ext_lang_type_printers.
7831 (create_global_typedef_table): Update to call
7832 start_ext_lang_type_printers.
7833 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7834 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7835 (type_print_options): Change type of global_printers from "void *"
7836 to "struct ext_lang_type_printers *".
7838 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7839 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7840 (gdbpy_preserve_values): Renamed from preserve_python_values.
7842 (!HAVE_PYTHON, preserve_python_values): Delete.
7844 * utils.c (quit_flag): Delete, moved to extension.c.
7845 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7848 * eval.c: Delete #include "python/python.h".
7849 * main.c: Delete #include "python/python.h".
7851 * defs.h: Update comment.
7853 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7857 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7859 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7862 2014-02-05 Yao Qi <yao@codesourcery.com>
7864 * remote.c (remote_pass_signals): Remove local 'buf' and use
7866 (remote_program_signals): Likewise.
7868 2014-02-05 Yao Qi <yao@codesourcery.com>
7870 * ctf.c: Include "inferior.h" and "gdbthread.h".
7871 (CTF_PID): A new macro.
7872 (ctf_open): Call inferior_appeared and add_thread_silent.
7873 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7874 (ctf_thread_alive): New function.
7875 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7877 2014-02-05 Yao Qi <yao@codesourcery.com>
7881 2013-05-24 Yao Qi <yao@codesourcery.com>
7883 * tracepoint.c (TFILE_PID): Remove.
7884 (tfile_open): Don't add thread and inferior.
7885 (tfile_close): Don't set 'inferior_ptid'. Don't call
7886 exit_inferior_silent.
7887 (tfile_thread_alive): Remove.
7888 (init_tfile_ops): Don't set field 'to_thread_alive' of
7891 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7893 * remote.c (remote_start_remote): Call remote_check_symbols even
7894 if only symbol-file (not file) has been given.
7896 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7898 * gdbarch.sh (skip_entrypoint): New callback.
7899 * gdbarch.c, gdbarch.h: Regenerate.
7900 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7901 * infrun.c (fill_in_stop_func): Likewise.
7902 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7903 (ppc_elfv2_elf_make_msymbol_special): New function.
7904 (ppc_elfv2_skip_entrypoint): Likewise.
7905 (ppc_linux_init_abi): Install them for ELFv2.
7907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7909 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7910 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7911 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7912 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7913 structures returned in GPRs.
7915 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7917 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7918 offset to the stack parameter list for the ELFv2 ABI.
7920 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7922 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7923 set_gdbarch_convert_from_func_ptr_addr and
7924 set_gdbarch_elf_make_msymbol_special for ELFv1.
7925 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7926 function descriptors on ELFv1.
7927 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7928 set up r12 at function entry.
7930 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7932 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7933 (struct gdbarch_tdep): New member elf_abi.
7935 * rs6000-tdep.c: Include "elf/ppc64.h".
7936 (rs6000_gdbarch_init): Detect ELF ABI version.
7938 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7940 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7941 within a register pair holding a DFP 128-bit value on little-endian.
7942 (ppc64_sysv_abi_return_value_base): Likewise.
7943 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7944 (dfp_pseudo_register_write): Likewise.
7946 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7948 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7949 offset on little-endian when passing _Decimal32.
7950 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7952 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7954 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7955 of the overlapped FP register within the VSX register on little-
7957 (efpr_pseudo_register_write): Likewise.
7959 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7961 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7962 offset on little-endian when passing small structures.
7964 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7966 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7967 (struct ppc64_sysv_argpos): New data structure.
7968 (ppc64_sysv_abi_push_float): Remove.
7969 (ppc64_sysv_abi_push_val): New function.
7970 (ppc64_sysv_abi_push_integer): Likewise.
7971 (ppc64_sysv_abi_push_freg): Likewise.
7972 (ppc64_sysv_abi_push_vreg): Likewise.
7973 (ppc64_sysv_abi_push_param): Likewise.
7974 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7975 (ppc64_sysv_abi_return_value_base): New function.
7976 (ppc64_sysv_abi_return_value): Refactor to use it.
7978 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7980 * NEWS: Document new target powerpc64le-*-linux*.
7982 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7984 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7985 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7987 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7988 register set used in ELF core dumps. Add floating-point register set.
7990 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7992 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7993 dwarf2_to_gdb[] table using symbolic constants. Adjust
7994 penultimate entry from number representing the PC register
7995 to symbolic constant representing the MDR register. Add
7996 constant for the PC register to the end of the table.
7998 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8000 * bsd-kvm.c: Include <sys/param.h>
8002 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8004 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8006 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8008 * ada-lang.h (clear_ada_sym_cache): Delete.
8010 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8012 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8014 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8016 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8017 the sigreturn register save area only if the syscall is
8020 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8022 * valops.c (value_slice): Minor reformatting.
8024 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8026 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8028 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8030 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8032 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8033 (ada_ignore_descriptive_types_p): New static global.
8034 (find_parallel_type_by_descriptive_type): Return immediately
8035 if ada_ignore_descriptive_types_p is set.
8036 (_initialize_ada_language): Register new commands "maintenance
8037 set ada", "maintenance show ada", "maintenance set ada
8038 ignore-descriptive-types" and "maintenance show ada
8039 ignore-descriptive-types".
8040 * NEWS: Add entry for new "maint ada set/show
8041 ignore-descriptive-types" commands.
8043 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8045 * record-btrace.c (record_btrace_close): Call btrace_teardown
8048 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8050 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8053 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8055 * ada-typeprint (type_is_full_subrange_of_target_type):
8057 (print_range): Add parameter bounds_prefered_p. If not set,
8058 try printing range types using the name of their base type.
8059 (print_range_type): Add parameter bounds_prefered_p.
8060 Use it in call to print_range.
8061 (print_array_type, ada_print_type): Update calls to print_range
8062 and print_range_type.
8064 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8066 * ada-typeprint.c (print_array_type, print_choices, print_range)
8067 (print_range_bound, print_dynamic_range_bound, print_range_type):
8070 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8072 * ada-typeprint.c (print_range): Add missing empty line
8073 after local declaration.
8075 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8077 * ada-valprint.c (print_optional_low_bound): Get index_type's
8078 target type for as long as it is a TYPE_CODE_RANGE.
8080 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8082 * procfs.c (procfs_make_note_section): Remove assertion and
8085 2014-01-24 Yao Qi <yao@codesourcery.com>
8087 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8088 * corelow.c (get_core_siginfo): Likewise.
8090 2014-01-24 Yao Qi <yao@codesourcery.com>
8092 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8093 ULONGEST. Don't check 'len' is negative.
8094 (remote_write_bytes): Change type of 'len' to ULONGEST.
8096 2014-01-23 Tom Tromey <tromey@redhat.com>
8099 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8100 Handle exception from frame.block.
8101 (FrameVars.fetch_frame_locals): Likewise.
8103 2014-01-23 Tom Tromey <tromey@redhat.com>
8106 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8107 on a NULL pointer. Move "goto error" to correct place.
8109 2014-01-23 Tom Tromey <tromey@redhat.com>
8112 * python/py-framefilter.c (apply_frame_filter): Call
8113 ensure_python_env after computing gdbarch.
8115 2014-01-23 Yao Qi <yao@codesourcery.com>
8117 * target.c (raw_memory_xfer_partial): Change argument type
8118 from void * to gdb_byte *.
8119 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8121 2014-01-22 Doug Evans <dje@google.com>
8123 New gdbserver option --debug-format=timestamp.
8126 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8128 * syscalls/s390x-linux.xml: New file.
8129 * syscalls/s390-linux.xml: New file.
8130 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8131 (XML_SYSCALL_FILENAME_S390X): Likewise.
8132 (op_svc): New enum value for SVC opcode.
8133 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8134 (s390_linux_get_syscall_number): New function.
8135 (s390_gdbarch_init): Register '*get_syscall_number' and the
8136 syscall xml file name.
8137 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8138 "s390-linux.xml" and "s390x-linux.xml".
8139 * NEWS: Announce new feature.
8141 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8143 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8145 2014-01-22 Pedro Alves <palves@redhat.com>
8147 * xtensa-config.c: Include defs.h.
8149 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8151 * common/common-utils.h: Add "ARI:" comment beside __func__
8154 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8156 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8157 documentation a bit.
8159 2014-01-21 Roland McGrath <mcgrathr@google.com>
8161 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8162 * configure: Regenerate.
8163 * aclocal.m4: Regenerate.
8164 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8165 New substituted variables.
8166 (install-strip): New target.
8167 (INSTALL_SCRIPT): New substituted variable.
8168 (FLAGS_TO_PASS): Add it.
8169 (install-only): Use $(INSTALL_SCRIPT) rather than
8170 $(INSTALL_PROGRAM) for gcore.
8172 2014-01-20 Tom Tromey <tromey@redhat.com>
8174 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8177 2014-01-20 Tom Tromey <tromey@redhat.com>
8179 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8180 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8181 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8182 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8183 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8184 (struct cmd_list_element) <flags>: Remove.
8185 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8186 doc_allocated>: New fields.
8187 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8189 * maint.c (maintenance_do_deprecate): Update.
8190 * top.c (execute_command): Update.
8192 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8194 * xtensa-linux-nat.c: Include asm/ptrace.h.
8196 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8198 * Makefile.in (SFILES): Add d-support.c.
8199 (COMMON_OBS): Add d-support.o.
8200 * d-lang.h (d_parse_symbol): Add comment, now defined in
8202 * d-lang.c (parse_call_convention)
8203 (parse_attributes, parse_function_types)
8204 (parse_function_args, parse_type, parse_identifier)
8205 (call_convention_p, d_parse_symbol): Move functions to ...
8206 * d-support.c: ... New file.
8208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8210 * d-lang.h (d_parse_symbol): Add declaration.
8211 * d-lang.c (extract_identifiers)
8212 (extract_type_info): Remove functions.
8213 (parse_call_convention, parse_attributes)
8214 (parse_function_types, parse_function_args)
8215 (parse_type, parse_identifier, call_convention_p)
8216 (d_parse_symbol): New functions.
8217 (d_demangle): Use d_parse_symbol to demangle D symbols.
8219 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8221 * d-lang.h (struct builtin_d_type): New data type.
8222 (builtin_d_type): Add declaration.
8223 * d-lang.c (d_language_arch_info, build_d_types)
8224 (builtin_d_type): New functions.
8225 (enum d_primitive_types): New data type.
8226 (d_language_defn): Change c_language_arch_info to
8227 d_language_arch_info.
8228 (d_type_data): New static variable.
8229 (_initialize_d_language): Initialize d_type_data.
8231 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8233 * d-lang.h (d_main_name): Add declaration.
8234 * d-lang.c (d_main_name): New function.
8235 * symtab.c (find_main_name): Add call to d_main_name.
8237 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8239 * d-lang.c (d_language_defn): Change macro_expansion_c to
8242 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8244 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8246 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8248 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8249 gdb_exception" declaration.
8250 * remote.c (getpkt_or_notif_sane): Likewise.
8252 2014-01-17 Doug Evans <dje@google.com>
8254 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8255 function, contents of dirnames_to_char_ptr_vec_append moved here.
8256 (delim_string_to_char_ptr_vec): New function.
8257 (dirnames_to_char_ptr_vec_append): Rewrite.
8258 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8260 2014-01-17 Doug Evans <dje@google.com>
8262 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8264 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8265 #include "common-utils.h".
8266 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8267 * common/vec.h (VEC_ASSERT_PASS): Update.
8268 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8269 (MACH_CHECK_ERROR): Update.
8271 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8273 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8275 * gdbarch.h: Regenerate.
8277 2014-01-16 Tom Tromey <tromey@redhat.com>
8279 * value.c (struct value) <regnum>: Move earlier.
8281 2014-01-16 Tom Tromey <tromey@redhat.com>
8283 * remote.c (extended_remote_create_inferior): Rename from
8284 extended_remote_create_inferior_1. Add "ops" argument. Remove
8287 2014-01-16 Pedro Alves <palves@redhat.com>
8289 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8290 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8293 2014-01-16 Doug Evans <dje@google.com>
8295 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8299 * btrace.h (btrace_thread_flag): New.
8300 (struct btrace_thread_info) <flags>: New.
8301 * record-btrace.c (record_btrace_resume_thread)
8302 (record_btrace_find_thread_to_move, btrace_step_no_history)
8303 (btrace_step_stopped, record_btrace_start_replaying)
8304 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8305 (record_btrace_find_resume_thread): New.
8306 (record_btrace_resume, record_btrace_wait): Extend.
8307 (record_btrace_can_execute_reverse): New.
8308 (record_btrace_open): Fail in non-stop mode.
8309 (record_btrace_set_replay): Split into this, ...
8310 (record_btrace_stop_replaying): ... this, ...
8311 (record_btrace_clear_histories): ... and this.
8312 (init_record_btrace_ops): Init to_can_execute_reverse.
8313 * NEWS: Announce it.
8315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8317 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8318 (forward_target_decr_pc_after_break)
8319 (target_decr_pc_after_break): New.
8320 * target.c (forward_target_decr_pc_after_break)
8321 (target_decr_pc_after_break): New.
8322 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8323 instead of gdbarch_decr_pc_after_break.
8324 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8325 instead of gdbarch_decr_pc_after_break.
8326 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8327 instead of gdbarch_decr_pc_after_break.
8328 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8329 instead of gdbarch_decr_pc_after_break.
8330 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8331 instead of gdbarch_decr_pc_after_break.
8332 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8333 instead of gdbarch_decr_pc_after_break.
8335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8337 * btrace.c: Include regcache.h.
8338 (btrace_add_pc): New.
8339 (btrace_enable): Call btrace_add_pc.
8340 (btrace_is_empty): New.
8341 * btrace.h (btrace_is_empty): New.
8342 * record-btrace.c (require_btrace, record_btrace_info): Call
8345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8347 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8348 Support delta reads.
8349 (linux_disable_btrace): Change return type.
8350 * common/linux-btrace.h (linux_read_btrace): Change parameters
8351 and return type to allow error reporting. Update users.
8352 (linux_disable_btrace): Change return type. Update users.
8353 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8355 (btrace_error): New.
8356 (btrace_block) <begin>: Comment on BEGIN == 0.
8357 * btrace.c (btrace_compute_ftrace): Start from the end of
8359 (btrace_stitch_trace, btrace_clear_history): New.
8360 (btrace_fetch): Read delta trace, return if replaying.
8361 (btrace_clear): Move clear history code to btrace_clear_history.
8362 (parse_xml_btrace): Throw an error if parsing failed.
8363 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8364 and return type to allow error reporting.
8365 (target_read_btrace): Change parameters and return type to allow
8367 * target.c (target_read_btrace): Update.
8368 * remote.c (remote_read_btrace): Support delta reads. Pass
8370 * NEWS: Announce it.
8372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8374 * record.h (record_btrace_frame_unwind)
8375 (record_btrace_tailcall_frame_unwind): New declarations.
8376 * dwarf2-frame: Include record.h
8377 (dwarf2_frame_cfa): Throw an error for btrace frames.
8378 * record-btrace.c: Include hashtab.h.
8379 (btrace_get_bfun_name): New.
8380 (btrace_call_history): Call btrace_get_bfun_name.
8381 (struct btrace_frame_cache): New.
8383 (bfcache_hash, bfcache_eq, bfcache_new): New.
8384 (btrace_get_frame_function): New.
8385 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8386 (record_btrace_frame_this_id): Compute own id.
8387 (record_btrace_frame_prev_register): Provide PC, throw_error
8388 for all other registers.
8389 (record_btrace_frame_sniffer): Detect btrace frames.
8390 (record_btrace_tailcall_frame_sniffer): New.
8391 (record_btrace_frame_dealloc_cache): New.
8392 (record_btrace_frame_unwind): Add new functions.
8393 (record_btrace_tailcall_frame_unwind): New.
8394 (_initialize_record_btrace): Allocate cache.
8395 * btrace.c (btrace_clear): Call reinit_frame_cache.
8396 * NEWS: Announce it.
8398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8400 * record-btrace.c (record_btrace_set_replay)
8401 (record_btrace_goto_begin, record_btrace_goto_end)
8402 (record_btrace_goto): New.
8403 (init_record_btrace_ops): Initialize them.
8404 * NEWS: Announce it.
8406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8408 * record-btrace.c (record_btrace_find_new_threads)
8409 (record_btrace_thread_alive): New.
8410 (init_record_btrace_ops): Initialize to_find_new_threads and
8413 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8415 * record-btrace.c (record_btrace_resume): New.
8416 (record_btrace_wait): New.
8417 (init_record_btrace_ops): Initialize to_wait and to_resume.
8419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8421 * record-btrace.c (record_btrace_xfer_partial)
8422 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8423 (record_btrace_allow_memory_access): New.
8424 (init_record_btrace_ops): Initialize new methods.
8425 * target.c (raw_memory_xfer_partial): Bail out if target reports
8426 that this memory is not available.
8428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8430 * target.h (target_ops) <to_insert_breakpoint>
8431 <to_remove_breakpoint>: Add target_ops parameter.
8432 (forward_target_insert_breakpoint): New.
8433 (forward_target_remove_breakpoint): New.
8434 (memory_remove_breakpoint, memory_insert_breakpoint):
8435 Add target_ops parameter.
8436 * target.c (target_insert_breakpoint): Split into this and ...
8437 (forward_target_insert_breakpoint): ... this.
8438 (target_remove_breakpoint): Split into this and ...
8439 (forward_target_remove_breakpoint): ... this.
8440 (debug_to_insert_breakpoint): Add target_ops parameter.
8441 Call forward_target_insert_breakpoint.
8442 (debug_to_remove_breakpoint): Add target_ops parameter.
8443 Call forward_target_remove_breakpoint.
8444 (update_current_target): Do not inherit or default to_insert_breakpoint
8445 and to_remove_breakpoint.
8446 * corelow.c (ignore): Add target_ops parameter.
8447 * exec.c (ignore): Add target_ops parameter.
8448 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8449 Add target_ops parameter.
8450 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8451 Add target_ops parameter.
8452 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8453 Add target_ops parameter.
8454 * record-full.c (record_full_beneath_to_insert_breakpoint)
8455 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8456 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8457 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8458 (record_full_core_remove_breakpoint): Add target_ops parameter.
8460 (record_full_beneath_to_insert_breakpoint_ops)
8461 (record_full_beneath_to_remove_breakpoint_ops)
8462 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8463 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8464 tmp_to_remove_breakpoint_ops,
8465 record_full_beneath_to_insert_breakpoint_ops, and
8466 record_full_beneath_to_remove_breakpoint_ops.
8467 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8468 (m32r_remove_breakpoint): Add target_ops parameter.
8469 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8470 Add target_ops parameter.
8471 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8472 Add target_ops parameter.
8474 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8475 Markus Metzger <markus.t.metzger@intel.com>
8477 * record-btrace.c: Include frame-unwind.h.
8478 (record_btrace_frame_unwind_stop_reason)
8479 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8480 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8482 (init_record_btrace_ops): Install it.
8484 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8486 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8489 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8491 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8494 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8496 * frame-unwind.c: Include target.h.
8497 (frame_unwind_try_unwinder): New function with code from ...
8498 (frame_unwind_find_by_frame): ... here. New variable
8499 unwinder_from_target, call also target_get_unwinder)
8500 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8501 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8502 * target.h (struct target_ops): New fields to_get_unwinder and
8503 to_get_tailcall_unwinder.
8504 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8508 * record-btrace.c (record_btrace_fetch_registers)
8509 (record_btrace_store_registers)
8510 (record_btrace_to_prepare_to_store): New.
8511 (init_record_btrace_ops): Add the above.
8513 2014-01-16 Tom Tromey <tromey@redhat.com>
8515 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8516 * target.h (struct target_ops) <to_prepare_to_store>: Add
8518 (target_prepare_to_store): Add argument.
8519 * target.c (debug_to_prepare_to_store): Add argument.
8520 (update_current_target): Update.
8521 * remote.c (remote_prepare_to_store): Add 'self' argument.
8522 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8523 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8524 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8525 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8527 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8528 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8529 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8530 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8531 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8535 * btrace.h (replay) <replay>: New.
8536 (btrace_is_replaying): New.
8537 * btrace.c (btrace_clear): Free replay iterator.
8538 (btrace_is_replaying): New.
8539 * record-btrace.c (record_btrace_is_replaying): New.
8540 (record_btrace_info): Print insn number if replaying.
8541 (record_btrace_insn_history): Start at replay position.
8542 (record_btrace_call_history): Start at replay position.
8543 (init_record_btrace_ops): Init to_record_is_replaying.
8545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8547 * record-btrace.c (record_btrace_insn_history_range): Include
8549 (record_btrace_insn_history_from): Adjust range.
8550 (record_btrace_call_history_range): Include
8552 (record_btrace_call_history_from): Adjust range.
8553 * NEWS: Announce changes.
8555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8557 * record.h (enum record_print_flag)
8558 <record_print_indent_calls>: New.
8559 * record.c (get_call_history_modifiers): Recognize /c modifier.
8560 (_initialize_record): Document /c modifier.
8561 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8562 Reorder fields. Optionally indent the function name. Update
8564 * NEWS: Announce changes.
8566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8568 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8572 * btrace.c (ftrace_new_function): Start counting at one.
8573 * record-btrace.c (record_btrace_info): Adjust number of calls
8575 * NEWS: Announce it.
8577 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8579 * record-btrace.c (btrace_call_history_insn_range): Print
8580 insn range as [begin, end].
8582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8584 * btrace.h (struct btrace_func_link): New.
8585 (enum btrace_function_flag): New.
8586 (struct btrace_inst): Rename to ...
8587 (struct btrace_insn): ...this. Update all users.
8588 (struct btrace_func) <ibegin, iend>: Remove.
8589 (struct btrace_func_link): New.
8590 (struct btrace_func): Rename to ...
8591 (struct btrace_function): ...this. Update all users.
8592 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8593 (number, level, flags>: New.
8594 (struct btrace_insn_iterator): Rename to ...
8595 (struct btrace_insn_history): ...this.
8597 (struct btrace_insn_iterator, btrace_call_iterator): New.
8598 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8599 (struct btrace_target_info) <begin, end, level>
8600 <insn_history, call_history>: New.
8601 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8602 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8603 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8604 (btrace_call_number, btrace_call_begin, btrace_call_end)
8605 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8606 (btrace_find_function_by_number, btrace_set_insn_history)
8607 (btrace_set_call_history): New.
8608 * btrace.c (btrace_init_insn_iterator)
8609 (btrace_init_func_iterator, compute_itrace): Remove.
8610 (ftrace_print_function_name, ftrace_print_filename)
8611 (ftrace_skip_file): Change
8613 (ftrace_init_func): Remove.
8614 (ftrace_debug): Use new btrace_function fields.
8615 (ftrace_function_switched): Also consider gaining and
8616 losing symbol information).
8617 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8618 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8619 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8621 (ftrace_new_function): Move. Remove debug print.
8622 (ftrace_update_lines, ftrace_update_insns): New.
8623 (ftrace_update_function): Check for call, ret, and jump.
8624 (compute_ftrace): Renamed to ...
8625 (btrace_compute_ftrace): ...this. Rewritten to compute call
8627 (btrace_fetch, btrace_clear): Updated.
8628 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8629 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8630 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8631 (btrace_call_number, btrace_call_begin, btrace_call_end)
8632 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8633 (btrace_find_function_by_number, btrace_set_insn_history)
8634 (btrace_set_call_history): New.
8635 * record-btrace.c (require_btrace): Use new btrace thread
8637 (record_btrace_info, btrace_insn_history)
8638 (record_btrace_insn_history, record_btrace_insn_history_range):
8639 Use new btrace thread info fields and new iterator.
8640 (btrace_func_history_src_line): Rename to ...
8641 (btrace_call_history_src_line): ...this. Use new btrace
8643 (btrace_func_history): Rename to ...
8644 (btrace_call_history): ...this. Use new btrace thread info
8645 fields and new iterator.
8646 (record_btrace_call_history, record_btrace_call_history_range):
8647 Use new btrace thread info fields and new iterator.
8649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8651 * frame.h (frame_id_build_unavailable_stack_special): New.
8652 * frame.c (frame_id_build_unavailable_stack_special): New.
8654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8656 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8657 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8658 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8660 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8661 (i386_insn_is_jump, i386_jmp_p): New.
8662 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8663 insn_is_jump to gdbarch.
8664 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8665 * gdbarch.h: Regenerated.
8666 * gdbarch.c: Regenerated.
8667 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8668 (default_insn_is_jump): New.
8669 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8670 (default_insn_is_jump): New.
8672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8674 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8676 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8677 (btrace_read_type) <btrace_read_new>: Change to ...
8678 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8682 * common/linux-btrace.c (linux_read_btrace): Free trace from
8685 2014-01-15 Doug Evans <dje@google.com>
8687 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8690 2014-01-15 Tom Tromey <tromey@redhat.com>
8692 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8693 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8694 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8695 (set_objfile_main_name): New function.
8696 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8697 language_of_main>: New fields.
8698 (set_objfile_main_name): Declare.
8699 * symtab.c (find_main_name): Loop over objfiles to find the main
8701 (set_main_name): Now static.
8702 (get_main_info): Add comment.
8703 * symtab.h (set_main_name): Don't declare.
8705 2014-01-15 Tom Tromey <tromey@redhat.com>
8707 * symtab.c (main_progspace_key): New global.
8708 (struct main_info): New.
8709 (name_of_main, language_of_main): Remove.
8710 (get_main_info, main_info_cleanup): New function.
8711 (set_main_name, main_name, main_language): Use get_main_info.
8712 (_initialize_symtab): Initialize main_progspace_key.
8714 2014-01-15 Tom Tromey <tromey@redhat.com>
8716 * dbxread.c (process_one_symbol): Update.
8717 * dwarf2read.c (read_partial_die): Update.
8718 * symfile.c (set_initial_language): Call main_language.
8719 * symtab.c (language_of_main): Now static.
8720 (set_main_name): Add 'lang' parameter.
8721 (find_main_name): Update.
8722 (main_language): New function.
8723 (symtab_observer_executable_changed): Update.
8724 * symtab.h (set_main_name): Update.
8725 (language_of_main): Remove.
8726 (main_language): Declare.
8728 2014-01-15 Tom Tromey <tromey@redhat.com>
8730 * symfile.c (init_entry_point_info): Use new "initialized" field.
8732 * objfiles.h (struct entry_point) <initialized>: New field.
8733 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8734 (struct objfile) <ei>: ...here. Remove.
8735 * objfiles.c (entry_point_address_query): Update.
8737 2014-01-15 Tom Tromey <tromey@redhat.com>
8739 * objfiles.c (entry_point_address_query): Relocate entry point
8741 (objfile_relocate1): Do not relocate entry point address.
8742 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8743 <the_bfd_section_index>: New field.
8744 * symfile.c (init_entry_point_info): Find the entry point's
8747 2014-01-15 Tom Tromey <tromey@redhat.com>
8749 * solib-frv.c (enable_break): Use entry_point_address_query.
8751 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8753 * NEWS: Add note on improved process record-replay on
8754 arm*-linux* targets.
8756 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8758 * arm-tdep.c (enum arm_record_result): New enum.
8759 (arm_record_unsupported_insn): New function.
8760 (arm_record_coproc_data_proc): Removed.
8761 (thumb2_record_ld_st_multiple): New function.
8762 (thumb2_record_ld_st_dual_ex_tbb): New function.
8763 (thumb2_record_data_proc_sreg_mimm): New function.
8764 (thumb2_record_ps_dest_generic): New function.
8765 (thumb2_record_branch_misc_cntrl): New function.
8766 (thumb2_record_str_single_data): New function.
8767 (thumb2_record_ld_mem_hints): New function.
8768 (thumb2_record_ld_word): New function.
8769 (thumb2_record_lmul_lmla_div): New function.
8770 (thumb2_record_decode_insn_handler): New function.
8771 (decode_insn): Add thumb32 instruction handlers.
8773 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8775 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8776 (struct arm_linux_record_tdep): Declare.
8777 (arm_canonicalize_syscall): New function.
8778 (arm_all_but_pc_registers_record): New function.
8779 (arm_linux_syscall_record): New function.
8780 (arm_linux_init_abi): Add syscall recording constructs.
8781 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8782 decoding. (arm_record_coproc_data_proc): Update arm syscall
8784 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8785 <arm_syscall_record>: New field.
8786 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8789 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8791 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8792 register for push instruction recording.
8794 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8796 * arm-tdep.c (thumb_record_misc): Update to correct logical
8797 error while recording ldm, ldmia and pop instructions.
8799 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8801 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8803 2014-01-15 Pedro Alves <palves@redhat.com>
8805 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8806 (go32_resume, go32_fetch_registers, store_register)
8807 (go32_store_registers, go32_prepare_to_store)
8808 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8809 (go32_create_inferior, go32_can_run, go32_terminal_init)
8810 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8813 2014-01-15 Tom Tromey <tromey@redhat.com>
8815 * target.h (async_callback_ftype): New typedef.
8816 (struct target_ops) <to_async>: Use it.
8818 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8820 * python/py-value.c (get_field_type): Remove unnecessary curly
8821 braces for single-statement if block.
8823 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8825 * python/py-type.c (convert_field): Add missing empty line
8828 2014-01-14 Doug Evans <dje@google.com>
8830 * symfile.h (expand_symtabs_matching): Renamed from
8831 expand_partial_symbol_names. Update prototype.
8832 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8833 * symfile.c (expand_symtabs_matching): Renamed from
8834 expand_partial_symbol_names. New args file_matcher, kind.
8835 Rename arg fun to symbol_matcher.
8836 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8837 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8838 ada_expand_partial_symbol_name.
8839 (ada_make_symbol_completion_list): Update to call
8840 expand_symtabs_matching.
8841 (ada_add_global_exceptions): Call expand_symtabs_matching.
8842 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8843 call map_symbol_filenames.
8844 * symtab.c (sources_info): Update to call map_symbol_filenames.
8845 (search_symbols): Call expand_symtabs_matching.
8846 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8847 (default_make_symbol_completion_list_break_on): Update to call
8848 expand_symtabs_matching.
8849 (make_source_files_completion_list): Update to call
8850 map_symbol_filenames.
8852 2014-01-14 Doug Evans <dje@google.com>
8854 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8855 (expand_symtabs_symbol_matcher_ftype): New typedef.
8856 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8857 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8858 * symfile.c (expand_partial_symbol_names): Update to use
8859 expand_symtabs_symbol_matcher_ftype.
8860 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8861 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8862 Arg name_matcher renamed to symbol_matcher.
8863 * psymtab.c (recursively_search_psymtabs): Update to use
8864 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8866 (expand_symtabs_matching_via_partial): Update to use
8867 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8868 Arg name_matcher renamed to symbol_matcher.
8870 2014-01-14 Doug Evans <dje@google.com>
8872 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8873 (map_partial_symbol_filenames): Ditto.
8874 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8875 (map_partial_symbol_filenames): Ditto.
8876 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8877 (map_partial_symbol_filenames): Ditto.
8878 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8879 (map_partial_symbol_filenames): Ditto.
8880 * symtab.c: Delete #include "psymtab.h".
8882 2014-01-14 Pedro Alves <palves@redhat.com>
8883 Tom Tromey <tromey@redhat.com>
8885 * infrun.c (use_displaced_stepping): Use find_record_target
8886 instead of RECORD_IS_USED.
8887 (adjust_pc_after_break): Use record_full_is_used instead of
8889 * record-btrace.c (record_btrace_open): Call record_preopen
8890 instead of checking RECORD_IS_USED.
8891 * record-full.c (record_full_shortname)
8892 (record_full_core_shortname): New globals.
8893 (record_full_is_used): New function.
8894 (find_full_open): Call record_preopen instead of checking
8896 (init_record_full_ops): Set the target's shortname to
8897 record_full_shortname.
8898 (init_record_full_core_ops): Set the target's shortname to
8899 record_full_core_shortname.
8900 * record-full.h (record_full_is_used): Declare.
8901 * record.c (find_record_target): Make extern.
8902 (record_preopen): New function.
8903 * record.h (RECORD_IS_USED): Delete macro.
8904 (find_record_target, record_preopen): Declare functions.
8906 2014-01-14 Yao Qi <yao@codesourcery.com>
8908 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8909 'len''s type to ULONGEST.
8910 (core_xfer_shared_libraries_aix): Likewise.
8911 * gdbarch.c, gdbarch.h: Regenerated.
8912 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8913 Change type of 'len' to ULONGEST.
8914 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8915 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8917 2014-01-14 Yao Qi <yao@codesourcery.com>
8919 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8920 type of 'len' to ULONGEST.
8921 (linux_xfer_osdata_processgroups): Likewise.
8922 (linux_xfer_osdata_threads): Likewise.
8923 (linux_xfer_osdata_fds): Likewise.
8924 (linux_xfer_osdata_isockets): Likewise.
8925 (linux_xfer_osdata_shm): Likewise.
8926 (linux_xfer_osdata_sem): Likewise.
8927 (linux_xfer_osdata_msg): Likewise.
8928 (linux_common_xfer_osdata): Likewise.
8929 (struct osdata_type) <getter>: Likewise.
8930 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8933 2014-01-14 Yao Qi <yao@codesourcery.com>
8935 * target.h (target_xfer_partial_ftype): Update.
8936 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8938 * aix-thread.c (aix_thread_xfer_partial): Change type of
8939 argument 'len' to ULONGEST.
8940 * auxv.c (procfs_xfer_auxv): Likewise.
8941 (ld_so_xfer_auxv): Likewise.
8942 (memory_xfer_auxv): Likewise.
8943 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8944 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8945 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8946 * corelow.c (core_xfer_partial): Likewise.
8947 * ctf.c (ctf_xfer_partial): Likewise.
8948 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8950 (darwin_read_dyld_info): Likewise.
8951 (darwin_xfer_partial): Likewise.
8952 * exec.c (section_table_xfer_memory_partial): Likewise.
8953 (exec_xfer_partial): Likewise.
8954 * exec.h (section_table_xfer_memory_partial): Update
8956 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8957 instead of plongest.
8958 (gnu_xfer_partial): Likewise.
8959 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8960 (ia64_hpux_xfer_solib_got): Likewise.
8961 (ia64_hpux_xfer_partial): Likewise.
8962 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8963 * inf-ptrace.c (inf_ptrace_xfer_partial):
8964 * inf-ttrace.c (inf_ttrace_xfer_partial):
8965 * linux-nat.c (linux_xfer_siginfo): Likewise.
8966 (linux_nat_xfer_partial): Likewise.
8967 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8968 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8969 * monitor.c (monitor_xfer_memory): Likewise.
8970 (monitor_xfer_partial): Likewise.
8971 * procfs.c (procfs_xfer_partial): Likewise.
8972 * record-full.c (record_full_xfer_partial): Likewise.
8973 (record_full_core_xfer_partial): Likewise.
8974 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8975 instead of plongest.
8976 (gdbsim_xfer_partial): Likewise.
8977 * remote.c (remote_xfer_partial): Likewise.
8978 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8979 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8981 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8982 (rs6000_xfer_shared_libraries): Likewise.
8983 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8984 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8985 (sparc_xfer_partial): Likewise.
8986 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8987 (spu_xfer_partial): Likewise.
8988 * spu-multiarch.c (spu_xfer_partial): Likewise.
8989 * target.c (target_read_live_memory): Likewise.
8990 (memory_xfer_live_readonly_partial): Likewise.
8991 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8992 (target_xfer_partial, default_xfer_partial): Likewise.
8993 (current_xfer_partial): Likewise.
8994 * tracepoint.c (tfile_xfer_partial): Likewise.
8995 * windows-nat.c (windows_xfer_memory): Likewise. Call
8996 pulongest instead of plongest.
8997 (windows_xfer_partial): Likewise.
8998 (windows_xfer_shared_libraries): Likewise.
9000 2014-01-14 Yao Qi <yao@codesourcery.com>
9002 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9003 target_xfer_partial_ftype.
9005 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9009 * valops.c (value_struct_elt_bitpos): New function
9010 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9011 object to 'None' if the field name is an empty string ("").
9012 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9013 attribute to look for a field when 'name' is 'None'.
9014 (get_field_type): New function
9016 2014-01-13 Doug Evans <dje@google.com>
9019 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9020 (try_open_dwop_file): Ditto.
9021 * gdb_bfd.c: #include "vec.h".
9022 (bfdp): New typedef.
9023 (struct gdb_bfd_data): New member included_bfds.
9024 (gdb_bfd_unref): Unref all included bfds.
9025 (gdb_bfd_record_inclusion): New function.
9026 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9028 2014-01-13 Tom Tromey <tromey@redhat.com>
9030 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9032 2014-01-13 Tom Tromey <tromey@redhat.com>
9034 * defs.h (use_windows): Remove.
9035 * gdb.c (main): Update.
9036 * main.c (captured_main, gdb_main): Update.
9037 * main.h (struct captured_main_args) <use_windows>: Remove.
9038 * top.c (use_windows): Remove.
9040 2014-01-13 Tom Tromey <tromey@redhat.com>
9042 * defs.h (deprecated_flush_hook): Remove.
9044 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * linux-thread-db.c (try_thread_db_load): Add parameter
9048 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9049 (try_thread_db_load_from_pdir_1): Move it there from here.
9050 (try_thread_db_load_from_sdir): Update caller.
9051 (try_thread_db_load_from_dir): Move it there from here.
9053 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9055 * regformats/regdat.sh: Always rewrite the register file.
9057 2014-01-13 Pedro Alves <palves@redhat.com>
9059 * Makefile.in (CHECK_HEADERS): New variable.
9060 (check-headers:): New rule.
9062 2014-01-13 Tom Tromey <tromey@redhat.com>
9064 * cli/cli-setshow.c (do_set_command): Update.
9065 * defs.h (deprecated_set_hook): Remove.
9066 * top.c (deprecated_set_hook): Remove.
9068 2014-01-13 Pedro Alves <palves@redhat.com>
9070 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9071 the tracepoint if the PC is a pseudo-register.
9073 2014-01-13 Tom Tromey <tromey@redhat.com>
9075 * defs.h (XCALLOC): Remove.
9076 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9077 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9078 * dwarf2loc.c (allocate_piece_closure): Likewise.
9079 * elfread.c (elf_symfile_segments): Likewise.
9080 (elf_symfile_segments): Likewise.
9081 * gdbtypes.c (copy_type_recursive): Likewise.
9082 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9083 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9084 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9086 * mt-tdep.c (mt_gdbarch_init): Likewise.
9087 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9089 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9090 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9091 * registry.c (registry_alloc_data): Likewise.
9092 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9093 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9094 * serial.c (serial_fdopen_ops): Likewise.
9095 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9097 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9098 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9101 2014-01-13 Tom Tromey <tromey@redhat.com>
9103 * defs.h (XMALLOC): Remove.
9104 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9105 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9106 * cli-out.c (struct ui_out *): Likewise.
9107 * cli/cli-dump.c (add_dump_command): Likewise.
9108 (add_dump_command): Likewise.
9109 * complaints.c (get_complaints): Likewise.
9110 (find_complaint): Likewise.
9111 * dwarf2-frame.c (execute_cfa_program): Likewise.
9112 * dwarf2read.c (abbrev_table_read_table): Likewise.
9113 * gdbarch.sh: Likewise.
9114 * gdbarch.c: Rebuild.
9115 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9116 * interps.c (interp_new): Likewise.
9117 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9118 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9119 * mi/mi-console.c (mi_console_file_new): Likewise.
9120 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9121 * mi/mi-out.c (mi_out_new): Likewise.
9122 * mi/mi-parse.c (mi_parse): Likewise.
9123 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9124 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9125 * observer.c (xalloc_observer_list_node): Likewise.
9126 * regcache.c (regcache_xmalloc_1): Likewise.
9127 * reggroups.c (reggroup_new): Likewise.
9128 (_initialize_reggroup): Likewise.
9129 * registry.c (register_data_with_cleanup): Likewise.
9130 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9131 * ser-base.c (serial_ttystate): Likewise.
9132 * ser-mingw.c (make_pipe_state): Likewise.
9133 * ser-pipe.c (pipe_open): Likewise.
9134 * serial.c (serial_open): Likewise.
9135 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9136 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9137 (tui_alloc_win_info): Likewise.
9138 (tui_add_content_elements): Likewise.
9139 * tui/tui-file.c (tui_file_new): Likewise.
9140 * tui/tui-out.c (tui_out_new): Likewise.
9141 * ui-file.c (mem_file_new): Likewise.
9142 * ui-out.c (push_level): Likewise.
9143 (make_cleanup_ui_out_end): Likewise.
9144 (append_header_to_list): Likewise.
9145 (ui_out_new): Likewise.
9146 * user-regs.c (user_reg_add_builtin): Likewise.
9148 2014-01-13 Tom Tromey <tromey@redhat.com>
9150 * defs.h (XZALLOC): Remove.
9151 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9152 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9153 (get_ada_tasks_inferior_data): Likewise.
9154 * auto-load.c (get_auto_load_pspace_data): Likewise.
9155 * auxv.c (get_auxv_inferior_data): Likewise.
9156 * bfd-target.c (target_bfd_reopen): Likewise.
9157 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9158 (deprecated_insert_raw_breakpoint): Likewise.
9159 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9160 * corelow.c (core_open): Likewise.
9161 * darwin-nat.c (darwin_check_new_threads): Likewise.
9162 (darwin_attach_pid): Likewise.
9163 * dummy-frame.c (dummy_frame_push): Likewise.
9164 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9165 * dwarf2loc.c (allocate_piece_closure): Likewise.
9166 * elfread.c (elf_symfile_segments): Likewise.
9167 * eval.c (ptrmath_type_p): Likewise.
9168 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9169 * gdbtypes.c (alloc_type_arch): Likewise.
9170 (alloc_type_instance): Likewise.
9171 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9172 * inf-child.c (inf_child_can_use_agent): Likewise.
9173 * inflow.c (get_inflow_inferior_data): Likewise.
9174 * infrun.c (save_infcall_suspend_state): Likewise.
9175 * jit.c (jit_reader_load): Likewise.
9176 (get_jit_objfile_data): Likewise.
9177 (get_jit_program_space_data): Likewise.
9178 (jit_object_open_impl): Likewise.
9179 (jit_symtab_open_impl): Likewise.
9180 (jit_block_open_impl): Likewise.
9181 (jit_frame_sniffer): Likewise.
9182 * linux-fork.c (add_fork): Likewise.
9183 * maint.c (make_command_stats_cleanup): Likewise.
9184 * objfiles.c (get_objfile_pspace_data): Likewise.
9185 * opencl-lang.c (struct lval_closure): Likewise.
9186 * osdata.c (osdata_start_osdata): Likewise.
9187 * progspace.c (new_address_space): Likewise.
9188 (add_program_space): Likewise.
9189 * remote-sim.c (get_sim_inferior_data): Likewise.
9190 * sh-tdep.c (sh_gdbarch_init): Likewise.
9191 * skip.c (Ignore): Likewise.
9192 (skip_delete_command): Likewise.
9193 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9194 (library_list_start_library): Likewise.
9195 (solib_aix_current_sos): Likewise.
9196 * solib-darwin.c (get_darwin_info): Likewise.
9197 (darwin_current_sos): Likewise.
9198 * solib-dsbt.c (get_dsbt_info): Likewise.
9199 * solib-ia64-hpux.c (new_so_list): Likewise.
9200 (ia64_hpux_get_solib_linkage_addr): Likewise.
9201 * solib-spu.c (append_ocl_sos): Likewise.
9202 (spu_current_sos): Likewise.
9203 * solib-svr4.c (get_svr4_info): Likewise.
9204 (svr4_keep_data_in_core): Likewise.
9205 (library_list_start_library): Likewise.
9206 (svr4_default_sos): Likewise.
9207 (svr4_read_so_list): Likewise.
9208 * solib-target.c (library_list_start_library): Likewise.
9209 (solib_target_current_sos): Likewise.
9210 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9211 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9212 * symfile.c (default_symfile_segments): Likewise.
9213 * target-descriptions.c (tdesc_data_init): Likewise.
9214 (tdesc_create_reg): Likewise.
9215 (struct tdesc_type *): Likewise.
9216 (tdesc_create_vector): Likewise.
9217 (tdesc_set_struct_size): Likewise.
9218 (struct tdesc_type *): Likewise.
9219 (tdesc_free_feature): Likewise.
9220 (tdesc_create_feature): Likewise.
9221 * windows-nat.c (windows_add_thread): Likewise.
9222 (windows_make_so): Likewise.
9223 * xml-support.c (gdb_xml_body_text): Likewise.
9224 (gdb_xml_create_parser_and_cleanup): Likewise.
9225 (xml_process_xincludes): Likewise.
9226 * xml-syscall.c (allocate_syscalls_info): Likewise.
9227 (syscall_create_syscall_desc): Likewise.
9229 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9231 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9232 function, with code from i386_stap_parse_special_token.
9233 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9234 (i386_stap_parse_special_token): Move code to the two functions
9237 2014-01-09 Pedro Alves <palves@redhat.com>
9238 Hui Zhu <hui@codesourcery.com>
9241 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9242 bp_err_string. Don't mark the location shlib_disabled if the
9243 error thrown wasn't a generic or memory error. Catch errors
9244 thrown while inserting breakpoints in overlayed code. Output
9245 error message of software breakpoints.
9246 * remote.c (remote_insert_breakpoint): If this breakpoint has
9247 target-side commands but this stub doesn't support Z0 packets,
9248 throw NOT_SUPPORTED_ERROR error.
9249 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9250 * target.h (target_insert_breakpoint): Extend comment.
9251 (target_insert_hw_breakpoint): Add comment.
9253 2014-01-08 Pedro Alves <palves@redhat.com>
9255 * remote.c (remote_add_thread): Add threads silently if starting
9257 (remote_notice_new_inferior): If in all-stop, and starting up,
9258 don't call notice_new_inferior.
9259 (get_current_thread): New function, factored out from ...
9260 (add_current_inferior_and_thread): ... this. Adjust.
9261 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9262 found any thread, then select the remote's current thread as GDB's
9265 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9267 * NEWS: Create a new section for the next release branch.
9268 Rename the section of the current branch, now that it has
9271 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9273 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9274 * version.in: Bump version to 7.7.50.DATE-cvs.
9276 2014-01-08 Yao Qi <yao@codesourcery.com>
9278 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9279 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9280 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9282 2014-01-08 Yao Qi <yao@codesourcery.com>
9284 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9285 return value of bfd_get_filename to symbol_file_add_from_bfd.
9287 2014-01-08 Pierre Muller <muller@sourceware.org>
9290 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9291 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9292 to prim_record_mininal_symbol_and_info.
9293 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9294 in call to prim_record_minimal_symbol_and_info.
9295 (read_pe_exported_syms): Set index field of section_data.
9297 2014-01-07 Andrew Pinski <apinski@cavium.com>
9299 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9300 * features/aarch64.c: Regenerate.
9302 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9304 * target.c (return_null): Define.
9305 (update_current_target): Use it instead of return_zero for
9306 functions that return a pointer.
9308 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9310 * source.c (add_path): Fix check for duplicated paths in the previously
9313 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9315 * ada-lang.c: Remove duplicated include statements.
9316 * alphabsd-nat.c: Ditto.
9317 * amd64-darwin-tdep.c: Ditto.
9318 * amd64fbsd-nat.c: Ditto.
9319 * auto-load.c: Ditto.
9321 * breakpoint.c: Ditto.
9323 * fork-child.c: Ditto.
9324 * gdb_usleep.c: Ditto.
9325 * i386-darwin-tdep.c: Ditto.
9326 * i386fbsd-nat.c: Ditto.
9328 * inferior.c: Ditto.
9330 * linux-nat.c: Ditto.
9331 * linux-tdep.c: Ditto.
9332 * m68kbsd-nat.c: Ditto.
9333 * m68klinux-nat.c: Ditto.
9334 * microblaze-tdep.c: Ditto.
9335 * mips-linux-tdep.c: Ditto.
9336 * mn10300-tdep.c: Ditto.
9337 * nto-tdep.c: Ditto.
9338 * opencl-lang.c: Ditto.
9340 * printcmd.c: Ditto.
9341 * regcache.c: Ditto.
9342 * remote-m32r-sdi.c: Ditto.
9346 * tilegx-linux-nat.c: Ditto.
9347 * tilegx-tdep.c: Ditto.
9348 * tracepoint.c: Ditto.
9350 * vaxbsd-nat.c: Ditto.
9351 * windows-nat.c: Ditto.
9352 * xtensa-tdep.c: Ditto.
9354 2014-01-07 Yao Qi <yao@codesourcery.com>
9356 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9358 2014-01-07 Yao Qi <yao@codesourcery.com>
9359 Joel Brobecker <brobecker@adacore.com>
9361 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9362 (pdc_write_regs): Likewise.
9363 (fetch_regs_kernel_thread): Likewise.
9364 (store_regs_kernel_thread): Likewise.
9366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9368 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9369 tagged type objects to their actual type.
9371 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9373 * ada-valprint.c (print_field_values): Add "language" parameter.
9374 Update calls to print_field_values and print_variant_part.
9375 Pass new parameter "language" in call to val_print instead
9376 of "current_language". Replace call to ada_val_print by call
9378 (print_variant_part): Add "language" parameter.
9379 (ada_val_print_struct_union): Update call to print_field_values.
9381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9383 * ada-valprint.c (ui_memcpy): Delete.
9384 (ada_print_floating): Update documentation. Add empty line
9385 between between function documentation and implementation.
9386 Delete variable "buffer". Use ui_file_xstrdup in place of
9387 ui_file_put. Minor adjustments following this change.
9389 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9391 * ada-valprint.c (ada_val_print_string): New function,
9392 extracted from ada_val_print_array.
9393 (ada_val_print_array): Replace extracted code by call
9394 to ada_val_print_string followed by a return. Move
9395 "else" branch to the function's top block.
9397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9399 * ada-valprint.c (ada_val_print_array): Move implementation
9400 down. Rename parameter "offset" and "val" into "offset_aligned"
9401 and "original_value" respectively. Add parameter "offset".
9403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9405 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9406 re-organizing the code. Change the "???" message printed
9407 when target type is a TYPE_CODE_UNDEF into
9408 "<ref to undefined type>".
9410 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9412 * ada-valprint.c (print_record): Delete, implementation inlined...
9413 (ada_val_print_struct_union): ... here. Remove call to
9414 ada_check_typedef in inlined implementation.
9416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9418 * ada-valprint.c (ada_val_print_gnat_array): New function,
9419 extracted from ada_val_print_1;
9420 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9421 (ada_val_print_flt, ada_val_print_struct_union)
9422 (ada_val_print_ref): Likewise.
9423 (ada_val_print_1): Delete variables i and elttype.
9424 Replace extracted-out code by call to corresponding
9427 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9429 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9433 * ada-valprint.c (ada_val_print_1): Replace calls to
9434 ada_val_print_1 by calls to val_print.
9436 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9438 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9439 Update calls to self accordingly. Replace calls to c_val_print
9440 by calls to val_print.
9442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9444 * ada-valprint.c (print_record): Delete declaration.
9445 (adjust_type_signedness, ada_val_print_1): Likewise.
9446 (ada_val_print): Move function implementation down.
9447 (print_variant_part, print_field_values, print_record):
9448 Move function implementation up.
9450 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9452 * python/py-type.c (typy_get_name): New function.
9453 (type_object_getset): Add entry for attribute "name".
9454 * NEWS: Add entry mentioning this new attribute.
9456 2014-01-07 Yao Qi <yao@codesourcery.com>
9458 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9461 2014-01-07 Yao Qi <yao@codesourcery.com>
9463 * gnu-nat.c (info_port_rights): Add qualifier const to
9466 2014-01-07 Yao Qi <yao@codesourcery.com>
9468 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9470 2014-01-07 Yao Qi <yao@codesourcery.com>
9472 * gnu-nat.c (make_inf) Update declaration.
9473 (make_inf): Make it static.
9474 (inf_set_traced): Likewise.
9475 (inf_port_to_thread, inf_task_died_status): Likewise.
9477 2014-01-07 Yao Qi <yao@codesourcery.com>
9479 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9481 2014-01-07 Yao Qi <yao@codesourcery.com>
9483 * gnu-nat.c (_initialize_gnu_nat): Declare.
9485 2014-01-07 Yao Qi <yao@codesourcery.com>
9487 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9489 (struct gdbarch_info) <byte_order>: Change type to
9491 <byte_order_for_code>: Likewise.
9492 * gdbarch.c, gdbarch.h: Regenerated.
9494 2014-01-06 Sasha Smundak <asmundak@google.com>
9496 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9498 2014-01-06 Tom Tromey <tromey@redhat.com>
9500 * doublest.c (convert_doublest_to_floatformat): Use const, not
9502 * somread.c (som_symtab_read): Likewise.
9504 2014-01-07 Hui Zhu <hui@codesourcery.com>
9506 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9507 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9508 (gdb_bfd_fopen): Ditto.
9509 (gdb_bfd_openr): Ditto.
9510 (gdb_bfd_openw): Ditto.
9511 (gdb_bfd_openr_iovec): Ditto.
9512 (gdb_bfd_fdopenr): Ditto.
9513 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9514 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9516 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9518 * symfile-mem.c (symbol_file_add_from_memory): Removed
9519 gdb_bfd_stash_filename.
9521 2014-01-03 Doug Evans <dje@google.com>
9523 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9526 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9528 Update year range in copyright notice of all files.
9530 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9532 * top.c (print_gdb_version): Set copyright year to 2014.
9534 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9536 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9538 For older changes see ChangeLog-2013.
9544 version-control: never