1 2014-06-20 Gary Benson <gbenson@redhat.com>
3 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5 (i386_dr_low): Likewise.
6 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
7 (i386_dr_low_set_addr): Likewise.
8 (i386_dr_low_get_addr): Likewise.
9 (i386_dr_low_can_set_control): Likewise.
10 (i386_dr_low_set_control): Likewise.
11 (i386_dr_low_get_control): Likewise.
12 (i386_dr_low_get_status): Likewise.
13 (i386_get_debug_register_length): Likewise.
14 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
15 (i386_dr_low): Likewise.
16 * nat/i386-dregs.c (i386-low.h): Remove include.
17 (i386-nat.h): Likewise.
18 (nat/i386-dregs.h): New include.
19 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
20 (i386_dr_low_set_addr): Likewise.
21 (i386_dr_low_get_addr): Likewise.
22 (i386_dr_low_can_set_control): Likewise.
23 (i386_dr_low_set_control): Likewise.
24 (i386_dr_low_get_control): Likewise.
25 (i386_dr_low_get_status): Likewise.
26 (i386_get_debug_register_length): Likewise.
27 (debug_hw_points): Likewise.
29 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
31 * Makefile.in (SFILES): Add d-exp.y.
32 (YYFILES): Add d-exp.c.
34 (local-maintainer-clean): Delete d-exp.c.
36 * d-lang.h (d_parse): New declaration.
37 (d_error): New declaration.
38 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
39 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
41 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
43 2014-06-19 Yao Qi <yao@codesourcery.com>
45 * gdbthread.h (any_running): Remove the declaration.
46 * thread.c (any_running): Remove.
48 2014-06-19 Yao Qi <yao@codesourcery.com>
50 * gdbthread.h (struct thread_info) <state>: Change its type to
51 'enum thread_state'. Update comments.
53 2014-06-19 Pedro Alves <palves@redhat.com>
55 * gdbthread.h (ALL_THREADS): Delete.
56 (ALL_NON_EXITED_THREADS): New macro.
57 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
58 instead of ALL_THREADS.
59 * infrun.c (find_thread_needs_step_over)
60 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
61 instead of ALL_THREADS.
62 * record-btrace.c (record_btrace_open)
63 (record_btrace_stop_recording, record_btrace_close)
64 (record_btrace_is_replaying, record_btrace_resume)
65 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
66 * remote.c (append_pending_thread_resumptions): Likewise.
67 * thread.c (thread_apply_all_command): Likewise.
69 2014-06-19 Gary Benson <gbenson@redhat.com>
71 * i386-nat.c (i386_stopped_by_watchpoint):
72 Use i386_dr_stopped_by_watchpoint.
73 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
74 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
76 2014-06-19 Gary Benson <gbenson@redhat.com>
78 * nat/i386-dregs.c: New file.
79 * Makefile.in (i386-dregs.o): New rule.
80 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
81 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
82 * config/i386/darwin.mh (NATDEPFILES): Likewise.
83 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
84 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
85 * config/i386/go32.mh (NATDEPFILES): Likewise.
86 * config/i386/linux.mh (NATDEPFILES): Likewise.
87 * config/i386/linux64.mh (NATDEPFILES): Likewise.
88 * config/i386/mingw.mh (NATDEPFILES): Likewise.
89 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
90 * i386-nat.h (debug_hw_points): New declaration.
91 * i386-nat.c (breakpoint.h): Remove include.
92 (command.h): Likewise.
94 (gdb_assert.h): Likewise.
95 (debug_hw_points): Made nonstatic.
96 (debug_printf): Now in i386-dregs.c.
97 (TARGET_HAS_DR_LEN_8): Likewise.
98 (DR_CONTROL_SHIFT): Likewise.
99 (DR_CONTROL_SIZE): Likewise.
100 (DR_RW_EXECUTE): Likewise.
101 (DR_RW_WRITE): Likewise.
102 (DR_RW_READ): Likewise.
103 (DR_RW_IORW): Likewise.
104 (DR_LEN_1): Likewise.
105 (DR_LEN_2): Likewise.
106 (DR_LEN_4): Likewise.
107 (DR_LEN_8): Likewise.
108 (DR_LOCAL_ENABLE_SHIFT): Likewise.
109 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
110 (DR_ENABLE_SIZE): Likewise.
111 (DR_LOCAL_SLOWDOWN): Likewise.
112 (DR_GLOBAL_SLOWDOWN): Likewise.
113 (DR_CONTROL_RESERVED): Likewise.
114 (I386_DR_CONTROL_MASK): Likewise.
115 (I386_DR_VACANT): Likewise.
116 (I386_DR_LOCAL_ENABLE): Likewise.
117 (I386_DR_GLOBAL_ENABLE): Likewise.
118 (I386_DR_DISABLE): Likewise.
119 (I386_DR_SET_RW_LEN): Likewise.
120 (I386_DR_GET_RW_LEN): Likewise.
121 (I386_DR_WATCH_HIT): Likewise.
122 (i386_wp_op_t): Likewise.
123 (i386_show_dr): Likewise.
124 (i386_length_and_rw_bits): Likewise.
125 (i386_insert_aligned_watchpoint): Likewise.
126 (i386_remove_aligned_watchpoint): Likewise.
127 (i386_handle_nonaligned_watchpoint): Likewise.
128 (i386_update_inferior_debug_regs): Likewise.
129 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
130 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
131 (i386_region_ok_for_watchpoint):
132 Use i386_dr_region_ok_for_watchpoint.
133 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
135 2014-06-19 Gary Benson <gbenson@redhat.com>
137 * i386-nat.c (i386_insert_hw_breakpoint): Use
138 i386_insert_watchpoint.
139 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
141 2014-06-19 Gary Benson <gbenson@redhat.com>
143 * i386-nat.c (i386_dr_show): Renamed to
144 i386_show_dr and made static. All uses updated.
145 (i386_dr_length_and_rw_bits): Renamed to
146 i386_length_and_rw_bits and made static.
148 (i386_dr_insert_aligned_watchpoint): Renamed to
149 i386_insert_aligned_watchpoint and made static.
151 (i386_dr_remove_aligned_watchpoint): Renamed to
152 i386_remove_aligned_watchpoint and made static.
154 (i386_dr_update_inferior_debug_regs): Renamed to
155 i386_update_inferior_debug_regs and made static.
157 * nat/i386-dregs.h (i386_dr_show): Removed.
158 (i386_dr_length_and_rw_bits): Likewise.
159 (i386_dr_insert_aligned_watchpoint): Likewise.
160 (i386_dr_remove_aligned_watchpoint): Likewise.
161 (i386_dr_update_inferior_debug_regs): Likewise.
163 2014-06-19 Gary Benson <gbenson@redhat.com>
165 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
166 * configure: Regenerate.
167 * config.in: Likewise.
168 * main.c (signal.h): New include.
169 (setup_alternate_signal_stack): New function.
170 (captured_main): Call the above.
171 * cp-support.c (signal.h): New include.
172 (catch_demangler_crashes): New flag.
173 (SIGJMP_BUF): New define.
174 (SIGSETJMP): Likewise.
175 (SIGLONGJMP): Likewise.
176 (gdb_demangle_jmp_buf): New static global.
177 (gdb_demangle_attempt_core_dump): Likewise.
178 (gdb_demangle_signal_handler): New function.
179 (gdb_demangle): If catch_demangler_crashes is set, install the
180 above signal handler before calling bfd_demangle, and restore
181 the original signal handler afterwards. Display the offending
182 symbol and call demangler_warning the first time a segmentation
184 (_initialize_cp_support): New maint set/show command.
186 2014-06-19 Gary Benson <gbenson@redhat.com>
188 * utils.h (resource_limit_kind): New enum.
189 (can_dump_core): New declaration.
190 (warn_cant_dump_core): Likewise.
191 (dump_core): Likewise.
192 * utils.c (dump_core): Made nonstatic. Added new
193 parameter "limit_kind".
194 (can_dump_core): Made nonstatic. Moved printing code to...
195 (warn_cant_dump_core): New function.
196 (can_dump_core_warn): Likewise.
197 (internal_vproblem): Replace calls to can_dump_core with
198 calls to can_dump_core_warn. Supply new argument to each.
200 2014-06-19 Gary Benson <gbenson@redhat.com>
202 * utils.h (demangler_vwarning): New declaration.
203 (demangler_warning): Likewise.
204 * utils.c (struct internal_problem)
205 <user_settable_should_quit>: New field.
206 <user_settable_should_dump_core>: Likewise
207 (internal_error_problem): Add values for above new fields.
208 (internal_warning_problem): Likewise.
209 (demangler_warning_problem): New static global.
210 (demangler_vwarning): New function.
211 (demangler_warning): Likewise.
212 (add_internal_problem_command): Selectively add commands.
213 (_initialize_utils): New internal problem command.
214 * maint.c (maintenance_demangler_warning): New function.
215 (_initialize_maint_cmds): New command.
217 2014-06-18 Tom Tromey <tromey@redhat.com>
219 * f-valprint.c (info_common_command_for_block): Update.
220 * symtab.h (struct general_symbol_info) <common_block>: Now
223 2014-06-18 Tom Tromey <tromey@redhat.com>
225 * symtab.h (struct symtab) <blockvector>: Now const.
226 * ada-lang.c (ada_add_global_exceptions): Update.
227 * buildsym.c (augment_type_symtab): Update.
228 * dwarf2read.c (dw2_lookup_symbol): Update.
229 * jit.c (finalize_symtab): Update.
230 * jv-lang.c (add_class_symtab_symbol): Update.
231 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
233 * objfiles.c (objfile_relocate1): Update.
234 * psymtab.c (lookup_symbol_aux_psymtabs)
235 (maintenance_check_psymtabs): Update.
236 * python/py-symtab.c (stpy_global_block, stpy_static_block):
238 * spu-tdep.c (spu_catch_start): Update.
239 * symmisc.c (dump_symtab_1): Update.
240 * symtab.c (lookup_global_symbol_from_objfile)
241 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
242 (basic_lookup_transparent_type_quick)
243 (basic_lookup_transparent_type, find_pc_sect_symtab)
244 (find_pc_sect_line, search_symbols): Update.
245 * block.c (find_block_in_blockvector): Make "bl" const.
246 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
248 (blockvector_contains_pc): Make "bv" const.
249 (block_for_pc_sect): Update.
250 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
251 (blockvector_contains_pc): Update.
252 * breakpoint.c (resolve_sal_pc): Update.
253 * inline-frame.c (block_starting_point_at): Update.
255 2014-06-18 Tom Tromey <tromey@redhat.com>
257 * completer.c (complete_line): Make "line_buffer" const.
258 * completer.h (complete_line): Update.
260 2014-06-18 Tom Tromey <tromey@redhat.com>
262 * symtab.c (add_macro_name): Remove unneeded cast.
264 2014-06-18 Tom Tromey <tromey@redhat.com>
266 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
267 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
269 2014-06-18 Tom Tromey <tromey@redhat.com>
271 * probe.c (info_probes_for_ops): Make "arg" const.
272 * probe.h (info_probes_for_ops): Update.
274 2014-06-18 Tom Tromey <tromey@redhat.com>
276 * varobj.c (varobj_create): Update.
277 * valops.c (value_of_this): Update.
278 * tracepoint.c (add_local_symbols, scope_info): Update.
279 * symtab.h (struct general_symbol_info) <block>: Now const.
280 * symtab.c (skip_prologue_sal)
281 (default_make_symbol_completion_list_break_on)
282 (skip_prologue_using_sal): Update.
283 * stack.h (iterate_over_block_locals)
284 (iterate_over_block_local_vars): Update.
285 * stack.c (print_frame_args): Update.
286 (iterate_over_block_locals, iterate_over_block_local_vars): Make
288 (get_selected_block): Make return type const.
289 * python/py-frame.c (frapy_block): Update.
290 * python/py-block.c (gdbpy_block_for_pc): Update.
291 * p-exp.y (%union) <bval>: Now const.
292 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
293 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
294 * m2-exp.y (%union) <bval>: Now const.
295 * linespec.c (get_current_search_block): Make return type const.
296 (create_sals_line_offset, find_label_symbols): Update.
297 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
299 (block_starting_point_at): Make "block" const.
300 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
301 (check_exception_resume): Update.
302 * guile/scm-frame.c (gdbscm_frame_block): Update.
303 * guile/scm-block.c (gdbscm_lookup_block): Update.
304 * frame.h (get_frame_block): Update.
305 (get_selected_block): Make return type const.
306 * frame.c (frame_id_inner): Update.
307 * f-valprint.c (info_common_command_for_block)
308 (info_common_command): Update.
309 * dwarf2loc.c (dwarf2_find_location_expression)
310 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
311 (locexpr_describe_location_piece): Update.
312 * c-exp.y (%union) <bval>: Now const.
313 * breakpoint.c (resolve_sal_pc): Update.
314 * blockframe.c (get_frame_block):Make return type const.
315 (get_pc_function_start, get_frame_function, find_pc_sect_function)
316 (block_innermost_frame): Update.
317 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
318 (block_for_pc, block_for_pc_sect): Update.
319 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
321 (block_for_pc_sect, block_for_pc): Make return type const.
322 * ax-gdb.c (gen_expr): Update.
323 * alpha-mdebug-tdep.c (find_proc_desc): Update.
324 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
325 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
326 (ada_read_var_value): Update.
327 * ada-exp.y (struct name_info) <block>: Now const.
329 (block_lookup): Constify.
331 2014-06-18 Gary Benson <gbenson@redhat.com>
333 * nat/i386-dregs.h: New file.
334 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
335 * i386-nat.h (i386-dregs.h): New include.
336 (DR_FIRSTADDR): Now in i386-dregs.h.
337 (DR_LASTADDR): Likewise.
338 (DR_NADDR): Likewise.
339 (DR_STATUS): Likewise.
340 (DR_CONTROL): Likewise.
341 (i386_debug_reg_state): Likewise.
342 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
344 2014-06-18 Don Breazeal <donb@codesourcery.com>
346 * breakpoint.c (set_longjmp_breakpoint): Call
347 momentary_breakpoint_from_master with additional argument.
348 (set_longjmp_breakpoint_for_call_dummy): Call
349 momentary_breakpoint_from_master with additional argument.
350 (set_std_terminate_breakpoint): Call
351 momentary_breakpoint_from_master with additional argument.
352 (momentary_breakpoint_from_master): Add argument to function
353 definition and use it to initialize structure member flag.
354 (clone_momentary_breakpoint): Call
355 momentary_breakpoint_from_master with additional argument.
356 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
357 member flags set in momentary_breakpoint_from_master.
359 2014-06-18 Gary Benson <gbenson@redhat.com>
361 * i386-nat.c (i386_show_dr): Renamed to
362 i386_dr_show and made nonstatic. All uses updated.
363 (i386_length_and_rw_bits): Renamed to
364 i386_dr_length_and_rw_bits and made nonstatic.
366 (i386_insert_aligned_watchpoint): Renamed to
367 i386_dr_insert_aligned_watchpoint and made nonstatic.
369 (i386_remove_aligned_watchpoint): Renamed to
370 i386_dr_remove_aligned_watchpoint and made nonstatic.
372 (i386_update_inferior_debug_regs): Renamed to
373 i386_dr_update_inferior_debug_regs and made nonstatic.
376 2014-06-18 Gary Benson <gbenson@redhat.com>
378 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
379 (i386_dr_low_can_set_control): Likewise.
380 (i386_dr_low_set_addr): Likewise.
381 (i386_dr_low_set_control): Likewise.
382 (i386_dr_low_get_addr): Likewise.
383 (i386_dr_low_get_status): Likewise.
384 (i386_dr_low_get_control): Likewise.
385 (i386_insert_aligned_watchpoint): Use new macros.
386 (i386_update_inferior_debug_regs): Likewise.
387 (i386_stopped_data_address): Likewise.
389 2014-06-18 Gary Benson <gbenson@redhat.com>
391 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
392 New parameter. All uses updated.
394 2014-06-18 Gary Benson <gbenson@redhat.com>
396 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
399 2014-06-18 Gary Benson <gbenson@redhat.com>
401 * i386-nat.c (debug_printf): New macro.
402 (i386_get_debug_register_length): Likewise.
403 (TARGET_HAS_DR_LEN_8): Use above macro.
404 (i386_show_dr): Use debug_printf instead of puts_unfiltered
405 and printf_unfiltered. Use phex to format values.
407 2014-06-18 Gary Benson <gbenson@redhat.com>
409 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
412 2014-06-18 Gary Benson <gbenson@redhat.com>
414 * i386-nat.c: Comment changes.
416 2014-06-18 Gary Benson <gbenson@redhat.com>
418 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
420 2014-06-18 Gary Benson <gbenson@redhat.com>
422 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
423 (i386_insert_aligned_watchpoint): Likewise.
424 (i386_remove_aligned_watchpoint): Likewise.
425 (i386_handle_nonaligned_watchpoint): Likewise.
427 2014-06-18 Gary Benson <gbenson@redhat.com>
429 * i386-nat.c: Whitespace changes.
431 2014-06-17 Samuel Bronson <naesten@gmail.com>
433 * MAINTAINERS: Update Roland McGrath's email address.
434 Thanks to Sergio Durigan Junior for pointing out that he left
435 Red Hat a while ago, and giving me a current address.
437 2014-06-17 Tom Tromey <tromey@redhat.com>
439 * utils.h (savestring): Remove declaration.
441 2014-06-17 Tom Tromey <tromey@redhat.com>
443 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
445 2014-06-16 Keith Seitz <keiths@redhat.com>
448 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
449 to update the varobj if inferior_ptid is null_ptid.
451 2014-06-16 Tom Tromey <tromey@redhat.com>
453 * target.h (struct target_ops) <to_info_proc>: Make parameter
455 (target_info_proc): Update.
456 * target.c (target_info_proc): Make "args" const.
457 * procfs.c (procfs_info_proc): Update.
458 * linux-tdep.c (linux_info_proc): Update.
459 (linux_core_info_proc_mappings): Make "args" const.
460 (linux_core_info_proc): Update.
461 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
462 * gdbarch.c: Rebuild.
463 * gdbarch.h: Rebuild.
464 * corelow.c (core_info_proc): Update.
466 2014-06-16 Tom Tromey <tromey@redhat.com>
468 * target.h (struct target_ops) <to_disconnect>: Make parameter
470 (target_disconnect): Update.
471 * target.c (target_disconnect): Make "args" const.
472 * target-delegates.c: Rebuild.
473 * remote.c (remote_disconnect): Update.
474 * record.h (record_disconnect): Update.
475 * record.c (record_disconnect): Update.
476 * inf-child.c (inf_child_disconnect): Update.
478 2014-06-16 Tom Tromey <tromey@redhat.com>
480 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
481 * target.c (debug_to_rcmd, default_rcmd): Update.
482 * target-delegates.c: Rebuild.
483 * remote.c (remote_rcmd): Update.
484 * monitor.c (monitor_rcmd): Update.
486 2014-06-16 Pedro Alves <palves@redhat.com>
488 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
489 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
490 have OBJF_SHARED set.
491 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
492 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
493 instead of OBJF_USERLOADED.
494 * objfiles.h (OBJF_SHARED): Update comment.
495 (userloaded_objfile_contains_address_p): Rename to ...
496 (shared_objfile_contains_address_p): ... this, and update
498 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
500 (remove_symbol_file_command): Skip objfiles that don't have
503 2014-06-16 Tom Tromey <tromey@redhat.com>
505 * minsyms.h (prim_record_minimal_symbol)
506 (prim_record_minimal_symbol_and_info): Update comments.
508 2014-06-14 Eli Zaretskii <eliz@gnu.org>
510 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
511 or --without-guile, according to how GDB was built.
513 2014-06-13 Tom Tromey <tromey@redhat.com>
515 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
517 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
519 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
521 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
522 help_list.Pass all_commands, not -1, to help_list.
523 * cli/cli-dump.c (dump_command, append_command)
524 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
525 (binary_dump_command, binary_append_command): Pass all_commands,
526 not -1, to help_list.
527 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
529 * valprint.c (set_print, set_print_raw): Pass all_commands, not
531 * typeprint.c (set_print_type): Pass all_commands, not -1, to
533 * top.c (set_history): Pass all_commands, not -1, to help_list.
534 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
535 all_commands, not -1, to help_list.
536 * symfile.c (overlay_command): Pass all_commands, not -1, to
538 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
540 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
542 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
544 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
545 not -1, to help_list.
546 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
547 not -1, to help_list.
548 * maint.c (maintenance_command, maintenance_info_command)
549 (maintenance_print_command, maintenance_set_cmd): Pass
550 all_commands, not -1, to help_list.
551 * macrocmd.c (macro_command): Pass all_commands, not -1, to
553 * language.c (set_check): Pass all_commands, not -1, to help_list.
554 * infcmd.c (unset_command): Pass all_commands, not -1, to
556 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
558 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
560 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
562 * breakpoint.c (save_command): Pass all_commands, not -1, to
564 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
565 all_commands, not -1, to help_list.
567 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
569 * regcache.c (struct register_to_invalidate): New structure.
570 (do_register_invalidate, make_cleanup_regcache_invalidate): New
572 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
574 2014-06-12 Yao Qi <yao@codesourcery.com>
576 * varobj.c (varobj_get_num_children): Call
578 (varobj_list_children): Likewise.
579 (varobj_update): Likewise. Update comments.
581 2014-06-12 Yao Qi <yao@codesourcery.com>
583 * varobj.c (varobj_pretty_printed_p): Rename to ...
584 (varobj_is_dynamic_p): ... this. New function.
585 * varobj.h (varobj_pretty_printed_p): Remove declaration.
586 (varobj_is_dynamic_p): Declare.
587 * mi/mi-cmd-var.c (print_varobj): All callers updated.
588 (mi_print_value_p, varobj_update_one): Likewise.
590 2014-06-12 Pedro Alves <pedro@codesourcery.com>
591 Yao Qi <yao@codesourcery.com>
593 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
594 (varobj_get_iterator): Wrap up code for pretty-printer by
595 "#if HAVE_PYTHON" and "#endif".
596 (update_dynamic_varobj_children): Likewise.
598 2014-06-12 Pedro Alves <pedro@codesourcery.com>
599 Yao Qi <yao@codesourcery.com>
601 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
602 gdb_python_initialized is false. Move some code from varobj.c.
603 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
604 * varobj.c: Move "varobj-iter.h" inclusion earlier.
605 (struct varobj_item): Moved to varobj-iter.h".
606 (varobj_clear_saved_item): New function.
607 (update_dynamic_varobj_children): Move python-related code to
609 (free_variable): Call varobj_clear_saved_item and
612 2014-06-12 Pedro Alves <pedro@codesourcery.com>
613 Yao Qi <yao@codesourcery.com>
615 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
616 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
617 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
618 (py-varobj.o): New rule.
619 * python/py-varobj.c: New file.
620 * python/python-internal.h (py_varobj_get_iterator): Declare.
621 * varobj-iter.h: New file.
622 * varobj.c: Include "varobj-iter.h"
623 (struct varobj) <child_iter>: Change its type from "PyObject *"
624 to "struct varobj_iter *".
625 <saved_item>: Likewise.
626 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
627 [HAVE_PYTHON] (varobj_get_iterator): New function.
628 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
629 python-specific code to python/py-varobj.c.
630 (install_visualizer): Call varobj_iter_delete instead of
632 * varobj.h (varobj_ensure_python_env): Declare.
634 2014-06-12 Yao Qi <yao@codesourcery.com>
636 * varobj.c (struct varobj_item): New structure.
637 (create_child_with_value): Update declaration.
638 (varobj_add_child): Replace arguments 'name' and 'value' with
639 'item'. All callers updated.
640 (install_dynamic_child): Likewise.
641 (update_dynamic_varobj_children): Likewise.
642 (varobj_add_child): Likewise.
643 (create_child_with_value): Likewise.
645 2014-06-11 Joel Brobecker <brobecker@adacore.com>
647 * NEWS: Create a new section for the next release branch.
648 Rename the section of the current branch, now that it has
651 2014-06-11 Joel Brobecker <brobecker@adacore.com>
653 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
654 * version.in: Bump version to 7.8.50.DATE-cvs.
656 2014-06-11 Pedro Alves <palves@redhat.com>
659 * ser-mingw.c (net_windows_socket_check_pending): New function.
660 (net_windows_select_thread): Ignore spurious wakeups. Use
661 net_windows_socket_check_pending.
662 (net_windows_wait_handle): Check for pending events with
663 ioctlsocket, through net_windows_socket_check_pending, instead of
664 checking the socket's event.
666 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
668 * python/python-internal.h (gdb_PyObject_GetAttrString)
669 (gdb_PyObject_HasAttrString): New inline function definitions.
670 * py-value.c (get_field_flag): Remove the now unnecessary cast to
671 char * of the second argument to PyObject_GetAttrString.
673 2014-06-10 Joel Brobecker <brobecker@adacore.com>
675 * serial.c (serial_write): Fix index of character to be printed
676 in call to serial_logchar when serial debug traces are enabled.
678 2014-06-10 Joel Brobecker <brobecker@adacore.com>
680 * gdbtypes (resolve_dynamic_range): Add function description.
682 2014-06-09 Pedro Alves <palves@redhat.com>
684 * linux-nat.c (linux_child_follow_fork): Initialize status with
685 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
686 inner block. Only pass the signal to PTRACE_DETACH if in pass
689 2014-06-09 Gary Benson <gbenson@redhat.com>
691 * common/signals.c (gdb_signal_from_host): Reorder to separate
692 the always-available ANSI-standard signals from the signals that
694 (do_gdb_signal_to_host): Likewise.
695 * proc-events.c (signal_table): Likewise.
697 2014-06-08 Hui Zhu <hui@codesourcery.com>
699 * common/linux-ptrace.c (linux_disable_event_reporting): New
701 * common/linux-ptrace.h (linux_disable_event_reporting): New
703 * linux-nat.c (linux_child_follow_fork): Do a single step before
706 2014-06-07 Keith Seitz <keiths@redhat.com>
710 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
711 from symbol_matches_domain in symtab.c. All local callers
712 of symbol_matches_domain updated.
713 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
714 search STRUCT_DOMAIN.
715 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
716 independently. standard_lookup will do that automatically.
717 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
719 (cp_lookup_symbol_in_namespace): Likewise.
720 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
721 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
722 may return a STRUCT_DOMAIN match.
723 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
724 * cp-support.c: Include language.h.
725 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
727 * psymtab.c (match_partial_symbol): Compare the requested
728 domain with the symbol's domain directly.
729 (lookup_partial_symbol): Likewise.
730 * symtab.c (lookup_symbol_in_language): Explain when/why
731 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
732 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
733 appropriate languages.
734 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
735 and moved to ada-lang.c
736 (lookup_block_symbol): Explain that this function only returns
737 symbol matching the requested DOMAIN.
738 Compare the requested domain with the symbol's domain directly.
739 (iterate_over_symbols): Compare the requested domain with the
740 symbol's domain directly.
741 * symtab.h (symbol_matches_domain): Remove.
743 2014-06-06 Doug Evans <xdje42@gmail.com>
745 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
746 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
747 (gdbscm_guile_version_is_at_least): Declare.
748 (gdbscm_scm_string_to_int): Declare.
749 * guile/guile.c (gdbscm_guile_major_version): New global.
750 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
751 (guile_datadir): New static global.
752 (gdbscm_guile_data_directory): New function.
753 (initialize_scheme_side): Update.
754 (misc_guile_functions): Add guile-data-directory.
755 (initialize_gdb_module): Fetch guile version number.
756 * guile/lib/gdb.scm: Remove call to add-to-load-path.
757 * guile/lib/gdb/init.scm (%initialize!): Ditto.
758 * guile/lib/gdb/boot.scm: Use guile-data-directory.
759 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
761 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
762 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
763 * guile/scm-value.c (gdbscm_value_to_string): Only call
764 scm_port_conversion_strategy if Guile version >= 2.0.6.
766 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
768 * main.c (print_gdb_help): Add -q and --silent.
770 2014-06-06 Gary Benson <gbenson@redhat.com>
772 * common/signals.c: Remove preprocessor conditionals for
773 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
775 * proc-events.c: Likewise.
777 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
779 * symfile.c (symfile_free_objfile): Remove restriction to
781 * symfile-mem.c (symbol_file_add_from_memory): Call
782 add_target_sections_of_objfile.
784 2014-06-05 Ludovic Courtès <ludo@gnu.org>
786 * guile/scm-value.c (gdbscm_history_append_x): Use
787 'vlscm_get_value_smob_arg_unsafe' instead of
788 'vlscm_scm_to_value'.
790 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
793 * utils.c (printchar): Don't escape at all if quoter is NUL.
794 Update function documentation to clarify effect of parameter
796 * remote.c (escape_buffer): Pass '\\' as the quoter to
798 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
800 (mi_solib_unloaded): Same.
802 2014-06-05 Joel Brobecker <brobecker@adacore.com>
804 * development.sh: Delete.
805 * Makefile.in (config.status): Adjust dependency on development.sh.
806 * configure.ac: Adjust development.sh source call.
807 * configure: Regenerate.
809 2014-06-04 Doug Evans <xdje42@gmail.com>
811 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
812 is_scheme_bkpt, spec.
813 (bpscm_make_breakpoint_smob): Initialize new members.
814 (gdbscm_create_breakpoint_x): Split into two ...
815 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
816 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
817 (scheme_function breakpoint_functions): Update.
818 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
819 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
820 register-breakpoint!.
822 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
825 * mem-break.c (z_type_supported): Return zero if
826 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
828 2014-06-04 Tom Tromey <tromey@redhat.com>
830 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
831 value_from_contents_and_address_unresolved.
832 (ada_template_to_fixed_record_type_1): Likewise.
833 (ada_which_variant_applies): Likewise.
834 * value.h (value_from_contents_and_address_unresolved): Declare.
835 * value.c (value_from_contents_and_address_unresolved): New
837 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
838 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
839 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
841 2014-06-04 Tom Tromey <tromey@redhat.com>
843 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
845 2014-06-04 Tom Tromey <tromey@redhat.com>
847 * procfs.c (procfs_attach): Make "args" const.
848 * windows-nat.c (windows_attach): Make "args" const.
849 * nto-procfs.c (procfs_attach): Make "args" const.
850 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
851 * go32-nat.c (go32_attach): Make "args" const.
852 * gnu-nat.c (gnu_attach): Make "args" const.
853 * darwin-nat.c (darwin_attach): Make "args" const.
854 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
855 * linux-nat.c (linux_nat_attach): Make "args" const.
856 * remote.c (extended_remote_attach_1, extended_remote_attach):
858 * target.h (struct target_ops) <to_attach>: Make "args" const.
859 (find_default_attach): Likewise.
860 * utils.c (parse_pid_to_attach): Make "args" const.
861 * utils.h (parse_pid_to_attach): Update.
863 2014-06-04 Tom Tromey <tromey@redhat.com>
865 * target-delegates.c: Rebuild.
866 * target.c (default_thread_address_space): New function.
867 (target_thread_address_space): Simplify.
868 * target.h (struct target_ops) <to_thread_address_space>: Add
871 2014-06-04 Doug Evans <xdje42@gmail.com>
873 * guile/scm-type.c (type_smob): Remove duplicate typedef.
875 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
877 * record-btrace.c: Include event-loop.h and inf-loop.h.
878 (record_btrace_resume_exec_dir)
879 (record_btrace_async_inferior_event_handler)
880 (record_btrace_handle_async_inferior_event): New.
881 (record_btrace_open): Create async event handler.
882 (record_btrace_close): Delete async event handler.
883 (record_btrace_resume): Set record_btrace_resume_exec_dir,
884 Mark async event handler.
885 (record_btrace_execution_direction): New.
886 (init_record_btrace_ops): Initialize to_execution_direction.
888 2014-06-03 Doug Evans <xdje42@gmail.com>
890 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
891 (gdbscm_make_parameter): Ditto.
893 2014-06-03 Doug Evans <dje@google.com>
895 * exec.c (exec_close_1): Call clear_section_table instead of
896 resize_section_table.
897 (clear_section_table): New function.
898 (resize_section_table): Make static. Rename arg num_added to
900 * exec.h (clear_section_table): Declare.
901 (resize_section_table): Delete.
902 * progspace.c (release_program_space): Call clear_section_table
903 instead of resize_section_table.
905 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
907 * NEWS (Python Scripting): Add entry about the new xmethods
910 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
912 * python/py-xmethods.c: New file.
913 * python/py-objfile.c (objfile_object): New field 'xmethods'.
914 (objfpy_dealloc): XDECREF on the new xmethods field.
915 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
917 (objfpy_get_xmethods): New function.
918 (objfile_getset): New entry 'xmethods'.
919 * python/py-progspace.c (pspace_object): New field 'xmethods'.
920 (pspy_dealloc): XDECREF on the new xmethods field.
921 (pspy_new, pspace_to_pspace_object): Initialize xmethods
923 (pspy_get_xmethods): New function.
924 (pspace_getset): New entry 'xmethods'.
925 * python/python-internal.h: Add declarations for new functions.
926 * python/python.c (_initialize_python): Invoke
927 gdbpy_initialize_xmethods.
928 * python/lib/gdb/__init__.py (xmethods): New
930 * python/lib/gdb/xmethod.py: New file.
931 * python/lib/gdb/command/xmethods.py: New file.
933 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
935 * eval.c (evaluate_subexp_standard): Call the xmethod if the
936 best match method returned by find_overload_match is an xmethod.
937 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
938 the best matching operator returned by find_overload_match is an
940 * valops.c: #include "extension.h".
941 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
942 Return void. The list of matching source methods is returned in
943 "fn_list" and a vector of matching debug method workers is
944 returned in "xm_worker_vec". Update all callers.
945 (value_find_oload_method_list): Likewise.
946 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
947 non-NULL, then the index of the best matching method in this
948 vector is returned. Update all callers.
949 (find_overload_match): Include xmethods while performing overload
952 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
954 * defs.h (enum lval_type): New enumerator "lval_xcallable".
955 * extension-priv.h (struct extension_language_ops): Add the
957 * extension.c (new_xmethod_worker, clone_xmethod_worker,
958 get_matching_xmethod_workers, get_xmethod_argtypes,
959 invoke_xmethod, free_xmethod_worker,
960 free_xmethod_worker_vec): New functions.
961 * extension.h: #include "common/vec.h".
962 New function declarations.
963 (struct xmethod_worker): New struct.
964 (VEC (xmethod_worker_ptr)): New vector type.
965 (xmethod_worker_ptr): New typedef.
966 (xmethod_worker_vec): Likewise.
967 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
969 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
970 (struct builtin_type): New field "xmethod".
971 * valarith.c (value_ptradd): Assert that the value argument is not
973 * valops.c (value_must_coerce_to_target): Return 0 for
974 lval_xcallable values.
975 * value.c (struct value): New field XM_WORKER in the field
977 (value_address, value_raw_address): Return 0 for lval_xcallable
979 (set_value_address): Assert that the value is not an
981 (value_free): Free the associated xmethod worker when freeing
982 lval_xcallable values.
983 (set_value_component_location): Assert that the WHOLE value is not
985 (value_of_xmethod, call_xmethod): New functions.
986 * value.h: Declare "struct xmethod_worker".
987 Declare new functions value_of_xmethod, call_xmethod.
989 2014-06-03 Joel Brobecker <brobecker@adacore.com>
990 Pedro Alves <palves@redhat.com>
993 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
994 New function, extracted from software_breakpoint_inserted_here_p.
995 (software_breakpoint_inserted_here_p): Replace factored out code
996 by call to find_non_raw_software_breakpoint_inserted_here.
997 (bp_target_info_copy_insertion_state): New function.
998 (bkpt_insert_location): Handle the case of a single-step
999 breakpoint already inserted at the same address.
1000 (bkpt_remove_location): Handle the case of a single-step
1001 breakpoint still inserted at the same address.
1002 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1003 breakpoint already inserted at the same address.
1004 (deprecated_remove_raw_breakpoint): Handle the case of a
1005 non-raw breakpoint still inserted at the same address.
1006 (find_single_step_breakpoint): New function, extracted from
1007 single_step_breakpoint_inserted_here_p.
1008 (find_single_step_breakpoint): New function,
1009 factored out from single_step_breakpoint_inserted_here_p.
1010 (single_step_breakpoint_inserted_here_p): Reimplement.
1012 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1014 Pushed by Joel Brobecker <brobecker@adacore.com>
1015 * source.c (show_substitute_path_command): Fix display of matching
1018 2014-06-03 Gary Benson <gbenson@redhat.com>
1020 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1022 2014-06-02 Doug Evans <xdje42@gmail.com>
1024 Add parameter support for Guile.
1025 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1026 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1027 (scm-param.o): New rule.
1028 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1029 (gdbscm_misc_error): Declare.
1030 (gdbscm_canonicalize_command_name): Declare.
1031 (gdbscm_scm_to_host_string): Declare.
1032 (gdbscm_scm_from_host_string): Declare.
1033 (gdbscm_initialize_parameters): Declare.
1034 * guile/guile.c (initialize_gdb_module): Call
1035 gdbscm_initialize_parameters.
1036 * guile/lib/gdb.scm: Export parameter symbols.
1037 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1038 cmdscm_canonicalize_name and made public. All callers updated.
1039 * guile/scm-exception.c (gdbscm_misc_error): New function.
1040 * guile/scm-param.c: New file.
1041 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1042 (gdbscm_scm_to_host_string): New function.
1043 (gdbscm_scm_from_host_string): New function.
1044 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1046 2014-06-02 Doug Evans <xdje42@gmail.com>
1048 Add command support for Guile.
1049 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1050 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1051 (scm-cmd.o): New rule.
1052 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1053 (gdbscm_user_error_p): Declare.
1054 (gdbscm_parse_command_name): Declare.
1055 (gdbscm_valid_command_class_p): Declare.
1056 (gdbscm_initialize_commands): Declare.
1057 * guile/guile.c (initialize_gdb_module): Call
1058 gdbscm_initialize_commands.
1059 * guile/lib/gdb.scm: Export command symbols.
1060 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1061 (throw-user-error): New function.
1062 * guile/scm-cmd.c: New file.
1063 * guile/scm-exception.c (user_error_symbol): New static global.
1064 (gdbscm_user_error_p): New function.
1065 (gdbscm_initialize_exceptions): Set user_error_symbol.
1066 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1068 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1070 * top.c (command_loop): Handle comments here...
1071 (command_line_input): ... not here.
1073 2014-06-02 Doug Evans <xdje42@gmail.com>
1075 Add progspace support for Guile.
1076 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1077 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1078 (scm-progspace.o): New rule.
1079 * guile/guile-internal.h (pspace_smob): New typedef.
1080 (psscm_pspace_smob_pretty_printers): Declare.
1081 (psscm_pspace_smob_from_pspace): Declare.
1082 (psscm_scm_from_pspace): Declare.
1083 * guile/guile.c (initialize_gdb_module): Call
1084 gdbscm_initialize_pspaces.
1085 * guile/lib/gdb.scm: Export progspace symbols.
1086 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1088 (append-pretty-printer!): Ditto.
1089 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1091 * guile/scm-progspace.c: New file.
1093 2014-06-03 Alan Modra <amodra@gmail.com>
1095 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1096 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1098 2014-06-02 Doug Evans <dje@google.com>
1100 Add support for skeletonless type units.
1101 * dwarf2read.c (struct dwarf2_per_objfile): New member
1102 n_allocated_type_units.
1103 (struct dwarf2_per_objfile) <tu_stats>: New member
1104 nr_all_type_units_reallocs.
1105 (create_signatured_type_table_from_index): Initialize
1106 n_allocated_type_units
1107 (create_all_type_units): Ditto.
1108 (add_type_unit): Move up in file. New arg slot.
1109 All callers updated. Increase space for all_type_units more
1111 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1112 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1113 (lookup_dwp_signatured_type): Ditto.
1114 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1115 All callers updated.
1116 (build_type_psymtabs_1): Leave type_unit_groups as
1117 NULL if no TUs present.
1118 (print_tu_stats): New function.
1119 (process_skeletonless_type_unit): New function.
1120 (process_dwo_file_for_skeletonless_type_units): New
1122 (process_skeletonless_type_units): New function.
1123 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1124 Call print tu_stats if debugging enabled.
1126 2014-06-02 Pedro Alves <palves@redhat.com>
1128 * breakpoint.c (build_target_command_list): Don't build a command
1129 list if we have any duplicate location that isn't a dprintf.
1131 2014-06-02 Pedro Alves <palves@redhat.com>
1133 * breakpoint.c (dprintf_breakpoint_hit): New function.
1134 (initialize_breakpoint_ops): Install it as dprintf's
1135 breakpoint_hit method.
1137 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1139 * source.c (substitute_path_rule_matches): Simplify using
1140 filename_ncmp instead of FILENAME_CMP.
1142 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1144 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1146 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1148 * configure.ac: When Guile is available, check for the
1149 availability of 'scm_new_smob'.
1150 * configure, config.h.in: Regenerate.
1151 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1154 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1156 * frame.c (struct frame_info): Add stop_string field.
1157 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1158 (get_prev_frame_always): Old content moved into
1159 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1160 TRY_CATCH, handle MEMORY_ERROR exceptions.
1161 (frame_stop_reason_string): New function definition.
1162 * frame.h (unwind_stop_reason_to_string): Extend comment to
1163 mention frame_stop_reason_string.
1164 (frame_stop_reason_string): New function declaration.
1165 * stack.c (frame_info): Switch to frame_stop_reason_string.
1166 (backtrace_command_1): Switch to frame_stop_reason_string.
1167 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1168 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1169 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1171 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1173 * frame.c (frame_stop_reason_string): Rename to ...
1174 (unwind_stop_reason_to_string): this.
1175 * frame.h (frame_stop_reason_string): Rename to ...
1176 (unwind_stop_reason_to_string): this.
1177 * stack.c (frame_info): Update call to frame_stop_reason_string.
1178 (backtrace_command_1): Likewise.
1179 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1180 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1182 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1184 * frame.c (remove_prev_frame): New function.
1185 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1188 2014-05-29 Pedro Alves <palves@redhat.com>
1190 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1191 and make it const. When a single-step decays to a continue,
1192 clear 'step', not 'hw_step'. Pass whether the caller wanted
1193 to step to user_visible_resume_ptid, not what we ask the
1196 2014-05-29 Pedro Alves <palves@redhat.com>
1198 * infrun.c (process_event_stop_test, handle_step_into_function)
1199 (handle_step_into_function_backward): Adjust.
1200 Don't set the even thread's stop_step and call stop_waiting before
1201 calling end_stepping_range. Instead do that ...
1202 (end_stepping_range): ... here. Take an ecs pointer parameter.
1204 2014-05-29 Pedro Alves <palves@redhat.com>
1206 * infrun.c (stop_stepping): Rename to ...
1207 (stop_waiting): ... this.
1208 (proceed): Update comment.
1209 (process_event_stop_test, handle_inferior_event)
1210 (handle_signal_stop, handle_step_into_function)
1211 (handle_step_into_function_backward): Update.
1213 2014-05-29 Pedro Alves <palves@redhat.com>
1215 * infcall.c (run_inferior_call): Don't check whether the current
1216 thread is running after the proceed call.
1218 2014-05-29 Pedro Alves <palves@redhat.com>
1219 Tom Tromey <tromey@redhat.com>
1221 * NEWS: Mention "maint set target-async", "set mi-async", and that
1222 background execution commands are now always available.
1223 * target.h (target_async_permitted): Update comment.
1224 * target.c (target_async_permitted, target_async_permitted_1):
1226 (set_target_async_command): Rename to ...
1227 (maint_set_target_async_command): ... this.
1228 (show_target_async_command): Rename to ...
1229 (maint_show_target_async_command): ... this.
1230 (_initialize_target): Adjust.
1231 * infcmd.c (prepare_execution_command): Make extern.
1232 * inferior.h (prepare_execution_command): Declare.
1233 * infrun.c (set_observer_mode): Leave target async alone.
1234 * mi/mi-interp.c (mi_interpreter_init): Install
1235 mi_on_sync_execution_done as sync_execution_done observer.
1236 (mi_on_sync_execution_done): New function.
1237 (mi_execute_command_input_handler): Don't print the prompt if we
1238 just started a synchronous command with an async target.
1239 (mi_on_resume): Check sync_execution before printing prompt.
1240 * mi/mi-main.h (mi_async_p): Declare.
1241 * mi/mi-main.c: Include gdbcmd.h.
1242 (mi_async_p): New function.
1243 (mi_async, mi_async_1): New globals.
1244 (set_mi_async_command, show_mi_async_command, mi_async): New
1246 (exec_continue): Call prepare_execution_command.
1247 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1248 (mi_execute_async_cli_command): Use mi_async_p.
1249 (_initialize_mi_main): Install "set mi-async". Make
1250 "target-async" a deprecated alias.
1252 2014-05-29 Pedro Alves <palves@redhat.com>
1254 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1255 (_initialize_cli_interp): Adjust.
1256 * event-loop.c: Include "observer.h".
1257 (start_event_loop): Notify 'command_error' observers instead of
1258 calling display_gdb_prompt. Remove FIXME comment.
1259 * event-top.c (display_gdb_prompt): Remove call into the
1261 * inf-loop.c: Include "observer.h".
1262 (inferior_event_handler): Notify 'command_error' observers instead
1263 of calling display_gdb_prompt.
1264 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1265 observers instead of calling display_gdb_prompt.
1266 * interps.c (interp_set): Don't call display_gdb_prompt.
1267 (current_interp_display_prompt_p): Delete.
1268 * interps.h (interp_prompt_p): Delete declaration.
1269 (interp_prompt_p_ftype): Delete.
1270 (struct interp_procs) <prompt_proc_p>: Delete field.
1271 (current_interp_display_prompt_p): Delete declaration.
1272 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1273 (_initialize_mi_interp): Adjust.
1274 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1275 'command_error' observers.
1276 (tui_on_sync_execution_done, tui_on_command_error): New
1278 (tui_display_prompt_p): Delete.
1279 (_initialize_tui_interp): Adjust.
1281 2014-05-29 Pedro Alves <palves@redhat.com>
1284 * cli/cli-interp.c: Include infrun.h and observer.h.
1285 (cli_uiout, cli_interp): New globals.
1286 (cli_on_signal_received, cli_on_end_stepping_range)
1287 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1289 (cli_interpreter_init): Install them as 'end_stepping_range',
1290 'signal_received' 'signal_exited', 'exited' and 'no_history'
1292 (_initialize_cli_interp): Remove cli_interp local.
1293 * infrun.c (handle_inferior_event): Call the several stop reason
1294 observers instead of printing the stop reason directly.
1295 (end_stepping_range): New function.
1296 (print_end_stepping_range_reason, print_signal_exited_reason)
1297 (print_exited_reason, print_signal_received_reason)
1298 (print_no_history_reason): Make static, and add an uiout
1299 parameter. Print to that instead of to CURRENT_UIOUT.
1300 * infrun.h (print_end_stepping_range_reason)
1301 (print_signal_exited_reason, print_exited_reason)
1302 (print_signal_received_reason print_no_history_reason): New
1304 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1306 <cli_uiout>: New field.
1307 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1308 uiout for CLI output. Install 'signal_received',
1309 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1311 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1312 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1313 (mi_on_no_history): New functions.
1314 (ui_out_free_cleanup): Delete function.
1315 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1316 instead use the one already stored in the MI interpreter data.
1317 (mi_ui_out): Adjust.
1318 * tui/tui-interp.c: Include infrun.h and observer.h.
1319 (tui_interp): New global.
1320 (tui_on_signal_received, tui_on_end_stepping_range)
1321 (tui_on_signal_exited, tui_on_exited)
1322 (tui_on_no_history): New functions.
1323 (tui_init): Install them as 'end_stepping_range',
1324 'signal_received' 'signal_exited', 'exited' and 'no_history'
1326 (_initialize_tui_interp): Delete tui_interp local.
1328 2014-05-29 Pedro Alves <palves@redhat.com>
1331 * linux-nat.c (linux_nat_resume_callback): Rename the second
1332 parameter to 'except'. Skip LP if it points to EXCEPT.
1333 (linux_nat_resume): Don't mark the event lwp as not stopped
1334 before resuming sibling lwps. Instead ask
1335 linux_nat_resume_callback to skip the event lwp. Mark it as not
1336 stopped after actually resuming it.
1337 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1339 (wait_lwp): Mark the lwp as stopped here.
1340 (stop_wait_callback): Mark the lwp as not stopped right after
1341 resuming it. Don't mark lwps as stopped here.
1342 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1343 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1345 2014-05-29 Pedro Alves <palves@redhat.com>
1348 * infrun.c (resume): Determine how much to resume depending on
1349 whether the caller wanted a step, not whether we can hardware step
1350 the target. Mark all threads that we intend to run as running,
1351 unless we're calling an inferior function.
1352 (normal_stop): If the thread is running an infcall, don't finish
1354 * target.c (target_resume): Don't mark threads as running here.
1356 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1358 * serial.c (_initialize_serial): Remove support for
1359 the "set remotebaud" and "show remotebaud" commands.
1360 * NEWS: Add entry documenting the removal of that command.
1362 2014-05-28 Yao Qi <yao@codesourcery.com>
1364 * charset.c: Fix typo in comments.
1366 2014-05-27 Gary Benson <gbenson@redhat.com>
1368 * utils.c (internal_vproblem): Prompt for a bug report.
1370 2014-05-26 Andy Wingo <wingo@igalia.com>
1372 * guile/scm-arch.c (arscm_mark_arch_smob):
1373 * guile/scm-block.c (bkscm_mark_block_smob)
1374 (bkscm_mark_block_syms_progress_smob):
1375 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1376 * guile/scm-exception.c (exscm_mark_exception_smob):
1377 * guile/scm-frame.c (frscm_mark_frame_smob):
1378 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1379 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1380 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1381 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1382 (ppscm_mark_pretty_printer_worker_smob):
1383 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1384 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1385 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1386 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1388 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1391 2014-05-26 Andy Wingo <wingo@igalia.com>
1392 Doug Evans <xdje42@gmail.com>
1394 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1395 empty_base_class. All uses updated.
1396 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1397 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1399 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1400 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1401 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1402 (gdbscm_gsmob_has_property_p, add_property_name)
1403 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1404 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1405 (gdb-object-has-property?, gdb-object-properties): Remove.
1406 (gdb-object-kind): Renamed from gsmob-kind.
1408 2014-05-26 Andy Wingo <wingo@igalia.com>
1410 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1411 * configure: Regenerate.
1413 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1415 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1417 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1419 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1420 (replay_memory_access_read_only, replay_memory_access_read_write)
1421 (replay_memory_access_types, replay_memory_access)
1422 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1423 (cmd_set_record_btrace, cmd_show_record_btrace)
1424 (cmd_show_replay_memory_access): New.
1425 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1426 (record_btrace_remove_breakpoint): Replace
1427 record_btrace_allow_memory_access with replay_memory_access.
1428 (_initialize_record_btrace): Add commands.
1429 * NEWS: Announce it.
1431 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1433 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1435 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1437 * MAINTAINERS (Write After Approval): Move self back from
1440 2014-05-22 Pedro Alves <palves@redhat.com>
1442 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1443 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1444 (disable_randomization, enum exec_direction_kind)
1445 (execution_direction, stop_registers, start_remote)
1446 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1447 (wait_for_inferior, normal_stop, get_last_target_status)
1448 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1449 (insert_step_resume_breakpoint_at_sal)
1450 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1451 (set_step_info, print_stop_event, signal_stop_state)
1452 (signal_print_state, signal_pass_state, signal_stop_update)
1453 (signal_print_update, signal_pass_update)
1454 (update_signals_program_target, clear_exit_convenience_vars)
1455 (displaced_step_dump_bytes, update_observer_mode)
1456 (signal_catch_update, gdb_signal_from_command): Move
1458 * infrun.h: ... to this new file.
1459 * amd64-tdep.c: Include infrun.h.
1460 * annotate.c: Include infrun.h.
1461 * arch-utils.c: Include infrun.h.
1462 * arm-linux-tdep.c: Include infrun.h.
1463 * arm-tdep.c: Include infrun.h.
1464 * break-catch-sig.c: Include infrun.h.
1465 * breakpoint.c: Include infrun.h.
1466 * common/agent.c: Include infrun.h instead of inferior.h.
1467 * corelow.c: Include infrun.h.
1468 * event-top.c: Include infrun.h.
1469 * go32-nat.c: Include infrun.h.
1470 * i386-tdep.c: Include infrun.h.
1471 * inf-loop.c: Include infrun.h.
1472 * infcall.c: Include infrun.h.
1473 * infcmd.c: Include infrun.h.
1474 * infrun.c: Include infrun.h.
1475 * linux-fork.c: Include infrun.h.
1476 * linux-nat.c: Include infrun.h.
1477 * linux-thread-db.c: Include infrun.h.
1478 * monitor.c: Include infrun.h.
1479 * nto-tdep.c: Include infrun.h.
1480 * procfs.c: Include infrun.h.
1481 * record-btrace.c: Include infrun.h.
1482 * record-full.c: Include infrun.h.
1483 * remote-m32r-sdi.c: Include infrun.h.
1484 * remote-mips.c: Include infrun.h.
1485 * remote-notif.c: Include infrun.h.
1486 * remote-sim.c: Include infrun.h.
1487 * remote.c: Include infrun.h.
1488 * reverse.c: Include infrun.h.
1489 * rs6000-tdep.c: Include infrun.h.
1490 * s390-linux-tdep.c: Include infrun.h.
1491 * solib-irix.c: Include infrun.h.
1492 * solib-osf.c: Include infrun.h.
1493 * solib-svr4.c: Include infrun.h.
1494 * target.c: Include infrun.h.
1495 * top.c: Include infrun.h.
1496 * windows-nat.c: Include infrun.h.
1497 * mi/mi-interp.c: Include infrun.h.
1498 * mi/mi-main.c: Include infrun.h.
1499 * python/py-threadevent.c: Include infrun.h.
1501 2014-05-22 Pedro Alves <palves@redhat.com>
1503 * infrun.c (handle_inferior_event): Store the exit code for
1504 --return-child-result here, instead of ...
1505 (print_exited_reason): ... here.
1507 2014-05-21 Pedro Alves <palves@redhat.com>
1510 * gdbthread.h (struct thread_control_state): New field
1512 * infrun.c (follow_fork): Copy the new thread control field to the
1514 (clear_proceed_status_thread): Clear the new thread control field.
1515 (proceed): Set the new thread control field.
1516 * interps.h (command_interp): Declare.
1517 * interps.c (command_interpreter): New global.
1518 (command_interp): New function.
1519 (interp_exec): Set `command_interpreter' while here.
1520 * cli-out.c (cli_uiout_dtor): New function.
1521 (cli_ui_out_impl): Install it.
1522 * mi/mi-interp.c: Include cli-out.h.
1523 (mi_cmd_interpreter_exec): Add comment.
1524 (restore_current_uiout_cleanup): New function.
1525 (ui_out_free_cleanup): New function.
1526 (mi_on_normal_stop): If finishing an execution command started by
1527 a CLI command, or any kind of breakpoint-like event triggered,
1528 print the stop event to the output (CLI) stream.
1529 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1531 2014-05-21 Pedro Alves <palves@redhat.com>
1533 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1534 current source line having changed.
1535 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1536 * infrun.c (normal_stop): Adjust call to
1537 set_current_sal_from_frame.
1538 * source.c (clear_lines_listed_range): New function.
1539 (set_current_source_symtab_and_line, identify_source_line): Clear
1540 the lines listed range.
1541 (line_info): Handle the first "info line" after the current source
1542 line having changed.
1543 * stack.c (print_stack_frame): Remove center handling.
1544 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1547 2014-05-21 Pedro Alves <palves@redhat.com>
1549 * inf-child.c (inf_child_mourn_inferior): New function.
1550 * inf-child.h (inf_child_mourn_inferior): New declaration.
1551 * darwin-nat.c (darwin_mourn_inferior): Use
1552 inf_child_mourn_inferior.
1553 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1554 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1555 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1556 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1557 * windows-nat.c (windows_mourn_inferior): Likewise.
1559 2014-05-21 Doug Evans <xdje42@gmail.com>
1561 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1563 2014-05-21 Doug Evans <xdje42@gmail.com>
1565 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1566 (gdbscm_out_of_range_error): Ditto.
1567 (gdbscm_memory_error): Ditto.
1568 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1569 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1570 (gdbscm_out_of_range_error): Update.
1571 (gdbscm_memory_error): Update.
1572 (gdbscm_scm_to_target_string_unsafe): Delete.
1574 2014-05-21 Pedro Alves <palves@redhat.com>
1576 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1578 (inf_child_open_target): New function.
1579 (inf_child_open): Use inf_child_open_target to push the target
1580 instead of erroring out.
1581 (inf_child_disconnect, inf_child_close)
1582 (inf_child_maybe_unpush_target): New functions.
1583 (inf_child_target): Install inf_child_disconnect and
1584 inf_child_close. Store a pointer to the returned object.
1585 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1587 * target.c (auto_connect_native_target): New global.
1588 (show_default_run_target): New function.
1589 (find_default_run_target): Return NULL if automatically connecting
1590 to the native target is disabled.
1591 (_initialize_target): Install set/show auto-connect-native-target.
1592 * NEWS: Mention "set auto-connect-native-target", and "target
1594 * linux-nat.c (super_close): New global.
1595 (linux_nat_close): Call super_close.
1596 (linux_nat_add_target): Store a pointer to the base class's
1598 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1599 inf_child_maybe_unpush.
1600 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1602 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1603 the inferior. Use inf_child_maybe_unpush_target.
1604 (inf_ttrace_attach): Don't push the target if it is already
1606 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1607 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1608 after mourning the inferior. Use inf_child_maybe_unpush_target.
1609 (darwin_attach_pid): Don't push the target if it is already
1611 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1612 mourning the inferior. Use inf_child_maybe_unpush_target.
1613 (gnu_detach): Use inf_child_maybe_unpush_target.
1614 * go32-nat.c (go32_create_inferior): Don't push the target if it
1616 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1617 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1618 (procfs_open): Rename to ...
1619 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1620 comments. Can target_preopen before changing node. Call
1621 inf_child_open_target to push the target explicitly.
1622 (procfs_attach): Don't push the target if it is already pushed.
1623 (procfs_detach): Use inf_child_maybe_unpush_target.
1624 (procfs_create_inferior): Don't push the target if it is already
1626 (nto_native_ops): New global.
1627 (procfs_open): Reimplement.
1628 (procfs_native_open): New function.
1629 (init_procfs_targets): Install procfs_native_open as to_open of
1630 "target native". Store a pointer to the "native" target in
1632 * procfs.c (procfs_attach): Don't push the target if it is already
1634 (procfs_detach): Use inf_child_maybe_unpush_target.
1635 (procfs_mourn_inferior): Only unpush the target after mourning the
1636 inferior. Use inf_child_maybe_unpush_target.
1637 (procfs_init_inferior): Don't push the target if it is already
1639 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1640 if it is already pushed.
1642 2014-05-21 Pedro Alves <palves@redhat.com>
1644 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1645 and "procfs" targets are now called "native" instead.
1647 2014-05-21 Pedro Alves <palves@redhat.com>
1649 * go32-nat.c (go32_open): Delete.
1650 (go32_target): Don't override the to_open method.
1652 2014-05-21 Pedro Alves <palves@redhat.com>
1654 * nto-procfs.c (procfs_can_run): New function.
1655 (nto_procfs_ops): New global.
1656 (init_procfs_targets): New, based on procfs_target. Install
1657 "target native" in addition to "target procfs".
1658 (_initialize_procfs): Call init_procfs_targets instead of adding
1661 2014-05-21 Pedro Alves <palves@redhat.com>
1663 * windows-nat.c (windows_target): Don't override to_shortname,
1664 to_longname or to_doc.
1666 2014-05-21 Pedro Alves <palves@redhat.com>
1668 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1671 2014-05-21 Pedro Alves <palves@redhat.com>
1673 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1674 to_shortname, to_longname or to_doc.
1676 2014-05-21 Pedro Alves <palves@redhat.com>
1678 * go32-nat.c (go32_target): Don't override to_shortname,
1679 to_longname or to_doc.
1681 2014-05-21 Pedro Alves <palves@redhat.com>
1683 * inf-child.c (inf_child_open): Remove mention of "child".
1684 (inf_child_target): Rename target to "native" instead of "child".
1686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1688 * Makefile.in (SFILES): Delete "regset.c".
1689 (COMMON_OBS): Delete "regset.o".
1691 * regset.h (regset_alloc): Delete prototype.
1693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1695 * sparc-linux-tdep.c (sparc32_linux_gregset)
1696 (sparc32_linux_fpregset): New static regset structures.
1697 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1698 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1700 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1701 (sparc64_linux_fpregset): New static regset structures.
1702 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1703 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1704 New static regset structures.
1705 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1706 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1707 New static regset structures.
1708 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1709 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1710 New static regset structures.
1711 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1712 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1713 New static regset structures.
1714 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1716 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1718 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1719 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1720 register maps ("regmaps") from "*regset" to "*regmap". Do this
1721 for all regmap types and variables.
1722 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1723 (sparc32_linux_supply_core_gregset)
1724 (sparc32_linux_collect_core_gregset)
1725 (sparc32_linux_supply_core_fpregset)
1726 (sparc32_linux_collect_core_fpregset): Likewise.
1727 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1728 (sparc_gregmap, sparc_fpregmap): ... these.
1729 (sparc_supply_gregset, sparc_collect_gregset)
1730 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1731 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1732 (_initialize_sparc_nat): Rename regmaps.
1733 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1734 (sparc_gregmap, sparc_fpregmap): ... these.
1735 (sparc_supply_gregset, sparc_collect_gregset)
1736 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1737 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1739 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1740 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1742 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1744 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1745 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1746 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1748 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1749 (sparc32_bsd_fpregset): Rename to...
1750 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1751 (sparc32_bsd_fpregmap): ... these.
1752 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1753 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1754 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1755 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1756 (struct sparc_gregmap, struct sparc_fpregmap)
1757 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1758 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1759 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1760 (sparc32_supply_regset, sparc32_collect_gregset)
1761 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1763 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1764 (sparc64_linux_ptrace_gregmap): ... this.
1765 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1766 (_initialize_sparc64_linux_nat): Rename regmaps.
1767 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1768 (sparc64_linux_core_gregmap): ... this.
1769 (sparc64_linux_supply_core_gregset)
1770 (sparc64_linux_collect_core_gregset)
1771 (sparc64_linux_supply_core_fpregset)
1772 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1773 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1774 (sparc64_sol2_fpregset): Rename to...
1775 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1776 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1777 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1779 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1780 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1781 (sparc64_bsd_fpregset): Rename to...
1782 (struct sparc_gregmap, sparc64_sol2_gregmap)
1783 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1784 (sparc64_bsd_fpregmap): ... these.
1785 (sparc64_supply_gregset, sparc64_collect_gregset)
1786 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1788 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1789 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1790 (sparc64fbsd_gregmap): ... this.
1791 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1792 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1794 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1795 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1796 (sparc64nbsd_collect_fpregset): Likewise.
1797 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1798 (sparc64nbsd_gregmap): ... this.
1799 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1801 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1802 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1803 (sparc64obsd_gregmap): ... this.
1804 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1806 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1807 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1808 (sparc32nbsd_gregmap): ... this.
1809 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1812 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1814 * score-tdep.c (score7_linux_gregset): New static regset
1816 (score7_linux_regset_from_core_section): Remove dynamic regset
1818 (score_gdbarch_init): Drop allocation of tdep structure.
1819 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1823 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1825 (am33_regset_from_core_section): Remove dynamic regset
1828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1830 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1831 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1833 (mips_linux_regset_from_core_section): Remove dynamic regset
1835 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1836 'gregset64', 'fpregset', and 'fpregset64'.
1837 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1838 deleted tdep fields.
1840 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1842 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1844 (amd64_regset_from_core_section): Remove dynamic regset
1846 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1848 (amd64obsd_regset_from_core_section): Remove dynamic regset
1850 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1852 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1853 x86-common regset supply function.
1854 * i386-tdep.c (i386_collect_gregset): Make static.
1855 (i386_gregset): New global regset structure.
1856 (i386_fpregset, i386_xstateregset): New static regset structures.
1857 (i386_regset_from_core_section): Remove dynamic regset
1859 (i386_gdbarch_init): Remove initialization of tdep fields
1860 'gregset', 'fpregset', and 'xstateregset'.
1861 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1862 'fpregset', and 'xstateregset'.
1863 (i386_collect_gregset): Remove prototype.
1864 (i386_gregset): New declaration.
1865 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1867 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1870 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1872 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1873 (arm_linux_vfpregset): New static regset structures.
1874 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1876 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1877 and 'vfpregset' fields.
1879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1881 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1882 (aarch64_linux_fpregset): New static regset structures.
1883 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1884 of regset structures.
1885 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1888 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1890 * regset.h (struct regset): Remove gdbarch field.
1891 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1892 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1893 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1895 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1896 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1897 (ppc32_linux_vsxregset): Likewise.
1898 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1899 via the regcache instead of the regset.
1900 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1901 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1902 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1903 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1906 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1908 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1909 Constify structures.
1910 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1911 (alphanbsd_aout_gregset): Likewise.
1912 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1913 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1915 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1916 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1918 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1919 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1920 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1921 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1922 * m88k-tdep.c (m88k_gregset): Likewise.
1923 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1924 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1926 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1927 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1928 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1929 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1930 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1931 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1933 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1934 * sh-tdep.h (sh_corefile_gregset): Likewise.
1935 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1936 * vax-tdep.c (vax_gregset): Likewise.
1938 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 Fix TLS access for -static -pthread.
1941 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1942 (try_thread_db_load_1): Initialize it.
1943 (thread_db_get_thread_local_address): Call it if LM is zero.
1944 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1945 * target.h (struct target_ops) (to_get_thread_local_address): Add
1946 load_module_addr comment.
1948 2014-05-21 Pedro Alves <palves@redhat.com>
1950 * dcache.c (dcache_read_memory_partial): If reading the cache line
1951 fails, fallback to reading just the memory the caller wanted.
1953 2014-05-20 Doug Evans <dje@google.com>
1955 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1956 instead of get_current_arch.
1958 2014-05-20 Pedro Alves <palves@redhat.com>
1960 * NEWS: Mention that compare-sections now works with all targets.
1962 * remote.c (PACKET_qCRC): New enum value.
1963 (remote_verify_memory): Don't send qCRC if the target has no
1964 execution. Use packet_support/packet_ok. If the target doesn't
1965 support the qCRC packet, fallback to a deep memory copy.
1966 (compare_sections_command): Say "target image" instead of "remote
1968 (_initialize_remote): Add PACKET_qCRC to the list of config
1969 packets that have no associated command. Extend comment.
1970 * target.c (simple_verify_memory, default_verify_memory): New
1972 * target.h (struct target_ops) <to_verify_memory>: Default to
1973 default_verify_memory.
1974 (simple_verify_memory): New declaration.
1975 * target-delegates.c: Regenerate.
1977 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1979 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1981 2014-05-20 Hui Zhu <hui@codesourcery.com>
1982 Yao Qi <yao@codesourcery.com>
1985 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1986 and change address of sp and pc.
1988 2014-05-19 Tom Tromey <tromey@redhat.com>
1990 * gdbtypes.c (rank_function): Use XNEWVEC.
1991 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1993 2014-05-19 Doug Evans <dje@google.com>
1995 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1996 build_type_unit_groups and moved closer to only caller. Remove
1997 arguments. All references updated. Remove outdated .gdb_index
1999 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2000 build_type_psymtabs_1.
2002 2014-05-19 Doug Evans <dje@google.com>
2004 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2005 n_type_unit_groups, all_type_unit_groups. All uses removed.
2006 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2007 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2008 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2009 (add_type_unit_group_to_table): Delete.
2011 2014-05-19 Doug Evans <dje@google.com>
2013 * eval.c (evaluate_subexp_standard): Add some comments.
2015 2014-05-17 Doug Evans <xdje42@gmail.com>
2017 * progspace.c (remove_program_space): Delete, unused.
2018 * progspace.h (remove_program_space): Ditto.
2020 2014-05-17 Doug Evans <xdje42@gmail.com>
2022 * inferior.c (prune_inferiors): Fix comment.
2023 (remove_inferior_command): Call prune_program_spaces.
2025 2014-05-16 Doug Evans <dje@google.com>
2027 New command line option -D.
2029 * main.c (set_gdb_data_directory): New function.
2030 (captured_main): Recognize -D. Flag error for --data-directory "".
2031 Call set_gdb_data_directory.
2032 (print_gdb_help): Print --data-directory, -D.
2033 * main.h (set_gdb_data_directory): Declare.
2034 * top.c (staged_gdb_datadir): New static global.
2035 (set_gdb_datadir): Call set_gdb_data_directory
2036 (show_gdb_datadir): New function.
2037 (init_main): Update init of data-directory parameter.
2039 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2041 Import the "dirfd" gnulib module.
2042 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2043 * gnulib/aclocal.m4: Update.
2044 * gnulib/config.in: Update.
2045 * gnulib/configure: Update.
2046 * gnulib/import/Makefile.am: Update.
2047 * gnulib/import/Makefile.in: Update.
2048 * gnulib/import/dirfd.c: New.
2049 * gnulib/import/m4/dirfd.m4: New.
2050 * gnulib/import/m4/gnulib-cache.m4: Update.
2051 * gnulib/import/m4/gnulib-comp.m4: Update.
2053 2014-05-16 Pierre Muller <muller@sourceware.org>
2054 Yao Qi <yao@codesourcery.com>
2056 * valprint.c (print_wchar): Move the code on checking whether
2057 W is a printable wide char to the default branch of switch
2058 statement below. Call wchar_printable instead of gdb_iswprint.
2060 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2062 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2063 ldr.w and ldrd instructions.
2065 2014-05-15 Doug Evans <dje@google.com>
2067 * dwarf2read.c (read_structure_type): Delete outdated comments.
2069 2014-05-14 Tom Tromey <tromey@redhat.com>
2071 * macrocmd.c (print_macro_definition): Reindent.
2073 2014-05-13 Doug Evans <xdje42@gmail.com>
2075 * python/py-cmd.c (cmdpy_completer): Add comment.
2076 (completers): Make const.
2078 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2080 * infrun.c (resume): Remove should_resume (unused). Move up
2081 declaration of resume_ptid.
2083 2014-05-13 Tom Tromey <tromey@redhat.com>
2085 * language.h (unop_type_check): Remove.
2086 (binop_type_check): Don't declare.
2088 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2090 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2091 call to regcache_raw_collect.
2093 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2095 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2096 mi_console->quote as the quoting character.
2098 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2100 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2102 2014-04-29 Tom Tromey <tromey@redhat.com>
2104 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2105 "show debug varobj".
2107 2014-05-07 Kyle McMartin <kyle@redhat.com>
2109 Pushed by Joel Brobecker <brobecker@adacore.com>.
2110 * aarch64-tdep.c (aarch64_software_single_step): New function.
2111 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2112 with aarch64_software_single_step.
2114 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2118 2014-05-05 Keith Seitz <keiths@redhat.com>
2120 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2121 variable or history value is successfully parsed.
2123 2014-05-05 Yao Qi <yao@codesourcery.com>
2124 Pedro Alves <palves@redhat.com>
2126 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2127 address of blocks that intersects the requested range. Trim
2128 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2130 * ctf.c (ctf_xfer_partial): Likewise.
2132 2014-05-05 Yao Qi <yao@codesourcery.com>
2134 * printcmd.c (display_command): Remove the check to
2135 target_has_execution.
2137 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2139 * ppcobsd-nat.c: Include "obsd-nat.h".
2140 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2142 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2144 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2146 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2147 and 16-bit signed and unsigned arguments. Update comment.
2148 (stap_parse_probe_arguments): Extend code to handle such
2149 arguments. Use warning instead of complaint to notify about
2150 unrecognized bitness.
2152 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2154 PR breakpoints/16889
2155 * stap-probe.c (stap_parse_probe_arguments): Simplify
2156 check for non-prefixed probes (i.e., probes whose
2157 arguments do not start with "N@"). Always set the
2158 argument type to a sane value.
2160 2014-05-01 David Taylor <dtaylor@emc.com>
2162 * remote.c (compare_sections_command): Add -r option to compare
2163 all loadable read-only sections.
2165 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2167 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2168 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2170 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2171 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2172 Remove unused CORE_ADDR argument. Update all callers.
2174 2014-04-29 Pedro Alves <palves@redhat.com>
2176 * remote.c (struct packet_config) <detect>: Extend comment.
2177 (add_packet_config_cmd): Don't set the config's detect or support
2179 (init_all_packet_configs): Also initialize the config's 'detect'
2181 (reset_all_packet_configs_support): New function.
2182 (remote_open_1): Call reset_all_packet_configs_support instead of
2183 init_all_packet_configs.
2184 (_initialize_remote): Initialize all packet configs. Assert that
2185 all packets have an associated command, except a few known
2188 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2190 * dwarf2read.c (read_subrange_type): Handle dynamic
2191 DW_AT_lower_bound attributes.
2193 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2195 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2196 dynamic bounds before computing its upper bound.
2197 (ada_discrete_type_low_bound): Same as above with the lower bound.
2199 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2201 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2202 range types. Adjust the array handling implementation to
2203 take advantage of this change.
2204 (resolve_dynamic_range): New function, mostly extracted from
2205 resolve_dynamic_bounds.
2206 (resolve_dynamic_array): New function, mostly extracted from
2207 resolve_dynamic_bounds.
2208 (resolve_dynamic_bounds): Delete.
2209 (resolve_dynamic_type): Reimplement. Add handling of
2210 TYPE_CODE_RANGE types.
2212 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2214 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2215 handling of parallel ___XA types.
2217 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2219 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2220 unnecessary second call to static_unwrap_type.
2222 2014-04-27 Hui Zhu <hui@codesourcery.com>
2224 * stack.c (print_frame_info): Call do_gdb_disassembly with
2225 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2227 2014-04-26 Doug Evans <xdje42@gmail.com>
2229 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2231 2014-04-25 Pedro Alves <palves@redhat.com>
2234 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2235 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2236 and newline from built string.
2237 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2238 (linux_ptrace_attach_fail_reason): ... this.
2239 * linux-nat.c (linux_nat_attach): Adjust to use
2240 linux_ptrace_attach_fail_reason.
2242 2014-04-25 Pedro Alves <palves@redhat.com>
2244 * remote.c (struct remote_state): Remove multi_process_aware,
2245 non_stop_aware, cond_tracepoints, cond_breakpoints,
2246 breakpoint_commands, fast_tracepoints, static_tracepoints,
2247 install_in_trace, disconnected_tracing,
2248 enable_disable_tracepoints, string_tracing, and
2249 augmented_libraries_svr4_read fields.
2250 (remote_multi_process_p): Move further below in the file.
2251 (struct packet_config): Add comments.
2252 (update_packet_config): Delete function.
2253 (show_packet_config_cmd): Use packet_config_support.
2254 (add_packet_config_cmd): Use NULL as set callback.
2255 (packet_ok): "set remote foo-packet"-style commands no longer
2256 change config->supported -- adjust.
2257 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2258 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2259 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2260 (PACKET_QNonStop, PACKET_multiprocess_feature)
2261 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2262 (PACKET_DisconnectedTracing_feature)
2263 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2264 (set_remote_protocol_packet_cmd): Delete function.
2265 (packet_config_support, packet_support): New functions.
2266 (set_remote_protocol_Z_packet_cmd): Don't call
2267 update_packet_config.
2268 (remote_query_attached, remote_pass_signals)
2269 (remote_program_signals, remote_threads_info)
2270 (remote_threads_extra_info, remote_start_remote): Use
2272 (remote_start_remote): Use packet_config_support and
2274 (init_all_packet_configs): Set all packets to unknown support,
2275 instead of calling update_packet_config.
2276 (remote_check_symbols): Use packet_support.
2277 (remote_supported_packet): Unconditionally set the packet config's
2279 (remote_multi_process_feature, remote_non_stop_feature)
2280 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2281 (remote_breakpoint_commands_feature)
2282 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2283 (remote_install_in_trace_feature)
2284 (remote_disconnected_tracing_feature)
2285 (remote_enable_disable_tracepoint_feature)
2286 (remote_string_tracing_feature)
2287 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2288 (remote_protocol_features): Adjust to use remote_supported_packet
2289 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2290 "ConditionalTracepoints", "ConditionalBreakpoints",
2291 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2292 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2293 "EnableDisableTracepoints", and "tracenz".
2294 (remote_query_supported): Use packet_support.
2295 (remote_open_1): Adjust.
2296 (extended_remote_attach_1): Use packet_support. Switch on the
2297 result of packet_ok instead of checking whether the packet ended
2299 (remote_vcont_resume): Use packet_support.
2300 (remote_resume, remote_stop_ns, fetch_register_using_p)
2301 (remote_prepare_to_store, store_register_using_P)
2302 (check_binary_download, remote_write_bytes): Use packet_support.
2303 (remote_vkill): Use packet_support. Switch on the result of
2304 packet_ok instead of checking whether the packet ended up
2306 (extended_remote_supports_disable_randomization): Use
2308 (extended_remote_run): Switch on the result of packet_ok instead
2309 of checking whether the packet ended up disabled.
2310 (remote_insert_breakpoint, remote_remove_breakpoint)
2311 (remote_insert_watchpoint, remote_remove_watchpoint)
2312 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2314 (remote_search_memory): Use packet_config_support.
2315 (remote_get_thread_local_address, remote_get_tib_address)
2316 (remote_hostio_send_command, remote_can_execute_reverse): Use
2318 (remote_supports_cond_tracepoints)
2319 (remote_supports_cond_breakpoints)
2320 (remote_supports_fast_tracepoints)
2321 (remote_supports_static_tracepoints)
2322 (remote_supports_install_in_trace)
2323 (remote_supports_enable_disable_tracepoint)
2324 (remote_supports_string_tracing)
2325 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2326 the packet config says the feature is enabled or disabled.
2327 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2328 (remote_get_trace_status): Use packet_support.
2329 (remote_set_disconnected_tracing): Adjust to check whether the
2330 feature is enabled with packet_support.
2331 (remote_set_trace_buffer_size, remote_use_agent)
2332 (remote_can_use_agent, remote_supports_btrace): Use
2334 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2335 Use packet_config_support.
2336 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2337 the packet config says the feature is enabled or disabled.
2338 (set_range_stepping): Use packet_support.
2340 2014-04-25 Tom Tromey <tromey@redhat.com>
2342 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2345 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2347 * NEWS: Mention support for C99 variable length arrays.
2349 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2351 * ada-lang.c (standard_exc): Expand introductory comment.
2353 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2354 Walfred Tedeschi <walfred.tedeschi@intel.com>
2356 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2358 (amd64_linux_read_description): Add code to handle AVX512 xstate
2359 mask and return respective tdesc.
2360 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2361 and features/i386/x32-avx512-linux.c.
2362 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2363 (amd64_linux_core_read_description): Add code to handle AVX512
2364 xstate mask and return respective tdesc.
2365 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2366 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2368 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2369 (tdesc_amd64_avx512_linux): New prototype.
2370 (tdesc_x32_avx512_linux): Likewise.
2371 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2372 features/i386/x32-avx512.c.
2373 (amd64_ymm_avx512_names): New register names for pseudo
2375 (amd64_ymmh_avx512_names): New register names for raw registers
2377 (amd64_k_names): New register names for K registers.
2378 (amd64_zmmh_names): New register names for ZMM raw registers.
2379 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2380 (amd64_xmm_avx512_names): New register names for XMM16-31
2382 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2384 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2385 if feature is present.
2386 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2387 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2388 (AMD64_NUM_REGS): Adjust to new number of registers.
2389 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2390 registers supplied via XSTATE by AVX512 registers.
2391 (i386_linux_read_description): Add case for AVX512.
2392 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2393 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2394 (i386_linux_core_read_description): Add case for AVX512.
2395 (i386_linux_init_abi): Install supported register note section
2397 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2399 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2400 registers to be number of zmm7h + 1.
2401 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2402 * i386-tdep.c: Include features/i386/i386-avx512.c.
2403 (i386_zmm_names): Add ZMM pseudo register names array.
2404 (i386_zmmh_names): Add ZMM raw register names array.
2405 (i386_k_names): Add K raw register names array.
2406 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2407 registers. AVX512 has 16 more ZMM registers than there are YMM
2409 (i386_zmmh_regnum_p): Add function to look up register number of
2411 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2412 (i386_k_regnum_p): Likewise for K raw registers.
2413 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2414 registers added by AVX512.
2415 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2416 registers added by AVX512.
2417 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2419 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2420 (i386_pseudo_register_name): Add ZMM pseudo registers.
2421 (i386_zmm_type): Construct and return vector registers type for ZMM
2423 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2424 ZMM0-31 pseudo registers and K registers.
2425 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2426 and YMM16-31 registers from register cache.
2427 (i386_pseudo_register_write): Add code to write K, ZMM and
2429 (i386_register_reggroup_p): Add code to include/exclude AVX512
2430 registers in/from respective register groups.
2431 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2432 registers if feature is present in xcr0.
2433 (i386_gdbarch_init): Add code to initialize AVX512 feature
2434 variables in tdep structure, wire in pseudo registers and call
2435 initialize_tdesc_i386_avx512.
2436 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2438 (i386_regnum): Add AVX512 registers.
2439 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2440 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2441 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2442 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2444 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2445 (i386_ymm_avx512_regnum_p): Likewise.
2446 (i386_k_regnum_p): Likewise.
2447 (i386_zmm_regnum_p): Likewise.
2448 (i386_zmmh_regnum_p): Likewise.
2449 * i387-tdep.c : Update year in copyright notice.
2450 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2452 (XSAVE_YMM_AVX512_ADDR): New macro.
2453 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2455 (XSAVE_XMM_AVX512_ADDR): New macro.
2456 (xsave_avx512_k_offset): New table for K register offsets in
2458 (XSAVE_AVX512_K_ADDR): New macro.
2459 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2461 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2462 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2464 (i387_collect_xsave): Add code to collect AVX512 registers from
2466 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2467 of XMM16-31 registers.
2468 (I387_NUM_K_REGS): New define for number of K registers.
2469 (I387_K0_REGNUM): New define for K0 register number.
2470 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2471 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2472 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2474 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2475 (I387_XMM16_REGNUM): New define for XMM16 register number.
2476 (I387_YMM0_REGNUM): New define for YMM0 register number.
2477 (I387_KEND_REGNUM): New define for last K register number.
2478 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2479 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2481 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2483 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2485 * features/Makefile: Add AVX512 related files.
2486 * features/i386/32bit-avx512.xml: New file.
2487 * features/i386/64bit-avx512.xml: Likewise.
2488 * features/i386/amd64-avx512-linux.c: Likewise.
2489 * features/i386/amd64-avx512-linux.xml: Likewise.
2490 * features/i386/amd64-avx512.c: Likewise.
2491 * features/i386/amd64-avx512.xml: Likewise.
2492 * features/i386/i386-avx512-linux.c: Likewise.
2493 * features/i386/i386-avx512-linux.xml: Likewise.
2494 * features/i386/i386-avx512.c: Likewise.
2495 * features/i386/i386-avx512.xml: Likewise.
2496 * features/i386/x32-avx512-linux.c: Likewise.
2497 * features/i386/x32-avx512-linux.xml: Likewise.
2498 * features/i386/x32-avx512.c: Likewise.
2499 * features/i386/x32-avx512.xml: Likewise.
2500 * regformats/i386/amd64-avx512-linux.dat: New file.
2501 * regformats/i386/amd64-avx512.dat: Likewise.
2502 * regformats/i386/i386-avx512-linux.dat: Likewise.
2503 * regformats/i386/i386-avx512.dat: Likewise.
2504 * regformats/i386/x32-avx512-linux.dat: Likewise.
2505 * regformats/i386/x32-avx512.dat: Likewise.
2506 * NEWS: Add note about new support for AVX512.
2509 2014-04-23 Pedro Alves <palves@redhat.com>
2511 * breakpoint.c (insert_bp_location): Tolerate errors if the
2512 breakpoint is set in a user-loaded objfile.
2513 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2514 location is marked shlib_disabled. If the breakpoint is set in a
2515 user-loaded objfile is a GDB-side memory breakpoint, validate it
2516 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2517 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2519 * mem-break.c (memory_validate_breakpoint): New function.
2520 * objfiles.c (userloaded_objfile_contains_address_p): New
2522 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2523 * target.h (memory_validate_breakpoint): New declaration.
2525 2014-04-23 Pedro Alves <palves@redhat.com>
2527 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2528 the breakpoint is set in a shared library, only suppress
2529 errors for software breakpoints, not hardware breakpoints.
2531 2014-04-22 Pedro Alves <palves@redhat.com>
2533 * infrun.c (schedlock_applies): New function, factored out from
2534 find_thread_needs_step_over.
2535 (find_thread_needs_step_over): Use it.
2536 (switch_back_to_stepped_thread): Always clear trap_expected if the
2537 step over is finished. Return early if scheduler locking applies.
2538 Look for the stepping thread and a potential step-over thread with
2540 (currently_stepping_or_nexting_callback): Delete.
2542 2014-04-22 Nick Clifton <nickc@redhat.com>
2544 * NEWS: Mention that ARM sim now supports tracing.
2546 2014-04-22 Yao Qi <yao@codesourcery.com>
2548 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2550 * tracefile.c (tracefile_fetch_registers): ... it. New
2552 * tracefile.h (tracefile_fetch_registers): Declare.
2553 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2554 tracefile_fetch_registers.
2556 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2559 * windows-nat.c (thread_rec): Don't display a warning when
2560 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2561 fails for any reason, set th->suspended to -1, so that we don't
2562 try to resume such a thread. Also, don't return NULL in these
2563 cases, to avoid completely ruin the session due to "PC register is
2564 not available" error.
2565 (do_windows_fetch_inferior_registers): Check errors in
2566 GetThreadContext call.
2567 (windows_continue): Accept an additional argument KILLED; if not
2568 zero, ignore errors in the SetThreadContext call, since the
2569 inferior was killed and is shutting down.
2570 (windows_resume, get_windows_debug_event)
2571 (windows_create_inferior, windows_mourn_inferior)
2572 (windows_kill_inferior): All callers of windows_continue changed
2573 to adjust to its new calling sequence.
2575 2014-04-19 Yao Qi <yao@codesourcery.com>
2577 * ctf.c (ctf_open): Call post_create_inferior.
2579 2014-04-19 Yao Qi <yao@codesourcery.com>
2581 * ctf.c (handle_id): New static variable.
2582 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2583 value. Get the declaration of event "register" and get length
2584 of field "contents".
2586 2014-04-19 Yao Qi <yao@codesourcery.com>
2588 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2590 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2592 * valops.c (oload_method_static): Remove unnecessary argument
2593 METHOD. Update all callers.
2595 2014-04-18 Pedro alves <palves@redhat.com>
2596 Tom Tromey <tromey@redhat.com>
2599 * frame.c (get_prev_frame_1): Rename to ...
2600 (get_prev_frame_always): ... this, and make extern. Adjust.
2601 (skip_artificial_frames): Use get_prev_frame_always.
2602 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2603 (get_frame_unwind_stop_reason): Adjust to rename.
2604 * frame.h (get_prev_frame_always): Declare.
2605 * inline-frame.c: Include frame.h.
2606 (inline_frame_this_id): Use get_prev_frame_always.
2608 2014-04-18 Tristan Gingold <gingold@adacore.com>
2610 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2611 code by using bfd_mach_o_get_base_address.
2613 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2615 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2616 (spu_ax_pseudo_register_collect): New function.
2617 (spu_ax_pseudo_register_push_stack): Likewise.
2618 (spu_dwarf_reg_to_regnum): Likewise.
2619 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2621 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2623 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2624 Replace FRAME argument with FRAME_ID.
2625 * gdbarch.c, gdbarch.h: Regenerate.
2626 * findvar.c (default_value_from_register): Add GDBARCH argument;
2627 replace FRAME by FRAME_ID. No longer call get_frame_id.
2628 (value_from_register): Update call to gdbarch_value_from_register.
2629 * value.h (default_value_from_register): Update prototype.
2630 * s390-linux-tdep.c (s390_value_from_register): Update interface
2631 and call to default_value_from_register.
2632 * spu-tdep.c (spu_value_from_register): Likewise.
2634 * findvar.c (address_from_register): Remove TYPE argument.
2635 Do not call value_from_register; use gdbarch_value_from_register
2636 with null_frame_id instead.
2637 * value.h (address_from_register): Update prototype.
2638 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2639 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2640 address_from_register interface change.
2642 2014-04-17 Yao Qi <yao@codesourcery.com>
2644 * gdbtypes.h: Update comments to link to types and macros'
2647 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2649 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2651 2014-04-16 Keith Seitz <keiths@redhat.com>
2654 * dwarf2read.c (skip_one_die): Check that all relative-offset
2655 sibling DIEs fall within range of the current reader's buffer.
2656 (read_partial_die): Likewise.
2658 2014-04-16 Keith Seitz <keiths@redhat.com>
2661 * cp-namespace.c (lookup_symbol_file): If the type name of
2662 `this' is NULL, return immediately.
2664 2014-04-14 Keith Seitz <keiths@redhat.com>
2667 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2668 from symbol_matches_domain in symtab.c. All local callers
2669 of symbol_matches_domain updated.
2670 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2671 search STRUCT_DOMAIN.
2672 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2673 independently. standard_lookup will do that automatically.
2674 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2676 (cp_lookup_symbol_in_namespace): Likewise.
2677 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2678 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2679 may return a STRUCT_DOMAIN match.
2680 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2681 * cp-support.c: Include language.h.
2682 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2684 * psymtab.c (match_partial_symbol): Compare the requested
2685 domain with the symbol's domain directly.
2686 (lookup_partial_symbol): Likewise.
2687 * symtab.c (lookup_symbol_in_language): Explain when/why
2688 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2689 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2690 appropriate languages.
2691 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2692 and moved to ada-lang.c
2693 (lookup_block_symbol): Explain that this function only returns
2694 symbol matching the requested DOMAIN.
2695 Compare the requested domain with the symbol's domain directly.
2696 (iterate_over_symbols): Compare the requested domain with the
2697 symbol's domain directly.
2698 * symtab.h (symbol_matches_domain): Remove.
2700 2014-04-14 Tom Tromey <tromey@redhat.com>
2703 * c-exp.y (type_aggregate_p): New function.
2704 (qualified_name, classify_inner_name): Use it.
2705 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2706 and TYPE_TARGET_TYPE of an enum type.
2707 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2709 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2710 handle TYPE_DECLARED_CLASS.
2711 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2713 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2714 * valops.c (enum_constant_from_type): New function.
2715 (value_aggregate_elt): Use it.
2716 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2719 2014-04-14 Tom Tromey <tromey@redhat.com>
2721 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2722 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2724 * value.h (value_aggregate_elt): Update.
2726 2014-04-14 Tom Tromey <tromey@redhat.com>
2728 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2730 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2732 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2733 (evaluate_subexp_standard): Pass noside argument.
2734 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2735 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2736 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2737 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2738 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2742 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2743 points to a constant blob.
2745 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2747 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2748 property and store it as the high bound and flag the range accordingly.
2749 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2750 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2751 * gdbtypes.h (enum range_flags): New enum.
2752 (struct range_bounds): Add flags member.
2754 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2756 * c-typeprint.c (c_type_print_varspec_suffix): Added
2757 check for not yet resolved high bound. If unresolved, print
2758 "variable length" string to the console instead of random
2761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2763 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2765 (ada_template_to_fixed_record_type_1): Likewise.
2766 (ada_to_fixed_type_1): Likewise.
2767 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2768 (cp_print_value): Likewise.
2769 * d-valprint.c (dynamic_array_type): Likewise.
2770 * findvar.c (address_of_variable): Likewise.
2771 * jv-valprint.c (java_value_print): Likewise.
2772 * valops.c (value_ind): Likewise.
2773 * value.c (coerce_ref): Likewise.
2775 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2777 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2778 value and retrieve the dynamic type size.
2780 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2782 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2783 passed to sizeof is dynamic evaluate the argument to compute the length.
2785 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2786 Joel Brobecker <brobecker@adacore.com>
2788 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2789 (dwarf2_evaluate_property): New function.
2790 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2791 * dwarf2read.c (attr_to_dynamic_prop): New function.
2792 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2794 * gdbtypes.c: Include dwarf2loc.h.
2795 (is_dynamic_type): New function.
2796 (resolve_dynamic_type): New function.
2797 (resolve_dynamic_bounds): New function.
2798 (get_type_length): New function.
2799 (check_typedef): Use get_type_length to compute type length.
2800 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2801 (TYPE_LOW_BOUND_KIND): New macro.
2802 (is_dynamic_type): New function prototype.
2803 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2804 to resolve dynamic properties of the type. Update comment.
2805 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2807 2014-04-14 Richard Henderson <rth@redhat.com>
2809 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2811 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2812 Doug Evans <xdje42@gmail.com>
2814 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2815 dereference TYPE_CODE_REF values.
2817 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2819 Revert the following changes due to regressions:
2821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2822 (dwarf2_evaluate_property): New function.
2823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2824 * dwarf2read.c (attr_to_dynamic_prop): New function.
2825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2827 * gdbtypes.c: Include dwarf2loc.h.
2828 (is_dynamic_type): New function.
2829 (resolve_dynamic_type): New function.
2830 (resolve_dynamic_bounds): New function.
2831 (get_type_length): New function.
2832 (check_typedef): Use get_type_length to compute type length.
2833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2834 (TYPE_LOW_BOUND_KIND): New macro.
2835 (is_dynamic_type): New function prototype.
2836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2837 to resolve dynamic properties of the type. Update comment.
2838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2840 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2841 passed to sizeof is dynamic evaluate the argument to compute the length.
2843 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2844 value and retrieve the dynamic type size.
2846 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2847 (ada_template_to_fixed_record_type_1): Likewise.
2848 (ada_to_fixed_type_1): Likewise.
2849 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2850 (cp_print_value): Likewise.
2851 * d-valprint.c (dynamic_array_type): Likewise.
2852 * eval.c (evaluate_subexp_with_coercion): Likewise.
2853 * findvar.c (address_of_variable): Likewise.
2854 * jv-valprint.c (java_value_print): Likewise.
2855 * valops.c (value_ind): Likewise.
2856 * value.c (coerce_ref): Likewise.
2858 * c-typeprint.c (c_type_print_varspec_suffix): Added
2859 check for not yet resolved high bound. If unresolved, print
2860 "variable length" string to the console instead of random
2863 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2864 property and store it as the high bound and flag the range accordingly.
2865 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2866 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2867 * gdbtypes.h (enum range_flags): New enum.
2868 (struct range_bounds): Add flags member.
2870 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2871 points to a constant blob.
2873 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2874 (evaluate_subexp_standard): Pass noside argument.
2875 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2876 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2877 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2878 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2879 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2881 2014-04-11 Keith Seitz <keiths@redhat.com>
2884 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2885 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2888 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2890 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2891 (evaluate_subexp_standard): Pass noside argument.
2892 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2893 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2894 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2895 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2896 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2900 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2901 points to a constant blob.
2903 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2905 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2906 property and store it as the high bound and flag the range accordingly.
2907 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2908 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2909 * gdbtypes.h (enum range_flags): New enum.
2910 (struct range_bounds): Add flags member.
2912 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2914 * c-typeprint.c (c_type_print_varspec_suffix): Added
2915 check for not yet resolved high bound. If unresolved, print
2916 "variable length" string to the console instead of random
2919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2921 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2922 (ada_template_to_fixed_record_type_1): Likewise.
2923 (ada_to_fixed_type_1): Likewise.
2924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2925 (cp_print_value): Likewise.
2926 * d-valprint.c (dynamic_array_type): Likewise.
2927 * eval.c (evaluate_subexp_with_coercion): Likewise.
2928 * findvar.c (address_of_variable): Likewise.
2929 * jv-valprint.c (java_value_print): Likewise.
2930 * valops.c (value_ind): Likewise.
2931 * value.c (coerce_ref): Likewise.
2933 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2935 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2936 value and retrieve the dynamic type size.
2938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2940 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2941 passed to sizeof is dynamic evaluate the argument to compute the length.
2943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2945 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2946 (dwarf2_evaluate_property): New function.
2947 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2948 * dwarf2read.c (attr_to_dynamic_prop): New function.
2949 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2951 * gdbtypes.c: Include dwarf2loc.h.
2952 (is_dynamic_type): New function.
2953 (resolve_dynamic_type): New function.
2954 (resolve_dynamic_bounds): New function.
2955 (get_type_length): New function.
2956 (check_typedef): Use get_type_length to compute type length.
2957 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2958 (TYPE_LOW_BOUND_KIND): New macro.
2959 (is_dynamic_type): New function prototype.
2960 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2961 to resolve dynamic properties of the type. Update comment.
2962 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2964 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2966 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2967 declaring high/low bounds and change uses accordingly. Call
2968 create_range_type instead of create_static_range_type.
2969 * gdbtypes.c (create_range_type): New function.
2970 (create_range_type): Convert bounds into struct bound_prop and pass
2971 them to create_range_type.
2972 * gdbtypes.h (struct bound_prop): New struct.
2973 (create_range_type): New function prototype.
2974 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2975 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2976 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2978 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2980 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2982 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2983 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2984 * ada-lang.c: All uses of create_range_type updated.
2985 * coffread.c: All uses of create_range_type updated.
2986 * dwarf2read.c: All uses of create_range_type updated.
2987 * f-exp.y: All uses of create_range_type updated.
2988 * m2-valprint.c: All uses of create_range_type updated.
2989 * mdebugread.c: All uses of create_range_type updated.
2990 * stabsread.c: All uses of create_range_type updated.
2991 * valops.c: All uses of create_range_type updated.
2992 * valprint.c: All uses of create_range_type updated.
2994 2014-04-10 Pedro Alves <palves@redhat.com>
2996 * breakpoint.c (single_step_breakpoints)
2997 (single_step_gdbarch): Move up in the file.
2998 (one_breakpoint_xfer_memory): New function, factored out from ...
2999 (breakpoint_xfer_memory): ... here. Also process single-step
3002 2014-04-09 Tristan Gingold <gingold@adacore.com>
3004 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3006 (darwin_decode_exception_message): Free port only after use.
3008 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3010 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3011 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3012 when setting the size of call_length.
3014 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3016 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3017 dereference TYPE_CODE_REF values.
3019 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3021 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3022 end of warning message.
3024 2014-04-03 Doug Evans <dje@google.com>
3026 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3027 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3029 2014-04-02 Alan Modra <amodra@gmail.com>
3031 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3032 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3033 (struct symbol_file_add_from_memory_args): Add size field.
3034 (find_vdso_size): New function.
3035 (add_vsyscall_page): Attempt to find vdso size.
3037 2014-04-01 Doug Evans <dje@google.com>
3039 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3041 2014-04-01 Tristan Gingold <gingold@adacore.com>
3043 * darwin-nat.c (darwin_encode_reply): Add prototype.
3044 (darwin_decode_exception_message): Reply to unknown inferiors.
3045 (darwin_decode_message): Handle message by id. Ignore message
3046 to unknown inferior.
3047 (darwin_wait): Discard unknown messages, add debug trace.
3049 2014-03-31 Doug Evans <dje@google.com>
3051 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3054 2014-03-31 Doug Evans <dje@google.com>
3056 New option "set print symbol-loading".
3058 * solib.c (solib_read_symbols): Only print symbol loading messages
3060 (solib_add): If symbol loading is in "brief" mode, notify user
3061 symbols are being loaded.
3062 (reload_shared_libraries_1): Ditto.
3063 * symfile.c (print_symbol_loading_off): New static global.
3064 (print_symbol_loading_brief): New static global.
3065 (print_symbol_loading_full): New static global.
3066 (print_symbol_loading_enums): New static global.
3067 (print_symbol_loading): New static global.
3068 (print_symbol_loading_p): New function.
3069 (symbol_file_add_with_addrs): Only print symbol loading messages
3071 (_initialize_symfile): Register "print symbol-loading" set/show
3073 * symfile.h (print_symbol_loading_p): Declare.
3075 2014-03-30 Doug Evans <xdje42@gmail.com>
3077 * infrun.c (set_last_target_status): New function.
3078 (handle_inferior_event): Call it.
3080 2014-03-30 Doug Evans <xdje42@gmail.com>
3082 * inferior.h (enum stop_kind): Improve comment.
3084 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3086 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3087 a reference, strip the reference layer before calling
3088 the lang_ops value_has_mutated callback.
3090 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3092 Remove some globals from our parser.
3093 * language.c (unk_lang_parser): Add "struct parser_state"
3095 * language.h (struct language_defn) <la_parser>: Likewise.
3096 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3097 (initialize_expout): Add "struct parser_state" argument.
3098 Rewrite function to use the parser state.
3099 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3100 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3101 write_exp_elt_longcst, write_exp_elt_dblcst,
3102 write_exp_elt_decfloatcst, write_exp_elt_type,
3103 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3104 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3105 write_dollar_variable): Likewise.
3106 (parse_exp_in_context_1): Use parser state.
3107 (insert_type_address_space): Add "struct parser_state" argument.
3109 (increase_expout_size): New function.
3110 * parser-defs.h: Forward declare "struct language_defn" and
3111 "struct parser_state".
3112 (expout, expout_size, expout_ptr): Remove extern declarations.
3113 (parse_gdbarch, parse_language): Rewrite macro declarations to
3114 accept the parser state.
3115 (struct parser_state): New struct.
3116 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3117 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3118 write_exp_elt_decfloatcst, write_exp_elt_type,
3119 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3120 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3121 write_exp_msymbol, write_dollar_variable,
3122 mark_struct_expression, insert_type_address_space): Add "struct
3123 parser_state" argument.
3124 (increase_expout_size): New function.
3125 * utils.c (do_clear_parser_state): New function.
3126 (make_cleanup_clear_parser_state): Likewise.
3127 * utils.h (make_cleanup_clear_parser_state): New function
3129 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3130 Update calls to write_exp* in order to pass the parser state.
3131 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3132 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3133 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3134 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3135 * stap-probe.c (stap_parse_register_operand): Likewise.
3136 (stap_parse_single_operand): Likewise.
3137 (stap_parse_argument_1): Likewise.
3138 (stap_parse_argument): Use parser state.
3139 * stap-probe.h: Include "parser-defs.h".
3140 (struct stap_parse_info) <pstate>: New field.
3141 * c-exp.y (parse_type): Rewrite to use parser state.
3142 (yyparse): Redefine to c_parse_internal.
3143 (pstate): New global variable.
3144 (parse_number): Add "struct parser_state" argument.
3145 (write_destructor_name): Likewise.
3146 (type_exp): Update calls to write_exp* and similars in order to
3148 (exp1, exp, variable, qualified_name, space_identifier,
3149 typename, typebase): Likewise.
3150 (write_destructor_name, parse_number, lex_one_token,
3151 classify_name, classify_inner_name, c_parse): Add "struct
3152 parser_state" argument. Update function to use parser state.
3153 * c-lang.h: Forward declare "struct parser_state".
3154 (c_parse): Add "struct parser_state" argument.
3155 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3156 (yyparse): Redefine macro to ada_parse_internal.
3157 (pstate): New variable.
3158 (write_int, write_object_renaming, write_var_or_type,
3159 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3160 type_int, type_long, type_long_long, type_float, type_double,
3161 type_long_double, type_char, type_boolean, type_system_address):
3162 Add "struct parser_state" argument.
3163 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3164 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3165 var_or_type, aggregate, aggregate_component_list,
3166 positional_list, others, component_group,
3167 component_associations): Update calls to write_exp* and similar
3168 functions in order to use parser state.
3169 (ada_parse, write_var_from_sym, write_int,
3170 write_exp_op_with_string, write_object_renaming,
3171 find_primitive_type, write_selectors, write_ambiguous_var,
3172 write_var_or_type, write_name_assoc, type_int, type_long,
3173 type_long_long, type_float, type_double, type_long_double,
3174 type_char, type_boolean, type_system_address): Add "struct
3175 parser_state" argument. Adjust function to use parser state.
3176 * ada-lang.c (parse): Likewise.
3177 * ada-lang.h: Forward declare "struct parser_state".
3178 (ada_parse): Add "struct parser_state" argument.
3179 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3180 calls to both functions.
3181 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3183 (yyparse): Redefine macro to f_parse_internal.
3184 (pstate): New variable.
3185 (parse_number): Add "struct parser_state" argument.
3186 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3187 and similars in order to use parser state.
3188 (parse_number): Adjust code to use parser state.
3190 (f_parse): New function.
3191 * f-lang.h: Forward declare "struct parser_state".
3192 (f_parse): Add "struct parser_state" argument.
3193 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3195 (yyparse): Redefine macro for java_parse_internal.
3196 (pstate): New variable.
3197 (push_expression_name, push_expression_name, insert_exp): Add
3198 "struct parser_state" argument.
3199 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3200 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3201 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3202 PostIncrementExpression, PostDecrementExpression,
3203 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3204 UnaryExpressionNotPlusMinus, CastExpression,
3205 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3206 RelationalExpression, EqualityExpression, AndExpression,
3207 ExclusiveOrExpression, InclusiveOrExpression,
3208 ConditionalAndExpression, ConditionalOrExpression,
3209 ConditionalExpression, Assignment, LeftHandSide): Update
3210 calls to write_exp* and similars in order to use parser state.
3211 (parse_number): Ajust code to use parser state.
3213 (java_parse): New function.
3214 (push_variable): Add "struct parser_state" argument. Adjust
3215 code to user parser state.
3216 (push_fieldnames, push_qualified_expression_name,
3217 push_expression_name, insert_exp): Likewise.
3218 * jv-lang.h: Forward declare "struct parser_state".
3219 (java_parse): Add "struct parser_state" argument.
3220 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3222 (yyparse): Redefine macro to m2_parse_internal.
3223 (pstate): New variable.
3224 (type_exp, exp, fblock, variable, type): Update calls to
3225 write_exp* and similars to use parser state.
3227 (m2_parse): New function.
3228 * m2-lang.h: Forward declare "struct parser_state".
3229 (m2_parse): Add "struct parser_state" argument.
3230 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3231 * objc-lang.h: Forward declare "struct parser_state".
3232 (end_msglist): Add "struct parser_state" argument.
3233 * p-exp.y (parse_type): Rewrite macro to use parser state.
3234 (yyparse): Redefine macro to pascal_parse_internal.
3235 (pstate): New variable.
3236 (parse_number): Add "struct parser_state" argument.
3237 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3238 write_exp* and similars in order to use parser state.
3239 (parse_number, yylex): Adjust code to use parser state.
3240 (pascal_parse): New function.
3241 * p-lang.h: Forward declare "struct parser_state".
3242 (pascal_parse): Add "struct parser_state" argument.
3243 * go-exp.y (parse_type): Rewrite macro to use parser state.
3244 (yyparse): Redefine macro to go_parse_internal.
3245 (pstate): New variable.
3246 (parse_number): Add "struct parser_state" argument.
3247 (type_exp, exp1, exp, variable, type): Update calls to
3248 write_exp* and similars in order to use parser state.
3249 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3250 to use parser state.
3251 (go_parse): Likewise.
3252 * go-lang.h: Forward declare "struct parser_state".
3253 (go_parse): Add "struct parser_state" argument.
3255 2014-03-27 Doug Evans <dje@google.com>
3257 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3259 2014-03-27 Doug Evans <dje@google.com>
3261 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3262 Remove argument abbrev_section. All callers updated.
3264 2014-03-27 Doug Evans <dje@google.com>
3266 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3267 addr_base, ranges_base.
3269 2014-03-26 Keith Seitz <keiths@redhat.com>
3271 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3272 types, not VAR_DOMAIN.
3274 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3276 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3278 * features/nios2-linux.c: Regenerated.
3279 * features/nios2.c: Regenerated.
3281 2014-03-25 Pedro Alves <palves@redhat.com>
3283 * cli/cli-script.c (script_from_file): Force the interpreter to
3286 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3288 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3289 small stack allocation.
3291 2014-03-24 Tristan Gingold <gingold@adacore.com>
3293 * darwin-nat.c (exc_server): Remove unused prototype.
3294 (darwin_dump_message): Correctly display data on x86_64.
3295 (darwin_encode_reply): Fix style.
3296 Add comments and fix indentation.
3298 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3300 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3302 2014-03-22 Doug Evans <xdje42@gmail.com>
3304 * infcmd.c: Whitespace fixes.
3305 (interrupt_command): Merge two function comments into one.
3307 2014-03-22 Doug Evans <xdje42@gmail.com>
3309 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3312 2014-03-22 Yao Qi <yao@codesourcery.com>
3314 * remote.c (target_read_live_memory): Remove.
3315 (memory_xfer_live_readonly_partial): Rename it to
3316 remote_xfer_live_readonly_partial. Remove argument 'object'.
3317 All callers updated. Call remote_read_bytes_1
3318 instead of target_read_live_memory.
3319 * tracepoint.c (set_traceframe_number): Remove.
3320 (make_cleanup_restore_traceframe_number): Likewise .
3321 * tracepoint.h (set_traceframe_number): Remove declaration.
3322 (make_cleanup_restore_traceframe_number): Likewise.
3324 2014-03-22 Yao Qi <yao@codesourcery.com>
3326 * remote.c (remote_read_bytes): Move code on reading from the
3328 (remote_read_bytes_1): ... here. New function.
3330 2014-03-22 Yao Qi <yao@codesourcery.com>
3332 * ctf.c (ctf_xfer_partial): Check the return value of
3333 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3334 return TARGET_XFER_UNAVAILABLE.
3335 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3336 * target.c (target_read_live_memory): Move it to remote.c.
3337 (memory_xfer_live_readonly_partial): Likewise.
3338 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3339 * remote.c (target_read_live_memory): Moved from target.c.
3340 (memory_xfer_live_readonly_partial): Likewise.
3341 (remote_read_bytes): Factored out from
3342 memory_xfer_partial_1.
3344 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3346 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3349 2014-03-21 Pedro Alves <palves@redhat.com>
3351 * infrun.c (normal_stop): Extend comment.
3353 2014-03-21 Hui Zhu <hui@codesourcery.com>
3354 Pedro Alves <palves@redhat.com>
3356 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3358 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3359 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3360 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3362 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3364 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3365 `z' formatted output modifier.
3367 2014-03-20 Tom Tromey <tromey@redhat.com>
3368 Sergio Durigan Junior <sergiodj@redhat.com>
3370 * probe.c (parse_probes): Turn assert into an ordinary error.
3371 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3372 exceptions when parsing probes. Rearrange the code for clarity.
3374 2014-03-20 Tom Tromey <tromey@redhat.com>
3377 * top.c (execute_command): Only dispatch events if the command
3380 2014-03-20 Tom Tromey <tromey@redhat.com>
3383 * infcall.c: Include event-top.h.
3384 (run_inferior_call): Call async_disable_stdin if needed.
3386 2014-03-20 Pedro Alves <palves@redhat.com>
3388 * infrun.c (prepare_to_proceed): Delete.
3389 (thread_still_needs_step_over): New function.
3390 (find_thread_needs_step_over): New function.
3391 (proceed): If the current thread needs a step-over, set its
3392 steping_over_breakpoint flag. Adjust to use
3393 find_thread_needs_step_over instead of prepare_to_proceed.
3394 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3395 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3397 (switch_back_to_stepped_thread): Step over breakpoints of all
3398 threads not the stepping thread, before switching back to the
3401 2014-03-20 Pedro Alves <palves@redhat.com>
3403 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3405 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3406 * infrun.c (saved_singlestep_ptid)
3407 (stepping_past_singlestep_breakpoint): Delete.
3408 (resume): Remove stepping_past_singlestep_breakpoint handling.
3409 (proceed): Store the prev_pc of the stepping thread too.
3410 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3412 (enum infwait_states): Delete infwait_thread_hop_state.
3413 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3415 (handle_inferior_event): Adjust.
3416 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3417 handling and the thread-hop code. Before removing single-step
3418 breakpoints, check whether the thread hit a single-step breakpoint
3419 of another thread. If it did, the trap is not a random signal.
3420 (switch_back_to_stepped_thread): If the event thread hit a
3421 single-step breakpoint, unblock it before switching to the
3422 stepping thread. Handle the case of the stepped thread having
3424 (keep_going): Handle the case of the current thread moving past a
3425 single-step breakpoint.
3427 2014-03-20 Pedro Alves <palves@redhat.com>
3430 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3431 are being stepped over.
3432 (breakpoint_address_match): Make extern.
3433 * breakpoint.h (breakpoint_address_match): New declaration.
3434 * inferior.h (stepping_past_instruction_at): New declaration.
3435 * infrun.c (struct step_over_info): New type.
3436 (step_over_info): New global.
3437 (set_step_over_info, clear_step_over_info)
3438 (stepping_past_instruction_at): New functions.
3439 (handle_inferior_event): Clear the step-over info when
3440 trap_expected is cleared.
3441 (resume): Remove now stale comment.
3442 (clear_proceed_status): Clear step-over info.
3443 (proceed): Adjust step-over handling to set or clear the step-over
3444 info instead of removing all breakpoints.
3445 (handle_signal_stop): When setting up a thread-hop, don't remove
3447 (stop_stepping): Clear step-over info.
3448 (keep_going): Adjust step-over handling to set or clear step-over
3449 info and then always inserting breakpoints, instead of removing
3450 all breakpoints when stepping over one.
3452 2014-03-20 Pedro Alves <palves@redhat.com>
3454 * infrun.c (previous_inferior_ptid): Adjust comment.
3455 (deferred_step_ptid): Delete.
3456 (infrun_thread_ptid_changed, prepare_to_proceed)
3457 (init_wait_for_inferior): Adjust.
3458 (handle_signal_stop): Delete deferred_step_ptid handling.
3460 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * defs.h (sync_quit_force_run): New declaration.
3464 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3465 * event-top.c (async_sigterm_handler): New declaration.
3466 (async_sigterm_token): New variable.
3467 (async_init_signals): Create also async_sigterm_token.
3468 (async_sigterm_handler): New function.
3469 (sync_quit_force_run): New variable.
3470 (handle_sigterm): Replace quit_force call by other calls.
3471 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3473 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3475 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3476 offset into SPE pseudo registers.
3478 2014-03-18 Pedro Alves <palves@redhat.com>
3481 * inferior.h (print_stop_event): Declare.
3482 * infrun.c (print_stop_event): New, factored out from ...
3483 (normal_stop): ... this.
3484 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3485 of bpstat_print/print_stack_frame.
3487 2014-03-17 Tom Tromey <tromey@redhat.com>
3489 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3491 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3493 * ada-lang.c (decode_constrained_packed_array): Perform a
3494 minimal coercion for reference with coerce_ref instead of
3497 2014-03-17 Tristan Gingold <gingold@adacore.com>
3499 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3500 (darwin_solib_create_inferior_hook): Emit a warning if version
3503 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3505 * python/py-value.c (get_field_flag): Cast flag_name argument to
3506 PyObject_GetAttrString to support Python 2.4.
3508 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3510 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3511 (Global Maintainers): Remove Jan Kratochvil.
3513 2014-03-14 Pedro Alves <palves@redhat.com>
3515 * inferior.h (terminal_ours_for_output): Rename to ...
3516 (child_terminal_ours_for_output): ... this.
3517 (terminal_save_ours): Rename to ...
3518 (child_terminal_save_ours): ... this.
3519 (terminal_ours): Rename to ...
3520 (child_terminal_ours): ... this.
3521 (terminal_inferior): Rename to ...
3522 (child_terminal_inferior): ... this.
3523 (terminal_init_inferior): Rename to ...
3524 (child_terminal_init_inferior): ... this.
3525 (terminal_init_inferior_with_pgrp): Rename to ...
3526 (child_terminal_init_inferior_with_pgrp): ... this.
3527 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3528 (child_terminal_init_with_pgrp): ... this.
3529 (terminal_save_ours): Rename to ...
3530 (child_terminal_save_ours): ... this.
3531 (terminal_init_inferior): Rename to ...
3532 (child_terminal_init): ... this. Adjust.
3533 (terminal_inferior): Rename to ...
3534 (child_terminal_inferior): ... this.
3535 (terminal_ours_for_output): Rename to ...
3536 (child_terminal_ours_for_output): ... this. Adjust.
3537 (terminal_ours): Rename to ...
3538 (child_terminal_ours): ... this.
3539 (terminal_ours_1): Rename to ...
3540 (child_terminal_ours_1): ... this. Adjust.
3541 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3542 * windows-nat.c (do_initial_windows_stuff): Adjust.
3543 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3544 (gnu_terminal_init): ... this. Adjust.
3545 (gnu_target): Adjust.
3546 * inf-child.c (inf_child_target): Adjust.
3548 2014-03-13 Doug Evans <xdje42@gmail.com>
3551 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3554 2014-03-13 Doug Evans <xdje42@gmail.com>
3556 * value.c (record_latest_value): Call release_value_or_incref
3557 instead of release_value.
3559 2014-03-13 Pedro Alves <palves@redhat.com>
3561 * procfs.c (procfs_target): Don't override to_shortname,
3562 to_longname or to_doc.
3564 2014-03-13 Pedro Alves <palves@redhat.com>
3566 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3567 Unix in user visible strings.
3569 2014-03-12 Stan Shebs <stan@codesourcery.com>
3571 * gdbtypes.h: Annotate comments for Doxygen, add a page
3572 block comment with some general info.
3574 2014-03-12 Pedro Alves <palves@redhat.com>
3576 * infcmd.c (prepare_execution_command): New function, factored out
3577 from several execution commands.
3578 (run_command_1, continue_command, step_1, jump_command)
3579 (signal_command, until_command, advance_command, finish_command)
3580 (attach_command): Use prepare_execution_command.
3582 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3584 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3587 (struct arm_linux_thread_points): Removed.
3588 (struct arm_linux_process_info): New.
3589 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3590 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3591 (arm_linux_find_breakpoints_by_tid): Removed.
3592 (struct arch_lwp_info): New.
3593 (arm_linux_find_process_pid): New functions.
3594 (arm_linux_add_process): New functions.
3595 (arm_linux_process_info_get): New functions.
3596 (arm_linux_forget_process): New function.
3597 (arm_linux_get_debug_reg_state): New function.
3598 (struct update_registers_data): New.
3599 (update_registers_callback): New function.
3600 (arm_linux_insert_hw_breakpoint1): Updated.
3601 (arm_linux_remove_hw_breakpoint1): Updated.
3602 (arm_linux_insert_hw_breakpoint): Updated.
3603 (arm_linux_remove_hw_breakpoint): Updated.
3604 (arm_linux_insert_watchpoint): Updated.
3605 (arm_linux_remove_watchpoint): Updated.
3606 (arm_linux_new_thread): Updated.
3607 (arm_linux_prepare_to_resume): New function.
3608 (arm_linux_new_fork): New function.
3609 (_initialize_arm_linux_nat): Updated.
3611 2014-03-12 Pedro Alves <palves@redhat.com>
3613 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3615 2014-03-12 Tom Tromey <tromey@redhat.com>
3617 * inf-child.c (return_zero): New function.
3618 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3619 * aix-thread.c (aix_thread_inferior_created): New function.
3620 (aix_thread_attach): Remove.
3621 (init_aix_thread_ops): Don't set to_attach.
3622 (_initialize_aix_thread): Register inferior_created observer.
3623 * corelow.c (init_core_ops): Don't set to_attach or
3625 * exec.c (init_exec_ops): Don't set to_attach or
3627 * infcmd.c (run_command_1): Use find_run_target. Make direct
3629 (attach_command): Use find_attach_target. Make direct target
3631 * record-btrace.c (init_record_btrace_ops): Don't set
3633 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3635 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3636 set to_create_inferior.
3637 * target.c (complete_target_initialization): Add assertion.
3638 (target_create_inferior): Remove.
3639 (find_default_attach, find_default_create_inferior): Remove.
3640 (find_attach_target, find_run_target): New functions.
3641 (find_default_is_async_p, find_default_can_async_p)
3642 (target_supports_non_stop, target_attach): Remove.
3643 (init_dummy_target): Don't set to_create_inferior or
3644 to_supports_non_stop.
3645 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3646 TARGET_DEFAULT_FUNC.
3647 <to_create_inferior>: Add comment.
3648 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3649 TARGET_DEFAULT_RETURN.
3650 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3651 (find_attach_target, find_run_target): Declare.
3652 (target_create_inferior): Remove.
3653 (target_has_execution_1): Update comment.
3654 (target_supports_non_stop): Remove.
3655 * target-delegates.c: Rebuild.
3657 2014-03-12 Pedro Alves <palves@redhat.com>
3659 * inf-child.h: Update comment to not mention Unix.
3661 2014-03-12 Pedro Alves <palves@redhat.com>
3663 * inf-child.c: Update top comment to not mention Unix. Add
3664 generic comment describing how this target is meant to be used.
3665 (inf_child_post_attach, inf_child_post_startup_inferior)
3666 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3669 2014-03-12 Pedro Alves <palves@redhat.com>
3671 * nto-procfs.c: Include inf-child.h.
3672 (procfs_ops): Delete global.
3673 (procfs_can_run): Delete method.
3674 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3675 target pointer instead of referencing procfs_ops.
3676 (procfs_prepare_to_store): Delete.
3677 (init_procfs_ops): Delete function.
3678 (procfs_target): New function, based on init_procfs_ops, but
3679 inherit inf_child_target.
3680 (_initialize_procfs): Use procfs_target.
3682 2014-03-12 Pedro Alves <palves@redhat.com>
3684 * windows-nat.c: Include inf-child.h.
3685 (windows_ops): Delete global.
3686 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3688 (init_windows_ops): Delete function.
3689 (windows_target): New function, based on init_windows_ops, but
3690 inherit inf_child_target.
3691 (_initialize_windows_nat): Use windows_target. Install x86
3692 specific target methods here.
3694 2014-03-10 Doug Evans <xdje42@gmail.com>
3696 * guile/guile.c (call_initialize_gdb_module): New function.
3697 (initialize_guile): Replace call to scm_init_guile with call to
3700 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3702 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3703 in call to TYPE_CODE macro.
3705 2014-03-10 Jerome Guitton <guitton@adacore.com>
3707 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3708 Resolve tagged types to full view.
3710 2014-03-10 Hui Zhu <hui@codesourcery.com>
3712 * target.h (target_insert_breakpoint): Remove "hardware" from its
3715 2014-03-07 Doug Evans <dje@google.com>
3717 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3719 2014-03-07 Doug Evans <dje@google.com>
3721 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3722 Remove unused local comp_dir_attr. Assert exactly one of
3723 stub_comp_unit_die, stub_comp_dir is non-NULL.
3725 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3727 * target.h (complete_target_initialization, add_target):
3730 2014-03-07 Pedro Alves <palves@redhat.com>
3732 * go32-nat.c: Include inf-child.h.
3733 (go32_ops): Delete global.
3734 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3736 (go32_create_inferior): Push the passed in target pointer instead
3737 of referencing go32_ops.
3738 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3739 (go32_target): New function, based on init_go32_ops, but inherit
3741 (_initialize_go32_nat): Use go32_target. Move parts of
3744 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3746 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3747 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3748 SYMBOL_VALUE_ADDRESS.
3749 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3751 2014-03-06 Yao Qi <yao@codesourcery.com>
3753 * breakpoint.c (get_tracepoint_by_number): Remove argument
3754 optional_p. All callers updated. Adjust comments. Update
3756 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3758 2014-03-06 Yao Qi <yao@codesourcery.com>
3760 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3761 early if get_number returns zero. Use 'p' instead of 'args'.
3763 2014-03-06 Yao Qi <yao@codesourcery.com>
3765 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3768 2014-03-06 Yao Qi <yao@codesourcery.com>
3770 PR breakpoints/16508
3771 * tracepoint.c (check_trace_running): New function.
3772 (trace_find_command): Move code to check_trace_running and
3773 call check_trace_running.
3774 (trace_find_pc_command): Likewise.
3775 (trace_find_tracepoint_command): Likewise.
3776 (trace_find_line_command): Likewise.
3777 (trace_find_range_command): Likewise.
3778 * tracepoint.h (check_trace_running): Likewise.
3779 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3781 2014-03-06 Yao Qi <yao@codesourcery.com>
3783 * target.h (struct target_ops) <to_traceframe_info>: Use
3784 TARGET_DEFAULT_NORETURN (tcomplain ()).
3785 * target-delegates.c: Regenerated.
3787 2014-03-05 Pedro Alves <palves@redhat.com>
3790 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3791 void. Update comment.
3792 (dcache_xfer_memory): Delete.
3793 (dcache_read_memory_partial): New, based on the read bits of
3795 (dcache_update): Add status parameter. Use ULONGEST for len, and
3796 adjust. Discard cache lines if the reason for the update was
3798 * dcache.h (dcache_xfer_memory): Delete declaration.
3799 (dcache_read_memory_partial): New declaration.
3800 (dcache_update): Update prototype.
3801 * target.c (raw_memory_xfer_partial): Update the dcache here.
3802 (memory_xfer_partial_1): Don't handle dcache writes here.
3804 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3806 * remote-sim.c (gdbsim_load): Add const to prog.
3808 2014-03-03 Tom Tromey <tromey@redhat.com>
3810 * elfread.c (probe_key): Change to bfd_data.
3811 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3812 now per-BFD, not per-objfile.
3813 * stap-probe.c (stap_probe_destroy): Update comment.
3814 (handle_stap_probe): Allocate on the per-BFD obstack.
3816 2014-03-03 Tom Tromey <tromey@redhat.com>
3818 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3819 * breakpoint.c (create_longjmp_master_breakpoint): Use
3821 (add_location_to_breakpoint, bkpt_probe_insert_location)
3822 (bkpt_probe_remove_location): Update.
3823 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3824 * elfread.c (elf_symfile_relocate_probe): Remove.
3825 (elf_probe_fns): Update.
3826 (insert_exception_resume_breakpoint): Change type of "probe"
3827 parameter to bound_probe.
3828 (check_exception_resume): Update.
3829 * objfiles.c (objfile_relocate1): Don't relocate probes.
3830 * probe.c (bound_probe_s): New typedef.
3831 (parse_probes): Use get_probe_address. Set sal's objfile.
3832 (find_probe_by_pc): Return a bound_probe.
3833 (collect_probes): Return a VEC(bound_probe_s).
3834 (compare_probes): Update.
3835 (gen_ui_out_table_header_info): Change type of "probes"
3837 (info_probes_for_ops): Update.
3838 (get_probe_address): New function.
3839 (probe_safe_evaluate_at_pc): Update.
3840 * probe.h (struct probe_ops) <get_probe_address>: New field.
3841 <set_semaphore, clear_semaphore>: Add objfile parameter.
3842 (struct probe) <objfile>: Remove field.
3844 <address>: Update comment.
3845 (struct bound_probe): New.
3846 (find_probe_by_pc): Return a bound_probe.
3847 (get_probe_address): Declare.
3848 * solib-svr4.c (struct probe_and_action) <address>: New field.
3849 (hash_probe_and_action, equal_probe_and_action): Update.
3850 (register_solib_event_probe): Add address parameter.
3851 (solib_event_probe_at): Update.
3852 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3854 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3855 (stap_get_probe_address): New function.
3856 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3857 (compile_probe_arg): Update.
3858 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3860 (handle_stap_probe): Don't relocate the probe.
3861 (stap_relocate): Remove.
3862 (stap_gen_info_probes_table_values): Update.
3863 (stap_probe_ops): Remove stap_relocate.
3864 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3865 (debug_sym_probe_fns): Update.
3866 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3867 * symtab.c (init_sal): Use memset.
3868 * symtab.h (struct symtab_and_line) <objfile>: New field.
3869 * tracepoint.c (start_tracing, stop_tracing): Update.
3871 2014-03-03 Tom Tromey <tromey@redhat.com>
3873 * probe.h (parse_probes, find_probe_by_pc)
3874 (find_probes_in_objfile): Fix comments.
3876 2014-03-02 Doug Evans <xdje42@gmail.com>
3878 * infrun.c (handle_signal_stop): Replace test for
3879 TARGET_WAITKIND_STOPPED with an assert.
3881 2014-03-02 Doug Evans <xdje42@gmail.com>
3883 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3885 2014-03-02 Doug Evans <xdje42@gmail.com>
3887 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3889 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3891 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3893 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3895 * i386obsd-nat.c: Include "obsd-nat.h".
3896 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3898 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3900 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3902 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3906 * mips64obsd-nat.c: Include "obsd-nath".
3907 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3909 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3913 * amd64obsd-nat.c: Include "obsd-nat,h.
3914 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3916 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3918 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3920 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3921 (find_overload_match): Update call to find_oload_champ.
3922 (find_oload_champ_namespace_loop): Likewise
3924 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3926 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3928 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3929 * config/sparc/obsd64.mh: New file.
3930 * sparc64obsd-nat.c: New file.
3932 * obsd-nat.h: New file.
3933 * obsd-nat.c: New file.
3934 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3935 (ALLDEPFILES): Add obsd-nat.c.
3937 2014-02-28 Tom Tromey <tromey@redhat.com>
3939 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3940 * cli-out.h (cli_ui_out_impl): Now const.
3941 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3942 * ui-out.c (struct ui_out) <impl>: Now const.
3943 (default_ui_out_impl): Now const.
3944 (ui_out_new): Make 'impl' parameter const.
3945 * ui-out.h (ui_out_new): Update.
3947 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3949 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3951 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3953 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3955 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 Additional PR 8882 fix.
3958 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3960 2014-02-27 Pedro Alves <palves@redhat.com>
3962 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3965 2014-02-27 Pedro Alves <palves@redhat.com>
3968 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3969 * nat/linux-waitpid.c: Include string.h.
3970 (status_to_str): Moved here and made extern.
3971 * nat/linux-waitpid.h (status_to_str): New declaration.
3973 2014-02-27 Hui Zhu <hui@codesourcery.com>
3976 * infrun.c (ptid_match): Move ...
3977 * common/ptid.c (ptid_match): ... here.
3978 * inferior.h (ptid_match): Move ...
3979 * common/ptid.h (ptid_match): ... here.
3981 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3983 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3984 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3987 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3989 * obsd-tdep.c (obsd_auxv_parse): New function.
3990 (obsd_init_abi): Set auxv_parse.
3992 * gdbarch.sh (auxv_parse): New.
3993 * gdbarch.h: Regenerated.
3994 * gdbarch.c: Regenerated.
3995 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3997 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3999 * guile/scm-value.c (gdbscm_history_append_x): New function.
4000 (value_functions): Add it.
4002 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4004 * dwarf2read.c (attr_value_as_address): New function.
4005 (dwarf2_find_base_address, read_call_site_scope): Use
4006 attr_value_as_address in place of DW_ADDR.
4007 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4008 the low and high addresses. Slight rework of the handling
4009 of the high pc being a constant form, and limit it to
4010 DWARF verson 4 or higher.
4011 (dwarf2_record_block_ranges): Likewise.
4012 (read_partial_die): Likewise.
4013 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4015 2014-02-26 Tom Tromey <tromey@redhat.com>
4017 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4019 2014-02-26 Tom Tromey <tromey@redhat.com>
4021 * elfread.c (elf_read_minimal_symbols): Return early if
4022 minimal symbols have already been read. Add "ei" parameter.
4023 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4024 * minsyms.c (prim_record_minimal_symbol_full): Update.
4025 * objfiles.h (struct objstats) <n_minsyms>: Move...
4026 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4027 * symmisc.c (print_objfile_statistics): Update.
4029 2014-02-26 Tom Tromey <tromey@redhat.com>
4031 * elfread.c (elf_read_minimal_symbols): New function, from
4033 (elf_symfile_read): Call it.
4035 2014-02-26 Tom Tromey <tromey@redhat.com>
4037 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4038 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4039 (lookup_minimal_symbol_solib_trampoline)
4040 (lookup_minimal_symbol_by_pc_section_1)
4041 (lookup_minimal_symbol_and_objfile): Update.
4042 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4043 Don't allocate a minimal symbol if minsyms have already been read.
4044 (build_minimal_symbol_hash_tables): Update.
4045 (install_minimal_symbols): Do nothing if minsyms already read.
4046 Use the per-BFD obstack.
4047 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4048 * objfiles.c (allocate_objfile): Call
4049 terminate_minimal_symbol_table later.
4050 (have_minimal_symbols): Update.
4051 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4052 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4053 Move from struct objfile.
4054 <minsyms_read>: New field.
4055 (struct objfile) <msymbols, minimal_symbol_count,
4056 msymbol_hash, msymbol_demangled_hash>: Move.
4057 (ALL_OBJFILE_MSYMBOLS): Update.
4058 * symfile.c (read_symbols): Set minsyms_read.
4059 (reread_symbols): Update.
4060 * symmisc.c (dump_objfile, dump_msymbols): Update.
4062 2014-02-26 Tom Tromey <tromey@redhat.com>
4064 * minsyms.c (msymbols_sort): Remove.
4065 * minsyms.h (msymbols_sort): Remove.
4066 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4067 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4068 * elfread.c (elf_symtab_read): Don't add section offsets.
4069 * xcoffread.c (record_minimal_symbol): Don't add section offset
4070 to minimal symbol address.
4071 * somread.c (text_offset, data_offset): Remove.
4072 (som_symtab_read): Don't add section offsets to minimal symbol
4074 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4075 Don't add section offsets to minimal symbols.
4076 * coffread.c (coff_symtab_read): Don't add section offsets
4077 to minimal symbol addresses.
4078 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4079 to minimal symbol addresses.
4080 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4081 section offset to minimal symbol addresses.
4082 * mdebugread.c (parse_partial_symbols): Don't add section
4083 offset to minimal symbol addresses.
4084 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4085 offset to minimal symbol addresses.
4087 2014-02-26 Tom Tromey <tromey@redhat.com>
4089 * ada-lang.c (ada_main_name): Update.
4090 (ada_add_standard_exceptions): Update.
4091 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4092 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4093 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4094 * auxv.c (ld_so_xfer_auxv): Update.
4095 * avr-tdep.c (avr_scan_prologue): Update.
4096 * ax-gdb.c (gen_var_ref): Update.
4097 * blockframe.c (get_pc_function_start)
4098 (find_pc_partial_function_gnu_ifunc): Update.
4099 * breakpoint.c (create_overlay_event_breakpoint)
4100 (create_longjmp_master_breakpoint)
4101 (create_std_terminate_master_breakpoint)
4102 (create_exception_master_breakpoint): Update.
4103 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4104 * c-valprint.c (c_val_print): Update.
4105 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4106 * common/agent.c (agent_look_up_symbols): Update.
4107 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4108 * dwarf2loc.c (call_site_to_target_addr): Update.
4109 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4110 * elfread.c (elf_gnu_ifunc_record_cache)
4111 (elf_gnu_ifunc_resolve_by_got): Update.
4112 * findvar.c (default_read_var_value): Update.
4113 * frame.c (inside_main_func): Update.
4114 * frv-tdep.c (frv_frame_this_id): Update.
4115 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4116 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4118 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4119 (hppa_hpux_find_dummy_bpaddr): Update.
4120 * hppa-tdep.c (hppa_symbol_address): Update.
4121 * infcmd.c (until_next_command): Update.
4122 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4124 * linespec.c (minsym_found, add_minsym): Update.
4125 * linux-nat.c (get_signo): Update.
4126 * linux-thread-db.c (inferior_has_bug): Update.
4127 * m32c-tdep.c (m32c_return_value)
4128 (m32c_m16c_address_to_pointer): Update.
4129 * m32r-tdep.c (m32r_frame_this_id): Update.
4130 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4131 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4132 * maint.c (maintenance_translate_address): Update.
4133 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4134 (frob_address): New function.
4135 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4136 frob_address. Rename parameter to "pc_in".
4137 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4139 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4141 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4142 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4143 * objc-lang.c (find_objc_msgsend): Update.
4144 * objfiles.c (objfile_relocate1): Update.
4145 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4146 * p-valprint.c (pascal_val_print): Update.
4147 * parse.c (write_exp_msymbol): Update.
4148 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4149 (ppc_elfv2_skip_entrypoint): Update.
4150 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4151 * printcmd.c (build_address_symbolic, msym_info)
4152 (address_info): Update.
4153 * proc-service.c (ps_pglobal_lookup): Update.
4154 * psymtab.c (find_pc_sect_psymtab_closer)
4155 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4156 Change msymbol parameter to bound_minimal_symbol.
4157 * ravenscar-thread.c (get_running_thread_id): Update.
4158 * remote.c (remote_check_symbols): Update.
4159 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4161 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4162 * solib-dsbt.c (lm_base): Update.
4163 * solib-frv.c (lm_base, main_got): Update.
4164 * solib-irix.c (locate_base): Update.
4165 * solib-som.c (som_solib_create_inferior_hook)
4166 (link_map_start): Update.
4167 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4168 * solib-svr4.c (elf_locate_base, enable_break): Update.
4169 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4170 (flush_ea_cache): Update.
4171 * stabsread.c (define_symbol, scan_file_globals): Update.
4172 * stack.c (find_frame_funname): Update.
4173 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4174 (debug_qf_find_pc_sect_symtab): Update.
4175 * symfile.c (simple_read_overlay_table)
4176 (simple_overlay_update): Update.
4177 * symfile.h (struct quick_symbol_functions)
4178 <find_pc_sect_symtab>: Change type of msymbol to
4179 bound_minimal_symbol.
4180 * symmisc.c (dump_msymbols): Update.
4181 * symtab.c (find_pc_sect_symtab_via_partial)
4182 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4183 (search_symbols, print_msymbol_info): Update.
4184 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4185 (MSYMBOL_VALUE_ADDRESS): Redefine.
4186 (BMSYMBOL_VALUE_ADDRESS): New macro.
4187 * tracepoint.c (scope_info): Update.
4188 * tui/tui-disasm.c (tui_find_disassembly_address)
4189 (tui_get_begin_asm_address): Update.
4190 * valops.c (find_function_in_inferior): Update.
4191 * value.c (value_static_field, value_fn_field): Update.
4193 2014-02-26 Tom Tromey <tromey@redhat.com>
4195 * ada-lang.c (ada_update_initial_language): Update.
4196 (ada_main_name, ada_has_this_exception_support): Update.
4197 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4198 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4199 * arm-tdep.c (arm_skip_stub): Update.
4200 * auxv.c (ld_so_xfer_auxv): Update.
4201 * avr-tdep.c (avr_scan_prologue): Update.
4202 * ax-gdb.c (gen_var_ref): Update.
4203 * breakpoint.c (struct breakpoint_objfile_data)
4204 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4205 type to bound_minimal_symbol.
4206 (create_overlay_event_breakpoint)
4207 (create_longjmp_master_breakpoint)
4208 (create_std_terminate_master_breakpoint)
4209 (create_exception_master_breakpoint): Update.
4210 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4211 * c-exp.y (classify_name): Update.
4212 * coffread.c (coff_symfile_read): Update.
4213 * common/agent.c (agent_look_up_symbols): Update.
4214 * d-lang.c (d_main_name): Update.
4215 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4216 * dec-thread.c (enable_dec_thread): Update.
4217 * dwarf2loc.c (call_site_to_target_addr): Update.
4218 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4219 * eval.c (evaluate_subexp_standard): Update.
4220 * findvar.c (struct minsym_lookup_data) <result>: Change type
4221 to bound_minimal_symbol.
4223 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4224 * frame.c (inside_main_func): Update.
4225 * frv-tdep.c (frv_frame_this_id): Update.
4226 * gcore.c (call_target_sbrk): Update.
4227 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4228 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4230 * go-lang.c (go_main_name): Update.
4231 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4232 (hppa_hpux_find_import_stub_for_addr): Update.
4233 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4234 Update. Change return type.
4235 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4237 * jit.c (jit_breakpoint_re_set_internal): Update.
4238 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4240 * linux-nat.c (get_signo): Update.
4241 * linux-thread-db.c (inferior_has_bug): Update
4242 * m32c-tdep.c (m32c_return_value)
4243 (m32c_m16c_address_to_pointer): Update.
4244 * m32r-tdep.c (m32r_frame_this_id): Update.
4245 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4246 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4247 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4248 lookup_minimal_symbol. Change return type.
4249 (lookup_minimal_symbol): Remove.
4250 (lookup_bound_minimal_symbol): Update.
4251 (lookup_minimal_symbol_text): Change return type.
4252 (lookup_minimal_symbol_solib_trampoline): Change return type.
4253 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4254 (lookup_minimal_symbol_solib_trampoline): Change return type.
4255 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4256 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4257 (value_nsstring, find_imps): Update.
4258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4259 * p-lang.c (pascal_main_name): Update.
4260 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4261 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4262 * proc-service.c (ps_pglobal_lookup): Update.
4263 * ravenscar-thread.c (get_running_thread_msymbol): Change
4265 (has_ravenscar_runtime, get_running_thread_id): Update.
4266 * remote.c (remote_check_symbols): Update.
4267 * sol-thread.c (ps_pglobal_lookup): Update.
4268 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4269 * solib-dsbt.c (lm_base): Update.
4270 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4272 * solib-irix.c (locate_base): Update.
4273 * solib-som.c (som_solib_create_inferior_hook)
4274 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4276 * solib-spu.c (spu_enable_break): Update.
4277 * solib-svr4.c (elf_locate_base, enable_break): Update.
4278 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4279 (flush_ea_cache): Update.
4280 * stabsread.c (define_symbol): Update.
4281 * symfile.c (simple_read_overlay_table): Update.
4282 * symtab.c (find_pc_sect_line): Update.
4283 * tracepoint.c (scope_info): Update.
4284 * tui-disasm.c (tui_get_begin_asm_address): Update.
4285 * value.c (value_static_field): Update.
4287 2014-02-26 Tom Tromey <tromey@redhat.com>
4289 * minsyms.c (prim_record_minimal_symbol_full): Use
4290 SET_MSYMBOL_VALUE_ADDRESS.
4291 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4292 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4293 SET_MSYMBOL_VALUE_ADDRESS.
4294 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4295 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4297 2014-02-26 Tom Tromey <tromey@redhat.com>
4299 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4300 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4301 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4302 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4303 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4304 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4305 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4306 * ada-lang.c (ada_main_name): Update.
4307 (ada_lookup_simple_minsym): Update.
4308 (ada_make_symbol_completion_list): Update.
4309 (ada_add_standard_exceptions): Update.
4310 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4311 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4312 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4313 * arm-tdep.c (skip_prologue_function): Update.
4314 (arm_skip_stack_protector, arm_skip_stub): Update.
4315 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4316 (arm_wince_skip_main_prologue): Update.
4317 * auxv.c (ld_so_xfer_auxv): Update.
4318 * avr-tdep.c (avr_scan_prologue): Update.
4319 * ax-gdb.c (gen_var_ref): Update.
4320 * block.c (call_site_for_pc): Update.
4321 * blockframe.c (get_pc_function_start): Update.
4322 (find_pc_partial_function_gnu_ifunc): Update.
4323 * breakpoint.c (create_overlay_event_breakpoint): Update.
4324 (create_longjmp_master_breakpoint): Update.
4325 (create_std_terminate_master_breakpoint): Update.
4326 (create_exception_master_breakpoint): Update.
4327 (resolve_sal_pc): Update.
4328 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4329 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4331 * c-valprint.c (c_val_print): Update.
4332 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4333 * coffread.c (coff_symfile_read): Update.
4334 * common/agent.c (agent_look_up_symbols): Update.
4335 * dbxread.c (find_stab_function_addr): Update.
4336 (end_psymtab): Update.
4337 * dwarf2loc.c (call_site_to_target_addr): Update.
4338 (func_verify_no_selftailcall): Update.
4339 (tailcall_dump): Update.
4340 (call_site_find_chain_1): Update.
4341 (dwarf_expr_reg_to_entry_parameter): Update.
4342 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4343 (elf_gnu_ifunc_resolve_by_got): Update.
4344 * f-valprint.c (info_common_command): Update.
4345 * findvar.c (read_var_value): Update.
4346 * frame.c (get_prev_frame_1): Update.
4347 (inside_main_func): Update.
4348 * frv-tdep.c (frv_skip_main_prologue): Update.
4349 (frv_frame_this_id): Update.
4350 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4351 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4352 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4353 (gnuv3_skip_trampoline): Update.
4354 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4355 (hppa64_hpux_in_solib_call_trampoline): Update.
4356 (hppa_hpux_skip_trampoline_code): Update.
4357 (hppa64_hpux_search_dummy_call_sequence): Update.
4358 (hppa_hpux_find_import_stub_for_addr): Update.
4359 (hppa_hpux_find_dummy_bpaddr): Update.
4360 * hppa-tdep.c (hppa_symbol_address)
4361 (hppa_lookup_stub_minimal_symbol): Update.
4362 * i386-tdep.c (i386_skip_main_prologue): Update.
4363 (i386_pe_skip_trampoline_code): Update.
4364 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4365 * infcall.c (get_function_name): Update.
4366 * infcmd.c (until_next_command): Update.
4367 * jit.c (jit_breakpoint_re_set_internal): Update.
4368 (jit_inferior_init): Update.
4369 * linespec.c (minsym_found): Update.
4370 (add_minsym): Update.
4371 * linux-fork.c (info_checkpoints_command): Update.
4372 * linux-nat.c (get_signo): Update.
4373 * linux-thread-db.c (inferior_has_bug): Update.
4374 * m32c-tdep.c (m32c_return_value): Update.
4375 (m32c_m16c_address_to_pointer): Update.
4376 (m32c_m16c_pointer_to_address): Update.
4377 * m32r-tdep.c (m32r_frame_this_id): Update.
4378 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4379 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4380 * maint.c (maintenance_translate_address): Update.
4381 * minsyms.c (add_minsym_to_hash_table): Update.
4382 (add_minsym_to_demangled_hash_table): Update.
4383 (msymbol_objfile): Update.
4384 (lookup_minimal_symbol): Update.
4385 (iterate_over_minimal_symbols): Update.
4386 (lookup_minimal_symbol_text): Update.
4387 (lookup_minimal_symbol_by_pc_name): Update.
4388 (lookup_minimal_symbol_solib_trampoline): Update.
4389 (lookup_minimal_symbol_by_pc_section_1): Update.
4390 (lookup_minimal_symbol_and_objfile): Update.
4391 (prim_record_minimal_symbol_full): Update.
4392 (compare_minimal_symbols): Update.
4393 (compact_minimal_symbols): Update.
4394 (build_minimal_symbol_hash_tables): Update.
4395 (install_minimal_symbols): Update.
4396 (terminate_minimal_symbol_table): Update.
4397 (find_solib_trampoline_target): Update.
4398 (minimal_symbol_upper_bound): Update.
4399 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4400 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4401 (mips_skip_pic_trampoline_code): Update.
4402 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4403 * objc-lang.c (selectors_info): Update.
4404 (classes_info): Update.
4405 (find_methods): Update.
4406 (find_imps): Update.
4407 (find_objc_msgsend): Update.
4408 * objfiles.c (objfile_relocate1): Update.
4409 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4410 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4411 * p-valprint.c (pascal_val_print): Update.
4412 * parse.c (write_exp_msymbol): Update.
4413 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4414 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4415 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4416 * printcmd.c (build_address_symbolic): Update.
4418 (address_info): Update.
4419 * proc-service.c (ps_pglobal_lookup): Update.
4420 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4421 (find_pc_sect_psymtab): Update.
4422 * python/py-framefilter.c (py_print_frame): Update.
4423 * ravenscar-thread.c (get_running_thread_id): Update.
4424 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4426 * remote.c (remote_check_symbols): Update.
4427 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4428 (rs6000_skip_trampoline_code): Update.
4429 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4430 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4431 * solib-dsbt.c (lm_base): Update.
4432 * solib-frv.c (lm_base): Update.
4434 * solib-irix.c (locate_base): Update.
4435 * solib-som.c (som_solib_create_inferior_hook): Update.
4436 (som_solib_desire_dynamic_linker_symbols): Update.
4437 (link_map_start): Update.
4438 * solib-spu.c (spu_enable_break): Update.
4439 (ocl_enable_break): Update.
4440 * solib-svr4.c (elf_locate_base): Update.
4441 (enable_break): Update.
4442 * spu-tdep.c (spu_get_overlay_table): Update.
4443 (spu_catch_start): Update.
4444 (flush_ea_cache): Update.
4445 * stabsread.c (define_symbol): Update.
4446 (scan_file_globals): Update.
4447 * stack.c (find_frame_funname): Update.
4448 (frame_info): Update.
4449 * symfile.c (simple_read_overlay_table): Update.
4450 (simple_overlay_update): Update.
4451 * symmisc.c (dump_msymbols): Update.
4452 * symtab.c (fixup_section): Update.
4453 (find_pc_sect_line): Update.
4454 (skip_prologue_sal): Update.
4455 (search_symbols): Update.
4456 (print_msymbol_info): Update.
4457 (rbreak_command): Update.
4458 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4459 (completion_list_objc_symbol): Update.
4460 (default_make_symbol_completion_list_break_on): Update.
4461 * tracepoint.c (scope_info): Update.
4462 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4463 (tui_get_begin_asm_address): Update.
4464 * valops.c (find_function_in_inferior): Update.
4465 * value.c (value_static_field): Update.
4466 (value_fn_field): Update.
4468 2014-02-26 Tom Tromey <tromey@redhat.com>
4470 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4471 bound minimal symbols. Move code that knows about minsym
4473 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4475 * minsyms.h (minimal_symbol_upper_bound): Declare.
4476 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4477 minimal_symbol_upper_bound.
4479 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4481 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4482 Use the type's name if its basic type does not have a tag.
4484 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4486 * dwarf2read.c (read_subrange_type): Add comment.
4488 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4490 * dwarf2read.c (update_enumeration_type_from_children): New
4491 function, mostly extracted from process_structure_scope.
4492 (read_enumeration_type): Call update_enumeration_type_from_children.
4493 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4494 and flag_flag_enum fields.
4496 2014-02-26 Pedro Alves <palves@redhat.com>
4498 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4499 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4500 to_xfer_partial method.
4502 2014-02-26 Pedro Alves <palves@redhat.com>
4504 * target.c (complete_target_initialization): Don't install
4505 default_xfer_partial as to_xfer_partial hook.
4507 (update_current_target): Don't INHERIT nor de_fault
4508 deprecated_xfer_memory. Delete de_fault macro.
4509 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4510 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4511 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4514 2014-02-26 Pedro Alves <palves@redhat.com>
4516 * go32-nat.c (my_write_child): New function.
4517 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4518 (go32_xfer_partial): New function.
4519 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4520 Instead install a to_xfer_partial hook.
4522 2014-02-26 Pedro Alves <palves@redhat.com>
4524 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4525 to_xfer_partial helper. Rewrite.
4526 (procfs_xfer_partial): New function.
4527 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4528 Install a to_xfer_partial hook.
4530 2014-02-26 Pedro Alves <palves@redhat.com>
4532 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4533 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4534 (m32r_xfer_partial): New function.
4535 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4536 Install a to_xfer_partial hook.
4538 2014-02-26 Pedro Alves <palves@redhat.com>
4540 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4542 (mips_xfer_partial): New function.
4543 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4544 hook. Install a to_xfer_partial hook.
4546 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4548 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4549 * gdbtypes.c (create_array_type_with_stride): New function,
4550 renaming create_array_type, but with an added parameter
4551 called "bit_stride".
4552 (create_array_type): Re-implement using
4553 create_array_type_with_stride.
4554 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4555 and DW_AT_bit_stride attributes.
4557 2014-02-26 Pedro Alves <palves@redhat.com>
4559 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4560 task-specific breakpoints.
4562 2014-02-25 Pedro Alves <palves@redhat.com>
4564 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4565 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4567 2014-02-25 Stan Shebs <stan@codesourcery.com>
4569 * defs.h: Annotate comments for Doxygen.
4571 2014-02-25 Tom Tromey <tromey@redhat.com>
4573 * target.h (target_ignore): Don't declare.
4574 * target.c (target_ignore): Remove.
4576 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * auto-load.c (auto_load_objfile_script_1): Change filename to
4582 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4584 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4585 documentation. Adjust prototype to match the target_ops
4586 to_xfer_partial method. Adjust implementation accordingly.
4588 2014-02-25 Hui Zhu <hui@codesourcery.com>
4590 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4593 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4595 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4596 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4597 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4598 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4599 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4600 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4601 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4602 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4604 (rl78_register_type): Use a data pointer type for SP and
4605 new pseudo registers mentioned above. Use a 16 bit integer
4606 type for all other register pairs.
4607 (rl78_register_name, rl78_g10_register_name): Update for
4608 new pseudo registers.
4609 (rl78_pseudo_register_read): Likewise.
4610 (rl78_pseudo_register_write): Likewise.
4611 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4612 to the newly added pseudo registers.
4614 2014-02-24 Doug Evans <dje@google.com>
4616 * value.c (record_latest_value): Fix comment.
4617 * printcmd.c (print_command_1): Remove code to handle -1 return from
4618 record_latest_value.
4620 2014-02-24 Pedro Alves <palves@redhat.com>
4622 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4623 deprecated_xfer_memory hook.
4624 (procfs_xfer_partial): Call procfs_xfer_memory instead
4625 of the deprecated_xfer_memory target hook.
4626 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4629 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4631 * windows-nat.c (windows_xfer_shared_libraries): Return
4632 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4633 requested object is TARGET_OBJECT_LIBRARIES.
4635 2014-02-24 Yao Qi <yao@codesourcery.com>
4637 * target.h (enum target_xfer_status)
4638 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4639 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4641 * corefile.c (memory_error_message): User updated.
4642 * exec.c (section_table_read_available_memory): Likewise.
4643 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4644 * target.c (target_xfer_status_to_string): Likewise.
4645 (raw_memory_xfer_partial): Likewise.
4646 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4647 * valops.c (read_value_memory): Likewise.
4648 * exec.h: Update comments.
4650 2014-02-24 Yao Qi <yao@codesourcery.com>
4652 * target.c (target_xfer_status_to_string): Rename argument err
4654 * target.h (target_xfer_status_to_string): Update declaration.
4655 Replace target_xfer_error_to_string with
4656 target_xfer_status_to_string in comment.
4658 2014-02-24 Yao Qi <yao@codesourcery.com>
4660 * mips-linux-nat.c (super_close): Update its type.
4661 (mips_linux_close): Pass 'self' to super_close.
4663 2014-02-24 Yao Qi <yao@codesourcery.com>
4665 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4666 * corefile.c (read_memory): Adjusted.
4667 * target.c (target_write_with_progress): Adjusted.
4669 2014-02-23 Yao Qi <yao@codesourcery.com>
4673 2013-10-25 Yao Qi <yao@codesourcery.com>
4675 * remote.c (remote_traceframe_info): Return early if
4676 traceframe is not selected.
4678 2013-07-19 Yao Qi <yao@codesourcery.com>
4680 * target.c (update_current_target): Change the default action
4681 of 'to_traceframe_info' from tcomplain to return_zero.
4682 * target.h (struct target_ops) <to_traceframe_info>: Add more
4685 2014-02-23 Yao Qi <yao@codesourcery.com>
4687 * valops.c (read_value_memory): Rewrite it. Call
4688 target_xfer_partial in a loop.
4689 * exec.h (section_table_available_memory): Remove declaration.
4690 Move comments to ...
4691 * exec.c (section_table_available_memory): ... here. Make it
4694 2014-02-23 Yao Qi <yao@codesourcery.com>
4696 * exec.c (section_table_read_available_memory): New function.
4697 * exec.h (section_table_read_available_memory): Declare.
4698 * ctf.c (ctf_xfer_partial): Call
4699 section_table_read_available_memory.
4700 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4702 2014-02-23 Yao Qi <yao@codesourcery.com>
4704 * ctf.c (ctf_xfer_partial): Move code to ...
4705 * exec.c (exec_read_partial_read_only): ... it. New function.
4706 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4707 * tracefile.c: Include "exec.h".
4708 * exec.h (exec_read_partial_read_only): Declare.
4710 2014-02-23 Yao Qi <yao@codesourcery.com>
4712 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4713 (tfile_has_memory): Remove.
4714 (init_tfile_ops): Don't set fields to_has_all_memory and
4715 to_has_memory of tfile_ops.
4716 * tracefile.c (tracefile_has_all_memory): New function.
4717 (tracefile_has_memory): New function.
4718 (init_tracefile_ops): Initialize fields to_has_all_memory and
4719 to_has_memory of 'ops'.
4721 2014-02-23 Yao Qi <yao@codesourcery.com>
4723 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4724 (ctf_thread_alive, ctf_get_trace_status): Remove.
4725 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4727 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4728 (tfile_has_stack, tfile_has_registers): Remove.
4729 (tfile_thread_alive): Remove.
4730 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4732 * tracefile.c (tracefile_has_stack): New function.
4733 (tracefile_has_registers): New function.
4734 (tracefile_thread_alive): New function.
4735 (tracefile_get_trace_status): New function.
4736 (init_tracefile_ops): New function.
4737 * tracefile.h (init_tracefile_ops): Declare.
4739 2014-02-23 Yao Qi <yao@codesourcery.com>
4741 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4742 (O_LARGEFILE): Likewise.
4743 (tfile_ops): Likewise.
4744 (TRACE_HEADER_SIZE): Likewise.
4745 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4746 (cur_data_size): Likewise.
4747 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4748 (tfile_close, tfile_files_info): Likewise.
4749 (tfile_get_trace_status): Likewise.
4750 (tfile_get_tracepoint_status): Likewise.
4751 (tfile_get_traceframe_address): Likewise.
4752 (tfile_trace_find, match_blocktype): Likewise.
4753 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4754 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4755 (tfile_get_trace_state_variable_value): Likewise.
4756 (tfile_has_all_memory, tfile_has_memory): Likewise.
4757 (tfile_has_stack, tfile_has_registers): Likewise.
4758 (tfile_thread_alive, build_traceframe_info): Likewise.
4759 (tfile_traceframe_info, init_tfile_ops): Likewise.
4760 (_initialize_tracepoint): Don't call init_tfile_ops
4761 and add_target_with_completer.
4762 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4763 exec.h, completer.h and filenames.h.
4764 (_initialize_tracefile_tfile): New function.
4766 2014-02-23 Yao Qi <yao@codesourcery.com>
4768 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4770 (HFILES_NO_SRCDIR): Add tracefile.h.
4771 * ctf.c: Include "tracefile.h".
4772 * tracefile.h: New file.
4773 * tracefile.c: New file
4774 * tracefile-tfile.c: New file.
4775 * tracepoint.c: Include "tracefile.h".
4776 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4777 (stop_reason_names): Add const.
4778 (trace_file_writer_xfree): Move it to tracefile.c.
4779 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4780 (trace_save_ctf): Likewise.
4781 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4782 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4783 (tfile_write_header, tfile_write_regblock_type): Likewise.
4784 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4785 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4786 (tfile_write_raw_data, tfile_end): Likewise.
4787 (tfile_trace_file_writer_new): Likewise.
4788 (free_uploaded_tp): Make it extern.
4789 (free_uploaded_tsv): Make it extern.
4790 (_initialize_tracepoint): Move code to register command 'tsave'
4792 * tracepoint.h (stop_reason_names): Declare.
4793 (struct trace_frame_write_ops): Move it to tracefile.h.
4794 (struct trace_file_write_ops): Likewise.
4795 (struct trace_file_writer): Likewise.
4796 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4798 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4803 (get_cores_used_by_process): New parameter num_cores, use it.
4804 (linux_xfer_osdata_processes): Pass num_cores to it.
4805 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4808 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4810 * target.c (memory_xfer_partial): Fix length arg in call to
4811 breakpoint_xfer_memory.
4813 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4816 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4817 number comes after the + or - signs. Adjust length of register
4818 name to be extracted.
4820 2014-02-20 Tom Tromey <tromey@redhat.com>
4822 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4823 (ada_varobj_ops): Mark "extern".
4825 2014-02-20 Tom Tromey <tromey@redhat.com>
4827 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4829 2014-02-20 Doug Evans <xdje42@gmail.com>
4831 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4832 All callers updated.
4833 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4834 All callers updated.
4835 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4836 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4838 2014-02-20 lin zuojian <manjian2006@gmail.com>
4839 Joel Brobecker <brobecker@adacore.com>
4840 Doug Evans <xdje42@gmail.com>
4843 * dwarf2read.c (struct die_info): New member in_process.
4844 (reset_die_in_process): New function.
4845 (process_die): Set it at the start, reset when returning.
4846 (inherit_abstract_dies): Only call process_die if origin_child_die
4847 not already being processed.
4849 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4851 * windows-nat.c (handle_unload_dll): Add function documentation.
4852 (do_initial_windows_stuff): Add comment explaining why we wait
4853 until after inferior initialization has finished before
4854 processing all DLLs.
4856 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4858 * windows-nat.c (get_module_name): Delete.
4859 (windows_get_exec_module_filename): New function, mostly
4860 inspired from get_module_name.
4861 (windows_pid_to_exec_file): Replace call to get_module_name
4862 by call to windows_get_exec_module_filename.
4864 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4866 * windows-nat.c (handle_load_dll): Rewrite this function's
4867 introductory comment. Remove code using get_module_name
4868 to get the DLL's name.
4870 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4872 * windows-nat.c (get_windows_debug_event): Ignore
4873 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4874 if windows_initialization_done == 0.
4875 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4876 Adjust implementation to always load all DLLs.
4877 (do_initial_windows_stuff): Replace call to
4878 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4880 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4882 * windows-nat.c (_initialize_windows_nat): Deprecate the
4883 "dll-symbols" command. Turn the "add-shared-symbol-files"
4884 and "assf" aliases into commands, and deprecate them as well.
4885 * NEWS: Add entry explaining that "dll-symbols" and its two
4886 aliases are now deprecated.
4888 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4890 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4891 new-line in debug string. Remove trailing spaces.
4893 2014-02-19 Stan Shebs <stan@codesourcery.com>
4895 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4897 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4899 * NEWS: Add entry for the new feature
4900 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4903 2014-02-19 Stan Shebs <stan@codesourcery.com>
4905 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4907 2014-02-19 Pedro Alves <palves@redhat.com>
4909 * common/ptid.h (struct ptid): Mention that process_stratum
4910 targets should prefer ptid.lwp.
4912 2014-02-19 Pedro Alves <palves@redhat.com>
4914 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4915 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4916 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4917 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4918 store remote thread ids rather than ptid.tid.
4919 (_initialize_remote): Adjust.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target.c (target_get_unwinder): Rewrite.
4924 (target_get_tailcall_unwinder): Rewrite.
4925 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4926 (record_btrace_to_get_tailcall_unwinder): New function.
4927 (init_record_btrace_ops): Update.
4928 * target.h (struct target_ops) <to_get_unwinder,
4929 to_get_tailcall_unwinder>: Now function pointers. Use
4930 TARGET_DEFAULT_RETURN.
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4936 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4942 * target-delegates.c: Rebuild.
4943 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4944 TARGET_DEFAULT_FUNC.
4945 * target.c (default_target_decr_pc_after_break): Rename from
4946 forward_target_decr_pc_after_break. Simplify.
4947 (target_decr_pc_after_break): Rely on delegation.
4949 2014-02-19 Tom Tromey <tromey@redhat.com>
4951 * target.c (update_current_target): Do not INHERIT to_doc or
4952 to_magic. Do not de_fault to_open or to_close.
4954 2014-02-19 Tom Tromey <tromey@redhat.com>
4956 * gcore.h (objfile_find_memory_regions): Declare.
4957 * gcore.c (objfile_find_memory_regions): No longer static. Add
4959 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4960 * exec.c: Include gcore.h.
4961 (exec_set_find_memory_regions): Remove.
4962 (exec_find_memory_regions): Remove.
4963 (exec_do_find_memory_regions): Remove.
4964 (init_exec_ops): Update.
4965 * defs.h (exec_set_find_memory_regions): Remove.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: Rebuild.
4970 * target.h (struct target_ops) <to_extra_thread_info,
4971 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4972 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4973 not 0, in TARGET_DEFAULT_RETURN.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target.c (complete_target_initialization): Remove casts. Use
4978 return_zero_has_execution.
4979 (return_zero): Add "ignore" argument.
4980 (return_zero_has_execution): New function.
4981 (init_dummy_target): Remove casts. Use
4982 return_zero_has_execution.
4984 2014-02-19 Tom Tromey <tromey@redhat.com>
4986 * target.c (update_current_target): Update comments. Do not
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4993 * corelow.c (core_read_description): Delegate when needed.
4994 * remote.c (remote_read_description): Delegate when needed.
4995 * target-delegates.c: Rebuild.
4996 * target.c (target_read_description): Rewrite.
4997 * target.h (struct target_ops) <to_read_description>: Update
4998 comment. Use TARGET_DEFAULT_RETURN.
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * target-delegates.c: Rebuild.
5003 * target.c (update_current_target): Don't inherit or default
5005 (find_default_run_target): Check against delegate_can_run.
5006 * target.h (struct target_ops) <to_can_run>: Use
5007 TARGET_DEFAULT_RETURN.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target-delegates.c: Rebuild.
5012 * target.c (target_disconnect): Unconditionally delegate.
5013 * target.h (struct target_ops) <to_disconnect>: Use
5014 TARGET_DEFAULT_NORETURN.
5016 2014-02-19 Tom Tromey <tromey@redhat.com>
5018 * record.c (record_stop): Unconditionally delegate.
5019 * target-delegates.c: Rebuild.
5020 * target.c (target_stop_recording): Unconditionally delegate.
5021 * target.h (struct target_ops) <to_stop_recording>: Use
5022 TARGET_DEFAULT_IGNORE.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target-delegates.c: Rebuild.
5027 * target.c (target_enable_btrace): Unconditionally delegate.
5028 * target.h (struct target_ops) <to_enable_btrace>: Use
5029 TARGET_DEFAULT_NORETURN.
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target-delegates.c: Rebuild.
5034 * target.c (target_read_btrace): Unconditionally delegate.
5035 * target.h (struct target_ops) <to_read_btrace>: Use
5036 TARGET_DEFAULT_NORETURN.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target-delegates.c: Rebuild.
5041 * target.c (target_teardown_btrace): Unconditionally delegate.
5042 * target.h (struct target_ops) <to_teardown_btrace>: Use
5043 TARGET_DEFAULT_NORETURN.
5045 2014-02-19 Tom Tromey <tromey@redhat.com>
5047 * target-delegates.c: Rebuild.
5048 * target.c (target_disable_btrace): Unconditionally delegate.
5049 * target.h (struct target_ops) <to_disable_btrace>: Use
5050 TARGET_DEFAULT_NORETURN.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (default_search_memory): New function.
5056 (simple_search_memory): Update comment.
5057 (target_search_memory): Unconditionally delegate.
5058 * target.h (struct target_ops) <to_search_memory>: Use
5059 TARGET_DEFAULT_FUNC.
5061 2014-02-19 Tom Tromey <tromey@redhat.com>
5063 * auxv.c (default_auxv_parse): No longer static.
5064 (target_auxv_parse): Unconditionally delegate.
5065 * auxv.h (default_auxv_parse): Declare.
5066 * target-delegates.c: Rebuild.
5067 * target.c: Include auxv.h.
5068 * target.h (struct target_ops) <to_auxv_parse>: Use
5069 TARGET_DEFAULT_FUNC.
5071 2014-02-19 Tom Tromey <tromey@redhat.com>
5073 * target-delegates.c: Rebuild.
5074 * target.c (target_memory_map): Unconditionally delegate.
5075 * target.h (struct target_ops) <to_memory_map>: Use
5076 TARGET_DEFAULT_RETURN.
5078 2014-02-19 Tom Tromey <tromey@redhat.com>
5080 * target-delegates.c: Rebuild.
5081 * target.c (target_thread_alive): Unconditionally delegate.
5082 * target.h (struct target_ops) <to_thread_alive>: Use
5083 TARGET_DEFAULT_RETURN.
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target-delegates.c: Rebuild.
5088 * target.c (target_save_record): Unconditionally delegate.
5089 * target.h (struct target_ops) <to_save_record>: Use
5090 TARGET_DEFAULT_NORETURN.
5092 2014-02-19 Tom Tromey <tromey@redhat.com>
5094 * target-delegates.c: Rebuild.
5095 * target.c (target_delete_record): Unconditionally delegate.
5096 * target.h (struct target_ops) <to_delete_record>: Use
5097 TARGET_DEFAULT_NORETURN.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target-delegates.c: Rebuild.
5102 * target.c (target_record_is_replaying): Unconditionally
5104 * target.h (struct target_ops) <to_record_is_replaying>: Use
5105 TARGET_DEFAULT_RETURN.
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target-delegates.c: Rebuild.
5110 * target.c (target_goto_record_begin): Unconditionally delegate.
5111 * target.h (struct target_ops) <to_goto_record_begin>: Use
5112 TARGET_DEFAULT_NORETURN.
5114 2014-02-19 Tom Tromey <tromey@redhat.com>
5116 * target-delegates.c: Rebuild.
5117 * target.c (target_goto_record_end): Unconditionally delegate.
5118 * target.h (struct target_ops) <to_goto_record_end>: Use
5119 TARGET_DEFAULT_NORETURN.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (target_goto_record): Unconditionally delegate.
5125 * target.h (struct target_ops) <to_goto_record>: Use
5126 TARGET_DEFAULT_NORETURN.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (target_insn_history): Unconditionally delegate.
5132 * target.h (struct target_ops) <to_insn_history>: Use
5133 TARGET_DEFAULT_NORETURN.
5135 2014-02-19 Tom Tromey <tromey@redhat.com>
5137 * target-delegates.c: Rebuild.
5138 * target.c (target_insn_history_from): Unconditionally delegate.
5139 * target.h (struct target_ops) <to_insn_history_from>: Use
5140 TARGET_DEFAULT_NORETURN.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (target_insn_history_range): Unconditionally delegate.
5146 * target.h (struct target_ops) <to_insn_history_range>: Use
5147 TARGET_DEFAULT_NORETURN.
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (target_call_history): Unconditionally delegate.
5153 * target.h (struct target_ops) <to_call_history>: Use
5154 TARGET_DEFAULT_NORETURN.
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target-delegates.c: Rebuild.
5159 * target.c (target_call_history_from): Unconditionally delegate.
5160 * target.h (struct target_ops) <to_call_history_from>: Use
5161 TARGET_DEFAULT_NORETURN.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * target-delegates.c: Rebuild.
5166 * target.c (target_call_history_range): Unconditionally delegate.
5167 * target.h (struct target_ops) <to_call_history_range>: Use
5168 TARGET_DEFAULT_NORETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (target_verify_memory): Unconditionally delegate.
5174 * target.h (struct target_ops) <to_verify_memory>: Use
5175 TARGET_DEFAULT_NORETURN.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target-delegates.c: Rebuild.
5180 * target.c (target_core_of_thread): Unconditionally delegate.
5181 * target.h (struct target_ops) <to_core_of_thread>: Use
5182 TARGET_DEFAULT_RETURN.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (target_flash_done): Unconditionally delegate.
5188 * target.h (struct target_ops) <to_flash_done>: Use
5189 TARGET_DEFAULT_NORETURN.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target-delegates.c: Rebuild.
5194 * target.c (target_flash_erase): Unconditionally delegate.
5195 * target.h (struct target_ops) <to_flash_erase>: Use
5196 TARGET_DEFAULT_NORETURN.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (target_get_section_table): Unconditionally delegate.
5202 * target.h (struct target_ops) <to_get_section_table>: Use
5203 TARGET_DEFAULT_RETURN.
5205 2014-02-19 Tom Tromey <tromey@redhat.com>
5207 * target-delegates.c: Rebuild.
5208 * target.c (target_pid_to_str): Unconditionally delegate.
5209 (init_dummy_target): Don't initialize to_pid_to_str.
5210 (default_pid_to_str): Rename from dummy_pid_to_str.
5211 * target.h (struct target_ops) <to_pid_to_str>: Use
5212 TARGET_DEFAULT_FUNC.
5214 2014-02-19 Tom Tromey <tromey@redhat.com>
5216 * target-delegates.c: Rebuild.
5217 * target.c (target_find_new_threads): Unconditionally delegate.
5218 * target.h (struct target_ops) <to_find_new_threads>: Use
5219 TARGET_DEFAULT_RETURN.
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * target-delegates.c: Rebuild.
5224 * target.c (target_program_signals): Unconditionally delegate.
5225 * target.h (struct target_ops) <to_program_signals>: Use
5226 TARGET_DEFAULT_IGNORE.
5228 2014-02-19 Tom Tromey <tromey@redhat.com>
5230 * target-delegates.c: Rebuild.
5231 * target.c (target_pass_signals): Unconditionally delegate.
5232 * target.h (struct target_ops) <to_pass_signals>: Use
5233 TARGET_DEFAULT_IGNORE.
5235 2014-02-19 Tom Tromey <tromey@redhat.com>
5237 * target-delegates.c: Rebuild.
5238 * target.c (default_mourn_inferior): New function.
5239 (target_mourn_inferior): Unconditionally delegate.
5240 * target.h (struct target_ops) <to_mourn_inferior>: Use
5241 TARGET_DEFAULT_FUNC.
5243 2014-02-19 Tom Tromey <tromey@redhat.com>
5245 * target-delegates.c: Rebuild.
5246 * target.c (default_follow_fork): New function.
5247 (target_follow_fork): Unconditionally delegate.
5248 * target.h (struct target_ops) <to_follow_fork>: Use
5249 TARGET_DEFAULT_FUNC.
5251 2014-02-19 Tom Tromey <tromey@redhat.com>
5253 * target-delegates.c: Rebuild.
5254 * target.c (target_kill): Unconditionally delegate.
5255 * target.h (struct target_ops) <to_kill>: Use
5256 TARGET_DEFAULT_NORETURN.
5258 2014-02-19 Tom Tromey <tromey@redhat.com>
5260 * target-delegates.c: Rebuild.
5261 * target.c (target_masked_watch_num_registers): Unconditionally
5263 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5264 Use TARGET_DEFAULT_RETURN.
5266 2014-02-19 Tom Tromey <tromey@redhat.com>
5268 * target-delegates.c: Rebuild.
5269 * target.c (target_remove_mask_watchpoint): Unconditionally
5271 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5272 TARGET_DEFAULT_RETURN.
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * target-delegates.c: Rebuild.
5277 * target.c (target_insert_mask_watchpoint): Unconditionally
5279 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5280 TARGET_DEFAULT_RETURN.
5282 2014-02-19 Tom Tromey <tromey@redhat.com>
5284 * target-delegates.c: Rebuild.
5285 * target.c (target_ranged_break_num_registers): Unconditionally
5287 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5288 Use TARGET_DEFAULT_RETURN.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target-delegates.c: Rebuild.
5293 * target.c (target_fetch_registers): Unconditionally delegate.
5294 * target.h (struct target_ops) <to_fetch_registers>: Use
5295 TARGET_DEFAULT_NORETURN.
5297 2014-02-19 Tom Tromey <tromey@redhat.com>
5299 * target-delegates.c: Rebuild.
5300 * target.c (update_current_target): Don't inherit or default
5302 * target.h (struct target_ops) <to_stop>: Use
5303 TARGET_DEFAULT_IGNORE.
5305 2014-02-19 Tom Tromey <tromey@redhat.com>
5307 * target-delegates.c: Rebuild.
5308 * target.c (update_current_target): Don't inherit or default
5309 to_can_run_breakpoint_commands.
5310 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5311 Use TARGET_DEFAULT_RETURN.
5313 2014-02-19 Tom Tromey <tromey@redhat.com>
5315 * target-delegates.c: Rebuild.
5316 * target.c (update_current_target): Don't inherit or default
5317 to_supports_evaluation_of_breakpoint_conditions.
5318 * target.h (struct target_ops)
5319 <to_supports_evaluation_of_breakpoint_conditions>: Use
5320 TARGET_DEFAULT_RETURN.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target-delegates.c: Rebuild.
5325 * target.c (update_current_target): Don't inherit or default
5326 to_augmented_libraries_svr4_read.
5327 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5328 Use TARGET_DEFAULT_RETURN.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target-delegates.c: Rebuild.
5333 * target.c (update_current_target): Don't inherit or default
5335 * target.h (struct target_ops) <to_can_use_agent>: Use
5336 TARGET_DEFAULT_RETURN.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target-delegates.c: Rebuild.
5341 * target.c (update_current_target): Don't inherit or default
5343 * target.h (struct target_ops) <to_use_agent>: Use
5344 TARGET_DEFAULT_NORETURN.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target-delegates.c: Rebuild.
5349 * target.c (update_current_target): Don't inherit or default
5351 (return_null): Remove.
5352 * target.h (struct target_ops) <to_traceframe_info>: Use
5353 TARGET_DEFAULT_RETURN.
5355 2014-02-19 Tom Tromey <tromey@redhat.com>
5357 * target-delegates.c: Rebuild.
5358 * target.c (update_current_target): Don't inherit or default
5359 to_static_tracepoint_markers_by_strid.
5360 * target.h (struct target_ops)
5361 <to_static_tracepoint_markers_by_strid>: Use
5362 TARGET_DEFAULT_NORETURN.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (update_current_target): Don't inherit or default
5368 to_static_tracepoint_marker_at.
5369 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5370 Use TARGET_DEFAULT_RETURN.
5372 2014-02-19 Tom Tromey <tromey@redhat.com>
5374 * target-delegates.c: Rebuild.
5375 * target.c (update_current_target): Don't inherit or default
5377 * target.h (struct target_ops) <to_set_permissions>: Use
5378 TARGET_DEFAULT_IGNORE.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * target-delegates.c: Rebuild.
5383 * target.c (update_current_target): Don't inherit or default
5385 * target.h (struct target_ops) <to_get_tib_address>: Use
5386 TARGET_DEFAULT_NORETURN.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target-delegates.c: Rebuild.
5391 * target.c (update_current_target): Don't inherit or default
5393 * target.h (struct target_ops) <to_set_trace_notes>: Use
5394 TARGET_DEFAULT_RETURN.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target-delegates.c: Rebuild.
5399 * target.c (update_current_target): Don't initialize
5400 to_set_trace_buffer_size.
5401 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5402 TARGET_DEFAULT_IGNORE.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target-delegates.c: Rebuild.
5407 * target.c (update_current_target): Don't inherit or default
5408 to_set_circular_trace_buffer.
5409 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5410 TARGET_DEFAULT_IGNORE.
5412 2014-02-19 Tom Tromey <tromey@redhat.com>
5414 * target-delegates.c: Rebuild.
5415 * target.c (update_current_target): Don't inherit or default
5416 to_set_disconnected_tracing.
5417 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5418 TARGET_DEFAULT_IGNORE.
5420 2014-02-19 Tom Tromey <tromey@redhat.com>
5422 * target-delegates.c: Rebuild.
5423 * target.c (update_current_target): Don't inherit or default
5424 to_get_min_fast_tracepoint_insn_len.
5425 (return_minus_one): Remove.
5426 * target.h (struct target_ops)
5427 <to_get_min_fast_tracepoint_insn_len>: 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
5433 to_get_raw_trace_data.
5434 * target.h (struct target_ops) <to_get_raw_trace_data>: 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_upload_trace_state_variables.
5442 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5443 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
5450 * target.h (struct target_ops) <to_upload_tracepoints>: 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_save_trace_data>: 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_get_trace_state_variable_value.
5466 * target.h (struct target_ops)
5467 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
5474 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target-delegates.c: Rebuild.
5479 * target.c (update_current_target): Don't inherit or default
5481 * target.h (struct target_ops) <to_trace_stop>: Use
5482 TARGET_DEFAULT_NORETURN.
5484 2014-02-19 Tom Tromey <tromey@redhat.com>
5486 * target-delegates.c: Rebuild.
5487 * target.c (update_current_target): Don't inherit or default
5488 to_get_tracepoint_status.
5489 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5490 TARGET_DEFAULT_NORETURN.
5492 2014-02-19 Tom Tromey <tromey@redhat.com>
5494 * target-delegates.c: Rebuild.
5495 * target.c (update_current_target): Don't inherit or default
5496 to_get_trace_status.
5497 * target.h (struct target_ops) <to_get_trace_status>: Use
5498 TARGET_DEFAULT_RETURN.
5500 2014-02-19 Tom Tromey <tromey@redhat.com>
5502 * target-delegates.c: Rebuild.
5503 * target.c (update_current_target): Don't inherit or default
5505 * target.h (struct target_ops) <to_trace_start>: Use
5506 TARGET_DEFAULT_NORETURN.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target-delegates.c: Rebuild.
5511 * target.c (update_current_target): Don't inherit or default
5512 to_trace_set_readonly_regions.
5513 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5514 Use TARGET_DEFAULT_NORETURN.
5516 2014-02-19 Tom Tromey <tromey@redhat.com>
5518 * target-delegates.c: Rebuild.
5519 * target.c (update_current_target): Don't inherit or default
5520 to_disable_tracepoint.
5521 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5522 TARGET_DEFAULT_NORETURN.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target-delegates.c: Rebuild.
5527 * target.c (update_current_target): Don't inherit or default
5528 to_enable_tracepoint.
5529 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5530 TARGET_DEFAULT_NORETURN.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target-delegates.c: Rebuild.
5535 * target.c (update_current_target): Don't inherit or default
5536 to_download_trace_state_variable.
5537 * target.h (struct target_ops) <to_download_trace_state_variable>:
5538 Use TARGET_DEFAULT_NORETURN.
5540 2014-02-19 Tom Tromey <tromey@redhat.com>
5542 * target-delegates.c: Rebuild.
5543 * target.c (update_current_target): Don't inherit or default
5544 to_can_download_tracepoint.
5545 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5546 TARGET_DEFAULT_RETURN.
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target-delegates.c: Rebuild.
5551 * target.c (update_current_target): Don't inherit or default
5552 to_download_tracepoint.
5553 * target.h (struct target_ops) <to_download_tracepoint>: Use
5554 TARGET_DEFAULT_NORETURN.
5556 2014-02-19 Tom Tromey <tromey@redhat.com>
5558 * target-delegates.c: Rebuild.
5559 * target.c (update_current_target): Don't inherit or default
5561 * target.h (struct target_ops) <to_trace_init>: Use
5562 TARGET_DEFAULT_RETURN.
5564 2014-02-19 Tom Tromey <tromey@redhat.com>
5566 * target-delegates.c: Rebuild.
5567 * target.c (update_current_target): Don't inherit or default
5568 to_supports_string_tracing.
5569 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5570 TARGET_DEFAULT_RETURN.
5572 2014-02-19 Tom Tromey <tromey@redhat.com>
5574 * target-delegates.c: Rebuild.
5575 * target.c (update_current_target): Don't inherit or default
5576 to_supports_enable_disable_tracepoint.
5577 * target.h (struct target_ops)
5578 <to_supports_enable_disable_tracepoint>: Use
5579 TARGET_DEFAULT_RETURN.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target-delegates.c: Rebuild.
5584 * target.c (update_current_target): Don't inherit or default
5585 to_supports_multi_process.
5586 * target.h (struct target_ops) <to_supports_multi_process>: Use
5587 TARGET_DEFAULT_RETURN.
5589 2014-02-19 Tom Tromey <tromey@redhat.com>
5591 * target-delegates.c: Rebuild.
5592 * target.c (update_current_target): Don't inherit or default
5593 to_get_ada_task_ptid.
5594 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5595 TARGET_DEFAULT_FUNC.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target-delegates.c: Rebuild.
5600 * target.c (update_current_target): Don't inherit or default
5601 to_thread_architecture.
5602 * target.h (struct target_ops) <to_thread_architecture>: Use
5603 TARGET_DEFAULT_FUNC.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target-delegates.c: Rebuild.
5608 * target.c (update_current_target): Don't inherit or default
5609 to_execution_direction.
5610 * target.h (struct target_ops) <to_execution_direction>: 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
5617 to_can_execute_reverse.
5618 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5619 TARGET_DEFAULT_RETURN.
5620 (target_can_execute_reverse): 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
5627 (dummy_goto_bookmark): Remove.
5628 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5629 * target.h (struct target_ops) <to_goto_bookmark>: Use
5630 TARGET_DEFAULT_NORETURN.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target-delegates.c: Rebuild.
5635 * target.c (update_current_target): Don't inherit or default
5637 (dummy_get_bookmark): Remove.
5638 (init_dummy_target): Don't inherit or default to_get_bookmark.
5639 * target.h (struct target_ops) <to_get_bookmark>: Use
5640 TARGET_DEFAULT_NORETURN
5642 2014-02-19 Tom Tromey <tromey@redhat.com>
5644 * target-delegates.c: Rebuild.
5645 * target.c (update_current_target): Don't inherit or default
5646 to_make_corefile_notes.
5647 (init_dummy_target): Don't initialize to_make_corefile_notes.
5648 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5649 TARGET_DEFAULT_FUNC.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target-delegates.c: Rebuild.
5654 * target.c (update_current_target): Don't inherit or default
5655 to_find_memory_regions.
5656 (init_dummy_target): Don't initialize to_find_memory_regions.
5657 * target.h (struct target_ops) <to_find_memory_regions>: Use
5658 TARGET_DEFAULT_FUNC.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target-delegates.c: Rebuild.
5663 * target.c (update_current_target): Don't inherit or default
5665 * target.h (struct target_ops) <to_log_command>: Use
5666 TARGET_DEFAULT_IGNORE.
5667 (target_log_command): Unconditionally delegate.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target-delegates.c: Rebuild.
5672 * target.c (update_current_target): Don't inherit or default
5673 to_pid_to_exec_file.
5674 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5675 TARGET_DEFAULT_RETURN.
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * target-delegates.c: Rebuild.
5680 * target.c (update_current_target): Don't inherit or default
5682 (target_thread_name): Unconditionally delegate.
5683 * target.h (struct target_ops) <to_thread_name>: Use
5684 TARGET_DEFAULT_RETURN.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target-delegates.c: Rebuild.
5689 * target.c (update_current_target): Don't inherit or default
5690 to_extra_thread_info.
5691 * target.h (struct target_ops) <to_extra_thread_info>: Use
5692 TARGET_DEFAULT_RETURN.
5694 2014-02-19 Tom Tromey <tromey@redhat.com>
5696 * target-delegates.c: Rebuild.
5697 * target.c (update_current_target): Don't inherit or default
5699 * target.h (struct target_ops) <to_has_exited>: Use
5700 TARGET_DEFAULT_RETURN..
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * target-delegates.c: Rebuild.
5705 * target.c (update_current_target): Don't inherit or default
5706 to_set_syscall_catchpoint.
5707 (return_one): Remove.
5708 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5709 TARGET_DEFAULT_RETURN.
5711 2014-02-19 Tom Tromey <tromey@redhat.com>
5713 * target-delegates.c: Rebuild.
5714 * target.c (update_current_target): Don't inherit or default
5715 to_insert_exec_catchpoint.
5716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5717 TARGET_DEFAULT_RETURN.
5719 2014-01-08 Tom Tromey <tromey@redhat.com>
5721 * target-delegates.c: Rebuild.
5722 * target.c (update_current_target): Don't inherit or default
5723 to_insert_exec_catchpoint.
5724 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5725 TARGET_DEFAULT_RETURN.
5727 2014-02-19 Tom Tromey <tromey@redhat.com>
5729 * target-delegates.c: Rebuild.
5730 * target.c (update_current_target): Don't inherit or default
5731 to_remove_vfork_catchpoint.
5732 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5733 TARGET_DEFAULT_RETURN.
5735 2014-02-19 Tom Tromey <tromey@redhat.com>
5737 * target-delegates.c: Rebuild.
5738 * target.c (update_current_target): Don't inherit or default
5739 to_insert_vfork_catchpoint.
5740 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5741 TARGET_DEFAULT_RETURN.
5743 2014-02-19 Tom Tromey <tromey@redhat.com>
5745 * target-delegates.c: Rebuild.
5746 * target.c (update_current_target): Don't inherit or default
5747 to_remove_fork_catchpoint.
5748 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5749 TARGET_DEFAULT_RETURN.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target-delegates.c: Rebuild.
5754 * target.c (update_current_target): Don't inherit or default
5755 to_insert_fork_catchpoint.
5756 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5757 TARGET_DEFAULT_RETURN.
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target-delegates.c: Rebuild.
5762 * target.c (update_current_target): Don't inherit or default
5763 to_post_startup_inferior.
5764 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5765 TARGET_DEFAULT_IGNORE.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target-delegates.c: Rebuild.
5770 * target.c (update_current_target): Don't inherit or default
5772 * target.h (struct target_ops) <to_load>: Use
5773 TARGET_DEFAULT_NORETURN.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target-delegates.c: Rebuild.
5778 * target.c (update_current_target): Don't inherit or default
5780 * target.h (struct target_ops) <to_terminal_info>: Use
5781 TARGET_DEFAULT_FUNC.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (update_current_target): Don't inherit or default
5787 to_terminal_save_ours.
5788 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5789 TARGET_DEFAULT_IGNORE.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target-delegates.c: Rebuild.
5794 * target.c (update_current_target): Don't inherit or default
5796 * target.h (struct target_ops) <to_terminal_ours>: Use
5797 TARGET_DEFAULT_IGNORE.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target-delegates.c: Rebuild.
5802 * target.c (update_current_target): Don't inherit or default
5803 to_terminal_ours_for_output.
5804 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5805 TARGET_DEFAULT_IGNORE.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target-delegates.c: Rebuild.
5810 * target.c (update_current_target): Don't inherit or default
5811 to_terminal_inferior.
5812 * target.h (struct target_ops) <to_terminal_inferior>: Use
5813 TARGET_DEFAULT_IGNORE.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target-delegates.c: Rebuild.
5818 * target.c (update_current_target): Don't inherit or default
5820 * target.h (struct target_ops) <to_terminal_init>: Use
5821 TARGET_DEFAULT_IGNORE.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target-delegates.c: Rebuild.
5826 * target.c (update_current_target): Don't inherit or default
5827 to_can_accel_watchpoint_condition.
5828 * target.h (struct target_ops)
5829 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5831 2014-02-19 Tom Tromey <tromey@redhat.com>
5833 * target-delegates.c: Rebuild.
5834 * target.c (update_current_target): Don't inherit or default
5835 to_region_ok_for_hw_watchpoint.
5836 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5837 Use TARGET_DEFAULT_FUNC.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target-delegates.c: Rebuild.
5842 * target.c (update_current_target): Don't inherit or default
5843 to_watchpoint_addr_within_range.
5844 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5845 Use TARGET_DEFAULT_FUNC.
5847 2014-02-19 Tom Tromey <tromey@redhat.com>
5849 * target-delegates.c: Rebuild.
5850 * target.c (update_current_target): Don't inherit or default
5851 to_remove_watchpoint.
5852 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5853 TARGET_DEFAULT_NORETURN.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (update_current_target): Don't inherit or default
5859 to_insert_watchpoint.
5860 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5861 TARGET_DEFAULT_RETURN.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target-delegates.c: Rebuild.
5866 * target.c (update_current_target): Don't inherit or default
5867 to_remove_hw_breakpoint.
5868 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5869 TARGET_DEFAULT_RETURN.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target-delegates.c: Rebuild.
5874 * target.c (update_current_target): Don't inherit or default
5875 to_insert_hw_breakpoint.
5876 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5877 TARGET_DEFAULT_RETURN.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target-delegates.c: Rebuild.
5882 * target.c (update_current_target): Don't inherit or default
5883 to_can_use_hw_breakpoint.
5884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5885 TARGET_DEFAULT_RETURN.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (update_current_target): Don't inherit or default
5892 * target.h (struct target_ops) <to_files_info>: Use
5893 TARGET_DEFAULT_IGNORE.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target-delegates.c: Rebuild.
5898 * target.c (update_current_target): Don't inherit or default
5900 * target.h (struct target_ops) <to_store>: Use
5901 TARGET_DEFAULT_NORETURN.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * target-delegates.c: Rebuild.
5906 * target.c (update_current_target): Don't inherit or default
5908 * target.h (struct target_ops) <to_post_attach>: Use
5909 TARGET_DEFAULT_IGNORE.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5916 (default_rcmd): New function.
5917 (do_monitor_command): Unconditionally delegate.
5918 * target.h (struct target_ops) <to_rmcd>: Use
5919 TARGET_DEFAULT_FUNC.
5921 2014-02-19 Tom Tromey <tromey@redhat.com>
5923 * target-delegates.c: Rebuild.
5924 * target.c (init_dummy_target): Don't initialize to_attach.
5925 (target_attach): Unconditionally delegate.
5926 * target.h (struct target_ops) <to_attach>: Use
5927 TARGET_DEFAULT_FUNC.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (target_detach): Unconditionally delegate.
5933 (init_dummy_target): Don't initialize to_detach.
5934 * target.h (struct target_ops) <to_detach>: Use
5935 TARGET_DEFAULT_IGNORE.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5941 (target_augmented_libraries_svr4_read): Add argument.
5942 * target.c (update_current_target): Update.
5943 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5946 2014-02-19 Tom Tromey <tromey@redhat.com>
5948 * target.h (struct target_ops) <to_call_history_range>: Add
5950 * target.c (target_call_history_range): Add argument.
5951 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5953 (record_btrace_call_history_from): Update.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * target.h (struct target_ops) <to_call_history_from>: Add
5959 * target.c (target_call_history_from): Add argument.
5960 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5963 2014-02-19 Tom Tromey <tromey@redhat.com>
5965 * target.h (struct target_ops) <to_call_history>: Add argument.
5966 * target.c (target_call_history): Add argument.
5967 * record-btrace.c (record_btrace_call_history): Add 'self'
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_insn_history_range>: Add
5974 * target.c (target_insn_history_range): Add argument.
5975 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5977 (record_btrace_insn_history_from): Update.
5979 2014-02-19 Tom Tromey <tromey@redhat.com>
5981 * target.h (struct target_ops) <to_insn_history_from>: Add
5983 * target.c (target_insn_history_from): Add argument.
5984 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5987 2014-02-19 Tom Tromey <tromey@redhat.com>
5989 * target.h (struct target_ops) <to_insn_history>: Add argument.
5990 * target.c (target_insn_history): Add argument.
5991 * record-btrace.c (record_btrace_insn_history): Add 'self'
5994 2014-02-19 Tom Tromey <tromey@redhat.com>
5996 * target.h (struct target_ops) <to_goto_record>: Add argument.
5997 * target.c (target_goto_record): Add argument.
5998 * record-full.c (record_full_goto): Add 'self' argument.
5999 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6004 * target.c (target_goto_record_end): Add argument.
6005 * record-full.c (record_full_goto_end): Add 'self' argument.
6006 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_goto_record_begin>: Add
6012 * target.c (target_goto_record_begin): Add argument.
6013 * record-full.c (record_full_goto_begin): Add 'self' argument.
6014 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6017 2014-02-19 Tom Tromey <tromey@redhat.com>
6019 * target.h (struct target_ops) <to_record_is_replaying>: Add
6021 * target.c (target_record_is_replaying): Add argument.
6022 * record-full.c (record_full_is_replaying): Add 'self' argument.
6023 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6025 (record_btrace_xfer_partial, record_btrace_store_registers)
6026 (record_btrace_prepare_to_store, record_btrace_resume)
6027 (record_btrace_wait, record_btrace_decr_pc_after_break)
6028 (record_btrace_find_new_threads, record_btrace_thread_alive):
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6033 * target.h (struct target_ops) <to_delete_record>: Add argument.
6034 * target.c (target_delete_record): Add argument.
6035 * record-full.c (record_full_delete): Add 'self' argument.
6037 2014-02-19 Tom Tromey <tromey@redhat.com>
6039 * target.h (struct target_ops) <to_save_record>: Add argument.
6040 * target.c (target_save_record): Add argument.
6041 * record-full.c (record_full_save): Add 'self' argument.
6042 (record_full_save): Add 'self' argument.
6044 2014-02-19 Tom Tromey <tromey@redhat.com>
6046 * target.h (struct target_ops) <to_info_record>: Add argument.
6047 * target.c (target_info_record): Add argument.
6048 * record.c (info_record_command): Add argument.
6049 * record-full.c (record_full_info): Add 'self' argument.
6050 * record-btrace.c (record_btrace_info): Add 'self' argument.
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6055 * target.c (target_stop_recording): Add argument.
6056 * record.c (record_stop): Add argument.
6057 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6063 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6064 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6066 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6067 (_initialize_amd64_linux_nat): Use it.
6068 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6069 (_initialize_i386_linux_nat): Use it.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6074 * target.c (target_teardown_btrace): Add argument.
6075 * remote.c (remote_teardown_btrace): Add 'self' argument.
6076 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6078 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6084 * target.c (target_disable_btrace): Add argument.
6085 * remote.c (remote_disable_btrace): Add 'self' argument.
6086 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6088 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6094 * target.c (target_enable_btrace): Add argument.
6095 * remote.c (remote_enable_btrace): Add 'self' argument.
6096 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6098 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6104 (target_can_use_agent): Add argument.
6105 * target.c (update_current_target): Update.
6106 * remote.c (remote_can_use_agent): Add 'self' argument.
6107 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * target.h (struct target_ops) <to_use_agent>: Add argument.
6112 (target_use_agent): Add argument.
6113 * target.c (update_current_target): Update.
6114 * remote.c (remote_use_agent): Add 'self' argument.
6115 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6120 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6121 (target_traceframe_info): Add argument.
6122 * target.c (update_current_target): Update.
6123 * remote.c (remote_traceframe_info): Add 'self' argument.
6124 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target.h (target_static_tracepoint_markers_by_strid): Add
6130 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6132 * target.c (update_current_target): Update.
6133 * remote.c (struct target_ops)
6134 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6135 * linux-nat.c (struct target_ops)
6136 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6142 (target_static_tracepoint_marker_at): Add argument.
6143 * target.c (update_current_target): Update.
6144 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6150 (target_set_permissions): Add argument.
6151 * target.c (update_current_target): Update.
6152 * remote.c (remote_set_permissions): Add 'self' argument.
6153 (remote_start_remote): Update.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6158 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6159 (target_get_tib_address): Add argument.
6160 * target.c (update_current_target): Update.
6161 * remote.c (remote_get_tib_address): Add 'self' argument.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6166 (target_set_trace_notes): Add argument.
6167 * target.c (update_current_target): Update.
6168 * remote.c (remote_set_trace_notes): Add 'self' argument.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6174 (target_set_trace_buffer_size): Add argument.
6175 * target.c (update_current_target): Update.
6176 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6182 (target_set_circular_trace_buffer): Add argument.
6183 * target.c (update_current_target): Update.
6184 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6191 (target_set_disconnected_tracing): Add argument.
6192 * target.c (update_current_target): Update.
6193 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6195 2014-02-19 Tom Tromey <tromey@redhat.com>
6197 * target.h (struct target_ops)
6198 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6199 (target_get_min_fast_tracepoint_insn_len): Add argument.
6200 * target.c (update_current_target): Update.
6201 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6208 (target_get_raw_trace_data): Add argument.
6209 * target.c (update_current_target): Update.
6210 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6216 (target_upload_trace_state_variables): Add argument.
6217 * target.c (update_current_target): Update.
6218 * remote.c (remote_upload_trace_state_variables): Add 'self'
6220 (remote_start_remote): Update.
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6226 (target_upload_tracepoints): Add argument.
6227 * target.c (update_current_target): Update.
6228 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6229 (remote_start_remote): Update.
6231 2014-02-19 Tom Tromey <tromey@redhat.com>
6233 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6234 (target_save_trace_data): Add argument.
6235 * target.c (update_current_target): Update.
6236 * remote.c (remote_save_trace_data): Add 'self' argument.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6242 * target.h (struct target_ops)
6243 <to_get_trace_state_variable_value>: Add argument.
6244 (target_get_trace_state_variable_value): Add argument.
6245 * target.c (update_current_target): Update.
6246 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6248 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6253 * target.h (struct target_ops) <to_trace_find>: Add argument.
6254 (target_trace_find): Add argument.
6255 * target.c (update_current_target): Update.
6256 * remote.c (remote_trace_find): Add 'self' argument.
6257 * ctf.c (ctf_trace_find): Add 'self' argument.
6259 2014-02-19 Tom Tromey <tromey@redhat.com>
6261 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6262 (target_trace_stop): Add argument.
6263 * target.c (update_current_target): Update.
6264 * remote.c (remote_trace_stop): Add 'self' argument.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6269 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6271 (target_get_tracepoint_status): Add argument.
6272 * target.c (update_current_target): Update.
6273 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6278 * target.h (struct target_ops) <to_get_trace_status>: Add
6280 (target_get_trace_status): Add argument.
6281 * target.c (update_current_target): Update.
6282 * remote.c (remote_get_trace_status): Add 'self' argument.
6283 (remote_start_remote, remote_can_download_tracepoint): Update.
6284 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target.h (struct target_ops) <to_trace_start>: Add argument.
6289 (target_trace_start): Add argument.
6290 * target.c (update_current_target): Update.
6291 * remote.c (remote_trace_start): Add 'self' argument.
6293 2014-02-19 Tom Tromey <tromey@redhat.com>
6295 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6297 (target_trace_set_readonly_regions): Add argument.
6298 * target.c (update_current_target): Update.
6299 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6306 (target_disable_tracepoint): Add argument.
6307 * target.c (update_current_target): Update.
6308 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6314 (target_enable_tracepoint): Add argument.
6315 * target.c (update_current_target): Update.
6316 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.h (struct target_ops) <to_download_trace_state_variable>:
6322 (target_download_trace_state_variable): Add argument.
6323 * target.c (update_current_target): Update.
6324 * remote.c (remote_download_trace_state_variable): Add 'self'
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6331 (target_can_download_tracepoint): Add argument.
6332 * target.c (update_current_target): Update.
6333 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target.h (struct target_ops) <to_download_tracepoint>: Add
6339 (target_download_tracepoint): Add argument.
6340 * target.c (update_current_target): Update.
6341 * remote.c (remote_download_tracepoint): Add 'self' argument.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target.h (struct target_ops) <to_trace_init>: Add argument.
6346 (target_trace_init): Add argument.
6347 * target.c (update_current_target): Update.
6348 * remote.c (remote_trace_init): Add 'self' argument.
6350 2014-02-19 Tom Tromey <tromey@redhat.com>
6352 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6353 * target.c (target_fileio_readlink): Add argument.
6354 * remote.c (remote_hostio_readlink): Add 'self' argument.
6355 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6360 * target.c (target_fileio_unlink): Add argument.
6361 * remote.c (remote_hostio_unlink): Add 'self' argument.
6362 (remote_file_delete): Update.
6363 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6368 * target.c (target_fileio_close): Add argument.
6369 * remote.c (remote_hostio_close): Add 'self' argument.
6370 (remote_hostio_close_cleanup): Update.
6371 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6373 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6375 2014-02-19 Tom Tromey <tromey@redhat.com>
6377 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6378 * target.c (target_fileio_pread): Add argument.
6379 * remote.c (remote_hostio_pread): Add 'self' argument.
6380 (remote_bfd_iovec_pread, remote_file_get): Update.
6381 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6383 2014-02-19 Tom Tromey <tromey@redhat.com>
6385 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6386 * target.c (target_fileio_pwrite): Add argument.
6387 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6388 (remote_file_put): Update.
6389 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6394 * target.c (target_fileio_open): Add argument.
6395 * remote.c (remote_hostio_open): Add 'self' argument.
6396 (remote_bfd_iovec_open): Add 'self' argument.
6397 (remote_file_put): Add 'self' argument.
6398 (remote_file_get): Add 'self' argument.
6399 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6401 2014-02-19 Tom Tromey <tromey@redhat.com>
6403 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6405 (target_can_run_breakpoint_commands): Add argument.
6406 * target.c (update_current_target): Update.
6407 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6409 (remote_insert_breakpoint): Add 'self' argument.
6410 (remote_insert_hw_breakpoint): Add 'self' argument.
6411 (remote_can_run_breakpoint_commands): Add 'self' argument.
6413 2014-02-19 Tom Tromey <tromey@redhat.com>
6415 * target.h (struct target_ops)
6416 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6417 (target_supports_evaluation_of_breakpoint_conditions): Add
6419 * target.c (update_current_target): Update.
6420 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6422 (remote_insert_breakpoint): Add 'self' argument.
6423 (remote_insert_hw_breakpoint): Add 'self' argument.
6424 (remote_supports_cond_breakpoints): Add 'self' argument.
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6430 (target_supports_string_tracing): Add argument.
6431 * target.c (update_current_target): Update.
6432 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6434 2014-02-19 Tom Tromey <tromey@redhat.com>
6436 * target.h (struct target_ops)
6437 <to_supports_disable_randomization>: Add argument.
6438 * target.c (find_default_supports_disable_randomization): Add
6440 (target_supports_disable_randomization): Add argument.
6441 (find_default_supports_disable_randomization): Add 'self'
6443 * remote.c (extended_remote_supports_disable_randomization): Add
6445 (remote_supports_disable_randomization): Add 'self' argument.
6446 (extended_remote_create_inferior): Update.
6447 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target.h (struct target_ops)
6453 <to_supports_enable_disable_tracepoint>: Add argument.
6454 (target_supports_enable_disable_tracepoint): Add argument.
6455 * target.c (update_current_target): Update.
6456 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_supports_multi_process>: Add
6463 (target_supports_multi_process): Add argument.
6464 * target.c (update_current_target): Update.
6465 * remote.c (remote_supports_multi_process): Add 'self' argument.
6466 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6468 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target.h (struct target_ops) <to_execution_direction>: Add
6475 (target_execution_direction): Add argument.
6476 * target.c (default_execution_direction): Add 'self' argument.
6477 * record-full.c (record_full_execution_direction): Add 'self'
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6484 (target_can_execute_reverse): Add argument.
6485 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6486 * record-full.c (record_full_can_execute_reverse): Add 'self'
6488 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6493 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6494 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6496 (target_get_ada_task_ptid): Add argument.
6497 * target.c (update_current_target): Update.
6498 (default_get_ada_task_ptid): Add 'self' argument.
6499 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6500 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6501 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6503 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6505 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6507 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6509 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6510 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6513 2014-02-19 Tom Tromey <tromey@redhat.com>
6515 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6516 (target_goto_bookmark): Add argument.
6517 * target.c (dummy_goto_bookmark): Add 'self' argument.
6518 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6523 (target_get_bookmark): Add argument.
6524 * target.c (dummy_get_bookmark): Add 'self' argument.
6525 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6531 (target_make_corefile_notes): Add argument.
6532 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6533 * procfs.c (procfs_make_note_section): Add 'self' argument.
6534 (procfs_make_note_section): Add 'self' argument.
6535 (procfs_make_note_section): Add 'self' argument.
6536 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6538 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6539 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6540 * exec.c (exec_make_note_section): Add 'self' argument.
6541 (exec_make_note_section): Add 'self' argument.
6543 2014-02-19 Tom Tromey <tromey@redhat.com>
6545 * target.h (struct target_ops) <to_find_memory_regions>: Add
6547 (target_find_memory_regions): Add argument.
6548 * target.c (dummy_find_memory_regions): Add 'self' argument.
6549 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6550 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6551 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6552 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6553 * exec. (exec_do_find_memory_regions): New global.
6554 (exec_set_find_memory_regions): Rewrite.
6555 (exec_find_memory_regions): New function.
6556 (init_exec_ops): Use exec_find_memory_regions.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target.h (struct target_ops) <to_supports_non_stop>: Add
6562 * target.c (find_default_supports_non_stop): Add argument.
6563 (target_supports_non_stop): Add argument.
6564 (find_default_supports_non_stop): Add 'self' argument.
6565 * remote.c (remote_supports_non_stop): Add 'self' argument.
6566 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target.h (struct target_ops) <to_log_command>: Add argument.
6571 (target_log_command): Add argument.
6572 * serial.h (serial_log_command): Add 'self' argument.
6573 * serial.c (serial_log_command): Add 'self' argument.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6578 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6580 (target_pid_to_exec_file): Add argument.
6581 * target.c (debug_to_pid_to_exec_file): Add argument.
6582 (update_current_target): Update.
6583 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6584 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6585 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6586 (linux_handle_extended_wait): Update.
6587 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6588 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6589 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6590 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target.h (struct target_ops) <to_rcmd>: Add argument.
6595 (target_rcmd): Add argument.
6596 * target.c (debug_to_rcmd): Add argument.
6597 (update_current_target, do_monitor_command): Update.
6598 * remote.c (remote_rcmd): Add 'self' argument.
6599 * monitor.c (monitor_rcmd): Add 'self' argument.
6601 2014-02-19 Tom Tromey <tromey@redhat.com>
6603 * windows-nat.c (windows_stop): Add 'self' argument.
6604 * target.h (struct target_ops) <to_stop>: Add argument.
6605 * target.c (target_stop): Add argument.
6606 (debug_to_stop): Add argument.
6607 (update_current_target): Update.
6608 * remote.c (remote_stop): Add 'self' argument.
6609 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6610 (gdbsim_cntrl_c): Update.
6611 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6612 * procfs.c (procfs_stop): Add 'self' argument.
6613 * nto-procfs.c (procfs_stop): Add 'self' argument.
6614 * monitor.c (monitor_stop): Add 'self' argument.
6615 (monitor_open): Update.
6616 * linux-nat.c (linux_nat_stop): Add argument.
6617 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6618 * gnu-nat.c (gnu_stop): Add 'self' argument.
6619 * darwin-nat.c (darwin_stop): Add 'self' argument.
6621 2014-02-19 Tom Tromey <tromey@redhat.com>
6623 * target.h (struct target_ops) <to_thread_name>: Add argument.
6624 * target.c (target_thread_name): Add argument.
6625 (update_current_target): Update.
6626 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6628 2014-02-19 Tom Tromey <tromey@redhat.com>
6630 * target.h (struct target_ops) <to_extra_thread_info>: Add
6632 (target_extra_thread_info): Add argument.
6633 * target.c (update_current_target): Update.
6634 * remote.c (remote_threads_extra_info): Add 'self' argument.
6635 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6637 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6638 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6639 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6641 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6643 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6645 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_program_signals>: Add argument.
6651 * target.c (target_program_signals): Add argument.
6652 * remote.c (remote_program_signals): Add 'self' argument.
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6657 * target.c (target_pass_signals): Add argument.
6658 * remote.c (remote_pass_signals): Add 'self' argument.
6659 (remote_start_remote): Update.
6660 * procfs.c (procfs_pass_signals): Add 'self' argument.
6661 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6662 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6663 (linux_nat_create_inferior, linux_nat_attach): Update.
6665 2014-02-19 Tom Tromey <tromey@redhat.com>
6667 * windows-nat.c (windows_can_run): Add 'self' argument.
6668 * target.h (struct target_ops) <to_can_run>: Add argument.
6669 (target_can_run): Add argument.
6670 * target.c (debug_to_can_run): Add argument.
6671 (update_current_target): Update.
6672 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6673 * inf-child.c (inf_child_can_run): Add 'self' argument.
6674 * go32-nat.c (go32_can_run): Add 'self' argument.
6676 2014-02-19 Tom Tromey <tromey@redhat.com>
6678 * target.h (struct target_ops) <to_has_exited>: Add argument.
6679 (target_has_exited): Add argument.
6680 * target.c (debug_to_has_exited): Add argument.
6681 (update_current_target): Update.
6683 2014-02-19 Tom Tromey <tromey@redhat.com>
6685 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6687 (target_set_syscall_catchpoint): Add argument.
6688 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6690 * target.c (update_current_target): Update.
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6694 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6696 (target_remove_exec_catchpoint): Add argument.
6697 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6698 (update_current_target): Update.
6699 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6702 2014-02-19 Tom Tromey <tromey@redhat.com>
6704 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6706 (target_insert_exec_catchpoint): Add argument.
6707 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6708 (update_current_target): Update.
6709 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6712 2014-02-19 Tom Tromey <tromey@redhat.com>
6714 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6716 (target_remove_vfork_catchpoint): Add argument.
6717 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6718 (update_current_target): Update.
6719 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6726 (target_insert_vfork_catchpoint): Add argument.
6727 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6728 (update_current_target): Update.
6729 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6732 2014-02-19 Tom Tromey <tromey@redhat.com>
6734 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6736 (target_remove_fork_catchpoint): Add argument.
6737 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6738 (update_current_target): Update.
6739 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6746 (target_insert_fork_catchpoint): Add argument.
6747 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6748 (update_current_target): Update.
6749 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6752 2014-02-19 Tom Tromey <tromey@redhat.com>
6754 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6756 (target_post_startup_inferior): Add argument.
6757 * target.c (debug_to_post_startup_inferior): Add argument.
6758 (update_current_target): Update.
6759 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6761 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6763 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6765 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6767 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6769 (super_post_startup_inferior): Likewise.
6770 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6772 (super_post_startup_inferior): Likewise.
6773 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6774 Add 'self' argument.
6775 (super_post_startup_inferior): Likewise.
6777 2014-02-19 Tom Tromey <tromey@redhat.com>
6779 * target.h (struct target_ops) <to_load>: Add argument.
6780 * target.c (target_load): Add argument.
6781 (debug_to_load): Add argument.
6782 (update_current_target): Update.
6783 * remote.c (remote_load): Add 'self' argument.
6784 * remote-sim.c (gdbsim_load): Add 'self' argument.
6785 * remote-mips.c (mips_load): Add 'self' argument.
6786 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6787 * monitor.c (monitor_load): Add 'self' argument.
6788 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6790 2014-02-19 Tom Tromey <tromey@redhat.com>
6792 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6793 (target_terminal_info): Add argument.
6794 * target.c (debug_to_terminal_info): Add argument.
6795 (default_terminal_info): Likewise.
6796 * inflow.c (child_terminal_info): Add 'self' argument.
6797 * inferior.h (child_terminal_info): Add 'self' argument.
6798 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6804 (target_terminal_save_ours): Add argument.
6805 * target.c (debug_to_terminal_save_ours): Add argument.
6806 (update_current_target): Update.
6807 * inflow.c (terminal_save_ours): Add 'self' argument.
6808 * inferior.h (terminal_save_ours): Add 'self' argument.
6810 2014-02-19 Tom Tromey <tromey@redhat.com>
6812 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6813 (target_terminal_ours): Add argument.
6814 * target.c (debug_to_terminal_ours): Add argument.
6815 (update_current_target): Update.
6816 * remote.c (remote_terminal_ours): Add 'self' argument.
6817 (remote_close): Update.
6818 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6819 * inflow.c (terminal_ours): Add 'self' argument.
6820 * inferior.h (terminal_ours): Add 'self' argument.
6821 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6823 2014-02-19 Pedro Alves <palves@redhat.com>
6824 Tom Tromey <tromey@redhat.com>
6826 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6828 (target_terminal_ours_for_output): Add argument.
6829 * target.c (debug_to_terminal_ours_for_output): Add argument.
6830 (update_current_target): Update.
6831 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6832 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6833 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target.h (struct target_ops) <to_terminal_inferior>: Add
6839 * target.c (target_terminal_inferior): Add argument.
6840 (update_current_target): Update.
6841 * remote.c (remote_terminal_inferior): Add 'self' argument.
6842 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6843 * inflow.c (terminal_inferior): Add 'self' argument.
6844 * inferior.h (terminal_inferior): Add 'self' argument.
6845 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6846 (go32_terminal_inferior): Add 'self' argument.
6848 2014-02-19 Tom Tromey <tromey@redhat.com>
6850 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6851 (target_terminal_init): Add argument.
6852 * target.c (debug_to_terminal_init): Add argument.
6853 (update_current_target): Update.
6854 * inflow.c (terminal_init_inferior): Add 'self' argument.
6855 * inferior.h (terminal_init_inferior): Add 'self' argument.
6856 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6857 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target.h (struct target_ops)
6862 <to_can_accel_watchpoint_condition>: Add argument.
6863 (target_can_accel_watchpoint_condition): Add argument.
6864 * target.c (debug_to_can_accel_watchpoint_condition): Add
6866 (update_current_target): Update.
6867 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6874 (target_region_ok_for_hw_watchpoint): Add argument.
6875 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6876 (default_region_ok_for_hw_watchpoint): Add argument.
6877 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6878 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6880 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6882 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6884 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6886 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6888 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6890 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6891 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6893 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6894 Add 'self' argument.
6896 2014-02-19 Tom Tromey <tromey@redhat.com>
6898 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6900 (target_insert_watchpoint): Add argument.
6901 * target.c (debug_to_insert_watchpoint): Add argument.
6902 (update_current_target): Update.
6903 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6904 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6905 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6906 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6907 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6908 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6910 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6911 (procfs_insert_hw_watchpoint): Add 'self' argument.
6912 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6914 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6916 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6918 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6919 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6921 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6924 2014-02-19 Tom Tromey <tromey@redhat.com>
6926 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6928 (target_remove_watchpoint): Add argument.
6929 * target.c (debug_to_remove_watchpoint): Add argument.
6930 (update_current_target): Update.
6931 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6932 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6933 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6934 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6935 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6936 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6938 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6939 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6941 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6943 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6945 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6946 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6948 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6951 2014-02-19 Tom Tromey <tromey@redhat.com>
6953 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6955 (target_remove_hw_breakpoint): Add argument.
6956 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6957 (update_current_target): Update.
6958 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6959 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6961 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6962 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6964 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6967 2014-02-19 Tom Tromey <tromey@redhat.com>
6969 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6971 (target_insert_hw_breakpoint): Add argument.
6972 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6973 (update_current_target): Update.
6974 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6975 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6977 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6978 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6979 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6981 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6984 2014-02-19 Tom Tromey <tromey@redhat.com>
6986 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6988 (target_can_use_hardware_watchpoint): Add argument.
6989 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6990 (update_current_target): Update.
6991 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6993 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6995 * remote.c (remote_check_watch_resources): Add 'self' argument.
6996 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6997 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6999 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7000 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7002 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7004 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7006 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7008 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7010 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7012 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7013 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7015 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * target.h (struct target_ops) <to_post_attach>: Add argument.
7021 (target_post_attach): Add argument.
7022 * target.c (debug_to_post_attach): Add argument.
7023 (update_current_target): Update.
7024 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7025 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7026 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7027 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7028 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7030 2014-02-19 Tom Tromey <tromey@redhat.com>
7032 * windows-nat.c (windows_close): Add 'self' argument.
7033 * tracepoint.c (tfile_close): Add 'self' argument.
7034 * target.h (struct target_ops) <to_close>: Add argument.
7035 * target.c (target_close): Add argument.
7036 (update_current_target): Update.
7037 * remote.c (remote_close): Add 'self' argument.
7038 * remote-sim.c (gdbsim_close): Add 'self' argument.
7039 * remote-mips.c (mips_close): Add 'self' argument.
7040 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7041 * record-full.c (record_full_close): Add 'self' argument.
7042 * record-btrace.c (record_btrace_close): Add 'self' argument.
7043 * monitor.h (monitor_close): Add 'self' argument.
7044 * monitor.c (monitor_close): Add 'self' argument.
7045 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7046 * linux-nat.c (linux_nat_close): Add argument.
7047 * go32-nat.c (go32_close): Add 'self' argument.
7048 * exec.c (exec_close_1): Add 'self' argument.
7049 * ctf.c (ctf_close): Add 'self' argument.
7050 * corelow.c (core_close): Add 'self' argument.
7051 (core_close_cleanup): Update.
7052 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7053 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7055 2014-02-19 Tom Tromey <tromey@redhat.com>
7057 * remote.c (remote_load): New function.
7058 (init_remote_ops): Use it.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7064 * common/linux-btrace.h (linux_supports_btrace): Update.
7065 * remote.c (remote_supports_btrace): Add "self" argument.
7066 * target-delegates.c: Rebuild.
7067 * target.c (target_supports_btrace): Remove.
7068 * target.h (struct target_ops) <to_supports_btrace>: Add
7069 target_ops argument.
7070 (target_supports_btrace): New define.
7072 2014-02-19 Tom Tromey <tromey@redhat.com>
7074 * record-full.c (record_full_beneath_to_resume_ops)
7075 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7076 (record_full_beneath_to_wait)
7077 (record_full_beneath_to_store_registers_ops)
7078 (record_full_beneath_to_store_registers)
7079 (record_full_beneath_to_xfer_partial_ops)
7080 (record_full_beneath_to_xfer_partial)
7081 (record_full_beneath_to_insert_breakpoint_ops)
7082 (record_full_beneath_to_insert_breakpoint)
7083 (record_full_beneath_to_remove_breakpoint_ops)
7084 (record_full_beneath_to_remove_breakpoint)
7085 (record_full_beneath_to_stopped_by_watchpoint)
7086 (record_full_beneath_to_stopped_data_address)
7087 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7088 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7089 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7090 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7091 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7092 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7093 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7094 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7095 (record_full_resume, record_full_wait_1)
7096 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7097 (record_full_store_registers, record_full_xfer_partial)
7098 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7099 (record_full_async, record_full_core_xfer_partial): Use target
7101 * target-delegates.c: Rebuild.
7102 * target.c (current_xfer_partial): Remove.
7103 (update_current_target): Do not INHERIT or de_fault
7104 to_insert_breakpoint, to_remove_breakpoint,
7105 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7106 to_is_async_p, to_async. Do not set to_xfer_partial field.
7107 (default_xfer_partial): Simplify.
7108 (current_xfer_partial): Remove.
7109 (target_wait, target_resume): Simplify.
7110 (find_default_can_async_p, find_default_is_async_p): Update.
7111 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7112 to_xfer_partial, to_stopped_by_watchpoint,
7113 to_stopped_data_address.
7114 (target_store_registers): Simplify.
7115 (forward_target_remove_breakpoint)
7116 (forward_target_insert_breakpoint): Remove.
7117 (target_remove_breakpoint, target_insert_breakpoint)
7118 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7119 * target.h (struct target_ops) <to_resume, to_wait,
7120 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7121 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7122 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7124 (forward_target_remove_breakpoint)
7125 (forward_target_insert_breakpoint): Remove.
7126 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7128 (record_btrace_insert_breakpoint): Delegate directly.
7130 2014-02-19 Tom Tromey <tromey@redhat.com>
7133 * target-delegates.c: New file.
7134 * target.c: Include target-delegates.c.
7135 (init_dummy_target): Call install_dummy_methods.
7136 (complete_target_initialization): Call install_delegators.
7137 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7138 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7139 * make-target-delegates: New file.
7141 2014-02-19 Tom Tromey <tromey@redhat.com>
7143 * record.c (find_record_target): Use find_target_at.
7144 * target.c (find_target_at): New function.
7145 * target.h (find_target_at): Declare.
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7151 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7153 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7154 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7156 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7158 * linux-nat.c (save_sigtrap): Update.
7159 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7160 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7161 (linux_nat_close): Update.
7162 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7164 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7166 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7167 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7168 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7169 (tmp_to_async): Add 'ops' argument.
7170 (record_full_stopped_by_watchpoint, record_full_async)
7171 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7173 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7174 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7175 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7176 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7177 (remote_is_async_p, remote_async): Add 'ops' argument.
7178 (remote_stopped_data_address): Update.
7179 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7180 * target.c (update_current_target)
7181 (find_default_can_async_p, find_default_is_async_p): Update.
7182 (init_dummy_target): Update.
7183 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7184 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7185 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7186 (target_can_async_p, target_is_async_p, target_async)
7187 (target_stopped_by_watchpoint): Update.
7189 2014-02-19 Yao Qi <yao@codesourcery.com>
7192 * gdbarch.sh: Remove startup_gdbarch.
7193 * gdbarch.c: Regenerated.
7194 * gdbarch.h: Likewise.
7196 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7198 * rl78-tdep.c (rl78_g10_register_name): New function.
7199 (rl78_return_value): Add g10 support.
7200 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7203 2014-02-17 Doug Evans <xdje42@gmail.com>
7205 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7206 (SUBDIR_GUILE_SRCS): Ditto.
7207 (scm-gsmob.o): Ditto.
7209 2014-02-17 Yao Qi <yao@codesourcery.com>
7211 * gnu-nat.c (ILL_RPC): Declare defined function.
7213 2014-02-17 Yao Qi <yao@codesourcery.com>
7215 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7216 mach_msg_type_number_t.
7217 (gnu_write_inferior): Likewise.
7219 2014-02-17 Yao Qi <yao@codesourcery.com>
7221 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7223 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7224 (inf_validate_procs, inf_signal): Likewise.
7225 (S_exception_raise_request): Likewise.
7226 (do_mach_notify_dead_name): Likewise.
7227 (steal_exc_port): Likewise.
7228 (gnu_read_inferior): Change 'copy_count''s type to
7229 mach_msg_type_number_t.
7230 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7233 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7235 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7236 flag. Adjust all users; in particular...
7237 (gnu_wait): ..., don't decrement its value in here...
7238 (gnu_create_inferior): ..., and instead set the flag in here,
7239 around the startup_inferior call, and call that one with
7240 START_INFERIOR_TRAPS_EXPECTED.
7242 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7243 (ILL_RPC): ... new macro.
7244 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7245 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7246 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7247 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7248 functions with ILL_RPC macro.
7249 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7250 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7251 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7252 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7253 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7254 (S_proc_getlogin_reply, S_proc_getsid_reply)
7255 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7256 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7257 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7258 (S_proc_getnports_reply, S_proc_is_important_reply)
7259 (S_proc_get_code_reply): New stub functions, generated with
7262 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7263 collected the type check structures.
7265 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7267 2014-02-14 Doug Evans <dje@google.com>
7269 * target.c (target_write_partial): Fix result type.
7271 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7273 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7274 the proper offsets to access fpregset_t.
7276 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7278 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7279 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7280 * h8300-tdep.c (setmachinelist): Remove global.
7281 * hppa-tdep.c (hppa_sigtramp): Remove global.
7282 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7283 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7284 * ravenscar-thread.c (update_target_observer): Remove global.
7285 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7287 2014-02-12 Tom Tromey <tromey@redhat.com>
7289 * common/rsp-low.c: Update comments.
7290 * common/rsp-low.h: Update comments.
7292 2014-02-12 Tom Tromey <tromey@redhat.com>
7294 * common/rsp-low.c (convert_ascii_to_int): Remove.
7295 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7297 2014-02-12 Tom Tromey <tromey@redhat.com>
7299 * common/rsp-low.h (unhexify): Don't declare.
7300 * common/rsp-low.c (unhexify): Remove.
7302 2014-02-12 Tom Tromey <tromey@redhat.com>
7304 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7305 * common/rsp-low.c (convert_int_to_ascii): Remove.
7307 2014-02-12 Tom Tromey <tromey@redhat.com>
7309 * common/rsp-low.h (hexify): Don't declare.
7310 * common/rsp-low.c (hexify): Remove.
7312 2014-02-12 Tom Tromey <tromey@redhat.com>
7314 * common/rsp-low.c (hexify): Never take strlen of argument.
7316 2014-02-12 Tom Tromey <tromey@redhat.com>
7318 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7319 * remote.c (extended_remote_run, remote_rcmd)
7320 (remote_download_trace_state_variable, remote_save_trace_data)
7321 (remote_set_trace_notes): Update.
7322 * tracepoint.c (encode_source_string, tfile_write_status)
7323 (tfile_write_uploaded_tsv): Update.
7325 2014-02-12 Tom Tromey <tromey@redhat.com>
7327 * tracepoint.c: Include rsp-low.h.
7328 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7329 * remote.c: Include rsp-low.h.
7330 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7331 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7332 (remote_unescape_input): Move to common/rsp-low.c.
7333 * common/rsp-low.h: New file.
7334 * common/rsp-low.c: New file.
7335 * Makefile.in (SFILES): Add common/rsp-low.c.
7336 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7337 (COMMON_OBS): Add rsp-low.o.
7338 (rsp-low.o): New target.
7340 2014-02-12 Tom Tromey <tromey@redhat.com>
7342 * utils.h: Include print-utils.h.
7343 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7344 (int_string, core_addr_to_string, core_addr_to_string_nz)
7345 (hex_string, hex_string_custom): Don't declare.
7346 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7347 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7348 (hex_string_custom, int_string, core_addr_to_string)
7349 (core_addr_to_string_nz, host_address_to_string): Move to
7350 common/print-utils.c.
7351 * common/print-utils.h: New file.
7352 * common/print-utils.c: New file
7353 * Makefile.in (SFILES): Add common/print-utils.c.
7354 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7355 (COMMON_OBS): Add print-utils.o.
7356 (print-utils.o): New target.
7358 2014-02-12 Tom Tromey <tromey@redhat.com>
7360 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7362 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7364 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7366 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7368 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7369 if a PT_IO ptrace request returns sucessfully but indicates that 0
7370 bytes were transferred.
7372 2014-02-12 Pedro Alves <palves@redhat.com>
7373 Kevin Buettner <kevinb@redhat.com>
7375 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7376 TYPE_INSTANCE_FLAG_CODE_SPACE.
7378 2014-02-12 Pedro Alves <palves@redhat.com>
7380 * h8300-tdep.c (pseudo_from_raw_register)
7381 (raw_from_pseudo_register): New functions.
7382 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7385 2014-02-12 Pedro Alves <palves@redhat.com>
7387 * h8300-tdep.c (h8300_register_sim_regno): New function.
7388 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7389 gdbarch_register_sim_regno hook.
7391 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7393 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7395 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7397 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7401 * obsd-tdep.h (obsd_init_abi): New prototype.
7402 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7403 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7404 (obsd_init_abi): New functions.
7405 * i386obsd-tdep.c: Include "obsd-tdep.h".
7406 (i386obsd_init_abi): Call obsd_init_abi.
7407 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7408 (amd64obsd_init_abi): Call obsd_init_abi.
7409 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7410 obsd-tdep.c to gdb_target_obs.
7412 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7414 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7415 double float arguments to 16-byte in the argument slots.
7417 2014-02-11 Doug Evans <xdje42@gmail.com>
7419 * configure.ac: Don't crash if pkg-config is not found and guile
7420 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7422 * configure: Regenerate.
7424 2014-02-11 Yao Qi <yao@codesourcery.com>
7426 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7427 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7428 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7429 * gnu-nat.c (gnu_xfer_memory): Likewise.
7430 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7431 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7433 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7435 2014-02-11 Yao Qi <yao@codesourcery.com>
7437 * target.h (enum target_xfer_error): Rename to ...
7438 (enum target_xfer_status): ... it. New. All users updated.
7439 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7441 (TARGET_XFER_STATUS_ERROR_P): New macro.
7442 (target_xfer_error_to_string): Remove declaration.
7443 (target_xfer_status_to_string): Declare.
7444 (target_xfer_partial_ftype): Adjust it.
7445 (struct target_ops) <to_xfer_partial>: Return
7446 target_xfer_status. Add argument xfered_len. Update
7448 * target.c (target_xfer_error_to_string): Rename to ...
7449 (target_xfer_status_to_string): ... it. New. All callers
7451 (target_read_live_memory): Likewise. Call target_xfer_partial
7452 instead of target_read.
7453 (memory_xfer_live_readonly_partial): Return
7454 target_xfer_status. Add argument xfered_len.
7455 (raw_memory_xfer_partial): Likewise.
7456 (memory_xfer_partial_1): Likewise.
7457 (memory_xfer_partial): Likewise.
7458 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7459 properly. Update debug message.
7460 (default_xfer_partial, current_xfer_partial): Likewise.
7461 (target_write_partial): Likewise.
7462 (target_read_partial): Likewise. All callers updated.
7463 (read_whatever_is_readable): Likewise.
7464 (target_write_with_progress): Likewise.
7465 (target_read_alloc_1): Likewise.
7467 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7468 * auxv.c (procfs_xfer_auxv): Likewise.
7469 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7470 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7471 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7472 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7473 * corefile.c (read_memory): Adjust.
7474 * corelow.c (core_xfer_partial): Likewise.
7475 * ctf.c (ctf_xfer_partial): Likewise.
7476 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7478 (darwin_xfer_partial): Likewise.
7479 * exec.c (section_table_xfer_memory_partial): Likewise. All
7481 (exec_xfer_partial): Likewise.
7482 * exec.h (section_table_xfer_memory_partial): Update
7484 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7486 (gnu_xfer_partial): Likewise.
7487 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7488 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7489 (ia64_hpux_xfer_solib_got): Likewise.
7490 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7491 type of 'partial_len' to ULONGEST.
7492 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7493 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7494 (linux_nat_xfer_partial): Likewise.
7495 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7496 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7497 * monitor.c (monitor_xfer_memory): Likewise.
7498 (monitor_xfer_partial): Likewise.
7499 * procfs.c (procfs_xfer_partial): Likewise.
7500 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7501 * record-full.c (record_full_xfer_partial): Likewise.
7502 (record_full_core_xfer_partial): Likewise.
7503 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7504 (gdbsim_xfer_partial): Likewise.
7505 * remote.c (remote_write_bytes_aux): Likewise. All callers
7507 (remote_write_bytes, remote_read_bytes): Likewise. All
7509 (remote_flash_erase): Likewise. All callers updated.
7510 (remote_write_qxfer): Likewise. All callers updated.
7511 (remote_read_qxfer): Likewise. All callers updated.
7512 (remote_xfer_partial): Likewise.
7513 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7514 (rs6000_xfer_shared_libraries): Likewise.
7515 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7516 (sol_thread_xfer_partial): Likewise.
7517 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7518 (sparc_xfer_partial): Likewise.
7519 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7521 (spu_xfer_partial): Likewise.
7522 * spu-multiarch.c (spu_xfer_partial): Likewise.
7523 * tracepoint.c (tfile_xfer_partial): Likewise.
7524 * windows-nat.c (windows_xfer_memory): Likewise.
7525 (windows_xfer_shared_libraries): Likewise.
7526 (windows_xfer_partial): Likewise.
7527 * valprint.c: Replace 'target_xfer_error' with
7528 'target_xfer_status' in comments.
7530 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7532 Checked in by Joel Brobecker <brobecker@adacore.com>.
7533 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7535 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7537 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7538 function parameters.
7540 2014-02-10 Will Newton <will.newton@linaro.org>
7542 * elfread.c (elf_rel_plt_read): Look for a .got section if
7543 looking up .got.plt fails.
7544 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7545 on address passed to elf_gnu_ifunc_record_cache.
7546 (elf_gnu_ifunc_resolve_addr): Likewise.
7547 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7549 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7551 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7552 (X_RETTURN): New macro.
7553 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7555 * sparc64-tdep.c (sparc64_init_abi): Hook
7556 sparc_in_function_epilogue_p.
7558 2014-02-10 Gary Benson <gbenson@redhat.com>
7560 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7561 Rename name_matcher to symbol_matcher.
7563 2014-02-10 Gary Benson <gbenson@redhat.com>
7565 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7566 Use expand_symtabs_file_matcher_ftype and
7567 expand_symtabs_symbol_matcher_ftype.
7569 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7571 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7572 (struct ada_symbol_cache): New.
7573 (ada_free_symbol_cache): Forward declare.
7574 (struct ada_pspace_data): New.
7575 (ada_pspace_data_handle): New static global.
7576 (get_ada_pspace_data, ada_pspace_data_cleanup)
7577 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7578 (cache_space, cache): Delete, now folded inside struct
7580 (ada_get_symbol_cache): New function.
7581 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7583 (_initialize_ada_language): Remove initialization of cache_space.
7584 Move call to observer_attach_inferior_exit up, grouping it
7585 with the other observer registrations inside this function.
7586 Rename command to be more general. Add call to
7587 register_program_space_data_with_cleanup.
7589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7591 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7592 ada_new_objfile_observer.
7593 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7594 (_initialize_tasks): Update uses of ada_new_objfile_observer
7595 and ada_tasks_normal_stop_observer.
7597 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7599 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7600 returned by the 'Length attribute to integer.
7602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7604 * ada-lang.c (_initialize_ada_language): Initialize
7605 cache_space obstack.
7607 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7609 * ada-lang.c (HASH_SIZE): New macro.
7610 (struct cache_entry): New type.
7611 (cache_space, cache): New static globals.
7612 (ada_clear_symbol_cache, find_entry): New functions.
7613 (lookup_cached_symbol, cache_symbol): Implement.
7614 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7615 (_initialize_ada_language): Attach ada_new_objfile_observer
7616 and ada_free_objfile_observer.
7618 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7620 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7621 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7622 struct block * parameter.
7623 (ada_lookup_symbol_list_worker): Constify local variable "block".
7624 Remove cast which is no longer necessary.
7626 2014-02-10 Doug Evans <xdje42@gmail.com>
7628 Add Guile as an extension language.
7629 * NEWS: Mention Guile scripting.
7630 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7631 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7632 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7633 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7634 (CLIBS): Add GUILE_LIBS.
7635 (install-guile): New rule.
7636 (guile.o): New rule.
7637 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7638 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7639 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7640 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7641 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7642 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7643 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7644 * configure.ac: New option --with-guile.
7645 * configure: Regenerate.
7646 * config.in: Regenerate.
7647 * auto-load.c: Remove #include "python/python.h". Add #include
7648 "gdb/section-scripts.h".
7649 (source_section_scripts): Handle Guile scripts.
7650 (_initialize_auto_load): Add name of Guile objfile script to
7651 scripts-directory help text.
7652 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7653 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7654 (struct breakpoint): New member scm_bp_object.
7655 * defs.h (enum command_control_type): New value guile_control.
7656 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7658 (show_user): Update comment.
7659 (_initialize_cli_cmds): Update help text for "show user". Update help
7660 text for max-user-call-depth.
7661 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7663 (multi_line_command_p): Add guile_control.
7664 (print_command_lines): Handle guile_control.
7665 (execute_control_command, recurse_read_control_structure): Ditto.
7666 (process_next_line): Recognize "guile" commands.
7667 * disasm.c (gdb_disassemble_info): Make non-static.
7668 * disasm.h: #include "dis-asm.h".
7669 (struct gdbarch): Add forward decl.
7670 (gdb_disassemble_info): Declare.
7671 * extension.c: #include "guile/guile.h".
7672 (extension_languages): Add guile.
7673 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7674 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7675 * gdbtypes.c (get_unsigned_type_max): New function.
7676 (get_signed_type_minmax): New function.
7677 * gdbtypes.h (get_unsigned_type_max): Declare.
7678 (get_signed_type_minmax): Declare.
7679 * guile/README: New file.
7680 * guile/guile-internal.h: New file.
7681 * guile/guile.c: New file.
7682 * guile/guile.h: New file.
7683 * guile/scm-arch.c: New file.
7684 * guile/scm-auto-load.c: New file.
7685 * guile/scm-block.c: New file.
7686 * guile/scm-breakpoint.c: New file.
7687 * guile/scm-disasm.c: New file.
7688 * guile/scm-exception.c: New file.
7689 * guile/scm-frame.c: New file.
7690 * guile/scm-gsmob.c: New file.
7691 * guile/scm-iterator.c: New file.
7692 * guile/scm-lazy-string.c: New file.
7693 * guile/scm-math.c: New file.
7694 * guile/scm-objfile.c: New file.
7695 * guile/scm-ports.c: New file.
7696 * guile/scm-pretty-print.c: New file.
7697 * guile/scm-safe-call.c: New file.
7698 * guile/scm-string.c: New file.
7699 * guile/scm-symbol.c: New file.
7700 * guile/scm-symtab.c: New file.
7701 * guile/scm-type.c: New file.
7702 * guile/scm-utils.c: New file.
7703 * guile/scm-value.c: New file.
7704 * guile/lib/gdb.scm: New file.
7705 * guile/lib/gdb/boot.scm: New file.
7706 * guile/lib/gdb/experimental.scm: New file.
7707 * guile/lib/gdb/init.scm: New file.
7708 * guile/lib/gdb/iterator.scm: New file.
7709 * guile/lib/gdb/printing.scm: New file.
7710 * guile/lib/gdb/types.scm: New file.
7711 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7712 (VPATH): Add $(GUILE_SRCDIR).
7713 (GUILE_DIR): New variable.
7714 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7715 (all): Add stamp-guile dependency.
7716 (stamp-guile): New rule.
7717 (clean-guile, install-guile, uninstall-guile): New rules.
7718 (install-only): Add install-guile dependency.
7719 (uninstall): Add uninstall-guile dependency.
7720 (clean): Add clean-guile dependency.
7722 2014-02-09 Doug Evans <xdje42@gmail.com>
7724 Revert this patch (which I approved, mea culpa).
7726 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7728 * Makefile.in (all-lib): Remove.
7729 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7731 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7733 Fix Python stack corruption.
7734 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7737 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7739 * Makefile.in (all-lib): Remove.
7740 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7742 2014-02-07 Doug Evans <dje@google.com>
7744 * extension-priv.h (extension_language_script_ops): Add comment.
7745 (extension_language_ops): Add comment.
7746 (active_ext_lang_state): Fix typo in comment.
7748 2014-02-07 Pedro Alves <palves@redhat.com>
7750 PR breakpoints/16292
7751 * infrun.c (handle_signal_stop) <signal arrives while stepping
7752 over a breakpoint>: Switch back to the stepping thread.
7754 2014-02-07 Yao Qi <yao@codesourcery.com>
7756 * target.c (target_xfer_partial): Return zero if LEN is zero.
7758 2014-02-07 Yao Qi <yao@codesourcery.com>
7760 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7761 (ld_so_xfer_auxv): Likewise.
7762 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7763 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7764 * corelow.c (core_xfer_partial): Likewise.
7765 * ctf.c (ctf_xfer_partial): Likewise.
7766 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7767 (darwin_xfer_partial): Likewise.
7768 * exec.c (exec_xfer_partial): Likewise.
7769 * gnu-nat.c (gnu_xfer_partial): Likewise.
7770 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7771 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7772 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7773 * linux-nat.c (linux_xfer_siginfo): Likewise.
7774 (linux_proc_xfer_spu): Likewise.
7775 * procfs.c (procfs_xfer_partial): Likewise.
7776 * record-full.c (record_full_xfer_partial): Likewise.
7777 (record_full_core_xfer_partial): Likewise.
7778 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7779 * remote.c (remote_write_qxfer): Likewise.
7780 (remote_write_qxfer, remote_read_qxfer): Likewise.
7781 (remote_xfer_partial): Likewise.
7782 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7783 (rs6000_xfer_shared_libraries): Likewise.
7784 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7785 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7786 (spu_xfer_partial): Likewise.
7787 * target.c (memory_xfer_partial_1): Likewise.
7788 * tracepoint.c (tfile_xfer_partial): Likewise.
7789 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7790 (windows_xfer_partial): Likewise.
7792 2014-02-07 Yao Qi <yao@codesourcery.com>
7794 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7796 (core_xfer_shared_libraries_aix): Likewise.
7797 * gdbarch.c, gdbarch.h: Regenerated.
7798 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7799 ULONGEST. Change 'len_avail' type to ULONGEST.
7800 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7801 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7803 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7805 2014-02-07 Yao Qi <yao@codesourcery.com>
7807 * corefile.c (memory_error): Get 'exception' from ERR and pass
7808 'exception' to throw_error.
7810 2014-02-06 Doug Evans <xdje42@gmail.com>
7812 * configure.ac (libpython checking): Remove all but python.o from
7813 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7814 * configure: Regenerate.
7816 * Makefile.in (SFILES): Add extension.c.
7817 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7818 (COMMON_OBS): Add extension.o.
7819 * extension.h: New file.
7820 * extension-priv.h: New file.
7821 * extension.c: New file.
7823 * python/python-internal.h: #include "extension.h".
7824 (gdbpy_auto_load_enabled): Declare.
7825 (gdbpy_apply_val_pretty_printer): Declare.
7826 (gdbpy_apply_frame_filter): Declare.
7827 (gdbpy_preserve_values): Declare.
7828 (gdbpy_breakpoint_cond_says_stop): Declare.
7829 (gdbpy_breakpoint_has_cond): Declare.
7830 (void source_python_script_for_objfile): Delete.
7831 * python/python.c: #include "extension-priv.h".
7832 Delete inclusion of "observer.h".
7833 (extension_language_python): Moved here and renamed from
7834 script_language_python in py-auto-load.c.
7835 Redefined to be of type extension_language_defn.
7836 (python_extension_script_ops): New global.
7837 (python_extension_ops): New global.
7838 (struct python_env): New member previous_active.
7839 (restore_python_env): Call restore_active_ext_lang.
7840 (ensure_python_env): Call set_active_ext_lang.
7841 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7843 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7845 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7847 (gdbpy_eval_from_control_command): Renamed from
7848 eval_python_from_control_command, made static. New arg extlang.
7849 (gdbpy_source_script) Renamed from source_python_script, made static.
7851 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7852 result to int. New arg extlang.
7853 (gdbpy_source_objfile_script): Renamed from
7854 source_python_script_for_objfile, made static. New arg extlang.
7855 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7856 static. New args extlang, extlang_printers. Change result type to
7858 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7859 static. New arg extlang. Rename arg printers to extlang_printers
7860 and change type to ext_lang_type_printers *.
7861 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7862 static. Replace argument arg with extlang, extlang_printers.
7863 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7864 (!HAVE_PYTHON, source_python_script): Delete.
7865 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7866 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7867 (!HAVE_PYTHON, start_type_printers): Delete.
7868 (!HAVE_PYTHON, apply_type_printers): Delete.
7869 (!HAVE_PYTHON, free_type_printers): Delete.
7870 (_initialize_python): Delete call to observer_attach_before_prompt.
7871 (finalize_python): Set/restore active extension language.
7872 (gdbpy_finish_initialization) Renamed from
7873 finish_python_initialization, made static. New arg extlang.
7874 (gdbpy_initialized): New function.
7875 * python/python.h: #include "extension.h". Delete #include
7876 "value.h", "mi/mi-cmds.h".
7877 (extension_language_python): Declare.
7878 (GDBPY_AUTO_FILE_NAME): Delete.
7879 (enum py_bt_status): Moved to extension.h and renamed to
7881 (enum frame_filter_flags): Moved to extension.h.
7882 (enum py_frame_args): Moved to extension.h and renamed to
7883 ext_lang_frame_args.
7884 (finish_python_initialization): Delete.
7885 (eval_python_from_control_command): Delete.
7886 (source_python_script): Delete.
7887 (apply_val_pretty_printer): Delete.
7888 (apply_frame_filter): Delete.
7889 (preserve_python_values): Delete.
7890 (gdbpy_script_language_defn): Delete.
7891 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7892 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7894 * auto-load.c: #include "extension.h".
7895 (GDB_AUTO_FILE_NAME): Delete.
7896 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7897 (script_language_gdb): Delete, moved to extension.c and renamed to
7898 extension_language_gdb.
7899 (source_gdb_script_for_objfile): Delete.
7900 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7901 (loaded_script): Change type of language member to
7902 struct extension_language_defn *.
7903 (init_loaded_scripts_info): Initialize
7904 unsupported_script_warning_printed.
7905 (maybe_add_script): Make static. Change type of language arg to
7906 struct extension_language_defn *.
7907 (clear_section_scripts): Reset unsupported_script_warning_printed.
7908 (auto_load_objfile_script_1): Rewrite to use extension language API.
7909 (auto_load_objfile_script): Make public. Remove support-compiled-in
7910 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7911 (source_section_scripts): Rewrite to use extension language API.
7912 (load_auto_scripts_for_objfile): Rewrite to use
7913 auto_load_scripts_for_objfile.
7914 (collect_matching_scripts_data): Change type of language member to
7915 struct extension_language_defn *.
7916 (auto_load_info_scripts): Change type of language arg to
7917 struct extension_language_defn *.
7918 (unsupported_script_warning_print): New function.
7919 (script_not_found_warning_print): Make static.
7920 (_initialize_auto_load): Rewrite construction of scripts-directory
7922 * auto-load.h (struct objfile): Add forward decl.
7923 (struct script_language): Delete.
7924 (struct auto_load_pspace_info): Add forward decl.
7925 (struct extension_language_defn): Add forward decl.
7926 (maybe_add_script): Delete.
7927 (auto_load_objfile_script): Declare.
7928 (script_not_found_warning_print): Delete.
7929 (auto_load_info_scripts): Update prototype.
7930 (auto_load_gdb_scripts_enabled): Declare.
7931 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7932 auto_load_python_scripts_enabled and made public.
7933 (script_language_python): Delete, moved to python.c.
7934 (gdbpy_script_language_defn): Delete.
7935 (info_auto_load_python_scripts): Update to use
7936 extension_language_python.
7938 * breakpoint.c (condition_command): Replace call to
7939 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7940 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7941 with call to breakpoint_ext_lang_cond_says_stop.
7942 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7943 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7944 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7945 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7947 (local_setattro): Print name of extension language with existing
7950 * valprint.c (val_print, value_print): Update to call
7951 apply_ext_lang_val_pretty_printer.
7952 * cp-valprint.c (cp_print_value): Update call to
7953 apply_ext_lang_val_pretty_printer.
7954 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7955 (gdbpy_apply_val_pretty_printer): Renamed from
7956 apply_val_pretty_printer. New arg extlang.
7957 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7959 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7960 extension language API.
7961 * cli/cli-script.c (execute_control_command): Update to call
7962 eval_ext_lang_from_control_command.
7964 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7965 enum ext_lang_bt_status values. Update call to
7966 apply_ext_lang_frame_filter.
7967 (mi_cmd_stack_list_locals): Ditto.
7968 (mi_cmd_stack_list_args): Ditto.
7969 (mi_cmd_stack_list_variables): Ditto.
7970 * mi/mi-main.c: Delete #include "python/python-internal.h".
7971 Add #include "extension.h".
7972 (mi_cmd_list_features): Replace reference to python internal variable
7973 gdb_python_initialized with call to ext_lang_initialized_p.
7975 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7976 Update to use enum ext_lang_frame_args. Update to call
7977 apply_ext_lang_frame_filter.
7978 * python/py-framefilter.c (extract_sym): Update to use enum
7980 (extract_value, py_print_type, py_print_value): Ditto.
7981 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7982 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7983 (py_print_frame): Ditto.
7984 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7985 New arg extlang. Update to use enum ext_lang_bt_status.
7987 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7988 finish_python_initialization. Replace with call to
7989 finish_ext_lang_initialization.
7991 * typeprint.c (do_free_global_table): Update to call
7992 free_ext_lang_type_printers.
7993 (create_global_typedef_table): Update to call
7994 start_ext_lang_type_printers.
7995 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7996 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7997 (type_print_options): Change type of global_printers from "void *"
7998 to "struct ext_lang_type_printers *".
8000 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8001 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8002 (gdbpy_preserve_values): Renamed from preserve_python_values.
8004 (!HAVE_PYTHON, preserve_python_values): Delete.
8006 * utils.c (quit_flag): Delete, moved to extension.c.
8007 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8010 * eval.c: Delete #include "python/python.h".
8011 * main.c: Delete #include "python/python.h".
8013 * defs.h: Update comment.
8015 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8019 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8021 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8024 2014-02-05 Yao Qi <yao@codesourcery.com>
8026 * remote.c (remote_pass_signals): Remove local 'buf' and use
8028 (remote_program_signals): Likewise.
8030 2014-02-05 Yao Qi <yao@codesourcery.com>
8032 * ctf.c: Include "inferior.h" and "gdbthread.h".
8033 (CTF_PID): A new macro.
8034 (ctf_open): Call inferior_appeared and add_thread_silent.
8035 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8036 (ctf_thread_alive): New function.
8037 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8039 2014-02-05 Yao Qi <yao@codesourcery.com>
8043 2013-05-24 Yao Qi <yao@codesourcery.com>
8045 * tracepoint.c (TFILE_PID): Remove.
8046 (tfile_open): Don't add thread and inferior.
8047 (tfile_close): Don't set 'inferior_ptid'. Don't call
8048 exit_inferior_silent.
8049 (tfile_thread_alive): Remove.
8050 (init_tfile_ops): Don't set field 'to_thread_alive' of
8053 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8055 * remote.c (remote_start_remote): Call remote_check_symbols even
8056 if only symbol-file (not file) has been given.
8058 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8060 * gdbarch.sh (skip_entrypoint): New callback.
8061 * gdbarch.c, gdbarch.h: Regenerate.
8062 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8063 * infrun.c (fill_in_stop_func): Likewise.
8064 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8065 (ppc_elfv2_elf_make_msymbol_special): New function.
8066 (ppc_elfv2_skip_entrypoint): Likewise.
8067 (ppc_linux_init_abi): Install them for ELFv2.
8069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8071 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8072 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8073 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8074 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8075 structures returned in GPRs.
8077 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8080 offset to the stack parameter list for the ELFv2 ABI.
8082 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8084 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8085 set_gdbarch_convert_from_func_ptr_addr and
8086 set_gdbarch_elf_make_msymbol_special for ELFv1.
8087 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8088 function descriptors on ELFv1.
8089 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8090 set up r12 at function entry.
8092 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8094 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8095 (struct gdbarch_tdep): New member elf_abi.
8097 * rs6000-tdep.c: Include "elf/ppc64.h".
8098 (rs6000_gdbarch_init): Detect ELF ABI version.
8100 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8103 within a register pair holding a DFP 128-bit value on little-endian.
8104 (ppc64_sysv_abi_return_value_base): Likewise.
8105 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8106 (dfp_pseudo_register_write): Likewise.
8108 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8111 offset on little-endian when passing _Decimal32.
8112 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8114 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8116 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8117 of the overlapped FP register within the VSX register on little-
8119 (efpr_pseudo_register_write): Likewise.
8121 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8123 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8124 offset on little-endian when passing small structures.
8126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8128 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8129 (struct ppc64_sysv_argpos): New data structure.
8130 (ppc64_sysv_abi_push_float): Remove.
8131 (ppc64_sysv_abi_push_val): New function.
8132 (ppc64_sysv_abi_push_integer): Likewise.
8133 (ppc64_sysv_abi_push_freg): Likewise.
8134 (ppc64_sysv_abi_push_vreg): Likewise.
8135 (ppc64_sysv_abi_push_param): Likewise.
8136 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8137 (ppc64_sysv_abi_return_value_base): New function.
8138 (ppc64_sysv_abi_return_value): Refactor to use it.
8140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8142 * NEWS: Document new target powerpc64le-*-linux*.
8144 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8146 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8147 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8149 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8150 register set used in ELF core dumps. Add floating-point register set.
8152 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8154 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8155 dwarf2_to_gdb[] table using symbolic constants. Adjust
8156 penultimate entry from number representing the PC register
8157 to symbolic constant representing the MDR register. Add
8158 constant for the PC register to the end of the table.
8160 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8162 * bsd-kvm.c: Include <sys/param.h>
8164 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8166 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8168 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8170 * ada-lang.h (clear_ada_sym_cache): Delete.
8172 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8174 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8176 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8178 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8179 the sigreturn register save area only if the syscall is
8182 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8184 * valops.c (value_slice): Minor reformatting.
8186 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8188 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8190 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8192 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8194 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8195 (ada_ignore_descriptive_types_p): New static global.
8196 (find_parallel_type_by_descriptive_type): Return immediately
8197 if ada_ignore_descriptive_types_p is set.
8198 (_initialize_ada_language): Register new commands "maintenance
8199 set ada", "maintenance show ada", "maintenance set ada
8200 ignore-descriptive-types" and "maintenance show ada
8201 ignore-descriptive-types".
8202 * NEWS: Add entry for new "maint ada set/show
8203 ignore-descriptive-types" commands.
8205 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8207 * record-btrace.c (record_btrace_close): Call btrace_teardown
8210 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8212 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8215 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8217 * ada-typeprint (type_is_full_subrange_of_target_type):
8219 (print_range): Add parameter bounds_prefered_p. If not set,
8220 try printing range types using the name of their base type.
8221 (print_range_type): Add parameter bounds_prefered_p.
8222 Use it in call to print_range.
8223 (print_array_type, ada_print_type): Update calls to print_range
8224 and print_range_type.
8226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8228 * ada-typeprint.c (print_array_type, print_choices, print_range)
8229 (print_range_bound, print_dynamic_range_bound, print_range_type):
8232 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8234 * ada-typeprint.c (print_range): Add missing empty line
8235 after local declaration.
8237 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8239 * ada-valprint.c (print_optional_low_bound): Get index_type's
8240 target type for as long as it is a TYPE_CODE_RANGE.
8242 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8244 * procfs.c (procfs_make_note_section): Remove assertion and
8247 2014-01-24 Yao Qi <yao@codesourcery.com>
8249 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8250 * corelow.c (get_core_siginfo): Likewise.
8252 2014-01-24 Yao Qi <yao@codesourcery.com>
8254 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8255 ULONGEST. Don't check 'len' is negative.
8256 (remote_write_bytes): Change type of 'len' to ULONGEST.
8258 2014-01-23 Tom Tromey <tromey@redhat.com>
8261 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8262 Handle exception from frame.block.
8263 (FrameVars.fetch_frame_locals): Likewise.
8265 2014-01-23 Tom Tromey <tromey@redhat.com>
8268 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8269 on a NULL pointer. Move "goto error" to correct place.
8271 2014-01-23 Tom Tromey <tromey@redhat.com>
8274 * python/py-framefilter.c (apply_frame_filter): Call
8275 ensure_python_env after computing gdbarch.
8277 2014-01-23 Yao Qi <yao@codesourcery.com>
8279 * target.c (raw_memory_xfer_partial): Change argument type
8280 from void * to gdb_byte *.
8281 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8283 2014-01-22 Doug Evans <dje@google.com>
8285 New gdbserver option --debug-format=timestamp.
8288 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8290 * syscalls/s390x-linux.xml: New file.
8291 * syscalls/s390-linux.xml: New file.
8292 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8293 (XML_SYSCALL_FILENAME_S390X): Likewise.
8294 (op_svc): New enum value for SVC opcode.
8295 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8296 (s390_linux_get_syscall_number): New function.
8297 (s390_gdbarch_init): Register '*get_syscall_number' and the
8298 syscall xml file name.
8299 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8300 "s390-linux.xml" and "s390x-linux.xml".
8301 * NEWS: Announce new feature.
8303 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8305 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8307 2014-01-22 Pedro Alves <palves@redhat.com>
8309 * xtensa-config.c: Include defs.h.
8311 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8313 * common/common-utils.h: Add "ARI:" comment beside __func__
8316 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8318 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8319 documentation a bit.
8321 2014-01-21 Roland McGrath <mcgrathr@google.com>
8323 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8324 * configure: Regenerate.
8325 * aclocal.m4: Regenerate.
8326 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8327 New substituted variables.
8328 (install-strip): New target.
8329 (INSTALL_SCRIPT): New substituted variable.
8330 (FLAGS_TO_PASS): Add it.
8331 (install-only): Use $(INSTALL_SCRIPT) rather than
8332 $(INSTALL_PROGRAM) for gcore.
8334 2014-01-20 Tom Tromey <tromey@redhat.com>
8336 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8339 2014-01-20 Tom Tromey <tromey@redhat.com>
8341 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8342 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8343 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8344 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8345 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8346 (struct cmd_list_element) <flags>: Remove.
8347 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8348 doc_allocated>: New fields.
8349 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8351 * maint.c (maintenance_do_deprecate): Update.
8352 * top.c (execute_command): Update.
8354 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8356 * xtensa-linux-nat.c: Include asm/ptrace.h.
8358 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8360 * Makefile.in (SFILES): Add d-support.c.
8361 (COMMON_OBS): Add d-support.o.
8362 * d-lang.h (d_parse_symbol): Add comment, now defined in
8364 * d-lang.c (parse_call_convention)
8365 (parse_attributes, parse_function_types)
8366 (parse_function_args, parse_type, parse_identifier)
8367 (call_convention_p, d_parse_symbol): Move functions to ...
8368 * d-support.c: ... New file.
8370 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8372 * d-lang.h (d_parse_symbol): Add declaration.
8373 * d-lang.c (extract_identifiers)
8374 (extract_type_info): Remove functions.
8375 (parse_call_convention, parse_attributes)
8376 (parse_function_types, parse_function_args)
8377 (parse_type, parse_identifier, call_convention_p)
8378 (d_parse_symbol): New functions.
8379 (d_demangle): Use d_parse_symbol to demangle D symbols.
8381 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8383 * d-lang.h (struct builtin_d_type): New data type.
8384 (builtin_d_type): Add declaration.
8385 * d-lang.c (d_language_arch_info, build_d_types)
8386 (builtin_d_type): New functions.
8387 (enum d_primitive_types): New data type.
8388 (d_language_defn): Change c_language_arch_info to
8389 d_language_arch_info.
8390 (d_type_data): New static variable.
8391 (_initialize_d_language): Initialize d_type_data.
8393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8395 * d-lang.h (d_main_name): Add declaration.
8396 * d-lang.c (d_main_name): New function.
8397 * symtab.c (find_main_name): Add call to d_main_name.
8399 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8401 * d-lang.c (d_language_defn): Change macro_expansion_c to
8404 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8406 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8408 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8410 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8411 gdb_exception" declaration.
8412 * remote.c (getpkt_or_notif_sane): Likewise.
8414 2014-01-17 Doug Evans <dje@google.com>
8416 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8417 function, contents of dirnames_to_char_ptr_vec_append moved here.
8418 (delim_string_to_char_ptr_vec): New function.
8419 (dirnames_to_char_ptr_vec_append): Rewrite.
8420 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8422 2014-01-17 Doug Evans <dje@google.com>
8424 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8426 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8427 #include "common-utils.h".
8428 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8429 * common/vec.h (VEC_ASSERT_PASS): Update.
8430 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8431 (MACH_CHECK_ERROR): Update.
8433 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8435 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8437 * gdbarch.h: Regenerate.
8439 2014-01-16 Tom Tromey <tromey@redhat.com>
8441 * value.c (struct value) <regnum>: Move earlier.
8443 2014-01-16 Tom Tromey <tromey@redhat.com>
8445 * remote.c (extended_remote_create_inferior): Rename from
8446 extended_remote_create_inferior_1. Add "ops" argument. Remove
8449 2014-01-16 Pedro Alves <palves@redhat.com>
8451 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8452 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8455 2014-01-16 Doug Evans <dje@google.com>
8457 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8461 * btrace.h (btrace_thread_flag): New.
8462 (struct btrace_thread_info) <flags>: New.
8463 * record-btrace.c (record_btrace_resume_thread)
8464 (record_btrace_find_thread_to_move, btrace_step_no_history)
8465 (btrace_step_stopped, record_btrace_start_replaying)
8466 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8467 (record_btrace_find_resume_thread): New.
8468 (record_btrace_resume, record_btrace_wait): Extend.
8469 (record_btrace_can_execute_reverse): New.
8470 (record_btrace_open): Fail in non-stop mode.
8471 (record_btrace_set_replay): Split into this, ...
8472 (record_btrace_stop_replaying): ... this, ...
8473 (record_btrace_clear_histories): ... and this.
8474 (init_record_btrace_ops): Init to_can_execute_reverse.
8475 * NEWS: Announce it.
8477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8479 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8480 (forward_target_decr_pc_after_break)
8481 (target_decr_pc_after_break): New.
8482 * target.c (forward_target_decr_pc_after_break)
8483 (target_decr_pc_after_break): New.
8484 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8485 instead of gdbarch_decr_pc_after_break.
8486 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8487 instead of gdbarch_decr_pc_after_break.
8488 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8489 instead of gdbarch_decr_pc_after_break.
8490 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8491 instead of gdbarch_decr_pc_after_break.
8492 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8493 instead of gdbarch_decr_pc_after_break.
8494 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8495 instead of gdbarch_decr_pc_after_break.
8497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8499 * btrace.c: Include regcache.h.
8500 (btrace_add_pc): New.
8501 (btrace_enable): Call btrace_add_pc.
8502 (btrace_is_empty): New.
8503 * btrace.h (btrace_is_empty): New.
8504 * record-btrace.c (require_btrace, record_btrace_info): Call
8507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8509 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8510 Support delta reads.
8511 (linux_disable_btrace): Change return type.
8512 * common/linux-btrace.h (linux_read_btrace): Change parameters
8513 and return type to allow error reporting. Update users.
8514 (linux_disable_btrace): Change return type. Update users.
8515 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8517 (btrace_error): New.
8518 (btrace_block) <begin>: Comment on BEGIN == 0.
8519 * btrace.c (btrace_compute_ftrace): Start from the end of
8521 (btrace_stitch_trace, btrace_clear_history): New.
8522 (btrace_fetch): Read delta trace, return if replaying.
8523 (btrace_clear): Move clear history code to btrace_clear_history.
8524 (parse_xml_btrace): Throw an error if parsing failed.
8525 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8526 and return type to allow error reporting.
8527 (target_read_btrace): Change parameters and return type to allow
8529 * target.c (target_read_btrace): Update.
8530 * remote.c (remote_read_btrace): Support delta reads. Pass
8532 * NEWS: Announce it.
8534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8536 * record.h (record_btrace_frame_unwind)
8537 (record_btrace_tailcall_frame_unwind): New declarations.
8538 * dwarf2-frame: Include record.h
8539 (dwarf2_frame_cfa): Throw an error for btrace frames.
8540 * record-btrace.c: Include hashtab.h.
8541 (btrace_get_bfun_name): New.
8542 (btrace_call_history): Call btrace_get_bfun_name.
8543 (struct btrace_frame_cache): New.
8545 (bfcache_hash, bfcache_eq, bfcache_new): New.
8546 (btrace_get_frame_function): New.
8547 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8548 (record_btrace_frame_this_id): Compute own id.
8549 (record_btrace_frame_prev_register): Provide PC, throw_error
8550 for all other registers.
8551 (record_btrace_frame_sniffer): Detect btrace frames.
8552 (record_btrace_tailcall_frame_sniffer): New.
8553 (record_btrace_frame_dealloc_cache): New.
8554 (record_btrace_frame_unwind): Add new functions.
8555 (record_btrace_tailcall_frame_unwind): New.
8556 (_initialize_record_btrace): Allocate cache.
8557 * btrace.c (btrace_clear): Call reinit_frame_cache.
8558 * NEWS: Announce it.
8560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8562 * record-btrace.c (record_btrace_set_replay)
8563 (record_btrace_goto_begin, record_btrace_goto_end)
8564 (record_btrace_goto): New.
8565 (init_record_btrace_ops): Initialize them.
8566 * NEWS: Announce it.
8568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8570 * record-btrace.c (record_btrace_find_new_threads)
8571 (record_btrace_thread_alive): New.
8572 (init_record_btrace_ops): Initialize to_find_new_threads and
8575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8577 * record-btrace.c (record_btrace_resume): New.
8578 (record_btrace_wait): New.
8579 (init_record_btrace_ops): Initialize to_wait and to_resume.
8581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8583 * record-btrace.c (record_btrace_xfer_partial)
8584 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8585 (record_btrace_allow_memory_access): New.
8586 (init_record_btrace_ops): Initialize new methods.
8587 * target.c (raw_memory_xfer_partial): Bail out if target reports
8588 that this memory is not available.
8590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8592 * target.h (target_ops) <to_insert_breakpoint>
8593 <to_remove_breakpoint>: Add target_ops parameter.
8594 (forward_target_insert_breakpoint): New.
8595 (forward_target_remove_breakpoint): New.
8596 (memory_remove_breakpoint, memory_insert_breakpoint):
8597 Add target_ops parameter.
8598 * target.c (target_insert_breakpoint): Split into this and ...
8599 (forward_target_insert_breakpoint): ... this.
8600 (target_remove_breakpoint): Split into this and ...
8601 (forward_target_remove_breakpoint): ... this.
8602 (debug_to_insert_breakpoint): Add target_ops parameter.
8603 Call forward_target_insert_breakpoint.
8604 (debug_to_remove_breakpoint): Add target_ops parameter.
8605 Call forward_target_remove_breakpoint.
8606 (update_current_target): Do not inherit or default to_insert_breakpoint
8607 and to_remove_breakpoint.
8608 * corelow.c (ignore): Add target_ops parameter.
8609 * exec.c (ignore): Add target_ops parameter.
8610 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8611 Add target_ops parameter.
8612 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8613 Add target_ops parameter.
8614 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8615 Add target_ops parameter.
8616 * record-full.c (record_full_beneath_to_insert_breakpoint)
8617 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8618 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8619 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8620 (record_full_core_remove_breakpoint): Add target_ops parameter.
8622 (record_full_beneath_to_insert_breakpoint_ops)
8623 (record_full_beneath_to_remove_breakpoint_ops)
8624 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8625 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8626 tmp_to_remove_breakpoint_ops,
8627 record_full_beneath_to_insert_breakpoint_ops, and
8628 record_full_beneath_to_remove_breakpoint_ops.
8629 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8630 (m32r_remove_breakpoint): Add target_ops parameter.
8631 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8632 Add target_ops parameter.
8633 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8634 Add target_ops parameter.
8636 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8637 Markus Metzger <markus.t.metzger@intel.com>
8639 * record-btrace.c: Include frame-unwind.h.
8640 (record_btrace_frame_unwind_stop_reason)
8641 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8642 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8644 (init_record_btrace_ops): Install it.
8646 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8648 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8651 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8653 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8656 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8658 * frame-unwind.c: Include target.h.
8659 (frame_unwind_try_unwinder): New function with code from ...
8660 (frame_unwind_find_by_frame): ... here. New variable
8661 unwinder_from_target, call also target_get_unwinder)
8662 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8663 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8664 * target.h (struct target_ops): New fields to_get_unwinder and
8665 to_get_tailcall_unwinder.
8666 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8670 * record-btrace.c (record_btrace_fetch_registers)
8671 (record_btrace_store_registers)
8672 (record_btrace_to_prepare_to_store): New.
8673 (init_record_btrace_ops): Add the above.
8675 2014-01-16 Tom Tromey <tromey@redhat.com>
8677 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8678 * target.h (struct target_ops) <to_prepare_to_store>: Add
8680 (target_prepare_to_store): Add argument.
8681 * target.c (debug_to_prepare_to_store): Add argument.
8682 (update_current_target): Update.
8683 * remote.c (remote_prepare_to_store): Add 'self' argument.
8684 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8685 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8686 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8687 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8689 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8690 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8691 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8692 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8693 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8697 * btrace.h (replay) <replay>: New.
8698 (btrace_is_replaying): New.
8699 * btrace.c (btrace_clear): Free replay iterator.
8700 (btrace_is_replaying): New.
8701 * record-btrace.c (record_btrace_is_replaying): New.
8702 (record_btrace_info): Print insn number if replaying.
8703 (record_btrace_insn_history): Start at replay position.
8704 (record_btrace_call_history): Start at replay position.
8705 (init_record_btrace_ops): Init to_record_is_replaying.
8707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8709 * record-btrace.c (record_btrace_insn_history_range): Include
8711 (record_btrace_insn_history_from): Adjust range.
8712 (record_btrace_call_history_range): Include
8714 (record_btrace_call_history_from): Adjust range.
8715 * NEWS: Announce changes.
8717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8719 * record.h (enum record_print_flag)
8720 <record_print_indent_calls>: New.
8721 * record.c (get_call_history_modifiers): Recognize /c modifier.
8722 (_initialize_record): Document /c modifier.
8723 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8724 Reorder fields. Optionally indent the function name. Update
8726 * NEWS: Announce changes.
8728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8730 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8734 * btrace.c (ftrace_new_function): Start counting at one.
8735 * record-btrace.c (record_btrace_info): Adjust number of calls
8737 * NEWS: Announce it.
8739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8741 * record-btrace.c (btrace_call_history_insn_range): Print
8742 insn range as [begin, end].
8744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8746 * btrace.h (struct btrace_func_link): New.
8747 (enum btrace_function_flag): New.
8748 (struct btrace_inst): Rename to ...
8749 (struct btrace_insn): ...this. Update all users.
8750 (struct btrace_func) <ibegin, iend>: Remove.
8751 (struct btrace_func_link): New.
8752 (struct btrace_func): Rename to ...
8753 (struct btrace_function): ...this. Update all users.
8754 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8755 (number, level, flags>: New.
8756 (struct btrace_insn_iterator): Rename to ...
8757 (struct btrace_insn_history): ...this.
8759 (struct btrace_insn_iterator, btrace_call_iterator): New.
8760 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8761 (struct btrace_target_info) <begin, end, level>
8762 <insn_history, call_history>: New.
8763 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8764 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8765 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8766 (btrace_call_number, btrace_call_begin, btrace_call_end)
8767 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8768 (btrace_find_function_by_number, btrace_set_insn_history)
8769 (btrace_set_call_history): New.
8770 * btrace.c (btrace_init_insn_iterator)
8771 (btrace_init_func_iterator, compute_itrace): Remove.
8772 (ftrace_print_function_name, ftrace_print_filename)
8773 (ftrace_skip_file): Change
8775 (ftrace_init_func): Remove.
8776 (ftrace_debug): Use new btrace_function fields.
8777 (ftrace_function_switched): Also consider gaining and
8778 losing symbol information).
8779 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8780 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8781 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8783 (ftrace_new_function): Move. Remove debug print.
8784 (ftrace_update_lines, ftrace_update_insns): New.
8785 (ftrace_update_function): Check for call, ret, and jump.
8786 (compute_ftrace): Renamed to ...
8787 (btrace_compute_ftrace): ...this. Rewritten to compute call
8789 (btrace_fetch, btrace_clear): Updated.
8790 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8791 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8792 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8793 (btrace_call_number, btrace_call_begin, btrace_call_end)
8794 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8795 (btrace_find_function_by_number, btrace_set_insn_history)
8796 (btrace_set_call_history): New.
8797 * record-btrace.c (require_btrace): Use new btrace thread
8799 (record_btrace_info, btrace_insn_history)
8800 (record_btrace_insn_history, record_btrace_insn_history_range):
8801 Use new btrace thread info fields and new iterator.
8802 (btrace_func_history_src_line): Rename to ...
8803 (btrace_call_history_src_line): ...this. Use new btrace
8805 (btrace_func_history): Rename to ...
8806 (btrace_call_history): ...this. Use new btrace thread info
8807 fields and new iterator.
8808 (record_btrace_call_history, record_btrace_call_history_range):
8809 Use new btrace thread info fields and new iterator.
8811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8813 * frame.h (frame_id_build_unavailable_stack_special): New.
8814 * frame.c (frame_id_build_unavailable_stack_special): New.
8816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8818 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8819 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8820 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8822 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8823 (i386_insn_is_jump, i386_jmp_p): New.
8824 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8825 insn_is_jump to gdbarch.
8826 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8827 * gdbarch.h: Regenerated.
8828 * gdbarch.c: Regenerated.
8829 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8830 (default_insn_is_jump): New.
8831 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8832 (default_insn_is_jump): New.
8834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8836 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8838 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8839 (btrace_read_type) <btrace_read_new>: Change to ...
8840 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8844 * common/linux-btrace.c (linux_read_btrace): Free trace from
8847 2014-01-15 Doug Evans <dje@google.com>
8849 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8852 2014-01-15 Tom Tromey <tromey@redhat.com>
8854 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8855 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8856 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8857 (set_objfile_main_name): New function.
8858 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8859 language_of_main>: New fields.
8860 (set_objfile_main_name): Declare.
8861 * symtab.c (find_main_name): Loop over objfiles to find the main
8863 (set_main_name): Now static.
8864 (get_main_info): Add comment.
8865 * symtab.h (set_main_name): Don't declare.
8867 2014-01-15 Tom Tromey <tromey@redhat.com>
8869 * symtab.c (main_progspace_key): New global.
8870 (struct main_info): New.
8871 (name_of_main, language_of_main): Remove.
8872 (get_main_info, main_info_cleanup): New function.
8873 (set_main_name, main_name, main_language): Use get_main_info.
8874 (_initialize_symtab): Initialize main_progspace_key.
8876 2014-01-15 Tom Tromey <tromey@redhat.com>
8878 * dbxread.c (process_one_symbol): Update.
8879 * dwarf2read.c (read_partial_die): Update.
8880 * symfile.c (set_initial_language): Call main_language.
8881 * symtab.c (language_of_main): Now static.
8882 (set_main_name): Add 'lang' parameter.
8883 (find_main_name): Update.
8884 (main_language): New function.
8885 (symtab_observer_executable_changed): Update.
8886 * symtab.h (set_main_name): Update.
8887 (language_of_main): Remove.
8888 (main_language): Declare.
8890 2014-01-15 Tom Tromey <tromey@redhat.com>
8892 * symfile.c (init_entry_point_info): Use new "initialized" field.
8894 * objfiles.h (struct entry_point) <initialized>: New field.
8895 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8896 (struct objfile) <ei>: ...here. Remove.
8897 * objfiles.c (entry_point_address_query): Update.
8899 2014-01-15 Tom Tromey <tromey@redhat.com>
8901 * objfiles.c (entry_point_address_query): Relocate entry point
8903 (objfile_relocate1): Do not relocate entry point address.
8904 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8905 <the_bfd_section_index>: New field.
8906 * symfile.c (init_entry_point_info): Find the entry point's
8909 2014-01-15 Tom Tromey <tromey@redhat.com>
8911 * solib-frv.c (enable_break): Use entry_point_address_query.
8913 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8915 * NEWS: Add note on improved process record-replay on
8916 arm*-linux* targets.
8918 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8920 * arm-tdep.c (enum arm_record_result): New enum.
8921 (arm_record_unsupported_insn): New function.
8922 (arm_record_coproc_data_proc): Removed.
8923 (thumb2_record_ld_st_multiple): New function.
8924 (thumb2_record_ld_st_dual_ex_tbb): New function.
8925 (thumb2_record_data_proc_sreg_mimm): New function.
8926 (thumb2_record_ps_dest_generic): New function.
8927 (thumb2_record_branch_misc_cntrl): New function.
8928 (thumb2_record_str_single_data): New function.
8929 (thumb2_record_ld_mem_hints): New function.
8930 (thumb2_record_ld_word): New function.
8931 (thumb2_record_lmul_lmla_div): New function.
8932 (thumb2_record_decode_insn_handler): New function.
8933 (decode_insn): Add thumb32 instruction handlers.
8935 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8937 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8938 (struct arm_linux_record_tdep): Declare.
8939 (arm_canonicalize_syscall): New function.
8940 (arm_all_but_pc_registers_record): New function.
8941 (arm_linux_syscall_record): New function.
8942 (arm_linux_init_abi): Add syscall recording constructs.
8943 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8944 decoding. (arm_record_coproc_data_proc): Update arm syscall
8946 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8947 <arm_syscall_record>: New field.
8948 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8953 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8954 register for push instruction recording.
8956 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8958 * arm-tdep.c (thumb_record_misc): Update to correct logical
8959 error while recording ldm, ldmia and pop instructions.
8961 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8963 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8965 2014-01-15 Pedro Alves <palves@redhat.com>
8967 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8968 (go32_resume, go32_fetch_registers, store_register)
8969 (go32_store_registers, go32_prepare_to_store)
8970 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8971 (go32_create_inferior, go32_can_run, go32_terminal_init)
8972 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8975 2014-01-15 Tom Tromey <tromey@redhat.com>
8977 * target.h (async_callback_ftype): New typedef.
8978 (struct target_ops) <to_async>: Use it.
8980 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8982 * python/py-value.c (get_field_type): Remove unnecessary curly
8983 braces for single-statement if block.
8985 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8987 * python/py-type.c (convert_field): Add missing empty line
8990 2014-01-14 Doug Evans <dje@google.com>
8992 * symfile.h (expand_symtabs_matching): Renamed from
8993 expand_partial_symbol_names. Update prototype.
8994 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8995 * symfile.c (expand_symtabs_matching): Renamed from
8996 expand_partial_symbol_names. New args file_matcher, kind.
8997 Rename arg fun to symbol_matcher.
8998 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8999 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9000 ada_expand_partial_symbol_name.
9001 (ada_make_symbol_completion_list): Update to call
9002 expand_symtabs_matching.
9003 (ada_add_global_exceptions): Call expand_symtabs_matching.
9004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9005 call map_symbol_filenames.
9006 * symtab.c (sources_info): Update to call map_symbol_filenames.
9007 (search_symbols): Call expand_symtabs_matching.
9008 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9009 (default_make_symbol_completion_list_break_on): Update to call
9010 expand_symtabs_matching.
9011 (make_source_files_completion_list): Update to call
9012 map_symbol_filenames.
9014 2014-01-14 Doug Evans <dje@google.com>
9016 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9017 (expand_symtabs_symbol_matcher_ftype): New typedef.
9018 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9019 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9020 * symfile.c (expand_partial_symbol_names): Update to use
9021 expand_symtabs_symbol_matcher_ftype.
9022 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9024 Arg name_matcher renamed to symbol_matcher.
9025 * psymtab.c (recursively_search_psymtabs): Update to use
9026 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9028 (expand_symtabs_matching_via_partial): Update to use
9029 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9030 Arg name_matcher renamed to symbol_matcher.
9032 2014-01-14 Doug Evans <dje@google.com>
9034 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9035 (map_partial_symbol_filenames): Ditto.
9036 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9037 (map_partial_symbol_filenames): Ditto.
9038 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9039 (map_partial_symbol_filenames): Ditto.
9040 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9041 (map_partial_symbol_filenames): Ditto.
9042 * symtab.c: Delete #include "psymtab.h".
9044 2014-01-14 Pedro Alves <palves@redhat.com>
9045 Tom Tromey <tromey@redhat.com>
9047 * infrun.c (use_displaced_stepping): Use find_record_target
9048 instead of RECORD_IS_USED.
9049 (adjust_pc_after_break): Use record_full_is_used instead of
9051 * record-btrace.c (record_btrace_open): Call record_preopen
9052 instead of checking RECORD_IS_USED.
9053 * record-full.c (record_full_shortname)
9054 (record_full_core_shortname): New globals.
9055 (record_full_is_used): New function.
9056 (find_full_open): Call record_preopen instead of checking
9058 (init_record_full_ops): Set the target's shortname to
9059 record_full_shortname.
9060 (init_record_full_core_ops): Set the target's shortname to
9061 record_full_core_shortname.
9062 * record-full.h (record_full_is_used): Declare.
9063 * record.c (find_record_target): Make extern.
9064 (record_preopen): New function.
9065 * record.h (RECORD_IS_USED): Delete macro.
9066 (find_record_target, record_preopen): Declare functions.
9068 2014-01-14 Yao Qi <yao@codesourcery.com>
9070 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9071 'len''s type to ULONGEST.
9072 (core_xfer_shared_libraries_aix): Likewise.
9073 * gdbarch.c, gdbarch.h: Regenerated.
9074 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9075 Change type of 'len' to ULONGEST.
9076 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9077 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9079 2014-01-14 Yao Qi <yao@codesourcery.com>
9081 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9082 type of 'len' to ULONGEST.
9083 (linux_xfer_osdata_processgroups): Likewise.
9084 (linux_xfer_osdata_threads): Likewise.
9085 (linux_xfer_osdata_fds): Likewise.
9086 (linux_xfer_osdata_isockets): Likewise.
9087 (linux_xfer_osdata_shm): Likewise.
9088 (linux_xfer_osdata_sem): Likewise.
9089 (linux_xfer_osdata_msg): Likewise.
9090 (linux_common_xfer_osdata): Likewise.
9091 (struct osdata_type) <getter>: Likewise.
9092 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9095 2014-01-14 Yao Qi <yao@codesourcery.com>
9097 * target.h (target_xfer_partial_ftype): Update.
9098 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9100 * aix-thread.c (aix_thread_xfer_partial): Change type of
9101 argument 'len' to ULONGEST.
9102 * auxv.c (procfs_xfer_auxv): Likewise.
9103 (ld_so_xfer_auxv): Likewise.
9104 (memory_xfer_auxv): Likewise.
9105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9107 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9108 * corelow.c (core_xfer_partial): Likewise.
9109 * ctf.c (ctf_xfer_partial): Likewise.
9110 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9112 (darwin_read_dyld_info): Likewise.
9113 (darwin_xfer_partial): Likewise.
9114 * exec.c (section_table_xfer_memory_partial): Likewise.
9115 (exec_xfer_partial): Likewise.
9116 * exec.h (section_table_xfer_memory_partial): Update
9118 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9119 instead of plongest.
9120 (gnu_xfer_partial): Likewise.
9121 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9122 (ia64_hpux_xfer_solib_got): Likewise.
9123 (ia64_hpux_xfer_partial): Likewise.
9124 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9125 * inf-ptrace.c (inf_ptrace_xfer_partial):
9126 * inf-ttrace.c (inf_ttrace_xfer_partial):
9127 * linux-nat.c (linux_xfer_siginfo): Likewise.
9128 (linux_nat_xfer_partial): Likewise.
9129 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9130 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9131 * monitor.c (monitor_xfer_memory): Likewise.
9132 (monitor_xfer_partial): Likewise.
9133 * procfs.c (procfs_xfer_partial): Likewise.
9134 * record-full.c (record_full_xfer_partial): Likewise.
9135 (record_full_core_xfer_partial): Likewise.
9136 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9137 instead of plongest.
9138 (gdbsim_xfer_partial): Likewise.
9139 * remote.c (remote_xfer_partial): Likewise.
9140 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9141 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9144 (rs6000_xfer_shared_libraries): Likewise.
9145 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9147 (sparc_xfer_partial): Likewise.
9148 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9149 (spu_xfer_partial): Likewise.
9150 * spu-multiarch.c (spu_xfer_partial): Likewise.
9151 * target.c (target_read_live_memory): Likewise.
9152 (memory_xfer_live_readonly_partial): Likewise.
9153 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9154 (target_xfer_partial, default_xfer_partial): Likewise.
9155 (current_xfer_partial): Likewise.
9156 * tracepoint.c (tfile_xfer_partial): Likewise.
9157 * windows-nat.c (windows_xfer_memory): Likewise. Call
9158 pulongest instead of plongest.
9159 (windows_xfer_partial): Likewise.
9160 (windows_xfer_shared_libraries): Likewise.
9162 2014-01-14 Yao Qi <yao@codesourcery.com>
9164 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9165 target_xfer_partial_ftype.
9167 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9171 * valops.c (value_struct_elt_bitpos): New function
9172 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9173 object to 'None' if the field name is an empty string ("").
9174 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9175 attribute to look for a field when 'name' is 'None'.
9176 (get_field_type): New function
9178 2014-01-13 Doug Evans <dje@google.com>
9181 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9182 (try_open_dwop_file): Ditto.
9183 * gdb_bfd.c: #include "vec.h".
9184 (bfdp): New typedef.
9185 (struct gdb_bfd_data): New member included_bfds.
9186 (gdb_bfd_unref): Unref all included bfds.
9187 (gdb_bfd_record_inclusion): New function.
9188 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9190 2014-01-13 Tom Tromey <tromey@redhat.com>
9192 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9194 2014-01-13 Tom Tromey <tromey@redhat.com>
9196 * defs.h (use_windows): Remove.
9197 * gdb.c (main): Update.
9198 * main.c (captured_main, gdb_main): Update.
9199 * main.h (struct captured_main_args) <use_windows>: Remove.
9200 * top.c (use_windows): Remove.
9202 2014-01-13 Tom Tromey <tromey@redhat.com>
9204 * defs.h (deprecated_flush_hook): Remove.
9206 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9209 * linux-thread-db.c (try_thread_db_load): Add parameter
9210 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9211 (try_thread_db_load_from_pdir_1): Move it there from here.
9212 (try_thread_db_load_from_sdir): Update caller.
9213 (try_thread_db_load_from_dir): Move it there from here.
9215 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9217 * regformats/regdat.sh: Always rewrite the register file.
9219 2014-01-13 Pedro Alves <palves@redhat.com>
9221 * Makefile.in (CHECK_HEADERS): New variable.
9222 (check-headers:): New rule.
9224 2014-01-13 Tom Tromey <tromey@redhat.com>
9226 * cli/cli-setshow.c (do_set_command): Update.
9227 * defs.h (deprecated_set_hook): Remove.
9228 * top.c (deprecated_set_hook): Remove.
9230 2014-01-13 Pedro Alves <palves@redhat.com>
9232 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9233 the tracepoint if the PC is a pseudo-register.
9235 2014-01-13 Tom Tromey <tromey@redhat.com>
9237 * defs.h (XCALLOC): Remove.
9238 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9239 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9240 * dwarf2loc.c (allocate_piece_closure): Likewise.
9241 * elfread.c (elf_symfile_segments): Likewise.
9242 (elf_symfile_segments): Likewise.
9243 * gdbtypes.c (copy_type_recursive): Likewise.
9244 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9245 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9246 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9248 * mt-tdep.c (mt_gdbarch_init): Likewise.
9249 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9251 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9252 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9253 * registry.c (registry_alloc_data): Likewise.
9254 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9255 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9256 * serial.c (serial_fdopen_ops): Likewise.
9257 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9259 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9260 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9263 2014-01-13 Tom Tromey <tromey@redhat.com>
9265 * defs.h (XMALLOC): Remove.
9266 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9267 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9268 * cli-out.c (struct ui_out *): Likewise.
9269 * cli/cli-dump.c (add_dump_command): Likewise.
9270 (add_dump_command): Likewise.
9271 * complaints.c (get_complaints): Likewise.
9272 (find_complaint): Likewise.
9273 * dwarf2-frame.c (execute_cfa_program): Likewise.
9274 * dwarf2read.c (abbrev_table_read_table): Likewise.
9275 * gdbarch.sh: Likewise.
9276 * gdbarch.c: Rebuild.
9277 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9278 * interps.c (interp_new): Likewise.
9279 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9280 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9281 * mi/mi-console.c (mi_console_file_new): Likewise.
9282 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9283 * mi/mi-out.c (mi_out_new): Likewise.
9284 * mi/mi-parse.c (mi_parse): Likewise.
9285 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9286 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9287 * observer.c (xalloc_observer_list_node): Likewise.
9288 * regcache.c (regcache_xmalloc_1): Likewise.
9289 * reggroups.c (reggroup_new): Likewise.
9290 (_initialize_reggroup): Likewise.
9291 * registry.c (register_data_with_cleanup): Likewise.
9292 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9293 * ser-base.c (serial_ttystate): Likewise.
9294 * ser-mingw.c (make_pipe_state): Likewise.
9295 * ser-pipe.c (pipe_open): Likewise.
9296 * serial.c (serial_open): Likewise.
9297 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9298 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9299 (tui_alloc_win_info): Likewise.
9300 (tui_add_content_elements): Likewise.
9301 * tui/tui-file.c (tui_file_new): Likewise.
9302 * tui/tui-out.c (tui_out_new): Likewise.
9303 * ui-file.c (mem_file_new): Likewise.
9304 * ui-out.c (push_level): Likewise.
9305 (make_cleanup_ui_out_end): Likewise.
9306 (append_header_to_list): Likewise.
9307 (ui_out_new): Likewise.
9308 * user-regs.c (user_reg_add_builtin): Likewise.
9310 2014-01-13 Tom Tromey <tromey@redhat.com>
9312 * defs.h (XZALLOC): Remove.
9313 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9314 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9315 (get_ada_tasks_inferior_data): Likewise.
9316 * auto-load.c (get_auto_load_pspace_data): Likewise.
9317 * auxv.c (get_auxv_inferior_data): Likewise.
9318 * bfd-target.c (target_bfd_reopen): Likewise.
9319 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9320 (deprecated_insert_raw_breakpoint): Likewise.
9321 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9322 * corelow.c (core_open): Likewise.
9323 * darwin-nat.c (darwin_check_new_threads): Likewise.
9324 (darwin_attach_pid): Likewise.
9325 * dummy-frame.c (dummy_frame_push): Likewise.
9326 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9327 * dwarf2loc.c (allocate_piece_closure): Likewise.
9328 * elfread.c (elf_symfile_segments): Likewise.
9329 * eval.c (ptrmath_type_p): Likewise.
9330 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9331 * gdbtypes.c (alloc_type_arch): Likewise.
9332 (alloc_type_instance): Likewise.
9333 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9334 * inf-child.c (inf_child_can_use_agent): Likewise.
9335 * inflow.c (get_inflow_inferior_data): Likewise.
9336 * infrun.c (save_infcall_suspend_state): Likewise.
9337 * jit.c (jit_reader_load): Likewise.
9338 (get_jit_objfile_data): Likewise.
9339 (get_jit_program_space_data): Likewise.
9340 (jit_object_open_impl): Likewise.
9341 (jit_symtab_open_impl): Likewise.
9342 (jit_block_open_impl): Likewise.
9343 (jit_frame_sniffer): Likewise.
9344 * linux-fork.c (add_fork): Likewise.
9345 * maint.c (make_command_stats_cleanup): Likewise.
9346 * objfiles.c (get_objfile_pspace_data): Likewise.
9347 * opencl-lang.c (struct lval_closure): Likewise.
9348 * osdata.c (osdata_start_osdata): Likewise.
9349 * progspace.c (new_address_space): Likewise.
9350 (add_program_space): Likewise.
9351 * remote-sim.c (get_sim_inferior_data): Likewise.
9352 * sh-tdep.c (sh_gdbarch_init): Likewise.
9353 * skip.c (Ignore): Likewise.
9354 (skip_delete_command): Likewise.
9355 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9356 (library_list_start_library): Likewise.
9357 (solib_aix_current_sos): Likewise.
9358 * solib-darwin.c (get_darwin_info): Likewise.
9359 (darwin_current_sos): Likewise.
9360 * solib-dsbt.c (get_dsbt_info): Likewise.
9361 * solib-ia64-hpux.c (new_so_list): Likewise.
9362 (ia64_hpux_get_solib_linkage_addr): Likewise.
9363 * solib-spu.c (append_ocl_sos): Likewise.
9364 (spu_current_sos): Likewise.
9365 * solib-svr4.c (get_svr4_info): Likewise.
9366 (svr4_keep_data_in_core): Likewise.
9367 (library_list_start_library): Likewise.
9368 (svr4_default_sos): Likewise.
9369 (svr4_read_so_list): Likewise.
9370 * solib-target.c (library_list_start_library): Likewise.
9371 (solib_target_current_sos): Likewise.
9372 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9373 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9374 * symfile.c (default_symfile_segments): Likewise.
9375 * target-descriptions.c (tdesc_data_init): Likewise.
9376 (tdesc_create_reg): Likewise.
9377 (struct tdesc_type *): Likewise.
9378 (tdesc_create_vector): Likewise.
9379 (tdesc_set_struct_size): Likewise.
9380 (struct tdesc_type *): Likewise.
9381 (tdesc_free_feature): Likewise.
9382 (tdesc_create_feature): Likewise.
9383 * windows-nat.c (windows_add_thread): Likewise.
9384 (windows_make_so): Likewise.
9385 * xml-support.c (gdb_xml_body_text): Likewise.
9386 (gdb_xml_create_parser_and_cleanup): Likewise.
9387 (xml_process_xincludes): Likewise.
9388 * xml-syscall.c (allocate_syscalls_info): Likewise.
9389 (syscall_create_syscall_desc): Likewise.
9391 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9393 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9394 function, with code from i386_stap_parse_special_token.
9395 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9396 (i386_stap_parse_special_token): Move code to the two functions
9399 2014-01-09 Pedro Alves <palves@redhat.com>
9400 Hui Zhu <hui@codesourcery.com>
9403 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9404 bp_err_string. Don't mark the location shlib_disabled if the
9405 error thrown wasn't a generic or memory error. Catch errors
9406 thrown while inserting breakpoints in overlayed code. Output
9407 error message of software breakpoints.
9408 * remote.c (remote_insert_breakpoint): If this breakpoint has
9409 target-side commands but this stub doesn't support Z0 packets,
9410 throw NOT_SUPPORTED_ERROR error.
9411 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9412 * target.h (target_insert_breakpoint): Extend comment.
9413 (target_insert_hw_breakpoint): Add comment.
9415 2014-01-08 Pedro Alves <palves@redhat.com>
9417 * remote.c (remote_add_thread): Add threads silently if starting
9419 (remote_notice_new_inferior): If in all-stop, and starting up,
9420 don't call notice_new_inferior.
9421 (get_current_thread): New function, factored out from ...
9422 (add_current_inferior_and_thread): ... this. Adjust.
9423 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9424 found any thread, then select the remote's current thread as GDB's
9427 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9429 * NEWS: Create a new section for the next release branch.
9430 Rename the section of the current branch, now that it has
9433 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9435 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9436 * version.in: Bump version to 7.7.50.DATE-cvs.
9438 2014-01-08 Yao Qi <yao@codesourcery.com>
9440 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9441 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9442 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9444 2014-01-08 Yao Qi <yao@codesourcery.com>
9446 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9447 return value of bfd_get_filename to symbol_file_add_from_bfd.
9449 2014-01-08 Pierre Muller <muller@sourceware.org>
9452 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9453 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9454 to prim_record_mininal_symbol_and_info.
9455 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9456 in call to prim_record_minimal_symbol_and_info.
9457 (read_pe_exported_syms): Set index field of section_data.
9459 2014-01-07 Andrew Pinski <apinski@cavium.com>
9461 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9462 * features/aarch64.c: Regenerate.
9464 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9466 * target.c (return_null): Define.
9467 (update_current_target): Use it instead of return_zero for
9468 functions that return a pointer.
9470 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9472 * source.c (add_path): Fix check for duplicated paths in the previously
9475 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9477 * ada-lang.c: Remove duplicated include statements.
9478 * alphabsd-nat.c: Ditto.
9479 * amd64-darwin-tdep.c: Ditto.
9480 * amd64fbsd-nat.c: Ditto.
9481 * auto-load.c: Ditto.
9483 * breakpoint.c: Ditto.
9485 * fork-child.c: Ditto.
9486 * gdb_usleep.c: Ditto.
9487 * i386-darwin-tdep.c: Ditto.
9488 * i386fbsd-nat.c: Ditto.
9490 * inferior.c: Ditto.
9492 * linux-nat.c: Ditto.
9493 * linux-tdep.c: Ditto.
9494 * m68kbsd-nat.c: Ditto.
9495 * m68klinux-nat.c: Ditto.
9496 * microblaze-tdep.c: Ditto.
9497 * mips-linux-tdep.c: Ditto.
9498 * mn10300-tdep.c: Ditto.
9499 * nto-tdep.c: Ditto.
9500 * opencl-lang.c: Ditto.
9502 * printcmd.c: Ditto.
9503 * regcache.c: Ditto.
9504 * remote-m32r-sdi.c: Ditto.
9508 * tilegx-linux-nat.c: Ditto.
9509 * tilegx-tdep.c: Ditto.
9510 * tracepoint.c: Ditto.
9512 * vaxbsd-nat.c: Ditto.
9513 * windows-nat.c: Ditto.
9514 * xtensa-tdep.c: Ditto.
9516 2014-01-07 Yao Qi <yao@codesourcery.com>
9518 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9520 2014-01-07 Yao Qi <yao@codesourcery.com>
9521 Joel Brobecker <brobecker@adacore.com>
9523 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9524 (pdc_write_regs): Likewise.
9525 (fetch_regs_kernel_thread): Likewise.
9526 (store_regs_kernel_thread): Likewise.
9528 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9530 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9531 tagged type objects to their actual type.
9533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9535 * ada-valprint.c (print_field_values): Add "language" parameter.
9536 Update calls to print_field_values and print_variant_part.
9537 Pass new parameter "language" in call to val_print instead
9538 of "current_language". Replace call to ada_val_print by call
9540 (print_variant_part): Add "language" parameter.
9541 (ada_val_print_struct_union): Update call to print_field_values.
9543 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9545 * ada-valprint.c (ui_memcpy): Delete.
9546 (ada_print_floating): Update documentation. Add empty line
9547 between between function documentation and implementation.
9548 Delete variable "buffer". Use ui_file_xstrdup in place of
9549 ui_file_put. Minor adjustments following this change.
9551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9553 * ada-valprint.c (ada_val_print_string): New function,
9554 extracted from ada_val_print_array.
9555 (ada_val_print_array): Replace extracted code by call
9556 to ada_val_print_string followed by a return. Move
9557 "else" branch to the function's top block.
9559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9561 * ada-valprint.c (ada_val_print_array): Move implementation
9562 down. Rename parameter "offset" and "val" into "offset_aligned"
9563 and "original_value" respectively. Add parameter "offset".
9565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9567 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9568 re-organizing the code. Change the "???" message printed
9569 when target type is a TYPE_CODE_UNDEF into
9570 "<ref to undefined type>".
9572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9574 * ada-valprint.c (print_record): Delete, implementation inlined...
9575 (ada_val_print_struct_union): ... here. Remove call to
9576 ada_check_typedef in inlined implementation.
9578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9580 * ada-valprint.c (ada_val_print_gnat_array): New function,
9581 extracted from ada_val_print_1;
9582 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9583 (ada_val_print_flt, ada_val_print_struct_union)
9584 (ada_val_print_ref): Likewise.
9585 (ada_val_print_1): Delete variables i and elttype.
9586 Replace extracted-out code by call to corresponding
9589 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9591 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9595 * ada-valprint.c (ada_val_print_1): Replace calls to
9596 ada_val_print_1 by calls to val_print.
9598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9600 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9601 Update calls to self accordingly. Replace calls to c_val_print
9602 by calls to val_print.
9604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9606 * ada-valprint.c (print_record): Delete declaration.
9607 (adjust_type_signedness, ada_val_print_1): Likewise.
9608 (ada_val_print): Move function implementation down.
9609 (print_variant_part, print_field_values, print_record):
9610 Move function implementation up.
9612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9614 * python/py-type.c (typy_get_name): New function.
9615 (type_object_getset): Add entry for attribute "name".
9616 * NEWS: Add entry mentioning this new attribute.
9618 2014-01-07 Yao Qi <yao@codesourcery.com>
9620 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9623 2014-01-07 Yao Qi <yao@codesourcery.com>
9625 * gnu-nat.c (info_port_rights): Add qualifier const to
9628 2014-01-07 Yao Qi <yao@codesourcery.com>
9630 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9632 2014-01-07 Yao Qi <yao@codesourcery.com>
9634 * gnu-nat.c (make_inf) Update declaration.
9635 (make_inf): Make it static.
9636 (inf_set_traced): Likewise.
9637 (inf_port_to_thread, inf_task_died_status): Likewise.
9639 2014-01-07 Yao Qi <yao@codesourcery.com>
9641 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9643 2014-01-07 Yao Qi <yao@codesourcery.com>
9645 * gnu-nat.c (_initialize_gnu_nat): Declare.
9647 2014-01-07 Yao Qi <yao@codesourcery.com>
9649 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9651 (struct gdbarch_info) <byte_order>: Change type to
9653 <byte_order_for_code>: Likewise.
9654 * gdbarch.c, gdbarch.h: Regenerated.
9656 2014-01-06 Sasha Smundak <asmundak@google.com>
9658 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9660 2014-01-06 Tom Tromey <tromey@redhat.com>
9662 * doublest.c (convert_doublest_to_floatformat): Use const, not
9664 * somread.c (som_symtab_read): Likewise.
9666 2014-01-07 Hui Zhu <hui@codesourcery.com>
9668 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9669 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9670 (gdb_bfd_fopen): Ditto.
9671 (gdb_bfd_openr): Ditto.
9672 (gdb_bfd_openw): Ditto.
9673 (gdb_bfd_openr_iovec): Ditto.
9674 (gdb_bfd_fdopenr): Ditto.
9675 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9676 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9678 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9680 * symfile-mem.c (symbol_file_add_from_memory): Removed
9681 gdb_bfd_stash_filename.
9683 2014-01-03 Doug Evans <dje@google.com>
9685 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9688 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9690 Update year range in copyright notice of all files.
9692 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9694 * top.c (print_gdb_version): Set copyright year to 2014.
9696 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9698 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9700 For older changes see ChangeLog-2013.
9706 version-control: never