1 2014-06-19 Yao Qi <yao@codesourcery.com>
3 * gdbthread.h (struct thread_info) <state>: Change its type to
4 'enum thread_state'. Update comments.
6 2014-06-19 Pedro Alves <palves@redhat.com>
8 * gdbthread.h (ALL_THREADS): Delete.
9 (ALL_NON_EXITED_THREADS): New macro.
10 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
11 instead of ALL_THREADS.
12 * infrun.c (find_thread_needs_step_over)
13 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
14 instead of ALL_THREADS.
15 * record-btrace.c (record_btrace_open)
16 (record_btrace_stop_recording, record_btrace_close)
17 (record_btrace_is_replaying, record_btrace_resume)
18 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
19 * remote.c (append_pending_thread_resumptions): Likewise.
20 * thread.c (thread_apply_all_command): Likewise.
22 2014-06-19 Gary Benson <gbenson@redhat.com>
24 * i386-nat.c (i386_stopped_by_watchpoint):
25 Use i386_dr_stopped_by_watchpoint.
26 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
27 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
29 2014-06-19 Gary Benson <gbenson@redhat.com>
31 * nat/i386-dregs.c: New file.
32 * Makefile.in (i386-dregs.o): New rule.
33 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
34 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
35 * config/i386/darwin.mh (NATDEPFILES): Likewise.
36 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
37 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
38 * config/i386/go32.mh (NATDEPFILES): Likewise.
39 * config/i386/linux.mh (NATDEPFILES): Likewise.
40 * config/i386/linux64.mh (NATDEPFILES): Likewise.
41 * config/i386/mingw.mh (NATDEPFILES): Likewise.
42 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
43 * i386-nat.h (debug_hw_points): New declaration.
44 * i386-nat.c (breakpoint.h): Remove include.
45 (command.h): Likewise.
47 (gdb_assert.h): Likewise.
48 (debug_hw_points): Made nonstatic.
49 (debug_printf): Now in i386-dregs.c.
50 (TARGET_HAS_DR_LEN_8): Likewise.
51 (DR_CONTROL_SHIFT): Likewise.
52 (DR_CONTROL_SIZE): Likewise.
53 (DR_RW_EXECUTE): Likewise.
54 (DR_RW_WRITE): Likewise.
55 (DR_RW_READ): Likewise.
56 (DR_RW_IORW): Likewise.
61 (DR_LOCAL_ENABLE_SHIFT): Likewise.
62 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
63 (DR_ENABLE_SIZE): Likewise.
64 (DR_LOCAL_SLOWDOWN): Likewise.
65 (DR_GLOBAL_SLOWDOWN): Likewise.
66 (DR_CONTROL_RESERVED): Likewise.
67 (I386_DR_CONTROL_MASK): Likewise.
68 (I386_DR_VACANT): Likewise.
69 (I386_DR_LOCAL_ENABLE): Likewise.
70 (I386_DR_GLOBAL_ENABLE): Likewise.
71 (I386_DR_DISABLE): Likewise.
72 (I386_DR_SET_RW_LEN): Likewise.
73 (I386_DR_GET_RW_LEN): Likewise.
74 (I386_DR_WATCH_HIT): Likewise.
75 (i386_wp_op_t): Likewise.
76 (i386_show_dr): Likewise.
77 (i386_length_and_rw_bits): Likewise.
78 (i386_insert_aligned_watchpoint): Likewise.
79 (i386_remove_aligned_watchpoint): Likewise.
80 (i386_handle_nonaligned_watchpoint): Likewise.
81 (i386_update_inferior_debug_regs): Likewise.
82 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
83 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
84 (i386_region_ok_for_watchpoint):
85 Use i386_dr_region_ok_for_watchpoint.
86 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
88 2014-06-19 Gary Benson <gbenson@redhat.com>
90 * i386-nat.c (i386_insert_hw_breakpoint): Use
91 i386_insert_watchpoint.
92 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
94 2014-06-19 Gary Benson <gbenson@redhat.com>
96 * i386-nat.c (i386_dr_show): Renamed to
97 i386_show_dr and made static. All uses updated.
98 (i386_dr_length_and_rw_bits): Renamed to
99 i386_length_and_rw_bits and made static.
101 (i386_dr_insert_aligned_watchpoint): Renamed to
102 i386_insert_aligned_watchpoint and made static.
104 (i386_dr_remove_aligned_watchpoint): Renamed to
105 i386_remove_aligned_watchpoint and made static.
107 (i386_dr_update_inferior_debug_regs): Renamed to
108 i386_update_inferior_debug_regs and made static.
110 * nat/i386-dregs.h (i386_dr_show): Removed.
111 (i386_dr_length_and_rw_bits): Likewise.
112 (i386_dr_insert_aligned_watchpoint): Likewise.
113 (i386_dr_remove_aligned_watchpoint): Likewise.
114 (i386_dr_update_inferior_debug_regs): Likewise.
116 2014-06-19 Gary Benson <gbenson@redhat.com>
118 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
119 * configure: Regenerate.
120 * config.in: Likewise.
121 * main.c (signal.h): New include.
122 (setup_alternate_signal_stack): New function.
123 (captured_main): Call the above.
124 * cp-support.c (signal.h): New include.
125 (catch_demangler_crashes): New flag.
126 (SIGJMP_BUF): New define.
127 (SIGSETJMP): Likewise.
128 (SIGLONGJMP): Likewise.
129 (gdb_demangle_jmp_buf): New static global.
130 (gdb_demangle_attempt_core_dump): Likewise.
131 (gdb_demangle_signal_handler): New function.
132 (gdb_demangle): If catch_demangler_crashes is set, install the
133 above signal handler before calling bfd_demangle, and restore
134 the original signal handler afterwards. Display the offending
135 symbol and call demangler_warning the first time a segmentation
137 (_initialize_cp_support): New maint set/show command.
139 2014-06-19 Gary Benson <gbenson@redhat.com>
141 * utils.h (resource_limit_kind): New enum.
142 (can_dump_core): New declaration.
143 (warn_cant_dump_core): Likewise.
144 (dump_core): Likewise.
145 * utils.c (dump_core): Made nonstatic. Added new
146 parameter "limit_kind".
147 (can_dump_core): Made nonstatic. Moved printing code to...
148 (warn_cant_dump_core): New function.
149 (can_dump_core_warn): Likewise.
150 (internal_vproblem): Replace calls to can_dump_core with
151 calls to can_dump_core_warn. Supply new argument to each.
153 2014-06-19 Gary Benson <gbenson@redhat.com>
155 * utils.h (demangler_vwarning): New declaration.
156 (demangler_warning): Likewise.
157 * utils.c (struct internal_problem)
158 <user_settable_should_quit>: New field.
159 <user_settable_should_dump_core>: Likewise
160 (internal_error_problem): Add values for above new fields.
161 (internal_warning_problem): Likewise.
162 (demangler_warning_problem): New static global.
163 (demangler_vwarning): New function.
164 (demangler_warning): Likewise.
165 (add_internal_problem_command): Selectively add commands.
166 (_initialize_utils): New internal problem command.
167 * maint.c (maintenance_demangler_warning): New function.
168 (_initialize_maint_cmds): New command.
170 2014-06-18 Tom Tromey <tromey@redhat.com>
172 * f-valprint.c (info_common_command_for_block): Update.
173 * symtab.h (struct general_symbol_info) <common_block>: Now
176 2014-06-18 Tom Tromey <tromey@redhat.com>
178 * symtab.h (struct symtab) <blockvector>: Now const.
179 * ada-lang.c (ada_add_global_exceptions): Update.
180 * buildsym.c (augment_type_symtab): Update.
181 * dwarf2read.c (dw2_lookup_symbol): Update.
182 * jit.c (finalize_symtab): Update.
183 * jv-lang.c (add_class_symtab_symbol): Update.
184 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
186 * objfiles.c (objfile_relocate1): Update.
187 * psymtab.c (lookup_symbol_aux_psymtabs)
188 (maintenance_check_psymtabs): Update.
189 * python/py-symtab.c (stpy_global_block, stpy_static_block):
191 * spu-tdep.c (spu_catch_start): Update.
192 * symmisc.c (dump_symtab_1): Update.
193 * symtab.c (lookup_global_symbol_from_objfile)
194 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
195 (basic_lookup_transparent_type_quick)
196 (basic_lookup_transparent_type, find_pc_sect_symtab)
197 (find_pc_sect_line, search_symbols): Update.
198 * block.c (find_block_in_blockvector): Make "bl" const.
199 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
201 (blockvector_contains_pc): Make "bv" const.
202 (block_for_pc_sect): Update.
203 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
204 (blockvector_contains_pc): Update.
205 * breakpoint.c (resolve_sal_pc): Update.
206 * inline-frame.c (block_starting_point_at): Update.
208 2014-06-18 Tom Tromey <tromey@redhat.com>
210 * completer.c (complete_line): Make "line_buffer" const.
211 * completer.h (complete_line): Update.
213 2014-06-18 Tom Tromey <tromey@redhat.com>
215 * symtab.c (add_macro_name): Remove unneeded cast.
217 2014-06-18 Tom Tromey <tromey@redhat.com>
219 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
220 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
222 2014-06-18 Tom Tromey <tromey@redhat.com>
224 * probe.c (info_probes_for_ops): Make "arg" const.
225 * probe.h (info_probes_for_ops): Update.
227 2014-06-18 Tom Tromey <tromey@redhat.com>
229 * varobj.c (varobj_create): Update.
230 * valops.c (value_of_this): Update.
231 * tracepoint.c (add_local_symbols, scope_info): Update.
232 * symtab.h (struct general_symbol_info) <block>: Now const.
233 * symtab.c (skip_prologue_sal)
234 (default_make_symbol_completion_list_break_on)
235 (skip_prologue_using_sal): Update.
236 * stack.h (iterate_over_block_locals)
237 (iterate_over_block_local_vars): Update.
238 * stack.c (print_frame_args): Update.
239 (iterate_over_block_locals, iterate_over_block_local_vars): Make
241 (get_selected_block): Make return type const.
242 * python/py-frame.c (frapy_block): Update.
243 * python/py-block.c (gdbpy_block_for_pc): Update.
244 * p-exp.y (%union) <bval>: Now const.
245 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
246 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
247 * m2-exp.y (%union) <bval>: Now const.
248 * linespec.c (get_current_search_block): Make return type const.
249 (create_sals_line_offset, find_label_symbols): Update.
250 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
252 (block_starting_point_at): Make "block" const.
253 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
254 (check_exception_resume): Update.
255 * guile/scm-frame.c (gdbscm_frame_block): Update.
256 * guile/scm-block.c (gdbscm_lookup_block): Update.
257 * frame.h (get_frame_block): Update.
258 (get_selected_block): Make return type const.
259 * frame.c (frame_id_inner): Update.
260 * f-valprint.c (info_common_command_for_block)
261 (info_common_command): Update.
262 * dwarf2loc.c (dwarf2_find_location_expression)
263 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
264 (locexpr_describe_location_piece): Update.
265 * c-exp.y (%union) <bval>: Now const.
266 * breakpoint.c (resolve_sal_pc): Update.
267 * blockframe.c (get_frame_block):Make return type const.
268 (get_pc_function_start, get_frame_function, find_pc_sect_function)
269 (block_innermost_frame): Update.
270 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
271 (block_for_pc, block_for_pc_sect): Update.
272 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
274 (block_for_pc_sect, block_for_pc): Make return type const.
275 * ax-gdb.c (gen_expr): Update.
276 * alpha-mdebug-tdep.c (find_proc_desc): Update.
277 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
278 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
279 (ada_read_var_value): Update.
280 * ada-exp.y (struct name_info) <block>: Now const.
282 (block_lookup): Constify.
284 2014-06-18 Gary Benson <gbenson@redhat.com>
286 * nat/i386-dregs.h: New file.
287 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
288 * i386-nat.h (i386-dregs.h): New include.
289 (DR_FIRSTADDR): Now in i386-dregs.h.
290 (DR_LASTADDR): Likewise.
291 (DR_NADDR): Likewise.
292 (DR_STATUS): Likewise.
293 (DR_CONTROL): Likewise.
294 (i386_debug_reg_state): Likewise.
295 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
297 2014-06-18 Don Breazeal <donb@codesourcery.com>
299 * breakpoint.c (set_longjmp_breakpoint): Call
300 momentary_breakpoint_from_master with additional argument.
301 (set_longjmp_breakpoint_for_call_dummy): Call
302 momentary_breakpoint_from_master with additional argument.
303 (set_std_terminate_breakpoint): Call
304 momentary_breakpoint_from_master with additional argument.
305 (momentary_breakpoint_from_master): Add argument to function
306 definition and use it to initialize structure member flag.
307 (clone_momentary_breakpoint): Call
308 momentary_breakpoint_from_master with additional argument.
309 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
310 member flags set in momentary_breakpoint_from_master.
312 2014-06-18 Gary Benson <gbenson@redhat.com>
314 * i386-nat.c (i386_show_dr): Renamed to
315 i386_dr_show and made nonstatic. All uses updated.
316 (i386_length_and_rw_bits): Renamed to
317 i386_dr_length_and_rw_bits and made nonstatic.
319 (i386_insert_aligned_watchpoint): Renamed to
320 i386_dr_insert_aligned_watchpoint and made nonstatic.
322 (i386_remove_aligned_watchpoint): Renamed to
323 i386_dr_remove_aligned_watchpoint and made nonstatic.
325 (i386_update_inferior_debug_regs): Renamed to
326 i386_dr_update_inferior_debug_regs and made nonstatic.
329 2014-06-18 Gary Benson <gbenson@redhat.com>
331 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
332 (i386_dr_low_can_set_control): Likewise.
333 (i386_dr_low_set_addr): Likewise.
334 (i386_dr_low_set_control): Likewise.
335 (i386_dr_low_get_addr): Likewise.
336 (i386_dr_low_get_status): Likewise.
337 (i386_dr_low_get_control): Likewise.
338 (i386_insert_aligned_watchpoint): Use new macros.
339 (i386_update_inferior_debug_regs): Likewise.
340 (i386_stopped_data_address): Likewise.
342 2014-06-18 Gary Benson <gbenson@redhat.com>
344 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
345 New parameter. All uses updated.
347 2014-06-18 Gary Benson <gbenson@redhat.com>
349 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
352 2014-06-18 Gary Benson <gbenson@redhat.com>
354 * i386-nat.c (debug_printf): New macro.
355 (i386_get_debug_register_length): Likewise.
356 (TARGET_HAS_DR_LEN_8): Use above macro.
357 (i386_show_dr): Use debug_printf instead of puts_unfiltered
358 and printf_unfiltered. Use phex to format values.
360 2014-06-18 Gary Benson <gbenson@redhat.com>
362 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
365 2014-06-18 Gary Benson <gbenson@redhat.com>
367 * i386-nat.c: Comment changes.
369 2014-06-18 Gary Benson <gbenson@redhat.com>
371 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
373 2014-06-18 Gary Benson <gbenson@redhat.com>
375 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
376 (i386_insert_aligned_watchpoint): Likewise.
377 (i386_remove_aligned_watchpoint): Likewise.
378 (i386_handle_nonaligned_watchpoint): Likewise.
380 2014-06-18 Gary Benson <gbenson@redhat.com>
382 * i386-nat.c: Whitespace changes.
384 2014-06-17 Samuel Bronson <naesten@gmail.com>
386 * MAINTAINERS: Update Roland McGrath's email address.
387 Thanks to Sergio Durigan Junior for pointing out that he left
388 Red Hat a while ago, and giving me a current address.
390 2014-06-17 Tom Tromey <tromey@redhat.com>
392 * utils.h (savestring): Remove declaration.
394 2014-06-17 Tom Tromey <tromey@redhat.com>
396 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
398 2014-06-16 Keith Seitz <keiths@redhat.com>
401 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
402 to update the varobj if inferior_ptid is null_ptid.
404 2014-06-16 Tom Tromey <tromey@redhat.com>
406 * target.h (struct target_ops) <to_info_proc>: Make parameter
408 (target_info_proc): Update.
409 * target.c (target_info_proc): Make "args" const.
410 * procfs.c (procfs_info_proc): Update.
411 * linux-tdep.c (linux_info_proc): Update.
412 (linux_core_info_proc_mappings): Make "args" const.
413 (linux_core_info_proc): Update.
414 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
415 * gdbarch.c: Rebuild.
416 * gdbarch.h: Rebuild.
417 * corelow.c (core_info_proc): Update.
419 2014-06-16 Tom Tromey <tromey@redhat.com>
421 * target.h (struct target_ops) <to_disconnect>: Make parameter
423 (target_disconnect): Update.
424 * target.c (target_disconnect): Make "args" const.
425 * target-delegates.c: Rebuild.
426 * remote.c (remote_disconnect): Update.
427 * record.h (record_disconnect): Update.
428 * record.c (record_disconnect): Update.
429 * inf-child.c (inf_child_disconnect): Update.
431 2014-06-16 Tom Tromey <tromey@redhat.com>
433 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
434 * target.c (debug_to_rcmd, default_rcmd): Update.
435 * target-delegates.c: Rebuild.
436 * remote.c (remote_rcmd): Update.
437 * monitor.c (monitor_rcmd): Update.
439 2014-06-16 Pedro Alves <palves@redhat.com>
441 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
442 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
443 have OBJF_SHARED set.
444 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
445 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
446 instead of OBJF_USERLOADED.
447 * objfiles.h (OBJF_SHARED): Update comment.
448 (userloaded_objfile_contains_address_p): Rename to ...
449 (shared_objfile_contains_address_p): ... this, and update
451 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
453 (remove_symbol_file_command): Skip objfiles that don't have
456 2014-06-16 Tom Tromey <tromey@redhat.com>
458 * minsyms.h (prim_record_minimal_symbol)
459 (prim_record_minimal_symbol_and_info): Update comments.
461 2014-06-14 Eli Zaretskii <eliz@gnu.org>
463 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
464 or --without-guile, according to how GDB was built.
466 2014-06-13 Tom Tromey <tromey@redhat.com>
468 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
470 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
472 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
474 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
475 help_list.Pass all_commands, not -1, to help_list.
476 * cli/cli-dump.c (dump_command, append_command)
477 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
478 (binary_dump_command, binary_append_command): Pass all_commands,
479 not -1, to help_list.
480 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
482 * valprint.c (set_print, set_print_raw): Pass all_commands, not
484 * typeprint.c (set_print_type): Pass all_commands, not -1, to
486 * top.c (set_history): Pass all_commands, not -1, to help_list.
487 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
488 all_commands, not -1, to help_list.
489 * symfile.c (overlay_command): Pass all_commands, not -1, to
491 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
493 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
495 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
497 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
498 not -1, to help_list.
499 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
500 not -1, to help_list.
501 * maint.c (maintenance_command, maintenance_info_command)
502 (maintenance_print_command, maintenance_set_cmd): Pass
503 all_commands, not -1, to help_list.
504 * macrocmd.c (macro_command): Pass all_commands, not -1, to
506 * language.c (set_check): Pass all_commands, not -1, to help_list.
507 * infcmd.c (unset_command): Pass all_commands, not -1, to
509 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
511 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
513 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
515 * breakpoint.c (save_command): Pass all_commands, not -1, to
517 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
518 all_commands, not -1, to help_list.
520 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
522 * regcache.c (struct register_to_invalidate): New structure.
523 (do_register_invalidate, make_cleanup_regcache_invalidate): New
525 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
527 2014-06-12 Yao Qi <yao@codesourcery.com>
529 * varobj.c (varobj_get_num_children): Call
531 (varobj_list_children): Likewise.
532 (varobj_update): Likewise. Update comments.
534 2014-06-12 Yao Qi <yao@codesourcery.com>
536 * varobj.c (varobj_pretty_printed_p): Rename to ...
537 (varobj_is_dynamic_p): ... this. New function.
538 * varobj.h (varobj_pretty_printed_p): Remove declaration.
539 (varobj_is_dynamic_p): Declare.
540 * mi/mi-cmd-var.c (print_varobj): All callers updated.
541 (mi_print_value_p, varobj_update_one): Likewise.
543 2014-06-12 Pedro Alves <pedro@codesourcery.com>
544 Yao Qi <yao@codesourcery.com>
546 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
547 (varobj_get_iterator): Wrap up code for pretty-printer by
548 "#if HAVE_PYTHON" and "#endif".
549 (update_dynamic_varobj_children): Likewise.
551 2014-06-12 Pedro Alves <pedro@codesourcery.com>
552 Yao Qi <yao@codesourcery.com>
554 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
555 gdb_python_initialized is false. Move some code from varobj.c.
556 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
557 * varobj.c: Move "varobj-iter.h" inclusion earlier.
558 (struct varobj_item): Moved to varobj-iter.h".
559 (varobj_clear_saved_item): New function.
560 (update_dynamic_varobj_children): Move python-related code to
562 (free_variable): Call varobj_clear_saved_item and
565 2014-06-12 Pedro Alves <pedro@codesourcery.com>
566 Yao Qi <yao@codesourcery.com>
568 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
569 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
570 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
571 (py-varobj.o): New rule.
572 * python/py-varobj.c: New file.
573 * python/python-internal.h (py_varobj_get_iterator): Declare.
574 * varobj-iter.h: New file.
575 * varobj.c: Include "varobj-iter.h"
576 (struct varobj) <child_iter>: Change its type from "PyObject *"
577 to "struct varobj_iter *".
578 <saved_item>: Likewise.
579 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
580 [HAVE_PYTHON] (varobj_get_iterator): New function.
581 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
582 python-specific code to python/py-varobj.c.
583 (install_visualizer): Call varobj_iter_delete instead of
585 * varobj.h (varobj_ensure_python_env): Declare.
587 2014-06-12 Yao Qi <yao@codesourcery.com>
589 * varobj.c (struct varobj_item): New structure.
590 (create_child_with_value): Update declaration.
591 (varobj_add_child): Replace arguments 'name' and 'value' with
592 'item'. All callers updated.
593 (install_dynamic_child): Likewise.
594 (update_dynamic_varobj_children): Likewise.
595 (varobj_add_child): Likewise.
596 (create_child_with_value): Likewise.
598 2014-06-11 Joel Brobecker <brobecker@adacore.com>
600 * NEWS: Create a new section for the next release branch.
601 Rename the section of the current branch, now that it has
604 2014-06-11 Joel Brobecker <brobecker@adacore.com>
606 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
607 * version.in: Bump version to 7.8.50.DATE-cvs.
609 2014-06-11 Pedro Alves <palves@redhat.com>
612 * ser-mingw.c (net_windows_socket_check_pending): New function.
613 (net_windows_select_thread): Ignore spurious wakeups. Use
614 net_windows_socket_check_pending.
615 (net_windows_wait_handle): Check for pending events with
616 ioctlsocket, through net_windows_socket_check_pending, instead of
617 checking the socket's event.
619 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
621 * python/python-internal.h (gdb_PyObject_GetAttrString)
622 (gdb_PyObject_HasAttrString): New inline function definitions.
623 * py-value.c (get_field_flag): Remove the now unnecessary cast to
624 char * of the second argument to PyObject_GetAttrString.
626 2014-06-10 Joel Brobecker <brobecker@adacore.com>
628 * serial.c (serial_write): Fix index of character to be printed
629 in call to serial_logchar when serial debug traces are enabled.
631 2014-06-10 Joel Brobecker <brobecker@adacore.com>
633 * gdbtypes (resolve_dynamic_range): Add function description.
635 2014-06-09 Pedro Alves <palves@redhat.com>
637 * linux-nat.c (linux_child_follow_fork): Initialize status with
638 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
639 inner block. Only pass the signal to PTRACE_DETACH if in pass
642 2014-06-09 Gary Benson <gbenson@redhat.com>
644 * common/signals.c (gdb_signal_from_host): Reorder to separate
645 the always-available ANSI-standard signals from the signals that
647 (do_gdb_signal_to_host): Likewise.
648 * proc-events.c (signal_table): Likewise.
650 2014-06-08 Hui Zhu <hui@codesourcery.com>
652 * common/linux-ptrace.c (linux_disable_event_reporting): New
654 * common/linux-ptrace.h (linux_disable_event_reporting): New
656 * linux-nat.c (linux_child_follow_fork): Do a single step before
659 2014-06-07 Keith Seitz <keiths@redhat.com>
663 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
664 from symbol_matches_domain in symtab.c. All local callers
665 of symbol_matches_domain updated.
666 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
667 search STRUCT_DOMAIN.
668 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
669 independently. standard_lookup will do that automatically.
670 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
671 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
672 (cp_lookup_symbol_in_namespace): Likewise.
673 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
674 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
675 may return a STRUCT_DOMAIN match.
676 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
677 * cp-support.c: Include language.h.
678 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
680 * psymtab.c (match_partial_symbol): Compare the requested
681 domain with the symbol's domain directly.
682 (lookup_partial_symbol): Likewise.
683 * symtab.c (lookup_symbol_in_language): Explain when/why
684 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
685 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
686 appropriate languages.
687 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
688 and moved to ada-lang.c
689 (lookup_block_symbol): Explain that this function only returns
690 symbol matching the requested DOMAIN.
691 Compare the requested domain with the symbol's domain directly.
692 (iterate_over_symbols): Compare the requested domain with the
693 symbol's domain directly.
694 * symtab.h (symbol_matches_domain): Remove.
696 2014-06-06 Doug Evans <xdje42@gmail.com>
698 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
699 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
700 (gdbscm_guile_version_is_at_least): Declare.
701 (gdbscm_scm_string_to_int): Declare.
702 * guile/guile.c (gdbscm_guile_major_version): New global.
703 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
704 (guile_datadir): New static global.
705 (gdbscm_guile_data_directory): New function.
706 (initialize_scheme_side): Update.
707 (misc_guile_functions): Add guile-data-directory.
708 (initialize_gdb_module): Fetch guile version number.
709 * guile/lib/gdb.scm: Remove call to add-to-load-path.
710 * guile/lib/gdb/init.scm (%initialize!): Ditto.
711 * guile/lib/gdb/boot.scm: Use guile-data-directory.
712 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
714 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
715 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
716 * guile/scm-value.c (gdbscm_value_to_string): Only call
717 scm_port_conversion_strategy if Guile version >= 2.0.6.
719 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
721 * main.c (print_gdb_help): Add -q and --silent.
723 2014-06-06 Gary Benson <gbenson@redhat.com>
725 * common/signals.c: Remove preprocessor conditionals for
726 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
728 * proc-events.c: Likewise.
730 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
732 * symfile.c (symfile_free_objfile): Remove restriction to
734 * symfile-mem.c (symbol_file_add_from_memory): Call
735 add_target_sections_of_objfile.
737 2014-06-05 Ludovic Courtès <ludo@gnu.org>
739 * guile/scm-value.c (gdbscm_history_append_x): Use
740 'vlscm_get_value_smob_arg_unsafe' instead of
741 'vlscm_scm_to_value'.
743 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
746 * utils.c (printchar): Don't escape at all if quoter is NUL.
747 Update function documentation to clarify effect of parameter
749 * remote.c (escape_buffer): Pass '\\' as the quoter to
751 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
753 (mi_solib_unloaded): Same.
755 2014-06-05 Joel Brobecker <brobecker@adacore.com>
757 * development.sh: Delete.
758 * Makefile.in (config.status): Adjust dependency on development.sh.
759 * configure.ac: Adjust development.sh source call.
760 * configure: Regenerate.
762 2014-06-04 Doug Evans <xdje42@gmail.com>
764 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
765 is_scheme_bkpt, spec.
766 (bpscm_make_breakpoint_smob): Initialize new members.
767 (gdbscm_create_breakpoint_x): Split into two ...
768 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
769 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
770 (scheme_function breakpoint_functions): Update.
771 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
772 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
773 register-breakpoint!.
775 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
778 * mem-break.c (z_type_supported): Return zero if
779 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
781 2014-06-04 Tom Tromey <tromey@redhat.com>
783 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
784 value_from_contents_and_address_unresolved.
785 (ada_template_to_fixed_record_type_1): Likewise.
786 (ada_which_variant_applies): Likewise.
787 * value.h (value_from_contents_and_address_unresolved): Declare.
788 * value.c (value_from_contents_and_address_unresolved): New
790 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
791 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
792 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
794 2014-06-04 Tom Tromey <tromey@redhat.com>
796 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
798 2014-06-04 Tom Tromey <tromey@redhat.com>
800 * procfs.c (procfs_attach): Make "args" const.
801 * windows-nat.c (windows_attach): Make "args" const.
802 * nto-procfs.c (procfs_attach): Make "args" const.
803 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
804 * go32-nat.c (go32_attach): Make "args" const.
805 * gnu-nat.c (gnu_attach): Make "args" const.
806 * darwin-nat.c (darwin_attach): Make "args" const.
807 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
808 * linux-nat.c (linux_nat_attach): Make "args" const.
809 * remote.c (extended_remote_attach_1, extended_remote_attach):
811 * target.h (struct target_ops) <to_attach>: Make "args" const.
812 (find_default_attach): Likewise.
813 * utils.c (parse_pid_to_attach): Make "args" const.
814 * utils.h (parse_pid_to_attach): Update.
816 2014-06-04 Tom Tromey <tromey@redhat.com>
818 * target-delegates.c: Rebuild.
819 * target.c (default_thread_address_space): New function.
820 (target_thread_address_space): Simplify.
821 * target.h (struct target_ops) <to_thread_address_space>: Add
824 2014-06-04 Doug Evans <xdje42@gmail.com>
826 * guile/scm-type.c (type_smob): Remove duplicate typedef.
828 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
830 * record-btrace.c: Include event-loop.h and inf-loop.h.
831 (record_btrace_resume_exec_dir)
832 (record_btrace_async_inferior_event_handler)
833 (record_btrace_handle_async_inferior_event): New.
834 (record_btrace_open): Create async event handler.
835 (record_btrace_close): Delete async event handler.
836 (record_btrace_resume): Set record_btrace_resume_exec_dir,
837 Mark async event handler.
838 (record_btrace_execution_direction): New.
839 (init_record_btrace_ops): Initialize to_execution_direction.
841 2014-06-03 Doug Evans <xdje42@gmail.com>
843 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
844 (gdbscm_make_parameter): Ditto.
846 2014-06-03 Doug Evans <dje@google.com>
848 * exec.c (exec_close_1): Call clear_section_table instead of
849 resize_section_table.
850 (clear_section_table): New function.
851 (resize_section_table): Make static. Rename arg num_added to
853 * exec.h (clear_section_table): Declare.
854 (resize_section_table): Delete.
855 * progspace.c (release_program_space): Call clear_section_table
856 instead of resize_section_table.
858 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
860 * NEWS (Python Scripting): Add entry about the new xmethods
863 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
865 * python/py-xmethods.c: New file.
866 * python/py-objfile.c (objfile_object): New field 'xmethods'.
867 (objfpy_dealloc): XDECREF on the new xmethods field.
868 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
870 (objfpy_get_xmethods): New function.
871 (objfile_getset): New entry 'xmethods'.
872 * python/py-progspace.c (pspace_object): New field 'xmethods'.
873 (pspy_dealloc): XDECREF on the new xmethods field.
874 (pspy_new, pspace_to_pspace_object): Initialize xmethods
876 (pspy_get_xmethods): New function.
877 (pspace_getset): New entry 'xmethods'.
878 * python/python-internal.h: Add declarations for new functions.
879 * python/python.c (_initialize_python): Invoke
880 gdbpy_initialize_xmethods.
881 * python/lib/gdb/__init__.py (xmethods): New
883 * python/lib/gdb/xmethod.py: New file.
884 * python/lib/gdb/command/xmethods.py: New file.
886 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
888 * eval.c (evaluate_subexp_standard): Call the xmethod if the
889 best match method returned by find_overload_match is an xmethod.
890 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
891 the best matching operator returned by find_overload_match is an
893 * valops.c: #include "extension.h".
894 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
895 Return void. The list of matching source methods is returned in
896 "fn_list" and a vector of matching debug method workers is
897 returned in "xm_worker_vec". Update all callers.
898 (value_find_oload_method_list): Likewise.
899 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
900 non-NULL, then the index of the best matching method in this
901 vector is returned. Update all callers.
902 (find_overload_match): Include xmethods while performing overload
905 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
907 * defs.h (enum lval_type): New enumerator "lval_xcallable".
908 * extension-priv.h (struct extension_language_ops): Add the
910 * extension.c (new_xmethod_worker, clone_xmethod_worker,
911 get_matching_xmethod_workers, get_xmethod_argtypes,
912 invoke_xmethod, free_xmethod_worker,
913 free_xmethod_worker_vec): New functions.
914 * extension.h: #include "common/vec.h".
915 New function declarations.
916 (struct xmethod_worker): New struct.
917 (VEC (xmethod_worker_ptr)): New vector type.
918 (xmethod_worker_ptr): New typedef.
919 (xmethod_worker_vec): Likewise.
920 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
922 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
923 (struct builtin_type): New field "xmethod".
924 * valarith.c (value_ptradd): Assert that the value argument is not
926 * valops.c (value_must_coerce_to_target): Return 0 for
927 lval_xcallable values.
928 * value.c (struct value): New field XM_WORKER in the field
930 (value_address, value_raw_address): Return 0 for lval_xcallable
932 (set_value_address): Assert that the value is not an
934 (value_free): Free the associated xmethod worker when freeing
935 lval_xcallable values.
936 (set_value_component_location): Assert that the WHOLE value is not
938 (value_of_xmethod, call_xmethod): New functions.
939 * value.h: Declare "struct xmethod_worker".
940 Declare new functions value_of_xmethod, call_xmethod.
942 2014-06-03 Joel Brobecker <brobecker@adacore.com>
943 Pedro Alves <palves@redhat.com>
946 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
947 New function, extracted from software_breakpoint_inserted_here_p.
948 (software_breakpoint_inserted_here_p): Replace factored out code
949 by call to find_non_raw_software_breakpoint_inserted_here.
950 (bp_target_info_copy_insertion_state): New function.
951 (bkpt_insert_location): Handle the case of a single-step
952 breakpoint already inserted at the same address.
953 (bkpt_remove_location): Handle the case of a single-step
954 breakpoint still inserted at the same address.
955 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
956 breakpoint already inserted at the same address.
957 (deprecated_remove_raw_breakpoint): Handle the case of a
958 non-raw breakpoint still inserted at the same address.
959 (find_single_step_breakpoint): New function, extracted from
960 single_step_breakpoint_inserted_here_p.
961 (find_single_step_breakpoint): New function,
962 factored out from single_step_breakpoint_inserted_here_p.
963 (single_step_breakpoint_inserted_here_p): Reimplement.
965 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
967 Pushed by Joel Brobecker <brobecker@adacore.com>
968 * source.c (show_substitute_path_command): Fix display of matching
971 2014-06-03 Gary Benson <gbenson@redhat.com>
973 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
975 2014-06-02 Doug Evans <xdje42@gmail.com>
977 Add parameter support for Guile.
978 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
979 (SUBDIR_GUILE_SRCS): Add scm-param.c.
980 (scm-param.o): New rule.
981 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
982 (gdbscm_misc_error): Declare.
983 (gdbscm_canonicalize_command_name): Declare.
984 (gdbscm_scm_to_host_string): Declare.
985 (gdbscm_scm_from_host_string): Declare.
986 (gdbscm_initialize_parameters): Declare.
987 * guile/guile.c (initialize_gdb_module): Call
988 gdbscm_initialize_parameters.
989 * guile/lib/gdb.scm: Export parameter symbols.
990 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
991 cmdscm_canonicalize_name and made public. All callers updated.
992 * guile/scm-exception.c (gdbscm_misc_error): New function.
993 * guile/scm-param.c: New file.
994 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
995 (gdbscm_scm_to_host_string): New function.
996 (gdbscm_scm_from_host_string): New function.
997 * scm-utils.c (gdbscm_gc_dup_argv): New function.
999 2014-06-02 Doug Evans <xdje42@gmail.com>
1001 Add command support for Guile.
1002 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1003 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1004 (scm-cmd.o): New rule.
1005 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1006 (gdbscm_user_error_p): Declare.
1007 (gdbscm_parse_command_name): Declare.
1008 (gdbscm_valid_command_class_p): Declare.
1009 (gdbscm_initialize_commands): Declare.
1010 * guile/guile.c (initialize_gdb_module): Call
1011 gdbscm_initialize_commands.
1012 * guile/lib/gdb.scm: Export command symbols.
1013 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1014 (throw-user-error): New function.
1015 * guile/scm-cmd.c: New file.
1016 * guile/scm-exception.c (user_error_symbol): New static global.
1017 (gdbscm_user_error_p): New function.
1018 (gdbscm_initialize_exceptions): Set user_error_symbol.
1019 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1021 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1023 * top.c (command_loop): Handle comments here...
1024 (command_line_input): ... not here.
1026 2014-06-02 Doug Evans <xdje42@gmail.com>
1028 Add progspace support for Guile.
1029 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1030 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1031 (scm-progspace.o): New rule.
1032 * guile/guile-internal.h (pspace_smob): New typedef.
1033 (psscm_pspace_smob_pretty_printers): Declare.
1034 (psscm_pspace_smob_from_pspace): Declare.
1035 (psscm_scm_from_pspace): Declare.
1036 * guile/guile.c (initialize_gdb_module): Call
1037 gdbscm_initialize_pspaces.
1038 * guile/lib/gdb.scm: Export progspace symbols.
1039 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1041 (append-pretty-printer!): Ditto.
1042 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1044 * guile/scm-progspace.c: New file.
1046 2014-06-03 Alan Modra <amodra@gmail.com>
1048 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1049 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1051 2014-06-02 Doug Evans <dje@google.com>
1053 Add support for skeletonless type units.
1054 * dwarf2read.c (struct dwarf2_per_objfile): New member
1055 n_allocated_type_units.
1056 (struct dwarf2_per_objfile) <tu_stats>: New member
1057 nr_all_type_units_reallocs.
1058 (create_signatured_type_table_from_index): Initialize
1059 n_allocated_type_units
1060 (create_all_type_units): Ditto.
1061 (add_type_unit): Move up in file. New arg slot.
1062 All callers updated. Increase space for all_type_units more
1064 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1065 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1066 (lookup_dwp_signatured_type): Ditto.
1067 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1068 All callers updated.
1069 (build_type_psymtabs_1): Leave type_unit_groups as
1070 NULL if no TUs present.
1071 (print_tu_stats): New function.
1072 (process_skeletonless_type_unit): New function.
1073 (process_dwo_file_for_skeletonless_type_units): New
1075 (process_skeletonless_type_units): New function.
1076 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1077 Call print tu_stats if debugging enabled.
1079 2014-06-02 Pedro Alves <palves@redhat.com>
1081 * breakpoint.c (build_target_command_list): Don't build a command
1082 list if we have any duplicate location that isn't a dprintf.
1084 2014-06-02 Pedro Alves <palves@redhat.com>
1086 * breakpoint.c (dprintf_breakpoint_hit): New function.
1087 (initialize_breakpoint_ops): Install it as dprintf's
1088 breakpoint_hit method.
1090 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1092 * source.c (substitute_path_rule_matches): Simplify using
1093 filename_ncmp instead of FILENAME_CMP.
1095 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1097 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1099 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1101 * configure.ac: When Guile is available, check for the
1102 availability of 'scm_new_smob'.
1103 * configure, config.h.in: Regenerate.
1104 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1107 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1109 * frame.c (struct frame_info): Add stop_string field.
1110 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1111 (get_prev_frame_always): Old content moved into
1112 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1113 TRY_CATCH, handle MEMORY_ERROR exceptions.
1114 (frame_stop_reason_string): New function definition.
1115 * frame.h (unwind_stop_reason_to_string): Extend comment to
1116 mention frame_stop_reason_string.
1117 (frame_stop_reason_string): New function declaration.
1118 * stack.c (frame_info): Switch to frame_stop_reason_string.
1119 (backtrace_command_1): Switch to frame_stop_reason_string.
1120 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1121 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1122 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1124 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1126 * frame.c (frame_stop_reason_string): Rename to ...
1127 (unwind_stop_reason_to_string): this.
1128 * frame.h (frame_stop_reason_string): Rename to ...
1129 (unwind_stop_reason_to_string): this.
1130 * stack.c (frame_info): Update call to frame_stop_reason_string.
1131 (backtrace_command_1): Likewise.
1132 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1133 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1135 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1137 * frame.c (remove_prev_frame): New function.
1138 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1141 2014-05-29 Pedro Alves <palves@redhat.com>
1143 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1144 and make it const. When a single-step decays to a continue,
1145 clear 'step', not 'hw_step'. Pass whether the caller wanted
1146 to step to user_visible_resume_ptid, not what we ask the
1149 2014-05-29 Pedro Alves <palves@redhat.com>
1151 * infrun.c (process_event_stop_test, handle_step_into_function)
1152 (handle_step_into_function_backward): Adjust.
1153 Don't set the even thread's stop_step and call stop_waiting before
1154 calling end_stepping_range. Instead do that ...
1155 (end_stepping_range): ... here. Take an ecs pointer parameter.
1157 2014-05-29 Pedro Alves <palves@redhat.com>
1159 * infrun.c (stop_stepping): Rename to ...
1160 (stop_waiting): ... this.
1161 (proceed): Update comment.
1162 (process_event_stop_test, handle_inferior_event)
1163 (handle_signal_stop, handle_step_into_function)
1164 (handle_step_into_function_backward): Update.
1166 2014-05-29 Pedro Alves <palves@redhat.com>
1168 * infcall.c (run_inferior_call): Don't check whether the current
1169 thread is running after the proceed call.
1171 2014-05-29 Pedro Alves <palves@redhat.com>
1172 Tom Tromey <tromey@redhat.com>
1174 * NEWS: Mention "maint set target-async", "set mi-async", and that
1175 background execution commands are now always available.
1176 * target.h (target_async_permitted): Update comment.
1177 * target.c (target_async_permitted, target_async_permitted_1):
1179 (set_target_async_command): Rename to ...
1180 (maint_set_target_async_command): ... this.
1181 (show_target_async_command): Rename to ...
1182 (maint_show_target_async_command): ... this.
1183 (_initialize_target): Adjust.
1184 * infcmd.c (prepare_execution_command): Make extern.
1185 * inferior.h (prepare_execution_command): Declare.
1186 * infrun.c (set_observer_mode): Leave target async alone.
1187 * mi/mi-interp.c (mi_interpreter_init): Install
1188 mi_on_sync_execution_done as sync_execution_done observer.
1189 (mi_on_sync_execution_done): New function.
1190 (mi_execute_command_input_handler): Don't print the prompt if we
1191 just started a synchronous command with an async target.
1192 (mi_on_resume): Check sync_execution before printing prompt.
1193 * mi/mi-main.h (mi_async_p): Declare.
1194 * mi/mi-main.c: Include gdbcmd.h.
1195 (mi_async_p): New function.
1196 (mi_async, mi_async_1): New globals.
1197 (set_mi_async_command, show_mi_async_command, mi_async): New
1199 (exec_continue): Call prepare_execution_command.
1200 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1201 (mi_execute_async_cli_command): Use mi_async_p.
1202 (_initialize_mi_main): Install "set mi-async". Make
1203 "target-async" a deprecated alias.
1205 2014-05-29 Pedro Alves <palves@redhat.com>
1207 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1208 (_initialize_cli_interp): Adjust.
1209 * event-loop.c: Include "observer.h".
1210 (start_event_loop): Notify 'command_error' observers instead of
1211 calling display_gdb_prompt. Remove FIXME comment.
1212 * event-top.c (display_gdb_prompt): Remove call into the
1214 * inf-loop.c: Include "observer.h".
1215 (inferior_event_handler): Notify 'command_error' observers instead
1216 of calling display_gdb_prompt.
1217 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1218 observers instead of calling display_gdb_prompt.
1219 * interps.c (interp_set): Don't call display_gdb_prompt.
1220 (current_interp_display_prompt_p): Delete.
1221 * interps.h (interp_prompt_p): Delete declaration.
1222 (interp_prompt_p_ftype): Delete.
1223 (struct interp_procs) <prompt_proc_p>: Delete field.
1224 (current_interp_display_prompt_p): Delete declaration.
1225 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1226 (_initialize_mi_interp): Adjust.
1227 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1228 'command_error' observers.
1229 (tui_on_sync_execution_done, tui_on_command_error): New
1231 (tui_display_prompt_p): Delete.
1232 (_initialize_tui_interp): Adjust.
1234 2014-05-29 Pedro Alves <palves@redhat.com>
1237 * cli/cli-interp.c: Include infrun.h and observer.h.
1238 (cli_uiout, cli_interp): New globals.
1239 (cli_on_signal_received, cli_on_end_stepping_range)
1240 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1242 (cli_interpreter_init): Install them as 'end_stepping_range',
1243 'signal_received' 'signal_exited', 'exited' and 'no_history'
1245 (_initialize_cli_interp): Remove cli_interp local.
1246 * infrun.c (handle_inferior_event): Call the several stop reason
1247 observers instead of printing the stop reason directly.
1248 (end_stepping_range): New function.
1249 (print_end_stepping_range_reason, print_signal_exited_reason)
1250 (print_exited_reason, print_signal_received_reason)
1251 (print_no_history_reason): Make static, and add an uiout
1252 parameter. Print to that instead of to CURRENT_UIOUT.
1253 * infrun.h (print_end_stepping_range_reason)
1254 (print_signal_exited_reason, print_exited_reason)
1255 (print_signal_received_reason print_no_history_reason): New
1257 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1259 <cli_uiout>: New field.
1260 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1261 uiout for CLI output. Install 'signal_received',
1262 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1264 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1265 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1266 (mi_on_no_history): New functions.
1267 (ui_out_free_cleanup): Delete function.
1268 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1269 instead use the one already stored in the MI interpreter data.
1270 (mi_ui_out): Adjust.
1271 * tui/tui-interp.c: Include infrun.h and observer.h.
1272 (tui_interp): New global.
1273 (tui_on_signal_received, tui_on_end_stepping_range)
1274 (tui_on_signal_exited, tui_on_exited)
1275 (tui_on_no_history): New functions.
1276 (tui_init): Install them as 'end_stepping_range',
1277 'signal_received' 'signal_exited', 'exited' and 'no_history'
1279 (_initialize_tui_interp): Delete tui_interp local.
1281 2014-05-29 Pedro Alves <palves@redhat.com>
1284 * linux-nat.c (linux_nat_resume_callback): Rename the second
1285 parameter to 'except'. Skip LP if it points to EXCEPT.
1286 (linux_nat_resume): Don't mark the event lwp as not stopped
1287 before resuming sibling lwps. Instead ask
1288 linux_nat_resume_callback to skip the event lwp. Mark it as not
1289 stopped after actually resuming it.
1290 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1292 (wait_lwp): Mark the lwp as stopped here.
1293 (stop_wait_callback): Mark the lwp as not stopped right after
1294 resuming it. Don't mark lwps as stopped here.
1295 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1296 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1298 2014-05-29 Pedro Alves <palves@redhat.com>
1301 * infrun.c (resume): Determine how much to resume depending on
1302 whether the caller wanted a step, not whether we can hardware step
1303 the target. Mark all threads that we intend to run as running,
1304 unless we're calling an inferior function.
1305 (normal_stop): If the thread is running an infcall, don't finish
1307 * target.c (target_resume): Don't mark threads as running here.
1309 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1311 * serial.c (_initialize_serial): Remove support for
1312 the "set remotebaud" and "show remotebaud" commands.
1313 * NEWS: Add entry documenting the removal of that command.
1315 2014-05-28 Yao Qi <yao@codesourcery.com>
1317 * charset.c: Fix typo in comments.
1319 2014-05-27 Gary Benson <gbenson@redhat.com>
1321 * utils.c (internal_vproblem): Prompt for a bug report.
1323 2014-05-26 Andy Wingo <wingo@igalia.com>
1325 * guile/scm-arch.c (arscm_mark_arch_smob):
1326 * guile/scm-block.c (bkscm_mark_block_smob)
1327 (bkscm_mark_block_syms_progress_smob):
1328 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1329 * guile/scm-exception.c (exscm_mark_exception_smob):
1330 * guile/scm-frame.c (frscm_mark_frame_smob):
1331 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1332 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1333 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1334 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1335 (ppscm_mark_pretty_printer_worker_smob):
1336 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1337 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1338 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1339 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1341 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1344 2014-05-26 Andy Wingo <wingo@igalia.com>
1345 Doug Evans <xdje42@gmail.com>
1347 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1348 empty_base_class. All uses updated.
1349 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1350 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1352 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1353 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1354 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1355 (gdbscm_gsmob_has_property_p, add_property_name)
1356 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1357 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1358 (gdb-object-has-property?, gdb-object-properties): Remove.
1359 (gdb-object-kind): Renamed from gsmob-kind.
1361 2014-05-26 Andy Wingo <wingo@igalia.com>
1363 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1364 * configure: Regenerate.
1366 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1368 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1370 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1372 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1373 (replay_memory_access_read_only, replay_memory_access_read_write)
1374 (replay_memory_access_types, replay_memory_access)
1375 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1376 (cmd_set_record_btrace, cmd_show_record_btrace)
1377 (cmd_show_replay_memory_access): New.
1378 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1379 (record_btrace_remove_breakpoint): Replace
1380 record_btrace_allow_memory_access with replay_memory_access.
1381 (_initialize_record_btrace): Add commands.
1382 * NEWS: Announce it.
1384 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1386 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1388 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1390 * MAINTAINERS (Write After Approval): Move self back from
1393 2014-05-22 Pedro Alves <palves@redhat.com>
1395 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1396 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1397 (disable_randomization, enum exec_direction_kind)
1398 (execution_direction, stop_registers, start_remote)
1399 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1400 (wait_for_inferior, normal_stop, get_last_target_status)
1401 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1402 (insert_step_resume_breakpoint_at_sal)
1403 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1404 (set_step_info, print_stop_event, signal_stop_state)
1405 (signal_print_state, signal_pass_state, signal_stop_update)
1406 (signal_print_update, signal_pass_update)
1407 (update_signals_program_target, clear_exit_convenience_vars)
1408 (displaced_step_dump_bytes, update_observer_mode)
1409 (signal_catch_update, gdb_signal_from_command): Move
1411 * infrun.h: ... to this new file.
1412 * amd64-tdep.c: Include infrun.h.
1413 * annotate.c: Include infrun.h.
1414 * arch-utils.c: Include infrun.h.
1415 * arm-linux-tdep.c: Include infrun.h.
1416 * arm-tdep.c: Include infrun.h.
1417 * break-catch-sig.c: Include infrun.h.
1418 * breakpoint.c: Include infrun.h.
1419 * common/agent.c: Include infrun.h instead of inferior.h.
1420 * corelow.c: Include infrun.h.
1421 * event-top.c: Include infrun.h.
1422 * go32-nat.c: Include infrun.h.
1423 * i386-tdep.c: Include infrun.h.
1424 * inf-loop.c: Include infrun.h.
1425 * infcall.c: Include infrun.h.
1426 * infcmd.c: Include infrun.h.
1427 * infrun.c: Include infrun.h.
1428 * linux-fork.c: Include infrun.h.
1429 * linux-nat.c: Include infrun.h.
1430 * linux-thread-db.c: Include infrun.h.
1431 * monitor.c: Include infrun.h.
1432 * nto-tdep.c: Include infrun.h.
1433 * procfs.c: Include infrun.h.
1434 * record-btrace.c: Include infrun.h.
1435 * record-full.c: Include infrun.h.
1436 * remote-m32r-sdi.c: Include infrun.h.
1437 * remote-mips.c: Include infrun.h.
1438 * remote-notif.c: Include infrun.h.
1439 * remote-sim.c: Include infrun.h.
1440 * remote.c: Include infrun.h.
1441 * reverse.c: Include infrun.h.
1442 * rs6000-tdep.c: Include infrun.h.
1443 * s390-linux-tdep.c: Include infrun.h.
1444 * solib-irix.c: Include infrun.h.
1445 * solib-osf.c: Include infrun.h.
1446 * solib-svr4.c: Include infrun.h.
1447 * target.c: Include infrun.h.
1448 * top.c: Include infrun.h.
1449 * windows-nat.c: Include infrun.h.
1450 * mi/mi-interp.c: Include infrun.h.
1451 * mi/mi-main.c: Include infrun.h.
1452 * python/py-threadevent.c: Include infrun.h.
1454 2014-05-22 Pedro Alves <palves@redhat.com>
1456 * infrun.c (handle_inferior_event): Store the exit code for
1457 --return-child-result here, instead of ...
1458 (print_exited_reason): ... here.
1460 2014-05-21 Pedro Alves <palves@redhat.com>
1463 * gdbthread.h (struct thread_control_state): New field
1465 * infrun.c (follow_fork): Copy the new thread control field to the
1467 (clear_proceed_status_thread): Clear the new thread control field.
1468 (proceed): Set the new thread control field.
1469 * interps.h (command_interp): Declare.
1470 * interps.c (command_interpreter): New global.
1471 (command_interp): New function.
1472 (interp_exec): Set `command_interpreter' while here.
1473 * cli-out.c (cli_uiout_dtor): New function.
1474 (cli_ui_out_impl): Install it.
1475 * mi/mi-interp.c: Include cli-out.h.
1476 (mi_cmd_interpreter_exec): Add comment.
1477 (restore_current_uiout_cleanup): New function.
1478 (ui_out_free_cleanup): New function.
1479 (mi_on_normal_stop): If finishing an execution command started by
1480 a CLI command, or any kind of breakpoint-like event triggered,
1481 print the stop event to the output (CLI) stream.
1482 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1484 2014-05-21 Pedro Alves <palves@redhat.com>
1486 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1487 current source line having changed.
1488 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1489 * infrun.c (normal_stop): Adjust call to
1490 set_current_sal_from_frame.
1491 * source.c (clear_lines_listed_range): New function.
1492 (set_current_source_symtab_and_line, identify_source_line): Clear
1493 the lines listed range.
1494 (line_info): Handle the first "info line" after the current source
1495 line having changed.
1496 * stack.c (print_stack_frame): Remove center handling.
1497 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1500 2014-05-21 Pedro Alves <palves@redhat.com>
1502 * inf-child.c (inf_child_mourn_inferior): New function.
1503 * inf-child.h (inf_child_mourn_inferior): New declaration.
1504 * darwin-nat.c (darwin_mourn_inferior): Use
1505 inf_child_mourn_inferior.
1506 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1507 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1508 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1509 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1510 * windows-nat.c (windows_mourn_inferior): Likewise.
1512 2014-05-21 Doug Evans <xdje42@gmail.com>
1514 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1516 2014-05-21 Doug Evans <xdje42@gmail.com>
1518 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1519 (gdbscm_out_of_range_error): Ditto.
1520 (gdbscm_memory_error): Ditto.
1521 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1522 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1523 (gdbscm_out_of_range_error): Update.
1524 (gdbscm_memory_error): Update.
1525 (gdbscm_scm_to_target_string_unsafe): Delete.
1527 2014-05-21 Pedro Alves <palves@redhat.com>
1529 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1531 (inf_child_open_target): New function.
1532 (inf_child_open): Use inf_child_open_target to push the target
1533 instead of erroring out.
1534 (inf_child_disconnect, inf_child_close)
1535 (inf_child_maybe_unpush_target): New functions.
1536 (inf_child_target): Install inf_child_disconnect and
1537 inf_child_close. Store a pointer to the returned object.
1538 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1540 * target.c (auto_connect_native_target): New global.
1541 (show_default_run_target): New function.
1542 (find_default_run_target): Return NULL if automatically connecting
1543 to the native target is disabled.
1544 (_initialize_target): Install set/show auto-connect-native-target.
1545 * NEWS: Mention "set auto-connect-native-target", and "target
1547 * linux-nat.c (super_close): New global.
1548 (linux_nat_close): Call super_close.
1549 (linux_nat_add_target): Store a pointer to the base class's
1551 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1552 inf_child_maybe_unpush.
1553 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1555 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1556 the inferior. Use inf_child_maybe_unpush_target.
1557 (inf_ttrace_attach): Don't push the target if it is already
1559 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1560 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1561 after mourning the inferior. Use inf_child_maybe_unpush_target.
1562 (darwin_attach_pid): Don't push the target if it is already
1564 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1565 mourning the inferior. Use inf_child_maybe_unpush_target.
1566 (gnu_detach): Use inf_child_maybe_unpush_target.
1567 * go32-nat.c (go32_create_inferior): Don't push the target if it
1569 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1570 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1571 (procfs_open): Rename to ...
1572 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1573 comments. Can target_preopen before changing node. Call
1574 inf_child_open_target to push the target explicitly.
1575 (procfs_attach): Don't push the target if it is already pushed.
1576 (procfs_detach): Use inf_child_maybe_unpush_target.
1577 (procfs_create_inferior): Don't push the target if it is already
1579 (nto_native_ops): New global.
1580 (procfs_open): Reimplement.
1581 (procfs_native_open): New function.
1582 (init_procfs_targets): Install procfs_native_open as to_open of
1583 "target native". Store a pointer to the "native" target in
1585 * procfs.c (procfs_attach): Don't push the target if it is already
1587 (procfs_detach): Use inf_child_maybe_unpush_target.
1588 (procfs_mourn_inferior): Only unpush the target after mourning the
1589 inferior. Use inf_child_maybe_unpush_target.
1590 (procfs_init_inferior): Don't push the target if it is already
1592 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1593 if it is already pushed.
1595 2014-05-21 Pedro Alves <palves@redhat.com>
1597 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1598 and "procfs" targets are now called "native" instead.
1600 2014-05-21 Pedro Alves <palves@redhat.com>
1602 * go32-nat.c (go32_open): Delete.
1603 (go32_target): Don't override the to_open method.
1605 2014-05-21 Pedro Alves <palves@redhat.com>
1607 * nto-procfs.c (procfs_can_run): New function.
1608 (nto_procfs_ops): New global.
1609 (init_procfs_targets): New, based on procfs_target. Install
1610 "target native" in addition to "target procfs".
1611 (_initialize_procfs): Call init_procfs_targets instead of adding
1614 2014-05-21 Pedro Alves <palves@redhat.com>
1616 * windows-nat.c (windows_target): Don't override to_shortname,
1617 to_longname or to_doc.
1619 2014-05-21 Pedro Alves <palves@redhat.com>
1621 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1624 2014-05-21 Pedro Alves <palves@redhat.com>
1626 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1627 to_shortname, to_longname or to_doc.
1629 2014-05-21 Pedro Alves <palves@redhat.com>
1631 * go32-nat.c (go32_target): Don't override to_shortname,
1632 to_longname or to_doc.
1634 2014-05-21 Pedro Alves <palves@redhat.com>
1636 * inf-child.c (inf_child_open): Remove mention of "child".
1637 (inf_child_target): Rename target to "native" instead of "child".
1639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641 * Makefile.in (SFILES): Delete "regset.c".
1642 (COMMON_OBS): Delete "regset.o".
1644 * regset.h (regset_alloc): Delete prototype.
1646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1648 * sparc-linux-tdep.c (sparc32_linux_gregset)
1649 (sparc32_linux_fpregset): New static regset structures.
1650 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1651 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1653 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1654 (sparc64_linux_fpregset): New static regset structures.
1655 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1656 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1657 New static regset structures.
1658 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1659 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1660 New static regset structures.
1661 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1662 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1663 New static regset structures.
1664 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1665 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1666 New static regset structures.
1667 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1669 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1671 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1672 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1673 register maps ("regmaps") from "*regset" to "*regmap". Do this
1674 for all regmap types and variables.
1675 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1676 (sparc32_linux_supply_core_gregset)
1677 (sparc32_linux_collect_core_gregset)
1678 (sparc32_linux_supply_core_fpregset)
1679 (sparc32_linux_collect_core_fpregset): Likewise.
1680 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1681 (sparc_gregmap, sparc_fpregmap): ... these.
1682 (sparc_supply_gregset, sparc_collect_gregset)
1683 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1684 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1685 (_initialize_sparc_nat): Rename regmaps.
1686 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1687 (sparc_gregmap, sparc_fpregmap): ... these.
1688 (sparc_supply_gregset, sparc_collect_gregset)
1689 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1690 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1692 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1693 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1695 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1697 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1698 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1699 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1701 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1702 (sparc32_bsd_fpregset): Rename to...
1703 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1704 (sparc32_bsd_fpregmap): ... these.
1705 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1706 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1707 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1708 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1709 (struct sparc_gregmap, struct sparc_fpregmap)
1710 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1711 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1712 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1713 (sparc32_supply_regset, sparc32_collect_gregset)
1714 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1716 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1717 (sparc64_linux_ptrace_gregmap): ... this.
1718 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1719 (_initialize_sparc64_linux_nat): Rename regmaps.
1720 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1721 (sparc64_linux_core_gregmap): ... this.
1722 (sparc64_linux_supply_core_gregset)
1723 (sparc64_linux_collect_core_gregset)
1724 (sparc64_linux_supply_core_fpregset)
1725 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1726 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1727 (sparc64_sol2_fpregset): Rename to...
1728 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1729 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1730 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1732 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1733 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1734 (sparc64_bsd_fpregset): Rename to...
1735 (struct sparc_gregmap, sparc64_sol2_gregmap)
1736 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1737 (sparc64_bsd_fpregmap): ... these.
1738 (sparc64_supply_gregset, sparc64_collect_gregset)
1739 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1741 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1742 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1743 (sparc64fbsd_gregmap): ... this.
1744 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1745 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1747 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1748 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1749 (sparc64nbsd_collect_fpregset): Likewise.
1750 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1751 (sparc64nbsd_gregmap): ... this.
1752 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1754 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1755 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1756 (sparc64obsd_gregmap): ... this.
1757 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1759 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1760 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1761 (sparc32nbsd_gregmap): ... this.
1762 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1765 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1767 * score-tdep.c (score7_linux_gregset): New static regset
1769 (score7_linux_regset_from_core_section): Remove dynamic regset
1771 (score_gdbarch_init): Drop allocation of tdep structure.
1772 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1774 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1776 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1778 (am33_regset_from_core_section): Remove dynamic regset
1781 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1783 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1784 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1786 (mips_linux_regset_from_core_section): Remove dynamic regset
1788 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1789 'gregset64', 'fpregset', and 'fpregset64'.
1790 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1791 deleted tdep fields.
1793 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1795 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1797 (amd64_regset_from_core_section): Remove dynamic regset
1799 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1801 (amd64obsd_regset_from_core_section): Remove dynamic regset
1803 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1805 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1806 x86-common regset supply function.
1807 * i386-tdep.c (i386_collect_gregset): Make static.
1808 (i386_gregset): New global regset structure.
1809 (i386_fpregset, i386_xstateregset): New static regset structures.
1810 (i386_regset_from_core_section): Remove dynamic regset
1812 (i386_gdbarch_init): Remove initialization of tdep fields
1813 'gregset', 'fpregset', and 'xstateregset'.
1814 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1815 'fpregset', and 'xstateregset'.
1816 (i386_collect_gregset): Remove prototype.
1817 (i386_gregset): New declaration.
1818 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1820 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1823 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1825 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1826 (arm_linux_vfpregset): New static regset structures.
1827 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1829 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1830 and 'vfpregset' fields.
1832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1834 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1835 (aarch64_linux_fpregset): New static regset structures.
1836 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1837 of regset structures.
1838 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1841 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1843 * regset.h (struct regset): Remove gdbarch field.
1844 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1845 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1846 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1848 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1849 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1850 (ppc32_linux_vsxregset): Likewise.
1851 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1852 via the regcache instead of the regset.
1853 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1854 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1855 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1856 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1861 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1862 Constify structures.
1863 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1864 (alphanbsd_aout_gregset): Likewise.
1865 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1866 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1868 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1869 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1871 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1872 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1873 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1874 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1875 * m88k-tdep.c (m88k_gregset): Likewise.
1876 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1877 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1878 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1879 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1880 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1881 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1882 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1883 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1884 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1886 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1887 * sh-tdep.h (sh_corefile_gregset): Likewise.
1888 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1889 * vax-tdep.c (vax_gregset): Likewise.
1891 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1893 Fix TLS access for -static -pthread.
1894 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1895 (try_thread_db_load_1): Initialize it.
1896 (thread_db_get_thread_local_address): Call it if LM is zero.
1897 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1898 * target.h (struct target_ops) (to_get_thread_local_address): Add
1899 load_module_addr comment.
1901 2014-05-21 Pedro Alves <palves@redhat.com>
1903 * dcache.c (dcache_read_memory_partial): If reading the cache line
1904 fails, fallback to reading just the memory the caller wanted.
1906 2014-05-20 Doug Evans <dje@google.com>
1908 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1909 instead of get_current_arch.
1911 2014-05-20 Pedro Alves <palves@redhat.com>
1913 * NEWS: Mention that compare-sections now works with all targets.
1915 * remote.c (PACKET_qCRC): New enum value.
1916 (remote_verify_memory): Don't send qCRC if the target has no
1917 execution. Use packet_support/packet_ok. If the target doesn't
1918 support the qCRC packet, fallback to a deep memory copy.
1919 (compare_sections_command): Say "target image" instead of "remote
1921 (_initialize_remote): Add PACKET_qCRC to the list of config
1922 packets that have no associated command. Extend comment.
1923 * target.c (simple_verify_memory, default_verify_memory): New
1925 * target.h (struct target_ops) <to_verify_memory>: Default to
1926 default_verify_memory.
1927 (simple_verify_memory): New declaration.
1928 * target-delegates.c: Regenerate.
1930 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1932 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1934 2014-05-20 Hui Zhu <hui@codesourcery.com>
1935 Yao Qi <yao@codesourcery.com>
1938 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1939 and change address of sp and pc.
1941 2014-05-19 Tom Tromey <tromey@redhat.com>
1943 * gdbtypes.c (rank_function): Use XNEWVEC.
1944 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1946 2014-05-19 Doug Evans <dje@google.com>
1948 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1949 build_type_unit_groups and moved closer to only caller. Remove
1950 arguments. All references updated. Remove outdated .gdb_index
1952 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1953 build_type_psymtabs_1.
1955 2014-05-19 Doug Evans <dje@google.com>
1957 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1958 n_type_unit_groups, all_type_unit_groups. All uses removed.
1959 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1960 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1961 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1962 (add_type_unit_group_to_table): Delete.
1964 2014-05-19 Doug Evans <dje@google.com>
1966 * eval.c (evaluate_subexp_standard): Add some comments.
1968 2014-05-17 Doug Evans <xdje42@gmail.com>
1970 * progspace.c (remove_program_space): Delete, unused.
1971 * progspace.h (remove_program_space): Ditto.
1973 2014-05-17 Doug Evans <xdje42@gmail.com>
1975 * inferior.c (prune_inferiors): Fix comment.
1976 (remove_inferior_command): Call prune_program_spaces.
1978 2014-05-16 Doug Evans <dje@google.com>
1980 New command line option -D.
1982 * main.c (set_gdb_data_directory): New function.
1983 (captured_main): Recognize -D. Flag error for --data-directory "".
1984 Call set_gdb_data_directory.
1985 (print_gdb_help): Print --data-directory, -D.
1986 * main.h (set_gdb_data_directory): Declare.
1987 * top.c (staged_gdb_datadir): New static global.
1988 (set_gdb_datadir): Call set_gdb_data_directory
1989 (show_gdb_datadir): New function.
1990 (init_main): Update init of data-directory parameter.
1992 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1994 Import the "dirfd" gnulib module.
1995 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1996 * gnulib/aclocal.m4: Update.
1997 * gnulib/config.in: Update.
1998 * gnulib/configure: Update.
1999 * gnulib/import/Makefile.am: Update.
2000 * gnulib/import/Makefile.in: Update.
2001 * gnulib/import/dirfd.c: New.
2002 * gnulib/import/m4/dirfd.m4: New.
2003 * gnulib/import/m4/gnulib-cache.m4: Update.
2004 * gnulib/import/m4/gnulib-comp.m4: Update.
2006 2014-05-16 Pierre Muller <muller@sourceware.org>
2007 Yao Qi <yao@codesourcery.com>
2009 * valprint.c (print_wchar): Move the code on checking whether
2010 W is a printable wide char to the default branch of switch
2011 statement below. Call wchar_printable instead of gdb_iswprint.
2013 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2015 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2016 ldr.w and ldrd instructions.
2018 2014-05-15 Doug Evans <dje@google.com>
2020 * dwarf2read.c (read_structure_type): Delete outdated comments.
2022 2014-05-14 Tom Tromey <tromey@redhat.com>
2024 * macrocmd.c (print_macro_definition): Reindent.
2026 2014-05-13 Doug Evans <xdje42@gmail.com>
2028 * python/py-cmd.c (cmdpy_completer): Add comment.
2029 (completers): Make const.
2031 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2033 * infrun.c (resume): Remove should_resume (unused). Move up
2034 declaration of resume_ptid.
2036 2014-05-13 Tom Tromey <tromey@redhat.com>
2038 * language.h (unop_type_check): Remove.
2039 (binop_type_check): Don't declare.
2041 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2043 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2044 call to regcache_raw_collect.
2046 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2048 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2049 mi_console->quote as the quoting character.
2051 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2053 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2055 2014-04-29 Tom Tromey <tromey@redhat.com>
2057 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2058 "show debug varobj".
2060 2014-05-07 Kyle McMartin <kyle@redhat.com>
2062 Pushed by Joel Brobecker <brobecker@adacore.com>.
2063 * aarch64-tdep.c (aarch64_software_single_step): New function.
2064 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2065 with aarch64_software_single_step.
2067 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2071 2014-05-05 Keith Seitz <keiths@redhat.com>
2073 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2074 variable or history value is successfully parsed.
2076 2014-05-05 Yao Qi <yao@codesourcery.com>
2077 Pedro Alves <palves@redhat.com>
2079 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2080 address of blocks that intersects the requested range. Trim
2081 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2083 * ctf.c (ctf_xfer_partial): Likewise.
2085 2014-05-05 Yao Qi <yao@codesourcery.com>
2087 * printcmd.c (display_command): Remove the check to
2088 target_has_execution.
2090 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2092 * ppcobsd-nat.c: Include "obsd-nat.h".
2093 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2095 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2097 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2099 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2100 and 16-bit signed and unsigned arguments. Update comment.
2101 (stap_parse_probe_arguments): Extend code to handle such
2102 arguments. Use warning instead of complaint to notify about
2103 unrecognized bitness.
2105 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2107 PR breakpoints/16889
2108 * stap-probe.c (stap_parse_probe_arguments): Simplify
2109 check for non-prefixed probes (i.e., probes whose
2110 arguments do not start with "N@"). Always set the
2111 argument type to a sane value.
2113 2014-05-01 David Taylor <dtaylor@emc.com>
2115 * remote.c (compare_sections_command): Add -r option to compare
2116 all loadable read-only sections.
2118 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2120 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2121 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2123 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2124 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2125 Remove unused CORE_ADDR argument. Update all callers.
2127 2014-04-29 Pedro Alves <palves@redhat.com>
2129 * remote.c (struct packet_config) <detect>: Extend comment.
2130 (add_packet_config_cmd): Don't set the config's detect or support
2132 (init_all_packet_configs): Also initialize the config's 'detect'
2134 (reset_all_packet_configs_support): New function.
2135 (remote_open_1): Call reset_all_packet_configs_support instead of
2136 init_all_packet_configs.
2137 (_initialize_remote): Initialize all packet configs. Assert that
2138 all packets have an associated command, except a few known
2141 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2143 * dwarf2read.c (read_subrange_type): Handle dynamic
2144 DW_AT_lower_bound attributes.
2146 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2148 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2149 dynamic bounds before computing its upper bound.
2150 (ada_discrete_type_low_bound): Same as above with the lower bound.
2152 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2154 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2155 range types. Adjust the array handling implementation to
2156 take advantage of this change.
2157 (resolve_dynamic_range): New function, mostly extracted from
2158 resolve_dynamic_bounds.
2159 (resolve_dynamic_array): New function, mostly extracted from
2160 resolve_dynamic_bounds.
2161 (resolve_dynamic_bounds): Delete.
2162 (resolve_dynamic_type): Reimplement. Add handling of
2163 TYPE_CODE_RANGE types.
2165 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2167 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2168 handling of parallel ___XA types.
2170 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2172 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2173 unnecessary second call to static_unwrap_type.
2175 2014-04-27 Hui Zhu <hui@codesourcery.com>
2177 * stack.c (print_frame_info): Call do_gdb_disassembly with
2178 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2180 2014-04-26 Doug Evans <xdje42@gmail.com>
2182 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2184 2014-04-25 Pedro Alves <palves@redhat.com>
2187 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2188 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2189 and newline from built string.
2190 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2191 (linux_ptrace_attach_fail_reason): ... this.
2192 * linux-nat.c (linux_nat_attach): Adjust to use
2193 linux_ptrace_attach_fail_reason.
2195 2014-04-25 Pedro Alves <palves@redhat.com>
2197 * remote.c (struct remote_state): Remove multi_process_aware,
2198 non_stop_aware, cond_tracepoints, cond_breakpoints,
2199 breakpoint_commands, fast_tracepoints, static_tracepoints,
2200 install_in_trace, disconnected_tracing,
2201 enable_disable_tracepoints, string_tracing, and
2202 augmented_libraries_svr4_read fields.
2203 (remote_multi_process_p): Move further below in the file.
2204 (struct packet_config): Add comments.
2205 (update_packet_config): Delete function.
2206 (show_packet_config_cmd): Use packet_config_support.
2207 (add_packet_config_cmd): Use NULL as set callback.
2208 (packet_ok): "set remote foo-packet"-style commands no longer
2209 change config->supported -- adjust.
2210 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2211 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2212 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2213 (PACKET_QNonStop, PACKET_multiprocess_feature)
2214 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2215 (PACKET_DisconnectedTracing_feature)
2216 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2217 (set_remote_protocol_packet_cmd): Delete function.
2218 (packet_config_support, packet_support): New functions.
2219 (set_remote_protocol_Z_packet_cmd): Don't call
2220 update_packet_config.
2221 (remote_query_attached, remote_pass_signals)
2222 (remote_program_signals, remote_threads_info)
2223 (remote_threads_extra_info, remote_start_remote): Use
2225 (remote_start_remote): Use packet_config_support and
2227 (init_all_packet_configs): Set all packets to unknown support,
2228 instead of calling update_packet_config.
2229 (remote_check_symbols): Use packet_support.
2230 (remote_supported_packet): Unconditionally set the packet config's
2232 (remote_multi_process_feature, remote_non_stop_feature)
2233 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2234 (remote_breakpoint_commands_feature)
2235 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2236 (remote_install_in_trace_feature)
2237 (remote_disconnected_tracing_feature)
2238 (remote_enable_disable_tracepoint_feature)
2239 (remote_string_tracing_feature)
2240 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2241 (remote_protocol_features): Adjust to use remote_supported_packet
2242 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2243 "ConditionalTracepoints", "ConditionalBreakpoints",
2244 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2245 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2246 "EnableDisableTracepoints", and "tracenz".
2247 (remote_query_supported): Use packet_support.
2248 (remote_open_1): Adjust.
2249 (extended_remote_attach_1): Use packet_support. Switch on the
2250 result of packet_ok instead of checking whether the packet ended
2252 (remote_vcont_resume): Use packet_support.
2253 (remote_resume, remote_stop_ns, fetch_register_using_p)
2254 (remote_prepare_to_store, store_register_using_P)
2255 (check_binary_download, remote_write_bytes): Use packet_support.
2256 (remote_vkill): Use packet_support. Switch on the result of
2257 packet_ok instead of checking whether the packet ended up
2259 (extended_remote_supports_disable_randomization): Use
2261 (extended_remote_run): Switch on the result of packet_ok instead
2262 of checking whether the packet ended up disabled.
2263 (remote_insert_breakpoint, remote_remove_breakpoint)
2264 (remote_insert_watchpoint, remote_remove_watchpoint)
2265 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2267 (remote_search_memory): Use packet_config_support.
2268 (remote_get_thread_local_address, remote_get_tib_address)
2269 (remote_hostio_send_command, remote_can_execute_reverse): Use
2271 (remote_supports_cond_tracepoints)
2272 (remote_supports_cond_breakpoints)
2273 (remote_supports_fast_tracepoints)
2274 (remote_supports_static_tracepoints)
2275 (remote_supports_install_in_trace)
2276 (remote_supports_enable_disable_tracepoint)
2277 (remote_supports_string_tracing)
2278 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2279 the packet config says the feature is enabled or disabled.
2280 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2281 (remote_get_trace_status): Use packet_support.
2282 (remote_set_disconnected_tracing): Adjust to check whether the
2283 feature is enabled with packet_support.
2284 (remote_set_trace_buffer_size, remote_use_agent)
2285 (remote_can_use_agent, remote_supports_btrace): Use
2287 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2288 Use packet_config_support.
2289 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2290 the packet config says the feature is enabled or disabled.
2291 (set_range_stepping): Use packet_support.
2293 2014-04-25 Tom Tromey <tromey@redhat.com>
2295 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2298 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2300 * NEWS: Mention support for C99 variable length arrays.
2302 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2304 * ada-lang.c (standard_exc): Expand introductory comment.
2306 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2307 Walfred Tedeschi <walfred.tedeschi@intel.com>
2309 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2311 (amd64_linux_read_description): Add code to handle AVX512 xstate
2312 mask and return respective tdesc.
2313 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2314 and features/i386/x32-avx512-linux.c.
2315 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2316 (amd64_linux_core_read_description): Add code to handle AVX512
2317 xstate mask and return respective tdesc.
2318 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2319 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2321 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2322 (tdesc_amd64_avx512_linux): New prototype.
2323 (tdesc_x32_avx512_linux): Likewise.
2324 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2325 features/i386/x32-avx512.c.
2326 (amd64_ymm_avx512_names): New register names for pseudo
2328 (amd64_ymmh_avx512_names): New register names for raw registers
2330 (amd64_k_names): New register names for K registers.
2331 (amd64_zmmh_names): New register names for ZMM raw registers.
2332 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2333 (amd64_xmm_avx512_names): New register names for XMM16-31
2335 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2337 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2338 if feature is present.
2339 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2340 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2341 (AMD64_NUM_REGS): Adjust to new number of registers.
2342 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2343 registers supplied via XSTATE by AVX512 registers.
2344 (i386_linux_read_description): Add case for AVX512.
2345 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2346 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2347 (i386_linux_core_read_description): Add case for AVX512.
2348 (i386_linux_init_abi): Install supported register note section
2350 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2352 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2353 registers to be number of zmm7h + 1.
2354 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2355 * i386-tdep.c: Include features/i386/i386-avx512.c.
2356 (i386_zmm_names): Add ZMM pseudo register names array.
2357 (i386_zmmh_names): Add ZMM raw register names array.
2358 (i386_k_names): Add K raw register names array.
2359 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2360 registers. AVX512 has 16 more ZMM registers than there are YMM
2362 (i386_zmmh_regnum_p): Add function to look up register number of
2364 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2365 (i386_k_regnum_p): Likewise for K raw registers.
2366 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2367 registers added by AVX512.
2368 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2369 registers added by AVX512.
2370 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2372 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2373 (i386_pseudo_register_name): Add ZMM pseudo registers.
2374 (i386_zmm_type): Construct and return vector registers type for ZMM
2376 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2377 ZMM0-31 pseudo registers and K registers.
2378 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2379 and YMM16-31 registers from register cache.
2380 (i386_pseudo_register_write): Add code to write K, ZMM and
2382 (i386_register_reggroup_p): Add code to include/exclude AVX512
2383 registers in/from respective register groups.
2384 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2385 registers if feature is present in xcr0.
2386 (i386_gdbarch_init): Add code to initialize AVX512 feature
2387 variables in tdep structure, wire in pseudo registers and call
2388 initialize_tdesc_i386_avx512.
2389 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2391 (i386_regnum): Add AVX512 registers.
2392 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2393 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2394 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2395 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2397 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2398 (i386_ymm_avx512_regnum_p): Likewise.
2399 (i386_k_regnum_p): Likewise.
2400 (i386_zmm_regnum_p): Likewise.
2401 (i386_zmmh_regnum_p): Likewise.
2402 * i387-tdep.c : Update year in copyright notice.
2403 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2405 (XSAVE_YMM_AVX512_ADDR): New macro.
2406 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2408 (XSAVE_XMM_AVX512_ADDR): New macro.
2409 (xsave_avx512_k_offset): New table for K register offsets in
2411 (XSAVE_AVX512_K_ADDR): New macro.
2412 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2414 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2415 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2417 (i387_collect_xsave): Add code to collect AVX512 registers from
2419 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2420 of XMM16-31 registers.
2421 (I387_NUM_K_REGS): New define for number of K registers.
2422 (I387_K0_REGNUM): New define for K0 register number.
2423 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2424 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2425 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2427 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2428 (I387_XMM16_REGNUM): New define for XMM16 register number.
2429 (I387_YMM0_REGNUM): New define for YMM0 register number.
2430 (I387_KEND_REGNUM): New define for last K register number.
2431 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2432 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2434 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2436 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2438 * features/Makefile: Add AVX512 related files.
2439 * features/i386/32bit-avx512.xml: New file.
2440 * features/i386/64bit-avx512.xml: Likewise.
2441 * features/i386/amd64-avx512-linux.c: Likewise.
2442 * features/i386/amd64-avx512-linux.xml: Likewise.
2443 * features/i386/amd64-avx512.c: Likewise.
2444 * features/i386/amd64-avx512.xml: Likewise.
2445 * features/i386/i386-avx512-linux.c: Likewise.
2446 * features/i386/i386-avx512-linux.xml: Likewise.
2447 * features/i386/i386-avx512.c: Likewise.
2448 * features/i386/i386-avx512.xml: Likewise.
2449 * features/i386/x32-avx512-linux.c: Likewise.
2450 * features/i386/x32-avx512-linux.xml: Likewise.
2451 * features/i386/x32-avx512.c: Likewise.
2452 * features/i386/x32-avx512.xml: Likewise.
2453 * regformats/i386/amd64-avx512-linux.dat: New file.
2454 * regformats/i386/amd64-avx512.dat: Likewise.
2455 * regformats/i386/i386-avx512-linux.dat: Likewise.
2456 * regformats/i386/i386-avx512.dat: Likewise.
2457 * regformats/i386/x32-avx512-linux.dat: Likewise.
2458 * regformats/i386/x32-avx512.dat: Likewise.
2459 * NEWS: Add note about new support for AVX512.
2462 2014-04-23 Pedro Alves <palves@redhat.com>
2464 * breakpoint.c (insert_bp_location): Tolerate errors if the
2465 breakpoint is set in a user-loaded objfile.
2466 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2467 location is marked shlib_disabled. If the breakpoint is set in a
2468 user-loaded objfile is a GDB-side memory breakpoint, validate it
2469 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2470 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2472 * mem-break.c (memory_validate_breakpoint): New function.
2473 * objfiles.c (userloaded_objfile_contains_address_p): New
2475 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2476 * target.h (memory_validate_breakpoint): New declaration.
2478 2014-04-23 Pedro Alves <palves@redhat.com>
2480 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2481 the breakpoint is set in a shared library, only suppress
2482 errors for software breakpoints, not hardware breakpoints.
2484 2014-04-22 Pedro Alves <palves@redhat.com>
2486 * infrun.c (schedlock_applies): New function, factored out from
2487 find_thread_needs_step_over.
2488 (find_thread_needs_step_over): Use it.
2489 (switch_back_to_stepped_thread): Always clear trap_expected if the
2490 step over is finished. Return early if scheduler locking applies.
2491 Look for the stepping thread and a potential step-over thread with
2493 (currently_stepping_or_nexting_callback): Delete.
2495 2014-04-22 Nick Clifton <nickc@redhat.com>
2497 * NEWS: Mention that ARM sim now supports tracing.
2499 2014-04-22 Yao Qi <yao@codesourcery.com>
2501 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2503 * tracefile.c (tracefile_fetch_registers): ... it. New
2505 * tracefile.h (tracefile_fetch_registers): Declare.
2506 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2507 tracefile_fetch_registers.
2509 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2512 * windows-nat.c (thread_rec): Don't display a warning when
2513 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2514 fails for any reason, set th->suspended to -1, so that we don't
2515 try to resume such a thread. Also, don't return NULL in these
2516 cases, to avoid completely ruin the session due to "PC register is
2517 not available" error.
2518 (do_windows_fetch_inferior_registers): Check errors in
2519 GetThreadContext call.
2520 (windows_continue): Accept an additional argument KILLED; if not
2521 zero, ignore errors in the SetThreadContext call, since the
2522 inferior was killed and is shutting down.
2523 (windows_resume, get_windows_debug_event)
2524 (windows_create_inferior, windows_mourn_inferior)
2525 (windows_kill_inferior): All callers of windows_continue changed
2526 to adjust to its new calling sequence.
2528 2014-04-19 Yao Qi <yao@codesourcery.com>
2530 * ctf.c (ctf_open): Call post_create_inferior.
2532 2014-04-19 Yao Qi <yao@codesourcery.com>
2534 * ctf.c (handle_id): New static variable.
2535 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2536 value. Get the declaration of event "register" and get length
2537 of field "contents".
2539 2014-04-19 Yao Qi <yao@codesourcery.com>
2541 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2543 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2545 * valops.c (oload_method_static): Remove unnecessary argument
2546 METHOD. Update all callers.
2548 2014-04-18 Pedro alves <palves@redhat.com>
2549 Tom Tromey <tromey@redhat.com>
2552 * frame.c (get_prev_frame_1): Rename to ...
2553 (get_prev_frame_always): ... this, and make extern. Adjust.
2554 (skip_artificial_frames): Use get_prev_frame_always.
2555 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2556 (get_frame_unwind_stop_reason): Adjust to rename.
2557 * frame.h (get_prev_frame_always): Declare.
2558 * inline-frame.c: Include frame.h.
2559 (inline_frame_this_id): Use get_prev_frame_always.
2561 2014-04-18 Tristan Gingold <gingold@adacore.com>
2563 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2564 code by using bfd_mach_o_get_base_address.
2566 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2568 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2569 (spu_ax_pseudo_register_collect): New function.
2570 (spu_ax_pseudo_register_push_stack): Likewise.
2571 (spu_dwarf_reg_to_regnum): Likewise.
2572 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2574 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2576 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2577 Replace FRAME argument with FRAME_ID.
2578 * gdbarch.c, gdbarch.h: Regenerate.
2579 * findvar.c (default_value_from_register): Add GDBARCH argument;
2580 replace FRAME by FRAME_ID. No longer call get_frame_id.
2581 (value_from_register): Update call to gdbarch_value_from_register.
2582 * value.h (default_value_from_register): Update prototype.
2583 * s390-linux-tdep.c (s390_value_from_register): Update interface
2584 and call to default_value_from_register.
2585 * spu-tdep.c (spu_value_from_register): Likewise.
2587 * findvar.c (address_from_register): Remove TYPE argument.
2588 Do not call value_from_register; use gdbarch_value_from_register
2589 with null_frame_id instead.
2590 * value.h (address_from_register): Update prototype.
2591 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2592 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2593 address_from_register interface change.
2595 2014-04-17 Yao Qi <yao@codesourcery.com>
2597 * gdbtypes.h: Update comments to link to types and macros'
2600 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2602 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2604 2014-04-16 Keith Seitz <keiths@redhat.com>
2607 * dwarf2read.c (skip_one_die): Check that all relative-offset
2608 sibling DIEs fall within range of the current reader's buffer.
2609 (read_partial_die): Likewise.
2611 2014-04-16 Keith Seitz <keiths@redhat.com>
2614 * cp-namespace.c (lookup_symbol_file): If the type name of
2615 `this' is NULL, return immediately.
2617 2014-04-14 Keith Seitz <keiths@redhat.com>
2620 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2621 from symbol_matches_domain in symtab.c. All local callers
2622 of symbol_matches_domain updated.
2623 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2624 search STRUCT_DOMAIN.
2625 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2626 independently. standard_lookup will do that automatically.
2627 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2628 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2629 (cp_lookup_symbol_in_namespace): Likewise.
2630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2631 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2632 may return a STRUCT_DOMAIN match.
2633 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2634 * cp-support.c: Include language.h.
2635 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2637 * psymtab.c (match_partial_symbol): Compare the requested
2638 domain with the symbol's domain directly.
2639 (lookup_partial_symbol): Likewise.
2640 * symtab.c (lookup_symbol_in_language): Explain when/why
2641 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2642 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2643 appropriate languages.
2644 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2645 and moved to ada-lang.c
2646 (lookup_block_symbol): Explain that this function only returns
2647 symbol matching the requested DOMAIN.
2648 Compare the requested domain with the symbol's domain directly.
2649 (iterate_over_symbols): Compare the requested domain with the
2650 symbol's domain directly.
2651 * symtab.h (symbol_matches_domain): Remove.
2653 2014-04-14 Tom Tromey <tromey@redhat.com>
2656 * c-exp.y (type_aggregate_p): New function.
2657 (qualified_name, classify_inner_name): Use it.
2658 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2659 and TYPE_TARGET_TYPE of an enum type.
2660 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2662 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2663 handle TYPE_DECLARED_CLASS.
2664 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2666 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2667 * valops.c (enum_constant_from_type): New function.
2668 (value_aggregate_elt): Use it.
2669 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2672 2014-04-14 Tom Tromey <tromey@redhat.com>
2674 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2675 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2677 * value.h (value_aggregate_elt): Update.
2679 2014-04-14 Tom Tromey <tromey@redhat.com>
2681 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2685 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2686 (evaluate_subexp_standard): Pass noside argument.
2687 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2688 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2689 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2690 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2691 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2693 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2695 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2696 points to a constant blob.
2698 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2700 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2701 property and store it as the high bound and flag the range accordingly.
2702 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2703 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2704 * gdbtypes.h (enum range_flags): New enum.
2705 (struct range_bounds): Add flags member.
2707 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2709 * c-typeprint.c (c_type_print_varspec_suffix): Added
2710 check for not yet resolved high bound. If unresolved, print
2711 "variable length" string to the console instead of random
2714 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2716 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2718 (ada_template_to_fixed_record_type_1): Likewise.
2719 (ada_to_fixed_type_1): Likewise.
2720 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2721 (cp_print_value): Likewise.
2722 * d-valprint.c (dynamic_array_type): Likewise.
2723 * findvar.c (address_of_variable): Likewise.
2724 * jv-valprint.c (java_value_print): Likewise.
2725 * valops.c (value_ind): Likewise.
2726 * value.c (coerce_ref): Likewise.
2728 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2730 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2731 value and retrieve the dynamic type size.
2733 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2735 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2736 passed to sizeof is dynamic evaluate the argument to compute the length.
2738 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2739 Joel Brobecker <brobecker@adacore.com>
2741 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2742 (dwarf2_evaluate_property): New function.
2743 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2744 * dwarf2read.c (attr_to_dynamic_prop): New function.
2745 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2747 * gdbtypes.c: Include dwarf2loc.h.
2748 (is_dynamic_type): New function.
2749 (resolve_dynamic_type): New function.
2750 (resolve_dynamic_bounds): New function.
2751 (get_type_length): New function.
2752 (check_typedef): Use get_type_length to compute type length.
2753 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2754 (TYPE_LOW_BOUND_KIND): New macro.
2755 (is_dynamic_type): New function prototype.
2756 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2757 to resolve dynamic properties of the type. Update comment.
2758 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2760 2014-04-14 Richard Henderson <rth@redhat.com>
2762 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2764 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2765 Doug Evans <xdje42@gmail.com>
2767 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2768 dereference TYPE_CODE_REF values.
2770 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2772 Revert the following changes due to regressions:
2774 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2775 (dwarf2_evaluate_property): New function.
2776 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2777 * dwarf2read.c (attr_to_dynamic_prop): New function.
2778 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2780 * gdbtypes.c: Include dwarf2loc.h.
2781 (is_dynamic_type): New function.
2782 (resolve_dynamic_type): New function.
2783 (resolve_dynamic_bounds): New function.
2784 (get_type_length): New function.
2785 (check_typedef): Use get_type_length to compute type length.
2786 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2787 (TYPE_LOW_BOUND_KIND): New macro.
2788 (is_dynamic_type): New function prototype.
2789 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2790 to resolve dynamic properties of the type. Update comment.
2791 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2793 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2794 passed to sizeof is dynamic evaluate the argument to compute the length.
2796 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2797 value and retrieve the dynamic type size.
2799 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2800 (ada_template_to_fixed_record_type_1): Likewise.
2801 (ada_to_fixed_type_1): Likewise.
2802 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2803 (cp_print_value): Likewise.
2804 * d-valprint.c (dynamic_array_type): Likewise.
2805 * eval.c (evaluate_subexp_with_coercion): Likewise.
2806 * findvar.c (address_of_variable): Likewise.
2807 * jv-valprint.c (java_value_print): Likewise.
2808 * valops.c (value_ind): Likewise.
2809 * value.c (coerce_ref): Likewise.
2811 * c-typeprint.c (c_type_print_varspec_suffix): Added
2812 check for not yet resolved high bound. If unresolved, print
2813 "variable length" string to the console instead of random
2816 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2817 property and store it as the high bound and flag the range accordingly.
2818 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2819 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2820 * gdbtypes.h (enum range_flags): New enum.
2821 (struct range_bounds): Add flags member.
2823 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2824 points to a constant blob.
2826 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2827 (evaluate_subexp_standard): Pass noside argument.
2828 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2829 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2830 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2831 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2832 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2834 2014-04-11 Keith Seitz <keiths@redhat.com>
2837 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2838 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2843 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2844 (evaluate_subexp_standard): Pass noside argument.
2845 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2846 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2847 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2848 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2849 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2851 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2853 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2854 points to a constant blob.
2856 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2858 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2859 property and store it as the high bound and flag the range accordingly.
2860 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2861 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2862 * gdbtypes.h (enum range_flags): New enum.
2863 (struct range_bounds): Add flags member.
2865 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2867 * c-typeprint.c (c_type_print_varspec_suffix): Added
2868 check for not yet resolved high bound. If unresolved, print
2869 "variable length" string to the console instead of random
2872 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2874 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2875 (ada_template_to_fixed_record_type_1): Likewise.
2876 (ada_to_fixed_type_1): Likewise.
2877 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2878 (cp_print_value): Likewise.
2879 * d-valprint.c (dynamic_array_type): Likewise.
2880 * eval.c (evaluate_subexp_with_coercion): Likewise.
2881 * findvar.c (address_of_variable): Likewise.
2882 * jv-valprint.c (java_value_print): Likewise.
2883 * valops.c (value_ind): Likewise.
2884 * value.c (coerce_ref): Likewise.
2886 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2888 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2889 value and retrieve the dynamic type size.
2891 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2893 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2894 passed to sizeof is dynamic evaluate the argument to compute the length.
2896 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2898 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2899 (dwarf2_evaluate_property): New function.
2900 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2901 * dwarf2read.c (attr_to_dynamic_prop): New function.
2902 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2904 * gdbtypes.c: Include dwarf2loc.h.
2905 (is_dynamic_type): New function.
2906 (resolve_dynamic_type): New function.
2907 (resolve_dynamic_bounds): New function.
2908 (get_type_length): New function.
2909 (check_typedef): Use get_type_length to compute type length.
2910 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2911 (TYPE_LOW_BOUND_KIND): New macro.
2912 (is_dynamic_type): New function prototype.
2913 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2914 to resolve dynamic properties of the type. Update comment.
2915 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2917 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2919 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2920 declaring high/low bounds and change uses accordingly. Call
2921 create_range_type instead of create_static_range_type.
2922 * gdbtypes.c (create_range_type): New function.
2923 (create_range_type): Convert bounds into struct bound_prop and pass
2924 them to create_range_type.
2925 * gdbtypes.h (struct bound_prop): New struct.
2926 (create_range_type): New function prototype.
2927 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2928 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2929 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2931 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2933 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2935 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2936 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2937 * ada-lang.c: All uses of create_range_type updated.
2938 * coffread.c: All uses of create_range_type updated.
2939 * dwarf2read.c: All uses of create_range_type updated.
2940 * f-exp.y: All uses of create_range_type updated.
2941 * m2-valprint.c: All uses of create_range_type updated.
2942 * mdebugread.c: All uses of create_range_type updated.
2943 * stabsread.c: All uses of create_range_type updated.
2944 * valops.c: All uses of create_range_type updated.
2945 * valprint.c: All uses of create_range_type updated.
2947 2014-04-10 Pedro Alves <palves@redhat.com>
2949 * breakpoint.c (single_step_breakpoints)
2950 (single_step_gdbarch): Move up in the file.
2951 (one_breakpoint_xfer_memory): New function, factored out from ...
2952 (breakpoint_xfer_memory): ... here. Also process single-step
2955 2014-04-09 Tristan Gingold <gingold@adacore.com>
2957 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2959 (darwin_decode_exception_message): Free port only after use.
2961 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2963 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2964 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2965 when setting the size of call_length.
2967 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2969 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2970 dereference TYPE_CODE_REF values.
2972 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2974 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2975 end of warning message.
2977 2014-04-03 Doug Evans <dje@google.com>
2979 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2980 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2982 2014-04-02 Alan Modra <amodra@gmail.com>
2984 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2985 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2986 (struct symbol_file_add_from_memory_args): Add size field.
2987 (find_vdso_size): New function.
2988 (add_vsyscall_page): Attempt to find vdso size.
2990 2014-04-01 Doug Evans <dje@google.com>
2992 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2994 2014-04-01 Tristan Gingold <gingold@adacore.com>
2996 * darwin-nat.c (darwin_encode_reply): Add prototype.
2997 (darwin_decode_exception_message): Reply to unknown inferiors.
2998 (darwin_decode_message): Handle message by id. Ignore message
2999 to unknown inferior.
3000 (darwin_wait): Discard unknown messages, add debug trace.
3002 2014-03-31 Doug Evans <dje@google.com>
3004 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3007 2014-03-31 Doug Evans <dje@google.com>
3009 New option "set print symbol-loading".
3011 * solib.c (solib_read_symbols): Only print symbol loading messages
3013 (solib_add): If symbol loading is in "brief" mode, notify user
3014 symbols are being loaded.
3015 (reload_shared_libraries_1): Ditto.
3016 * symfile.c (print_symbol_loading_off): New static global.
3017 (print_symbol_loading_brief): New static global.
3018 (print_symbol_loading_full): New static global.
3019 (print_symbol_loading_enums): New static global.
3020 (print_symbol_loading): New static global.
3021 (print_symbol_loading_p): New function.
3022 (symbol_file_add_with_addrs): Only print symbol loading messages
3024 (_initialize_symfile): Register "print symbol-loading" set/show
3026 * symfile.h (print_symbol_loading_p): Declare.
3028 2014-03-30 Doug Evans <xdje42@gmail.com>
3030 * infrun.c (set_last_target_status): New function.
3031 (handle_inferior_event): Call it.
3033 2014-03-30 Doug Evans <xdje42@gmail.com>
3035 * inferior.h (enum stop_kind): Improve comment.
3037 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3039 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3040 a reference, strip the reference layer before calling
3041 the lang_ops value_has_mutated callback.
3043 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3045 Remove some globals from our parser.
3046 * language.c (unk_lang_parser): Add "struct parser_state"
3048 * language.h (struct language_defn) <la_parser>: Likewise.
3049 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3050 (initialize_expout): Add "struct parser_state" argument.
3051 Rewrite function to use the parser state.
3052 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3053 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3054 write_exp_elt_longcst, write_exp_elt_dblcst,
3055 write_exp_elt_decfloatcst, write_exp_elt_type,
3056 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3057 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3058 write_dollar_variable): Likewise.
3059 (parse_exp_in_context_1): Use parser state.
3060 (insert_type_address_space): Add "struct parser_state" argument.
3062 (increase_expout_size): New function.
3063 * parser-defs.h: Forward declare "struct language_defn" and
3064 "struct parser_state".
3065 (expout, expout_size, expout_ptr): Remove extern declarations.
3066 (parse_gdbarch, parse_language): Rewrite macro declarations to
3067 accept the parser state.
3068 (struct parser_state): New struct.
3069 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3070 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3071 write_exp_elt_decfloatcst, write_exp_elt_type,
3072 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3073 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3074 write_exp_msymbol, write_dollar_variable,
3075 mark_struct_expression, insert_type_address_space): Add "struct
3076 parser_state" argument.
3077 (increase_expout_size): New function.
3078 * utils.c (do_clear_parser_state): New function.
3079 (make_cleanup_clear_parser_state): Likewise.
3080 * utils.h (make_cleanup_clear_parser_state): New function
3082 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3083 Update calls to write_exp* in order to pass the parser state.
3084 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3085 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3086 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3087 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3088 * stap-probe.c (stap_parse_register_operand): Likewise.
3089 (stap_parse_single_operand): Likewise.
3090 (stap_parse_argument_1): Likewise.
3091 (stap_parse_argument): Use parser state.
3092 * stap-probe.h: Include "parser-defs.h".
3093 (struct stap_parse_info) <pstate>: New field.
3094 * c-exp.y (parse_type): Rewrite to use parser state.
3095 (yyparse): Redefine to c_parse_internal.
3096 (pstate): New global variable.
3097 (parse_number): Add "struct parser_state" argument.
3098 (write_destructor_name): Likewise.
3099 (type_exp): Update calls to write_exp* and similars in order to
3101 (exp1, exp, variable, qualified_name, space_identifier,
3102 typename, typebase): Likewise.
3103 (write_destructor_name, parse_number, lex_one_token,
3104 classify_name, classify_inner_name, c_parse): Add "struct
3105 parser_state" argument. Update function to use parser state.
3106 * c-lang.h: Forward declare "struct parser_state".
3107 (c_parse): Add "struct parser_state" argument.
3108 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3109 (yyparse): Redefine macro to ada_parse_internal.
3110 (pstate): New variable.
3111 (write_int, write_object_renaming, write_var_or_type,
3112 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3113 type_int, type_long, type_long_long, type_float, type_double,
3114 type_long_double, type_char, type_boolean, type_system_address):
3115 Add "struct parser_state" argument.
3116 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3117 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3118 var_or_type, aggregate, aggregate_component_list,
3119 positional_list, others, component_group,
3120 component_associations): Update calls to write_exp* and similar
3121 functions in order to use parser state.
3122 (ada_parse, write_var_from_sym, write_int,
3123 write_exp_op_with_string, write_object_renaming,
3124 find_primitive_type, write_selectors, write_ambiguous_var,
3125 write_var_or_type, write_name_assoc, type_int, type_long,
3126 type_long_long, type_float, type_double, type_long_double,
3127 type_char, type_boolean, type_system_address): Add "struct
3128 parser_state" argument. Adjust function to use parser state.
3129 * ada-lang.c (parse): Likewise.
3130 * ada-lang.h: Forward declare "struct parser_state".
3131 (ada_parse): Add "struct parser_state" argument.
3132 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3133 calls to both functions.
3134 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3136 (yyparse): Redefine macro to f_parse_internal.
3137 (pstate): New variable.
3138 (parse_number): Add "struct parser_state" argument.
3139 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3140 and similars in order to use parser state.
3141 (parse_number): Adjust code to use parser state.
3143 (f_parse): New function.
3144 * f-lang.h: Forward declare "struct parser_state".
3145 (f_parse): Add "struct parser_state" argument.
3146 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3148 (yyparse): Redefine macro for java_parse_internal.
3149 (pstate): New variable.
3150 (push_expression_name, push_expression_name, insert_exp): Add
3151 "struct parser_state" argument.
3152 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3153 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3154 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3155 PostIncrementExpression, PostDecrementExpression,
3156 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3157 UnaryExpressionNotPlusMinus, CastExpression,
3158 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3159 RelationalExpression, EqualityExpression, AndExpression,
3160 ExclusiveOrExpression, InclusiveOrExpression,
3161 ConditionalAndExpression, ConditionalOrExpression,
3162 ConditionalExpression, Assignment, LeftHandSide): Update
3163 calls to write_exp* and similars in order to use parser state.
3164 (parse_number): Ajust code to use parser state.
3166 (java_parse): New function.
3167 (push_variable): Add "struct parser_state" argument. Adjust
3168 code to user parser state.
3169 (push_fieldnames, push_qualified_expression_name,
3170 push_expression_name, insert_exp): Likewise.
3171 * jv-lang.h: Forward declare "struct parser_state".
3172 (java_parse): Add "struct parser_state" argument.
3173 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3175 (yyparse): Redefine macro to m2_parse_internal.
3176 (pstate): New variable.
3177 (type_exp, exp, fblock, variable, type): Update calls to
3178 write_exp* and similars to use parser state.
3180 (m2_parse): New function.
3181 * m2-lang.h: Forward declare "struct parser_state".
3182 (m2_parse): Add "struct parser_state" argument.
3183 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3184 * objc-lang.h: Forward declare "struct parser_state".
3185 (end_msglist): Add "struct parser_state" argument.
3186 * p-exp.y (parse_type): Rewrite macro to use parser state.
3187 (yyparse): Redefine macro to pascal_parse_internal.
3188 (pstate): New variable.
3189 (parse_number): Add "struct parser_state" argument.
3190 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3191 write_exp* and similars in order to use parser state.
3192 (parse_number, yylex): Adjust code to use parser state.
3193 (pascal_parse): New function.
3194 * p-lang.h: Forward declare "struct parser_state".
3195 (pascal_parse): Add "struct parser_state" argument.
3196 * go-exp.y (parse_type): Rewrite macro to use parser state.
3197 (yyparse): Redefine macro to go_parse_internal.
3198 (pstate): New variable.
3199 (parse_number): Add "struct parser_state" argument.
3200 (type_exp, exp1, exp, variable, type): Update calls to
3201 write_exp* and similars in order to use parser state.
3202 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3203 to use parser state.
3204 (go_parse): Likewise.
3205 * go-lang.h: Forward declare "struct parser_state".
3206 (go_parse): Add "struct parser_state" argument.
3208 2014-03-27 Doug Evans <dje@google.com>
3210 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3212 2014-03-27 Doug Evans <dje@google.com>
3214 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3215 Remove argument abbrev_section. All callers updated.
3217 2014-03-27 Doug Evans <dje@google.com>
3219 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3220 addr_base, ranges_base.
3222 2014-03-26 Keith Seitz <keiths@redhat.com>
3224 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3225 types, not VAR_DOMAIN.
3227 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3229 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3231 * features/nios2-linux.c: Regenerated.
3232 * features/nios2.c: Regenerated.
3234 2014-03-25 Pedro Alves <palves@redhat.com>
3236 * cli/cli-script.c (script_from_file): Force the interpreter to
3239 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3241 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3242 small stack allocation.
3244 2014-03-24 Tristan Gingold <gingold@adacore.com>
3246 * darwin-nat.c (exc_server): Remove unused prototype.
3247 (darwin_dump_message): Correctly display data on x86_64.
3248 (darwin_encode_reply): Fix style.
3249 Add comments and fix indentation.
3251 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3253 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3255 2014-03-22 Doug Evans <xdje42@gmail.com>
3257 * infcmd.c: Whitespace fixes.
3258 (interrupt_command): Merge two function comments into one.
3260 2014-03-22 Doug Evans <xdje42@gmail.com>
3262 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3265 2014-03-22 Yao Qi <yao@codesourcery.com>
3267 * remote.c (target_read_live_memory): Remove.
3268 (memory_xfer_live_readonly_partial): Rename it to
3269 remote_xfer_live_readonly_partial. Remove argument 'object'.
3270 All callers updated. Call remote_read_bytes_1
3271 instead of target_read_live_memory.
3272 * tracepoint.c (set_traceframe_number): Remove.
3273 (make_cleanup_restore_traceframe_number): Likewise .
3274 * tracepoint.h (set_traceframe_number): Remove declaration.
3275 (make_cleanup_restore_traceframe_number): Likewise.
3277 2014-03-22 Yao Qi <yao@codesourcery.com>
3279 * remote.c (remote_read_bytes): Move code on reading from the
3281 (remote_read_bytes_1): ... here. New function.
3283 2014-03-22 Yao Qi <yao@codesourcery.com>
3285 * ctf.c (ctf_xfer_partial): Check the return value of
3286 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3287 return TARGET_XFER_UNAVAILABLE.
3288 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3289 * target.c (target_read_live_memory): Move it to remote.c.
3290 (memory_xfer_live_readonly_partial): Likewise.
3291 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3292 * remote.c (target_read_live_memory): Moved from target.c.
3293 (memory_xfer_live_readonly_partial): Likewise.
3294 (remote_read_bytes): Factored out from
3295 memory_xfer_partial_1.
3297 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3299 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3302 2014-03-21 Pedro Alves <palves@redhat.com>
3304 * infrun.c (normal_stop): Extend comment.
3306 2014-03-21 Hui Zhu <hui@codesourcery.com>
3307 Pedro Alves <palves@redhat.com>
3309 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3311 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3312 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3313 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3315 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3317 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3318 `z' formatted output modifier.
3320 2014-03-20 Tom Tromey <tromey@redhat.com>
3321 Sergio Durigan Junior <sergiodj@redhat.com>
3323 * probe.c (parse_probes): Turn assert into an ordinary error.
3324 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3325 exceptions when parsing probes. Rearrange the code for clarity.
3327 2014-03-20 Tom Tromey <tromey@redhat.com>
3330 * top.c (execute_command): Only dispatch events if the command
3333 2014-03-20 Tom Tromey <tromey@redhat.com>
3336 * infcall.c: Include event-top.h.
3337 (run_inferior_call): Call async_disable_stdin if needed.
3339 2014-03-20 Pedro Alves <palves@redhat.com>
3341 * infrun.c (prepare_to_proceed): Delete.
3342 (thread_still_needs_step_over): New function.
3343 (find_thread_needs_step_over): New function.
3344 (proceed): If the current thread needs a step-over, set its
3345 steping_over_breakpoint flag. Adjust to use
3346 find_thread_needs_step_over instead of prepare_to_proceed.
3347 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3348 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3350 (switch_back_to_stepped_thread): Step over breakpoints of all
3351 threads not the stepping thread, before switching back to the
3354 2014-03-20 Pedro Alves <palves@redhat.com>
3356 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3358 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3359 * infrun.c (saved_singlestep_ptid)
3360 (stepping_past_singlestep_breakpoint): Delete.
3361 (resume): Remove stepping_past_singlestep_breakpoint handling.
3362 (proceed): Store the prev_pc of the stepping thread too.
3363 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3365 (enum infwait_states): Delete infwait_thread_hop_state.
3366 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3368 (handle_inferior_event): Adjust.
3369 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3370 handling and the thread-hop code. Before removing single-step
3371 breakpoints, check whether the thread hit a single-step breakpoint
3372 of another thread. If it did, the trap is not a random signal.
3373 (switch_back_to_stepped_thread): If the event thread hit a
3374 single-step breakpoint, unblock it before switching to the
3375 stepping thread. Handle the case of the stepped thread having
3377 (keep_going): Handle the case of the current thread moving past a
3378 single-step breakpoint.
3380 2014-03-20 Pedro Alves <palves@redhat.com>
3383 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3384 are being stepped over.
3385 (breakpoint_address_match): Make extern.
3386 * breakpoint.h (breakpoint_address_match): New declaration.
3387 * inferior.h (stepping_past_instruction_at): New declaration.
3388 * infrun.c (struct step_over_info): New type.
3389 (step_over_info): New global.
3390 (set_step_over_info, clear_step_over_info)
3391 (stepping_past_instruction_at): New functions.
3392 (handle_inferior_event): Clear the step-over info when
3393 trap_expected is cleared.
3394 (resume): Remove now stale comment.
3395 (clear_proceed_status): Clear step-over info.
3396 (proceed): Adjust step-over handling to set or clear the step-over
3397 info instead of removing all breakpoints.
3398 (handle_signal_stop): When setting up a thread-hop, don't remove
3400 (stop_stepping): Clear step-over info.
3401 (keep_going): Adjust step-over handling to set or clear step-over
3402 info and then always inserting breakpoints, instead of removing
3403 all breakpoints when stepping over one.
3405 2014-03-20 Pedro Alves <palves@redhat.com>
3407 * infrun.c (previous_inferior_ptid): Adjust comment.
3408 (deferred_step_ptid): Delete.
3409 (infrun_thread_ptid_changed, prepare_to_proceed)
3410 (init_wait_for_inferior): Adjust.
3411 (handle_signal_stop): Delete deferred_step_ptid handling.
3413 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 * defs.h (sync_quit_force_run): New declaration.
3417 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3418 * event-top.c (async_sigterm_handler): New declaration.
3419 (async_sigterm_token): New variable.
3420 (async_init_signals): Create also async_sigterm_token.
3421 (async_sigterm_handler): New function.
3422 (sync_quit_force_run): New variable.
3423 (handle_sigterm): Replace quit_force call by other calls.
3424 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3426 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3428 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3429 offset into SPE pseudo registers.
3431 2014-03-18 Pedro Alves <palves@redhat.com>
3434 * inferior.h (print_stop_event): Declare.
3435 * infrun.c (print_stop_event): New, factored out from ...
3436 (normal_stop): ... this.
3437 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3438 of bpstat_print/print_stack_frame.
3440 2014-03-17 Tom Tromey <tromey@redhat.com>
3442 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3444 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3446 * ada-lang.c (decode_constrained_packed_array): Perform a
3447 minimal coercion for reference with coerce_ref instead of
3450 2014-03-17 Tristan Gingold <gingold@adacore.com>
3452 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3453 (darwin_solib_create_inferior_hook): Emit a warning if version
3456 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3458 * python/py-value.c (get_field_flag): Cast flag_name argument to
3459 PyObject_GetAttrString to support Python 2.4.
3461 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3464 (Global Maintainers): Remove Jan Kratochvil.
3466 2014-03-14 Pedro Alves <palves@redhat.com>
3468 * inferior.h (terminal_ours_for_output): Rename to ...
3469 (child_terminal_ours_for_output): ... this.
3470 (terminal_save_ours): Rename to ...
3471 (child_terminal_save_ours): ... this.
3472 (terminal_ours): Rename to ...
3473 (child_terminal_ours): ... this.
3474 (terminal_inferior): Rename to ...
3475 (child_terminal_inferior): ... this.
3476 (terminal_init_inferior): Rename to ...
3477 (child_terminal_init_inferior): ... this.
3478 (terminal_init_inferior_with_pgrp): Rename to ...
3479 (child_terminal_init_inferior_with_pgrp): ... this.
3480 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3481 (child_terminal_init_with_pgrp): ... this.
3482 (terminal_save_ours): Rename to ...
3483 (child_terminal_save_ours): ... this.
3484 (terminal_init_inferior): Rename to ...
3485 (child_terminal_init): ... this. Adjust.
3486 (terminal_inferior): Rename to ...
3487 (child_terminal_inferior): ... this.
3488 (terminal_ours_for_output): Rename to ...
3489 (child_terminal_ours_for_output): ... this. Adjust.
3490 (terminal_ours): Rename to ...
3491 (child_terminal_ours): ... this.
3492 (terminal_ours_1): Rename to ...
3493 (child_terminal_ours_1): ... this. Adjust.
3494 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3495 * windows-nat.c (do_initial_windows_stuff): Adjust.
3496 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3497 (gnu_terminal_init): ... this. Adjust.
3498 (gnu_target): Adjust.
3499 * inf-child.c (inf_child_target): Adjust.
3501 2014-03-13 Doug Evans <xdje42@gmail.com>
3504 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3507 2014-03-13 Doug Evans <xdje42@gmail.com>
3509 * value.c (record_latest_value): Call release_value_or_incref
3510 instead of release_value.
3512 2014-03-13 Pedro Alves <palves@redhat.com>
3514 * procfs.c (procfs_target): Don't override to_shortname,
3515 to_longname or to_doc.
3517 2014-03-13 Pedro Alves <palves@redhat.com>
3519 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3520 Unix in user visible strings.
3522 2014-03-12 Stan Shebs <stan@codesourcery.com>
3524 * gdbtypes.h: Annotate comments for Doxygen, add a page
3525 block comment with some general info.
3527 2014-03-12 Pedro Alves <palves@redhat.com>
3529 * infcmd.c (prepare_execution_command): New function, factored out
3530 from several execution commands.
3531 (run_command_1, continue_command, step_1, jump_command)
3532 (signal_command, until_command, advance_command, finish_command)
3533 (attach_command): Use prepare_execution_command.
3535 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3537 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3540 (struct arm_linux_thread_points): Removed.
3541 (struct arm_linux_process_info): New.
3542 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3543 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3544 (arm_linux_find_breakpoints_by_tid): Removed.
3545 (struct arch_lwp_info): New.
3546 (arm_linux_find_process_pid): New functions.
3547 (arm_linux_add_process): New functions.
3548 (arm_linux_process_info_get): New functions.
3549 (arm_linux_forget_process): New function.
3550 (arm_linux_get_debug_reg_state): New function.
3551 (struct update_registers_data): New.
3552 (update_registers_callback): New function.
3553 (arm_linux_insert_hw_breakpoint1): Updated.
3554 (arm_linux_remove_hw_breakpoint1): Updated.
3555 (arm_linux_insert_hw_breakpoint): Updated.
3556 (arm_linux_remove_hw_breakpoint): Updated.
3557 (arm_linux_insert_watchpoint): Updated.
3558 (arm_linux_remove_watchpoint): Updated.
3559 (arm_linux_new_thread): Updated.
3560 (arm_linux_prepare_to_resume): New function.
3561 (arm_linux_new_fork): New function.
3562 (_initialize_arm_linux_nat): Updated.
3564 2014-03-12 Pedro Alves <palves@redhat.com>
3566 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3568 2014-03-12 Tom Tromey <tromey@redhat.com>
3570 * inf-child.c (return_zero): New function.
3571 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3572 * aix-thread.c (aix_thread_inferior_created): New function.
3573 (aix_thread_attach): Remove.
3574 (init_aix_thread_ops): Don't set to_attach.
3575 (_initialize_aix_thread): Register inferior_created observer.
3576 * corelow.c (init_core_ops): Don't set to_attach or
3578 * exec.c (init_exec_ops): Don't set to_attach or
3580 * infcmd.c (run_command_1): Use find_run_target. Make direct
3582 (attach_command): Use find_attach_target. Make direct target
3584 * record-btrace.c (init_record_btrace_ops): Don't set
3586 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3588 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3589 set to_create_inferior.
3590 * target.c (complete_target_initialization): Add assertion.
3591 (target_create_inferior): Remove.
3592 (find_default_attach, find_default_create_inferior): Remove.
3593 (find_attach_target, find_run_target): New functions.
3594 (find_default_is_async_p, find_default_can_async_p)
3595 (target_supports_non_stop, target_attach): Remove.
3596 (init_dummy_target): Don't set to_create_inferior or
3597 to_supports_non_stop.
3598 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3599 TARGET_DEFAULT_FUNC.
3600 <to_create_inferior>: Add comment.
3601 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3602 TARGET_DEFAULT_RETURN.
3603 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3604 (find_attach_target, find_run_target): Declare.
3605 (target_create_inferior): Remove.
3606 (target_has_execution_1): Update comment.
3607 (target_supports_non_stop): Remove.
3608 * target-delegates.c: Rebuild.
3610 2014-03-12 Pedro Alves <palves@redhat.com>
3612 * inf-child.h: Update comment to not mention Unix.
3614 2014-03-12 Pedro Alves <palves@redhat.com>
3616 * inf-child.c: Update top comment to not mention Unix. Add
3617 generic comment describing how this target is meant to be used.
3618 (inf_child_post_attach, inf_child_post_startup_inferior)
3619 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3622 2014-03-12 Pedro Alves <palves@redhat.com>
3624 * nto-procfs.c: Include inf-child.h.
3625 (procfs_ops): Delete global.
3626 (procfs_can_run): Delete method.
3627 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3628 target pointer instead of referencing procfs_ops.
3629 (procfs_prepare_to_store): Delete.
3630 (init_procfs_ops): Delete function.
3631 (procfs_target): New function, based on init_procfs_ops, but
3632 inherit inf_child_target.
3633 (_initialize_procfs): Use procfs_target.
3635 2014-03-12 Pedro Alves <palves@redhat.com>
3637 * windows-nat.c: Include inf-child.h.
3638 (windows_ops): Delete global.
3639 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3641 (init_windows_ops): Delete function.
3642 (windows_target): New function, based on init_windows_ops, but
3643 inherit inf_child_target.
3644 (_initialize_windows_nat): Use windows_target. Install x86
3645 specific target methods here.
3647 2014-03-10 Doug Evans <xdje42@gmail.com>
3649 * guile/guile.c (call_initialize_gdb_module): New function.
3650 (initialize_guile): Replace call to scm_init_guile with call to
3653 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3655 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3656 in call to TYPE_CODE macro.
3658 2014-03-10 Jerome Guitton <guitton@adacore.com>
3660 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3661 Resolve tagged types to full view.
3663 2014-03-10 Hui Zhu <hui@codesourcery.com>
3665 * target.h (target_insert_breakpoint): Remove "hardware" from its
3668 2014-03-07 Doug Evans <dje@google.com>
3670 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3672 2014-03-07 Doug Evans <dje@google.com>
3674 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3675 Remove unused local comp_dir_attr. Assert exactly one of
3676 stub_comp_unit_die, stub_comp_dir is non-NULL.
3678 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3680 * target.h (complete_target_initialization, add_target):
3683 2014-03-07 Pedro Alves <palves@redhat.com>
3685 * go32-nat.c: Include inf-child.h.
3686 (go32_ops): Delete global.
3687 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3689 (go32_create_inferior): Push the passed in target pointer instead
3690 of referencing go32_ops.
3691 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3692 (go32_target): New function, based on init_go32_ops, but inherit
3694 (_initialize_go32_nat): Use go32_target. Move parts of
3697 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3699 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3700 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3701 SYMBOL_VALUE_ADDRESS.
3702 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3704 2014-03-06 Yao Qi <yao@codesourcery.com>
3706 * breakpoint.c (get_tracepoint_by_number): Remove argument
3707 optional_p. All callers updated. Adjust comments. Update
3709 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3711 2014-03-06 Yao Qi <yao@codesourcery.com>
3713 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3714 early if get_number returns zero. Use 'p' instead of 'args'.
3716 2014-03-06 Yao Qi <yao@codesourcery.com>
3718 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3721 2014-03-06 Yao Qi <yao@codesourcery.com>
3723 PR breakpoints/16508
3724 * tracepoint.c (check_trace_running): New function.
3725 (trace_find_command): Move code to check_trace_running and
3726 call check_trace_running.
3727 (trace_find_pc_command): Likewise.
3728 (trace_find_tracepoint_command): Likewise.
3729 (trace_find_line_command): Likewise.
3730 (trace_find_range_command): Likewise.
3731 * tracepoint.h (check_trace_running): Likewise.
3732 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3734 2014-03-06 Yao Qi <yao@codesourcery.com>
3736 * target.h (struct target_ops) <to_traceframe_info>: Use
3737 TARGET_DEFAULT_NORETURN (tcomplain ()).
3738 * target-delegates.c: Regenerated.
3740 2014-03-05 Pedro Alves <palves@redhat.com>
3743 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3744 void. Update comment.
3745 (dcache_xfer_memory): Delete.
3746 (dcache_read_memory_partial): New, based on the read bits of
3748 (dcache_update): Add status parameter. Use ULONGEST for len, and
3749 adjust. Discard cache lines if the reason for the update was
3751 * dcache.h (dcache_xfer_memory): Delete declaration.
3752 (dcache_read_memory_partial): New declaration.
3753 (dcache_update): Update prototype.
3754 * target.c (raw_memory_xfer_partial): Update the dcache here.
3755 (memory_xfer_partial_1): Don't handle dcache writes here.
3757 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3759 * remote-sim.c (gdbsim_load): Add const to prog.
3761 2014-03-03 Tom Tromey <tromey@redhat.com>
3763 * elfread.c (probe_key): Change to bfd_data.
3764 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3765 now per-BFD, not per-objfile.
3766 * stap-probe.c (stap_probe_destroy): Update comment.
3767 (handle_stap_probe): Allocate on the per-BFD obstack.
3769 2014-03-03 Tom Tromey <tromey@redhat.com>
3771 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3772 * breakpoint.c (create_longjmp_master_breakpoint): Use
3774 (add_location_to_breakpoint, bkpt_probe_insert_location)
3775 (bkpt_probe_remove_location): Update.
3776 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3777 * elfread.c (elf_symfile_relocate_probe): Remove.
3778 (elf_probe_fns): Update.
3779 (insert_exception_resume_breakpoint): Change type of "probe"
3780 parameter to bound_probe.
3781 (check_exception_resume): Update.
3782 * objfiles.c (objfile_relocate1): Don't relocate probes.
3783 * probe.c (bound_probe_s): New typedef.
3784 (parse_probes): Use get_probe_address. Set sal's objfile.
3785 (find_probe_by_pc): Return a bound_probe.
3786 (collect_probes): Return a VEC(bound_probe_s).
3787 (compare_probes): Update.
3788 (gen_ui_out_table_header_info): Change type of "probes"
3790 (info_probes_for_ops): Update.
3791 (get_probe_address): New function.
3792 (probe_safe_evaluate_at_pc): Update.
3793 * probe.h (struct probe_ops) <get_probe_address>: New field.
3794 <set_semaphore, clear_semaphore>: Add objfile parameter.
3795 (struct probe) <objfile>: Remove field.
3797 <address>: Update comment.
3798 (struct bound_probe): New.
3799 (find_probe_by_pc): Return a bound_probe.
3800 (get_probe_address): Declare.
3801 * solib-svr4.c (struct probe_and_action) <address>: New field.
3802 (hash_probe_and_action, equal_probe_and_action): Update.
3803 (register_solib_event_probe): Add address parameter.
3804 (solib_event_probe_at): Update.
3805 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3807 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3808 (stap_get_probe_address): New function.
3809 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3810 (compile_probe_arg): Update.
3811 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3813 (handle_stap_probe): Don't relocate the probe.
3814 (stap_relocate): Remove.
3815 (stap_gen_info_probes_table_values): Update.
3816 (stap_probe_ops): Remove stap_relocate.
3817 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3818 (debug_sym_probe_fns): Update.
3819 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3820 * symtab.c (init_sal): Use memset.
3821 * symtab.h (struct symtab_and_line) <objfile>: New field.
3822 * tracepoint.c (start_tracing, stop_tracing): Update.
3824 2014-03-03 Tom Tromey <tromey@redhat.com>
3826 * probe.h (parse_probes, find_probe_by_pc)
3827 (find_probes_in_objfile): Fix comments.
3829 2014-03-02 Doug Evans <xdje42@gmail.com>
3831 * infrun.c (handle_signal_stop): Replace test for
3832 TARGET_WAITKIND_STOPPED with an assert.
3834 2014-03-02 Doug Evans <xdje42@gmail.com>
3836 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3838 2014-03-02 Doug Evans <xdje42@gmail.com>
3840 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3842 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3844 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3846 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3848 * i386obsd-nat.c: Include "obsd-nat.h".
3849 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3851 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3853 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3855 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3857 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3859 * mips64obsd-nat.c: Include "obsd-nath".
3860 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3862 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3864 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3866 * amd64obsd-nat.c: Include "obsd-nat,h.
3867 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3869 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3871 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3873 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3874 (find_overload_match): Update call to find_oload_champ.
3875 (find_oload_champ_namespace_loop): Likewise
3877 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3879 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3881 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3882 * config/sparc/obsd64.mh: New file.
3883 * sparc64obsd-nat.c: New file.
3885 * obsd-nat.h: New file.
3886 * obsd-nat.c: New file.
3887 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3888 (ALLDEPFILES): Add obsd-nat.c.
3890 2014-02-28 Tom Tromey <tromey@redhat.com>
3892 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3893 * cli-out.h (cli_ui_out_impl): Now const.
3894 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3895 * ui-out.c (struct ui_out) <impl>: Now const.
3896 (default_ui_out_impl): Now const.
3897 (ui_out_new): Make 'impl' parameter const.
3898 * ui-out.h (ui_out_new): Update.
3900 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3902 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3904 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3906 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3908 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 Additional PR 8882 fix.
3911 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3913 2014-02-27 Pedro Alves <palves@redhat.com>
3915 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3918 2014-02-27 Pedro Alves <palves@redhat.com>
3921 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3922 * nat/linux-waitpid.c: Include string.h.
3923 (status_to_str): Moved here and made extern.
3924 * nat/linux-waitpid.h (status_to_str): New declaration.
3926 2014-02-27 Hui Zhu <hui@codesourcery.com>
3929 * infrun.c (ptid_match): Move ...
3930 * common/ptid.c (ptid_match): ... here.
3931 * inferior.h (ptid_match): Move ...
3932 * common/ptid.h (ptid_match): ... here.
3934 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3936 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3937 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3940 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3942 * obsd-tdep.c (obsd_auxv_parse): New function.
3943 (obsd_init_abi): Set auxv_parse.
3945 * gdbarch.sh (auxv_parse): New.
3946 * gdbarch.h: Regenerated.
3947 * gdbarch.c: Regenerated.
3948 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3950 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3952 * guile/scm-value.c (gdbscm_history_append_x): New function.
3953 (value_functions): Add it.
3955 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3957 * dwarf2read.c (attr_value_as_address): New function.
3958 (dwarf2_find_base_address, read_call_site_scope): Use
3959 attr_value_as_address in place of DW_ADDR.
3960 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3961 the low and high addresses. Slight rework of the handling
3962 of the high pc being a constant form, and limit it to
3963 DWARF verson 4 or higher.
3964 (dwarf2_record_block_ranges): Likewise.
3965 (read_partial_die): Likewise.
3966 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3968 2014-02-26 Tom Tromey <tromey@redhat.com>
3970 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3972 2014-02-26 Tom Tromey <tromey@redhat.com>
3974 * elfread.c (elf_read_minimal_symbols): Return early if
3975 minimal symbols have already been read. Add "ei" parameter.
3976 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3977 * minsyms.c (prim_record_minimal_symbol_full): Update.
3978 * objfiles.h (struct objstats) <n_minsyms>: Move...
3979 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3980 * symmisc.c (print_objfile_statistics): Update.
3982 2014-02-26 Tom Tromey <tromey@redhat.com>
3984 * elfread.c (elf_read_minimal_symbols): New function, from
3986 (elf_symfile_read): Call it.
3988 2014-02-26 Tom Tromey <tromey@redhat.com>
3990 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3991 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3992 (lookup_minimal_symbol_solib_trampoline)
3993 (lookup_minimal_symbol_by_pc_section_1)
3994 (lookup_minimal_symbol_and_objfile): Update.
3995 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3996 Don't allocate a minimal symbol if minsyms have already been read.
3997 (build_minimal_symbol_hash_tables): Update.
3998 (install_minimal_symbols): Do nothing if minsyms already read.
3999 Use the per-BFD obstack.
4000 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4001 * objfiles.c (allocate_objfile): Call
4002 terminate_minimal_symbol_table later.
4003 (have_minimal_symbols): Update.
4004 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4005 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4006 Move from struct objfile.
4007 <minsyms_read>: New field.
4008 (struct objfile) <msymbols, minimal_symbol_count,
4009 msymbol_hash, msymbol_demangled_hash>: Move.
4010 (ALL_OBJFILE_MSYMBOLS): Update.
4011 * symfile.c (read_symbols): Set minsyms_read.
4012 (reread_symbols): Update.
4013 * symmisc.c (dump_objfile, dump_msymbols): Update.
4015 2014-02-26 Tom Tromey <tromey@redhat.com>
4017 * minsyms.c (msymbols_sort): Remove.
4018 * minsyms.h (msymbols_sort): Remove.
4019 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4020 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4021 * elfread.c (elf_symtab_read): Don't add section offsets.
4022 * xcoffread.c (record_minimal_symbol): Don't add section offset
4023 to minimal symbol address.
4024 * somread.c (text_offset, data_offset): Remove.
4025 (som_symtab_read): Don't add section offsets to minimal symbol
4027 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4028 Don't add section offsets to minimal symbols.
4029 * coffread.c (coff_symtab_read): Don't add section offsets
4030 to minimal symbol addresses.
4031 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4032 to minimal symbol addresses.
4033 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4034 section offset to minimal symbol addresses.
4035 * mdebugread.c (parse_partial_symbols): Don't add section
4036 offset to minimal symbol addresses.
4037 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4038 offset to minimal symbol addresses.
4040 2014-02-26 Tom Tromey <tromey@redhat.com>
4042 * ada-lang.c (ada_main_name): Update.
4043 (ada_add_standard_exceptions): Update.
4044 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4045 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4046 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4047 * auxv.c (ld_so_xfer_auxv): Update.
4048 * avr-tdep.c (avr_scan_prologue): Update.
4049 * ax-gdb.c (gen_var_ref): Update.
4050 * blockframe.c (get_pc_function_start)
4051 (find_pc_partial_function_gnu_ifunc): Update.
4052 * breakpoint.c (create_overlay_event_breakpoint)
4053 (create_longjmp_master_breakpoint)
4054 (create_std_terminate_master_breakpoint)
4055 (create_exception_master_breakpoint): Update.
4056 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4057 * c-valprint.c (c_val_print): Update.
4058 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4059 * common/agent.c (agent_look_up_symbols): Update.
4060 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4061 * dwarf2loc.c (call_site_to_target_addr): Update.
4062 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4063 * elfread.c (elf_gnu_ifunc_record_cache)
4064 (elf_gnu_ifunc_resolve_by_got): Update.
4065 * findvar.c (default_read_var_value): Update.
4066 * frame.c (inside_main_func): Update.
4067 * frv-tdep.c (frv_frame_this_id): Update.
4068 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4069 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4071 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4072 (hppa_hpux_find_dummy_bpaddr): Update.
4073 * hppa-tdep.c (hppa_symbol_address): Update.
4074 * infcmd.c (until_next_command): Update.
4075 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4077 * linespec.c (minsym_found, add_minsym): Update.
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 * maint.c (maintenance_translate_address): Update.
4086 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4087 (frob_address): New function.
4088 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4089 frob_address. Rename parameter to "pc_in".
4090 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4092 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4094 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4095 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4096 * objc-lang.c (find_objc_msgsend): Update.
4097 * objfiles.c (objfile_relocate1): Update.
4098 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4099 * p-valprint.c (pascal_val_print): Update.
4100 * parse.c (write_exp_msymbol): Update.
4101 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4102 (ppc_elfv2_skip_entrypoint): Update.
4103 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4104 * printcmd.c (build_address_symbolic, msym_info)
4105 (address_info): Update.
4106 * proc-service.c (ps_pglobal_lookup): Update.
4107 * psymtab.c (find_pc_sect_psymtab_closer)
4108 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4109 Change msymbol parameter to bound_minimal_symbol.
4110 * ravenscar-thread.c (get_running_thread_id): Update.
4111 * remote.c (remote_check_symbols): Update.
4112 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4114 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4115 * solib-dsbt.c (lm_base): Update.
4116 * solib-frv.c (lm_base, main_got): Update.
4117 * solib-irix.c (locate_base): Update.
4118 * solib-som.c (som_solib_create_inferior_hook)
4119 (link_map_start): Update.
4120 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4121 * solib-svr4.c (elf_locate_base, enable_break): Update.
4122 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4123 (flush_ea_cache): Update.
4124 * stabsread.c (define_symbol, scan_file_globals): Update.
4125 * stack.c (find_frame_funname): Update.
4126 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4127 (debug_qf_find_pc_sect_symtab): Update.
4128 * symfile.c (simple_read_overlay_table)
4129 (simple_overlay_update): Update.
4130 * symfile.h (struct quick_symbol_functions)
4131 <find_pc_sect_symtab>: Change type of msymbol to
4132 bound_minimal_symbol.
4133 * symmisc.c (dump_msymbols): Update.
4134 * symtab.c (find_pc_sect_symtab_via_partial)
4135 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4136 (search_symbols, print_msymbol_info): Update.
4137 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4138 (MSYMBOL_VALUE_ADDRESS): Redefine.
4139 (BMSYMBOL_VALUE_ADDRESS): New macro.
4140 * tracepoint.c (scope_info): Update.
4141 * tui/tui-disasm.c (tui_find_disassembly_address)
4142 (tui_get_begin_asm_address): Update.
4143 * valops.c (find_function_in_inferior): Update.
4144 * value.c (value_static_field, value_fn_field): Update.
4146 2014-02-26 Tom Tromey <tromey@redhat.com>
4148 * ada-lang.c (ada_update_initial_language): Update.
4149 (ada_main_name, ada_has_this_exception_support): Update.
4150 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4151 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4152 * arm-tdep.c (arm_skip_stub): Update.
4153 * auxv.c (ld_so_xfer_auxv): Update.
4154 * avr-tdep.c (avr_scan_prologue): Update.
4155 * ax-gdb.c (gen_var_ref): Update.
4156 * breakpoint.c (struct breakpoint_objfile_data)
4157 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4158 type to bound_minimal_symbol.
4159 (create_overlay_event_breakpoint)
4160 (create_longjmp_master_breakpoint)
4161 (create_std_terminate_master_breakpoint)
4162 (create_exception_master_breakpoint): Update.
4163 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4164 * c-exp.y (classify_name): Update.
4165 * coffread.c (coff_symfile_read): Update.
4166 * common/agent.c (agent_look_up_symbols): Update.
4167 * d-lang.c (d_main_name): Update.
4168 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4169 * dec-thread.c (enable_dec_thread): Update.
4170 * dwarf2loc.c (call_site_to_target_addr): Update.
4171 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4172 * eval.c (evaluate_subexp_standard): Update.
4173 * findvar.c (struct minsym_lookup_data) <result>: Change type
4174 to bound_minimal_symbol.
4176 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4177 * frame.c (inside_main_func): Update.
4178 * frv-tdep.c (frv_frame_this_id): Update.
4179 * gcore.c (call_target_sbrk): Update.
4180 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4181 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4183 * go-lang.c (go_main_name): Update.
4184 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4185 (hppa_hpux_find_import_stub_for_addr): Update.
4186 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4187 Update. Change return type.
4188 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4190 * jit.c (jit_breakpoint_re_set_internal): Update.
4191 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4193 * linux-nat.c (get_signo): Update.
4194 * linux-thread-db.c (inferior_has_bug): Update
4195 * m32c-tdep.c (m32c_return_value)
4196 (m32c_m16c_address_to_pointer): Update.
4197 * m32r-tdep.c (m32r_frame_this_id): Update.
4198 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4199 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4200 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4201 lookup_minimal_symbol. Change return type.
4202 (lookup_minimal_symbol): Remove.
4203 (lookup_bound_minimal_symbol): Update.
4204 (lookup_minimal_symbol_text): Change return type.
4205 (lookup_minimal_symbol_solib_trampoline): Change return type.
4206 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4207 (lookup_minimal_symbol_solib_trampoline): Change return type.
4208 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4209 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4210 (value_nsstring, find_imps): Update.
4211 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4212 * p-lang.c (pascal_main_name): Update.
4213 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4214 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4215 * proc-service.c (ps_pglobal_lookup): Update.
4216 * ravenscar-thread.c (get_running_thread_msymbol): Change
4218 (has_ravenscar_runtime, get_running_thread_id): Update.
4219 * remote.c (remote_check_symbols): Update.
4220 * sol-thread.c (ps_pglobal_lookup): Update.
4221 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4222 * solib-dsbt.c (lm_base): Update.
4223 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4225 * solib-irix.c (locate_base): Update.
4226 * solib-som.c (som_solib_create_inferior_hook)
4227 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4229 * solib-spu.c (spu_enable_break): Update.
4230 * solib-svr4.c (elf_locate_base, enable_break): Update.
4231 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4232 (flush_ea_cache): Update.
4233 * stabsread.c (define_symbol): Update.
4234 * symfile.c (simple_read_overlay_table): Update.
4235 * symtab.c (find_pc_sect_line): Update.
4236 * tracepoint.c (scope_info): Update.
4237 * tui-disasm.c (tui_get_begin_asm_address): Update.
4238 * value.c (value_static_field): Update.
4240 2014-02-26 Tom Tromey <tromey@redhat.com>
4242 * minsyms.c (prim_record_minimal_symbol_full): Use
4243 SET_MSYMBOL_VALUE_ADDRESS.
4244 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4245 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4246 SET_MSYMBOL_VALUE_ADDRESS.
4247 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4248 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4250 2014-02-26 Tom Tromey <tromey@redhat.com>
4252 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4253 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4254 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4255 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4256 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4257 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4258 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4259 * ada-lang.c (ada_main_name): Update.
4260 (ada_lookup_simple_minsym): Update.
4261 (ada_make_symbol_completion_list): Update.
4262 (ada_add_standard_exceptions): Update.
4263 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4264 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4265 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4266 * arm-tdep.c (skip_prologue_function): Update.
4267 (arm_skip_stack_protector, arm_skip_stub): Update.
4268 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4269 (arm_wince_skip_main_prologue): Update.
4270 * auxv.c (ld_so_xfer_auxv): Update.
4271 * avr-tdep.c (avr_scan_prologue): Update.
4272 * ax-gdb.c (gen_var_ref): Update.
4273 * block.c (call_site_for_pc): Update.
4274 * blockframe.c (get_pc_function_start): Update.
4275 (find_pc_partial_function_gnu_ifunc): Update.
4276 * breakpoint.c (create_overlay_event_breakpoint): Update.
4277 (create_longjmp_master_breakpoint): Update.
4278 (create_std_terminate_master_breakpoint): Update.
4279 (create_exception_master_breakpoint): Update.
4280 (resolve_sal_pc): Update.
4281 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4282 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4284 * c-valprint.c (c_val_print): Update.
4285 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4286 * coffread.c (coff_symfile_read): Update.
4287 * common/agent.c (agent_look_up_symbols): Update.
4288 * dbxread.c (find_stab_function_addr): Update.
4289 (end_psymtab): Update.
4290 * dwarf2loc.c (call_site_to_target_addr): Update.
4291 (func_verify_no_selftailcall): Update.
4292 (tailcall_dump): Update.
4293 (call_site_find_chain_1): Update.
4294 (dwarf_expr_reg_to_entry_parameter): Update.
4295 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4296 (elf_gnu_ifunc_resolve_by_got): Update.
4297 * f-valprint.c (info_common_command): Update.
4298 * findvar.c (read_var_value): Update.
4299 * frame.c (get_prev_frame_1): Update.
4300 (inside_main_func): Update.
4301 * frv-tdep.c (frv_skip_main_prologue): Update.
4302 (frv_frame_this_id): Update.
4303 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4304 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4305 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4306 (gnuv3_skip_trampoline): Update.
4307 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4308 (hppa64_hpux_in_solib_call_trampoline): Update.
4309 (hppa_hpux_skip_trampoline_code): Update.
4310 (hppa64_hpux_search_dummy_call_sequence): Update.
4311 (hppa_hpux_find_import_stub_for_addr): Update.
4312 (hppa_hpux_find_dummy_bpaddr): Update.
4313 * hppa-tdep.c (hppa_symbol_address)
4314 (hppa_lookup_stub_minimal_symbol): Update.
4315 * i386-tdep.c (i386_skip_main_prologue): Update.
4316 (i386_pe_skip_trampoline_code): Update.
4317 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4318 * infcall.c (get_function_name): Update.
4319 * infcmd.c (until_next_command): Update.
4320 * jit.c (jit_breakpoint_re_set_internal): Update.
4321 (jit_inferior_init): Update.
4322 * linespec.c (minsym_found): Update.
4323 (add_minsym): Update.
4324 * linux-fork.c (info_checkpoints_command): Update.
4325 * linux-nat.c (get_signo): Update.
4326 * linux-thread-db.c (inferior_has_bug): Update.
4327 * m32c-tdep.c (m32c_return_value): Update.
4328 (m32c_m16c_address_to_pointer): Update.
4329 (m32c_m16c_pointer_to_address): Update.
4330 * m32r-tdep.c (m32r_frame_this_id): Update.
4331 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4332 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4333 * maint.c (maintenance_translate_address): Update.
4334 * minsyms.c (add_minsym_to_hash_table): Update.
4335 (add_minsym_to_demangled_hash_table): Update.
4336 (msymbol_objfile): Update.
4337 (lookup_minimal_symbol): Update.
4338 (iterate_over_minimal_symbols): Update.
4339 (lookup_minimal_symbol_text): Update.
4340 (lookup_minimal_symbol_by_pc_name): Update.
4341 (lookup_minimal_symbol_solib_trampoline): Update.
4342 (lookup_minimal_symbol_by_pc_section_1): Update.
4343 (lookup_minimal_symbol_and_objfile): Update.
4344 (prim_record_minimal_symbol_full): Update.
4345 (compare_minimal_symbols): Update.
4346 (compact_minimal_symbols): Update.
4347 (build_minimal_symbol_hash_tables): Update.
4348 (install_minimal_symbols): Update.
4349 (terminate_minimal_symbol_table): Update.
4350 (find_solib_trampoline_target): Update.
4351 (minimal_symbol_upper_bound): Update.
4352 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4353 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4354 (mips_skip_pic_trampoline_code): Update.
4355 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4356 * objc-lang.c (selectors_info): Update.
4357 (classes_info): Update.
4358 (find_methods): Update.
4359 (find_imps): Update.
4360 (find_objc_msgsend): Update.
4361 * objfiles.c (objfile_relocate1): Update.
4362 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4363 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4364 * p-valprint.c (pascal_val_print): Update.
4365 * parse.c (write_exp_msymbol): Update.
4366 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4367 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4368 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4369 * printcmd.c (build_address_symbolic): Update.
4371 (address_info): Update.
4372 * proc-service.c (ps_pglobal_lookup): Update.
4373 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4374 (find_pc_sect_psymtab): Update.
4375 * python/py-framefilter.c (py_print_frame): Update.
4376 * ravenscar-thread.c (get_running_thread_id): Update.
4377 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4379 * remote.c (remote_check_symbols): Update.
4380 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4381 (rs6000_skip_trampoline_code): Update.
4382 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4383 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4384 * solib-dsbt.c (lm_base): Update.
4385 * solib-frv.c (lm_base): Update.
4387 * solib-irix.c (locate_base): Update.
4388 * solib-som.c (som_solib_create_inferior_hook): Update.
4389 (som_solib_desire_dynamic_linker_symbols): Update.
4390 (link_map_start): Update.
4391 * solib-spu.c (spu_enable_break): Update.
4392 (ocl_enable_break): Update.
4393 * solib-svr4.c (elf_locate_base): Update.
4394 (enable_break): Update.
4395 * spu-tdep.c (spu_get_overlay_table): Update.
4396 (spu_catch_start): Update.
4397 (flush_ea_cache): Update.
4398 * stabsread.c (define_symbol): Update.
4399 (scan_file_globals): Update.
4400 * stack.c (find_frame_funname): Update.
4401 (frame_info): Update.
4402 * symfile.c (simple_read_overlay_table): Update.
4403 (simple_overlay_update): Update.
4404 * symmisc.c (dump_msymbols): Update.
4405 * symtab.c (fixup_section): Update.
4406 (find_pc_sect_line): Update.
4407 (skip_prologue_sal): Update.
4408 (search_symbols): Update.
4409 (print_msymbol_info): Update.
4410 (rbreak_command): Update.
4411 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4412 (completion_list_objc_symbol): Update.
4413 (default_make_symbol_completion_list_break_on): Update.
4414 * tracepoint.c (scope_info): Update.
4415 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4416 (tui_get_begin_asm_address): Update.
4417 * valops.c (find_function_in_inferior): Update.
4418 * value.c (value_static_field): Update.
4419 (value_fn_field): Update.
4421 2014-02-26 Tom Tromey <tromey@redhat.com>
4423 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4424 bound minimal symbols. Move code that knows about minsym
4426 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4428 * minsyms.h (minimal_symbol_upper_bound): Declare.
4429 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4430 minimal_symbol_upper_bound.
4432 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4434 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4435 Use the type's name if its basic type does not have a tag.
4437 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4439 * dwarf2read.c (read_subrange_type): Add comment.
4441 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4443 * dwarf2read.c (update_enumeration_type_from_children): New
4444 function, mostly extracted from process_structure_scope.
4445 (read_enumeration_type): Call update_enumeration_type_from_children.
4446 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4447 and flag_flag_enum fields.
4449 2014-02-26 Pedro Alves <palves@redhat.com>
4451 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4452 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4453 to_xfer_partial method.
4455 2014-02-26 Pedro Alves <palves@redhat.com>
4457 * target.c (complete_target_initialization): Don't install
4458 default_xfer_partial as to_xfer_partial hook.
4460 (update_current_target): Don't INHERIT nor de_fault
4461 deprecated_xfer_memory. Delete de_fault macro.
4462 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4463 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4464 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4467 2014-02-26 Pedro Alves <palves@redhat.com>
4469 * go32-nat.c (my_write_child): New function.
4470 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4471 (go32_xfer_partial): New function.
4472 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4473 Instead install a to_xfer_partial hook.
4475 2014-02-26 Pedro Alves <palves@redhat.com>
4477 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4478 to_xfer_partial helper. Rewrite.
4479 (procfs_xfer_partial): New function.
4480 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4481 Install a to_xfer_partial hook.
4483 2014-02-26 Pedro Alves <palves@redhat.com>
4485 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4486 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4487 (m32r_xfer_partial): New function.
4488 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4489 Install a to_xfer_partial hook.
4491 2014-02-26 Pedro Alves <palves@redhat.com>
4493 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4495 (mips_xfer_partial): New function.
4496 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4497 hook. Install a to_xfer_partial hook.
4499 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4501 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4502 * gdbtypes.c (create_array_type_with_stride): New function,
4503 renaming create_array_type, but with an added parameter
4504 called "bit_stride".
4505 (create_array_type): Re-implement using
4506 create_array_type_with_stride.
4507 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4508 and DW_AT_bit_stride attributes.
4510 2014-02-26 Pedro Alves <palves@redhat.com>
4512 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4513 task-specific breakpoints.
4515 2014-02-25 Pedro Alves <palves@redhat.com>
4517 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4518 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4520 2014-02-25 Stan Shebs <stan@codesourcery.com>
4522 * defs.h: Annotate comments for Doxygen.
4524 2014-02-25 Tom Tromey <tromey@redhat.com>
4526 * target.h (target_ignore): Don't declare.
4527 * target.c (target_ignore): Remove.
4529 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4532 * auto-load.c (auto_load_objfile_script_1): Change filename to
4535 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4537 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4538 documentation. Adjust prototype to match the target_ops
4539 to_xfer_partial method. Adjust implementation accordingly.
4541 2014-02-25 Hui Zhu <hui@codesourcery.com>
4543 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4546 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4548 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4549 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4550 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4551 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4552 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4553 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4554 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4555 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4557 (rl78_register_type): Use a data pointer type for SP and
4558 new pseudo registers mentioned above. Use a 16 bit integer
4559 type for all other register pairs.
4560 (rl78_register_name, rl78_g10_register_name): Update for
4561 new pseudo registers.
4562 (rl78_pseudo_register_read): Likewise.
4563 (rl78_pseudo_register_write): Likewise.
4564 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4565 to the newly added pseudo registers.
4567 2014-02-24 Doug Evans <dje@google.com>
4569 * value.c (record_latest_value): Fix comment.
4570 * printcmd.c (print_command_1): Remove code to handle -1 return from
4571 record_latest_value.
4573 2014-02-24 Pedro Alves <palves@redhat.com>
4575 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4576 deprecated_xfer_memory hook.
4577 (procfs_xfer_partial): Call procfs_xfer_memory instead
4578 of the deprecated_xfer_memory target hook.
4579 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4582 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4584 * windows-nat.c (windows_xfer_shared_libraries): Return
4585 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4586 requested object is TARGET_OBJECT_LIBRARIES.
4588 2014-02-24 Yao Qi <yao@codesourcery.com>
4590 * target.h (enum target_xfer_status)
4591 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4592 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4594 * corefile.c (memory_error_message): User updated.
4595 * exec.c (section_table_read_available_memory): Likewise.
4596 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4597 * target.c (target_xfer_status_to_string): Likewise.
4598 (raw_memory_xfer_partial): Likewise.
4599 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4600 * valops.c (read_value_memory): Likewise.
4601 * exec.h: Update comments.
4603 2014-02-24 Yao Qi <yao@codesourcery.com>
4605 * target.c (target_xfer_status_to_string): Rename argument err
4607 * target.h (target_xfer_status_to_string): Update declaration.
4608 Replace target_xfer_error_to_string with
4609 target_xfer_status_to_string in comment.
4611 2014-02-24 Yao Qi <yao@codesourcery.com>
4613 * mips-linux-nat.c (super_close): Update its type.
4614 (mips_linux_close): Pass 'self' to super_close.
4616 2014-02-24 Yao Qi <yao@codesourcery.com>
4618 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4619 * corefile.c (read_memory): Adjusted.
4620 * target.c (target_write_with_progress): Adjusted.
4622 2014-02-23 Yao Qi <yao@codesourcery.com>
4626 2013-10-25 Yao Qi <yao@codesourcery.com>
4628 * remote.c (remote_traceframe_info): Return early if
4629 traceframe is not selected.
4631 2013-07-19 Yao Qi <yao@codesourcery.com>
4633 * target.c (update_current_target): Change the default action
4634 of 'to_traceframe_info' from tcomplain to return_zero.
4635 * target.h (struct target_ops) <to_traceframe_info>: Add more
4638 2014-02-23 Yao Qi <yao@codesourcery.com>
4640 * valops.c (read_value_memory): Rewrite it. Call
4641 target_xfer_partial in a loop.
4642 * exec.h (section_table_available_memory): Remove declaration.
4643 Move comments to ...
4644 * exec.c (section_table_available_memory): ... here. Make it
4647 2014-02-23 Yao Qi <yao@codesourcery.com>
4649 * exec.c (section_table_read_available_memory): New function.
4650 * exec.h (section_table_read_available_memory): Declare.
4651 * ctf.c (ctf_xfer_partial): Call
4652 section_table_read_available_memory.
4653 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4655 2014-02-23 Yao Qi <yao@codesourcery.com>
4657 * ctf.c (ctf_xfer_partial): Move code to ...
4658 * exec.c (exec_read_partial_read_only): ... it. New function.
4659 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4660 * tracefile.c: Include "exec.h".
4661 * exec.h (exec_read_partial_read_only): Declare.
4663 2014-02-23 Yao Qi <yao@codesourcery.com>
4665 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4666 (tfile_has_memory): Remove.
4667 (init_tfile_ops): Don't set fields to_has_all_memory and
4668 to_has_memory of tfile_ops.
4669 * tracefile.c (tracefile_has_all_memory): New function.
4670 (tracefile_has_memory): New function.
4671 (init_tracefile_ops): Initialize fields to_has_all_memory and
4672 to_has_memory of 'ops'.
4674 2014-02-23 Yao Qi <yao@codesourcery.com>
4676 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4677 (ctf_thread_alive, ctf_get_trace_status): Remove.
4678 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4680 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4681 (tfile_has_stack, tfile_has_registers): Remove.
4682 (tfile_thread_alive): Remove.
4683 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4685 * tracefile.c (tracefile_has_stack): New function.
4686 (tracefile_has_registers): New function.
4687 (tracefile_thread_alive): New function.
4688 (tracefile_get_trace_status): New function.
4689 (init_tracefile_ops): New function.
4690 * tracefile.h (init_tracefile_ops): Declare.
4692 2014-02-23 Yao Qi <yao@codesourcery.com>
4694 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4695 (O_LARGEFILE): Likewise.
4696 (tfile_ops): Likewise.
4697 (TRACE_HEADER_SIZE): Likewise.
4698 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4699 (cur_data_size): Likewise.
4700 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4701 (tfile_close, tfile_files_info): Likewise.
4702 (tfile_get_trace_status): Likewise.
4703 (tfile_get_tracepoint_status): Likewise.
4704 (tfile_get_traceframe_address): Likewise.
4705 (tfile_trace_find, match_blocktype): Likewise.
4706 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4707 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4708 (tfile_get_trace_state_variable_value): Likewise.
4709 (tfile_has_all_memory, tfile_has_memory): Likewise.
4710 (tfile_has_stack, tfile_has_registers): Likewise.
4711 (tfile_thread_alive, build_traceframe_info): Likewise.
4712 (tfile_traceframe_info, init_tfile_ops): Likewise.
4713 (_initialize_tracepoint): Don't call init_tfile_ops
4714 and add_target_with_completer.
4715 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4716 exec.h, completer.h and filenames.h.
4717 (_initialize_tracefile_tfile): New function.
4719 2014-02-23 Yao Qi <yao@codesourcery.com>
4721 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4723 (HFILES_NO_SRCDIR): Add tracefile.h.
4724 * ctf.c: Include "tracefile.h".
4725 * tracefile.h: New file.
4726 * tracefile.c: New file
4727 * tracefile-tfile.c: New file.
4728 * tracepoint.c: Include "tracefile.h".
4729 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4730 (stop_reason_names): Add const.
4731 (trace_file_writer_xfree): Move it to tracefile.c.
4732 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4733 (trace_save_ctf): Likewise.
4734 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4735 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4736 (tfile_write_header, tfile_write_regblock_type): Likewise.
4737 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4738 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4739 (tfile_write_raw_data, tfile_end): Likewise.
4740 (tfile_trace_file_writer_new): Likewise.
4741 (free_uploaded_tp): Make it extern.
4742 (free_uploaded_tsv): Make it extern.
4743 (_initialize_tracepoint): Move code to register command 'tsave'
4745 * tracepoint.h (stop_reason_names): Declare.
4746 (struct trace_frame_write_ops): Move it to tracefile.h.
4747 (struct trace_file_write_ops): Likewise.
4748 (struct trace_file_writer): Likewise.
4749 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4751 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4754 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4756 (get_cores_used_by_process): New parameter num_cores, use it.
4757 (linux_xfer_osdata_processes): Pass num_cores to it.
4758 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4761 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4763 * target.c (memory_xfer_partial): Fix length arg in call to
4764 breakpoint_xfer_memory.
4766 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4769 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4770 number comes after the + or - signs. Adjust length of register
4771 name to be extracted.
4773 2014-02-20 Tom Tromey <tromey@redhat.com>
4775 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4776 (ada_varobj_ops): Mark "extern".
4778 2014-02-20 Tom Tromey <tromey@redhat.com>
4780 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4782 2014-02-20 Doug Evans <xdje42@gmail.com>
4784 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4785 All callers updated.
4786 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4787 All callers updated.
4788 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4789 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4791 2014-02-20 lin zuojian <manjian2006@gmail.com>
4792 Joel Brobecker <brobecker@adacore.com>
4793 Doug Evans <xdje42@gmail.com>
4796 * dwarf2read.c (struct die_info): New member in_process.
4797 (reset_die_in_process): New function.
4798 (process_die): Set it at the start, reset when returning.
4799 (inherit_abstract_dies): Only call process_die if origin_child_die
4800 not already being processed.
4802 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4804 * windows-nat.c (handle_unload_dll): Add function documentation.
4805 (do_initial_windows_stuff): Add comment explaining why we wait
4806 until after inferior initialization has finished before
4807 processing all DLLs.
4809 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4811 * windows-nat.c (get_module_name): Delete.
4812 (windows_get_exec_module_filename): New function, mostly
4813 inspired from get_module_name.
4814 (windows_pid_to_exec_file): Replace call to get_module_name
4815 by call to windows_get_exec_module_filename.
4817 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4819 * windows-nat.c (handle_load_dll): Rewrite this function's
4820 introductory comment. Remove code using get_module_name
4821 to get the DLL's name.
4823 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4825 * windows-nat.c (get_windows_debug_event): Ignore
4826 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4827 if windows_initialization_done == 0.
4828 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4829 Adjust implementation to always load all DLLs.
4830 (do_initial_windows_stuff): Replace call to
4831 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4833 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4835 * windows-nat.c (_initialize_windows_nat): Deprecate the
4836 "dll-symbols" command. Turn the "add-shared-symbol-files"
4837 and "assf" aliases into commands, and deprecate them as well.
4838 * NEWS: Add entry explaining that "dll-symbols" and its two
4839 aliases are now deprecated.
4841 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4843 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4844 new-line in debug string. Remove trailing spaces.
4846 2014-02-19 Stan Shebs <stan@codesourcery.com>
4848 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4850 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4852 * NEWS: Add entry for the new feature
4853 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4856 2014-02-19 Stan Shebs <stan@codesourcery.com>
4858 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4860 2014-02-19 Pedro Alves <palves@redhat.com>
4862 * common/ptid.h (struct ptid): Mention that process_stratum
4863 targets should prefer ptid.lwp.
4865 2014-02-19 Pedro Alves <palves@redhat.com>
4867 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4868 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4869 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4870 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4871 store remote thread ids rather than ptid.tid.
4872 (_initialize_remote): Adjust.
4874 2014-02-19 Tom Tromey <tromey@redhat.com>
4876 * target.c (target_get_unwinder): Rewrite.
4877 (target_get_tailcall_unwinder): Rewrite.
4878 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4879 (record_btrace_to_get_tailcall_unwinder): New function.
4880 (init_record_btrace_ops): Update.
4881 * target.h (struct target_ops) <to_get_unwinder,
4882 to_get_tailcall_unwinder>: Now function pointers. Use
4883 TARGET_DEFAULT_RETURN.
4885 2014-02-19 Tom Tromey <tromey@redhat.com>
4887 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4889 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4895 * target-delegates.c: Rebuild.
4896 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4897 TARGET_DEFAULT_FUNC.
4898 * target.c (default_target_decr_pc_after_break): Rename from
4899 forward_target_decr_pc_after_break. Simplify.
4900 (target_decr_pc_after_break): Rely on delegation.
4902 2014-02-19 Tom Tromey <tromey@redhat.com>
4904 * target.c (update_current_target): Do not INHERIT to_doc or
4905 to_magic. Do not de_fault to_open or to_close.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * gcore.h (objfile_find_memory_regions): Declare.
4910 * gcore.c (objfile_find_memory_regions): No longer static. Add
4912 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4913 * exec.c: Include gcore.h.
4914 (exec_set_find_memory_regions): Remove.
4915 (exec_find_memory_regions): Remove.
4916 (exec_do_find_memory_regions): Remove.
4917 (init_exec_ops): Update.
4918 * defs.h (exec_set_find_memory_regions): Remove.
4920 2014-02-19 Tom Tromey <tromey@redhat.com>
4922 * target-delegates.c: Rebuild.
4923 * target.h (struct target_ops) <to_extra_thread_info,
4924 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4925 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4926 not 0, in TARGET_DEFAULT_RETURN.
4928 2014-02-19 Tom Tromey <tromey@redhat.com>
4930 * target.c (complete_target_initialization): Remove casts. Use
4931 return_zero_has_execution.
4932 (return_zero): Add "ignore" argument.
4933 (return_zero_has_execution): New function.
4934 (init_dummy_target): Remove casts. Use
4935 return_zero_has_execution.
4937 2014-02-19 Tom Tromey <tromey@redhat.com>
4939 * target.c (update_current_target): Update comments. Do not
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4946 * corelow.c (core_read_description): Delegate when needed.
4947 * remote.c (remote_read_description): Delegate when needed.
4948 * target-delegates.c: Rebuild.
4949 * target.c (target_read_description): Rewrite.
4950 * target.h (struct target_ops) <to_read_description>: Update
4951 comment. Use TARGET_DEFAULT_RETURN.
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target-delegates.c: Rebuild.
4956 * target.c (update_current_target): Don't inherit or default
4958 (find_default_run_target): Check against delegate_can_run.
4959 * target.h (struct target_ops) <to_can_run>: Use
4960 TARGET_DEFAULT_RETURN.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target-delegates.c: Rebuild.
4965 * target.c (target_disconnect): Unconditionally delegate.
4966 * target.h (struct target_ops) <to_disconnect>: Use
4967 TARGET_DEFAULT_NORETURN.
4969 2014-02-19 Tom Tromey <tromey@redhat.com>
4971 * record.c (record_stop): Unconditionally delegate.
4972 * target-delegates.c: Rebuild.
4973 * target.c (target_stop_recording): Unconditionally delegate.
4974 * target.h (struct target_ops) <to_stop_recording>: Use
4975 TARGET_DEFAULT_IGNORE.
4977 2014-02-19 Tom Tromey <tromey@redhat.com>
4979 * target-delegates.c: Rebuild.
4980 * target.c (target_enable_btrace): Unconditionally delegate.
4981 * target.h (struct target_ops) <to_enable_btrace>: Use
4982 TARGET_DEFAULT_NORETURN.
4984 2014-02-19 Tom Tromey <tromey@redhat.com>
4986 * target-delegates.c: Rebuild.
4987 * target.c (target_read_btrace): Unconditionally delegate.
4988 * target.h (struct target_ops) <to_read_btrace>: Use
4989 TARGET_DEFAULT_NORETURN.
4991 2014-02-19 Tom Tromey <tromey@redhat.com>
4993 * target-delegates.c: Rebuild.
4994 * target.c (target_teardown_btrace): Unconditionally delegate.
4995 * target.h (struct target_ops) <to_teardown_btrace>: Use
4996 TARGET_DEFAULT_NORETURN.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * target-delegates.c: Rebuild.
5001 * target.c (target_disable_btrace): Unconditionally delegate.
5002 * target.h (struct target_ops) <to_disable_btrace>: Use
5003 TARGET_DEFAULT_NORETURN.
5005 2014-02-19 Tom Tromey <tromey@redhat.com>
5007 * target-delegates.c: Rebuild.
5008 * target.c (default_search_memory): New function.
5009 (simple_search_memory): Update comment.
5010 (target_search_memory): Unconditionally delegate.
5011 * target.h (struct target_ops) <to_search_memory>: Use
5012 TARGET_DEFAULT_FUNC.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * auxv.c (default_auxv_parse): No longer static.
5017 (target_auxv_parse): Unconditionally delegate.
5018 * auxv.h (default_auxv_parse): Declare.
5019 * target-delegates.c: Rebuild.
5020 * target.c: Include auxv.h.
5021 * target.h (struct target_ops) <to_auxv_parse>: Use
5022 TARGET_DEFAULT_FUNC.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target-delegates.c: Rebuild.
5027 * target.c (target_memory_map): Unconditionally delegate.
5028 * target.h (struct target_ops) <to_memory_map>: Use
5029 TARGET_DEFAULT_RETURN.
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target-delegates.c: Rebuild.
5034 * target.c (target_thread_alive): Unconditionally delegate.
5035 * target.h (struct target_ops) <to_thread_alive>: Use
5036 TARGET_DEFAULT_RETURN.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target-delegates.c: Rebuild.
5041 * target.c (target_save_record): Unconditionally delegate.
5042 * target.h (struct target_ops) <to_save_record>: Use
5043 TARGET_DEFAULT_NORETURN.
5045 2014-02-19 Tom Tromey <tromey@redhat.com>
5047 * target-delegates.c: Rebuild.
5048 * target.c (target_delete_record): Unconditionally delegate.
5049 * target.h (struct target_ops) <to_delete_record>: Use
5050 TARGET_DEFAULT_NORETURN.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (target_record_is_replaying): Unconditionally
5057 * target.h (struct target_ops) <to_record_is_replaying>: Use
5058 TARGET_DEFAULT_RETURN.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * target-delegates.c: Rebuild.
5063 * target.c (target_goto_record_begin): Unconditionally delegate.
5064 * target.h (struct target_ops) <to_goto_record_begin>: Use
5065 TARGET_DEFAULT_NORETURN.
5067 2014-02-19 Tom Tromey <tromey@redhat.com>
5069 * target-delegates.c: Rebuild.
5070 * target.c (target_goto_record_end): Unconditionally delegate.
5071 * target.h (struct target_ops) <to_goto_record_end>: Use
5072 TARGET_DEFAULT_NORETURN.
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target-delegates.c: Rebuild.
5077 * target.c (target_goto_record): Unconditionally delegate.
5078 * target.h (struct target_ops) <to_goto_record>: Use
5079 TARGET_DEFAULT_NORETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (target_insn_history): Unconditionally delegate.
5085 * target.h (struct target_ops) <to_insn_history>: Use
5086 TARGET_DEFAULT_NORETURN.
5088 2014-02-19 Tom Tromey <tromey@redhat.com>
5090 * target-delegates.c: Rebuild.
5091 * target.c (target_insn_history_from): Unconditionally delegate.
5092 * target.h (struct target_ops) <to_insn_history_from>: Use
5093 TARGET_DEFAULT_NORETURN.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.c (target_insn_history_range): Unconditionally delegate.
5099 * target.h (struct target_ops) <to_insn_history_range>: Use
5100 TARGET_DEFAULT_NORETURN.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (target_call_history): Unconditionally delegate.
5106 * target.h (struct target_ops) <to_call_history>: Use
5107 TARGET_DEFAULT_NORETURN.
5109 2014-02-19 Tom Tromey <tromey@redhat.com>
5111 * target-delegates.c: Rebuild.
5112 * target.c (target_call_history_from): Unconditionally delegate.
5113 * target.h (struct target_ops) <to_call_history_from>: Use
5114 TARGET_DEFAULT_NORETURN.
5116 2014-02-19 Tom Tromey <tromey@redhat.com>
5118 * target-delegates.c: Rebuild.
5119 * target.c (target_call_history_range): Unconditionally delegate.
5120 * target.h (struct target_ops) <to_call_history_range>: Use
5121 TARGET_DEFAULT_NORETURN.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target-delegates.c: Rebuild.
5126 * target.c (target_verify_memory): Unconditionally delegate.
5127 * target.h (struct target_ops) <to_verify_memory>: Use
5128 TARGET_DEFAULT_NORETURN.
5130 2014-02-19 Tom Tromey <tromey@redhat.com>
5132 * target-delegates.c: Rebuild.
5133 * target.c (target_core_of_thread): Unconditionally delegate.
5134 * target.h (struct target_ops) <to_core_of_thread>: Use
5135 TARGET_DEFAULT_RETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (target_flash_done): Unconditionally delegate.
5141 * target.h (struct target_ops) <to_flash_done>: Use
5142 TARGET_DEFAULT_NORETURN.
5144 2014-02-19 Tom Tromey <tromey@redhat.com>
5146 * target-delegates.c: Rebuild.
5147 * target.c (target_flash_erase): Unconditionally delegate.
5148 * target.h (struct target_ops) <to_flash_erase>: Use
5149 TARGET_DEFAULT_NORETURN.
5151 2014-02-19 Tom Tromey <tromey@redhat.com>
5153 * target-delegates.c: Rebuild.
5154 * target.c (target_get_section_table): Unconditionally delegate.
5155 * target.h (struct target_ops) <to_get_section_table>: Use
5156 TARGET_DEFAULT_RETURN.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target-delegates.c: Rebuild.
5161 * target.c (target_pid_to_str): Unconditionally delegate.
5162 (init_dummy_target): Don't initialize to_pid_to_str.
5163 (default_pid_to_str): Rename from dummy_pid_to_str.
5164 * target.h (struct target_ops) <to_pid_to_str>: Use
5165 TARGET_DEFAULT_FUNC.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * target-delegates.c: Rebuild.
5170 * target.c (target_find_new_threads): Unconditionally delegate.
5171 * target.h (struct target_ops) <to_find_new_threads>: Use
5172 TARGET_DEFAULT_RETURN.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target-delegates.c: Rebuild.
5177 * target.c (target_program_signals): Unconditionally delegate.
5178 * target.h (struct target_ops) <to_program_signals>: Use
5179 TARGET_DEFAULT_IGNORE.
5181 2014-02-19 Tom Tromey <tromey@redhat.com>
5183 * target-delegates.c: Rebuild.
5184 * target.c (target_pass_signals): Unconditionally delegate.
5185 * target.h (struct target_ops) <to_pass_signals>: Use
5186 TARGET_DEFAULT_IGNORE.
5188 2014-02-19 Tom Tromey <tromey@redhat.com>
5190 * target-delegates.c: Rebuild.
5191 * target.c (default_mourn_inferior): New function.
5192 (target_mourn_inferior): Unconditionally delegate.
5193 * target.h (struct target_ops) <to_mourn_inferior>: Use
5194 TARGET_DEFAULT_FUNC.
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target-delegates.c: Rebuild.
5199 * target.c (default_follow_fork): New function.
5200 (target_follow_fork): Unconditionally delegate.
5201 * target.h (struct target_ops) <to_follow_fork>: Use
5202 TARGET_DEFAULT_FUNC.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target-delegates.c: Rebuild.
5207 * target.c (target_kill): Unconditionally delegate.
5208 * target.h (struct target_ops) <to_kill>: Use
5209 TARGET_DEFAULT_NORETURN.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (target_masked_watch_num_registers): Unconditionally
5216 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5217 Use TARGET_DEFAULT_RETURN.
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * target-delegates.c: Rebuild.
5222 * target.c (target_remove_mask_watchpoint): Unconditionally
5224 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5225 TARGET_DEFAULT_RETURN.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (target_insert_mask_watchpoint): Unconditionally
5232 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5233 TARGET_DEFAULT_RETURN.
5235 2014-02-19 Tom Tromey <tromey@redhat.com>
5237 * target-delegates.c: Rebuild.
5238 * target.c (target_ranged_break_num_registers): Unconditionally
5240 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5241 Use TARGET_DEFAULT_RETURN.
5243 2014-02-19 Tom Tromey <tromey@redhat.com>
5245 * target-delegates.c: Rebuild.
5246 * target.c (target_fetch_registers): Unconditionally delegate.
5247 * target.h (struct target_ops) <to_fetch_registers>: Use
5248 TARGET_DEFAULT_NORETURN.
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
5255 * target.h (struct target_ops) <to_stop>: 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_can_run_breakpoint_commands.
5263 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5264 Use TARGET_DEFAULT_RETURN.
5266 2014-02-19 Tom Tromey <tromey@redhat.com>
5268 * target-delegates.c: Rebuild.
5269 * target.c (update_current_target): Don't inherit or default
5270 to_supports_evaluation_of_breakpoint_conditions.
5271 * target.h (struct target_ops)
5272 <to_supports_evaluation_of_breakpoint_conditions>: Use
5273 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
5280 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
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
5288 * target.h (struct target_ops) <to_can_use_agent>: 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_use_agent>: 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
5304 (return_null): Remove.
5305 * target.h (struct target_ops) <to_traceframe_info>: Use
5306 TARGET_DEFAULT_RETURN.
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * target-delegates.c: Rebuild.
5311 * target.c (update_current_target): Don't inherit or default
5312 to_static_tracepoint_markers_by_strid.
5313 * target.h (struct target_ops)
5314 <to_static_tracepoint_markers_by_strid>: Use
5315 TARGET_DEFAULT_NORETURN.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target-delegates.c: Rebuild.
5320 * target.c (update_current_target): Don't inherit or default
5321 to_static_tracepoint_marker_at.
5322 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5323 Use TARGET_DEFAULT_RETURN.
5325 2014-02-19 Tom Tromey <tromey@redhat.com>
5327 * target-delegates.c: Rebuild.
5328 * target.c (update_current_target): Don't inherit or default
5330 * target.h (struct target_ops) <to_set_permissions>: Use
5331 TARGET_DEFAULT_IGNORE.
5333 2014-02-19 Tom Tromey <tromey@redhat.com>
5335 * target-delegates.c: Rebuild.
5336 * target.c (update_current_target): Don't inherit or default
5338 * target.h (struct target_ops) <to_get_tib_address>: Use
5339 TARGET_DEFAULT_NORETURN.
5341 2014-02-19 Tom Tromey <tromey@redhat.com>
5343 * target-delegates.c: Rebuild.
5344 * target.c (update_current_target): Don't inherit or default
5346 * target.h (struct target_ops) <to_set_trace_notes>: Use
5347 TARGET_DEFAULT_RETURN.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target-delegates.c: Rebuild.
5352 * target.c (update_current_target): Don't initialize
5353 to_set_trace_buffer_size.
5354 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5355 TARGET_DEFAULT_IGNORE.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target-delegates.c: Rebuild.
5360 * target.c (update_current_target): Don't inherit or default
5361 to_set_circular_trace_buffer.
5362 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5363 TARGET_DEFAULT_IGNORE.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target-delegates.c: Rebuild.
5368 * target.c (update_current_target): Don't inherit or default
5369 to_set_disconnected_tracing.
5370 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5371 TARGET_DEFAULT_IGNORE.
5373 2014-02-19 Tom Tromey <tromey@redhat.com>
5375 * target-delegates.c: Rebuild.
5376 * target.c (update_current_target): Don't inherit or default
5377 to_get_min_fast_tracepoint_insn_len.
5378 (return_minus_one): Remove.
5379 * target.h (struct target_ops)
5380 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5382 2014-02-19 Tom Tromey <tromey@redhat.com>
5384 * target-delegates.c: Rebuild.
5385 * target.c (update_current_target): Don't inherit or default
5386 to_get_raw_trace_data.
5387 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5388 TARGET_DEFAULT_NORETURN.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target-delegates.c: Rebuild.
5393 * target.c (update_current_target): Don't inherit or default
5394 to_upload_trace_state_variables.
5395 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5396 Use TARGET_DEFAULT_RETURN.
5398 2014-02-19 Tom Tromey <tromey@redhat.com>
5400 * target-delegates.c: Rebuild.
5401 * target.c (update_current_target): Don't inherit or default
5402 to_upload_tracepoints.
5403 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5404 TARGET_DEFAULT_RETURN.
5406 2014-02-19 Tom Tromey <tromey@redhat.com>
5408 * target-delegates.c: Rebuild.
5409 * target.c (update_current_target): Don't inherit or default
5411 * target.h (struct target_ops) <to_save_trace_data>: Use
5412 TARGET_DEFAULT_NORETURN.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target-delegates.c: Rebuild.
5417 * target.c (update_current_target): Don't inherit or default
5418 to_get_trace_state_variable_value.
5419 * target.h (struct target_ops)
5420 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5422 2014-02-19 Tom Tromey <tromey@redhat.com>
5424 * target-delegates.c: Rebuild.
5425 * target.c (update_current_target): Don't inherit or default
5427 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target-delegates.c: Rebuild.
5432 * target.c (update_current_target): Don't inherit or default
5434 * target.h (struct target_ops) <to_trace_stop>: Use
5435 TARGET_DEFAULT_NORETURN.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target-delegates.c: Rebuild.
5440 * target.c (update_current_target): Don't inherit or default
5441 to_get_tracepoint_status.
5442 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5443 TARGET_DEFAULT_NORETURN.
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * target-delegates.c: Rebuild.
5448 * target.c (update_current_target): Don't inherit or default
5449 to_get_trace_status.
5450 * target.h (struct target_ops) <to_get_trace_status>: Use
5451 TARGET_DEFAULT_RETURN.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target-delegates.c: Rebuild.
5456 * target.c (update_current_target): Don't inherit or default
5458 * target.h (struct target_ops) <to_trace_start>: Use
5459 TARGET_DEFAULT_NORETURN.
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target-delegates.c: Rebuild.
5464 * target.c (update_current_target): Don't inherit or default
5465 to_trace_set_readonly_regions.
5466 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5467 Use TARGET_DEFAULT_NORETURN.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * target-delegates.c: Rebuild.
5472 * target.c (update_current_target): Don't inherit or default
5473 to_disable_tracepoint.
5474 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5475 TARGET_DEFAULT_NORETURN.
5477 2014-02-19 Tom Tromey <tromey@redhat.com>
5479 * target-delegates.c: Rebuild.
5480 * target.c (update_current_target): Don't inherit or default
5481 to_enable_tracepoint.
5482 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5483 TARGET_DEFAULT_NORETURN.
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target-delegates.c: Rebuild.
5488 * target.c (update_current_target): Don't inherit or default
5489 to_download_trace_state_variable.
5490 * target.h (struct target_ops) <to_download_trace_state_variable>:
5491 Use TARGET_DEFAULT_NORETURN.
5493 2014-02-19 Tom Tromey <tromey@redhat.com>
5495 * target-delegates.c: Rebuild.
5496 * target.c (update_current_target): Don't inherit or default
5497 to_can_download_tracepoint.
5498 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5499 TARGET_DEFAULT_RETURN.
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target-delegates.c: Rebuild.
5504 * target.c (update_current_target): Don't inherit or default
5505 to_download_tracepoint.
5506 * target.h (struct target_ops) <to_download_tracepoint>: Use
5507 TARGET_DEFAULT_NORETURN.
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target-delegates.c: Rebuild.
5512 * target.c (update_current_target): Don't inherit or default
5514 * target.h (struct target_ops) <to_trace_init>: Use
5515 TARGET_DEFAULT_RETURN.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5521 to_supports_string_tracing.
5522 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5523 TARGET_DEFAULT_RETURN.
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target-delegates.c: Rebuild.
5528 * target.c (update_current_target): Don't inherit or default
5529 to_supports_enable_disable_tracepoint.
5530 * target.h (struct target_ops)
5531 <to_supports_enable_disable_tracepoint>: Use
5532 TARGET_DEFAULT_RETURN.
5534 2014-02-19 Tom Tromey <tromey@redhat.com>
5536 * target-delegates.c: Rebuild.
5537 * target.c (update_current_target): Don't inherit or default
5538 to_supports_multi_process.
5539 * target.h (struct target_ops) <to_supports_multi_process>: Use
5540 TARGET_DEFAULT_RETURN.
5542 2014-02-19 Tom Tromey <tromey@redhat.com>
5544 * target-delegates.c: Rebuild.
5545 * target.c (update_current_target): Don't inherit or default
5546 to_get_ada_task_ptid.
5547 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5548 TARGET_DEFAULT_FUNC.
5550 2014-02-19 Tom Tromey <tromey@redhat.com>
5552 * target-delegates.c: Rebuild.
5553 * target.c (update_current_target): Don't inherit or default
5554 to_thread_architecture.
5555 * target.h (struct target_ops) <to_thread_architecture>: Use
5556 TARGET_DEFAULT_FUNC.
5558 2014-02-19 Tom Tromey <tromey@redhat.com>
5560 * target-delegates.c: Rebuild.
5561 * target.c (update_current_target): Don't inherit or default
5562 to_execution_direction.
5563 * target.h (struct target_ops) <to_execution_direction>: Use
5564 TARGET_DEFAULT_FUNC.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * target-delegates.c: Rebuild.
5569 * target.c (update_current_target): Don't inherit or default
5570 to_can_execute_reverse.
5571 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5572 TARGET_DEFAULT_RETURN.
5573 (target_can_execute_reverse): Unconditionally delegate.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target-delegates.c: Rebuild.
5578 * target.c (update_current_target): Don't inherit or default
5580 (dummy_goto_bookmark): Remove.
5581 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5582 * target.h (struct target_ops) <to_goto_bookmark>: Use
5583 TARGET_DEFAULT_NORETURN.
5585 2014-02-19 Tom Tromey <tromey@redhat.com>
5587 * target-delegates.c: Rebuild.
5588 * target.c (update_current_target): Don't inherit or default
5590 (dummy_get_bookmark): Remove.
5591 (init_dummy_target): Don't inherit or default to_get_bookmark.
5592 * target.h (struct target_ops) <to_get_bookmark>: Use
5593 TARGET_DEFAULT_NORETURN
5595 2014-02-19 Tom Tromey <tromey@redhat.com>
5597 * target-delegates.c: Rebuild.
5598 * target.c (update_current_target): Don't inherit or default
5599 to_make_corefile_notes.
5600 (init_dummy_target): Don't initialize to_make_corefile_notes.
5601 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5602 TARGET_DEFAULT_FUNC.
5604 2014-02-19 Tom Tromey <tromey@redhat.com>
5606 * target-delegates.c: Rebuild.
5607 * target.c (update_current_target): Don't inherit or default
5608 to_find_memory_regions.
5609 (init_dummy_target): Don't initialize to_find_memory_regions.
5610 * target.h (struct target_ops) <to_find_memory_regions>: Use
5611 TARGET_DEFAULT_FUNC.
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_log_command>: Use
5619 TARGET_DEFAULT_IGNORE.
5620 (target_log_command): Unconditionally delegate.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target-delegates.c: Rebuild.
5625 * target.c (update_current_target): Don't inherit or default
5626 to_pid_to_exec_file.
5627 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5628 TARGET_DEFAULT_RETURN.
5630 2014-02-19 Tom Tromey <tromey@redhat.com>
5632 * target-delegates.c: Rebuild.
5633 * target.c (update_current_target): Don't inherit or default
5635 (target_thread_name): Unconditionally delegate.
5636 * target.h (struct target_ops) <to_thread_name>: Use
5637 TARGET_DEFAULT_RETURN.
5639 2014-02-19 Tom Tromey <tromey@redhat.com>
5641 * target-delegates.c: Rebuild.
5642 * target.c (update_current_target): Don't inherit or default
5643 to_extra_thread_info.
5644 * target.h (struct target_ops) <to_extra_thread_info>: Use
5645 TARGET_DEFAULT_RETURN.
5647 2014-02-19 Tom Tromey <tromey@redhat.com>
5649 * target-delegates.c: Rebuild.
5650 * target.c (update_current_target): Don't inherit or default
5652 * target.h (struct target_ops) <to_has_exited>: Use
5653 TARGET_DEFAULT_RETURN..
5655 2014-02-19 Tom Tromey <tromey@redhat.com>
5657 * target-delegates.c: Rebuild.
5658 * target.c (update_current_target): Don't inherit or default
5659 to_set_syscall_catchpoint.
5660 (return_one): Remove.
5661 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5662 TARGET_DEFAULT_RETURN.
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * target-delegates.c: Rebuild.
5667 * target.c (update_current_target): Don't inherit or default
5668 to_insert_exec_catchpoint.
5669 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5670 TARGET_DEFAULT_RETURN.
5672 2014-01-08 Tom Tromey <tromey@redhat.com>
5674 * target-delegates.c: Rebuild.
5675 * target.c (update_current_target): Don't inherit or default
5676 to_insert_exec_catchpoint.
5677 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5678 TARGET_DEFAULT_RETURN.
5680 2014-02-19 Tom Tromey <tromey@redhat.com>
5682 * target-delegates.c: Rebuild.
5683 * target.c (update_current_target): Don't inherit or default
5684 to_remove_vfork_catchpoint.
5685 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5686 TARGET_DEFAULT_RETURN.
5688 2014-02-19 Tom Tromey <tromey@redhat.com>
5690 * target-delegates.c: Rebuild.
5691 * target.c (update_current_target): Don't inherit or default
5692 to_insert_vfork_catchpoint.
5693 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5694 TARGET_DEFAULT_RETURN.
5696 2014-02-19 Tom Tromey <tromey@redhat.com>
5698 * target-delegates.c: Rebuild.
5699 * target.c (update_current_target): Don't inherit or default
5700 to_remove_fork_catchpoint.
5701 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5702 TARGET_DEFAULT_RETURN.
5704 2014-02-19 Tom Tromey <tromey@redhat.com>
5706 * target-delegates.c: Rebuild.
5707 * target.c (update_current_target): Don't inherit or default
5708 to_insert_fork_catchpoint.
5709 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5710 TARGET_DEFAULT_RETURN.
5712 2014-02-19 Tom Tromey <tromey@redhat.com>
5714 * target-delegates.c: Rebuild.
5715 * target.c (update_current_target): Don't inherit or default
5716 to_post_startup_inferior.
5717 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5718 TARGET_DEFAULT_IGNORE.
5720 2014-02-19 Tom Tromey <tromey@redhat.com>
5722 * target-delegates.c: Rebuild.
5723 * target.c (update_current_target): Don't inherit or default
5725 * target.h (struct target_ops) <to_load>: Use
5726 TARGET_DEFAULT_NORETURN.
5728 2014-02-19 Tom Tromey <tromey@redhat.com>
5730 * target-delegates.c: Rebuild.
5731 * target.c (update_current_target): Don't inherit or default
5733 * target.h (struct target_ops) <to_terminal_info>: Use
5734 TARGET_DEFAULT_FUNC.
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target-delegates.c: Rebuild.
5739 * target.c (update_current_target): Don't inherit or default
5740 to_terminal_save_ours.
5741 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5742 TARGET_DEFAULT_IGNORE.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target-delegates.c: Rebuild.
5747 * target.c (update_current_target): Don't inherit or default
5749 * target.h (struct target_ops) <to_terminal_ours>: Use
5750 TARGET_DEFAULT_IGNORE.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target-delegates.c: Rebuild.
5755 * target.c (update_current_target): Don't inherit or default
5756 to_terminal_ours_for_output.
5757 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5758 TARGET_DEFAULT_IGNORE.
5760 2014-02-19 Tom Tromey <tromey@redhat.com>
5762 * target-delegates.c: Rebuild.
5763 * target.c (update_current_target): Don't inherit or default
5764 to_terminal_inferior.
5765 * target.h (struct target_ops) <to_terminal_inferior>: Use
5766 TARGET_DEFAULT_IGNORE.
5768 2014-02-19 Tom Tromey <tromey@redhat.com>
5770 * target-delegates.c: Rebuild.
5771 * target.c (update_current_target): Don't inherit or default
5773 * target.h (struct target_ops) <to_terminal_init>: Use
5774 TARGET_DEFAULT_IGNORE.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.c (update_current_target): Don't inherit or default
5780 to_can_accel_watchpoint_condition.
5781 * target.h (struct target_ops)
5782 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target-delegates.c: Rebuild.
5787 * target.c (update_current_target): Don't inherit or default
5788 to_region_ok_for_hw_watchpoint.
5789 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5790 Use TARGET_DEFAULT_FUNC.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target-delegates.c: Rebuild.
5795 * target.c (update_current_target): Don't inherit or default
5796 to_watchpoint_addr_within_range.
5797 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5798 Use TARGET_DEFAULT_FUNC.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target-delegates.c: Rebuild.
5803 * target.c (update_current_target): Don't inherit or default
5804 to_remove_watchpoint.
5805 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5806 TARGET_DEFAULT_NORETURN.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (update_current_target): Don't inherit or default
5812 to_insert_watchpoint.
5813 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5814 TARGET_DEFAULT_RETURN.
5816 2014-02-19 Tom Tromey <tromey@redhat.com>
5818 * target-delegates.c: Rebuild.
5819 * target.c (update_current_target): Don't inherit or default
5820 to_remove_hw_breakpoint.
5821 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5822 TARGET_DEFAULT_RETURN.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * target-delegates.c: Rebuild.
5827 * target.c (update_current_target): Don't inherit or default
5828 to_insert_hw_breakpoint.
5829 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5830 TARGET_DEFAULT_RETURN.
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target-delegates.c: Rebuild.
5835 * target.c (update_current_target): Don't inherit or default
5836 to_can_use_hw_breakpoint.
5837 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5838 TARGET_DEFAULT_RETURN.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target-delegates.c: Rebuild.
5843 * target.c (update_current_target): Don't inherit or default
5845 * target.h (struct target_ops) <to_files_info>: Use
5846 TARGET_DEFAULT_IGNORE.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target-delegates.c: Rebuild.
5851 * target.c (update_current_target): Don't inherit or default
5853 * target.h (struct target_ops) <to_store>: Use
5854 TARGET_DEFAULT_NORETURN.
5856 2014-02-19 Tom Tromey <tromey@redhat.com>
5858 * target-delegates.c: Rebuild.
5859 * target.c (update_current_target): Don't inherit or default
5861 * target.h (struct target_ops) <to_post_attach>: Use
5862 TARGET_DEFAULT_IGNORE.
5864 2014-02-19 Tom Tromey <tromey@redhat.com>
5866 * target-delegates.c: Rebuild.
5867 * target.c (update_current_target): Don't inherit or default
5869 (default_rcmd): New function.
5870 (do_monitor_command): Unconditionally delegate.
5871 * target.h (struct target_ops) <to_rmcd>: Use
5872 TARGET_DEFAULT_FUNC.
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target-delegates.c: Rebuild.
5877 * target.c (init_dummy_target): Don't initialize to_attach.
5878 (target_attach): Unconditionally delegate.
5879 * target.h (struct target_ops) <to_attach>: Use
5880 TARGET_DEFAULT_FUNC.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target-delegates.c: Rebuild.
5885 * target.c (target_detach): Unconditionally delegate.
5886 (init_dummy_target): Don't initialize to_detach.
5887 * target.h (struct target_ops) <to_detach>: Use
5888 TARGET_DEFAULT_IGNORE.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5894 (target_augmented_libraries_svr4_read): Add argument.
5895 * target.c (update_current_target): Update.
5896 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5899 2014-02-19 Tom Tromey <tromey@redhat.com>
5901 * target.h (struct target_ops) <to_call_history_range>: Add
5903 * target.c (target_call_history_range): Add argument.
5904 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5906 (record_btrace_call_history_from): Update.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target.h (struct target_ops) <to_call_history_from>: Add
5912 * target.c (target_call_history_from): Add argument.
5913 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_call_history>: Add argument.
5919 * target.c (target_call_history): Add argument.
5920 * record-btrace.c (record_btrace_call_history): Add 'self'
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * target.h (struct target_ops) <to_insn_history_range>: Add
5927 * target.c (target_insn_history_range): Add argument.
5928 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5930 (record_btrace_insn_history_from): Update.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * target.h (struct target_ops) <to_insn_history_from>: Add
5936 * target.c (target_insn_history_from): Add argument.
5937 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5942 * target.h (struct target_ops) <to_insn_history>: Add argument.
5943 * target.c (target_insn_history): Add argument.
5944 * record-btrace.c (record_btrace_insn_history): Add 'self'
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target.h (struct target_ops) <to_goto_record>: Add argument.
5950 * target.c (target_goto_record): Add argument.
5951 * record-full.c (record_full_goto): Add 'self' argument.
5952 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5956 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5957 * target.c (target_goto_record_end): Add argument.
5958 * record-full.c (record_full_goto_end): Add 'self' argument.
5959 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5961 2014-02-19 Tom Tromey <tromey@redhat.com>
5963 * target.h (struct target_ops) <to_goto_record_begin>: Add
5965 * target.c (target_goto_record_begin): Add argument.
5966 * record-full.c (record_full_goto_begin): Add 'self' argument.
5967 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_record_is_replaying>: Add
5974 * target.c (target_record_is_replaying): Add argument.
5975 * record-full.c (record_full_is_replaying): Add 'self' argument.
5976 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5978 (record_btrace_xfer_partial, record_btrace_store_registers)
5979 (record_btrace_prepare_to_store, record_btrace_resume)
5980 (record_btrace_wait, record_btrace_decr_pc_after_break)
5981 (record_btrace_find_new_threads, record_btrace_thread_alive):
5984 2014-02-19 Tom Tromey <tromey@redhat.com>
5986 * target.h (struct target_ops) <to_delete_record>: Add argument.
5987 * target.c (target_delete_record): Add argument.
5988 * record-full.c (record_full_delete): Add 'self' argument.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_save_record>: Add argument.
5993 * target.c (target_save_record): Add argument.
5994 * record-full.c (record_full_save): Add 'self' argument.
5995 (record_full_save): Add 'self' argument.
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target.h (struct target_ops) <to_info_record>: Add argument.
6000 * target.c (target_info_record): Add argument.
6001 * record.c (info_record_command): Add argument.
6002 * record-full.c (record_full_info): Add 'self' argument.
6003 * record-btrace.c (record_btrace_info): Add 'self' argument.
6005 2014-02-19 Tom Tromey <tromey@redhat.com>
6007 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6008 * target.c (target_stop_recording): Add argument.
6009 * record.c (record_stop): Add argument.
6010 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6015 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6016 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6017 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6019 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6020 (_initialize_amd64_linux_nat): Use it.
6021 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6022 (_initialize_i386_linux_nat): Use it.
6024 2014-02-19 Tom Tromey <tromey@redhat.com>
6026 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6027 * target.c (target_teardown_btrace): Add argument.
6028 * remote.c (remote_teardown_btrace): Add 'self' argument.
6029 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6031 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6037 * target.c (target_disable_btrace): Add argument.
6038 * remote.c (remote_disable_btrace): Add 'self' argument.
6039 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6041 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6044 2014-02-19 Tom Tromey <tromey@redhat.com>
6046 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6047 * target.c (target_enable_btrace): Add argument.
6048 * remote.c (remote_enable_btrace): Add 'self' argument.
6049 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6051 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6054 2014-02-19 Tom Tromey <tromey@redhat.com>
6056 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6057 (target_can_use_agent): Add argument.
6058 * target.c (update_current_target): Update.
6059 * remote.c (remote_can_use_agent): Add 'self' argument.
6060 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6062 2014-02-19 Tom Tromey <tromey@redhat.com>
6064 * target.h (struct target_ops) <to_use_agent>: Add argument.
6065 (target_use_agent): Add argument.
6066 * target.c (update_current_target): Update.
6067 * remote.c (remote_use_agent): Add 'self' argument.
6068 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6073 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6074 (target_traceframe_info): Add argument.
6075 * target.c (update_current_target): Update.
6076 * remote.c (remote_traceframe_info): Add 'self' argument.
6077 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target.h (target_static_tracepoint_markers_by_strid): Add
6083 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6085 * target.c (update_current_target): Update.
6086 * remote.c (struct target_ops)
6087 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6088 * linux-nat.c (struct target_ops)
6089 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6095 (target_static_tracepoint_marker_at): Add argument.
6096 * target.c (update_current_target): Update.
6097 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6100 2014-02-19 Tom Tromey <tromey@redhat.com>
6102 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6103 (target_set_permissions): Add argument.
6104 * target.c (update_current_target): Update.
6105 * remote.c (remote_set_permissions): Add 'self' argument.
6106 (remote_start_remote): Update.
6108 2014-02-19 Tom Tromey <tromey@redhat.com>
6110 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6111 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6112 (target_get_tib_address): Add argument.
6113 * target.c (update_current_target): Update.
6114 * remote.c (remote_get_tib_address): Add 'self' argument.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6119 (target_set_trace_notes): Add argument.
6120 * target.c (update_current_target): Update.
6121 * remote.c (remote_set_trace_notes): Add 'self' argument.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6127 (target_set_trace_buffer_size): Add argument.
6128 * target.c (update_current_target): Update.
6129 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6135 (target_set_circular_trace_buffer): Add argument.
6136 * target.c (update_current_target): Update.
6137 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6140 2014-02-19 Tom Tromey <tromey@redhat.com>
6142 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6144 (target_set_disconnected_tracing): Add argument.
6145 * target.c (update_current_target): Update.
6146 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target.h (struct target_ops)
6151 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6152 (target_get_min_fast_tracepoint_insn_len): Add argument.
6153 * target.c (update_current_target): Update.
6154 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6161 (target_get_raw_trace_data): Add argument.
6162 * target.c (update_current_target): Update.
6163 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6169 (target_upload_trace_state_variables): Add argument.
6170 * target.c (update_current_target): Update.
6171 * remote.c (remote_upload_trace_state_variables): Add 'self'
6173 (remote_start_remote): Update.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6179 (target_upload_tracepoints): Add argument.
6180 * target.c (update_current_target): Update.
6181 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6182 (remote_start_remote): Update.
6184 2014-02-19 Tom Tromey <tromey@redhat.com>
6186 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6187 (target_save_trace_data): Add argument.
6188 * target.c (update_current_target): Update.
6189 * remote.c (remote_save_trace_data): Add 'self' argument.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6195 * target.h (struct target_ops)
6196 <to_get_trace_state_variable_value>: Add argument.
6197 (target_get_trace_state_variable_value): Add argument.
6198 * target.c (update_current_target): Update.
6199 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6201 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6203 2014-02-19 Tom Tromey <tromey@redhat.com>
6205 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6206 * target.h (struct target_ops) <to_trace_find>: Add argument.
6207 (target_trace_find): Add argument.
6208 * target.c (update_current_target): Update.
6209 * remote.c (remote_trace_find): Add 'self' argument.
6210 * ctf.c (ctf_trace_find): Add 'self' argument.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6215 (target_trace_stop): Add argument.
6216 * target.c (update_current_target): Update.
6217 * remote.c (remote_trace_stop): Add 'self' argument.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6222 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6224 (target_get_tracepoint_status): Add argument.
6225 * target.c (update_current_target): Update.
6226 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6231 * target.h (struct target_ops) <to_get_trace_status>: Add
6233 (target_get_trace_status): Add argument.
6234 * target.c (update_current_target): Update.
6235 * remote.c (remote_get_trace_status): Add 'self' argument.
6236 (remote_start_remote, remote_can_download_tracepoint): Update.
6237 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target.h (struct target_ops) <to_trace_start>: Add argument.
6242 (target_trace_start): Add argument.
6243 * target.c (update_current_target): Update.
6244 * remote.c (remote_trace_start): Add 'self' argument.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6250 (target_trace_set_readonly_regions): Add argument.
6251 * target.c (update_current_target): Update.
6252 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6259 (target_disable_tracepoint): Add argument.
6260 * target.c (update_current_target): Update.
6261 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6267 (target_enable_tracepoint): Add argument.
6268 * target.c (update_current_target): Update.
6269 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * target.h (struct target_ops) <to_download_trace_state_variable>:
6275 (target_download_trace_state_variable): Add argument.
6276 * target.c (update_current_target): Update.
6277 * remote.c (remote_download_trace_state_variable): Add 'self'
6280 2014-02-19 Tom Tromey <tromey@redhat.com>
6282 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6284 (target_can_download_tracepoint): Add argument.
6285 * target.c (update_current_target): Update.
6286 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target.h (struct target_ops) <to_download_tracepoint>: Add
6292 (target_download_tracepoint): Add argument.
6293 * target.c (update_current_target): Update.
6294 * remote.c (remote_download_tracepoint): Add 'self' argument.
6296 2014-02-19 Tom Tromey <tromey@redhat.com>
6298 * target.h (struct target_ops) <to_trace_init>: Add argument.
6299 (target_trace_init): Add argument.
6300 * target.c (update_current_target): Update.
6301 * remote.c (remote_trace_init): Add 'self' argument.
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6305 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6306 * target.c (target_fileio_readlink): Add argument.
6307 * remote.c (remote_hostio_readlink): Add 'self' argument.
6308 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6313 * target.c (target_fileio_unlink): Add argument.
6314 * remote.c (remote_hostio_unlink): Add 'self' argument.
6315 (remote_file_delete): Update.
6316 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6321 * target.c (target_fileio_close): Add argument.
6322 * remote.c (remote_hostio_close): Add 'self' argument.
6323 (remote_hostio_close_cleanup): Update.
6324 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6326 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6331 * target.c (target_fileio_pread): Add argument.
6332 * remote.c (remote_hostio_pread): Add 'self' argument.
6333 (remote_bfd_iovec_pread, remote_file_get): Update.
6334 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6339 * target.c (target_fileio_pwrite): Add argument.
6340 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6341 (remote_file_put): Update.
6342 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6347 * target.c (target_fileio_open): Add argument.
6348 * remote.c (remote_hostio_open): Add 'self' argument.
6349 (remote_bfd_iovec_open): Add 'self' argument.
6350 (remote_file_put): Add 'self' argument.
6351 (remote_file_get): Add 'self' argument.
6352 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6358 (target_can_run_breakpoint_commands): Add argument.
6359 * target.c (update_current_target): Update.
6360 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6362 (remote_insert_breakpoint): Add 'self' argument.
6363 (remote_insert_hw_breakpoint): Add 'self' argument.
6364 (remote_can_run_breakpoint_commands): Add 'self' argument.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target.h (struct target_ops)
6369 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6370 (target_supports_evaluation_of_breakpoint_conditions): Add
6372 * target.c (update_current_target): Update.
6373 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6375 (remote_insert_breakpoint): Add 'self' argument.
6376 (remote_insert_hw_breakpoint): Add 'self' argument.
6377 (remote_supports_cond_breakpoints): Add 'self' argument.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6383 (target_supports_string_tracing): Add argument.
6384 * target.c (update_current_target): Update.
6385 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target.h (struct target_ops)
6390 <to_supports_disable_randomization>: Add argument.
6391 * target.c (find_default_supports_disable_randomization): Add
6393 (target_supports_disable_randomization): Add argument.
6394 (find_default_supports_disable_randomization): Add 'self'
6396 * remote.c (extended_remote_supports_disable_randomization): Add
6398 (remote_supports_disable_randomization): Add 'self' argument.
6399 (extended_remote_create_inferior): Update.
6400 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * target.h (struct target_ops)
6406 <to_supports_enable_disable_tracepoint>: Add argument.
6407 (target_supports_enable_disable_tracepoint): Add argument.
6408 * target.c (update_current_target): Update.
6409 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_supports_multi_process>: Add
6416 (target_supports_multi_process): Add argument.
6417 * target.c (update_current_target): Update.
6418 * remote.c (remote_supports_multi_process): Add 'self' argument.
6419 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6421 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target.h (struct target_ops) <to_execution_direction>: Add
6428 (target_execution_direction): Add argument.
6429 * target.c (default_execution_direction): Add 'self' argument.
6430 * record-full.c (record_full_execution_direction): Add 'self'
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6437 (target_can_execute_reverse): Add argument.
6438 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6439 * record-full.c (record_full_can_execute_reverse): Add 'self'
6441 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6446 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6447 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6449 (target_get_ada_task_ptid): Add argument.
6450 * target.c (update_current_target): Update.
6451 (default_get_ada_task_ptid): Add 'self' argument.
6452 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6453 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6454 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6456 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6458 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6460 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6462 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6463 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6469 (target_goto_bookmark): Add argument.
6470 * target.c (dummy_goto_bookmark): Add 'self' argument.
6471 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6475 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6476 (target_get_bookmark): Add argument.
6477 * target.c (dummy_get_bookmark): Add 'self' argument.
6478 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6484 (target_make_corefile_notes): Add argument.
6485 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6486 * procfs.c (procfs_make_note_section): Add 'self' argument.
6487 (procfs_make_note_section): Add 'self' argument.
6488 (procfs_make_note_section): Add 'self' argument.
6489 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6491 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6492 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6493 * exec.c (exec_make_note_section): Add 'self' argument.
6494 (exec_make_note_section): Add 'self' argument.
6496 2014-02-19 Tom Tromey <tromey@redhat.com>
6498 * target.h (struct target_ops) <to_find_memory_regions>: Add
6500 (target_find_memory_regions): Add argument.
6501 * target.c (dummy_find_memory_regions): Add 'self' argument.
6502 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6503 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6504 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6505 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6506 * exec. (exec_do_find_memory_regions): New global.
6507 (exec_set_find_memory_regions): Rewrite.
6508 (exec_find_memory_regions): New function.
6509 (init_exec_ops): Use exec_find_memory_regions.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target.h (struct target_ops) <to_supports_non_stop>: Add
6515 * target.c (find_default_supports_non_stop): Add argument.
6516 (target_supports_non_stop): Add argument.
6517 (find_default_supports_non_stop): Add 'self' argument.
6518 * remote.c (remote_supports_non_stop): Add 'self' argument.
6519 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6523 * target.h (struct target_ops) <to_log_command>: Add argument.
6524 (target_log_command): Add argument.
6525 * serial.h (serial_log_command): Add 'self' argument.
6526 * serial.c (serial_log_command): Add 'self' argument.
6528 2014-02-19 Tom Tromey <tromey@redhat.com>
6530 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6531 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6533 (target_pid_to_exec_file): Add argument.
6534 * target.c (debug_to_pid_to_exec_file): Add argument.
6535 (update_current_target): Update.
6536 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6537 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6538 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6539 (linux_handle_extended_wait): Update.
6540 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6541 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6542 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6543 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6545 2014-02-19 Tom Tromey <tromey@redhat.com>
6547 * target.h (struct target_ops) <to_rcmd>: Add argument.
6548 (target_rcmd): Add argument.
6549 * target.c (debug_to_rcmd): Add argument.
6550 (update_current_target, do_monitor_command): Update.
6551 * remote.c (remote_rcmd): Add 'self' argument.
6552 * monitor.c (monitor_rcmd): Add 'self' argument.
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * windows-nat.c (windows_stop): Add 'self' argument.
6557 * target.h (struct target_ops) <to_stop>: Add argument.
6558 * target.c (target_stop): Add argument.
6559 (debug_to_stop): Add argument.
6560 (update_current_target): Update.
6561 * remote.c (remote_stop): Add 'self' argument.
6562 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6563 (gdbsim_cntrl_c): Update.
6564 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6565 * procfs.c (procfs_stop): Add 'self' argument.
6566 * nto-procfs.c (procfs_stop): Add 'self' argument.
6567 * monitor.c (monitor_stop): Add 'self' argument.
6568 (monitor_open): Update.
6569 * linux-nat.c (linux_nat_stop): Add argument.
6570 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6571 * gnu-nat.c (gnu_stop): Add 'self' argument.
6572 * darwin-nat.c (darwin_stop): Add 'self' argument.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target.h (struct target_ops) <to_thread_name>: Add argument.
6577 * target.c (target_thread_name): Add argument.
6578 (update_current_target): Update.
6579 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6581 2014-02-19 Tom Tromey <tromey@redhat.com>
6583 * target.h (struct target_ops) <to_extra_thread_info>: Add
6585 (target_extra_thread_info): Add argument.
6586 * target.c (update_current_target): Update.
6587 * remote.c (remote_threads_extra_info): Add 'self' argument.
6588 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6590 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6591 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6592 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6594 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6596 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6598 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6601 2014-02-19 Tom Tromey <tromey@redhat.com>
6603 * target.h (struct target_ops) <to_program_signals>: Add argument.
6604 * target.c (target_program_signals): Add argument.
6605 * remote.c (remote_program_signals): Add 'self' argument.
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6610 * target.c (target_pass_signals): Add argument.
6611 * remote.c (remote_pass_signals): Add 'self' argument.
6612 (remote_start_remote): Update.
6613 * procfs.c (procfs_pass_signals): Add 'self' argument.
6614 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6615 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6616 (linux_nat_create_inferior, linux_nat_attach): Update.
6618 2014-02-19 Tom Tromey <tromey@redhat.com>
6620 * windows-nat.c (windows_can_run): Add 'self' argument.
6621 * target.h (struct target_ops) <to_can_run>: Add argument.
6622 (target_can_run): Add argument.
6623 * target.c (debug_to_can_run): Add argument.
6624 (update_current_target): Update.
6625 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6626 * inf-child.c (inf_child_can_run): Add 'self' argument.
6627 * go32-nat.c (go32_can_run): Add 'self' argument.
6629 2014-02-19 Tom Tromey <tromey@redhat.com>
6631 * target.h (struct target_ops) <to_has_exited>: Add argument.
6632 (target_has_exited): Add argument.
6633 * target.c (debug_to_has_exited): Add argument.
6634 (update_current_target): Update.
6636 2014-02-19 Tom Tromey <tromey@redhat.com>
6638 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6640 (target_set_syscall_catchpoint): Add argument.
6641 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6643 * target.c (update_current_target): Update.
6645 2014-02-19 Tom Tromey <tromey@redhat.com>
6647 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6649 (target_remove_exec_catchpoint): Add argument.
6650 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6651 (update_current_target): Update.
6652 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6659 (target_insert_exec_catchpoint): Add argument.
6660 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6661 (update_current_target): Update.
6662 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6665 2014-02-19 Tom Tromey <tromey@redhat.com>
6667 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6669 (target_remove_vfork_catchpoint): Add argument.
6670 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6671 (update_current_target): Update.
6672 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6675 2014-02-19 Tom Tromey <tromey@redhat.com>
6677 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6679 (target_insert_vfork_catchpoint): Add argument.
6680 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6681 (update_current_target): Update.
6682 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6689 (target_remove_fork_catchpoint): Add argument.
6690 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6691 (update_current_target): Update.
6692 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6695 2014-02-19 Tom Tromey <tromey@redhat.com>
6697 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6699 (target_insert_fork_catchpoint): Add argument.
6700 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6701 (update_current_target): Update.
6702 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6705 2014-02-19 Tom Tromey <tromey@redhat.com>
6707 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6709 (target_post_startup_inferior): Add argument.
6710 * target.c (debug_to_post_startup_inferior): Add argument.
6711 (update_current_target): Update.
6712 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6714 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6716 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6718 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6720 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6722 (super_post_startup_inferior): Likewise.
6723 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6725 (super_post_startup_inferior): Likewise.
6726 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6727 Add 'self' argument.
6728 (super_post_startup_inferior): Likewise.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * target.h (struct target_ops) <to_load>: Add argument.
6733 * target.c (target_load): Add argument.
6734 (debug_to_load): Add argument.
6735 (update_current_target): Update.
6736 * remote.c (remote_load): Add 'self' argument.
6737 * remote-sim.c (gdbsim_load): Add 'self' argument.
6738 * remote-mips.c (mips_load): Add 'self' argument.
6739 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6740 * monitor.c (monitor_load): Add 'self' argument.
6741 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6743 2014-02-19 Tom Tromey <tromey@redhat.com>
6745 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6746 (target_terminal_info): Add argument.
6747 * target.c (debug_to_terminal_info): Add argument.
6748 (default_terminal_info): Likewise.
6749 * inflow.c (child_terminal_info): Add 'self' argument.
6750 * inferior.h (child_terminal_info): Add 'self' argument.
6751 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6757 (target_terminal_save_ours): Add argument.
6758 * target.c (debug_to_terminal_save_ours): Add argument.
6759 (update_current_target): Update.
6760 * inflow.c (terminal_save_ours): Add 'self' argument.
6761 * inferior.h (terminal_save_ours): Add 'self' argument.
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6766 (target_terminal_ours): Add argument.
6767 * target.c (debug_to_terminal_ours): Add argument.
6768 (update_current_target): Update.
6769 * remote.c (remote_terminal_ours): Add 'self' argument.
6770 (remote_close): Update.
6771 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6772 * inflow.c (terminal_ours): Add 'self' argument.
6773 * inferior.h (terminal_ours): Add 'self' argument.
6774 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6776 2014-02-19 Pedro Alves <palves@redhat.com>
6777 Tom Tromey <tromey@redhat.com>
6779 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6781 (target_terminal_ours_for_output): Add argument.
6782 * target.c (debug_to_terminal_ours_for_output): Add argument.
6783 (update_current_target): Update.
6784 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6785 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6786 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6790 * target.h (struct target_ops) <to_terminal_inferior>: Add
6792 * target.c (target_terminal_inferior): Add argument.
6793 (update_current_target): Update.
6794 * remote.c (remote_terminal_inferior): Add 'self' argument.
6795 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6796 * inflow.c (terminal_inferior): Add 'self' argument.
6797 * inferior.h (terminal_inferior): Add 'self' argument.
6798 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6799 (go32_terminal_inferior): Add 'self' argument.
6801 2014-02-19 Tom Tromey <tromey@redhat.com>
6803 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6804 (target_terminal_init): Add argument.
6805 * target.c (debug_to_terminal_init): Add argument.
6806 (update_current_target): Update.
6807 * inflow.c (terminal_init_inferior): Add 'self' argument.
6808 * inferior.h (terminal_init_inferior): Add 'self' argument.
6809 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6810 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6814 * target.h (struct target_ops)
6815 <to_can_accel_watchpoint_condition>: Add argument.
6816 (target_can_accel_watchpoint_condition): Add argument.
6817 * target.c (debug_to_can_accel_watchpoint_condition): Add
6819 (update_current_target): Update.
6820 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6827 (target_region_ok_for_hw_watchpoint): Add argument.
6828 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6829 (default_region_ok_for_hw_watchpoint): Add argument.
6830 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6831 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6833 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6835 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6837 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6839 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6841 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6843 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6844 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6846 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6847 Add 'self' argument.
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6853 (target_insert_watchpoint): Add argument.
6854 * target.c (debug_to_insert_watchpoint): Add argument.
6855 (update_current_target): Update.
6856 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6857 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6858 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6859 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6860 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6861 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6863 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6864 (procfs_insert_hw_watchpoint): Add 'self' argument.
6865 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6867 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6869 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6871 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6872 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6874 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6877 2014-02-19 Tom Tromey <tromey@redhat.com>
6879 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6881 (target_remove_watchpoint): Add argument.
6882 * target.c (debug_to_remove_watchpoint): Add argument.
6883 (update_current_target): Update.
6884 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6885 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6886 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6887 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6888 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6889 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6891 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6892 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6894 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6896 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6898 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6899 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6901 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6904 2014-02-19 Tom Tromey <tromey@redhat.com>
6906 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6908 (target_remove_hw_breakpoint): Add argument.
6909 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6910 (update_current_target): Update.
6911 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6912 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6914 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6915 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6917 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6920 2014-02-19 Tom Tromey <tromey@redhat.com>
6922 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6924 (target_insert_hw_breakpoint): Add argument.
6925 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6926 (update_current_target): Update.
6927 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6928 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6930 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6931 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6932 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6934 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6941 (target_can_use_hardware_watchpoint): Add argument.
6942 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6943 (update_current_target): Update.
6944 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6946 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6948 * remote.c (remote_check_watch_resources): Add 'self' argument.
6949 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6950 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6952 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6953 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6955 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6957 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6959 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6961 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6963 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6965 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6966 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6968 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target.h (struct target_ops) <to_post_attach>: Add argument.
6974 (target_post_attach): Add argument.
6975 * target.c (debug_to_post_attach): Add argument.
6976 (update_current_target): Update.
6977 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6978 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6979 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6980 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6981 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6983 2014-02-19 Tom Tromey <tromey@redhat.com>
6985 * windows-nat.c (windows_close): Add 'self' argument.
6986 * tracepoint.c (tfile_close): Add 'self' argument.
6987 * target.h (struct target_ops) <to_close>: Add argument.
6988 * target.c (target_close): Add argument.
6989 (update_current_target): Update.
6990 * remote.c (remote_close): Add 'self' argument.
6991 * remote-sim.c (gdbsim_close): Add 'self' argument.
6992 * remote-mips.c (mips_close): Add 'self' argument.
6993 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6994 * record-full.c (record_full_close): Add 'self' argument.
6995 * record-btrace.c (record_btrace_close): Add 'self' argument.
6996 * monitor.h (monitor_close): Add 'self' argument.
6997 * monitor.c (monitor_close): Add 'self' argument.
6998 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6999 * linux-nat.c (linux_nat_close): Add argument.
7000 * go32-nat.c (go32_close): Add 'self' argument.
7001 * exec.c (exec_close_1): Add 'self' argument.
7002 * ctf.c (ctf_close): Add 'self' argument.
7003 * corelow.c (core_close): Add 'self' argument.
7004 (core_close_cleanup): Update.
7005 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7006 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * remote.c (remote_load): New function.
7011 (init_remote_ops): Use it.
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7017 * common/linux-btrace.h (linux_supports_btrace): Update.
7018 * remote.c (remote_supports_btrace): Add "self" argument.
7019 * target-delegates.c: Rebuild.
7020 * target.c (target_supports_btrace): Remove.
7021 * target.h (struct target_ops) <to_supports_btrace>: Add
7022 target_ops argument.
7023 (target_supports_btrace): New define.
7025 2014-02-19 Tom Tromey <tromey@redhat.com>
7027 * record-full.c (record_full_beneath_to_resume_ops)
7028 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7029 (record_full_beneath_to_wait)
7030 (record_full_beneath_to_store_registers_ops)
7031 (record_full_beneath_to_store_registers)
7032 (record_full_beneath_to_xfer_partial_ops)
7033 (record_full_beneath_to_xfer_partial)
7034 (record_full_beneath_to_insert_breakpoint_ops)
7035 (record_full_beneath_to_insert_breakpoint)
7036 (record_full_beneath_to_remove_breakpoint_ops)
7037 (record_full_beneath_to_remove_breakpoint)
7038 (record_full_beneath_to_stopped_by_watchpoint)
7039 (record_full_beneath_to_stopped_data_address)
7040 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7041 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7042 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7043 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7044 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7045 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7046 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7047 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7048 (record_full_resume, record_full_wait_1)
7049 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7050 (record_full_store_registers, record_full_xfer_partial)
7051 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7052 (record_full_async, record_full_core_xfer_partial): Use target
7054 * target-delegates.c: Rebuild.
7055 * target.c (current_xfer_partial): Remove.
7056 (update_current_target): Do not INHERIT or de_fault
7057 to_insert_breakpoint, to_remove_breakpoint,
7058 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7059 to_is_async_p, to_async. Do not set to_xfer_partial field.
7060 (default_xfer_partial): Simplify.
7061 (current_xfer_partial): Remove.
7062 (target_wait, target_resume): Simplify.
7063 (find_default_can_async_p, find_default_is_async_p): Update.
7064 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7065 to_xfer_partial, to_stopped_by_watchpoint,
7066 to_stopped_data_address.
7067 (target_store_registers): Simplify.
7068 (forward_target_remove_breakpoint)
7069 (forward_target_insert_breakpoint): Remove.
7070 (target_remove_breakpoint, target_insert_breakpoint)
7071 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7072 * target.h (struct target_ops) <to_resume, to_wait,
7073 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7074 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7075 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7077 (forward_target_remove_breakpoint)
7078 (forward_target_insert_breakpoint): Remove.
7079 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7081 (record_btrace_insert_breakpoint): Delegate directly.
7083 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * target-delegates.c: New file.
7087 * target.c: Include target-delegates.c.
7088 (init_dummy_target): Call install_dummy_methods.
7089 (complete_target_initialization): Call install_delegators.
7090 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7091 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7092 * make-target-delegates: New file.
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * record.c (find_record_target): Use find_target_at.
7097 * target.c (find_target_at): New function.
7098 * target.h (find_target_at): Declare.
7100 2014-02-19 Tom Tromey <tromey@redhat.com>
7102 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7104 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7106 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7107 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7109 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7111 * linux-nat.c (save_sigtrap): Update.
7112 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7113 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7114 (linux_nat_close): Update.
7115 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7117 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7119 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7120 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7121 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7122 (tmp_to_async): Add 'ops' argument.
7123 (record_full_stopped_by_watchpoint, record_full_async)
7124 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7126 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7127 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7128 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7129 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7130 (remote_is_async_p, remote_async): Add 'ops' argument.
7131 (remote_stopped_data_address): Update.
7132 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7133 * target.c (update_current_target)
7134 (find_default_can_async_p, find_default_is_async_p): Update.
7135 (init_dummy_target): Update.
7136 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7137 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7138 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7139 (target_can_async_p, target_is_async_p, target_async)
7140 (target_stopped_by_watchpoint): Update.
7142 2014-02-19 Yao Qi <yao@codesourcery.com>
7145 * gdbarch.sh: Remove startup_gdbarch.
7146 * gdbarch.c: Regenerated.
7147 * gdbarch.h: Likewise.
7149 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7151 * rl78-tdep.c (rl78_g10_register_name): New function.
7152 (rl78_return_value): Add g10 support.
7153 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7156 2014-02-17 Doug Evans <xdje42@gmail.com>
7158 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7159 (SUBDIR_GUILE_SRCS): Ditto.
7160 (scm-gsmob.o): Ditto.
7162 2014-02-17 Yao Qi <yao@codesourcery.com>
7164 * gnu-nat.c (ILL_RPC): Declare defined function.
7166 2014-02-17 Yao Qi <yao@codesourcery.com>
7168 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7169 mach_msg_type_number_t.
7170 (gnu_write_inferior): Likewise.
7172 2014-02-17 Yao Qi <yao@codesourcery.com>
7174 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7176 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7177 (inf_validate_procs, inf_signal): Likewise.
7178 (S_exception_raise_request): Likewise.
7179 (do_mach_notify_dead_name): Likewise.
7180 (steal_exc_port): Likewise.
7181 (gnu_read_inferior): Change 'copy_count''s type to
7182 mach_msg_type_number_t.
7183 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7186 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7188 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7189 flag. Adjust all users; in particular...
7190 (gnu_wait): ..., don't decrement its value in here...
7191 (gnu_create_inferior): ..., and instead set the flag in here,
7192 around the startup_inferior call, and call that one with
7193 START_INFERIOR_TRAPS_EXPECTED.
7195 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7196 (ILL_RPC): ... new macro.
7197 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7198 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7199 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7200 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7201 functions with ILL_RPC macro.
7202 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7203 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7204 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7205 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7206 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7207 (S_proc_getlogin_reply, S_proc_getsid_reply)
7208 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7209 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7210 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7211 (S_proc_getnports_reply, S_proc_is_important_reply)
7212 (S_proc_get_code_reply): New stub functions, generated with
7215 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7216 collected the type check structures.
7218 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7220 2014-02-14 Doug Evans <dje@google.com>
7222 * target.c (target_write_partial): Fix result type.
7224 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7226 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7227 the proper offsets to access fpregset_t.
7229 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7231 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7232 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7233 * h8300-tdep.c (setmachinelist): Remove global.
7234 * hppa-tdep.c (hppa_sigtramp): Remove global.
7235 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7236 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7237 * ravenscar-thread.c (update_target_observer): Remove global.
7238 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7240 2014-02-12 Tom Tromey <tromey@redhat.com>
7242 * common/rsp-low.c: Update comments.
7243 * common/rsp-low.h: Update comments.
7245 2014-02-12 Tom Tromey <tromey@redhat.com>
7247 * common/rsp-low.c (convert_ascii_to_int): Remove.
7248 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7250 2014-02-12 Tom Tromey <tromey@redhat.com>
7252 * common/rsp-low.h (unhexify): Don't declare.
7253 * common/rsp-low.c (unhexify): Remove.
7255 2014-02-12 Tom Tromey <tromey@redhat.com>
7257 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7258 * common/rsp-low.c (convert_int_to_ascii): Remove.
7260 2014-02-12 Tom Tromey <tromey@redhat.com>
7262 * common/rsp-low.h (hexify): Don't declare.
7263 * common/rsp-low.c (hexify): Remove.
7265 2014-02-12 Tom Tromey <tromey@redhat.com>
7267 * common/rsp-low.c (hexify): Never take strlen of argument.
7269 2014-02-12 Tom Tromey <tromey@redhat.com>
7271 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7272 * remote.c (extended_remote_run, remote_rcmd)
7273 (remote_download_trace_state_variable, remote_save_trace_data)
7274 (remote_set_trace_notes): Update.
7275 * tracepoint.c (encode_source_string, tfile_write_status)
7276 (tfile_write_uploaded_tsv): Update.
7278 2014-02-12 Tom Tromey <tromey@redhat.com>
7280 * tracepoint.c: Include rsp-low.h.
7281 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7282 * remote.c: Include rsp-low.h.
7283 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7284 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7285 (remote_unescape_input): Move to common/rsp-low.c.
7286 * common/rsp-low.h: New file.
7287 * common/rsp-low.c: New file.
7288 * Makefile.in (SFILES): Add common/rsp-low.c.
7289 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7290 (COMMON_OBS): Add rsp-low.o.
7291 (rsp-low.o): New target.
7293 2014-02-12 Tom Tromey <tromey@redhat.com>
7295 * utils.h: Include print-utils.h.
7296 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7297 (int_string, core_addr_to_string, core_addr_to_string_nz)
7298 (hex_string, hex_string_custom): Don't declare.
7299 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7300 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7301 (hex_string_custom, int_string, core_addr_to_string)
7302 (core_addr_to_string_nz, host_address_to_string): Move to
7303 common/print-utils.c.
7304 * common/print-utils.h: New file.
7305 * common/print-utils.c: New file
7306 * Makefile.in (SFILES): Add common/print-utils.c.
7307 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7308 (COMMON_OBS): Add print-utils.o.
7309 (print-utils.o): New target.
7311 2014-02-12 Tom Tromey <tromey@redhat.com>
7313 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7315 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7317 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7319 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7321 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7322 if a PT_IO ptrace request returns sucessfully but indicates that 0
7323 bytes were transferred.
7325 2014-02-12 Pedro Alves <palves@redhat.com>
7326 Kevin Buettner <kevinb@redhat.com>
7328 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7329 TYPE_INSTANCE_FLAG_CODE_SPACE.
7331 2014-02-12 Pedro Alves <palves@redhat.com>
7333 * h8300-tdep.c (pseudo_from_raw_register)
7334 (raw_from_pseudo_register): New functions.
7335 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7338 2014-02-12 Pedro Alves <palves@redhat.com>
7340 * h8300-tdep.c (h8300_register_sim_regno): New function.
7341 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7342 gdbarch_register_sim_regno hook.
7344 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7346 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7348 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7350 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7352 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7354 * obsd-tdep.h (obsd_init_abi): New prototype.
7355 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7356 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7357 (obsd_init_abi): New functions.
7358 * i386obsd-tdep.c: Include "obsd-tdep.h".
7359 (i386obsd_init_abi): Call obsd_init_abi.
7360 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7361 (amd64obsd_init_abi): Call obsd_init_abi.
7362 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7363 obsd-tdep.c to gdb_target_obs.
7365 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7367 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7368 double float arguments to 16-byte in the argument slots.
7370 2014-02-11 Doug Evans <xdje42@gmail.com>
7372 * configure.ac: Don't crash if pkg-config is not found and guile
7373 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7375 * configure: Regenerate.
7377 2014-02-11 Yao Qi <yao@codesourcery.com>
7379 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7380 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7381 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7382 * gnu-nat.c (gnu_xfer_memory): Likewise.
7383 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7384 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7385 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7386 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7388 2014-02-11 Yao Qi <yao@codesourcery.com>
7390 * target.h (enum target_xfer_error): Rename to ...
7391 (enum target_xfer_status): ... it. New. All users updated.
7392 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7394 (TARGET_XFER_STATUS_ERROR_P): New macro.
7395 (target_xfer_error_to_string): Remove declaration.
7396 (target_xfer_status_to_string): Declare.
7397 (target_xfer_partial_ftype): Adjust it.
7398 (struct target_ops) <to_xfer_partial>: Return
7399 target_xfer_status. Add argument xfered_len. Update
7401 * target.c (target_xfer_error_to_string): Rename to ...
7402 (target_xfer_status_to_string): ... it. New. All callers
7404 (target_read_live_memory): Likewise. Call target_xfer_partial
7405 instead of target_read.
7406 (memory_xfer_live_readonly_partial): Return
7407 target_xfer_status. Add argument xfered_len.
7408 (raw_memory_xfer_partial): Likewise.
7409 (memory_xfer_partial_1): Likewise.
7410 (memory_xfer_partial): Likewise.
7411 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7412 properly. Update debug message.
7413 (default_xfer_partial, current_xfer_partial): Likewise.
7414 (target_write_partial): Likewise.
7415 (target_read_partial): Likewise. All callers updated.
7416 (read_whatever_is_readable): Likewise.
7417 (target_write_with_progress): Likewise.
7418 (target_read_alloc_1): Likewise.
7420 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7421 * auxv.c (procfs_xfer_auxv): Likewise.
7422 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7423 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7424 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7425 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7426 * corefile.c (read_memory): Adjust.
7427 * corelow.c (core_xfer_partial): Likewise.
7428 * ctf.c (ctf_xfer_partial): Likewise.
7429 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7431 (darwin_xfer_partial): Likewise.
7432 * exec.c (section_table_xfer_memory_partial): Likewise. All
7434 (exec_xfer_partial): Likewise.
7435 * exec.h (section_table_xfer_memory_partial): Update
7437 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7439 (gnu_xfer_partial): Likewise.
7440 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7441 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7442 (ia64_hpux_xfer_solib_got): Likewise.
7443 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7444 type of 'partial_len' to ULONGEST.
7445 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7446 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7447 (linux_nat_xfer_partial): Likewise.
7448 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7449 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7450 * monitor.c (monitor_xfer_memory): Likewise.
7451 (monitor_xfer_partial): Likewise.
7452 * procfs.c (procfs_xfer_partial): Likewise.
7453 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7454 * record-full.c (record_full_xfer_partial): Likewise.
7455 (record_full_core_xfer_partial): Likewise.
7456 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7457 (gdbsim_xfer_partial): Likewise.
7458 * remote.c (remote_write_bytes_aux): Likewise. All callers
7460 (remote_write_bytes, remote_read_bytes): Likewise. All
7462 (remote_flash_erase): Likewise. All callers updated.
7463 (remote_write_qxfer): Likewise. All callers updated.
7464 (remote_read_qxfer): Likewise. All callers updated.
7465 (remote_xfer_partial): Likewise.
7466 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7467 (rs6000_xfer_shared_libraries): Likewise.
7468 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7469 (sol_thread_xfer_partial): Likewise.
7470 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7471 (sparc_xfer_partial): Likewise.
7472 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7474 (spu_xfer_partial): Likewise.
7475 * spu-multiarch.c (spu_xfer_partial): Likewise.
7476 * tracepoint.c (tfile_xfer_partial): Likewise.
7477 * windows-nat.c (windows_xfer_memory): Likewise.
7478 (windows_xfer_shared_libraries): Likewise.
7479 (windows_xfer_partial): Likewise.
7480 * valprint.c: Replace 'target_xfer_error' with
7481 'target_xfer_status' in comments.
7483 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7485 Checked in by Joel Brobecker <brobecker@adacore.com>.
7486 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7488 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7490 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7491 function parameters.
7493 2014-02-10 Will Newton <will.newton@linaro.org>
7495 * elfread.c (elf_rel_plt_read): Look for a .got section if
7496 looking up .got.plt fails.
7497 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7498 on address passed to elf_gnu_ifunc_record_cache.
7499 (elf_gnu_ifunc_resolve_addr): Likewise.
7500 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7502 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7504 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7505 (X_RETTURN): New macro.
7506 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7508 * sparc64-tdep.c (sparc64_init_abi): Hook
7509 sparc_in_function_epilogue_p.
7511 2014-02-10 Gary Benson <gbenson@redhat.com>
7513 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7514 Rename name_matcher to symbol_matcher.
7516 2014-02-10 Gary Benson <gbenson@redhat.com>
7518 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7519 Use expand_symtabs_file_matcher_ftype and
7520 expand_symtabs_symbol_matcher_ftype.
7522 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7524 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7525 (struct ada_symbol_cache): New.
7526 (ada_free_symbol_cache): Forward declare.
7527 (struct ada_pspace_data): New.
7528 (ada_pspace_data_handle): New static global.
7529 (get_ada_pspace_data, ada_pspace_data_cleanup)
7530 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7531 (cache_space, cache): Delete, now folded inside struct
7533 (ada_get_symbol_cache): New function.
7534 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7536 (_initialize_ada_language): Remove initialization of cache_space.
7537 Move call to observer_attach_inferior_exit up, grouping it
7538 with the other observer registrations inside this function.
7539 Rename command to be more general. Add call to
7540 register_program_space_data_with_cleanup.
7542 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7544 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7545 ada_new_objfile_observer.
7546 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7547 (_initialize_tasks): Update uses of ada_new_objfile_observer
7548 and ada_tasks_normal_stop_observer.
7550 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7552 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7553 returned by the 'Length attribute to integer.
7555 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7557 * ada-lang.c (_initialize_ada_language): Initialize
7558 cache_space obstack.
7560 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7562 * ada-lang.c (HASH_SIZE): New macro.
7563 (struct cache_entry): New type.
7564 (cache_space, cache): New static globals.
7565 (ada_clear_symbol_cache, find_entry): New functions.
7566 (lookup_cached_symbol, cache_symbol): Implement.
7567 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7568 (_initialize_ada_language): Attach ada_new_objfile_observer
7569 and ada_free_objfile_observer.
7571 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7573 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7574 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7575 struct block * parameter.
7576 (ada_lookup_symbol_list_worker): Constify local variable "block".
7577 Remove cast which is no longer necessary.
7579 2014-02-10 Doug Evans <xdje42@gmail.com>
7581 Add Guile as an extension language.
7582 * NEWS: Mention Guile scripting.
7583 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7584 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7585 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7586 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7587 (CLIBS): Add GUILE_LIBS.
7588 (install-guile): New rule.
7589 (guile.o): New rule.
7590 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7591 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7592 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7593 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7594 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7595 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7596 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7597 * configure.ac: New option --with-guile.
7598 * configure: Regenerate.
7599 * config.in: Regenerate.
7600 * auto-load.c: Remove #include "python/python.h". Add #include
7601 "gdb/section-scripts.h".
7602 (source_section_scripts): Handle Guile scripts.
7603 (_initialize_auto_load): Add name of Guile objfile script to
7604 scripts-directory help text.
7605 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7606 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7607 (struct breakpoint): New member scm_bp_object.
7608 * defs.h (enum command_control_type): New value guile_control.
7609 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7611 (show_user): Update comment.
7612 (_initialize_cli_cmds): Update help text for "show user". Update help
7613 text for max-user-call-depth.
7614 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7616 (multi_line_command_p): Add guile_control.
7617 (print_command_lines): Handle guile_control.
7618 (execute_control_command, recurse_read_control_structure): Ditto.
7619 (process_next_line): Recognize "guile" commands.
7620 * disasm.c (gdb_disassemble_info): Make non-static.
7621 * disasm.h: #include "dis-asm.h".
7622 (struct gdbarch): Add forward decl.
7623 (gdb_disassemble_info): Declare.
7624 * extension.c: #include "guile/guile.h".
7625 (extension_languages): Add guile.
7626 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7627 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7628 * gdbtypes.c (get_unsigned_type_max): New function.
7629 (get_signed_type_minmax): New function.
7630 * gdbtypes.h (get_unsigned_type_max): Declare.
7631 (get_signed_type_minmax): Declare.
7632 * guile/README: New file.
7633 * guile/guile-internal.h: New file.
7634 * guile/guile.c: New file.
7635 * guile/guile.h: New file.
7636 * guile/scm-arch.c: New file.
7637 * guile/scm-auto-load.c: New file.
7638 * guile/scm-block.c: New file.
7639 * guile/scm-breakpoint.c: New file.
7640 * guile/scm-disasm.c: New file.
7641 * guile/scm-exception.c: New file.
7642 * guile/scm-frame.c: New file.
7643 * guile/scm-gsmob.c: New file.
7644 * guile/scm-iterator.c: New file.
7645 * guile/scm-lazy-string.c: New file.
7646 * guile/scm-math.c: New file.
7647 * guile/scm-objfile.c: New file.
7648 * guile/scm-ports.c: New file.
7649 * guile/scm-pretty-print.c: New file.
7650 * guile/scm-safe-call.c: New file.
7651 * guile/scm-string.c: New file.
7652 * guile/scm-symbol.c: New file.
7653 * guile/scm-symtab.c: New file.
7654 * guile/scm-type.c: New file.
7655 * guile/scm-utils.c: New file.
7656 * guile/scm-value.c: New file.
7657 * guile/lib/gdb.scm: New file.
7658 * guile/lib/gdb/boot.scm: New file.
7659 * guile/lib/gdb/experimental.scm: New file.
7660 * guile/lib/gdb/init.scm: New file.
7661 * guile/lib/gdb/iterator.scm: New file.
7662 * guile/lib/gdb/printing.scm: New file.
7663 * guile/lib/gdb/types.scm: New file.
7664 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7665 (VPATH): Add $(GUILE_SRCDIR).
7666 (GUILE_DIR): New variable.
7667 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7668 (all): Add stamp-guile dependency.
7669 (stamp-guile): New rule.
7670 (clean-guile, install-guile, uninstall-guile): New rules.
7671 (install-only): Add install-guile dependency.
7672 (uninstall): Add uninstall-guile dependency.
7673 (clean): Add clean-guile dependency.
7675 2014-02-09 Doug Evans <xdje42@gmail.com>
7677 Revert this patch (which I approved, mea culpa).
7679 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7681 * Makefile.in (all-lib): Remove.
7682 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7684 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7686 Fix Python stack corruption.
7687 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7690 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7692 * Makefile.in (all-lib): Remove.
7693 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7695 2014-02-07 Doug Evans <dje@google.com>
7697 * extension-priv.h (extension_language_script_ops): Add comment.
7698 (extension_language_ops): Add comment.
7699 (active_ext_lang_state): Fix typo in comment.
7701 2014-02-07 Pedro Alves <palves@redhat.com>
7703 PR breakpoints/16292
7704 * infrun.c (handle_signal_stop) <signal arrives while stepping
7705 over a breakpoint>: Switch back to the stepping thread.
7707 2014-02-07 Yao Qi <yao@codesourcery.com>
7709 * target.c (target_xfer_partial): Return zero if LEN is zero.
7711 2014-02-07 Yao Qi <yao@codesourcery.com>
7713 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7714 (ld_so_xfer_auxv): Likewise.
7715 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7716 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7717 * corelow.c (core_xfer_partial): Likewise.
7718 * ctf.c (ctf_xfer_partial): Likewise.
7719 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7720 (darwin_xfer_partial): Likewise.
7721 * exec.c (exec_xfer_partial): Likewise.
7722 * gnu-nat.c (gnu_xfer_partial): Likewise.
7723 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7724 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7725 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7726 * linux-nat.c (linux_xfer_siginfo): Likewise.
7727 (linux_proc_xfer_spu): Likewise.
7728 * procfs.c (procfs_xfer_partial): Likewise.
7729 * record-full.c (record_full_xfer_partial): Likewise.
7730 (record_full_core_xfer_partial): Likewise.
7731 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7732 * remote.c (remote_write_qxfer): Likewise.
7733 (remote_write_qxfer, remote_read_qxfer): Likewise.
7734 (remote_xfer_partial): Likewise.
7735 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7736 (rs6000_xfer_shared_libraries): Likewise.
7737 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7738 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7739 (spu_xfer_partial): Likewise.
7740 * target.c (memory_xfer_partial_1): Likewise.
7741 * tracepoint.c (tfile_xfer_partial): Likewise.
7742 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7743 (windows_xfer_partial): Likewise.
7745 2014-02-07 Yao Qi <yao@codesourcery.com>
7747 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7749 (core_xfer_shared_libraries_aix): Likewise.
7750 * gdbarch.c, gdbarch.h: Regenerated.
7751 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7752 ULONGEST. Change 'len_avail' type to ULONGEST.
7753 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7754 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7756 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7758 2014-02-07 Yao Qi <yao@codesourcery.com>
7760 * corefile.c (memory_error): Get 'exception' from ERR and pass
7761 'exception' to throw_error.
7763 2014-02-06 Doug Evans <xdje42@gmail.com>
7765 * configure.ac (libpython checking): Remove all but python.o from
7766 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7767 * configure: Regenerate.
7769 * Makefile.in (SFILES): Add extension.c.
7770 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7771 (COMMON_OBS): Add extension.o.
7772 * extension.h: New file.
7773 * extension-priv.h: New file.
7774 * extension.c: New file.
7776 * python/python-internal.h: #include "extension.h".
7777 (gdbpy_auto_load_enabled): Declare.
7778 (gdbpy_apply_val_pretty_printer): Declare.
7779 (gdbpy_apply_frame_filter): Declare.
7780 (gdbpy_preserve_values): Declare.
7781 (gdbpy_breakpoint_cond_says_stop): Declare.
7782 (gdbpy_breakpoint_has_cond): Declare.
7783 (void source_python_script_for_objfile): Delete.
7784 * python/python.c: #include "extension-priv.h".
7785 Delete inclusion of "observer.h".
7786 (extension_language_python): Moved here and renamed from
7787 script_language_python in py-auto-load.c.
7788 Redefined to be of type extension_language_defn.
7789 (python_extension_script_ops): New global.
7790 (python_extension_ops): New global.
7791 (struct python_env): New member previous_active.
7792 (restore_python_env): Call restore_active_ext_lang.
7793 (ensure_python_env): Call set_active_ext_lang.
7794 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7796 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7798 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7800 (gdbpy_eval_from_control_command): Renamed from
7801 eval_python_from_control_command, made static. New arg extlang.
7802 (gdbpy_source_script) Renamed from source_python_script, made static.
7804 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7805 result to int. New arg extlang.
7806 (gdbpy_source_objfile_script): Renamed from
7807 source_python_script_for_objfile, made static. New arg extlang.
7808 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7809 static. New args extlang, extlang_printers. Change result type to
7811 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7812 static. New arg extlang. Rename arg printers to extlang_printers
7813 and change type to ext_lang_type_printers *.
7814 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7815 static. Replace argument arg with extlang, extlang_printers.
7816 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7817 (!HAVE_PYTHON, source_python_script): Delete.
7818 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7819 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7820 (!HAVE_PYTHON, start_type_printers): Delete.
7821 (!HAVE_PYTHON, apply_type_printers): Delete.
7822 (!HAVE_PYTHON, free_type_printers): Delete.
7823 (_initialize_python): Delete call to observer_attach_before_prompt.
7824 (finalize_python): Set/restore active extension language.
7825 (gdbpy_finish_initialization) Renamed from
7826 finish_python_initialization, made static. New arg extlang.
7827 (gdbpy_initialized): New function.
7828 * python/python.h: #include "extension.h". Delete #include
7829 "value.h", "mi/mi-cmds.h".
7830 (extension_language_python): Declare.
7831 (GDBPY_AUTO_FILE_NAME): Delete.
7832 (enum py_bt_status): Moved to extension.h and renamed to
7834 (enum frame_filter_flags): Moved to extension.h.
7835 (enum py_frame_args): Moved to extension.h and renamed to
7836 ext_lang_frame_args.
7837 (finish_python_initialization): Delete.
7838 (eval_python_from_control_command): Delete.
7839 (source_python_script): Delete.
7840 (apply_val_pretty_printer): Delete.
7841 (apply_frame_filter): Delete.
7842 (preserve_python_values): Delete.
7843 (gdbpy_script_language_defn): Delete.
7844 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7845 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7847 * auto-load.c: #include "extension.h".
7848 (GDB_AUTO_FILE_NAME): Delete.
7849 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7850 (script_language_gdb): Delete, moved to extension.c and renamed to
7851 extension_language_gdb.
7852 (source_gdb_script_for_objfile): Delete.
7853 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7854 (loaded_script): Change type of language member to
7855 struct extension_language_defn *.
7856 (init_loaded_scripts_info): Initialize
7857 unsupported_script_warning_printed.
7858 (maybe_add_script): Make static. Change type of language arg to
7859 struct extension_language_defn *.
7860 (clear_section_scripts): Reset unsupported_script_warning_printed.
7861 (auto_load_objfile_script_1): Rewrite to use extension language API.
7862 (auto_load_objfile_script): Make public. Remove support-compiled-in
7863 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7864 (source_section_scripts): Rewrite to use extension language API.
7865 (load_auto_scripts_for_objfile): Rewrite to use
7866 auto_load_scripts_for_objfile.
7867 (collect_matching_scripts_data): Change type of language member to
7868 struct extension_language_defn *.
7869 (auto_load_info_scripts): Change type of language arg to
7870 struct extension_language_defn *.
7871 (unsupported_script_warning_print): New function.
7872 (script_not_found_warning_print): Make static.
7873 (_initialize_auto_load): Rewrite construction of scripts-directory
7875 * auto-load.h (struct objfile): Add forward decl.
7876 (struct script_language): Delete.
7877 (struct auto_load_pspace_info): Add forward decl.
7878 (struct extension_language_defn): Add forward decl.
7879 (maybe_add_script): Delete.
7880 (auto_load_objfile_script): Declare.
7881 (script_not_found_warning_print): Delete.
7882 (auto_load_info_scripts): Update prototype.
7883 (auto_load_gdb_scripts_enabled): Declare.
7884 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7885 auto_load_python_scripts_enabled and made public.
7886 (script_language_python): Delete, moved to python.c.
7887 (gdbpy_script_language_defn): Delete.
7888 (info_auto_load_python_scripts): Update to use
7889 extension_language_python.
7891 * breakpoint.c (condition_command): Replace call to
7892 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7893 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7894 with call to breakpoint_ext_lang_cond_says_stop.
7895 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7896 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7897 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7898 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7900 (local_setattro): Print name of extension language with existing
7903 * valprint.c (val_print, value_print): Update to call
7904 apply_ext_lang_val_pretty_printer.
7905 * cp-valprint.c (cp_print_value): Update call to
7906 apply_ext_lang_val_pretty_printer.
7907 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7908 (gdbpy_apply_val_pretty_printer): Renamed from
7909 apply_val_pretty_printer. New arg extlang.
7910 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7912 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7913 extension language API.
7914 * cli/cli-script.c (execute_control_command): Update to call
7915 eval_ext_lang_from_control_command.
7917 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7918 enum ext_lang_bt_status values. Update call to
7919 apply_ext_lang_frame_filter.
7920 (mi_cmd_stack_list_locals): Ditto.
7921 (mi_cmd_stack_list_args): Ditto.
7922 (mi_cmd_stack_list_variables): Ditto.
7923 * mi/mi-main.c: Delete #include "python/python-internal.h".
7924 Add #include "extension.h".
7925 (mi_cmd_list_features): Replace reference to python internal variable
7926 gdb_python_initialized with call to ext_lang_initialized_p.
7928 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7929 Update to use enum ext_lang_frame_args. Update to call
7930 apply_ext_lang_frame_filter.
7931 * python/py-framefilter.c (extract_sym): Update to use enum
7933 (extract_value, py_print_type, py_print_value): Ditto.
7934 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7935 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7936 (py_print_frame): Ditto.
7937 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7938 New arg extlang. Update to use enum ext_lang_bt_status.
7940 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7941 finish_python_initialization. Replace with call to
7942 finish_ext_lang_initialization.
7944 * typeprint.c (do_free_global_table): Update to call
7945 free_ext_lang_type_printers.
7946 (create_global_typedef_table): Update to call
7947 start_ext_lang_type_printers.
7948 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7949 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7950 (type_print_options): Change type of global_printers from "void *"
7951 to "struct ext_lang_type_printers *".
7953 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7954 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7955 (gdbpy_preserve_values): Renamed from preserve_python_values.
7957 (!HAVE_PYTHON, preserve_python_values): Delete.
7959 * utils.c (quit_flag): Delete, moved to extension.c.
7960 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7963 * eval.c: Delete #include "python/python.h".
7964 * main.c: Delete #include "python/python.h".
7966 * defs.h: Update comment.
7968 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7972 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7974 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7977 2014-02-05 Yao Qi <yao@codesourcery.com>
7979 * remote.c (remote_pass_signals): Remove local 'buf' and use
7981 (remote_program_signals): Likewise.
7983 2014-02-05 Yao Qi <yao@codesourcery.com>
7985 * ctf.c: Include "inferior.h" and "gdbthread.h".
7986 (CTF_PID): A new macro.
7987 (ctf_open): Call inferior_appeared and add_thread_silent.
7988 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7989 (ctf_thread_alive): New function.
7990 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7992 2014-02-05 Yao Qi <yao@codesourcery.com>
7996 2013-05-24 Yao Qi <yao@codesourcery.com>
7998 * tracepoint.c (TFILE_PID): Remove.
7999 (tfile_open): Don't add thread and inferior.
8000 (tfile_close): Don't set 'inferior_ptid'. Don't call
8001 exit_inferior_silent.
8002 (tfile_thread_alive): Remove.
8003 (init_tfile_ops): Don't set field 'to_thread_alive' of
8006 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8008 * remote.c (remote_start_remote): Call remote_check_symbols even
8009 if only symbol-file (not file) has been given.
8011 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8013 * gdbarch.sh (skip_entrypoint): New callback.
8014 * gdbarch.c, gdbarch.h: Regenerate.
8015 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8016 * infrun.c (fill_in_stop_func): Likewise.
8017 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8018 (ppc_elfv2_elf_make_msymbol_special): New function.
8019 (ppc_elfv2_skip_entrypoint): Likewise.
8020 (ppc_linux_init_abi): Install them for ELFv2.
8022 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8024 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8025 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8026 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8027 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8028 structures returned in GPRs.
8030 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8032 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8033 offset to the stack parameter list for the ELFv2 ABI.
8035 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8037 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8038 set_gdbarch_convert_from_func_ptr_addr and
8039 set_gdbarch_elf_make_msymbol_special for ELFv1.
8040 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8041 function descriptors on ELFv1.
8042 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8043 set up r12 at function entry.
8045 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8047 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8048 (struct gdbarch_tdep): New member elf_abi.
8050 * rs6000-tdep.c: Include "elf/ppc64.h".
8051 (rs6000_gdbarch_init): Detect ELF ABI version.
8053 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8055 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8056 within a register pair holding a DFP 128-bit value on little-endian.
8057 (ppc64_sysv_abi_return_value_base): Likewise.
8058 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8059 (dfp_pseudo_register_write): Likewise.
8061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8063 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8064 offset on little-endian when passing _Decimal32.
8065 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8067 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8069 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8070 of the overlapped FP register within the VSX register on little-
8072 (efpr_pseudo_register_write): Likewise.
8074 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8076 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8077 offset on little-endian when passing small structures.
8079 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8081 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8082 (struct ppc64_sysv_argpos): New data structure.
8083 (ppc64_sysv_abi_push_float): Remove.
8084 (ppc64_sysv_abi_push_val): New function.
8085 (ppc64_sysv_abi_push_integer): Likewise.
8086 (ppc64_sysv_abi_push_freg): Likewise.
8087 (ppc64_sysv_abi_push_vreg): Likewise.
8088 (ppc64_sysv_abi_push_param): Likewise.
8089 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8090 (ppc64_sysv_abi_return_value_base): New function.
8091 (ppc64_sysv_abi_return_value): Refactor to use it.
8093 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8095 * NEWS: Document new target powerpc64le-*-linux*.
8097 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8099 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8100 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8102 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8103 register set used in ELF core dumps. Add floating-point register set.
8105 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8107 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8108 dwarf2_to_gdb[] table using symbolic constants. Adjust
8109 penultimate entry from number representing the PC register
8110 to symbolic constant representing the MDR register. Add
8111 constant for the PC register to the end of the table.
8113 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8115 * bsd-kvm.c: Include <sys/param.h>
8117 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8119 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8121 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8123 * ada-lang.h (clear_ada_sym_cache): Delete.
8125 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8127 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8129 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8131 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8132 the sigreturn register save area only if the syscall is
8135 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8137 * valops.c (value_slice): Minor reformatting.
8139 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8141 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8143 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8145 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8147 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8148 (ada_ignore_descriptive_types_p): New static global.
8149 (find_parallel_type_by_descriptive_type): Return immediately
8150 if ada_ignore_descriptive_types_p is set.
8151 (_initialize_ada_language): Register new commands "maintenance
8152 set ada", "maintenance show ada", "maintenance set ada
8153 ignore-descriptive-types" and "maintenance show ada
8154 ignore-descriptive-types".
8155 * NEWS: Add entry for new "maint ada set/show
8156 ignore-descriptive-types" commands.
8158 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8160 * record-btrace.c (record_btrace_close): Call btrace_teardown
8163 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8165 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8168 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8170 * ada-typeprint (type_is_full_subrange_of_target_type):
8172 (print_range): Add parameter bounds_prefered_p. If not set,
8173 try printing range types using the name of their base type.
8174 (print_range_type): Add parameter bounds_prefered_p.
8175 Use it in call to print_range.
8176 (print_array_type, ada_print_type): Update calls to print_range
8177 and print_range_type.
8179 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8181 * ada-typeprint.c (print_array_type, print_choices, print_range)
8182 (print_range_bound, print_dynamic_range_bound, print_range_type):
8185 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8187 * ada-typeprint.c (print_range): Add missing empty line
8188 after local declaration.
8190 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8192 * ada-valprint.c (print_optional_low_bound): Get index_type's
8193 target type for as long as it is a TYPE_CODE_RANGE.
8195 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8197 * procfs.c (procfs_make_note_section): Remove assertion and
8200 2014-01-24 Yao Qi <yao@codesourcery.com>
8202 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8203 * corelow.c (get_core_siginfo): Likewise.
8205 2014-01-24 Yao Qi <yao@codesourcery.com>
8207 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8208 ULONGEST. Don't check 'len' is negative.
8209 (remote_write_bytes): Change type of 'len' to ULONGEST.
8211 2014-01-23 Tom Tromey <tromey@redhat.com>
8214 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8215 Handle exception from frame.block.
8216 (FrameVars.fetch_frame_locals): Likewise.
8218 2014-01-23 Tom Tromey <tromey@redhat.com>
8221 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8222 on a NULL pointer. Move "goto error" to correct place.
8224 2014-01-23 Tom Tromey <tromey@redhat.com>
8227 * python/py-framefilter.c (apply_frame_filter): Call
8228 ensure_python_env after computing gdbarch.
8230 2014-01-23 Yao Qi <yao@codesourcery.com>
8232 * target.c (raw_memory_xfer_partial): Change argument type
8233 from void * to gdb_byte *.
8234 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8236 2014-01-22 Doug Evans <dje@google.com>
8238 New gdbserver option --debug-format=timestamp.
8241 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8243 * syscalls/s390x-linux.xml: New file.
8244 * syscalls/s390-linux.xml: New file.
8245 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8246 (XML_SYSCALL_FILENAME_S390X): Likewise.
8247 (op_svc): New enum value for SVC opcode.
8248 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8249 (s390_linux_get_syscall_number): New function.
8250 (s390_gdbarch_init): Register '*get_syscall_number' and the
8251 syscall xml file name.
8252 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8253 "s390-linux.xml" and "s390x-linux.xml".
8254 * NEWS: Announce new feature.
8256 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8258 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8260 2014-01-22 Pedro Alves <palves@redhat.com>
8262 * xtensa-config.c: Include defs.h.
8264 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8266 * common/common-utils.h: Add "ARI:" comment beside __func__
8269 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8271 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8272 documentation a bit.
8274 2014-01-21 Roland McGrath <mcgrathr@google.com>
8276 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8277 * configure: Regenerate.
8278 * aclocal.m4: Regenerate.
8279 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8280 New substituted variables.
8281 (install-strip): New target.
8282 (INSTALL_SCRIPT): New substituted variable.
8283 (FLAGS_TO_PASS): Add it.
8284 (install-only): Use $(INSTALL_SCRIPT) rather than
8285 $(INSTALL_PROGRAM) for gcore.
8287 2014-01-20 Tom Tromey <tromey@redhat.com>
8289 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8292 2014-01-20 Tom Tromey <tromey@redhat.com>
8294 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8295 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8296 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8297 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8298 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8299 (struct cmd_list_element) <flags>: Remove.
8300 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8301 doc_allocated>: New fields.
8302 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8304 * maint.c (maintenance_do_deprecate): Update.
8305 * top.c (execute_command): Update.
8307 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8309 * xtensa-linux-nat.c: Include asm/ptrace.h.
8311 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8313 * Makefile.in (SFILES): Add d-support.c.
8314 (COMMON_OBS): Add d-support.o.
8315 * d-lang.h (d_parse_symbol): Add comment, now defined in
8317 * d-lang.c (parse_call_convention)
8318 (parse_attributes, parse_function_types)
8319 (parse_function_args, parse_type, parse_identifier)
8320 (call_convention_p, d_parse_symbol): Move functions to ...
8321 * d-support.c: ... New file.
8323 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8325 * d-lang.h (d_parse_symbol): Add declaration.
8326 * d-lang.c (extract_identifiers)
8327 (extract_type_info): Remove functions.
8328 (parse_call_convention, parse_attributes)
8329 (parse_function_types, parse_function_args)
8330 (parse_type, parse_identifier, call_convention_p)
8331 (d_parse_symbol): New functions.
8332 (d_demangle): Use d_parse_symbol to demangle D symbols.
8334 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8336 * d-lang.h (struct builtin_d_type): New data type.
8337 (builtin_d_type): Add declaration.
8338 * d-lang.c (d_language_arch_info, build_d_types)
8339 (builtin_d_type): New functions.
8340 (enum d_primitive_types): New data type.
8341 (d_language_defn): Change c_language_arch_info to
8342 d_language_arch_info.
8343 (d_type_data): New static variable.
8344 (_initialize_d_language): Initialize d_type_data.
8346 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8348 * d-lang.h (d_main_name): Add declaration.
8349 * d-lang.c (d_main_name): New function.
8350 * symtab.c (find_main_name): Add call to d_main_name.
8352 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8354 * d-lang.c (d_language_defn): Change macro_expansion_c to
8357 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8359 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8361 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8363 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8364 gdb_exception" declaration.
8365 * remote.c (getpkt_or_notif_sane): Likewise.
8367 2014-01-17 Doug Evans <dje@google.com>
8369 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8370 function, contents of dirnames_to_char_ptr_vec_append moved here.
8371 (delim_string_to_char_ptr_vec): New function.
8372 (dirnames_to_char_ptr_vec_append): Rewrite.
8373 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8375 2014-01-17 Doug Evans <dje@google.com>
8377 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8379 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8380 #include "common-utils.h".
8381 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8382 * common/vec.h (VEC_ASSERT_PASS): Update.
8383 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8384 (MACH_CHECK_ERROR): Update.
8386 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8388 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8390 * gdbarch.h: Regenerate.
8392 2014-01-16 Tom Tromey <tromey@redhat.com>
8394 * value.c (struct value) <regnum>: Move earlier.
8396 2014-01-16 Tom Tromey <tromey@redhat.com>
8398 * remote.c (extended_remote_create_inferior): Rename from
8399 extended_remote_create_inferior_1. Add "ops" argument. Remove
8402 2014-01-16 Pedro Alves <palves@redhat.com>
8404 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8405 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8408 2014-01-16 Doug Evans <dje@google.com>
8410 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8414 * btrace.h (btrace_thread_flag): New.
8415 (struct btrace_thread_info) <flags>: New.
8416 * record-btrace.c (record_btrace_resume_thread)
8417 (record_btrace_find_thread_to_move, btrace_step_no_history)
8418 (btrace_step_stopped, record_btrace_start_replaying)
8419 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8420 (record_btrace_find_resume_thread): New.
8421 (record_btrace_resume, record_btrace_wait): Extend.
8422 (record_btrace_can_execute_reverse): New.
8423 (record_btrace_open): Fail in non-stop mode.
8424 (record_btrace_set_replay): Split into this, ...
8425 (record_btrace_stop_replaying): ... this, ...
8426 (record_btrace_clear_histories): ... and this.
8427 (init_record_btrace_ops): Init to_can_execute_reverse.
8428 * NEWS: Announce it.
8430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8432 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8433 (forward_target_decr_pc_after_break)
8434 (target_decr_pc_after_break): New.
8435 * target.c (forward_target_decr_pc_after_break)
8436 (target_decr_pc_after_break): New.
8437 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8438 instead of gdbarch_decr_pc_after_break.
8439 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8440 instead of gdbarch_decr_pc_after_break.
8441 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8442 instead of gdbarch_decr_pc_after_break.
8443 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8444 instead of gdbarch_decr_pc_after_break.
8445 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8446 instead of gdbarch_decr_pc_after_break.
8447 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8448 instead of gdbarch_decr_pc_after_break.
8450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8452 * btrace.c: Include regcache.h.
8453 (btrace_add_pc): New.
8454 (btrace_enable): Call btrace_add_pc.
8455 (btrace_is_empty): New.
8456 * btrace.h (btrace_is_empty): New.
8457 * record-btrace.c (require_btrace, record_btrace_info): Call
8460 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8462 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8463 Support delta reads.
8464 (linux_disable_btrace): Change return type.
8465 * common/linux-btrace.h (linux_read_btrace): Change parameters
8466 and return type to allow error reporting. Update users.
8467 (linux_disable_btrace): Change return type. Update users.
8468 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8470 (btrace_error): New.
8471 (btrace_block) <begin>: Comment on BEGIN == 0.
8472 * btrace.c (btrace_compute_ftrace): Start from the end of
8474 (btrace_stitch_trace, btrace_clear_history): New.
8475 (btrace_fetch): Read delta trace, return if replaying.
8476 (btrace_clear): Move clear history code to btrace_clear_history.
8477 (parse_xml_btrace): Throw an error if parsing failed.
8478 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8479 and return type to allow error reporting.
8480 (target_read_btrace): Change parameters and return type to allow
8482 * target.c (target_read_btrace): Update.
8483 * remote.c (remote_read_btrace): Support delta reads. Pass
8485 * NEWS: Announce it.
8487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8489 * record.h (record_btrace_frame_unwind)
8490 (record_btrace_tailcall_frame_unwind): New declarations.
8491 * dwarf2-frame: Include record.h
8492 (dwarf2_frame_cfa): Throw an error for btrace frames.
8493 * record-btrace.c: Include hashtab.h.
8494 (btrace_get_bfun_name): New.
8495 (btrace_call_history): Call btrace_get_bfun_name.
8496 (struct btrace_frame_cache): New.
8498 (bfcache_hash, bfcache_eq, bfcache_new): New.
8499 (btrace_get_frame_function): New.
8500 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8501 (record_btrace_frame_this_id): Compute own id.
8502 (record_btrace_frame_prev_register): Provide PC, throw_error
8503 for all other registers.
8504 (record_btrace_frame_sniffer): Detect btrace frames.
8505 (record_btrace_tailcall_frame_sniffer): New.
8506 (record_btrace_frame_dealloc_cache): New.
8507 (record_btrace_frame_unwind): Add new functions.
8508 (record_btrace_tailcall_frame_unwind): New.
8509 (_initialize_record_btrace): Allocate cache.
8510 * btrace.c (btrace_clear): Call reinit_frame_cache.
8511 * NEWS: Announce it.
8513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8515 * record-btrace.c (record_btrace_set_replay)
8516 (record_btrace_goto_begin, record_btrace_goto_end)
8517 (record_btrace_goto): New.
8518 (init_record_btrace_ops): Initialize them.
8519 * NEWS: Announce it.
8521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8523 * record-btrace.c (record_btrace_find_new_threads)
8524 (record_btrace_thread_alive): New.
8525 (init_record_btrace_ops): Initialize to_find_new_threads and
8528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8530 * record-btrace.c (record_btrace_resume): New.
8531 (record_btrace_wait): New.
8532 (init_record_btrace_ops): Initialize to_wait and to_resume.
8534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8536 * record-btrace.c (record_btrace_xfer_partial)
8537 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8538 (record_btrace_allow_memory_access): New.
8539 (init_record_btrace_ops): Initialize new methods.
8540 * target.c (raw_memory_xfer_partial): Bail out if target reports
8541 that this memory is not available.
8543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8545 * target.h (target_ops) <to_insert_breakpoint>
8546 <to_remove_breakpoint>: Add target_ops parameter.
8547 (forward_target_insert_breakpoint): New.
8548 (forward_target_remove_breakpoint): New.
8549 (memory_remove_breakpoint, memory_insert_breakpoint):
8550 Add target_ops parameter.
8551 * target.c (target_insert_breakpoint): Split into this and ...
8552 (forward_target_insert_breakpoint): ... this.
8553 (target_remove_breakpoint): Split into this and ...
8554 (forward_target_remove_breakpoint): ... this.
8555 (debug_to_insert_breakpoint): Add target_ops parameter.
8556 Call forward_target_insert_breakpoint.
8557 (debug_to_remove_breakpoint): Add target_ops parameter.
8558 Call forward_target_remove_breakpoint.
8559 (update_current_target): Do not inherit or default to_insert_breakpoint
8560 and to_remove_breakpoint.
8561 * corelow.c (ignore): Add target_ops parameter.
8562 * exec.c (ignore): Add target_ops parameter.
8563 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8564 Add target_ops parameter.
8565 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8566 Add target_ops parameter.
8567 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8568 Add target_ops parameter.
8569 * record-full.c (record_full_beneath_to_insert_breakpoint)
8570 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8571 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8572 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8573 (record_full_core_remove_breakpoint): Add target_ops parameter.
8575 (record_full_beneath_to_insert_breakpoint_ops)
8576 (record_full_beneath_to_remove_breakpoint_ops)
8577 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8578 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8579 tmp_to_remove_breakpoint_ops,
8580 record_full_beneath_to_insert_breakpoint_ops, and
8581 record_full_beneath_to_remove_breakpoint_ops.
8582 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8583 (m32r_remove_breakpoint): Add target_ops parameter.
8584 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8585 Add target_ops parameter.
8586 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8587 Add target_ops parameter.
8589 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8590 Markus Metzger <markus.t.metzger@intel.com>
8592 * record-btrace.c: Include frame-unwind.h.
8593 (record_btrace_frame_unwind_stop_reason)
8594 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8595 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8597 (init_record_btrace_ops): Install it.
8599 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8601 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8604 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8606 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8609 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8611 * frame-unwind.c: Include target.h.
8612 (frame_unwind_try_unwinder): New function with code from ...
8613 (frame_unwind_find_by_frame): ... here. New variable
8614 unwinder_from_target, call also target_get_unwinder)
8615 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8616 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8617 * target.h (struct target_ops): New fields to_get_unwinder and
8618 to_get_tailcall_unwinder.
8619 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8623 * record-btrace.c (record_btrace_fetch_registers)
8624 (record_btrace_store_registers)
8625 (record_btrace_to_prepare_to_store): New.
8626 (init_record_btrace_ops): Add the above.
8628 2014-01-16 Tom Tromey <tromey@redhat.com>
8630 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8631 * target.h (struct target_ops) <to_prepare_to_store>: Add
8633 (target_prepare_to_store): Add argument.
8634 * target.c (debug_to_prepare_to_store): Add argument.
8635 (update_current_target): Update.
8636 * remote.c (remote_prepare_to_store): Add 'self' argument.
8637 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8638 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8639 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8640 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8642 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8643 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8644 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8645 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8646 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8650 * btrace.h (replay) <replay>: New.
8651 (btrace_is_replaying): New.
8652 * btrace.c (btrace_clear): Free replay iterator.
8653 (btrace_is_replaying): New.
8654 * record-btrace.c (record_btrace_is_replaying): New.
8655 (record_btrace_info): Print insn number if replaying.
8656 (record_btrace_insn_history): Start at replay position.
8657 (record_btrace_call_history): Start at replay position.
8658 (init_record_btrace_ops): Init to_record_is_replaying.
8660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8662 * record-btrace.c (record_btrace_insn_history_range): Include
8664 (record_btrace_insn_history_from): Adjust range.
8665 (record_btrace_call_history_range): Include
8667 (record_btrace_call_history_from): Adjust range.
8668 * NEWS: Announce changes.
8670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8672 * record.h (enum record_print_flag)
8673 <record_print_indent_calls>: New.
8674 * record.c (get_call_history_modifiers): Recognize /c modifier.
8675 (_initialize_record): Document /c modifier.
8676 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8677 Reorder fields. Optionally indent the function name. Update
8679 * NEWS: Announce changes.
8681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8683 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8687 * btrace.c (ftrace_new_function): Start counting at one.
8688 * record-btrace.c (record_btrace_info): Adjust number of calls
8690 * NEWS: Announce it.
8692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8694 * record-btrace.c (btrace_call_history_insn_range): Print
8695 insn range as [begin, end].
8697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8699 * btrace.h (struct btrace_func_link): New.
8700 (enum btrace_function_flag): New.
8701 (struct btrace_inst): Rename to ...
8702 (struct btrace_insn): ...this. Update all users.
8703 (struct btrace_func) <ibegin, iend>: Remove.
8704 (struct btrace_func_link): New.
8705 (struct btrace_func): Rename to ...
8706 (struct btrace_function): ...this. Update all users.
8707 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8708 (number, level, flags>: New.
8709 (struct btrace_insn_iterator): Rename to ...
8710 (struct btrace_insn_history): ...this.
8712 (struct btrace_insn_iterator, btrace_call_iterator): New.
8713 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8714 (struct btrace_target_info) <begin, end, level>
8715 <insn_history, call_history>: New.
8716 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8717 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8718 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8719 (btrace_call_number, btrace_call_begin, btrace_call_end)
8720 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8721 (btrace_find_function_by_number, btrace_set_insn_history)
8722 (btrace_set_call_history): New.
8723 * btrace.c (btrace_init_insn_iterator)
8724 (btrace_init_func_iterator, compute_itrace): Remove.
8725 (ftrace_print_function_name, ftrace_print_filename)
8726 (ftrace_skip_file): Change
8728 (ftrace_init_func): Remove.
8729 (ftrace_debug): Use new btrace_function fields.
8730 (ftrace_function_switched): Also consider gaining and
8731 losing symbol information).
8732 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8733 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8734 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8736 (ftrace_new_function): Move. Remove debug print.
8737 (ftrace_update_lines, ftrace_update_insns): New.
8738 (ftrace_update_function): Check for call, ret, and jump.
8739 (compute_ftrace): Renamed to ...
8740 (btrace_compute_ftrace): ...this. Rewritten to compute call
8742 (btrace_fetch, btrace_clear): Updated.
8743 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8744 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8745 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8746 (btrace_call_number, btrace_call_begin, btrace_call_end)
8747 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8748 (btrace_find_function_by_number, btrace_set_insn_history)
8749 (btrace_set_call_history): New.
8750 * record-btrace.c (require_btrace): Use new btrace thread
8752 (record_btrace_info, btrace_insn_history)
8753 (record_btrace_insn_history, record_btrace_insn_history_range):
8754 Use new btrace thread info fields and new iterator.
8755 (btrace_func_history_src_line): Rename to ...
8756 (btrace_call_history_src_line): ...this. Use new btrace
8758 (btrace_func_history): Rename to ...
8759 (btrace_call_history): ...this. Use new btrace thread info
8760 fields and new iterator.
8761 (record_btrace_call_history, record_btrace_call_history_range):
8762 Use new btrace thread info fields and new iterator.
8764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8766 * frame.h (frame_id_build_unavailable_stack_special): New.
8767 * frame.c (frame_id_build_unavailable_stack_special): New.
8769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8771 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8772 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8773 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8775 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8776 (i386_insn_is_jump, i386_jmp_p): New.
8777 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8778 insn_is_jump to gdbarch.
8779 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8780 * gdbarch.h: Regenerated.
8781 * gdbarch.c: Regenerated.
8782 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8783 (default_insn_is_jump): New.
8784 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8785 (default_insn_is_jump): New.
8787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8789 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8791 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8792 (btrace_read_type) <btrace_read_new>: Change to ...
8793 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8797 * common/linux-btrace.c (linux_read_btrace): Free trace from
8800 2014-01-15 Doug Evans <dje@google.com>
8802 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8805 2014-01-15 Tom Tromey <tromey@redhat.com>
8807 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8808 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8809 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8810 (set_objfile_main_name): New function.
8811 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8812 language_of_main>: New fields.
8813 (set_objfile_main_name): Declare.
8814 * symtab.c (find_main_name): Loop over objfiles to find the main
8816 (set_main_name): Now static.
8817 (get_main_info): Add comment.
8818 * symtab.h (set_main_name): Don't declare.
8820 2014-01-15 Tom Tromey <tromey@redhat.com>
8822 * symtab.c (main_progspace_key): New global.
8823 (struct main_info): New.
8824 (name_of_main, language_of_main): Remove.
8825 (get_main_info, main_info_cleanup): New function.
8826 (set_main_name, main_name, main_language): Use get_main_info.
8827 (_initialize_symtab): Initialize main_progspace_key.
8829 2014-01-15 Tom Tromey <tromey@redhat.com>
8831 * dbxread.c (process_one_symbol): Update.
8832 * dwarf2read.c (read_partial_die): Update.
8833 * symfile.c (set_initial_language): Call main_language.
8834 * symtab.c (language_of_main): Now static.
8835 (set_main_name): Add 'lang' parameter.
8836 (find_main_name): Update.
8837 (main_language): New function.
8838 (symtab_observer_executable_changed): Update.
8839 * symtab.h (set_main_name): Update.
8840 (language_of_main): Remove.
8841 (main_language): Declare.
8843 2014-01-15 Tom Tromey <tromey@redhat.com>
8845 * symfile.c (init_entry_point_info): Use new "initialized" field.
8847 * objfiles.h (struct entry_point) <initialized>: New field.
8848 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8849 (struct objfile) <ei>: ...here. Remove.
8850 * objfiles.c (entry_point_address_query): Update.
8852 2014-01-15 Tom Tromey <tromey@redhat.com>
8854 * objfiles.c (entry_point_address_query): Relocate entry point
8856 (objfile_relocate1): Do not relocate entry point address.
8857 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8858 <the_bfd_section_index>: New field.
8859 * symfile.c (init_entry_point_info): Find the entry point's
8862 2014-01-15 Tom Tromey <tromey@redhat.com>
8864 * solib-frv.c (enable_break): Use entry_point_address_query.
8866 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8868 * NEWS: Add note on improved process record-replay on
8869 arm*-linux* targets.
8871 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8873 * arm-tdep.c (enum arm_record_result): New enum.
8874 (arm_record_unsupported_insn): New function.
8875 (arm_record_coproc_data_proc): Removed.
8876 (thumb2_record_ld_st_multiple): New function.
8877 (thumb2_record_ld_st_dual_ex_tbb): New function.
8878 (thumb2_record_data_proc_sreg_mimm): New function.
8879 (thumb2_record_ps_dest_generic): New function.
8880 (thumb2_record_branch_misc_cntrl): New function.
8881 (thumb2_record_str_single_data): New function.
8882 (thumb2_record_ld_mem_hints): New function.
8883 (thumb2_record_ld_word): New function.
8884 (thumb2_record_lmul_lmla_div): New function.
8885 (thumb2_record_decode_insn_handler): New function.
8886 (decode_insn): Add thumb32 instruction handlers.
8888 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8890 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8891 (struct arm_linux_record_tdep): Declare.
8892 (arm_canonicalize_syscall): New function.
8893 (arm_all_but_pc_registers_record): New function.
8894 (arm_linux_syscall_record): New function.
8895 (arm_linux_init_abi): Add syscall recording constructs.
8896 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8897 decoding. (arm_record_coproc_data_proc): Update arm syscall
8899 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8900 <arm_syscall_record>: New field.
8901 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8904 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8906 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8907 register for push instruction recording.
8909 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8911 * arm-tdep.c (thumb_record_misc): Update to correct logical
8912 error while recording ldm, ldmia and pop instructions.
8914 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8916 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8918 2014-01-15 Pedro Alves <palves@redhat.com>
8920 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8921 (go32_resume, go32_fetch_registers, store_register)
8922 (go32_store_registers, go32_prepare_to_store)
8923 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8924 (go32_create_inferior, go32_can_run, go32_terminal_init)
8925 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8928 2014-01-15 Tom Tromey <tromey@redhat.com>
8930 * target.h (async_callback_ftype): New typedef.
8931 (struct target_ops) <to_async>: Use it.
8933 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8935 * python/py-value.c (get_field_type): Remove unnecessary curly
8936 braces for single-statement if block.
8938 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8940 * python/py-type.c (convert_field): Add missing empty line
8943 2014-01-14 Doug Evans <dje@google.com>
8945 * symfile.h (expand_symtabs_matching): Renamed from
8946 expand_partial_symbol_names. Update prototype.
8947 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8948 * symfile.c (expand_symtabs_matching): Renamed from
8949 expand_partial_symbol_names. New args file_matcher, kind.
8950 Rename arg fun to symbol_matcher.
8951 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8952 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8953 ada_expand_partial_symbol_name.
8954 (ada_make_symbol_completion_list): Update to call
8955 expand_symtabs_matching.
8956 (ada_add_global_exceptions): Call expand_symtabs_matching.
8957 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8958 call map_symbol_filenames.
8959 * symtab.c (sources_info): Update to call map_symbol_filenames.
8960 (search_symbols): Call expand_symtabs_matching.
8961 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8962 (default_make_symbol_completion_list_break_on): Update to call
8963 expand_symtabs_matching.
8964 (make_source_files_completion_list): Update to call
8965 map_symbol_filenames.
8967 2014-01-14 Doug Evans <dje@google.com>
8969 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8970 (expand_symtabs_symbol_matcher_ftype): New typedef.
8971 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8972 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8973 * symfile.c (expand_partial_symbol_names): Update to use
8974 expand_symtabs_symbol_matcher_ftype.
8975 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8976 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8977 Arg name_matcher renamed to symbol_matcher.
8978 * psymtab.c (recursively_search_psymtabs): Update to use
8979 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8981 (expand_symtabs_matching_via_partial): Update to use
8982 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8983 Arg name_matcher renamed to symbol_matcher.
8985 2014-01-14 Doug Evans <dje@google.com>
8987 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8988 (map_partial_symbol_filenames): Ditto.
8989 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8990 (map_partial_symbol_filenames): Ditto.
8991 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8992 (map_partial_symbol_filenames): Ditto.
8993 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8994 (map_partial_symbol_filenames): Ditto.
8995 * symtab.c: Delete #include "psymtab.h".
8997 2014-01-14 Pedro Alves <palves@redhat.com>
8998 Tom Tromey <tromey@redhat.com>
9000 * infrun.c (use_displaced_stepping): Use find_record_target
9001 instead of RECORD_IS_USED.
9002 (adjust_pc_after_break): Use record_full_is_used instead of
9004 * record-btrace.c (record_btrace_open): Call record_preopen
9005 instead of checking RECORD_IS_USED.
9006 * record-full.c (record_full_shortname)
9007 (record_full_core_shortname): New globals.
9008 (record_full_is_used): New function.
9009 (find_full_open): Call record_preopen instead of checking
9011 (init_record_full_ops): Set the target's shortname to
9012 record_full_shortname.
9013 (init_record_full_core_ops): Set the target's shortname to
9014 record_full_core_shortname.
9015 * record-full.h (record_full_is_used): Declare.
9016 * record.c (find_record_target): Make extern.
9017 (record_preopen): New function.
9018 * record.h (RECORD_IS_USED): Delete macro.
9019 (find_record_target, record_preopen): Declare functions.
9021 2014-01-14 Yao Qi <yao@codesourcery.com>
9023 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9024 'len''s type to ULONGEST.
9025 (core_xfer_shared_libraries_aix): Likewise.
9026 * gdbarch.c, gdbarch.h: Regenerated.
9027 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9028 Change type of 'len' to ULONGEST.
9029 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9030 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9032 2014-01-14 Yao Qi <yao@codesourcery.com>
9034 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9035 type of 'len' to ULONGEST.
9036 (linux_xfer_osdata_processgroups): Likewise.
9037 (linux_xfer_osdata_threads): Likewise.
9038 (linux_xfer_osdata_fds): Likewise.
9039 (linux_xfer_osdata_isockets): Likewise.
9040 (linux_xfer_osdata_shm): Likewise.
9041 (linux_xfer_osdata_sem): Likewise.
9042 (linux_xfer_osdata_msg): Likewise.
9043 (linux_common_xfer_osdata): Likewise.
9044 (struct osdata_type) <getter>: Likewise.
9045 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9048 2014-01-14 Yao Qi <yao@codesourcery.com>
9050 * target.h (target_xfer_partial_ftype): Update.
9051 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9053 * aix-thread.c (aix_thread_xfer_partial): Change type of
9054 argument 'len' to ULONGEST.
9055 * auxv.c (procfs_xfer_auxv): Likewise.
9056 (ld_so_xfer_auxv): Likewise.
9057 (memory_xfer_auxv): Likewise.
9058 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9059 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9060 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9061 * corelow.c (core_xfer_partial): Likewise.
9062 * ctf.c (ctf_xfer_partial): Likewise.
9063 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9065 (darwin_read_dyld_info): Likewise.
9066 (darwin_xfer_partial): Likewise.
9067 * exec.c (section_table_xfer_memory_partial): Likewise.
9068 (exec_xfer_partial): Likewise.
9069 * exec.h (section_table_xfer_memory_partial): Update
9071 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9072 instead of plongest.
9073 (gnu_xfer_partial): Likewise.
9074 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9075 (ia64_hpux_xfer_solib_got): Likewise.
9076 (ia64_hpux_xfer_partial): Likewise.
9077 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9078 * inf-ptrace.c (inf_ptrace_xfer_partial):
9079 * inf-ttrace.c (inf_ttrace_xfer_partial):
9080 * linux-nat.c (linux_xfer_siginfo): Likewise.
9081 (linux_nat_xfer_partial): Likewise.
9082 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9083 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9084 * monitor.c (monitor_xfer_memory): Likewise.
9085 (monitor_xfer_partial): Likewise.
9086 * procfs.c (procfs_xfer_partial): Likewise.
9087 * record-full.c (record_full_xfer_partial): Likewise.
9088 (record_full_core_xfer_partial): Likewise.
9089 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9090 instead of plongest.
9091 (gdbsim_xfer_partial): Likewise.
9092 * remote.c (remote_xfer_partial): Likewise.
9093 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9094 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9096 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9097 (rs6000_xfer_shared_libraries): Likewise.
9098 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9099 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9100 (sparc_xfer_partial): Likewise.
9101 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9102 (spu_xfer_partial): Likewise.
9103 * spu-multiarch.c (spu_xfer_partial): Likewise.
9104 * target.c (target_read_live_memory): Likewise.
9105 (memory_xfer_live_readonly_partial): Likewise.
9106 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9107 (target_xfer_partial, default_xfer_partial): Likewise.
9108 (current_xfer_partial): Likewise.
9109 * tracepoint.c (tfile_xfer_partial): Likewise.
9110 * windows-nat.c (windows_xfer_memory): Likewise. Call
9111 pulongest instead of plongest.
9112 (windows_xfer_partial): Likewise.
9113 (windows_xfer_shared_libraries): Likewise.
9115 2014-01-14 Yao Qi <yao@codesourcery.com>
9117 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9118 target_xfer_partial_ftype.
9120 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9124 * valops.c (value_struct_elt_bitpos): New function
9125 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9126 object to 'None' if the field name is an empty string ("").
9127 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9128 attribute to look for a field when 'name' is 'None'.
9129 (get_field_type): New function
9131 2014-01-13 Doug Evans <dje@google.com>
9134 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9135 (try_open_dwop_file): Ditto.
9136 * gdb_bfd.c: #include "vec.h".
9137 (bfdp): New typedef.
9138 (struct gdb_bfd_data): New member included_bfds.
9139 (gdb_bfd_unref): Unref all included bfds.
9140 (gdb_bfd_record_inclusion): New function.
9141 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9143 2014-01-13 Tom Tromey <tromey@redhat.com>
9145 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9147 2014-01-13 Tom Tromey <tromey@redhat.com>
9149 * defs.h (use_windows): Remove.
9150 * gdb.c (main): Update.
9151 * main.c (captured_main, gdb_main): Update.
9152 * main.h (struct captured_main_args) <use_windows>: Remove.
9153 * top.c (use_windows): Remove.
9155 2014-01-13 Tom Tromey <tromey@redhat.com>
9157 * defs.h (deprecated_flush_hook): Remove.
9159 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9162 * linux-thread-db.c (try_thread_db_load): Add parameter
9163 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9164 (try_thread_db_load_from_pdir_1): Move it there from here.
9165 (try_thread_db_load_from_sdir): Update caller.
9166 (try_thread_db_load_from_dir): Move it there from here.
9168 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9170 * regformats/regdat.sh: Always rewrite the register file.
9172 2014-01-13 Pedro Alves <palves@redhat.com>
9174 * Makefile.in (CHECK_HEADERS): New variable.
9175 (check-headers:): New rule.
9177 2014-01-13 Tom Tromey <tromey@redhat.com>
9179 * cli/cli-setshow.c (do_set_command): Update.
9180 * defs.h (deprecated_set_hook): Remove.
9181 * top.c (deprecated_set_hook): Remove.
9183 2014-01-13 Pedro Alves <palves@redhat.com>
9185 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9186 the tracepoint if the PC is a pseudo-register.
9188 2014-01-13 Tom Tromey <tromey@redhat.com>
9190 * defs.h (XCALLOC): Remove.
9191 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9192 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9193 * dwarf2loc.c (allocate_piece_closure): Likewise.
9194 * elfread.c (elf_symfile_segments): Likewise.
9195 (elf_symfile_segments): Likewise.
9196 * gdbtypes.c (copy_type_recursive): Likewise.
9197 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9198 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9199 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9201 * mt-tdep.c (mt_gdbarch_init): Likewise.
9202 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9204 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9205 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9206 * registry.c (registry_alloc_data): Likewise.
9207 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9208 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9209 * serial.c (serial_fdopen_ops): Likewise.
9210 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9212 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9213 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9216 2014-01-13 Tom Tromey <tromey@redhat.com>
9218 * defs.h (XMALLOC): Remove.
9219 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9220 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9221 * cli-out.c (struct ui_out *): Likewise.
9222 * cli/cli-dump.c (add_dump_command): Likewise.
9223 (add_dump_command): Likewise.
9224 * complaints.c (get_complaints): Likewise.
9225 (find_complaint): Likewise.
9226 * dwarf2-frame.c (execute_cfa_program): Likewise.
9227 * dwarf2read.c (abbrev_table_read_table): Likewise.
9228 * gdbarch.sh: Likewise.
9229 * gdbarch.c: Rebuild.
9230 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9231 * interps.c (interp_new): Likewise.
9232 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9233 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9234 * mi/mi-console.c (mi_console_file_new): Likewise.
9235 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9236 * mi/mi-out.c (mi_out_new): Likewise.
9237 * mi/mi-parse.c (mi_parse): Likewise.
9238 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9239 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9240 * observer.c (xalloc_observer_list_node): Likewise.
9241 * regcache.c (regcache_xmalloc_1): Likewise.
9242 * reggroups.c (reggroup_new): Likewise.
9243 (_initialize_reggroup): Likewise.
9244 * registry.c (register_data_with_cleanup): Likewise.
9245 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9246 * ser-base.c (serial_ttystate): Likewise.
9247 * ser-mingw.c (make_pipe_state): Likewise.
9248 * ser-pipe.c (pipe_open): Likewise.
9249 * serial.c (serial_open): Likewise.
9250 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9251 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9252 (tui_alloc_win_info): Likewise.
9253 (tui_add_content_elements): Likewise.
9254 * tui/tui-file.c (tui_file_new): Likewise.
9255 * tui/tui-out.c (tui_out_new): Likewise.
9256 * ui-file.c (mem_file_new): Likewise.
9257 * ui-out.c (push_level): Likewise.
9258 (make_cleanup_ui_out_end): Likewise.
9259 (append_header_to_list): Likewise.
9260 (ui_out_new): Likewise.
9261 * user-regs.c (user_reg_add_builtin): Likewise.
9263 2014-01-13 Tom Tromey <tromey@redhat.com>
9265 * defs.h (XZALLOC): Remove.
9266 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9267 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9268 (get_ada_tasks_inferior_data): Likewise.
9269 * auto-load.c (get_auto_load_pspace_data): Likewise.
9270 * auxv.c (get_auxv_inferior_data): Likewise.
9271 * bfd-target.c (target_bfd_reopen): Likewise.
9272 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9273 (deprecated_insert_raw_breakpoint): Likewise.
9274 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9275 * corelow.c (core_open): Likewise.
9276 * darwin-nat.c (darwin_check_new_threads): Likewise.
9277 (darwin_attach_pid): Likewise.
9278 * dummy-frame.c (dummy_frame_push): Likewise.
9279 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9280 * dwarf2loc.c (allocate_piece_closure): Likewise.
9281 * elfread.c (elf_symfile_segments): Likewise.
9282 * eval.c (ptrmath_type_p): Likewise.
9283 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9284 * gdbtypes.c (alloc_type_arch): Likewise.
9285 (alloc_type_instance): Likewise.
9286 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9287 * inf-child.c (inf_child_can_use_agent): Likewise.
9288 * inflow.c (get_inflow_inferior_data): Likewise.
9289 * infrun.c (save_infcall_suspend_state): Likewise.
9290 * jit.c (jit_reader_load): Likewise.
9291 (get_jit_objfile_data): Likewise.
9292 (get_jit_program_space_data): Likewise.
9293 (jit_object_open_impl): Likewise.
9294 (jit_symtab_open_impl): Likewise.
9295 (jit_block_open_impl): Likewise.
9296 (jit_frame_sniffer): Likewise.
9297 * linux-fork.c (add_fork): Likewise.
9298 * maint.c (make_command_stats_cleanup): Likewise.
9299 * objfiles.c (get_objfile_pspace_data): Likewise.
9300 * opencl-lang.c (struct lval_closure): Likewise.
9301 * osdata.c (osdata_start_osdata): Likewise.
9302 * progspace.c (new_address_space): Likewise.
9303 (add_program_space): Likewise.
9304 * remote-sim.c (get_sim_inferior_data): Likewise.
9305 * sh-tdep.c (sh_gdbarch_init): Likewise.
9306 * skip.c (Ignore): Likewise.
9307 (skip_delete_command): Likewise.
9308 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9309 (library_list_start_library): Likewise.
9310 (solib_aix_current_sos): Likewise.
9311 * solib-darwin.c (get_darwin_info): Likewise.
9312 (darwin_current_sos): Likewise.
9313 * solib-dsbt.c (get_dsbt_info): Likewise.
9314 * solib-ia64-hpux.c (new_so_list): Likewise.
9315 (ia64_hpux_get_solib_linkage_addr): Likewise.
9316 * solib-spu.c (append_ocl_sos): Likewise.
9317 (spu_current_sos): Likewise.
9318 * solib-svr4.c (get_svr4_info): Likewise.
9319 (svr4_keep_data_in_core): Likewise.
9320 (library_list_start_library): Likewise.
9321 (svr4_default_sos): Likewise.
9322 (svr4_read_so_list): Likewise.
9323 * solib-target.c (library_list_start_library): Likewise.
9324 (solib_target_current_sos): Likewise.
9325 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9326 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9327 * symfile.c (default_symfile_segments): Likewise.
9328 * target-descriptions.c (tdesc_data_init): Likewise.
9329 (tdesc_create_reg): Likewise.
9330 (struct tdesc_type *): Likewise.
9331 (tdesc_create_vector): Likewise.
9332 (tdesc_set_struct_size): Likewise.
9333 (struct tdesc_type *): Likewise.
9334 (tdesc_free_feature): Likewise.
9335 (tdesc_create_feature): Likewise.
9336 * windows-nat.c (windows_add_thread): Likewise.
9337 (windows_make_so): Likewise.
9338 * xml-support.c (gdb_xml_body_text): Likewise.
9339 (gdb_xml_create_parser_and_cleanup): Likewise.
9340 (xml_process_xincludes): Likewise.
9341 * xml-syscall.c (allocate_syscalls_info): Likewise.
9342 (syscall_create_syscall_desc): Likewise.
9344 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9346 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9347 function, with code from i386_stap_parse_special_token.
9348 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9349 (i386_stap_parse_special_token): Move code to the two functions
9352 2014-01-09 Pedro Alves <palves@redhat.com>
9353 Hui Zhu <hui@codesourcery.com>
9356 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9357 bp_err_string. Don't mark the location shlib_disabled if the
9358 error thrown wasn't a generic or memory error. Catch errors
9359 thrown while inserting breakpoints in overlayed code. Output
9360 error message of software breakpoints.
9361 * remote.c (remote_insert_breakpoint): If this breakpoint has
9362 target-side commands but this stub doesn't support Z0 packets,
9363 throw NOT_SUPPORTED_ERROR error.
9364 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9365 * target.h (target_insert_breakpoint): Extend comment.
9366 (target_insert_hw_breakpoint): Add comment.
9368 2014-01-08 Pedro Alves <palves@redhat.com>
9370 * remote.c (remote_add_thread): Add threads silently if starting
9372 (remote_notice_new_inferior): If in all-stop, and starting up,
9373 don't call notice_new_inferior.
9374 (get_current_thread): New function, factored out from ...
9375 (add_current_inferior_and_thread): ... this. Adjust.
9376 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9377 found any thread, then select the remote's current thread as GDB's
9380 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9382 * NEWS: Create a new section for the next release branch.
9383 Rename the section of the current branch, now that it has
9386 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9388 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9389 * version.in: Bump version to 7.7.50.DATE-cvs.
9391 2014-01-08 Yao Qi <yao@codesourcery.com>
9393 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9394 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9395 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9397 2014-01-08 Yao Qi <yao@codesourcery.com>
9399 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9400 return value of bfd_get_filename to symbol_file_add_from_bfd.
9402 2014-01-08 Pierre Muller <muller@sourceware.org>
9405 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9406 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9407 to prim_record_mininal_symbol_and_info.
9408 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9409 in call to prim_record_minimal_symbol_and_info.
9410 (read_pe_exported_syms): Set index field of section_data.
9412 2014-01-07 Andrew Pinski <apinski@cavium.com>
9414 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9415 * features/aarch64.c: Regenerate.
9417 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9419 * target.c (return_null): Define.
9420 (update_current_target): Use it instead of return_zero for
9421 functions that return a pointer.
9423 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9425 * source.c (add_path): Fix check for duplicated paths in the previously
9428 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9430 * ada-lang.c: Remove duplicated include statements.
9431 * alphabsd-nat.c: Ditto.
9432 * amd64-darwin-tdep.c: Ditto.
9433 * amd64fbsd-nat.c: Ditto.
9434 * auto-load.c: Ditto.
9436 * breakpoint.c: Ditto.
9438 * fork-child.c: Ditto.
9439 * gdb_usleep.c: Ditto.
9440 * i386-darwin-tdep.c: Ditto.
9441 * i386fbsd-nat.c: Ditto.
9443 * inferior.c: Ditto.
9445 * linux-nat.c: Ditto.
9446 * linux-tdep.c: Ditto.
9447 * m68kbsd-nat.c: Ditto.
9448 * m68klinux-nat.c: Ditto.
9449 * microblaze-tdep.c: Ditto.
9450 * mips-linux-tdep.c: Ditto.
9451 * mn10300-tdep.c: Ditto.
9452 * nto-tdep.c: Ditto.
9453 * opencl-lang.c: Ditto.
9455 * printcmd.c: Ditto.
9456 * regcache.c: Ditto.
9457 * remote-m32r-sdi.c: Ditto.
9461 * tilegx-linux-nat.c: Ditto.
9462 * tilegx-tdep.c: Ditto.
9463 * tracepoint.c: Ditto.
9465 * vaxbsd-nat.c: Ditto.
9466 * windows-nat.c: Ditto.
9467 * xtensa-tdep.c: Ditto.
9469 2014-01-07 Yao Qi <yao@codesourcery.com>
9471 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9473 2014-01-07 Yao Qi <yao@codesourcery.com>
9474 Joel Brobecker <brobecker@adacore.com>
9476 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9477 (pdc_write_regs): Likewise.
9478 (fetch_regs_kernel_thread): Likewise.
9479 (store_regs_kernel_thread): Likewise.
9481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9483 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9484 tagged type objects to their actual type.
9486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9488 * ada-valprint.c (print_field_values): Add "language" parameter.
9489 Update calls to print_field_values and print_variant_part.
9490 Pass new parameter "language" in call to val_print instead
9491 of "current_language". Replace call to ada_val_print by call
9493 (print_variant_part): Add "language" parameter.
9494 (ada_val_print_struct_union): Update call to print_field_values.
9496 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9498 * ada-valprint.c (ui_memcpy): Delete.
9499 (ada_print_floating): Update documentation. Add empty line
9500 between between function documentation and implementation.
9501 Delete variable "buffer". Use ui_file_xstrdup in place of
9502 ui_file_put. Minor adjustments following this change.
9504 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9506 * ada-valprint.c (ada_val_print_string): New function,
9507 extracted from ada_val_print_array.
9508 (ada_val_print_array): Replace extracted code by call
9509 to ada_val_print_string followed by a return. Move
9510 "else" branch to the function's top block.
9512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9514 * ada-valprint.c (ada_val_print_array): Move implementation
9515 down. Rename parameter "offset" and "val" into "offset_aligned"
9516 and "original_value" respectively. Add parameter "offset".
9518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9520 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9521 re-organizing the code. Change the "???" message printed
9522 when target type is a TYPE_CODE_UNDEF into
9523 "<ref to undefined type>".
9525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9527 * ada-valprint.c (print_record): Delete, implementation inlined...
9528 (ada_val_print_struct_union): ... here. Remove call to
9529 ada_check_typedef in inlined implementation.
9531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9533 * ada-valprint.c (ada_val_print_gnat_array): New function,
9534 extracted from ada_val_print_1;
9535 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9536 (ada_val_print_flt, ada_val_print_struct_union)
9537 (ada_val_print_ref): Likewise.
9538 (ada_val_print_1): Delete variables i and elttype.
9539 Replace extracted-out code by call to corresponding
9542 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9544 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9548 * ada-valprint.c (ada_val_print_1): Replace calls to
9549 ada_val_print_1 by calls to val_print.
9551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9553 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9554 Update calls to self accordingly. Replace calls to c_val_print
9555 by calls to val_print.
9557 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9559 * ada-valprint.c (print_record): Delete declaration.
9560 (adjust_type_signedness, ada_val_print_1): Likewise.
9561 (ada_val_print): Move function implementation down.
9562 (print_variant_part, print_field_values, print_record):
9563 Move function implementation up.
9565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9567 * python/py-type.c (typy_get_name): New function.
9568 (type_object_getset): Add entry for attribute "name".
9569 * NEWS: Add entry mentioning this new attribute.
9571 2014-01-07 Yao Qi <yao@codesourcery.com>
9573 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9576 2014-01-07 Yao Qi <yao@codesourcery.com>
9578 * gnu-nat.c (info_port_rights): Add qualifier const to
9581 2014-01-07 Yao Qi <yao@codesourcery.com>
9583 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9585 2014-01-07 Yao Qi <yao@codesourcery.com>
9587 * gnu-nat.c (make_inf) Update declaration.
9588 (make_inf): Make it static.
9589 (inf_set_traced): Likewise.
9590 (inf_port_to_thread, inf_task_died_status): Likewise.
9592 2014-01-07 Yao Qi <yao@codesourcery.com>
9594 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9596 2014-01-07 Yao Qi <yao@codesourcery.com>
9598 * gnu-nat.c (_initialize_gnu_nat): Declare.
9600 2014-01-07 Yao Qi <yao@codesourcery.com>
9602 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9604 (struct gdbarch_info) <byte_order>: Change type to
9606 <byte_order_for_code>: Likewise.
9607 * gdbarch.c, gdbarch.h: Regenerated.
9609 2014-01-06 Sasha Smundak <asmundak@google.com>
9611 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9613 2014-01-06 Tom Tromey <tromey@redhat.com>
9615 * doublest.c (convert_doublest_to_floatformat): Use const, not
9617 * somread.c (som_symtab_read): Likewise.
9619 2014-01-07 Hui Zhu <hui@codesourcery.com>
9621 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9622 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9623 (gdb_bfd_fopen): Ditto.
9624 (gdb_bfd_openr): Ditto.
9625 (gdb_bfd_openw): Ditto.
9626 (gdb_bfd_openr_iovec): Ditto.
9627 (gdb_bfd_fdopenr): Ditto.
9628 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9629 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9631 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9633 * symfile-mem.c (symbol_file_add_from_memory): Removed
9634 gdb_bfd_stash_filename.
9636 2014-01-03 Doug Evans <dje@google.com>
9638 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9641 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9643 Update year range in copyright notice of all files.
9645 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9647 * top.c (print_gdb_version): Set copyright year to 2014.
9649 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9651 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9653 For older changes see ChangeLog-2013.
9659 version-control: never