1 2014-06-20 Tom Tromey <tromey@redhat.com>
3 * dwarf2read.c (dw2_get_real_path): Use correct type in
5 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
7 2014-06-20 Gary Benson <gbenson@redhat.com>
9 * common/gdb_thread_db.h: Moved to nat. All includes updated.
10 * common/glibc_thread_db.h: Likewise.
11 * common/i386-cpuid.h: Likewise.
12 * common/i386-gcc-cpuid.h: Likewise.
13 * common/linux-btrace.h: Likewise.
14 * common/linux-osdata.h: Likewise.
15 * common/linux-procfs.h: Likewise.
16 * common/linux-ptrace.h: Likewise.
17 * common/mips-linux-watch.h: Likewise.
18 * common/linux-btrace.c: Moved to nat.
19 * common/linux-osdata.c: Likewise.
20 * common/linux-procfs.c: Likewise.
21 * common/linux-ptrace.c: Likewise.
22 * common/mips-linux-watch.c: Likewise.
23 * nat/gdb_thread_db.h: Moved from common.
24 * nat/glibc_thread_db.h: Likewise.
25 * nat/i386-cpuid.h: Likewise.
26 * nat/i386-gcc-cpuid.h: Likewise.
27 * nat/linux-btrace.c: Likewise.
28 * nat/linux-btrace.h: Likewise.
29 * nat/linux-osdata.c: Likewise.
30 * nat/linux-osdata.h: Likewise.
31 * nat/linux-procfs.c: Likewise.
32 * nat/linux-procfs.h: Likewise.
33 * nat/linux-ptrace.c: Likewise.
34 * nat/linux-ptrace.h: Likewise.
35 * nat/mips-linux-watch.c: Likewise.
36 * nat/mips-linux-watch.h: Likewise.
37 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
38 (object file files): Reordered.
39 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
42 2014-06-20 Gary Benson <gbenson@redhat.com>
44 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
45 (i386_dr_low_type): Moved to nat/i386-dregs.h.
46 (i386_dr_low): Likewise.
47 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
48 (i386_dr_low_set_addr): Likewise.
49 (i386_dr_low_get_addr): Likewise.
50 (i386_dr_low_can_set_control): Likewise.
51 (i386_dr_low_set_control): Likewise.
52 (i386_dr_low_get_control): Likewise.
53 (i386_dr_low_get_status): Likewise.
54 (i386_get_debug_register_length): Likewise.
55 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
56 (i386_dr_low): Likewise.
57 * nat/i386-dregs.c (i386-low.h): Remove include.
58 (i386-nat.h): Likewise.
59 (nat/i386-dregs.h): New include.
60 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
61 (i386_dr_low_set_addr): Likewise.
62 (i386_dr_low_get_addr): Likewise.
63 (i386_dr_low_can_set_control): Likewise.
64 (i386_dr_low_set_control): Likewise.
65 (i386_dr_low_get_control): Likewise.
66 (i386_dr_low_get_status): Likewise.
67 (i386_get_debug_register_length): Likewise.
68 (debug_hw_points): Likewise.
70 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
72 * Makefile.in (SFILES): Add d-exp.y.
73 (YYFILES): Add d-exp.c.
75 (local-maintainer-clean): Delete d-exp.c.
77 * d-lang.h (d_parse): New declaration.
78 (d_error): New declaration.
79 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
80 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
82 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
84 2014-06-19 Yao Qi <yao@codesourcery.com>
86 * gdbthread.h (any_running): Remove the declaration.
87 * thread.c (any_running): Remove.
89 2014-06-19 Yao Qi <yao@codesourcery.com>
91 * gdbthread.h (struct thread_info) <state>: Change its type to
92 'enum thread_state'. Update comments.
94 2014-06-19 Pedro Alves <palves@redhat.com>
96 * gdbthread.h (ALL_THREADS): Delete.
97 (ALL_NON_EXITED_THREADS): New macro.
98 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
99 instead of ALL_THREADS.
100 * infrun.c (find_thread_needs_step_over)
101 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
102 instead of ALL_THREADS.
103 * record-btrace.c (record_btrace_open)
104 (record_btrace_stop_recording, record_btrace_close)
105 (record_btrace_is_replaying, record_btrace_resume)
106 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
107 * remote.c (append_pending_thread_resumptions): Likewise.
108 * thread.c (thread_apply_all_command): Likewise.
110 2014-06-19 Gary Benson <gbenson@redhat.com>
112 * i386-nat.c (i386_stopped_by_watchpoint):
113 Use i386_dr_stopped_by_watchpoint.
114 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
115 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
117 2014-06-19 Gary Benson <gbenson@redhat.com>
119 * nat/i386-dregs.c: New file.
120 * Makefile.in (i386-dregs.o): New rule.
121 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
122 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
123 * config/i386/darwin.mh (NATDEPFILES): Likewise.
124 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
125 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
126 * config/i386/go32.mh (NATDEPFILES): Likewise.
127 * config/i386/linux.mh (NATDEPFILES): Likewise.
128 * config/i386/linux64.mh (NATDEPFILES): Likewise.
129 * config/i386/mingw.mh (NATDEPFILES): Likewise.
130 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
131 * i386-nat.h (debug_hw_points): New declaration.
132 * i386-nat.c (breakpoint.h): Remove include.
133 (command.h): Likewise.
134 (target.h): Likewise.
135 (gdb_assert.h): Likewise.
136 (debug_hw_points): Made nonstatic.
137 (debug_printf): Now in i386-dregs.c.
138 (TARGET_HAS_DR_LEN_8): Likewise.
139 (DR_CONTROL_SHIFT): Likewise.
140 (DR_CONTROL_SIZE): Likewise.
141 (DR_RW_EXECUTE): Likewise.
142 (DR_RW_WRITE): Likewise.
143 (DR_RW_READ): Likewise.
144 (DR_RW_IORW): Likewise.
145 (DR_LEN_1): Likewise.
146 (DR_LEN_2): Likewise.
147 (DR_LEN_4): Likewise.
148 (DR_LEN_8): Likewise.
149 (DR_LOCAL_ENABLE_SHIFT): Likewise.
150 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
151 (DR_ENABLE_SIZE): Likewise.
152 (DR_LOCAL_SLOWDOWN): Likewise.
153 (DR_GLOBAL_SLOWDOWN): Likewise.
154 (DR_CONTROL_RESERVED): Likewise.
155 (I386_DR_CONTROL_MASK): Likewise.
156 (I386_DR_VACANT): Likewise.
157 (I386_DR_LOCAL_ENABLE): Likewise.
158 (I386_DR_GLOBAL_ENABLE): Likewise.
159 (I386_DR_DISABLE): Likewise.
160 (I386_DR_SET_RW_LEN): Likewise.
161 (I386_DR_GET_RW_LEN): Likewise.
162 (I386_DR_WATCH_HIT): Likewise.
163 (i386_wp_op_t): Likewise.
164 (i386_show_dr): Likewise.
165 (i386_length_and_rw_bits): Likewise.
166 (i386_insert_aligned_watchpoint): Likewise.
167 (i386_remove_aligned_watchpoint): Likewise.
168 (i386_handle_nonaligned_watchpoint): Likewise.
169 (i386_update_inferior_debug_regs): Likewise.
170 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
171 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
172 (i386_region_ok_for_watchpoint):
173 Use i386_dr_region_ok_for_watchpoint.
174 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
176 2014-06-19 Gary Benson <gbenson@redhat.com>
178 * i386-nat.c (i386_insert_hw_breakpoint): Use
179 i386_insert_watchpoint.
180 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
182 2014-06-19 Gary Benson <gbenson@redhat.com>
184 * i386-nat.c (i386_dr_show): Renamed to
185 i386_show_dr and made static. All uses updated.
186 (i386_dr_length_and_rw_bits): Renamed to
187 i386_length_and_rw_bits and made static.
189 (i386_dr_insert_aligned_watchpoint): Renamed to
190 i386_insert_aligned_watchpoint and made static.
192 (i386_dr_remove_aligned_watchpoint): Renamed to
193 i386_remove_aligned_watchpoint and made static.
195 (i386_dr_update_inferior_debug_regs): Renamed to
196 i386_update_inferior_debug_regs and made static.
198 * nat/i386-dregs.h (i386_dr_show): Removed.
199 (i386_dr_length_and_rw_bits): Likewise.
200 (i386_dr_insert_aligned_watchpoint): Likewise.
201 (i386_dr_remove_aligned_watchpoint): Likewise.
202 (i386_dr_update_inferior_debug_regs): Likewise.
204 2014-06-19 Gary Benson <gbenson@redhat.com>
206 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
207 * configure: Regenerate.
208 * config.in: Likewise.
209 * main.c (signal.h): New include.
210 (setup_alternate_signal_stack): New function.
211 (captured_main): Call the above.
212 * cp-support.c (signal.h): New include.
213 (catch_demangler_crashes): New flag.
214 (SIGJMP_BUF): New define.
215 (SIGSETJMP): Likewise.
216 (SIGLONGJMP): Likewise.
217 (gdb_demangle_jmp_buf): New static global.
218 (gdb_demangle_attempt_core_dump): Likewise.
219 (gdb_demangle_signal_handler): New function.
220 (gdb_demangle): If catch_demangler_crashes is set, install the
221 above signal handler before calling bfd_demangle, and restore
222 the original signal handler afterwards. Display the offending
223 symbol and call demangler_warning the first time a segmentation
225 (_initialize_cp_support): New maint set/show command.
227 2014-06-19 Gary Benson <gbenson@redhat.com>
229 * utils.h (resource_limit_kind): New enum.
230 (can_dump_core): New declaration.
231 (warn_cant_dump_core): Likewise.
232 (dump_core): Likewise.
233 * utils.c (dump_core): Made nonstatic. Added new
234 parameter "limit_kind".
235 (can_dump_core): Made nonstatic. Moved printing code to...
236 (warn_cant_dump_core): New function.
237 (can_dump_core_warn): Likewise.
238 (internal_vproblem): Replace calls to can_dump_core with
239 calls to can_dump_core_warn. Supply new argument to each.
241 2014-06-19 Gary Benson <gbenson@redhat.com>
243 * utils.h (demangler_vwarning): New declaration.
244 (demangler_warning): Likewise.
245 * utils.c (struct internal_problem)
246 <user_settable_should_quit>: New field.
247 <user_settable_should_dump_core>: Likewise
248 (internal_error_problem): Add values for above new fields.
249 (internal_warning_problem): Likewise.
250 (demangler_warning_problem): New static global.
251 (demangler_vwarning): New function.
252 (demangler_warning): Likewise.
253 (add_internal_problem_command): Selectively add commands.
254 (_initialize_utils): New internal problem command.
255 * maint.c (maintenance_demangler_warning): New function.
256 (_initialize_maint_cmds): New command.
258 2014-06-18 Tom Tromey <tromey@redhat.com>
260 * f-valprint.c (info_common_command_for_block): Update.
261 * symtab.h (struct general_symbol_info) <common_block>: Now
264 2014-06-18 Tom Tromey <tromey@redhat.com>
266 * symtab.h (struct symtab) <blockvector>: Now const.
267 * ada-lang.c (ada_add_global_exceptions): Update.
268 * buildsym.c (augment_type_symtab): Update.
269 * dwarf2read.c (dw2_lookup_symbol): Update.
270 * jit.c (finalize_symtab): Update.
271 * jv-lang.c (add_class_symtab_symbol): Update.
272 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
274 * objfiles.c (objfile_relocate1): Update.
275 * psymtab.c (lookup_symbol_aux_psymtabs)
276 (maintenance_check_psymtabs): Update.
277 * python/py-symtab.c (stpy_global_block, stpy_static_block):
279 * spu-tdep.c (spu_catch_start): Update.
280 * symmisc.c (dump_symtab_1): Update.
281 * symtab.c (lookup_global_symbol_from_objfile)
282 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
283 (basic_lookup_transparent_type_quick)
284 (basic_lookup_transparent_type, find_pc_sect_symtab)
285 (find_pc_sect_line, search_symbols): Update.
286 * block.c (find_block_in_blockvector): Make "bl" const.
287 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
289 (blockvector_contains_pc): Make "bv" const.
290 (block_for_pc_sect): Update.
291 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
292 (blockvector_contains_pc): Update.
293 * breakpoint.c (resolve_sal_pc): Update.
294 * inline-frame.c (block_starting_point_at): Update.
296 2014-06-18 Tom Tromey <tromey@redhat.com>
298 * completer.c (complete_line): Make "line_buffer" const.
299 * completer.h (complete_line): Update.
301 2014-06-18 Tom Tromey <tromey@redhat.com>
303 * symtab.c (add_macro_name): Remove unneeded cast.
305 2014-06-18 Tom Tromey <tromey@redhat.com>
307 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
308 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
310 2014-06-18 Tom Tromey <tromey@redhat.com>
312 * probe.c (info_probes_for_ops): Make "arg" const.
313 * probe.h (info_probes_for_ops): Update.
315 2014-06-18 Tom Tromey <tromey@redhat.com>
317 * varobj.c (varobj_create): Update.
318 * valops.c (value_of_this): Update.
319 * tracepoint.c (add_local_symbols, scope_info): Update.
320 * symtab.h (struct general_symbol_info) <block>: Now const.
321 * symtab.c (skip_prologue_sal)
322 (default_make_symbol_completion_list_break_on)
323 (skip_prologue_using_sal): Update.
324 * stack.h (iterate_over_block_locals)
325 (iterate_over_block_local_vars): Update.
326 * stack.c (print_frame_args): Update.
327 (iterate_over_block_locals, iterate_over_block_local_vars): Make
329 (get_selected_block): Make return type const.
330 * python/py-frame.c (frapy_block): Update.
331 * python/py-block.c (gdbpy_block_for_pc): Update.
332 * p-exp.y (%union) <bval>: Now const.
333 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
334 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
335 * m2-exp.y (%union) <bval>: Now const.
336 * linespec.c (get_current_search_block): Make return type const.
337 (create_sals_line_offset, find_label_symbols): Update.
338 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
340 (block_starting_point_at): Make "block" const.
341 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
342 (check_exception_resume): Update.
343 * guile/scm-frame.c (gdbscm_frame_block): Update.
344 * guile/scm-block.c (gdbscm_lookup_block): Update.
345 * frame.h (get_frame_block): Update.
346 (get_selected_block): Make return type const.
347 * frame.c (frame_id_inner): Update.
348 * f-valprint.c (info_common_command_for_block)
349 (info_common_command): Update.
350 * dwarf2loc.c (dwarf2_find_location_expression)
351 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
352 (locexpr_describe_location_piece): Update.
353 * c-exp.y (%union) <bval>: Now const.
354 * breakpoint.c (resolve_sal_pc): Update.
355 * blockframe.c (get_frame_block):Make return type const.
356 (get_pc_function_start, get_frame_function, find_pc_sect_function)
357 (block_innermost_frame): Update.
358 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
359 (block_for_pc, block_for_pc_sect): Update.
360 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
362 (block_for_pc_sect, block_for_pc): Make return type const.
363 * ax-gdb.c (gen_expr): Update.
364 * alpha-mdebug-tdep.c (find_proc_desc): Update.
365 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
366 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
367 (ada_read_var_value): Update.
368 * ada-exp.y (struct name_info) <block>: Now const.
370 (block_lookup): Constify.
372 2014-06-18 Gary Benson <gbenson@redhat.com>
374 * nat/i386-dregs.h: New file.
375 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
376 * i386-nat.h (i386-dregs.h): New include.
377 (DR_FIRSTADDR): Now in i386-dregs.h.
378 (DR_LASTADDR): Likewise.
379 (DR_NADDR): Likewise.
380 (DR_STATUS): Likewise.
381 (DR_CONTROL): Likewise.
382 (i386_debug_reg_state): Likewise.
383 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
385 2014-06-18 Don Breazeal <donb@codesourcery.com>
387 * breakpoint.c (set_longjmp_breakpoint): Call
388 momentary_breakpoint_from_master with additional argument.
389 (set_longjmp_breakpoint_for_call_dummy): Call
390 momentary_breakpoint_from_master with additional argument.
391 (set_std_terminate_breakpoint): Call
392 momentary_breakpoint_from_master with additional argument.
393 (momentary_breakpoint_from_master): Add argument to function
394 definition and use it to initialize structure member flag.
395 (clone_momentary_breakpoint): Call
396 momentary_breakpoint_from_master with additional argument.
397 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
398 member flags set in momentary_breakpoint_from_master.
400 2014-06-18 Gary Benson <gbenson@redhat.com>
402 * i386-nat.c (i386_show_dr): Renamed to
403 i386_dr_show and made nonstatic. All uses updated.
404 (i386_length_and_rw_bits): Renamed to
405 i386_dr_length_and_rw_bits and made nonstatic.
407 (i386_insert_aligned_watchpoint): Renamed to
408 i386_dr_insert_aligned_watchpoint and made nonstatic.
410 (i386_remove_aligned_watchpoint): Renamed to
411 i386_dr_remove_aligned_watchpoint and made nonstatic.
413 (i386_update_inferior_debug_regs): Renamed to
414 i386_dr_update_inferior_debug_regs and made nonstatic.
417 2014-06-18 Gary Benson <gbenson@redhat.com>
419 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
420 (i386_dr_low_can_set_control): Likewise.
421 (i386_dr_low_set_addr): Likewise.
422 (i386_dr_low_set_control): Likewise.
423 (i386_dr_low_get_addr): Likewise.
424 (i386_dr_low_get_status): Likewise.
425 (i386_dr_low_get_control): Likewise.
426 (i386_insert_aligned_watchpoint): Use new macros.
427 (i386_update_inferior_debug_regs): Likewise.
428 (i386_stopped_data_address): Likewise.
430 2014-06-18 Gary Benson <gbenson@redhat.com>
432 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
433 New parameter. All uses updated.
435 2014-06-18 Gary Benson <gbenson@redhat.com>
437 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
440 2014-06-18 Gary Benson <gbenson@redhat.com>
442 * i386-nat.c (debug_printf): New macro.
443 (i386_get_debug_register_length): Likewise.
444 (TARGET_HAS_DR_LEN_8): Use above macro.
445 (i386_show_dr): Use debug_printf instead of puts_unfiltered
446 and printf_unfiltered. Use phex to format values.
448 2014-06-18 Gary Benson <gbenson@redhat.com>
450 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
453 2014-06-18 Gary Benson <gbenson@redhat.com>
455 * i386-nat.c: Comment changes.
457 2014-06-18 Gary Benson <gbenson@redhat.com>
459 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
461 2014-06-18 Gary Benson <gbenson@redhat.com>
463 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
464 (i386_insert_aligned_watchpoint): Likewise.
465 (i386_remove_aligned_watchpoint): Likewise.
466 (i386_handle_nonaligned_watchpoint): Likewise.
468 2014-06-18 Gary Benson <gbenson@redhat.com>
470 * i386-nat.c: Whitespace changes.
472 2014-06-17 Samuel Bronson <naesten@gmail.com>
474 * MAINTAINERS: Update Roland McGrath's email address.
475 Thanks to Sergio Durigan Junior for pointing out that he left
476 Red Hat a while ago, and giving me a current address.
478 2014-06-17 Tom Tromey <tromey@redhat.com>
480 * utils.h (savestring): Remove declaration.
482 2014-06-17 Tom Tromey <tromey@redhat.com>
484 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
486 2014-06-16 Keith Seitz <keiths@redhat.com>
489 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
490 to update the varobj if inferior_ptid is null_ptid.
492 2014-06-16 Tom Tromey <tromey@redhat.com>
494 * target.h (struct target_ops) <to_info_proc>: Make parameter
496 (target_info_proc): Update.
497 * target.c (target_info_proc): Make "args" const.
498 * procfs.c (procfs_info_proc): Update.
499 * linux-tdep.c (linux_info_proc): Update.
500 (linux_core_info_proc_mappings): Make "args" const.
501 (linux_core_info_proc): Update.
502 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
503 * gdbarch.c: Rebuild.
504 * gdbarch.h: Rebuild.
505 * corelow.c (core_info_proc): Update.
507 2014-06-16 Tom Tromey <tromey@redhat.com>
509 * target.h (struct target_ops) <to_disconnect>: Make parameter
511 (target_disconnect): Update.
512 * target.c (target_disconnect): Make "args" const.
513 * target-delegates.c: Rebuild.
514 * remote.c (remote_disconnect): Update.
515 * record.h (record_disconnect): Update.
516 * record.c (record_disconnect): Update.
517 * inf-child.c (inf_child_disconnect): Update.
519 2014-06-16 Tom Tromey <tromey@redhat.com>
521 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
522 * target.c (debug_to_rcmd, default_rcmd): Update.
523 * target-delegates.c: Rebuild.
524 * remote.c (remote_rcmd): Update.
525 * monitor.c (monitor_rcmd): Update.
527 2014-06-16 Pedro Alves <palves@redhat.com>
529 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
530 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
531 have OBJF_SHARED set.
532 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
533 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
534 instead of OBJF_USERLOADED.
535 * objfiles.h (OBJF_SHARED): Update comment.
536 (userloaded_objfile_contains_address_p): Rename to ...
537 (shared_objfile_contains_address_p): ... this, and update
539 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
541 (remove_symbol_file_command): Skip objfiles that don't have
544 2014-06-16 Tom Tromey <tromey@redhat.com>
546 * minsyms.h (prim_record_minimal_symbol)
547 (prim_record_minimal_symbol_and_info): Update comments.
549 2014-06-14 Eli Zaretskii <eliz@gnu.org>
551 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
552 or --without-guile, according to how GDB was built.
554 2014-06-13 Tom Tromey <tromey@redhat.com>
556 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
558 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
560 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
562 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
563 help_list.Pass all_commands, not -1, to help_list.
564 * cli/cli-dump.c (dump_command, append_command)
565 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
566 (binary_dump_command, binary_append_command): Pass all_commands,
567 not -1, to help_list.
568 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
570 * valprint.c (set_print, set_print_raw): Pass all_commands, not
572 * typeprint.c (set_print_type): Pass all_commands, not -1, to
574 * top.c (set_history): Pass all_commands, not -1, to help_list.
575 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
576 all_commands, not -1, to help_list.
577 * symfile.c (overlay_command): Pass all_commands, not -1, to
579 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
581 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
583 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
585 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
586 not -1, to help_list.
587 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
588 not -1, to help_list.
589 * maint.c (maintenance_command, maintenance_info_command)
590 (maintenance_print_command, maintenance_set_cmd): Pass
591 all_commands, not -1, to help_list.
592 * macrocmd.c (macro_command): Pass all_commands, not -1, to
594 * language.c (set_check): Pass all_commands, not -1, to help_list.
595 * infcmd.c (unset_command): Pass all_commands, not -1, to
597 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
599 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
601 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
603 * breakpoint.c (save_command): Pass all_commands, not -1, to
605 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
606 all_commands, not -1, to help_list.
608 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
610 * regcache.c (struct register_to_invalidate): New structure.
611 (do_register_invalidate, make_cleanup_regcache_invalidate): New
613 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
615 2014-06-12 Yao Qi <yao@codesourcery.com>
617 * varobj.c (varobj_get_num_children): Call
619 (varobj_list_children): Likewise.
620 (varobj_update): Likewise. Update comments.
622 2014-06-12 Yao Qi <yao@codesourcery.com>
624 * varobj.c (varobj_pretty_printed_p): Rename to ...
625 (varobj_is_dynamic_p): ... this. New function.
626 * varobj.h (varobj_pretty_printed_p): Remove declaration.
627 (varobj_is_dynamic_p): Declare.
628 * mi/mi-cmd-var.c (print_varobj): All callers updated.
629 (mi_print_value_p, varobj_update_one): Likewise.
631 2014-06-12 Pedro Alves <pedro@codesourcery.com>
632 Yao Qi <yao@codesourcery.com>
634 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
635 (varobj_get_iterator): Wrap up code for pretty-printer by
636 "#if HAVE_PYTHON" and "#endif".
637 (update_dynamic_varobj_children): Likewise.
639 2014-06-12 Pedro Alves <pedro@codesourcery.com>
640 Yao Qi <yao@codesourcery.com>
642 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
643 gdb_python_initialized is false. Move some code from varobj.c.
644 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
645 * varobj.c: Move "varobj-iter.h" inclusion earlier.
646 (struct varobj_item): Moved to varobj-iter.h".
647 (varobj_clear_saved_item): New function.
648 (update_dynamic_varobj_children): Move python-related code to
650 (free_variable): Call varobj_clear_saved_item and
653 2014-06-12 Pedro Alves <pedro@codesourcery.com>
654 Yao Qi <yao@codesourcery.com>
656 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
657 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
658 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
659 (py-varobj.o): New rule.
660 * python/py-varobj.c: New file.
661 * python/python-internal.h (py_varobj_get_iterator): Declare.
662 * varobj-iter.h: New file.
663 * varobj.c: Include "varobj-iter.h"
664 (struct varobj) <child_iter>: Change its type from "PyObject *"
665 to "struct varobj_iter *".
666 <saved_item>: Likewise.
667 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
668 [HAVE_PYTHON] (varobj_get_iterator): New function.
669 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
670 python-specific code to python/py-varobj.c.
671 (install_visualizer): Call varobj_iter_delete instead of
673 * varobj.h (varobj_ensure_python_env): Declare.
675 2014-06-12 Yao Qi <yao@codesourcery.com>
677 * varobj.c (struct varobj_item): New structure.
678 (create_child_with_value): Update declaration.
679 (varobj_add_child): Replace arguments 'name' and 'value' with
680 'item'. All callers updated.
681 (install_dynamic_child): Likewise.
682 (update_dynamic_varobj_children): Likewise.
683 (varobj_add_child): Likewise.
684 (create_child_with_value): Likewise.
686 2014-06-11 Joel Brobecker <brobecker@adacore.com>
688 * NEWS: Create a new section for the next release branch.
689 Rename the section of the current branch, now that it has
692 2014-06-11 Joel Brobecker <brobecker@adacore.com>
694 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
695 * version.in: Bump version to 7.8.50.DATE-cvs.
697 2014-06-11 Pedro Alves <palves@redhat.com>
700 * ser-mingw.c (net_windows_socket_check_pending): New function.
701 (net_windows_select_thread): Ignore spurious wakeups. Use
702 net_windows_socket_check_pending.
703 (net_windows_wait_handle): Check for pending events with
704 ioctlsocket, through net_windows_socket_check_pending, instead of
705 checking the socket's event.
707 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
709 * python/python-internal.h (gdb_PyObject_GetAttrString)
710 (gdb_PyObject_HasAttrString): New inline function definitions.
711 * py-value.c (get_field_flag): Remove the now unnecessary cast to
712 char * of the second argument to PyObject_GetAttrString.
714 2014-06-10 Joel Brobecker <brobecker@adacore.com>
716 * serial.c (serial_write): Fix index of character to be printed
717 in call to serial_logchar when serial debug traces are enabled.
719 2014-06-10 Joel Brobecker <brobecker@adacore.com>
721 * gdbtypes (resolve_dynamic_range): Add function description.
723 2014-06-09 Pedro Alves <palves@redhat.com>
725 * linux-nat.c (linux_child_follow_fork): Initialize status with
726 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
727 inner block. Only pass the signal to PTRACE_DETACH if in pass
730 2014-06-09 Gary Benson <gbenson@redhat.com>
732 * common/signals.c (gdb_signal_from_host): Reorder to separate
733 the always-available ANSI-standard signals from the signals that
735 (do_gdb_signal_to_host): Likewise.
736 * proc-events.c (signal_table): Likewise.
738 2014-06-08 Hui Zhu <hui@codesourcery.com>
740 * common/linux-ptrace.c (linux_disable_event_reporting): New
742 * common/linux-ptrace.h (linux_disable_event_reporting): New
744 * linux-nat.c (linux_child_follow_fork): Do a single step before
747 2014-06-07 Keith Seitz <keiths@redhat.com>
751 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
752 from symbol_matches_domain in symtab.c. All local callers
753 of symbol_matches_domain updated.
754 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
755 search STRUCT_DOMAIN.
756 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
757 independently. standard_lookup will do that automatically.
758 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
759 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
760 (cp_lookup_symbol_in_namespace): Likewise.
761 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
762 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
763 may return a STRUCT_DOMAIN match.
764 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
765 * cp-support.c: Include language.h.
766 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
768 * psymtab.c (match_partial_symbol): Compare the requested
769 domain with the symbol's domain directly.
770 (lookup_partial_symbol): Likewise.
771 * symtab.c (lookup_symbol_in_language): Explain when/why
772 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
773 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
774 appropriate languages.
775 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
776 and moved to ada-lang.c
777 (lookup_block_symbol): Explain that this function only returns
778 symbol matching the requested DOMAIN.
779 Compare the requested domain with the symbol's domain directly.
780 (iterate_over_symbols): Compare the requested domain with the
781 symbol's domain directly.
782 * symtab.h (symbol_matches_domain): Remove.
784 2014-06-06 Doug Evans <xdje42@gmail.com>
786 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
787 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
788 (gdbscm_guile_version_is_at_least): Declare.
789 (gdbscm_scm_string_to_int): Declare.
790 * guile/guile.c (gdbscm_guile_major_version): New global.
791 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
792 (guile_datadir): New static global.
793 (gdbscm_guile_data_directory): New function.
794 (initialize_scheme_side): Update.
795 (misc_guile_functions): Add guile-data-directory.
796 (initialize_gdb_module): Fetch guile version number.
797 * guile/lib/gdb.scm: Remove call to add-to-load-path.
798 * guile/lib/gdb/init.scm (%initialize!): Ditto.
799 * guile/lib/gdb/boot.scm: Use guile-data-directory.
800 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
802 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
803 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
804 * guile/scm-value.c (gdbscm_value_to_string): Only call
805 scm_port_conversion_strategy if Guile version >= 2.0.6.
807 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
809 * main.c (print_gdb_help): Add -q and --silent.
811 2014-06-06 Gary Benson <gbenson@redhat.com>
813 * common/signals.c: Remove preprocessor conditionals for
814 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
816 * proc-events.c: Likewise.
818 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
820 * symfile.c (symfile_free_objfile): Remove restriction to
822 * symfile-mem.c (symbol_file_add_from_memory): Call
823 add_target_sections_of_objfile.
825 2014-06-05 Ludovic Courtès <ludo@gnu.org>
827 * guile/scm-value.c (gdbscm_history_append_x): Use
828 'vlscm_get_value_smob_arg_unsafe' instead of
829 'vlscm_scm_to_value'.
831 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
834 * utils.c (printchar): Don't escape at all if quoter is NUL.
835 Update function documentation to clarify effect of parameter
837 * remote.c (escape_buffer): Pass '\\' as the quoter to
839 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
841 (mi_solib_unloaded): Same.
843 2014-06-05 Joel Brobecker <brobecker@adacore.com>
845 * development.sh: Delete.
846 * Makefile.in (config.status): Adjust dependency on development.sh.
847 * configure.ac: Adjust development.sh source call.
848 * configure: Regenerate.
850 2014-06-04 Doug Evans <xdje42@gmail.com>
852 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
853 is_scheme_bkpt, spec.
854 (bpscm_make_breakpoint_smob): Initialize new members.
855 (gdbscm_create_breakpoint_x): Split into two ...
856 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
857 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
858 (scheme_function breakpoint_functions): Update.
859 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
860 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
861 register-breakpoint!.
863 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
866 * mem-break.c (z_type_supported): Return zero if
867 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
869 2014-06-04 Tom Tromey <tromey@redhat.com>
871 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
872 value_from_contents_and_address_unresolved.
873 (ada_template_to_fixed_record_type_1): Likewise.
874 (ada_which_variant_applies): Likewise.
875 * value.h (value_from_contents_and_address_unresolved): Declare.
876 * value.c (value_from_contents_and_address_unresolved): New
878 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
879 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
880 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
882 2014-06-04 Tom Tromey <tromey@redhat.com>
884 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
886 2014-06-04 Tom Tromey <tromey@redhat.com>
888 * procfs.c (procfs_attach): Make "args" const.
889 * windows-nat.c (windows_attach): Make "args" const.
890 * nto-procfs.c (procfs_attach): Make "args" const.
891 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
892 * go32-nat.c (go32_attach): Make "args" const.
893 * gnu-nat.c (gnu_attach): Make "args" const.
894 * darwin-nat.c (darwin_attach): Make "args" const.
895 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
896 * linux-nat.c (linux_nat_attach): Make "args" const.
897 * remote.c (extended_remote_attach_1, extended_remote_attach):
899 * target.h (struct target_ops) <to_attach>: Make "args" const.
900 (find_default_attach): Likewise.
901 * utils.c (parse_pid_to_attach): Make "args" const.
902 * utils.h (parse_pid_to_attach): Update.
904 2014-06-04 Tom Tromey <tromey@redhat.com>
906 * target-delegates.c: Rebuild.
907 * target.c (default_thread_address_space): New function.
908 (target_thread_address_space): Simplify.
909 * target.h (struct target_ops) <to_thread_address_space>: Add
912 2014-06-04 Doug Evans <xdje42@gmail.com>
914 * guile/scm-type.c (type_smob): Remove duplicate typedef.
916 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
918 * record-btrace.c: Include event-loop.h and inf-loop.h.
919 (record_btrace_resume_exec_dir)
920 (record_btrace_async_inferior_event_handler)
921 (record_btrace_handle_async_inferior_event): New.
922 (record_btrace_open): Create async event handler.
923 (record_btrace_close): Delete async event handler.
924 (record_btrace_resume): Set record_btrace_resume_exec_dir,
925 Mark async event handler.
926 (record_btrace_execution_direction): New.
927 (init_record_btrace_ops): Initialize to_execution_direction.
929 2014-06-03 Doug Evans <xdje42@gmail.com>
931 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
932 (gdbscm_make_parameter): Ditto.
934 2014-06-03 Doug Evans <dje@google.com>
936 * exec.c (exec_close_1): Call clear_section_table instead of
937 resize_section_table.
938 (clear_section_table): New function.
939 (resize_section_table): Make static. Rename arg num_added to
941 * exec.h (clear_section_table): Declare.
942 (resize_section_table): Delete.
943 * progspace.c (release_program_space): Call clear_section_table
944 instead of resize_section_table.
946 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
948 * NEWS (Python Scripting): Add entry about the new xmethods
951 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
953 * python/py-xmethods.c: New file.
954 * python/py-objfile.c (objfile_object): New field 'xmethods'.
955 (objfpy_dealloc): XDECREF on the new xmethods field.
956 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
958 (objfpy_get_xmethods): New function.
959 (objfile_getset): New entry 'xmethods'.
960 * python/py-progspace.c (pspace_object): New field 'xmethods'.
961 (pspy_dealloc): XDECREF on the new xmethods field.
962 (pspy_new, pspace_to_pspace_object): Initialize xmethods
964 (pspy_get_xmethods): New function.
965 (pspace_getset): New entry 'xmethods'.
966 * python/python-internal.h: Add declarations for new functions.
967 * python/python.c (_initialize_python): Invoke
968 gdbpy_initialize_xmethods.
969 * python/lib/gdb/__init__.py (xmethods): New
971 * python/lib/gdb/xmethod.py: New file.
972 * python/lib/gdb/command/xmethods.py: New file.
974 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
976 * eval.c (evaluate_subexp_standard): Call the xmethod if the
977 best match method returned by find_overload_match is an xmethod.
978 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
979 the best matching operator returned by find_overload_match is an
981 * valops.c: #include "extension.h".
982 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
983 Return void. The list of matching source methods is returned in
984 "fn_list" and a vector of matching debug method workers is
985 returned in "xm_worker_vec". Update all callers.
986 (value_find_oload_method_list): Likewise.
987 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
988 non-NULL, then the index of the best matching method in this
989 vector is returned. Update all callers.
990 (find_overload_match): Include xmethods while performing overload
993 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
995 * defs.h (enum lval_type): New enumerator "lval_xcallable".
996 * extension-priv.h (struct extension_language_ops): Add the
998 * extension.c (new_xmethod_worker, clone_xmethod_worker,
999 get_matching_xmethod_workers, get_xmethod_argtypes,
1000 invoke_xmethod, free_xmethod_worker,
1001 free_xmethod_worker_vec): New functions.
1002 * extension.h: #include "common/vec.h".
1003 New function declarations.
1004 (struct xmethod_worker): New struct.
1005 (VEC (xmethod_worker_ptr)): New vector type.
1006 (xmethod_worker_ptr): New typedef.
1007 (xmethod_worker_vec): Likewise.
1008 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1010 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1011 (struct builtin_type): New field "xmethod".
1012 * valarith.c (value_ptradd): Assert that the value argument is not
1014 * valops.c (value_must_coerce_to_target): Return 0 for
1015 lval_xcallable values.
1016 * value.c (struct value): New field XM_WORKER in the field
1018 (value_address, value_raw_address): Return 0 for lval_xcallable
1020 (set_value_address): Assert that the value is not an
1022 (value_free): Free the associated xmethod worker when freeing
1023 lval_xcallable values.
1024 (set_value_component_location): Assert that the WHOLE value is not
1026 (value_of_xmethod, call_xmethod): New functions.
1027 * value.h: Declare "struct xmethod_worker".
1028 Declare new functions value_of_xmethod, call_xmethod.
1030 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1031 Pedro Alves <palves@redhat.com>
1033 PR breakpoints/17000
1034 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1035 New function, extracted from software_breakpoint_inserted_here_p.
1036 (software_breakpoint_inserted_here_p): Replace factored out code
1037 by call to find_non_raw_software_breakpoint_inserted_here.
1038 (bp_target_info_copy_insertion_state): New function.
1039 (bkpt_insert_location): Handle the case of a single-step
1040 breakpoint already inserted at the same address.
1041 (bkpt_remove_location): Handle the case of a single-step
1042 breakpoint still inserted at the same address.
1043 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1044 breakpoint already inserted at the same address.
1045 (deprecated_remove_raw_breakpoint): Handle the case of a
1046 non-raw breakpoint still inserted at the same address.
1047 (find_single_step_breakpoint): New function, extracted from
1048 single_step_breakpoint_inserted_here_p.
1049 (find_single_step_breakpoint): New function,
1050 factored out from single_step_breakpoint_inserted_here_p.
1051 (single_step_breakpoint_inserted_here_p): Reimplement.
1053 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1055 Pushed by Joel Brobecker <brobecker@adacore.com>
1056 * source.c (show_substitute_path_command): Fix display of matching
1059 2014-06-03 Gary Benson <gbenson@redhat.com>
1061 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1063 2014-06-02 Doug Evans <xdje42@gmail.com>
1065 Add parameter support for Guile.
1066 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1067 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1068 (scm-param.o): New rule.
1069 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1070 (gdbscm_misc_error): Declare.
1071 (gdbscm_canonicalize_command_name): Declare.
1072 (gdbscm_scm_to_host_string): Declare.
1073 (gdbscm_scm_from_host_string): Declare.
1074 (gdbscm_initialize_parameters): Declare.
1075 * guile/guile.c (initialize_gdb_module): Call
1076 gdbscm_initialize_parameters.
1077 * guile/lib/gdb.scm: Export parameter symbols.
1078 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1079 cmdscm_canonicalize_name and made public. All callers updated.
1080 * guile/scm-exception.c (gdbscm_misc_error): New function.
1081 * guile/scm-param.c: New file.
1082 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1083 (gdbscm_scm_to_host_string): New function.
1084 (gdbscm_scm_from_host_string): New function.
1085 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1087 2014-06-02 Doug Evans <xdje42@gmail.com>
1089 Add command support for Guile.
1090 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1091 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1092 (scm-cmd.o): New rule.
1093 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1094 (gdbscm_user_error_p): Declare.
1095 (gdbscm_parse_command_name): Declare.
1096 (gdbscm_valid_command_class_p): Declare.
1097 (gdbscm_initialize_commands): Declare.
1098 * guile/guile.c (initialize_gdb_module): Call
1099 gdbscm_initialize_commands.
1100 * guile/lib/gdb.scm: Export command symbols.
1101 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1102 (throw-user-error): New function.
1103 * guile/scm-cmd.c: New file.
1104 * guile/scm-exception.c (user_error_symbol): New static global.
1105 (gdbscm_user_error_p): New function.
1106 (gdbscm_initialize_exceptions): Set user_error_symbol.
1107 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1109 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1111 * top.c (command_loop): Handle comments here...
1112 (command_line_input): ... not here.
1114 2014-06-02 Doug Evans <xdje42@gmail.com>
1116 Add progspace support for Guile.
1117 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1118 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1119 (scm-progspace.o): New rule.
1120 * guile/guile-internal.h (pspace_smob): New typedef.
1121 (psscm_pspace_smob_pretty_printers): Declare.
1122 (psscm_pspace_smob_from_pspace): Declare.
1123 (psscm_scm_from_pspace): Declare.
1124 * guile/guile.c (initialize_gdb_module): Call
1125 gdbscm_initialize_pspaces.
1126 * guile/lib/gdb.scm: Export progspace symbols.
1127 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1129 (append-pretty-printer!): Ditto.
1130 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1132 * guile/scm-progspace.c: New file.
1134 2014-06-03 Alan Modra <amodra@gmail.com>
1136 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1137 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1139 2014-06-02 Doug Evans <dje@google.com>
1141 Add support for skeletonless type units.
1142 * dwarf2read.c (struct dwarf2_per_objfile): New member
1143 n_allocated_type_units.
1144 (struct dwarf2_per_objfile) <tu_stats>: New member
1145 nr_all_type_units_reallocs.
1146 (create_signatured_type_table_from_index): Initialize
1147 n_allocated_type_units
1148 (create_all_type_units): Ditto.
1149 (add_type_unit): Move up in file. New arg slot.
1150 All callers updated. Increase space for all_type_units more
1152 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1153 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1154 (lookup_dwp_signatured_type): Ditto.
1155 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1156 All callers updated.
1157 (build_type_psymtabs_1): Leave type_unit_groups as
1158 NULL if no TUs present.
1159 (print_tu_stats): New function.
1160 (process_skeletonless_type_unit): New function.
1161 (process_dwo_file_for_skeletonless_type_units): New
1163 (process_skeletonless_type_units): New function.
1164 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1165 Call print tu_stats if debugging enabled.
1167 2014-06-02 Pedro Alves <palves@redhat.com>
1169 * breakpoint.c (build_target_command_list): Don't build a command
1170 list if we have any duplicate location that isn't a dprintf.
1172 2014-06-02 Pedro Alves <palves@redhat.com>
1174 * breakpoint.c (dprintf_breakpoint_hit): New function.
1175 (initialize_breakpoint_ops): Install it as dprintf's
1176 breakpoint_hit method.
1178 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1180 * source.c (substitute_path_rule_matches): Simplify using
1181 filename_ncmp instead of FILENAME_CMP.
1183 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1185 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1187 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1189 * configure.ac: When Guile is available, check for the
1190 availability of 'scm_new_smob'.
1191 * configure, config.h.in: Regenerate.
1192 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1195 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1197 * frame.c (struct frame_info): Add stop_string field.
1198 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1199 (get_prev_frame_always): Old content moved into
1200 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1201 TRY_CATCH, handle MEMORY_ERROR exceptions.
1202 (frame_stop_reason_string): New function definition.
1203 * frame.h (unwind_stop_reason_to_string): Extend comment to
1204 mention frame_stop_reason_string.
1205 (frame_stop_reason_string): New function declaration.
1206 * stack.c (frame_info): Switch to frame_stop_reason_string.
1207 (backtrace_command_1): Switch to frame_stop_reason_string.
1208 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1209 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1210 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1212 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1214 * frame.c (frame_stop_reason_string): Rename to ...
1215 (unwind_stop_reason_to_string): this.
1216 * frame.h (frame_stop_reason_string): Rename to ...
1217 (unwind_stop_reason_to_string): this.
1218 * stack.c (frame_info): Update call to frame_stop_reason_string.
1219 (backtrace_command_1): Likewise.
1220 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1221 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1223 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1225 * frame.c (remove_prev_frame): New function.
1226 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1229 2014-05-29 Pedro Alves <palves@redhat.com>
1231 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1232 and make it const. When a single-step decays to a continue,
1233 clear 'step', not 'hw_step'. Pass whether the caller wanted
1234 to step to user_visible_resume_ptid, not what we ask the
1237 2014-05-29 Pedro Alves <palves@redhat.com>
1239 * infrun.c (process_event_stop_test, handle_step_into_function)
1240 (handle_step_into_function_backward): Adjust.
1241 Don't set the even thread's stop_step and call stop_waiting before
1242 calling end_stepping_range. Instead do that ...
1243 (end_stepping_range): ... here. Take an ecs pointer parameter.
1245 2014-05-29 Pedro Alves <palves@redhat.com>
1247 * infrun.c (stop_stepping): Rename to ...
1248 (stop_waiting): ... this.
1249 (proceed): Update comment.
1250 (process_event_stop_test, handle_inferior_event)
1251 (handle_signal_stop, handle_step_into_function)
1252 (handle_step_into_function_backward): Update.
1254 2014-05-29 Pedro Alves <palves@redhat.com>
1256 * infcall.c (run_inferior_call): Don't check whether the current
1257 thread is running after the proceed call.
1259 2014-05-29 Pedro Alves <palves@redhat.com>
1260 Tom Tromey <tromey@redhat.com>
1262 * NEWS: Mention "maint set target-async", "set mi-async", and that
1263 background execution commands are now always available.
1264 * target.h (target_async_permitted): Update comment.
1265 * target.c (target_async_permitted, target_async_permitted_1):
1267 (set_target_async_command): Rename to ...
1268 (maint_set_target_async_command): ... this.
1269 (show_target_async_command): Rename to ...
1270 (maint_show_target_async_command): ... this.
1271 (_initialize_target): Adjust.
1272 * infcmd.c (prepare_execution_command): Make extern.
1273 * inferior.h (prepare_execution_command): Declare.
1274 * infrun.c (set_observer_mode): Leave target async alone.
1275 * mi/mi-interp.c (mi_interpreter_init): Install
1276 mi_on_sync_execution_done as sync_execution_done observer.
1277 (mi_on_sync_execution_done): New function.
1278 (mi_execute_command_input_handler): Don't print the prompt if we
1279 just started a synchronous command with an async target.
1280 (mi_on_resume): Check sync_execution before printing prompt.
1281 * mi/mi-main.h (mi_async_p): Declare.
1282 * mi/mi-main.c: Include gdbcmd.h.
1283 (mi_async_p): New function.
1284 (mi_async, mi_async_1): New globals.
1285 (set_mi_async_command, show_mi_async_command, mi_async): New
1287 (exec_continue): Call prepare_execution_command.
1288 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1289 (mi_execute_async_cli_command): Use mi_async_p.
1290 (_initialize_mi_main): Install "set mi-async". Make
1291 "target-async" a deprecated alias.
1293 2014-05-29 Pedro Alves <palves@redhat.com>
1295 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1296 (_initialize_cli_interp): Adjust.
1297 * event-loop.c: Include "observer.h".
1298 (start_event_loop): Notify 'command_error' observers instead of
1299 calling display_gdb_prompt. Remove FIXME comment.
1300 * event-top.c (display_gdb_prompt): Remove call into the
1302 * inf-loop.c: Include "observer.h".
1303 (inferior_event_handler): Notify 'command_error' observers instead
1304 of calling display_gdb_prompt.
1305 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1306 observers instead of calling display_gdb_prompt.
1307 * interps.c (interp_set): Don't call display_gdb_prompt.
1308 (current_interp_display_prompt_p): Delete.
1309 * interps.h (interp_prompt_p): Delete declaration.
1310 (interp_prompt_p_ftype): Delete.
1311 (struct interp_procs) <prompt_proc_p>: Delete field.
1312 (current_interp_display_prompt_p): Delete declaration.
1313 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1314 (_initialize_mi_interp): Adjust.
1315 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1316 'command_error' observers.
1317 (tui_on_sync_execution_done, tui_on_command_error): New
1319 (tui_display_prompt_p): Delete.
1320 (_initialize_tui_interp): Adjust.
1322 2014-05-29 Pedro Alves <palves@redhat.com>
1325 * cli/cli-interp.c: Include infrun.h and observer.h.
1326 (cli_uiout, cli_interp): New globals.
1327 (cli_on_signal_received, cli_on_end_stepping_range)
1328 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1330 (cli_interpreter_init): Install them as 'end_stepping_range',
1331 'signal_received' 'signal_exited', 'exited' and 'no_history'
1333 (_initialize_cli_interp): Remove cli_interp local.
1334 * infrun.c (handle_inferior_event): Call the several stop reason
1335 observers instead of printing the stop reason directly.
1336 (end_stepping_range): New function.
1337 (print_end_stepping_range_reason, print_signal_exited_reason)
1338 (print_exited_reason, print_signal_received_reason)
1339 (print_no_history_reason): Make static, and add an uiout
1340 parameter. Print to that instead of to CURRENT_UIOUT.
1341 * infrun.h (print_end_stepping_range_reason)
1342 (print_signal_exited_reason, print_exited_reason)
1343 (print_signal_received_reason print_no_history_reason): New
1345 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1347 <cli_uiout>: New field.
1348 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1349 uiout for CLI output. Install 'signal_received',
1350 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1352 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1353 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1354 (mi_on_no_history): New functions.
1355 (ui_out_free_cleanup): Delete function.
1356 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1357 instead use the one already stored in the MI interpreter data.
1358 (mi_ui_out): Adjust.
1359 * tui/tui-interp.c: Include infrun.h and observer.h.
1360 (tui_interp): New global.
1361 (tui_on_signal_received, tui_on_end_stepping_range)
1362 (tui_on_signal_exited, tui_on_exited)
1363 (tui_on_no_history): New functions.
1364 (tui_init): Install them as 'end_stepping_range',
1365 'signal_received' 'signal_exited', 'exited' and 'no_history'
1367 (_initialize_tui_interp): Delete tui_interp local.
1369 2014-05-29 Pedro Alves <palves@redhat.com>
1372 * linux-nat.c (linux_nat_resume_callback): Rename the second
1373 parameter to 'except'. Skip LP if it points to EXCEPT.
1374 (linux_nat_resume): Don't mark the event lwp as not stopped
1375 before resuming sibling lwps. Instead ask
1376 linux_nat_resume_callback to skip the event lwp. Mark it as not
1377 stopped after actually resuming it.
1378 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1380 (wait_lwp): Mark the lwp as stopped here.
1381 (stop_wait_callback): Mark the lwp as not stopped right after
1382 resuming it. Don't mark lwps as stopped here.
1383 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1384 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1386 2014-05-29 Pedro Alves <palves@redhat.com>
1389 * infrun.c (resume): Determine how much to resume depending on
1390 whether the caller wanted a step, not whether we can hardware step
1391 the target. Mark all threads that we intend to run as running,
1392 unless we're calling an inferior function.
1393 (normal_stop): If the thread is running an infcall, don't finish
1395 * target.c (target_resume): Don't mark threads as running here.
1397 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1399 * serial.c (_initialize_serial): Remove support for
1400 the "set remotebaud" and "show remotebaud" commands.
1401 * NEWS: Add entry documenting the removal of that command.
1403 2014-05-28 Yao Qi <yao@codesourcery.com>
1405 * charset.c: Fix typo in comments.
1407 2014-05-27 Gary Benson <gbenson@redhat.com>
1409 * utils.c (internal_vproblem): Prompt for a bug report.
1411 2014-05-26 Andy Wingo <wingo@igalia.com>
1413 * guile/scm-arch.c (arscm_mark_arch_smob):
1414 * guile/scm-block.c (bkscm_mark_block_smob)
1415 (bkscm_mark_block_syms_progress_smob):
1416 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1417 * guile/scm-exception.c (exscm_mark_exception_smob):
1418 * guile/scm-frame.c (frscm_mark_frame_smob):
1419 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1420 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1421 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1422 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1423 (ppscm_mark_pretty_printer_worker_smob):
1424 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1425 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1426 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1427 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1429 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1432 2014-05-26 Andy Wingo <wingo@igalia.com>
1433 Doug Evans <xdje42@gmail.com>
1435 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1436 empty_base_class. All uses updated.
1437 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1438 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1440 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1441 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1442 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1443 (gdbscm_gsmob_has_property_p, add_property_name)
1444 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1445 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1446 (gdb-object-has-property?, gdb-object-properties): Remove.
1447 (gdb-object-kind): Renamed from gsmob-kind.
1449 2014-05-26 Andy Wingo <wingo@igalia.com>
1451 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1452 * configure: Regenerate.
1454 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1456 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1458 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1460 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1461 (replay_memory_access_read_only, replay_memory_access_read_write)
1462 (replay_memory_access_types, replay_memory_access)
1463 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1464 (cmd_set_record_btrace, cmd_show_record_btrace)
1465 (cmd_show_replay_memory_access): New.
1466 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1467 (record_btrace_remove_breakpoint): Replace
1468 record_btrace_allow_memory_access with replay_memory_access.
1469 (_initialize_record_btrace): Add commands.
1470 * NEWS: Announce it.
1472 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1474 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1476 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1478 * MAINTAINERS (Write After Approval): Move self back from
1481 2014-05-22 Pedro Alves <palves@redhat.com>
1483 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1484 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1485 (disable_randomization, enum exec_direction_kind)
1486 (execution_direction, stop_registers, start_remote)
1487 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1488 (wait_for_inferior, normal_stop, get_last_target_status)
1489 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1490 (insert_step_resume_breakpoint_at_sal)
1491 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1492 (set_step_info, print_stop_event, signal_stop_state)
1493 (signal_print_state, signal_pass_state, signal_stop_update)
1494 (signal_print_update, signal_pass_update)
1495 (update_signals_program_target, clear_exit_convenience_vars)
1496 (displaced_step_dump_bytes, update_observer_mode)
1497 (signal_catch_update, gdb_signal_from_command): Move
1499 * infrun.h: ... to this new file.
1500 * amd64-tdep.c: Include infrun.h.
1501 * annotate.c: Include infrun.h.
1502 * arch-utils.c: Include infrun.h.
1503 * arm-linux-tdep.c: Include infrun.h.
1504 * arm-tdep.c: Include infrun.h.
1505 * break-catch-sig.c: Include infrun.h.
1506 * breakpoint.c: Include infrun.h.
1507 * common/agent.c: Include infrun.h instead of inferior.h.
1508 * corelow.c: Include infrun.h.
1509 * event-top.c: Include infrun.h.
1510 * go32-nat.c: Include infrun.h.
1511 * i386-tdep.c: Include infrun.h.
1512 * inf-loop.c: Include infrun.h.
1513 * infcall.c: Include infrun.h.
1514 * infcmd.c: Include infrun.h.
1515 * infrun.c: Include infrun.h.
1516 * linux-fork.c: Include infrun.h.
1517 * linux-nat.c: Include infrun.h.
1518 * linux-thread-db.c: Include infrun.h.
1519 * monitor.c: Include infrun.h.
1520 * nto-tdep.c: Include infrun.h.
1521 * procfs.c: Include infrun.h.
1522 * record-btrace.c: Include infrun.h.
1523 * record-full.c: Include infrun.h.
1524 * remote-m32r-sdi.c: Include infrun.h.
1525 * remote-mips.c: Include infrun.h.
1526 * remote-notif.c: Include infrun.h.
1527 * remote-sim.c: Include infrun.h.
1528 * remote.c: Include infrun.h.
1529 * reverse.c: Include infrun.h.
1530 * rs6000-tdep.c: Include infrun.h.
1531 * s390-linux-tdep.c: Include infrun.h.
1532 * solib-irix.c: Include infrun.h.
1533 * solib-osf.c: Include infrun.h.
1534 * solib-svr4.c: Include infrun.h.
1535 * target.c: Include infrun.h.
1536 * top.c: Include infrun.h.
1537 * windows-nat.c: Include infrun.h.
1538 * mi/mi-interp.c: Include infrun.h.
1539 * mi/mi-main.c: Include infrun.h.
1540 * python/py-threadevent.c: Include infrun.h.
1542 2014-05-22 Pedro Alves <palves@redhat.com>
1544 * infrun.c (handle_inferior_event): Store the exit code for
1545 --return-child-result here, instead of ...
1546 (print_exited_reason): ... here.
1548 2014-05-21 Pedro Alves <palves@redhat.com>
1551 * gdbthread.h (struct thread_control_state): New field
1553 * infrun.c (follow_fork): Copy the new thread control field to the
1555 (clear_proceed_status_thread): Clear the new thread control field.
1556 (proceed): Set the new thread control field.
1557 * interps.h (command_interp): Declare.
1558 * interps.c (command_interpreter): New global.
1559 (command_interp): New function.
1560 (interp_exec): Set `command_interpreter' while here.
1561 * cli-out.c (cli_uiout_dtor): New function.
1562 (cli_ui_out_impl): Install it.
1563 * mi/mi-interp.c: Include cli-out.h.
1564 (mi_cmd_interpreter_exec): Add comment.
1565 (restore_current_uiout_cleanup): New function.
1566 (ui_out_free_cleanup): New function.
1567 (mi_on_normal_stop): If finishing an execution command started by
1568 a CLI command, or any kind of breakpoint-like event triggered,
1569 print the stop event to the output (CLI) stream.
1570 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1572 2014-05-21 Pedro Alves <palves@redhat.com>
1574 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1575 current source line having changed.
1576 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1577 * infrun.c (normal_stop): Adjust call to
1578 set_current_sal_from_frame.
1579 * source.c (clear_lines_listed_range): New function.
1580 (set_current_source_symtab_and_line, identify_source_line): Clear
1581 the lines listed range.
1582 (line_info): Handle the first "info line" after the current source
1583 line having changed.
1584 * stack.c (print_stack_frame): Remove center handling.
1585 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1588 2014-05-21 Pedro Alves <palves@redhat.com>
1590 * inf-child.c (inf_child_mourn_inferior): New function.
1591 * inf-child.h (inf_child_mourn_inferior): New declaration.
1592 * darwin-nat.c (darwin_mourn_inferior): Use
1593 inf_child_mourn_inferior.
1594 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1595 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1596 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1597 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1598 * windows-nat.c (windows_mourn_inferior): Likewise.
1600 2014-05-21 Doug Evans <xdje42@gmail.com>
1602 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1604 2014-05-21 Doug Evans <xdje42@gmail.com>
1606 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1607 (gdbscm_out_of_range_error): Ditto.
1608 (gdbscm_memory_error): Ditto.
1609 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1610 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1611 (gdbscm_out_of_range_error): Update.
1612 (gdbscm_memory_error): Update.
1613 (gdbscm_scm_to_target_string_unsafe): Delete.
1615 2014-05-21 Pedro Alves <palves@redhat.com>
1617 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1619 (inf_child_open_target): New function.
1620 (inf_child_open): Use inf_child_open_target to push the target
1621 instead of erroring out.
1622 (inf_child_disconnect, inf_child_close)
1623 (inf_child_maybe_unpush_target): New functions.
1624 (inf_child_target): Install inf_child_disconnect and
1625 inf_child_close. Store a pointer to the returned object.
1626 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1628 * target.c (auto_connect_native_target): New global.
1629 (show_default_run_target): New function.
1630 (find_default_run_target): Return NULL if automatically connecting
1631 to the native target is disabled.
1632 (_initialize_target): Install set/show auto-connect-native-target.
1633 * NEWS: Mention "set auto-connect-native-target", and "target
1635 * linux-nat.c (super_close): New global.
1636 (linux_nat_close): Call super_close.
1637 (linux_nat_add_target): Store a pointer to the base class's
1639 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1640 inf_child_maybe_unpush.
1641 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1643 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1644 the inferior. Use inf_child_maybe_unpush_target.
1645 (inf_ttrace_attach): Don't push the target if it is already
1647 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1648 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1649 after mourning the inferior. Use inf_child_maybe_unpush_target.
1650 (darwin_attach_pid): Don't push the target if it is already
1652 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1653 mourning the inferior. Use inf_child_maybe_unpush_target.
1654 (gnu_detach): Use inf_child_maybe_unpush_target.
1655 * go32-nat.c (go32_create_inferior): Don't push the target if it
1657 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1658 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1659 (procfs_open): Rename to ...
1660 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1661 comments. Can target_preopen before changing node. Call
1662 inf_child_open_target to push the target explicitly.
1663 (procfs_attach): Don't push the target if it is already pushed.
1664 (procfs_detach): Use inf_child_maybe_unpush_target.
1665 (procfs_create_inferior): Don't push the target if it is already
1667 (nto_native_ops): New global.
1668 (procfs_open): Reimplement.
1669 (procfs_native_open): New function.
1670 (init_procfs_targets): Install procfs_native_open as to_open of
1671 "target native". Store a pointer to the "native" target in
1673 * procfs.c (procfs_attach): Don't push the target if it is already
1675 (procfs_detach): Use inf_child_maybe_unpush_target.
1676 (procfs_mourn_inferior): Only unpush the target after mourning the
1677 inferior. Use inf_child_maybe_unpush_target.
1678 (procfs_init_inferior): Don't push the target if it is already
1680 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1681 if it is already pushed.
1683 2014-05-21 Pedro Alves <palves@redhat.com>
1685 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1686 and "procfs" targets are now called "native" instead.
1688 2014-05-21 Pedro Alves <palves@redhat.com>
1690 * go32-nat.c (go32_open): Delete.
1691 (go32_target): Don't override the to_open method.
1693 2014-05-21 Pedro Alves <palves@redhat.com>
1695 * nto-procfs.c (procfs_can_run): New function.
1696 (nto_procfs_ops): New global.
1697 (init_procfs_targets): New, based on procfs_target. Install
1698 "target native" in addition to "target procfs".
1699 (_initialize_procfs): Call init_procfs_targets instead of adding
1702 2014-05-21 Pedro Alves <palves@redhat.com>
1704 * windows-nat.c (windows_target): Don't override to_shortname,
1705 to_longname or to_doc.
1707 2014-05-21 Pedro Alves <palves@redhat.com>
1709 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1712 2014-05-21 Pedro Alves <palves@redhat.com>
1714 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1715 to_shortname, to_longname or to_doc.
1717 2014-05-21 Pedro Alves <palves@redhat.com>
1719 * go32-nat.c (go32_target): Don't override to_shortname,
1720 to_longname or to_doc.
1722 2014-05-21 Pedro Alves <palves@redhat.com>
1724 * inf-child.c (inf_child_open): Remove mention of "child".
1725 (inf_child_target): Rename target to "native" instead of "child".
1727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1729 * Makefile.in (SFILES): Delete "regset.c".
1730 (COMMON_OBS): Delete "regset.o".
1732 * regset.h (regset_alloc): Delete prototype.
1734 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1736 * sparc-linux-tdep.c (sparc32_linux_gregset)
1737 (sparc32_linux_fpregset): New static regset structures.
1738 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1739 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1741 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1742 (sparc64_linux_fpregset): New static regset structures.
1743 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1744 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1745 New static regset structures.
1746 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1747 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1748 New static regset structures.
1749 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1750 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1751 New static regset structures.
1752 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1753 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1754 New static regset structures.
1755 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1757 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1759 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1760 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1761 register maps ("regmaps") from "*regset" to "*regmap". Do this
1762 for all regmap types and variables.
1763 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1764 (sparc32_linux_supply_core_gregset)
1765 (sparc32_linux_collect_core_gregset)
1766 (sparc32_linux_supply_core_fpregset)
1767 (sparc32_linux_collect_core_fpregset): Likewise.
1768 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1769 (sparc_gregmap, sparc_fpregmap): ... these.
1770 (sparc_supply_gregset, sparc_collect_gregset)
1771 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1772 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1773 (_initialize_sparc_nat): Rename regmaps.
1774 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1775 (sparc_gregmap, sparc_fpregmap): ... these.
1776 (sparc_supply_gregset, sparc_collect_gregset)
1777 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1778 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1780 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1781 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1783 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1785 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1786 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1787 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1789 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1790 (sparc32_bsd_fpregset): Rename to...
1791 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1792 (sparc32_bsd_fpregmap): ... these.
1793 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1794 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1795 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1796 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1797 (struct sparc_gregmap, struct sparc_fpregmap)
1798 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1799 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1800 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1801 (sparc32_supply_regset, sparc32_collect_gregset)
1802 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1804 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1805 (sparc64_linux_ptrace_gregmap): ... this.
1806 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1807 (_initialize_sparc64_linux_nat): Rename regmaps.
1808 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1809 (sparc64_linux_core_gregmap): ... this.
1810 (sparc64_linux_supply_core_gregset)
1811 (sparc64_linux_collect_core_gregset)
1812 (sparc64_linux_supply_core_fpregset)
1813 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1814 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1815 (sparc64_sol2_fpregset): Rename to...
1816 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1817 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1818 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1820 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1821 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1822 (sparc64_bsd_fpregset): Rename to...
1823 (struct sparc_gregmap, sparc64_sol2_gregmap)
1824 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1825 (sparc64_bsd_fpregmap): ... these.
1826 (sparc64_supply_gregset, sparc64_collect_gregset)
1827 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1829 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1830 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1831 (sparc64fbsd_gregmap): ... this.
1832 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1833 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1835 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1836 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1837 (sparc64nbsd_collect_fpregset): Likewise.
1838 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1839 (sparc64nbsd_gregmap): ... this.
1840 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1842 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1843 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1844 (sparc64obsd_gregmap): ... this.
1845 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1847 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1848 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1849 (sparc32nbsd_gregmap): ... this.
1850 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1853 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855 * score-tdep.c (score7_linux_gregset): New static regset
1857 (score7_linux_regset_from_core_section): Remove dynamic regset
1859 (score_gdbarch_init): Drop allocation of tdep structure.
1860 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1862 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1864 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1866 (am33_regset_from_core_section): Remove dynamic regset
1869 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1871 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1872 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1874 (mips_linux_regset_from_core_section): Remove dynamic regset
1876 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1877 'gregset64', 'fpregset', and 'fpregset64'.
1878 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1879 deleted tdep fields.
1881 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1883 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1885 (amd64_regset_from_core_section): Remove dynamic regset
1887 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1889 (amd64obsd_regset_from_core_section): Remove dynamic regset
1891 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1893 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1894 x86-common regset supply function.
1895 * i386-tdep.c (i386_collect_gregset): Make static.
1896 (i386_gregset): New global regset structure.
1897 (i386_fpregset, i386_xstateregset): New static regset structures.
1898 (i386_regset_from_core_section): Remove dynamic regset
1900 (i386_gdbarch_init): Remove initialization of tdep fields
1901 'gregset', 'fpregset', and 'xstateregset'.
1902 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1903 'fpregset', and 'xstateregset'.
1904 (i386_collect_gregset): Remove prototype.
1905 (i386_gregset): New declaration.
1906 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1908 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1911 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1913 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1914 (arm_linux_vfpregset): New static regset structures.
1915 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1917 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1918 and 'vfpregset' fields.
1920 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1922 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1923 (aarch64_linux_fpregset): New static regset structures.
1924 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1925 of regset structures.
1926 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1931 * regset.h (struct regset): Remove gdbarch field.
1932 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1933 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1934 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1936 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1937 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1938 (ppc32_linux_vsxregset): Likewise.
1939 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1940 via the regcache instead of the regset.
1941 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1942 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1943 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1944 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1949 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1950 Constify structures.
1951 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1952 (alphanbsd_aout_gregset): Likewise.
1953 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1954 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1956 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1957 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1959 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1960 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1961 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1962 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1963 * m88k-tdep.c (m88k_gregset): Likewise.
1964 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1965 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1966 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1967 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1968 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1969 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1970 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1971 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1972 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1974 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1975 * sh-tdep.h (sh_corefile_gregset): Likewise.
1976 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1977 * vax-tdep.c (vax_gregset): Likewise.
1979 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 Fix TLS access for -static -pthread.
1982 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1983 (try_thread_db_load_1): Initialize it.
1984 (thread_db_get_thread_local_address): Call it if LM is zero.
1985 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1986 * target.h (struct target_ops) (to_get_thread_local_address): Add
1987 load_module_addr comment.
1989 2014-05-21 Pedro Alves <palves@redhat.com>
1991 * dcache.c (dcache_read_memory_partial): If reading the cache line
1992 fails, fallback to reading just the memory the caller wanted.
1994 2014-05-20 Doug Evans <dje@google.com>
1996 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1997 instead of get_current_arch.
1999 2014-05-20 Pedro Alves <palves@redhat.com>
2001 * NEWS: Mention that compare-sections now works with all targets.
2003 * remote.c (PACKET_qCRC): New enum value.
2004 (remote_verify_memory): Don't send qCRC if the target has no
2005 execution. Use packet_support/packet_ok. If the target doesn't
2006 support the qCRC packet, fallback to a deep memory copy.
2007 (compare_sections_command): Say "target image" instead of "remote
2009 (_initialize_remote): Add PACKET_qCRC to the list of config
2010 packets that have no associated command. Extend comment.
2011 * target.c (simple_verify_memory, default_verify_memory): New
2013 * target.h (struct target_ops) <to_verify_memory>: Default to
2014 default_verify_memory.
2015 (simple_verify_memory): New declaration.
2016 * target-delegates.c: Regenerate.
2018 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2020 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2022 2014-05-20 Hui Zhu <hui@codesourcery.com>
2023 Yao Qi <yao@codesourcery.com>
2026 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2027 and change address of sp and pc.
2029 2014-05-19 Tom Tromey <tromey@redhat.com>
2031 * gdbtypes.c (rank_function): Use XNEWVEC.
2032 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2034 2014-05-19 Doug Evans <dje@google.com>
2036 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2037 build_type_unit_groups and moved closer to only caller. Remove
2038 arguments. All references updated. Remove outdated .gdb_index
2040 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2041 build_type_psymtabs_1.
2043 2014-05-19 Doug Evans <dje@google.com>
2045 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2046 n_type_unit_groups, all_type_unit_groups. All uses removed.
2047 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2048 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2049 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2050 (add_type_unit_group_to_table): Delete.
2052 2014-05-19 Doug Evans <dje@google.com>
2054 * eval.c (evaluate_subexp_standard): Add some comments.
2056 2014-05-17 Doug Evans <xdje42@gmail.com>
2058 * progspace.c (remove_program_space): Delete, unused.
2059 * progspace.h (remove_program_space): Ditto.
2061 2014-05-17 Doug Evans <xdje42@gmail.com>
2063 * inferior.c (prune_inferiors): Fix comment.
2064 (remove_inferior_command): Call prune_program_spaces.
2066 2014-05-16 Doug Evans <dje@google.com>
2068 New command line option -D.
2070 * main.c (set_gdb_data_directory): New function.
2071 (captured_main): Recognize -D. Flag error for --data-directory "".
2072 Call set_gdb_data_directory.
2073 (print_gdb_help): Print --data-directory, -D.
2074 * main.h (set_gdb_data_directory): Declare.
2075 * top.c (staged_gdb_datadir): New static global.
2076 (set_gdb_datadir): Call set_gdb_data_directory
2077 (show_gdb_datadir): New function.
2078 (init_main): Update init of data-directory parameter.
2080 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2082 Import the "dirfd" gnulib module.
2083 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2084 * gnulib/aclocal.m4: Update.
2085 * gnulib/config.in: Update.
2086 * gnulib/configure: Update.
2087 * gnulib/import/Makefile.am: Update.
2088 * gnulib/import/Makefile.in: Update.
2089 * gnulib/import/dirfd.c: New.
2090 * gnulib/import/m4/dirfd.m4: New.
2091 * gnulib/import/m4/gnulib-cache.m4: Update.
2092 * gnulib/import/m4/gnulib-comp.m4: Update.
2094 2014-05-16 Pierre Muller <muller@sourceware.org>
2095 Yao Qi <yao@codesourcery.com>
2097 * valprint.c (print_wchar): Move the code on checking whether
2098 W is a printable wide char to the default branch of switch
2099 statement below. Call wchar_printable instead of gdb_iswprint.
2101 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2103 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2104 ldr.w and ldrd instructions.
2106 2014-05-15 Doug Evans <dje@google.com>
2108 * dwarf2read.c (read_structure_type): Delete outdated comments.
2110 2014-05-14 Tom Tromey <tromey@redhat.com>
2112 * macrocmd.c (print_macro_definition): Reindent.
2114 2014-05-13 Doug Evans <xdje42@gmail.com>
2116 * python/py-cmd.c (cmdpy_completer): Add comment.
2117 (completers): Make const.
2119 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2121 * infrun.c (resume): Remove should_resume (unused). Move up
2122 declaration of resume_ptid.
2124 2014-05-13 Tom Tromey <tromey@redhat.com>
2126 * language.h (unop_type_check): Remove.
2127 (binop_type_check): Don't declare.
2129 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2131 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2132 call to regcache_raw_collect.
2134 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2136 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2137 mi_console->quote as the quoting character.
2139 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2141 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2143 2014-04-29 Tom Tromey <tromey@redhat.com>
2145 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2146 "show debug varobj".
2148 2014-05-07 Kyle McMartin <kyle@redhat.com>
2150 Pushed by Joel Brobecker <brobecker@adacore.com>.
2151 * aarch64-tdep.c (aarch64_software_single_step): New function.
2152 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2153 with aarch64_software_single_step.
2155 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2159 2014-05-05 Keith Seitz <keiths@redhat.com>
2161 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2162 variable or history value is successfully parsed.
2164 2014-05-05 Yao Qi <yao@codesourcery.com>
2165 Pedro Alves <palves@redhat.com>
2167 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2168 address of blocks that intersects the requested range. Trim
2169 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2171 * ctf.c (ctf_xfer_partial): Likewise.
2173 2014-05-05 Yao Qi <yao@codesourcery.com>
2175 * printcmd.c (display_command): Remove the check to
2176 target_has_execution.
2178 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2180 * ppcobsd-nat.c: Include "obsd-nat.h".
2181 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2183 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2185 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2187 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2188 and 16-bit signed and unsigned arguments. Update comment.
2189 (stap_parse_probe_arguments): Extend code to handle such
2190 arguments. Use warning instead of complaint to notify about
2191 unrecognized bitness.
2193 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2195 PR breakpoints/16889
2196 * stap-probe.c (stap_parse_probe_arguments): Simplify
2197 check for non-prefixed probes (i.e., probes whose
2198 arguments do not start with "N@"). Always set the
2199 argument type to a sane value.
2201 2014-05-01 David Taylor <dtaylor@emc.com>
2203 * remote.c (compare_sections_command): Add -r option to compare
2204 all loadable read-only sections.
2206 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2208 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2209 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2211 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2212 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2213 Remove unused CORE_ADDR argument. Update all callers.
2215 2014-04-29 Pedro Alves <palves@redhat.com>
2217 * remote.c (struct packet_config) <detect>: Extend comment.
2218 (add_packet_config_cmd): Don't set the config's detect or support
2220 (init_all_packet_configs): Also initialize the config's 'detect'
2222 (reset_all_packet_configs_support): New function.
2223 (remote_open_1): Call reset_all_packet_configs_support instead of
2224 init_all_packet_configs.
2225 (_initialize_remote): Initialize all packet configs. Assert that
2226 all packets have an associated command, except a few known
2229 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2231 * dwarf2read.c (read_subrange_type): Handle dynamic
2232 DW_AT_lower_bound attributes.
2234 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2236 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2237 dynamic bounds before computing its upper bound.
2238 (ada_discrete_type_low_bound): Same as above with the lower bound.
2240 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2242 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2243 range types. Adjust the array handling implementation to
2244 take advantage of this change.
2245 (resolve_dynamic_range): New function, mostly extracted from
2246 resolve_dynamic_bounds.
2247 (resolve_dynamic_array): New function, mostly extracted from
2248 resolve_dynamic_bounds.
2249 (resolve_dynamic_bounds): Delete.
2250 (resolve_dynamic_type): Reimplement. Add handling of
2251 TYPE_CODE_RANGE types.
2253 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2255 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2256 handling of parallel ___XA types.
2258 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2260 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2261 unnecessary second call to static_unwrap_type.
2263 2014-04-27 Hui Zhu <hui@codesourcery.com>
2265 * stack.c (print_frame_info): Call do_gdb_disassembly with
2266 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2268 2014-04-26 Doug Evans <xdje42@gmail.com>
2270 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2272 2014-04-25 Pedro Alves <palves@redhat.com>
2275 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2276 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2277 and newline from built string.
2278 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2279 (linux_ptrace_attach_fail_reason): ... this.
2280 * linux-nat.c (linux_nat_attach): Adjust to use
2281 linux_ptrace_attach_fail_reason.
2283 2014-04-25 Pedro Alves <palves@redhat.com>
2285 * remote.c (struct remote_state): Remove multi_process_aware,
2286 non_stop_aware, cond_tracepoints, cond_breakpoints,
2287 breakpoint_commands, fast_tracepoints, static_tracepoints,
2288 install_in_trace, disconnected_tracing,
2289 enable_disable_tracepoints, string_tracing, and
2290 augmented_libraries_svr4_read fields.
2291 (remote_multi_process_p): Move further below in the file.
2292 (struct packet_config): Add comments.
2293 (update_packet_config): Delete function.
2294 (show_packet_config_cmd): Use packet_config_support.
2295 (add_packet_config_cmd): Use NULL as set callback.
2296 (packet_ok): "set remote foo-packet"-style commands no longer
2297 change config->supported -- adjust.
2298 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2299 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2300 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2301 (PACKET_QNonStop, PACKET_multiprocess_feature)
2302 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2303 (PACKET_DisconnectedTracing_feature)
2304 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2305 (set_remote_protocol_packet_cmd): Delete function.
2306 (packet_config_support, packet_support): New functions.
2307 (set_remote_protocol_Z_packet_cmd): Don't call
2308 update_packet_config.
2309 (remote_query_attached, remote_pass_signals)
2310 (remote_program_signals, remote_threads_info)
2311 (remote_threads_extra_info, remote_start_remote): Use
2313 (remote_start_remote): Use packet_config_support and
2315 (init_all_packet_configs): Set all packets to unknown support,
2316 instead of calling update_packet_config.
2317 (remote_check_symbols): Use packet_support.
2318 (remote_supported_packet): Unconditionally set the packet config's
2320 (remote_multi_process_feature, remote_non_stop_feature)
2321 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2322 (remote_breakpoint_commands_feature)
2323 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2324 (remote_install_in_trace_feature)
2325 (remote_disconnected_tracing_feature)
2326 (remote_enable_disable_tracepoint_feature)
2327 (remote_string_tracing_feature)
2328 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2329 (remote_protocol_features): Adjust to use remote_supported_packet
2330 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2331 "ConditionalTracepoints", "ConditionalBreakpoints",
2332 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2333 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2334 "EnableDisableTracepoints", and "tracenz".
2335 (remote_query_supported): Use packet_support.
2336 (remote_open_1): Adjust.
2337 (extended_remote_attach_1): Use packet_support. Switch on the
2338 result of packet_ok instead of checking whether the packet ended
2340 (remote_vcont_resume): Use packet_support.
2341 (remote_resume, remote_stop_ns, fetch_register_using_p)
2342 (remote_prepare_to_store, store_register_using_P)
2343 (check_binary_download, remote_write_bytes): Use packet_support.
2344 (remote_vkill): Use packet_support. Switch on the result of
2345 packet_ok instead of checking whether the packet ended up
2347 (extended_remote_supports_disable_randomization): Use
2349 (extended_remote_run): Switch on the result of packet_ok instead
2350 of checking whether the packet ended up disabled.
2351 (remote_insert_breakpoint, remote_remove_breakpoint)
2352 (remote_insert_watchpoint, remote_remove_watchpoint)
2353 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2355 (remote_search_memory): Use packet_config_support.
2356 (remote_get_thread_local_address, remote_get_tib_address)
2357 (remote_hostio_send_command, remote_can_execute_reverse): Use
2359 (remote_supports_cond_tracepoints)
2360 (remote_supports_cond_breakpoints)
2361 (remote_supports_fast_tracepoints)
2362 (remote_supports_static_tracepoints)
2363 (remote_supports_install_in_trace)
2364 (remote_supports_enable_disable_tracepoint)
2365 (remote_supports_string_tracing)
2366 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2367 the packet config says the feature is enabled or disabled.
2368 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2369 (remote_get_trace_status): Use packet_support.
2370 (remote_set_disconnected_tracing): Adjust to check whether the
2371 feature is enabled with packet_support.
2372 (remote_set_trace_buffer_size, remote_use_agent)
2373 (remote_can_use_agent, remote_supports_btrace): Use
2375 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2376 Use packet_config_support.
2377 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2378 the packet config says the feature is enabled or disabled.
2379 (set_range_stepping): Use packet_support.
2381 2014-04-25 Tom Tromey <tromey@redhat.com>
2383 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2386 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2388 * NEWS: Mention support for C99 variable length arrays.
2390 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2392 * ada-lang.c (standard_exc): Expand introductory comment.
2394 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2395 Walfred Tedeschi <walfred.tedeschi@intel.com>
2397 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2399 (amd64_linux_read_description): Add code to handle AVX512 xstate
2400 mask and return respective tdesc.
2401 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2402 and features/i386/x32-avx512-linux.c.
2403 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2404 (amd64_linux_core_read_description): Add code to handle AVX512
2405 xstate mask and return respective tdesc.
2406 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2407 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2409 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2410 (tdesc_amd64_avx512_linux): New prototype.
2411 (tdesc_x32_avx512_linux): Likewise.
2412 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2413 features/i386/x32-avx512.c.
2414 (amd64_ymm_avx512_names): New register names for pseudo
2416 (amd64_ymmh_avx512_names): New register names for raw registers
2418 (amd64_k_names): New register names for K registers.
2419 (amd64_zmmh_names): New register names for ZMM raw registers.
2420 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2421 (amd64_xmm_avx512_names): New register names for XMM16-31
2423 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2425 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2426 if feature is present.
2427 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2428 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2429 (AMD64_NUM_REGS): Adjust to new number of registers.
2430 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2431 registers supplied via XSTATE by AVX512 registers.
2432 (i386_linux_read_description): Add case for AVX512.
2433 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2434 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2435 (i386_linux_core_read_description): Add case for AVX512.
2436 (i386_linux_init_abi): Install supported register note section
2438 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2440 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2441 registers to be number of zmm7h + 1.
2442 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2443 * i386-tdep.c: Include features/i386/i386-avx512.c.
2444 (i386_zmm_names): Add ZMM pseudo register names array.
2445 (i386_zmmh_names): Add ZMM raw register names array.
2446 (i386_k_names): Add K raw register names array.
2447 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2448 registers. AVX512 has 16 more ZMM registers than there are YMM
2450 (i386_zmmh_regnum_p): Add function to look up register number of
2452 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2453 (i386_k_regnum_p): Likewise for K raw registers.
2454 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2455 registers added by AVX512.
2456 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2457 registers added by AVX512.
2458 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2460 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2461 (i386_pseudo_register_name): Add ZMM pseudo registers.
2462 (i386_zmm_type): Construct and return vector registers type for ZMM
2464 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2465 ZMM0-31 pseudo registers and K registers.
2466 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2467 and YMM16-31 registers from register cache.
2468 (i386_pseudo_register_write): Add code to write K, ZMM and
2470 (i386_register_reggroup_p): Add code to include/exclude AVX512
2471 registers in/from respective register groups.
2472 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2473 registers if feature is present in xcr0.
2474 (i386_gdbarch_init): Add code to initialize AVX512 feature
2475 variables in tdep structure, wire in pseudo registers and call
2476 initialize_tdesc_i386_avx512.
2477 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2479 (i386_regnum): Add AVX512 registers.
2480 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2481 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2482 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2483 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2485 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2486 (i386_ymm_avx512_regnum_p): Likewise.
2487 (i386_k_regnum_p): Likewise.
2488 (i386_zmm_regnum_p): Likewise.
2489 (i386_zmmh_regnum_p): Likewise.
2490 * i387-tdep.c : Update year in copyright notice.
2491 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2493 (XSAVE_YMM_AVX512_ADDR): New macro.
2494 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2496 (XSAVE_XMM_AVX512_ADDR): New macro.
2497 (xsave_avx512_k_offset): New table for K register offsets in
2499 (XSAVE_AVX512_K_ADDR): New macro.
2500 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2502 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2503 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2505 (i387_collect_xsave): Add code to collect AVX512 registers from
2507 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2508 of XMM16-31 registers.
2509 (I387_NUM_K_REGS): New define for number of K registers.
2510 (I387_K0_REGNUM): New define for K0 register number.
2511 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2512 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2513 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2515 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2516 (I387_XMM16_REGNUM): New define for XMM16 register number.
2517 (I387_YMM0_REGNUM): New define for YMM0 register number.
2518 (I387_KEND_REGNUM): New define for last K register number.
2519 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2520 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2522 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2524 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2526 * features/Makefile: Add AVX512 related files.
2527 * features/i386/32bit-avx512.xml: New file.
2528 * features/i386/64bit-avx512.xml: Likewise.
2529 * features/i386/amd64-avx512-linux.c: Likewise.
2530 * features/i386/amd64-avx512-linux.xml: Likewise.
2531 * features/i386/amd64-avx512.c: Likewise.
2532 * features/i386/amd64-avx512.xml: Likewise.
2533 * features/i386/i386-avx512-linux.c: Likewise.
2534 * features/i386/i386-avx512-linux.xml: Likewise.
2535 * features/i386/i386-avx512.c: Likewise.
2536 * features/i386/i386-avx512.xml: Likewise.
2537 * features/i386/x32-avx512-linux.c: Likewise.
2538 * features/i386/x32-avx512-linux.xml: Likewise.
2539 * features/i386/x32-avx512.c: Likewise.
2540 * features/i386/x32-avx512.xml: Likewise.
2541 * regformats/i386/amd64-avx512-linux.dat: New file.
2542 * regformats/i386/amd64-avx512.dat: Likewise.
2543 * regformats/i386/i386-avx512-linux.dat: Likewise.
2544 * regformats/i386/i386-avx512.dat: Likewise.
2545 * regformats/i386/x32-avx512-linux.dat: Likewise.
2546 * regformats/i386/x32-avx512.dat: Likewise.
2547 * NEWS: Add note about new support for AVX512.
2550 2014-04-23 Pedro Alves <palves@redhat.com>
2552 * breakpoint.c (insert_bp_location): Tolerate errors if the
2553 breakpoint is set in a user-loaded objfile.
2554 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2555 location is marked shlib_disabled. If the breakpoint is set in a
2556 user-loaded objfile is a GDB-side memory breakpoint, validate it
2557 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2558 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2560 * mem-break.c (memory_validate_breakpoint): New function.
2561 * objfiles.c (userloaded_objfile_contains_address_p): New
2563 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2564 * target.h (memory_validate_breakpoint): New declaration.
2566 2014-04-23 Pedro Alves <palves@redhat.com>
2568 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2569 the breakpoint is set in a shared library, only suppress
2570 errors for software breakpoints, not hardware breakpoints.
2572 2014-04-22 Pedro Alves <palves@redhat.com>
2574 * infrun.c (schedlock_applies): New function, factored out from
2575 find_thread_needs_step_over.
2576 (find_thread_needs_step_over): Use it.
2577 (switch_back_to_stepped_thread): Always clear trap_expected if the
2578 step over is finished. Return early if scheduler locking applies.
2579 Look for the stepping thread and a potential step-over thread with
2581 (currently_stepping_or_nexting_callback): Delete.
2583 2014-04-22 Nick Clifton <nickc@redhat.com>
2585 * NEWS: Mention that ARM sim now supports tracing.
2587 2014-04-22 Yao Qi <yao@codesourcery.com>
2589 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2591 * tracefile.c (tracefile_fetch_registers): ... it. New
2593 * tracefile.h (tracefile_fetch_registers): Declare.
2594 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2595 tracefile_fetch_registers.
2597 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2600 * windows-nat.c (thread_rec): Don't display a warning when
2601 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2602 fails for any reason, set th->suspended to -1, so that we don't
2603 try to resume such a thread. Also, don't return NULL in these
2604 cases, to avoid completely ruin the session due to "PC register is
2605 not available" error.
2606 (do_windows_fetch_inferior_registers): Check errors in
2607 GetThreadContext call.
2608 (windows_continue): Accept an additional argument KILLED; if not
2609 zero, ignore errors in the SetThreadContext call, since the
2610 inferior was killed and is shutting down.
2611 (windows_resume, get_windows_debug_event)
2612 (windows_create_inferior, windows_mourn_inferior)
2613 (windows_kill_inferior): All callers of windows_continue changed
2614 to adjust to its new calling sequence.
2616 2014-04-19 Yao Qi <yao@codesourcery.com>
2618 * ctf.c (ctf_open): Call post_create_inferior.
2620 2014-04-19 Yao Qi <yao@codesourcery.com>
2622 * ctf.c (handle_id): New static variable.
2623 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2624 value. Get the declaration of event "register" and get length
2625 of field "contents".
2627 2014-04-19 Yao Qi <yao@codesourcery.com>
2629 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2631 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2633 * valops.c (oload_method_static): Remove unnecessary argument
2634 METHOD. Update all callers.
2636 2014-04-18 Pedro alves <palves@redhat.com>
2637 Tom Tromey <tromey@redhat.com>
2640 * frame.c (get_prev_frame_1): Rename to ...
2641 (get_prev_frame_always): ... this, and make extern. Adjust.
2642 (skip_artificial_frames): Use get_prev_frame_always.
2643 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2644 (get_frame_unwind_stop_reason): Adjust to rename.
2645 * frame.h (get_prev_frame_always): Declare.
2646 * inline-frame.c: Include frame.h.
2647 (inline_frame_this_id): Use get_prev_frame_always.
2649 2014-04-18 Tristan Gingold <gingold@adacore.com>
2651 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2652 code by using bfd_mach_o_get_base_address.
2654 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2656 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2657 (spu_ax_pseudo_register_collect): New function.
2658 (spu_ax_pseudo_register_push_stack): Likewise.
2659 (spu_dwarf_reg_to_regnum): Likewise.
2660 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2662 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2664 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2665 Replace FRAME argument with FRAME_ID.
2666 * gdbarch.c, gdbarch.h: Regenerate.
2667 * findvar.c (default_value_from_register): Add GDBARCH argument;
2668 replace FRAME by FRAME_ID. No longer call get_frame_id.
2669 (value_from_register): Update call to gdbarch_value_from_register.
2670 * value.h (default_value_from_register): Update prototype.
2671 * s390-linux-tdep.c (s390_value_from_register): Update interface
2672 and call to default_value_from_register.
2673 * spu-tdep.c (spu_value_from_register): Likewise.
2675 * findvar.c (address_from_register): Remove TYPE argument.
2676 Do not call value_from_register; use gdbarch_value_from_register
2677 with null_frame_id instead.
2678 * value.h (address_from_register): Update prototype.
2679 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2680 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2681 address_from_register interface change.
2683 2014-04-17 Yao Qi <yao@codesourcery.com>
2685 * gdbtypes.h: Update comments to link to types and macros'
2688 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2690 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2692 2014-04-16 Keith Seitz <keiths@redhat.com>
2695 * dwarf2read.c (skip_one_die): Check that all relative-offset
2696 sibling DIEs fall within range of the current reader's buffer.
2697 (read_partial_die): Likewise.
2699 2014-04-16 Keith Seitz <keiths@redhat.com>
2702 * cp-namespace.c (lookup_symbol_file): If the type name of
2703 `this' is NULL, return immediately.
2705 2014-04-14 Keith Seitz <keiths@redhat.com>
2708 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2709 from symbol_matches_domain in symtab.c. All local callers
2710 of symbol_matches_domain updated.
2711 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2712 search STRUCT_DOMAIN.
2713 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2714 independently. standard_lookup will do that automatically.
2715 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2716 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2717 (cp_lookup_symbol_in_namespace): Likewise.
2718 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2719 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2720 may return a STRUCT_DOMAIN match.
2721 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2722 * cp-support.c: Include language.h.
2723 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2725 * psymtab.c (match_partial_symbol): Compare the requested
2726 domain with the symbol's domain directly.
2727 (lookup_partial_symbol): Likewise.
2728 * symtab.c (lookup_symbol_in_language): Explain when/why
2729 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2730 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2731 appropriate languages.
2732 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2733 and moved to ada-lang.c
2734 (lookup_block_symbol): Explain that this function only returns
2735 symbol matching the requested DOMAIN.
2736 Compare the requested domain with the symbol's domain directly.
2737 (iterate_over_symbols): Compare the requested domain with the
2738 symbol's domain directly.
2739 * symtab.h (symbol_matches_domain): Remove.
2741 2014-04-14 Tom Tromey <tromey@redhat.com>
2744 * c-exp.y (type_aggregate_p): New function.
2745 (qualified_name, classify_inner_name): Use it.
2746 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2747 and TYPE_TARGET_TYPE of an enum type.
2748 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2750 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2751 handle TYPE_DECLARED_CLASS.
2752 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2754 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2755 * valops.c (enum_constant_from_type): New function.
2756 (value_aggregate_elt): Use it.
2757 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2760 2014-04-14 Tom Tromey <tromey@redhat.com>
2762 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2763 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2765 * value.h (value_aggregate_elt): Update.
2767 2014-04-14 Tom Tromey <tromey@redhat.com>
2769 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2771 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2773 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2774 (evaluate_subexp_standard): Pass noside argument.
2775 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2776 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2777 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2778 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2779 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2781 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2783 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2784 points to a constant blob.
2786 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2788 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2789 property and store it as the high bound and flag the range accordingly.
2790 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2791 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2792 * gdbtypes.h (enum range_flags): New enum.
2793 (struct range_bounds): Add flags member.
2795 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2797 * c-typeprint.c (c_type_print_varspec_suffix): Added
2798 check for not yet resolved high bound. If unresolved, print
2799 "variable length" string to the console instead of random
2802 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2804 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2806 (ada_template_to_fixed_record_type_1): Likewise.
2807 (ada_to_fixed_type_1): Likewise.
2808 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2809 (cp_print_value): Likewise.
2810 * d-valprint.c (dynamic_array_type): Likewise.
2811 * findvar.c (address_of_variable): Likewise.
2812 * jv-valprint.c (java_value_print): Likewise.
2813 * valops.c (value_ind): Likewise.
2814 * value.c (coerce_ref): Likewise.
2816 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2818 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2819 value and retrieve the dynamic type size.
2821 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2823 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2824 passed to sizeof is dynamic evaluate the argument to compute the length.
2826 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2827 Joel Brobecker <brobecker@adacore.com>
2829 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2830 (dwarf2_evaluate_property): New function.
2831 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2832 * dwarf2read.c (attr_to_dynamic_prop): New function.
2833 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2835 * gdbtypes.c: Include dwarf2loc.h.
2836 (is_dynamic_type): New function.
2837 (resolve_dynamic_type): New function.
2838 (resolve_dynamic_bounds): New function.
2839 (get_type_length): New function.
2840 (check_typedef): Use get_type_length to compute type length.
2841 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2842 (TYPE_LOW_BOUND_KIND): New macro.
2843 (is_dynamic_type): New function prototype.
2844 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2845 to resolve dynamic properties of the type. Update comment.
2846 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2848 2014-04-14 Richard Henderson <rth@redhat.com>
2850 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2852 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2853 Doug Evans <xdje42@gmail.com>
2855 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2856 dereference TYPE_CODE_REF values.
2858 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2860 Revert the following changes due to regressions:
2862 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2863 (dwarf2_evaluate_property): New function.
2864 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2865 * dwarf2read.c (attr_to_dynamic_prop): New function.
2866 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2868 * gdbtypes.c: Include dwarf2loc.h.
2869 (is_dynamic_type): New function.
2870 (resolve_dynamic_type): New function.
2871 (resolve_dynamic_bounds): New function.
2872 (get_type_length): New function.
2873 (check_typedef): Use get_type_length to compute type length.
2874 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2875 (TYPE_LOW_BOUND_KIND): New macro.
2876 (is_dynamic_type): New function prototype.
2877 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2878 to resolve dynamic properties of the type. Update comment.
2879 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2881 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2882 passed to sizeof is dynamic evaluate the argument to compute the length.
2884 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2885 value and retrieve the dynamic type size.
2887 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2888 (ada_template_to_fixed_record_type_1): Likewise.
2889 (ada_to_fixed_type_1): Likewise.
2890 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2891 (cp_print_value): Likewise.
2892 * d-valprint.c (dynamic_array_type): Likewise.
2893 * eval.c (evaluate_subexp_with_coercion): Likewise.
2894 * findvar.c (address_of_variable): Likewise.
2895 * jv-valprint.c (java_value_print): Likewise.
2896 * valops.c (value_ind): Likewise.
2897 * value.c (coerce_ref): Likewise.
2899 * c-typeprint.c (c_type_print_varspec_suffix): Added
2900 check for not yet resolved high bound. If unresolved, print
2901 "variable length" string to the console instead of random
2904 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2905 property and store it as the high bound and flag the range accordingly.
2906 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2907 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2908 * gdbtypes.h (enum range_flags): New enum.
2909 (struct range_bounds): Add flags member.
2911 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2912 points to a constant blob.
2914 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2915 (evaluate_subexp_standard): Pass noside argument.
2916 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2917 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2918 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2919 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2920 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2922 2014-04-11 Keith Seitz <keiths@redhat.com>
2925 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2926 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2929 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2931 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2932 (evaluate_subexp_standard): Pass noside argument.
2933 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2934 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2935 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2936 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2937 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2939 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2941 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2942 points to a constant blob.
2944 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2946 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2947 property and store it as the high bound and flag the range accordingly.
2948 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2949 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2950 * gdbtypes.h (enum range_flags): New enum.
2951 (struct range_bounds): Add flags member.
2953 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2955 * c-typeprint.c (c_type_print_varspec_suffix): Added
2956 check for not yet resolved high bound. If unresolved, print
2957 "variable length" string to the console instead of random
2960 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2962 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2963 (ada_template_to_fixed_record_type_1): Likewise.
2964 (ada_to_fixed_type_1): Likewise.
2965 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2966 (cp_print_value): Likewise.
2967 * d-valprint.c (dynamic_array_type): Likewise.
2968 * eval.c (evaluate_subexp_with_coercion): Likewise.
2969 * findvar.c (address_of_variable): Likewise.
2970 * jv-valprint.c (java_value_print): Likewise.
2971 * valops.c (value_ind): Likewise.
2972 * value.c (coerce_ref): Likewise.
2974 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2976 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2977 value and retrieve the dynamic type size.
2979 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2981 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2982 passed to sizeof is dynamic evaluate the argument to compute the length.
2984 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2986 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2987 (dwarf2_evaluate_property): New function.
2988 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2989 * dwarf2read.c (attr_to_dynamic_prop): New function.
2990 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2992 * gdbtypes.c: Include dwarf2loc.h.
2993 (is_dynamic_type): New function.
2994 (resolve_dynamic_type): New function.
2995 (resolve_dynamic_bounds): New function.
2996 (get_type_length): New function.
2997 (check_typedef): Use get_type_length to compute type length.
2998 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2999 (TYPE_LOW_BOUND_KIND): New macro.
3000 (is_dynamic_type): New function prototype.
3001 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3002 to resolve dynamic properties of the type. Update comment.
3003 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3005 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3007 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3008 declaring high/low bounds and change uses accordingly. Call
3009 create_range_type instead of create_static_range_type.
3010 * gdbtypes.c (create_range_type): New function.
3011 (create_range_type): Convert bounds into struct bound_prop and pass
3012 them to create_range_type.
3013 * gdbtypes.h (struct bound_prop): New struct.
3014 (create_range_type): New function prototype.
3015 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3016 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3017 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3019 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3021 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3023 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3024 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3025 * ada-lang.c: All uses of create_range_type updated.
3026 * coffread.c: All uses of create_range_type updated.
3027 * dwarf2read.c: All uses of create_range_type updated.
3028 * f-exp.y: All uses of create_range_type updated.
3029 * m2-valprint.c: All uses of create_range_type updated.
3030 * mdebugread.c: All uses of create_range_type updated.
3031 * stabsread.c: All uses of create_range_type updated.
3032 * valops.c: All uses of create_range_type updated.
3033 * valprint.c: All uses of create_range_type updated.
3035 2014-04-10 Pedro Alves <palves@redhat.com>
3037 * breakpoint.c (single_step_breakpoints)
3038 (single_step_gdbarch): Move up in the file.
3039 (one_breakpoint_xfer_memory): New function, factored out from ...
3040 (breakpoint_xfer_memory): ... here. Also process single-step
3043 2014-04-09 Tristan Gingold <gingold@adacore.com>
3045 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3047 (darwin_decode_exception_message): Free port only after use.
3049 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3051 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3052 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3053 when setting the size of call_length.
3055 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3057 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3058 dereference TYPE_CODE_REF values.
3060 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3062 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3063 end of warning message.
3065 2014-04-03 Doug Evans <dje@google.com>
3067 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3068 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3070 2014-04-02 Alan Modra <amodra@gmail.com>
3072 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3073 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3074 (struct symbol_file_add_from_memory_args): Add size field.
3075 (find_vdso_size): New function.
3076 (add_vsyscall_page): Attempt to find vdso size.
3078 2014-04-01 Doug Evans <dje@google.com>
3080 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3082 2014-04-01 Tristan Gingold <gingold@adacore.com>
3084 * darwin-nat.c (darwin_encode_reply): Add prototype.
3085 (darwin_decode_exception_message): Reply to unknown inferiors.
3086 (darwin_decode_message): Handle message by id. Ignore message
3087 to unknown inferior.
3088 (darwin_wait): Discard unknown messages, add debug trace.
3090 2014-03-31 Doug Evans <dje@google.com>
3092 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3095 2014-03-31 Doug Evans <dje@google.com>
3097 New option "set print symbol-loading".
3099 * solib.c (solib_read_symbols): Only print symbol loading messages
3101 (solib_add): If symbol loading is in "brief" mode, notify user
3102 symbols are being loaded.
3103 (reload_shared_libraries_1): Ditto.
3104 * symfile.c (print_symbol_loading_off): New static global.
3105 (print_symbol_loading_brief): New static global.
3106 (print_symbol_loading_full): New static global.
3107 (print_symbol_loading_enums): New static global.
3108 (print_symbol_loading): New static global.
3109 (print_symbol_loading_p): New function.
3110 (symbol_file_add_with_addrs): Only print symbol loading messages
3112 (_initialize_symfile): Register "print symbol-loading" set/show
3114 * symfile.h (print_symbol_loading_p): Declare.
3116 2014-03-30 Doug Evans <xdje42@gmail.com>
3118 * infrun.c (set_last_target_status): New function.
3119 (handle_inferior_event): Call it.
3121 2014-03-30 Doug Evans <xdje42@gmail.com>
3123 * inferior.h (enum stop_kind): Improve comment.
3125 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3127 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3128 a reference, strip the reference layer before calling
3129 the lang_ops value_has_mutated callback.
3131 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3133 Remove some globals from our parser.
3134 * language.c (unk_lang_parser): Add "struct parser_state"
3136 * language.h (struct language_defn) <la_parser>: Likewise.
3137 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3138 (initialize_expout): Add "struct parser_state" argument.
3139 Rewrite function to use the parser state.
3140 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3141 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3142 write_exp_elt_longcst, write_exp_elt_dblcst,
3143 write_exp_elt_decfloatcst, write_exp_elt_type,
3144 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3145 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3146 write_dollar_variable): Likewise.
3147 (parse_exp_in_context_1): Use parser state.
3148 (insert_type_address_space): Add "struct parser_state" argument.
3150 (increase_expout_size): New function.
3151 * parser-defs.h: Forward declare "struct language_defn" and
3152 "struct parser_state".
3153 (expout, expout_size, expout_ptr): Remove extern declarations.
3154 (parse_gdbarch, parse_language): Rewrite macro declarations to
3155 accept the parser state.
3156 (struct parser_state): New struct.
3157 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3158 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3159 write_exp_elt_decfloatcst, write_exp_elt_type,
3160 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3161 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3162 write_exp_msymbol, write_dollar_variable,
3163 mark_struct_expression, insert_type_address_space): Add "struct
3164 parser_state" argument.
3165 (increase_expout_size): New function.
3166 * utils.c (do_clear_parser_state): New function.
3167 (make_cleanup_clear_parser_state): Likewise.
3168 * utils.h (make_cleanup_clear_parser_state): New function
3170 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3171 Update calls to write_exp* in order to pass the parser state.
3172 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3173 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3174 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3175 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3176 * stap-probe.c (stap_parse_register_operand): Likewise.
3177 (stap_parse_single_operand): Likewise.
3178 (stap_parse_argument_1): Likewise.
3179 (stap_parse_argument): Use parser state.
3180 * stap-probe.h: Include "parser-defs.h".
3181 (struct stap_parse_info) <pstate>: New field.
3182 * c-exp.y (parse_type): Rewrite to use parser state.
3183 (yyparse): Redefine to c_parse_internal.
3184 (pstate): New global variable.
3185 (parse_number): Add "struct parser_state" argument.
3186 (write_destructor_name): Likewise.
3187 (type_exp): Update calls to write_exp* and similars in order to
3189 (exp1, exp, variable, qualified_name, space_identifier,
3190 typename, typebase): Likewise.
3191 (write_destructor_name, parse_number, lex_one_token,
3192 classify_name, classify_inner_name, c_parse): Add "struct
3193 parser_state" argument. Update function to use parser state.
3194 * c-lang.h: Forward declare "struct parser_state".
3195 (c_parse): Add "struct parser_state" argument.
3196 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3197 (yyparse): Redefine macro to ada_parse_internal.
3198 (pstate): New variable.
3199 (write_int, write_object_renaming, write_var_or_type,
3200 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3201 type_int, type_long, type_long_long, type_float, type_double,
3202 type_long_double, type_char, type_boolean, type_system_address):
3203 Add "struct parser_state" argument.
3204 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3205 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3206 var_or_type, aggregate, aggregate_component_list,
3207 positional_list, others, component_group,
3208 component_associations): Update calls to write_exp* and similar
3209 functions in order to use parser state.
3210 (ada_parse, write_var_from_sym, write_int,
3211 write_exp_op_with_string, write_object_renaming,
3212 find_primitive_type, write_selectors, write_ambiguous_var,
3213 write_var_or_type, write_name_assoc, type_int, type_long,
3214 type_long_long, type_float, type_double, type_long_double,
3215 type_char, type_boolean, type_system_address): Add "struct
3216 parser_state" argument. Adjust function to use parser state.
3217 * ada-lang.c (parse): Likewise.
3218 * ada-lang.h: Forward declare "struct parser_state".
3219 (ada_parse): Add "struct parser_state" argument.
3220 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3221 calls to both functions.
3222 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3224 (yyparse): Redefine macro to f_parse_internal.
3225 (pstate): New variable.
3226 (parse_number): Add "struct parser_state" argument.
3227 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3228 and similars in order to use parser state.
3229 (parse_number): Adjust code to use parser state.
3231 (f_parse): New function.
3232 * f-lang.h: Forward declare "struct parser_state".
3233 (f_parse): Add "struct parser_state" argument.
3234 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3236 (yyparse): Redefine macro for java_parse_internal.
3237 (pstate): New variable.
3238 (push_expression_name, push_expression_name, insert_exp): Add
3239 "struct parser_state" argument.
3240 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3241 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3242 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3243 PostIncrementExpression, PostDecrementExpression,
3244 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3245 UnaryExpressionNotPlusMinus, CastExpression,
3246 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3247 RelationalExpression, EqualityExpression, AndExpression,
3248 ExclusiveOrExpression, InclusiveOrExpression,
3249 ConditionalAndExpression, ConditionalOrExpression,
3250 ConditionalExpression, Assignment, LeftHandSide): Update
3251 calls to write_exp* and similars in order to use parser state.
3252 (parse_number): Ajust code to use parser state.
3254 (java_parse): New function.
3255 (push_variable): Add "struct parser_state" argument. Adjust
3256 code to user parser state.
3257 (push_fieldnames, push_qualified_expression_name,
3258 push_expression_name, insert_exp): Likewise.
3259 * jv-lang.h: Forward declare "struct parser_state".
3260 (java_parse): Add "struct parser_state" argument.
3261 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3263 (yyparse): Redefine macro to m2_parse_internal.
3264 (pstate): New variable.
3265 (type_exp, exp, fblock, variable, type): Update calls to
3266 write_exp* and similars to use parser state.
3268 (m2_parse): New function.
3269 * m2-lang.h: Forward declare "struct parser_state".
3270 (m2_parse): Add "struct parser_state" argument.
3271 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3272 * objc-lang.h: Forward declare "struct parser_state".
3273 (end_msglist): Add "struct parser_state" argument.
3274 * p-exp.y (parse_type): Rewrite macro to use parser state.
3275 (yyparse): Redefine macro to pascal_parse_internal.
3276 (pstate): New variable.
3277 (parse_number): Add "struct parser_state" argument.
3278 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3279 write_exp* and similars in order to use parser state.
3280 (parse_number, yylex): Adjust code to use parser state.
3281 (pascal_parse): New function.
3282 * p-lang.h: Forward declare "struct parser_state".
3283 (pascal_parse): Add "struct parser_state" argument.
3284 * go-exp.y (parse_type): Rewrite macro to use parser state.
3285 (yyparse): Redefine macro to go_parse_internal.
3286 (pstate): New variable.
3287 (parse_number): Add "struct parser_state" argument.
3288 (type_exp, exp1, exp, variable, type): Update calls to
3289 write_exp* and similars in order to use parser state.
3290 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3291 to use parser state.
3292 (go_parse): Likewise.
3293 * go-lang.h: Forward declare "struct parser_state".
3294 (go_parse): Add "struct parser_state" argument.
3296 2014-03-27 Doug Evans <dje@google.com>
3298 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3300 2014-03-27 Doug Evans <dje@google.com>
3302 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3303 Remove argument abbrev_section. All callers updated.
3305 2014-03-27 Doug Evans <dje@google.com>
3307 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3308 addr_base, ranges_base.
3310 2014-03-26 Keith Seitz <keiths@redhat.com>
3312 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3313 types, not VAR_DOMAIN.
3315 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3317 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3319 * features/nios2-linux.c: Regenerated.
3320 * features/nios2.c: Regenerated.
3322 2014-03-25 Pedro Alves <palves@redhat.com>
3324 * cli/cli-script.c (script_from_file): Force the interpreter to
3327 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3329 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3330 small stack allocation.
3332 2014-03-24 Tristan Gingold <gingold@adacore.com>
3334 * darwin-nat.c (exc_server): Remove unused prototype.
3335 (darwin_dump_message): Correctly display data on x86_64.
3336 (darwin_encode_reply): Fix style.
3337 Add comments and fix indentation.
3339 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3341 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3343 2014-03-22 Doug Evans <xdje42@gmail.com>
3345 * infcmd.c: Whitespace fixes.
3346 (interrupt_command): Merge two function comments into one.
3348 2014-03-22 Doug Evans <xdje42@gmail.com>
3350 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3353 2014-03-22 Yao Qi <yao@codesourcery.com>
3355 * remote.c (target_read_live_memory): Remove.
3356 (memory_xfer_live_readonly_partial): Rename it to
3357 remote_xfer_live_readonly_partial. Remove argument 'object'.
3358 All callers updated. Call remote_read_bytes_1
3359 instead of target_read_live_memory.
3360 * tracepoint.c (set_traceframe_number): Remove.
3361 (make_cleanup_restore_traceframe_number): Likewise .
3362 * tracepoint.h (set_traceframe_number): Remove declaration.
3363 (make_cleanup_restore_traceframe_number): Likewise.
3365 2014-03-22 Yao Qi <yao@codesourcery.com>
3367 * remote.c (remote_read_bytes): Move code on reading from the
3369 (remote_read_bytes_1): ... here. New function.
3371 2014-03-22 Yao Qi <yao@codesourcery.com>
3373 * ctf.c (ctf_xfer_partial): Check the return value of
3374 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3375 return TARGET_XFER_UNAVAILABLE.
3376 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3377 * target.c (target_read_live_memory): Move it to remote.c.
3378 (memory_xfer_live_readonly_partial): Likewise.
3379 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3380 * remote.c (target_read_live_memory): Moved from target.c.
3381 (memory_xfer_live_readonly_partial): Likewise.
3382 (remote_read_bytes): Factored out from
3383 memory_xfer_partial_1.
3385 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3387 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3390 2014-03-21 Pedro Alves <palves@redhat.com>
3392 * infrun.c (normal_stop): Extend comment.
3394 2014-03-21 Hui Zhu <hui@codesourcery.com>
3395 Pedro Alves <palves@redhat.com>
3397 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3399 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3400 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3401 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3403 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3405 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3406 `z' formatted output modifier.
3408 2014-03-20 Tom Tromey <tromey@redhat.com>
3409 Sergio Durigan Junior <sergiodj@redhat.com>
3411 * probe.c (parse_probes): Turn assert into an ordinary error.
3412 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3413 exceptions when parsing probes. Rearrange the code for clarity.
3415 2014-03-20 Tom Tromey <tromey@redhat.com>
3418 * top.c (execute_command): Only dispatch events if the command
3421 2014-03-20 Tom Tromey <tromey@redhat.com>
3424 * infcall.c: Include event-top.h.
3425 (run_inferior_call): Call async_disable_stdin if needed.
3427 2014-03-20 Pedro Alves <palves@redhat.com>
3429 * infrun.c (prepare_to_proceed): Delete.
3430 (thread_still_needs_step_over): New function.
3431 (find_thread_needs_step_over): New function.
3432 (proceed): If the current thread needs a step-over, set its
3433 steping_over_breakpoint flag. Adjust to use
3434 find_thread_needs_step_over instead of prepare_to_proceed.
3435 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3436 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3438 (switch_back_to_stepped_thread): Step over breakpoints of all
3439 threads not the stepping thread, before switching back to the
3442 2014-03-20 Pedro Alves <palves@redhat.com>
3444 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3446 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3447 * infrun.c (saved_singlestep_ptid)
3448 (stepping_past_singlestep_breakpoint): Delete.
3449 (resume): Remove stepping_past_singlestep_breakpoint handling.
3450 (proceed): Store the prev_pc of the stepping thread too.
3451 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3453 (enum infwait_states): Delete infwait_thread_hop_state.
3454 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3456 (handle_inferior_event): Adjust.
3457 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3458 handling and the thread-hop code. Before removing single-step
3459 breakpoints, check whether the thread hit a single-step breakpoint
3460 of another thread. If it did, the trap is not a random signal.
3461 (switch_back_to_stepped_thread): If the event thread hit a
3462 single-step breakpoint, unblock it before switching to the
3463 stepping thread. Handle the case of the stepped thread having
3465 (keep_going): Handle the case of the current thread moving past a
3466 single-step breakpoint.
3468 2014-03-20 Pedro Alves <palves@redhat.com>
3471 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3472 are being stepped over.
3473 (breakpoint_address_match): Make extern.
3474 * breakpoint.h (breakpoint_address_match): New declaration.
3475 * inferior.h (stepping_past_instruction_at): New declaration.
3476 * infrun.c (struct step_over_info): New type.
3477 (step_over_info): New global.
3478 (set_step_over_info, clear_step_over_info)
3479 (stepping_past_instruction_at): New functions.
3480 (handle_inferior_event): Clear the step-over info when
3481 trap_expected is cleared.
3482 (resume): Remove now stale comment.
3483 (clear_proceed_status): Clear step-over info.
3484 (proceed): Adjust step-over handling to set or clear the step-over
3485 info instead of removing all breakpoints.
3486 (handle_signal_stop): When setting up a thread-hop, don't remove
3488 (stop_stepping): Clear step-over info.
3489 (keep_going): Adjust step-over handling to set or clear step-over
3490 info and then always inserting breakpoints, instead of removing
3491 all breakpoints when stepping over one.
3493 2014-03-20 Pedro Alves <palves@redhat.com>
3495 * infrun.c (previous_inferior_ptid): Adjust comment.
3496 (deferred_step_ptid): Delete.
3497 (infrun_thread_ptid_changed, prepare_to_proceed)
3498 (init_wait_for_inferior): Adjust.
3499 (handle_signal_stop): Delete deferred_step_ptid handling.
3501 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3504 * defs.h (sync_quit_force_run): New declaration.
3505 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3506 * event-top.c (async_sigterm_handler): New declaration.
3507 (async_sigterm_token): New variable.
3508 (async_init_signals): Create also async_sigterm_token.
3509 (async_sigterm_handler): New function.
3510 (sync_quit_force_run): New variable.
3511 (handle_sigterm): Replace quit_force call by other calls.
3512 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3514 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3516 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3517 offset into SPE pseudo registers.
3519 2014-03-18 Pedro Alves <palves@redhat.com>
3522 * inferior.h (print_stop_event): Declare.
3523 * infrun.c (print_stop_event): New, factored out from ...
3524 (normal_stop): ... this.
3525 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3526 of bpstat_print/print_stack_frame.
3528 2014-03-17 Tom Tromey <tromey@redhat.com>
3530 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3532 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3534 * ada-lang.c (decode_constrained_packed_array): Perform a
3535 minimal coercion for reference with coerce_ref instead of
3538 2014-03-17 Tristan Gingold <gingold@adacore.com>
3540 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3541 (darwin_solib_create_inferior_hook): Emit a warning if version
3544 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3546 * python/py-value.c (get_field_flag): Cast flag_name argument to
3547 PyObject_GetAttrString to support Python 2.4.
3549 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3552 (Global Maintainers): Remove Jan Kratochvil.
3554 2014-03-14 Pedro Alves <palves@redhat.com>
3556 * inferior.h (terminal_ours_for_output): Rename to ...
3557 (child_terminal_ours_for_output): ... this.
3558 (terminal_save_ours): Rename to ...
3559 (child_terminal_save_ours): ... this.
3560 (terminal_ours): Rename to ...
3561 (child_terminal_ours): ... this.
3562 (terminal_inferior): Rename to ...
3563 (child_terminal_inferior): ... this.
3564 (terminal_init_inferior): Rename to ...
3565 (child_terminal_init_inferior): ... this.
3566 (terminal_init_inferior_with_pgrp): Rename to ...
3567 (child_terminal_init_inferior_with_pgrp): ... this.
3568 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3569 (child_terminal_init_with_pgrp): ... this.
3570 (terminal_save_ours): Rename to ...
3571 (child_terminal_save_ours): ... this.
3572 (terminal_init_inferior): Rename to ...
3573 (child_terminal_init): ... this. Adjust.
3574 (terminal_inferior): Rename to ...
3575 (child_terminal_inferior): ... this.
3576 (terminal_ours_for_output): Rename to ...
3577 (child_terminal_ours_for_output): ... this. Adjust.
3578 (terminal_ours): Rename to ...
3579 (child_terminal_ours): ... this.
3580 (terminal_ours_1): Rename to ...
3581 (child_terminal_ours_1): ... this. Adjust.
3582 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3583 * windows-nat.c (do_initial_windows_stuff): Adjust.
3584 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3585 (gnu_terminal_init): ... this. Adjust.
3586 (gnu_target): Adjust.
3587 * inf-child.c (inf_child_target): Adjust.
3589 2014-03-13 Doug Evans <xdje42@gmail.com>
3592 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3595 2014-03-13 Doug Evans <xdje42@gmail.com>
3597 * value.c (record_latest_value): Call release_value_or_incref
3598 instead of release_value.
3600 2014-03-13 Pedro Alves <palves@redhat.com>
3602 * procfs.c (procfs_target): Don't override to_shortname,
3603 to_longname or to_doc.
3605 2014-03-13 Pedro Alves <palves@redhat.com>
3607 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3608 Unix in user visible strings.
3610 2014-03-12 Stan Shebs <stan@codesourcery.com>
3612 * gdbtypes.h: Annotate comments for Doxygen, add a page
3613 block comment with some general info.
3615 2014-03-12 Pedro Alves <palves@redhat.com>
3617 * infcmd.c (prepare_execution_command): New function, factored out
3618 from several execution commands.
3619 (run_command_1, continue_command, step_1, jump_command)
3620 (signal_command, until_command, advance_command, finish_command)
3621 (attach_command): Use prepare_execution_command.
3623 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3625 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3628 (struct arm_linux_thread_points): Removed.
3629 (struct arm_linux_process_info): New.
3630 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3631 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3632 (arm_linux_find_breakpoints_by_tid): Removed.
3633 (struct arch_lwp_info): New.
3634 (arm_linux_find_process_pid): New functions.
3635 (arm_linux_add_process): New functions.
3636 (arm_linux_process_info_get): New functions.
3637 (arm_linux_forget_process): New function.
3638 (arm_linux_get_debug_reg_state): New function.
3639 (struct update_registers_data): New.
3640 (update_registers_callback): New function.
3641 (arm_linux_insert_hw_breakpoint1): Updated.
3642 (arm_linux_remove_hw_breakpoint1): Updated.
3643 (arm_linux_insert_hw_breakpoint): Updated.
3644 (arm_linux_remove_hw_breakpoint): Updated.
3645 (arm_linux_insert_watchpoint): Updated.
3646 (arm_linux_remove_watchpoint): Updated.
3647 (arm_linux_new_thread): Updated.
3648 (arm_linux_prepare_to_resume): New function.
3649 (arm_linux_new_fork): New function.
3650 (_initialize_arm_linux_nat): Updated.
3652 2014-03-12 Pedro Alves <palves@redhat.com>
3654 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3656 2014-03-12 Tom Tromey <tromey@redhat.com>
3658 * inf-child.c (return_zero): New function.
3659 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3660 * aix-thread.c (aix_thread_inferior_created): New function.
3661 (aix_thread_attach): Remove.
3662 (init_aix_thread_ops): Don't set to_attach.
3663 (_initialize_aix_thread): Register inferior_created observer.
3664 * corelow.c (init_core_ops): Don't set to_attach or
3666 * exec.c (init_exec_ops): Don't set to_attach or
3668 * infcmd.c (run_command_1): Use find_run_target. Make direct
3670 (attach_command): Use find_attach_target. Make direct target
3672 * record-btrace.c (init_record_btrace_ops): Don't set
3674 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3676 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3677 set to_create_inferior.
3678 * target.c (complete_target_initialization): Add assertion.
3679 (target_create_inferior): Remove.
3680 (find_default_attach, find_default_create_inferior): Remove.
3681 (find_attach_target, find_run_target): New functions.
3682 (find_default_is_async_p, find_default_can_async_p)
3683 (target_supports_non_stop, target_attach): Remove.
3684 (init_dummy_target): Don't set to_create_inferior or
3685 to_supports_non_stop.
3686 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3687 TARGET_DEFAULT_FUNC.
3688 <to_create_inferior>: Add comment.
3689 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3690 TARGET_DEFAULT_RETURN.
3691 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3692 (find_attach_target, find_run_target): Declare.
3693 (target_create_inferior): Remove.
3694 (target_has_execution_1): Update comment.
3695 (target_supports_non_stop): Remove.
3696 * target-delegates.c: Rebuild.
3698 2014-03-12 Pedro Alves <palves@redhat.com>
3700 * inf-child.h: Update comment to not mention Unix.
3702 2014-03-12 Pedro Alves <palves@redhat.com>
3704 * inf-child.c: Update top comment to not mention Unix. Add
3705 generic comment describing how this target is meant to be used.
3706 (inf_child_post_attach, inf_child_post_startup_inferior)
3707 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3710 2014-03-12 Pedro Alves <palves@redhat.com>
3712 * nto-procfs.c: Include inf-child.h.
3713 (procfs_ops): Delete global.
3714 (procfs_can_run): Delete method.
3715 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3716 target pointer instead of referencing procfs_ops.
3717 (procfs_prepare_to_store): Delete.
3718 (init_procfs_ops): Delete function.
3719 (procfs_target): New function, based on init_procfs_ops, but
3720 inherit inf_child_target.
3721 (_initialize_procfs): Use procfs_target.
3723 2014-03-12 Pedro Alves <palves@redhat.com>
3725 * windows-nat.c: Include inf-child.h.
3726 (windows_ops): Delete global.
3727 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3729 (init_windows_ops): Delete function.
3730 (windows_target): New function, based on init_windows_ops, but
3731 inherit inf_child_target.
3732 (_initialize_windows_nat): Use windows_target. Install x86
3733 specific target methods here.
3735 2014-03-10 Doug Evans <xdje42@gmail.com>
3737 * guile/guile.c (call_initialize_gdb_module): New function.
3738 (initialize_guile): Replace call to scm_init_guile with call to
3741 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3743 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3744 in call to TYPE_CODE macro.
3746 2014-03-10 Jerome Guitton <guitton@adacore.com>
3748 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3749 Resolve tagged types to full view.
3751 2014-03-10 Hui Zhu <hui@codesourcery.com>
3753 * target.h (target_insert_breakpoint): Remove "hardware" from its
3756 2014-03-07 Doug Evans <dje@google.com>
3758 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3760 2014-03-07 Doug Evans <dje@google.com>
3762 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3763 Remove unused local comp_dir_attr. Assert exactly one of
3764 stub_comp_unit_die, stub_comp_dir is non-NULL.
3766 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3768 * target.h (complete_target_initialization, add_target):
3771 2014-03-07 Pedro Alves <palves@redhat.com>
3773 * go32-nat.c: Include inf-child.h.
3774 (go32_ops): Delete global.
3775 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3777 (go32_create_inferior): Push the passed in target pointer instead
3778 of referencing go32_ops.
3779 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3780 (go32_target): New function, based on init_go32_ops, but inherit
3782 (_initialize_go32_nat): Use go32_target. Move parts of
3785 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3787 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3788 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3789 SYMBOL_VALUE_ADDRESS.
3790 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3792 2014-03-06 Yao Qi <yao@codesourcery.com>
3794 * breakpoint.c (get_tracepoint_by_number): Remove argument
3795 optional_p. All callers updated. Adjust comments. Update
3797 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3799 2014-03-06 Yao Qi <yao@codesourcery.com>
3801 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3802 early if get_number returns zero. Use 'p' instead of 'args'.
3804 2014-03-06 Yao Qi <yao@codesourcery.com>
3806 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3809 2014-03-06 Yao Qi <yao@codesourcery.com>
3811 PR breakpoints/16508
3812 * tracepoint.c (check_trace_running): New function.
3813 (trace_find_command): Move code to check_trace_running and
3814 call check_trace_running.
3815 (trace_find_pc_command): Likewise.
3816 (trace_find_tracepoint_command): Likewise.
3817 (trace_find_line_command): Likewise.
3818 (trace_find_range_command): Likewise.
3819 * tracepoint.h (check_trace_running): Likewise.
3820 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3822 2014-03-06 Yao Qi <yao@codesourcery.com>
3824 * target.h (struct target_ops) <to_traceframe_info>: Use
3825 TARGET_DEFAULT_NORETURN (tcomplain ()).
3826 * target-delegates.c: Regenerated.
3828 2014-03-05 Pedro Alves <palves@redhat.com>
3831 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3832 void. Update comment.
3833 (dcache_xfer_memory): Delete.
3834 (dcache_read_memory_partial): New, based on the read bits of
3836 (dcache_update): Add status parameter. Use ULONGEST for len, and
3837 adjust. Discard cache lines if the reason for the update was
3839 * dcache.h (dcache_xfer_memory): Delete declaration.
3840 (dcache_read_memory_partial): New declaration.
3841 (dcache_update): Update prototype.
3842 * target.c (raw_memory_xfer_partial): Update the dcache here.
3843 (memory_xfer_partial_1): Don't handle dcache writes here.
3845 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3847 * remote-sim.c (gdbsim_load): Add const to prog.
3849 2014-03-03 Tom Tromey <tromey@redhat.com>
3851 * elfread.c (probe_key): Change to bfd_data.
3852 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3853 now per-BFD, not per-objfile.
3854 * stap-probe.c (stap_probe_destroy): Update comment.
3855 (handle_stap_probe): Allocate on the per-BFD obstack.
3857 2014-03-03 Tom Tromey <tromey@redhat.com>
3859 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3860 * breakpoint.c (create_longjmp_master_breakpoint): Use
3862 (add_location_to_breakpoint, bkpt_probe_insert_location)
3863 (bkpt_probe_remove_location): Update.
3864 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3865 * elfread.c (elf_symfile_relocate_probe): Remove.
3866 (elf_probe_fns): Update.
3867 (insert_exception_resume_breakpoint): Change type of "probe"
3868 parameter to bound_probe.
3869 (check_exception_resume): Update.
3870 * objfiles.c (objfile_relocate1): Don't relocate probes.
3871 * probe.c (bound_probe_s): New typedef.
3872 (parse_probes): Use get_probe_address. Set sal's objfile.
3873 (find_probe_by_pc): Return a bound_probe.
3874 (collect_probes): Return a VEC(bound_probe_s).
3875 (compare_probes): Update.
3876 (gen_ui_out_table_header_info): Change type of "probes"
3878 (info_probes_for_ops): Update.
3879 (get_probe_address): New function.
3880 (probe_safe_evaluate_at_pc): Update.
3881 * probe.h (struct probe_ops) <get_probe_address>: New field.
3882 <set_semaphore, clear_semaphore>: Add objfile parameter.
3883 (struct probe) <objfile>: Remove field.
3885 <address>: Update comment.
3886 (struct bound_probe): New.
3887 (find_probe_by_pc): Return a bound_probe.
3888 (get_probe_address): Declare.
3889 * solib-svr4.c (struct probe_and_action) <address>: New field.
3890 (hash_probe_and_action, equal_probe_and_action): Update.
3891 (register_solib_event_probe): Add address parameter.
3892 (solib_event_probe_at): Update.
3893 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3895 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3896 (stap_get_probe_address): New function.
3897 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3898 (compile_probe_arg): Update.
3899 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3901 (handle_stap_probe): Don't relocate the probe.
3902 (stap_relocate): Remove.
3903 (stap_gen_info_probes_table_values): Update.
3904 (stap_probe_ops): Remove stap_relocate.
3905 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3906 (debug_sym_probe_fns): Update.
3907 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3908 * symtab.c (init_sal): Use memset.
3909 * symtab.h (struct symtab_and_line) <objfile>: New field.
3910 * tracepoint.c (start_tracing, stop_tracing): Update.
3912 2014-03-03 Tom Tromey <tromey@redhat.com>
3914 * probe.h (parse_probes, find_probe_by_pc)
3915 (find_probes_in_objfile): Fix comments.
3917 2014-03-02 Doug Evans <xdje42@gmail.com>
3919 * infrun.c (handle_signal_stop): Replace test for
3920 TARGET_WAITKIND_STOPPED with an assert.
3922 2014-03-02 Doug Evans <xdje42@gmail.com>
3924 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3926 2014-03-02 Doug Evans <xdje42@gmail.com>
3928 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3930 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3932 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3934 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3936 * i386obsd-nat.c: Include "obsd-nat.h".
3937 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3939 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3941 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3943 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3945 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3947 * mips64obsd-nat.c: Include "obsd-nath".
3948 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3950 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3952 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3954 * amd64obsd-nat.c: Include "obsd-nat,h.
3955 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3957 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3959 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3961 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3962 (find_overload_match): Update call to find_oload_champ.
3963 (find_oload_champ_namespace_loop): Likewise
3965 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3967 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3969 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3970 * config/sparc/obsd64.mh: New file.
3971 * sparc64obsd-nat.c: New file.
3973 * obsd-nat.h: New file.
3974 * obsd-nat.c: New file.
3975 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3976 (ALLDEPFILES): Add obsd-nat.c.
3978 2014-02-28 Tom Tromey <tromey@redhat.com>
3980 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3981 * cli-out.h (cli_ui_out_impl): Now const.
3982 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3983 * ui-out.c (struct ui_out) <impl>: Now const.
3984 (default_ui_out_impl): Now const.
3985 (ui_out_new): Make 'impl' parameter const.
3986 * ui-out.h (ui_out_new): Update.
3988 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3990 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3992 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3994 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3996 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 Additional PR 8882 fix.
3999 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4001 2014-02-27 Pedro Alves <palves@redhat.com>
4003 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4006 2014-02-27 Pedro Alves <palves@redhat.com>
4009 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4010 * nat/linux-waitpid.c: Include string.h.
4011 (status_to_str): Moved here and made extern.
4012 * nat/linux-waitpid.h (status_to_str): New declaration.
4014 2014-02-27 Hui Zhu <hui@codesourcery.com>
4017 * infrun.c (ptid_match): Move ...
4018 * common/ptid.c (ptid_match): ... here.
4019 * inferior.h (ptid_match): Move ...
4020 * common/ptid.h (ptid_match): ... here.
4022 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4024 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4025 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4028 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4030 * obsd-tdep.c (obsd_auxv_parse): New function.
4031 (obsd_init_abi): Set auxv_parse.
4033 * gdbarch.sh (auxv_parse): New.
4034 * gdbarch.h: Regenerated.
4035 * gdbarch.c: Regenerated.
4036 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4038 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4040 * guile/scm-value.c (gdbscm_history_append_x): New function.
4041 (value_functions): Add it.
4043 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4045 * dwarf2read.c (attr_value_as_address): New function.
4046 (dwarf2_find_base_address, read_call_site_scope): Use
4047 attr_value_as_address in place of DW_ADDR.
4048 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4049 the low and high addresses. Slight rework of the handling
4050 of the high pc being a constant form, and limit it to
4051 DWARF verson 4 or higher.
4052 (dwarf2_record_block_ranges): Likewise.
4053 (read_partial_die): Likewise.
4054 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4056 2014-02-26 Tom Tromey <tromey@redhat.com>
4058 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4060 2014-02-26 Tom Tromey <tromey@redhat.com>
4062 * elfread.c (elf_read_minimal_symbols): Return early if
4063 minimal symbols have already been read. Add "ei" parameter.
4064 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4065 * minsyms.c (prim_record_minimal_symbol_full): Update.
4066 * objfiles.h (struct objstats) <n_minsyms>: Move...
4067 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4068 * symmisc.c (print_objfile_statistics): Update.
4070 2014-02-26 Tom Tromey <tromey@redhat.com>
4072 * elfread.c (elf_read_minimal_symbols): New function, from
4074 (elf_symfile_read): Call it.
4076 2014-02-26 Tom Tromey <tromey@redhat.com>
4078 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4079 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4080 (lookup_minimal_symbol_solib_trampoline)
4081 (lookup_minimal_symbol_by_pc_section_1)
4082 (lookup_minimal_symbol_and_objfile): Update.
4083 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4084 Don't allocate a minimal symbol if minsyms have already been read.
4085 (build_minimal_symbol_hash_tables): Update.
4086 (install_minimal_symbols): Do nothing if minsyms already read.
4087 Use the per-BFD obstack.
4088 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4089 * objfiles.c (allocate_objfile): Call
4090 terminate_minimal_symbol_table later.
4091 (have_minimal_symbols): Update.
4092 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4093 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4094 Move from struct objfile.
4095 <minsyms_read>: New field.
4096 (struct objfile) <msymbols, minimal_symbol_count,
4097 msymbol_hash, msymbol_demangled_hash>: Move.
4098 (ALL_OBJFILE_MSYMBOLS): Update.
4099 * symfile.c (read_symbols): Set minsyms_read.
4100 (reread_symbols): Update.
4101 * symmisc.c (dump_objfile, dump_msymbols): Update.
4103 2014-02-26 Tom Tromey <tromey@redhat.com>
4105 * minsyms.c (msymbols_sort): Remove.
4106 * minsyms.h (msymbols_sort): Remove.
4107 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4108 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4109 * elfread.c (elf_symtab_read): Don't add section offsets.
4110 * xcoffread.c (record_minimal_symbol): Don't add section offset
4111 to minimal symbol address.
4112 * somread.c (text_offset, data_offset): Remove.
4113 (som_symtab_read): Don't add section offsets to minimal symbol
4115 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4116 Don't add section offsets to minimal symbols.
4117 * coffread.c (coff_symtab_read): Don't add section offsets
4118 to minimal symbol addresses.
4119 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4120 to minimal symbol addresses.
4121 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4122 section offset to minimal symbol addresses.
4123 * mdebugread.c (parse_partial_symbols): Don't add section
4124 offset to minimal symbol addresses.
4125 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4126 offset to minimal symbol addresses.
4128 2014-02-26 Tom Tromey <tromey@redhat.com>
4130 * ada-lang.c (ada_main_name): Update.
4131 (ada_add_standard_exceptions): Update.
4132 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4133 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4134 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4135 * auxv.c (ld_so_xfer_auxv): Update.
4136 * avr-tdep.c (avr_scan_prologue): Update.
4137 * ax-gdb.c (gen_var_ref): Update.
4138 * blockframe.c (get_pc_function_start)
4139 (find_pc_partial_function_gnu_ifunc): Update.
4140 * breakpoint.c (create_overlay_event_breakpoint)
4141 (create_longjmp_master_breakpoint)
4142 (create_std_terminate_master_breakpoint)
4143 (create_exception_master_breakpoint): Update.
4144 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4145 * c-valprint.c (c_val_print): Update.
4146 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4147 * common/agent.c (agent_look_up_symbols): Update.
4148 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4149 * dwarf2loc.c (call_site_to_target_addr): Update.
4150 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4151 * elfread.c (elf_gnu_ifunc_record_cache)
4152 (elf_gnu_ifunc_resolve_by_got): Update.
4153 * findvar.c (default_read_var_value): Update.
4154 * frame.c (inside_main_func): Update.
4155 * frv-tdep.c (frv_frame_this_id): Update.
4156 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4157 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4159 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4160 (hppa_hpux_find_dummy_bpaddr): Update.
4161 * hppa-tdep.c (hppa_symbol_address): Update.
4162 * infcmd.c (until_next_command): Update.
4163 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4165 * linespec.c (minsym_found, add_minsym): Update.
4166 * linux-nat.c (get_signo): Update.
4167 * linux-thread-db.c (inferior_has_bug): Update.
4168 * m32c-tdep.c (m32c_return_value)
4169 (m32c_m16c_address_to_pointer): Update.
4170 * m32r-tdep.c (m32r_frame_this_id): Update.
4171 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4172 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4173 * maint.c (maintenance_translate_address): Update.
4174 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4175 (frob_address): New function.
4176 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4177 frob_address. Rename parameter to "pc_in".
4178 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4180 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4182 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4183 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4184 * objc-lang.c (find_objc_msgsend): Update.
4185 * objfiles.c (objfile_relocate1): Update.
4186 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4187 * p-valprint.c (pascal_val_print): Update.
4188 * parse.c (write_exp_msymbol): Update.
4189 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4190 (ppc_elfv2_skip_entrypoint): Update.
4191 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4192 * printcmd.c (build_address_symbolic, msym_info)
4193 (address_info): Update.
4194 * proc-service.c (ps_pglobal_lookup): Update.
4195 * psymtab.c (find_pc_sect_psymtab_closer)
4196 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4197 Change msymbol parameter to bound_minimal_symbol.
4198 * ravenscar-thread.c (get_running_thread_id): Update.
4199 * remote.c (remote_check_symbols): Update.
4200 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4202 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4203 * solib-dsbt.c (lm_base): Update.
4204 * solib-frv.c (lm_base, main_got): Update.
4205 * solib-irix.c (locate_base): Update.
4206 * solib-som.c (som_solib_create_inferior_hook)
4207 (link_map_start): Update.
4208 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4209 * solib-svr4.c (elf_locate_base, enable_break): Update.
4210 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4211 (flush_ea_cache): Update.
4212 * stabsread.c (define_symbol, scan_file_globals): Update.
4213 * stack.c (find_frame_funname): Update.
4214 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4215 (debug_qf_find_pc_sect_symtab): Update.
4216 * symfile.c (simple_read_overlay_table)
4217 (simple_overlay_update): Update.
4218 * symfile.h (struct quick_symbol_functions)
4219 <find_pc_sect_symtab>: Change type of msymbol to
4220 bound_minimal_symbol.
4221 * symmisc.c (dump_msymbols): Update.
4222 * symtab.c (find_pc_sect_symtab_via_partial)
4223 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4224 (search_symbols, print_msymbol_info): Update.
4225 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4226 (MSYMBOL_VALUE_ADDRESS): Redefine.
4227 (BMSYMBOL_VALUE_ADDRESS): New macro.
4228 * tracepoint.c (scope_info): Update.
4229 * tui/tui-disasm.c (tui_find_disassembly_address)
4230 (tui_get_begin_asm_address): Update.
4231 * valops.c (find_function_in_inferior): Update.
4232 * value.c (value_static_field, value_fn_field): Update.
4234 2014-02-26 Tom Tromey <tromey@redhat.com>
4236 * ada-lang.c (ada_update_initial_language): Update.
4237 (ada_main_name, ada_has_this_exception_support): Update.
4238 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4239 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4240 * arm-tdep.c (arm_skip_stub): Update.
4241 * auxv.c (ld_so_xfer_auxv): Update.
4242 * avr-tdep.c (avr_scan_prologue): Update.
4243 * ax-gdb.c (gen_var_ref): Update.
4244 * breakpoint.c (struct breakpoint_objfile_data)
4245 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4246 type to bound_minimal_symbol.
4247 (create_overlay_event_breakpoint)
4248 (create_longjmp_master_breakpoint)
4249 (create_std_terminate_master_breakpoint)
4250 (create_exception_master_breakpoint): Update.
4251 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4252 * c-exp.y (classify_name): Update.
4253 * coffread.c (coff_symfile_read): Update.
4254 * common/agent.c (agent_look_up_symbols): Update.
4255 * d-lang.c (d_main_name): Update.
4256 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4257 * dec-thread.c (enable_dec_thread): Update.
4258 * dwarf2loc.c (call_site_to_target_addr): Update.
4259 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4260 * eval.c (evaluate_subexp_standard): Update.
4261 * findvar.c (struct minsym_lookup_data) <result>: Change type
4262 to bound_minimal_symbol.
4264 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4265 * frame.c (inside_main_func): Update.
4266 * frv-tdep.c (frv_frame_this_id): Update.
4267 * gcore.c (call_target_sbrk): Update.
4268 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4269 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4271 * go-lang.c (go_main_name): Update.
4272 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4273 (hppa_hpux_find_import_stub_for_addr): Update.
4274 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4275 Update. Change return type.
4276 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4278 * jit.c (jit_breakpoint_re_set_internal): Update.
4279 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4281 * linux-nat.c (get_signo): Update.
4282 * linux-thread-db.c (inferior_has_bug): Update
4283 * m32c-tdep.c (m32c_return_value)
4284 (m32c_m16c_address_to_pointer): Update.
4285 * m32r-tdep.c (m32r_frame_this_id): Update.
4286 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4287 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4288 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4289 lookup_minimal_symbol. Change return type.
4290 (lookup_minimal_symbol): Remove.
4291 (lookup_bound_minimal_symbol): Update.
4292 (lookup_minimal_symbol_text): Change return type.
4293 (lookup_minimal_symbol_solib_trampoline): Change return type.
4294 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4295 (lookup_minimal_symbol_solib_trampoline): Change return type.
4296 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4297 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4298 (value_nsstring, find_imps): Update.
4299 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4300 * p-lang.c (pascal_main_name): Update.
4301 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4302 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4303 * proc-service.c (ps_pglobal_lookup): Update.
4304 * ravenscar-thread.c (get_running_thread_msymbol): Change
4306 (has_ravenscar_runtime, get_running_thread_id): Update.
4307 * remote.c (remote_check_symbols): Update.
4308 * sol-thread.c (ps_pglobal_lookup): Update.
4309 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4310 * solib-dsbt.c (lm_base): Update.
4311 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4313 * solib-irix.c (locate_base): Update.
4314 * solib-som.c (som_solib_create_inferior_hook)
4315 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4317 * solib-spu.c (spu_enable_break): Update.
4318 * solib-svr4.c (elf_locate_base, enable_break): Update.
4319 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4320 (flush_ea_cache): Update.
4321 * stabsread.c (define_symbol): Update.
4322 * symfile.c (simple_read_overlay_table): Update.
4323 * symtab.c (find_pc_sect_line): Update.
4324 * tracepoint.c (scope_info): Update.
4325 * tui-disasm.c (tui_get_begin_asm_address): Update.
4326 * value.c (value_static_field): Update.
4328 2014-02-26 Tom Tromey <tromey@redhat.com>
4330 * minsyms.c (prim_record_minimal_symbol_full): Use
4331 SET_MSYMBOL_VALUE_ADDRESS.
4332 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4333 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4334 SET_MSYMBOL_VALUE_ADDRESS.
4335 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4336 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4338 2014-02-26 Tom Tromey <tromey@redhat.com>
4340 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4341 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4342 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4343 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4344 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4345 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4346 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4347 * ada-lang.c (ada_main_name): Update.
4348 (ada_lookup_simple_minsym): Update.
4349 (ada_make_symbol_completion_list): Update.
4350 (ada_add_standard_exceptions): Update.
4351 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4352 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4353 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4354 * arm-tdep.c (skip_prologue_function): Update.
4355 (arm_skip_stack_protector, arm_skip_stub): Update.
4356 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4357 (arm_wince_skip_main_prologue): Update.
4358 * auxv.c (ld_so_xfer_auxv): Update.
4359 * avr-tdep.c (avr_scan_prologue): Update.
4360 * ax-gdb.c (gen_var_ref): Update.
4361 * block.c (call_site_for_pc): Update.
4362 * blockframe.c (get_pc_function_start): Update.
4363 (find_pc_partial_function_gnu_ifunc): Update.
4364 * breakpoint.c (create_overlay_event_breakpoint): Update.
4365 (create_longjmp_master_breakpoint): Update.
4366 (create_std_terminate_master_breakpoint): Update.
4367 (create_exception_master_breakpoint): Update.
4368 (resolve_sal_pc): Update.
4369 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4370 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4372 * c-valprint.c (c_val_print): Update.
4373 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4374 * coffread.c (coff_symfile_read): Update.
4375 * common/agent.c (agent_look_up_symbols): Update.
4376 * dbxread.c (find_stab_function_addr): Update.
4377 (end_psymtab): Update.
4378 * dwarf2loc.c (call_site_to_target_addr): Update.
4379 (func_verify_no_selftailcall): Update.
4380 (tailcall_dump): Update.
4381 (call_site_find_chain_1): Update.
4382 (dwarf_expr_reg_to_entry_parameter): Update.
4383 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4384 (elf_gnu_ifunc_resolve_by_got): Update.
4385 * f-valprint.c (info_common_command): Update.
4386 * findvar.c (read_var_value): Update.
4387 * frame.c (get_prev_frame_1): Update.
4388 (inside_main_func): Update.
4389 * frv-tdep.c (frv_skip_main_prologue): Update.
4390 (frv_frame_this_id): Update.
4391 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4392 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4393 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4394 (gnuv3_skip_trampoline): Update.
4395 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4396 (hppa64_hpux_in_solib_call_trampoline): Update.
4397 (hppa_hpux_skip_trampoline_code): Update.
4398 (hppa64_hpux_search_dummy_call_sequence): Update.
4399 (hppa_hpux_find_import_stub_for_addr): Update.
4400 (hppa_hpux_find_dummy_bpaddr): Update.
4401 * hppa-tdep.c (hppa_symbol_address)
4402 (hppa_lookup_stub_minimal_symbol): Update.
4403 * i386-tdep.c (i386_skip_main_prologue): Update.
4404 (i386_pe_skip_trampoline_code): Update.
4405 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4406 * infcall.c (get_function_name): Update.
4407 * infcmd.c (until_next_command): Update.
4408 * jit.c (jit_breakpoint_re_set_internal): Update.
4409 (jit_inferior_init): Update.
4410 * linespec.c (minsym_found): Update.
4411 (add_minsym): Update.
4412 * linux-fork.c (info_checkpoints_command): Update.
4413 * linux-nat.c (get_signo): Update.
4414 * linux-thread-db.c (inferior_has_bug): Update.
4415 * m32c-tdep.c (m32c_return_value): Update.
4416 (m32c_m16c_address_to_pointer): Update.
4417 (m32c_m16c_pointer_to_address): Update.
4418 * m32r-tdep.c (m32r_frame_this_id): Update.
4419 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4420 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4421 * maint.c (maintenance_translate_address): Update.
4422 * minsyms.c (add_minsym_to_hash_table): Update.
4423 (add_minsym_to_demangled_hash_table): Update.
4424 (msymbol_objfile): Update.
4425 (lookup_minimal_symbol): Update.
4426 (iterate_over_minimal_symbols): Update.
4427 (lookup_minimal_symbol_text): Update.
4428 (lookup_minimal_symbol_by_pc_name): Update.
4429 (lookup_minimal_symbol_solib_trampoline): Update.
4430 (lookup_minimal_symbol_by_pc_section_1): Update.
4431 (lookup_minimal_symbol_and_objfile): Update.
4432 (prim_record_minimal_symbol_full): Update.
4433 (compare_minimal_symbols): Update.
4434 (compact_minimal_symbols): Update.
4435 (build_minimal_symbol_hash_tables): Update.
4436 (install_minimal_symbols): Update.
4437 (terminate_minimal_symbol_table): Update.
4438 (find_solib_trampoline_target): Update.
4439 (minimal_symbol_upper_bound): Update.
4440 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4441 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4442 (mips_skip_pic_trampoline_code): Update.
4443 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4444 * objc-lang.c (selectors_info): Update.
4445 (classes_info): Update.
4446 (find_methods): Update.
4447 (find_imps): Update.
4448 (find_objc_msgsend): Update.
4449 * objfiles.c (objfile_relocate1): Update.
4450 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4451 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4452 * p-valprint.c (pascal_val_print): Update.
4453 * parse.c (write_exp_msymbol): Update.
4454 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4455 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4456 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4457 * printcmd.c (build_address_symbolic): Update.
4459 (address_info): Update.
4460 * proc-service.c (ps_pglobal_lookup): Update.
4461 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4462 (find_pc_sect_psymtab): Update.
4463 * python/py-framefilter.c (py_print_frame): Update.
4464 * ravenscar-thread.c (get_running_thread_id): Update.
4465 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4467 * remote.c (remote_check_symbols): Update.
4468 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4469 (rs6000_skip_trampoline_code): Update.
4470 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4471 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4472 * solib-dsbt.c (lm_base): Update.
4473 * solib-frv.c (lm_base): Update.
4475 * solib-irix.c (locate_base): Update.
4476 * solib-som.c (som_solib_create_inferior_hook): Update.
4477 (som_solib_desire_dynamic_linker_symbols): Update.
4478 (link_map_start): Update.
4479 * solib-spu.c (spu_enable_break): Update.
4480 (ocl_enable_break): Update.
4481 * solib-svr4.c (elf_locate_base): Update.
4482 (enable_break): Update.
4483 * spu-tdep.c (spu_get_overlay_table): Update.
4484 (spu_catch_start): Update.
4485 (flush_ea_cache): Update.
4486 * stabsread.c (define_symbol): Update.
4487 (scan_file_globals): Update.
4488 * stack.c (find_frame_funname): Update.
4489 (frame_info): Update.
4490 * symfile.c (simple_read_overlay_table): Update.
4491 (simple_overlay_update): Update.
4492 * symmisc.c (dump_msymbols): Update.
4493 * symtab.c (fixup_section): Update.
4494 (find_pc_sect_line): Update.
4495 (skip_prologue_sal): Update.
4496 (search_symbols): Update.
4497 (print_msymbol_info): Update.
4498 (rbreak_command): Update.
4499 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4500 (completion_list_objc_symbol): Update.
4501 (default_make_symbol_completion_list_break_on): Update.
4502 * tracepoint.c (scope_info): Update.
4503 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4504 (tui_get_begin_asm_address): Update.
4505 * valops.c (find_function_in_inferior): Update.
4506 * value.c (value_static_field): Update.
4507 (value_fn_field): Update.
4509 2014-02-26 Tom Tromey <tromey@redhat.com>
4511 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4512 bound minimal symbols. Move code that knows about minsym
4514 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4516 * minsyms.h (minimal_symbol_upper_bound): Declare.
4517 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4518 minimal_symbol_upper_bound.
4520 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4522 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4523 Use the type's name if its basic type does not have a tag.
4525 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4527 * dwarf2read.c (read_subrange_type): Add comment.
4529 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4531 * dwarf2read.c (update_enumeration_type_from_children): New
4532 function, mostly extracted from process_structure_scope.
4533 (read_enumeration_type): Call update_enumeration_type_from_children.
4534 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4535 and flag_flag_enum fields.
4537 2014-02-26 Pedro Alves <palves@redhat.com>
4539 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4540 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4541 to_xfer_partial method.
4543 2014-02-26 Pedro Alves <palves@redhat.com>
4545 * target.c (complete_target_initialization): Don't install
4546 default_xfer_partial as to_xfer_partial hook.
4548 (update_current_target): Don't INHERIT nor de_fault
4549 deprecated_xfer_memory. Delete de_fault macro.
4550 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4551 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4552 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4555 2014-02-26 Pedro Alves <palves@redhat.com>
4557 * go32-nat.c (my_write_child): New function.
4558 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4559 (go32_xfer_partial): New function.
4560 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4561 Instead install a to_xfer_partial hook.
4563 2014-02-26 Pedro Alves <palves@redhat.com>
4565 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4566 to_xfer_partial helper. Rewrite.
4567 (procfs_xfer_partial): New function.
4568 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4569 Install a to_xfer_partial hook.
4571 2014-02-26 Pedro Alves <palves@redhat.com>
4573 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4574 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4575 (m32r_xfer_partial): New function.
4576 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4577 Install a to_xfer_partial hook.
4579 2014-02-26 Pedro Alves <palves@redhat.com>
4581 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4583 (mips_xfer_partial): New function.
4584 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4585 hook. Install a to_xfer_partial hook.
4587 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4589 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4590 * gdbtypes.c (create_array_type_with_stride): New function,
4591 renaming create_array_type, but with an added parameter
4592 called "bit_stride".
4593 (create_array_type): Re-implement using
4594 create_array_type_with_stride.
4595 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4596 and DW_AT_bit_stride attributes.
4598 2014-02-26 Pedro Alves <palves@redhat.com>
4600 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4601 task-specific breakpoints.
4603 2014-02-25 Pedro Alves <palves@redhat.com>
4605 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4606 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4608 2014-02-25 Stan Shebs <stan@codesourcery.com>
4610 * defs.h: Annotate comments for Doxygen.
4612 2014-02-25 Tom Tromey <tromey@redhat.com>
4614 * target.h (target_ignore): Don't declare.
4615 * target.c (target_ignore): Remove.
4617 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4620 * auto-load.c (auto_load_objfile_script_1): Change filename to
4623 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4625 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4626 documentation. Adjust prototype to match the target_ops
4627 to_xfer_partial method. Adjust implementation accordingly.
4629 2014-02-25 Hui Zhu <hui@codesourcery.com>
4631 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4634 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4636 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4637 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4638 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4639 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4640 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4641 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4642 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4643 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4645 (rl78_register_type): Use a data pointer type for SP and
4646 new pseudo registers mentioned above. Use a 16 bit integer
4647 type for all other register pairs.
4648 (rl78_register_name, rl78_g10_register_name): Update for
4649 new pseudo registers.
4650 (rl78_pseudo_register_read): Likewise.
4651 (rl78_pseudo_register_write): Likewise.
4652 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4653 to the newly added pseudo registers.
4655 2014-02-24 Doug Evans <dje@google.com>
4657 * value.c (record_latest_value): Fix comment.
4658 * printcmd.c (print_command_1): Remove code to handle -1 return from
4659 record_latest_value.
4661 2014-02-24 Pedro Alves <palves@redhat.com>
4663 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4664 deprecated_xfer_memory hook.
4665 (procfs_xfer_partial): Call procfs_xfer_memory instead
4666 of the deprecated_xfer_memory target hook.
4667 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4670 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4672 * windows-nat.c (windows_xfer_shared_libraries): Return
4673 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4674 requested object is TARGET_OBJECT_LIBRARIES.
4676 2014-02-24 Yao Qi <yao@codesourcery.com>
4678 * target.h (enum target_xfer_status)
4679 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4680 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4682 * corefile.c (memory_error_message): User updated.
4683 * exec.c (section_table_read_available_memory): Likewise.
4684 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4685 * target.c (target_xfer_status_to_string): Likewise.
4686 (raw_memory_xfer_partial): Likewise.
4687 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4688 * valops.c (read_value_memory): Likewise.
4689 * exec.h: Update comments.
4691 2014-02-24 Yao Qi <yao@codesourcery.com>
4693 * target.c (target_xfer_status_to_string): Rename argument err
4695 * target.h (target_xfer_status_to_string): Update declaration.
4696 Replace target_xfer_error_to_string with
4697 target_xfer_status_to_string in comment.
4699 2014-02-24 Yao Qi <yao@codesourcery.com>
4701 * mips-linux-nat.c (super_close): Update its type.
4702 (mips_linux_close): Pass 'self' to super_close.
4704 2014-02-24 Yao Qi <yao@codesourcery.com>
4706 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4707 * corefile.c (read_memory): Adjusted.
4708 * target.c (target_write_with_progress): Adjusted.
4710 2014-02-23 Yao Qi <yao@codesourcery.com>
4714 2013-10-25 Yao Qi <yao@codesourcery.com>
4716 * remote.c (remote_traceframe_info): Return early if
4717 traceframe is not selected.
4719 2013-07-19 Yao Qi <yao@codesourcery.com>
4721 * target.c (update_current_target): Change the default action
4722 of 'to_traceframe_info' from tcomplain to return_zero.
4723 * target.h (struct target_ops) <to_traceframe_info>: Add more
4726 2014-02-23 Yao Qi <yao@codesourcery.com>
4728 * valops.c (read_value_memory): Rewrite it. Call
4729 target_xfer_partial in a loop.
4730 * exec.h (section_table_available_memory): Remove declaration.
4731 Move comments to ...
4732 * exec.c (section_table_available_memory): ... here. Make it
4735 2014-02-23 Yao Qi <yao@codesourcery.com>
4737 * exec.c (section_table_read_available_memory): New function.
4738 * exec.h (section_table_read_available_memory): Declare.
4739 * ctf.c (ctf_xfer_partial): Call
4740 section_table_read_available_memory.
4741 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4743 2014-02-23 Yao Qi <yao@codesourcery.com>
4745 * ctf.c (ctf_xfer_partial): Move code to ...
4746 * exec.c (exec_read_partial_read_only): ... it. New function.
4747 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4748 * tracefile.c: Include "exec.h".
4749 * exec.h (exec_read_partial_read_only): Declare.
4751 2014-02-23 Yao Qi <yao@codesourcery.com>
4753 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4754 (tfile_has_memory): Remove.
4755 (init_tfile_ops): Don't set fields to_has_all_memory and
4756 to_has_memory of tfile_ops.
4757 * tracefile.c (tracefile_has_all_memory): New function.
4758 (tracefile_has_memory): New function.
4759 (init_tracefile_ops): Initialize fields to_has_all_memory and
4760 to_has_memory of 'ops'.
4762 2014-02-23 Yao Qi <yao@codesourcery.com>
4764 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4765 (ctf_thread_alive, ctf_get_trace_status): Remove.
4766 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4768 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4769 (tfile_has_stack, tfile_has_registers): Remove.
4770 (tfile_thread_alive): Remove.
4771 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4773 * tracefile.c (tracefile_has_stack): New function.
4774 (tracefile_has_registers): New function.
4775 (tracefile_thread_alive): New function.
4776 (tracefile_get_trace_status): New function.
4777 (init_tracefile_ops): New function.
4778 * tracefile.h (init_tracefile_ops): Declare.
4780 2014-02-23 Yao Qi <yao@codesourcery.com>
4782 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4783 (O_LARGEFILE): Likewise.
4784 (tfile_ops): Likewise.
4785 (TRACE_HEADER_SIZE): Likewise.
4786 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4787 (cur_data_size): Likewise.
4788 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4789 (tfile_close, tfile_files_info): Likewise.
4790 (tfile_get_trace_status): Likewise.
4791 (tfile_get_tracepoint_status): Likewise.
4792 (tfile_get_traceframe_address): Likewise.
4793 (tfile_trace_find, match_blocktype): Likewise.
4794 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4795 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4796 (tfile_get_trace_state_variable_value): Likewise.
4797 (tfile_has_all_memory, tfile_has_memory): Likewise.
4798 (tfile_has_stack, tfile_has_registers): Likewise.
4799 (tfile_thread_alive, build_traceframe_info): Likewise.
4800 (tfile_traceframe_info, init_tfile_ops): Likewise.
4801 (_initialize_tracepoint): Don't call init_tfile_ops
4802 and add_target_with_completer.
4803 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4804 exec.h, completer.h and filenames.h.
4805 (_initialize_tracefile_tfile): New function.
4807 2014-02-23 Yao Qi <yao@codesourcery.com>
4809 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4811 (HFILES_NO_SRCDIR): Add tracefile.h.
4812 * ctf.c: Include "tracefile.h".
4813 * tracefile.h: New file.
4814 * tracefile.c: New file
4815 * tracefile-tfile.c: New file.
4816 * tracepoint.c: Include "tracefile.h".
4817 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4818 (stop_reason_names): Add const.
4819 (trace_file_writer_xfree): Move it to tracefile.c.
4820 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4821 (trace_save_ctf): Likewise.
4822 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4823 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4824 (tfile_write_header, tfile_write_regblock_type): Likewise.
4825 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4826 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4827 (tfile_write_raw_data, tfile_end): Likewise.
4828 (tfile_trace_file_writer_new): Likewise.
4829 (free_uploaded_tp): Make it extern.
4830 (free_uploaded_tsv): Make it extern.
4831 (_initialize_tracepoint): Move code to register command 'tsave'
4833 * tracepoint.h (stop_reason_names): Declare.
4834 (struct trace_frame_write_ops): Move it to tracefile.h.
4835 (struct trace_file_write_ops): Likewise.
4836 (struct trace_file_writer): Likewise.
4837 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4839 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4844 (get_cores_used_by_process): New parameter num_cores, use it.
4845 (linux_xfer_osdata_processes): Pass num_cores to it.
4846 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4849 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4851 * target.c (memory_xfer_partial): Fix length arg in call to
4852 breakpoint_xfer_memory.
4854 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4857 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4858 number comes after the + or - signs. Adjust length of register
4859 name to be extracted.
4861 2014-02-20 Tom Tromey <tromey@redhat.com>
4863 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4864 (ada_varobj_ops): Mark "extern".
4866 2014-02-20 Tom Tromey <tromey@redhat.com>
4868 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4870 2014-02-20 Doug Evans <xdje42@gmail.com>
4872 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4873 All callers updated.
4874 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4875 All callers updated.
4876 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4877 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4879 2014-02-20 lin zuojian <manjian2006@gmail.com>
4880 Joel Brobecker <brobecker@adacore.com>
4881 Doug Evans <xdje42@gmail.com>
4884 * dwarf2read.c (struct die_info): New member in_process.
4885 (reset_die_in_process): New function.
4886 (process_die): Set it at the start, reset when returning.
4887 (inherit_abstract_dies): Only call process_die if origin_child_die
4888 not already being processed.
4890 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4892 * windows-nat.c (handle_unload_dll): Add function documentation.
4893 (do_initial_windows_stuff): Add comment explaining why we wait
4894 until after inferior initialization has finished before
4895 processing all DLLs.
4897 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4899 * windows-nat.c (get_module_name): Delete.
4900 (windows_get_exec_module_filename): New function, mostly
4901 inspired from get_module_name.
4902 (windows_pid_to_exec_file): Replace call to get_module_name
4903 by call to windows_get_exec_module_filename.
4905 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4907 * windows-nat.c (handle_load_dll): Rewrite this function's
4908 introductory comment. Remove code using get_module_name
4909 to get the DLL's name.
4911 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4913 * windows-nat.c (get_windows_debug_event): Ignore
4914 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4915 if windows_initialization_done == 0.
4916 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4917 Adjust implementation to always load all DLLs.
4918 (do_initial_windows_stuff): Replace call to
4919 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4921 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4923 * windows-nat.c (_initialize_windows_nat): Deprecate the
4924 "dll-symbols" command. Turn the "add-shared-symbol-files"
4925 and "assf" aliases into commands, and deprecate them as well.
4926 * NEWS: Add entry explaining that "dll-symbols" and its two
4927 aliases are now deprecated.
4929 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4931 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4932 new-line in debug string. Remove trailing spaces.
4934 2014-02-19 Stan Shebs <stan@codesourcery.com>
4936 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4938 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4940 * NEWS: Add entry for the new feature
4941 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4944 2014-02-19 Stan Shebs <stan@codesourcery.com>
4946 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4948 2014-02-19 Pedro Alves <palves@redhat.com>
4950 * common/ptid.h (struct ptid): Mention that process_stratum
4951 targets should prefer ptid.lwp.
4953 2014-02-19 Pedro Alves <palves@redhat.com>
4955 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4956 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4957 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4958 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4959 store remote thread ids rather than ptid.tid.
4960 (_initialize_remote): Adjust.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target.c (target_get_unwinder): Rewrite.
4965 (target_get_tailcall_unwinder): Rewrite.
4966 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4967 (record_btrace_to_get_tailcall_unwinder): New function.
4968 (init_record_btrace_ops): Update.
4969 * target.h (struct target_ops) <to_get_unwinder,
4970 to_get_tailcall_unwinder>: Now function pointers. Use
4971 TARGET_DEFAULT_RETURN.
4973 2014-02-19 Tom Tromey <tromey@redhat.com>
4975 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4977 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4983 * target-delegates.c: Rebuild.
4984 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4985 TARGET_DEFAULT_FUNC.
4986 * target.c (default_target_decr_pc_after_break): Rename from
4987 forward_target_decr_pc_after_break. Simplify.
4988 (target_decr_pc_after_break): Rely on delegation.
4990 2014-02-19 Tom Tromey <tromey@redhat.com>
4992 * target.c (update_current_target): Do not INHERIT to_doc or
4993 to_magic. Do not de_fault to_open or to_close.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * gcore.h (objfile_find_memory_regions): Declare.
4998 * gcore.c (objfile_find_memory_regions): No longer static. Add
5000 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5001 * exec.c: Include gcore.h.
5002 (exec_set_find_memory_regions): Remove.
5003 (exec_find_memory_regions): Remove.
5004 (exec_do_find_memory_regions): Remove.
5005 (init_exec_ops): Update.
5006 * defs.h (exec_set_find_memory_regions): Remove.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target-delegates.c: Rebuild.
5011 * target.h (struct target_ops) <to_extra_thread_info,
5012 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5013 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5014 not 0, in TARGET_DEFAULT_RETURN.
5016 2014-02-19 Tom Tromey <tromey@redhat.com>
5018 * target.c (complete_target_initialization): Remove casts. Use
5019 return_zero_has_execution.
5020 (return_zero): Add "ignore" argument.
5021 (return_zero_has_execution): New function.
5022 (init_dummy_target): Remove casts. Use
5023 return_zero_has_execution.
5025 2014-02-19 Tom Tromey <tromey@redhat.com>
5027 * target.c (update_current_target): Update comments. Do not
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5034 * corelow.c (core_read_description): Delegate when needed.
5035 * remote.c (remote_read_description): Delegate when needed.
5036 * target-delegates.c: Rebuild.
5037 * target.c (target_read_description): Rewrite.
5038 * target.h (struct target_ops) <to_read_description>: Update
5039 comment. Use TARGET_DEFAULT_RETURN.
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * target-delegates.c: Rebuild.
5044 * target.c (update_current_target): Don't inherit or default
5046 (find_default_run_target): Check against delegate_can_run.
5047 * target.h (struct target_ops) <to_can_run>: Use
5048 TARGET_DEFAULT_RETURN.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (target_disconnect): Unconditionally delegate.
5054 * target.h (struct target_ops) <to_disconnect>: Use
5055 TARGET_DEFAULT_NORETURN.
5057 2014-02-19 Tom Tromey <tromey@redhat.com>
5059 * record.c (record_stop): Unconditionally delegate.
5060 * target-delegates.c: Rebuild.
5061 * target.c (target_stop_recording): Unconditionally delegate.
5062 * target.h (struct target_ops) <to_stop_recording>: Use
5063 TARGET_DEFAULT_IGNORE.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (target_enable_btrace): Unconditionally delegate.
5069 * target.h (struct target_ops) <to_enable_btrace>: Use
5070 TARGET_DEFAULT_NORETURN.
5072 2014-02-19 Tom Tromey <tromey@redhat.com>
5074 * target-delegates.c: Rebuild.
5075 * target.c (target_read_btrace): Unconditionally delegate.
5076 * target.h (struct target_ops) <to_read_btrace>: Use
5077 TARGET_DEFAULT_NORETURN.
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * target-delegates.c: Rebuild.
5082 * target.c (target_teardown_btrace): Unconditionally delegate.
5083 * target.h (struct target_ops) <to_teardown_btrace>: Use
5084 TARGET_DEFAULT_NORETURN.
5086 2014-02-19 Tom Tromey <tromey@redhat.com>
5088 * target-delegates.c: Rebuild.
5089 * target.c (target_disable_btrace): Unconditionally delegate.
5090 * target.h (struct target_ops) <to_disable_btrace>: Use
5091 TARGET_DEFAULT_NORETURN.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * target-delegates.c: Rebuild.
5096 * target.c (default_search_memory): New function.
5097 (simple_search_memory): Update comment.
5098 (target_search_memory): Unconditionally delegate.
5099 * target.h (struct target_ops) <to_search_memory>: Use
5100 TARGET_DEFAULT_FUNC.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * auxv.c (default_auxv_parse): No longer static.
5105 (target_auxv_parse): Unconditionally delegate.
5106 * auxv.h (default_auxv_parse): Declare.
5107 * target-delegates.c: Rebuild.
5108 * target.c: Include auxv.h.
5109 * target.h (struct target_ops) <to_auxv_parse>: Use
5110 TARGET_DEFAULT_FUNC.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: Rebuild.
5115 * target.c (target_memory_map): Unconditionally delegate.
5116 * target.h (struct target_ops) <to_memory_map>: Use
5117 TARGET_DEFAULT_RETURN.
5119 2014-02-19 Tom Tromey <tromey@redhat.com>
5121 * target-delegates.c: Rebuild.
5122 * target.c (target_thread_alive): Unconditionally delegate.
5123 * target.h (struct target_ops) <to_thread_alive>: Use
5124 TARGET_DEFAULT_RETURN.
5126 2014-02-19 Tom Tromey <tromey@redhat.com>
5128 * target-delegates.c: Rebuild.
5129 * target.c (target_save_record): Unconditionally delegate.
5130 * target.h (struct target_ops) <to_save_record>: Use
5131 TARGET_DEFAULT_NORETURN.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target-delegates.c: Rebuild.
5136 * target.c (target_delete_record): Unconditionally delegate.
5137 * target.h (struct target_ops) <to_delete_record>: Use
5138 TARGET_DEFAULT_NORETURN.
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target-delegates.c: Rebuild.
5143 * target.c (target_record_is_replaying): Unconditionally
5145 * target.h (struct target_ops) <to_record_is_replaying>: Use
5146 TARGET_DEFAULT_RETURN.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target-delegates.c: Rebuild.
5151 * target.c (target_goto_record_begin): Unconditionally delegate.
5152 * target.h (struct target_ops) <to_goto_record_begin>: Use
5153 TARGET_DEFAULT_NORETURN.
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target-delegates.c: Rebuild.
5158 * target.c (target_goto_record_end): Unconditionally delegate.
5159 * target.h (struct target_ops) <to_goto_record_end>: Use
5160 TARGET_DEFAULT_NORETURN.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target-delegates.c: Rebuild.
5165 * target.c (target_goto_record): Unconditionally delegate.
5166 * target.h (struct target_ops) <to_goto_record>: Use
5167 TARGET_DEFAULT_NORETURN.
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5171 * target-delegates.c: Rebuild.
5172 * target.c (target_insn_history): Unconditionally delegate.
5173 * target.h (struct target_ops) <to_insn_history>: Use
5174 TARGET_DEFAULT_NORETURN.
5176 2014-02-19 Tom Tromey <tromey@redhat.com>
5178 * target-delegates.c: Rebuild.
5179 * target.c (target_insn_history_from): Unconditionally delegate.
5180 * target.h (struct target_ops) <to_insn_history_from>: Use
5181 TARGET_DEFAULT_NORETURN.
5183 2014-02-19 Tom Tromey <tromey@redhat.com>
5185 * target-delegates.c: Rebuild.
5186 * target.c (target_insn_history_range): Unconditionally delegate.
5187 * target.h (struct target_ops) <to_insn_history_range>: Use
5188 TARGET_DEFAULT_NORETURN.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target-delegates.c: Rebuild.
5193 * target.c (target_call_history): Unconditionally delegate.
5194 * target.h (struct target_ops) <to_call_history>: Use
5195 TARGET_DEFAULT_NORETURN.
5197 2014-02-19 Tom Tromey <tromey@redhat.com>
5199 * target-delegates.c: Rebuild.
5200 * target.c (target_call_history_from): Unconditionally delegate.
5201 * target.h (struct target_ops) <to_call_history_from>: Use
5202 TARGET_DEFAULT_NORETURN.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target-delegates.c: Rebuild.
5207 * target.c (target_call_history_range): Unconditionally delegate.
5208 * target.h (struct target_ops) <to_call_history_range>: Use
5209 TARGET_DEFAULT_NORETURN.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (target_verify_memory): Unconditionally delegate.
5215 * target.h (struct target_ops) <to_verify_memory>: Use
5216 TARGET_DEFAULT_NORETURN.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target-delegates.c: Rebuild.
5221 * target.c (target_core_of_thread): Unconditionally delegate.
5222 * target.h (struct target_ops) <to_core_of_thread>: Use
5223 TARGET_DEFAULT_RETURN.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target-delegates.c: Rebuild.
5228 * target.c (target_flash_done): Unconditionally delegate.
5229 * target.h (struct target_ops) <to_flash_done>: Use
5230 TARGET_DEFAULT_NORETURN.
5232 2014-02-19 Tom Tromey <tromey@redhat.com>
5234 * target-delegates.c: Rebuild.
5235 * target.c (target_flash_erase): Unconditionally delegate.
5236 * target.h (struct target_ops) <to_flash_erase>: Use
5237 TARGET_DEFAULT_NORETURN.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target-delegates.c: Rebuild.
5242 * target.c (target_get_section_table): Unconditionally delegate.
5243 * target.h (struct target_ops) <to_get_section_table>: Use
5244 TARGET_DEFAULT_RETURN.
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target-delegates.c: Rebuild.
5249 * target.c (target_pid_to_str): Unconditionally delegate.
5250 (init_dummy_target): Don't initialize to_pid_to_str.
5251 (default_pid_to_str): Rename from dummy_pid_to_str.
5252 * target.h (struct target_ops) <to_pid_to_str>: Use
5253 TARGET_DEFAULT_FUNC.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target-delegates.c: Rebuild.
5258 * target.c (target_find_new_threads): Unconditionally delegate.
5259 * target.h (struct target_ops) <to_find_new_threads>: Use
5260 TARGET_DEFAULT_RETURN.
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target-delegates.c: Rebuild.
5265 * target.c (target_program_signals): Unconditionally delegate.
5266 * target.h (struct target_ops) <to_program_signals>: Use
5267 TARGET_DEFAULT_IGNORE.
5269 2014-02-19 Tom Tromey <tromey@redhat.com>
5271 * target-delegates.c: Rebuild.
5272 * target.c (target_pass_signals): Unconditionally delegate.
5273 * target.h (struct target_ops) <to_pass_signals>: Use
5274 TARGET_DEFAULT_IGNORE.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target-delegates.c: Rebuild.
5279 * target.c (default_mourn_inferior): New function.
5280 (target_mourn_inferior): Unconditionally delegate.
5281 * target.h (struct target_ops) <to_mourn_inferior>: Use
5282 TARGET_DEFAULT_FUNC.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target-delegates.c: Rebuild.
5287 * target.c (default_follow_fork): New function.
5288 (target_follow_fork): Unconditionally delegate.
5289 * target.h (struct target_ops) <to_follow_fork>: Use
5290 TARGET_DEFAULT_FUNC.
5292 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target-delegates.c: Rebuild.
5295 * target.c (target_kill): Unconditionally delegate.
5296 * target.h (struct target_ops) <to_kill>: Use
5297 TARGET_DEFAULT_NORETURN.
5299 2014-02-19 Tom Tromey <tromey@redhat.com>
5301 * target-delegates.c: Rebuild.
5302 * target.c (target_masked_watch_num_registers): Unconditionally
5304 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5305 Use TARGET_DEFAULT_RETURN.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target-delegates.c: Rebuild.
5310 * target.c (target_remove_mask_watchpoint): Unconditionally
5312 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5313 TARGET_DEFAULT_RETURN.
5315 2014-02-19 Tom Tromey <tromey@redhat.com>
5317 * target-delegates.c: Rebuild.
5318 * target.c (target_insert_mask_watchpoint): Unconditionally
5320 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5321 TARGET_DEFAULT_RETURN.
5323 2014-02-19 Tom Tromey <tromey@redhat.com>
5325 * target-delegates.c: Rebuild.
5326 * target.c (target_ranged_break_num_registers): Unconditionally
5328 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5329 Use TARGET_DEFAULT_RETURN.
5331 2014-02-19 Tom Tromey <tromey@redhat.com>
5333 * target-delegates.c: Rebuild.
5334 * target.c (target_fetch_registers): Unconditionally delegate.
5335 * target.h (struct target_ops) <to_fetch_registers>: Use
5336 TARGET_DEFAULT_NORETURN.
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_stop>: Use
5344 TARGET_DEFAULT_IGNORE.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target-delegates.c: Rebuild.
5349 * target.c (update_current_target): Don't inherit or default
5350 to_can_run_breakpoint_commands.
5351 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5352 Use TARGET_DEFAULT_RETURN.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target-delegates.c: Rebuild.
5357 * target.c (update_current_target): Don't inherit or default
5358 to_supports_evaluation_of_breakpoint_conditions.
5359 * target.h (struct target_ops)
5360 <to_supports_evaluation_of_breakpoint_conditions>: Use
5361 TARGET_DEFAULT_RETURN.
5363 2014-02-19 Tom Tromey <tromey@redhat.com>
5365 * target-delegates.c: Rebuild.
5366 * target.c (update_current_target): Don't inherit or default
5367 to_augmented_libraries_svr4_read.
5368 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5369 Use TARGET_DEFAULT_RETURN.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target-delegates.c: Rebuild.
5374 * target.c (update_current_target): Don't inherit or default
5376 * target.h (struct target_ops) <to_can_use_agent>: Use
5377 TARGET_DEFAULT_RETURN.
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target-delegates.c: Rebuild.
5382 * target.c (update_current_target): Don't inherit or default
5384 * target.h (struct target_ops) <to_use_agent>: Use
5385 TARGET_DEFAULT_NORETURN.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target-delegates.c: Rebuild.
5390 * target.c (update_current_target): Don't inherit or default
5392 (return_null): Remove.
5393 * target.h (struct target_ops) <to_traceframe_info>: Use
5394 TARGET_DEFAULT_RETURN.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target-delegates.c: Rebuild.
5399 * target.c (update_current_target): Don't inherit or default
5400 to_static_tracepoint_markers_by_strid.
5401 * target.h (struct target_ops)
5402 <to_static_tracepoint_markers_by_strid>: Use
5403 TARGET_DEFAULT_NORETURN.
5405 2014-02-19 Tom Tromey <tromey@redhat.com>
5407 * target-delegates.c: Rebuild.
5408 * target.c (update_current_target): Don't inherit or default
5409 to_static_tracepoint_marker_at.
5410 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5411 Use TARGET_DEFAULT_RETURN.
5413 2014-02-19 Tom Tromey <tromey@redhat.com>
5415 * target-delegates.c: Rebuild.
5416 * target.c (update_current_target): Don't inherit or default
5418 * target.h (struct target_ops) <to_set_permissions>: Use
5419 TARGET_DEFAULT_IGNORE.
5421 2014-02-19 Tom Tromey <tromey@redhat.com>
5423 * target-delegates.c: Rebuild.
5424 * target.c (update_current_target): Don't inherit or default
5426 * target.h (struct target_ops) <to_get_tib_address>: Use
5427 TARGET_DEFAULT_NORETURN.
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target-delegates.c: Rebuild.
5432 * target.c (update_current_target): Don't inherit or default
5434 * target.h (struct target_ops) <to_set_trace_notes>: Use
5435 TARGET_DEFAULT_RETURN.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target-delegates.c: Rebuild.
5440 * target.c (update_current_target): Don't initialize
5441 to_set_trace_buffer_size.
5442 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5443 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
5450 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5451 TARGET_DEFAULT_IGNORE.
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
5457 to_set_disconnected_tracing.
5458 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5459 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
5466 (return_minus_one): Remove.
5467 * target.h (struct target_ops)
5468 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5474 to_get_raw_trace_data.
5475 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5476 TARGET_DEFAULT_NORETURN.
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target-delegates.c: Rebuild.
5481 * target.c (update_current_target): Don't inherit or default
5482 to_upload_trace_state_variables.
5483 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5484 Use TARGET_DEFAULT_RETURN.
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target-delegates.c: Rebuild.
5489 * target.c (update_current_target): Don't inherit or default
5490 to_upload_tracepoints.
5491 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5492 TARGET_DEFAULT_RETURN.
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target-delegates.c: Rebuild.
5497 * target.c (update_current_target): Don't inherit or default
5499 * target.h (struct target_ops) <to_save_trace_data>: Use
5500 TARGET_DEFAULT_NORETURN.
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target-delegates.c: Rebuild.
5505 * target.c (update_current_target): Don't inherit or default
5506 to_get_trace_state_variable_value.
5507 * target.h (struct target_ops)
5508 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target-delegates.c: Rebuild.
5513 * target.c (update_current_target): Don't inherit or default
5515 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5522 * target.h (struct target_ops) <to_trace_stop>: Use
5523 TARGET_DEFAULT_NORETURN.
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target-delegates.c: Rebuild.
5528 * target.c (update_current_target): Don't inherit or default
5529 to_get_tracepoint_status.
5530 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5531 TARGET_DEFAULT_NORETURN.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target-delegates.c: Rebuild.
5536 * target.c (update_current_target): Don't inherit or default
5537 to_get_trace_status.
5538 * target.h (struct target_ops) <to_get_trace_status>: Use
5539 TARGET_DEFAULT_RETURN.
5541 2014-02-19 Tom Tromey <tromey@redhat.com>
5543 * target-delegates.c: Rebuild.
5544 * target.c (update_current_target): Don't inherit or default
5546 * target.h (struct target_ops) <to_trace_start>: Use
5547 TARGET_DEFAULT_NORETURN.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target-delegates.c: Rebuild.
5552 * target.c (update_current_target): Don't inherit or default
5553 to_trace_set_readonly_regions.
5554 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5555 Use TARGET_DEFAULT_NORETURN.
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * target-delegates.c: Rebuild.
5560 * target.c (update_current_target): Don't inherit or default
5561 to_disable_tracepoint.
5562 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5563 TARGET_DEFAULT_NORETURN.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target-delegates.c: Rebuild.
5568 * target.c (update_current_target): Don't inherit or default
5569 to_enable_tracepoint.
5570 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5571 TARGET_DEFAULT_NORETURN.
5573 2014-02-19 Tom Tromey <tromey@redhat.com>
5575 * target-delegates.c: Rebuild.
5576 * target.c (update_current_target): Don't inherit or default
5577 to_download_trace_state_variable.
5578 * target.h (struct target_ops) <to_download_trace_state_variable>:
5579 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
5586 * target.h (struct target_ops) <to_can_download_tracepoint>: 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_download_tracepoint.
5594 * target.h (struct target_ops) <to_download_tracepoint>: Use
5595 TARGET_DEFAULT_NORETURN.
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
5602 * target.h (struct target_ops) <to_trace_init>: Use
5603 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
5610 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5611 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
5618 * target.h (struct target_ops)
5619 <to_supports_enable_disable_tracepoint>: Use
5620 TARGET_DEFAULT_RETURN.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target-delegates.c: Rebuild.
5625 * target.c (update_current_target): Don't inherit or default
5626 to_supports_multi_process.
5627 * target.h (struct target_ops) <to_supports_multi_process>: Use
5628 TARGET_DEFAULT_RETURN.
5630 2014-02-19 Tom Tromey <tromey@redhat.com>
5632 * target-delegates.c: Rebuild.
5633 * target.c (update_current_target): Don't inherit or default
5634 to_get_ada_task_ptid.
5635 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5636 TARGET_DEFAULT_FUNC.
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target-delegates.c: Rebuild.
5641 * target.c (update_current_target): Don't inherit or default
5642 to_thread_architecture.
5643 * target.h (struct target_ops) <to_thread_architecture>: Use
5644 TARGET_DEFAULT_FUNC.
5646 2014-02-19 Tom Tromey <tromey@redhat.com>
5648 * target-delegates.c: Rebuild.
5649 * target.c (update_current_target): Don't inherit or default
5650 to_execution_direction.
5651 * target.h (struct target_ops) <to_execution_direction>: Use
5652 TARGET_DEFAULT_FUNC.
5654 2014-02-19 Tom Tromey <tromey@redhat.com>
5656 * target-delegates.c: Rebuild.
5657 * target.c (update_current_target): Don't inherit or default
5658 to_can_execute_reverse.
5659 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5660 TARGET_DEFAULT_RETURN.
5661 (target_can_execute_reverse): Unconditionally delegate.
5663 2014-02-19 Tom Tromey <tromey@redhat.com>
5665 * target-delegates.c: Rebuild.
5666 * target.c (update_current_target): Don't inherit or default
5668 (dummy_goto_bookmark): Remove.
5669 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5670 * target.h (struct target_ops) <to_goto_bookmark>: Use
5671 TARGET_DEFAULT_NORETURN.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target-delegates.c: Rebuild.
5676 * target.c (update_current_target): Don't inherit or default
5678 (dummy_get_bookmark): Remove.
5679 (init_dummy_target): Don't inherit or default to_get_bookmark.
5680 * target.h (struct target_ops) <to_get_bookmark>: Use
5681 TARGET_DEFAULT_NORETURN
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * target-delegates.c: Rebuild.
5686 * target.c (update_current_target): Don't inherit or default
5687 to_make_corefile_notes.
5688 (init_dummy_target): Don't initialize to_make_corefile_notes.
5689 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5690 TARGET_DEFAULT_FUNC.
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target-delegates.c: Rebuild.
5695 * target.c (update_current_target): Don't inherit or default
5696 to_find_memory_regions.
5697 (init_dummy_target): Don't initialize to_find_memory_regions.
5698 * target.h (struct target_ops) <to_find_memory_regions>: Use
5699 TARGET_DEFAULT_FUNC.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target-delegates.c: Rebuild.
5704 * target.c (update_current_target): Don't inherit or default
5706 * target.h (struct target_ops) <to_log_command>: Use
5707 TARGET_DEFAULT_IGNORE.
5708 (target_log_command): Unconditionally delegate.
5710 2014-02-19 Tom Tromey <tromey@redhat.com>
5712 * target-delegates.c: Rebuild.
5713 * target.c (update_current_target): Don't inherit or default
5714 to_pid_to_exec_file.
5715 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5716 TARGET_DEFAULT_RETURN.
5718 2014-02-19 Tom Tromey <tromey@redhat.com>
5720 * target-delegates.c: Rebuild.
5721 * target.c (update_current_target): Don't inherit or default
5723 (target_thread_name): Unconditionally delegate.
5724 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
5732 * target.h (struct target_ops) <to_extra_thread_info>: 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
5740 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
5748 (return_one): Remove.
5749 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5750 TARGET_DEFAULT_RETURN.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target-delegates.c: Rebuild.
5755 * target.c (update_current_target): Don't inherit or default
5756 to_insert_exec_catchpoint.
5757 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5758 TARGET_DEFAULT_RETURN.
5760 2014-01-08 Tom Tromey <tromey@redhat.com>
5762 * target-delegates.c: Rebuild.
5763 * target.c (update_current_target): Don't inherit or default
5764 to_insert_exec_catchpoint.
5765 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5766 TARGET_DEFAULT_RETURN.
5768 2014-02-19 Tom Tromey <tromey@redhat.com>
5770 * target-delegates.c: Rebuild.
5771 * target.c (update_current_target): Don't inherit or default
5772 to_remove_vfork_catchpoint.
5773 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5774 TARGET_DEFAULT_RETURN.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.c (update_current_target): Don't inherit or default
5780 to_insert_vfork_catchpoint.
5781 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5782 TARGET_DEFAULT_RETURN.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target-delegates.c: Rebuild.
5787 * target.c (update_current_target): Don't inherit or default
5788 to_remove_fork_catchpoint.
5789 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5790 TARGET_DEFAULT_RETURN.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target-delegates.c: Rebuild.
5795 * target.c (update_current_target): Don't inherit or default
5796 to_insert_fork_catchpoint.
5797 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5798 TARGET_DEFAULT_RETURN.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target-delegates.c: Rebuild.
5803 * target.c (update_current_target): Don't inherit or default
5804 to_post_startup_inferior.
5805 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5806 TARGET_DEFAULT_IGNORE.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (update_current_target): Don't inherit or default
5813 * target.h (struct target_ops) <to_load>: Use
5814 TARGET_DEFAULT_NORETURN.
5816 2014-02-19 Tom Tromey <tromey@redhat.com>
5818 * target-delegates.c: Rebuild.
5819 * target.c (update_current_target): Don't inherit or default
5821 * target.h (struct target_ops) <to_terminal_info>: Use
5822 TARGET_DEFAULT_FUNC.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * target-delegates.c: Rebuild.
5827 * target.c (update_current_target): Don't inherit or default
5828 to_terminal_save_ours.
5829 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5830 TARGET_DEFAULT_IGNORE.
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target-delegates.c: Rebuild.
5835 * target.c (update_current_target): Don't inherit or default
5837 * target.h (struct target_ops) <to_terminal_ours>: Use
5838 TARGET_DEFAULT_IGNORE.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target-delegates.c: Rebuild.
5843 * target.c (update_current_target): Don't inherit or default
5844 to_terminal_ours_for_output.
5845 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5846 TARGET_DEFAULT_IGNORE.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target-delegates.c: Rebuild.
5851 * target.c (update_current_target): Don't inherit or default
5852 to_terminal_inferior.
5853 * target.h (struct target_ops) <to_terminal_inferior>: Use
5854 TARGET_DEFAULT_IGNORE.
5856 2014-02-19 Tom Tromey <tromey@redhat.com>
5858 * target-delegates.c: Rebuild.
5859 * target.c (update_current_target): Don't inherit or default
5861 * target.h (struct target_ops) <to_terminal_init>: Use
5862 TARGET_DEFAULT_IGNORE.
5864 2014-02-19 Tom Tromey <tromey@redhat.com>
5866 * target-delegates.c: Rebuild.
5867 * target.c (update_current_target): Don't inherit or default
5868 to_can_accel_watchpoint_condition.
5869 * target.h (struct target_ops)
5870 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5872 2014-02-19 Tom Tromey <tromey@redhat.com>
5874 * target-delegates.c: Rebuild.
5875 * target.c (update_current_target): Don't inherit or default
5876 to_region_ok_for_hw_watchpoint.
5877 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5878 Use TARGET_DEFAULT_FUNC.
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target-delegates.c: Rebuild.
5883 * target.c (update_current_target): Don't inherit or default
5884 to_watchpoint_addr_within_range.
5885 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5886 Use TARGET_DEFAULT_FUNC.
5888 2014-02-19 Tom Tromey <tromey@redhat.com>
5890 * target-delegates.c: Rebuild.
5891 * target.c (update_current_target): Don't inherit or default
5892 to_remove_watchpoint.
5893 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5894 TARGET_DEFAULT_NORETURN.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target-delegates.c: Rebuild.
5899 * target.c (update_current_target): Don't inherit or default
5900 to_insert_watchpoint.
5901 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5902 TARGET_DEFAULT_RETURN.
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target-delegates.c: Rebuild.
5907 * target.c (update_current_target): Don't inherit or default
5908 to_remove_hw_breakpoint.
5909 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5910 TARGET_DEFAULT_RETURN.
5912 2014-02-19 Tom Tromey <tromey@redhat.com>
5914 * target-delegates.c: Rebuild.
5915 * target.c (update_current_target): Don't inherit or default
5916 to_insert_hw_breakpoint.
5917 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5918 TARGET_DEFAULT_RETURN.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * target-delegates.c: Rebuild.
5923 * target.c (update_current_target): Don't inherit or default
5924 to_can_use_hw_breakpoint.
5925 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5926 TARGET_DEFAULT_RETURN.
5928 2014-02-19 Tom Tromey <tromey@redhat.com>
5930 * target-delegates.c: Rebuild.
5931 * target.c (update_current_target): Don't inherit or default
5933 * target.h (struct target_ops) <to_files_info>: Use
5934 TARGET_DEFAULT_IGNORE.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (update_current_target): Don't inherit or default
5941 * target.h (struct target_ops) <to_store>: Use
5942 TARGET_DEFAULT_NORETURN.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target-delegates.c: Rebuild.
5947 * target.c (update_current_target): Don't inherit or default
5949 * target.h (struct target_ops) <to_post_attach>: Use
5950 TARGET_DEFAULT_IGNORE.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target-delegates.c: Rebuild.
5955 * target.c (update_current_target): Don't inherit or default
5957 (default_rcmd): New function.
5958 (do_monitor_command): Unconditionally delegate.
5959 * target.h (struct target_ops) <to_rmcd>: Use
5960 TARGET_DEFAULT_FUNC.
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target-delegates.c: Rebuild.
5965 * target.c (init_dummy_target): Don't initialize to_attach.
5966 (target_attach): Unconditionally delegate.
5967 * target.h (struct target_ops) <to_attach>: Use
5968 TARGET_DEFAULT_FUNC.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target-delegates.c: Rebuild.
5973 * target.c (target_detach): Unconditionally delegate.
5974 (init_dummy_target): Don't initialize to_detach.
5975 * target.h (struct target_ops) <to_detach>: Use
5976 TARGET_DEFAULT_IGNORE.
5978 2014-02-19 Tom Tromey <tromey@redhat.com>
5980 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5982 (target_augmented_libraries_svr4_read): Add argument.
5983 * target.c (update_current_target): Update.
5984 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5987 2014-02-19 Tom Tromey <tromey@redhat.com>
5989 * target.h (struct target_ops) <to_call_history_range>: Add
5991 * target.c (target_call_history_range): Add argument.
5992 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5994 (record_btrace_call_history_from): Update.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * target.h (struct target_ops) <to_call_history_from>: Add
6000 * target.c (target_call_history_from): Add argument.
6001 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target.h (struct target_ops) <to_call_history>: Add argument.
6007 * target.c (target_call_history): Add argument.
6008 * record-btrace.c (record_btrace_call_history): Add 'self'
6011 2014-02-19 Tom Tromey <tromey@redhat.com>
6013 * target.h (struct target_ops) <to_insn_history_range>: Add
6015 * target.c (target_insn_history_range): Add argument.
6016 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6018 (record_btrace_insn_history_from): Update.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target.h (struct target_ops) <to_insn_history_from>: Add
6024 * target.c (target_insn_history_from): Add argument.
6025 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target.h (struct target_ops) <to_insn_history>: Add argument.
6031 * target.c (target_insn_history): Add argument.
6032 * record-btrace.c (record_btrace_insn_history): Add 'self'
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_goto_record>: Add argument.
6038 * target.c (target_goto_record): Add argument.
6039 * record-full.c (record_full_goto): Add 'self' argument.
6040 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6045 * target.c (target_goto_record_end): Add argument.
6046 * record-full.c (record_full_goto_end): Add 'self' argument.
6047 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target.h (struct target_ops) <to_goto_record_begin>: Add
6053 * target.c (target_goto_record_begin): Add argument.
6054 * record-full.c (record_full_goto_begin): Add 'self' argument.
6055 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target.h (struct target_ops) <to_record_is_replaying>: Add
6062 * target.c (target_record_is_replaying): Add argument.
6063 * record-full.c (record_full_is_replaying): Add 'self' argument.
6064 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6066 (record_btrace_xfer_partial, record_btrace_store_registers)
6067 (record_btrace_prepare_to_store, record_btrace_resume)
6068 (record_btrace_wait, record_btrace_decr_pc_after_break)
6069 (record_btrace_find_new_threads, record_btrace_thread_alive):
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target.h (struct target_ops) <to_delete_record>: Add argument.
6075 * target.c (target_delete_record): Add argument.
6076 * record-full.c (record_full_delete): Add 'self' argument.
6078 2014-02-19 Tom Tromey <tromey@redhat.com>
6080 * target.h (struct target_ops) <to_save_record>: Add argument.
6081 * target.c (target_save_record): Add argument.
6082 * record-full.c (record_full_save): Add 'self' argument.
6083 (record_full_save): Add 'self' argument.
6085 2014-02-19 Tom Tromey <tromey@redhat.com>
6087 * target.h (struct target_ops) <to_info_record>: Add argument.
6088 * target.c (target_info_record): Add argument.
6089 * record.c (info_record_command): Add argument.
6090 * record-full.c (record_full_info): Add 'self' argument.
6091 * record-btrace.c (record_btrace_info): Add 'self' argument.
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6096 * target.c (target_stop_recording): Add argument.
6097 * record.c (record_stop): Add argument.
6098 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6104 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6105 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6107 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6108 (_initialize_amd64_linux_nat): Use it.
6109 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6110 (_initialize_i386_linux_nat): Use it.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6115 * target.c (target_teardown_btrace): Add argument.
6116 * remote.c (remote_teardown_btrace): Add 'self' argument.
6117 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6119 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6125 * target.c (target_disable_btrace): Add argument.
6126 * remote.c (remote_disable_btrace): Add 'self' argument.
6127 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6129 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6132 2014-02-19 Tom Tromey <tromey@redhat.com>
6134 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6135 * target.c (target_enable_btrace): Add argument.
6136 * remote.c (remote_enable_btrace): Add 'self' argument.
6137 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6139 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6144 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6145 (target_can_use_agent): Add argument.
6146 * target.c (update_current_target): Update.
6147 * remote.c (remote_can_use_agent): Add 'self' argument.
6148 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_use_agent>: Add argument.
6153 (target_use_agent): Add argument.
6154 * target.c (update_current_target): Update.
6155 * remote.c (remote_use_agent): Add 'self' argument.
6156 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6158 2014-02-19 Tom Tromey <tromey@redhat.com>
6160 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6161 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6162 (target_traceframe_info): Add argument.
6163 * target.c (update_current_target): Update.
6164 * remote.c (remote_traceframe_info): Add 'self' argument.
6165 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6167 2014-02-19 Tom Tromey <tromey@redhat.com>
6169 * target.h (target_static_tracepoint_markers_by_strid): Add
6171 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6173 * target.c (update_current_target): Update.
6174 * remote.c (struct target_ops)
6175 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6176 * linux-nat.c (struct target_ops)
6177 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6183 (target_static_tracepoint_marker_at): Add argument.
6184 * target.c (update_current_target): Update.
6185 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6188 2014-02-19 Tom Tromey <tromey@redhat.com>
6190 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6191 (target_set_permissions): Add argument.
6192 * target.c (update_current_target): Update.
6193 * remote.c (remote_set_permissions): Add 'self' argument.
6194 (remote_start_remote): Update.
6196 2014-02-19 Tom Tromey <tromey@redhat.com>
6198 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6199 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6200 (target_get_tib_address): Add argument.
6201 * target.c (update_current_target): Update.
6202 * remote.c (remote_get_tib_address): Add 'self' argument.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6207 (target_set_trace_notes): Add argument.
6208 * target.c (update_current_target): Update.
6209 * remote.c (remote_set_trace_notes): Add 'self' argument.
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6215 (target_set_trace_buffer_size): Add argument.
6216 * target.c (update_current_target): Update.
6217 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6223 (target_set_circular_trace_buffer): Add argument.
6224 * target.c (update_current_target): Update.
6225 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6232 (target_set_disconnected_tracing): Add argument.
6233 * target.c (update_current_target): Update.
6234 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6236 2014-02-19 Tom Tromey <tromey@redhat.com>
6238 * target.h (struct target_ops)
6239 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6240 (target_get_min_fast_tracepoint_insn_len): Add argument.
6241 * target.c (update_current_target): Update.
6242 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6249 (target_get_raw_trace_data): Add argument.
6250 * target.c (update_current_target): Update.
6251 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6257 (target_upload_trace_state_variables): Add argument.
6258 * target.c (update_current_target): Update.
6259 * remote.c (remote_upload_trace_state_variables): Add 'self'
6261 (remote_start_remote): Update.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6267 (target_upload_tracepoints): Add argument.
6268 * target.c (update_current_target): Update.
6269 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6270 (remote_start_remote): Update.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6275 (target_save_trace_data): Add argument.
6276 * target.c (update_current_target): Update.
6277 * remote.c (remote_save_trace_data): Add 'self' argument.
6279 2014-02-19 Tom Tromey <tromey@redhat.com>
6281 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6283 * target.h (struct target_ops)
6284 <to_get_trace_state_variable_value>: Add argument.
6285 (target_get_trace_state_variable_value): Add argument.
6286 * target.c (update_current_target): Update.
6287 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6289 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6294 * target.h (struct target_ops) <to_trace_find>: Add argument.
6295 (target_trace_find): Add argument.
6296 * target.c (update_current_target): Update.
6297 * remote.c (remote_trace_find): Add 'self' argument.
6298 * ctf.c (ctf_trace_find): Add 'self' argument.
6300 2014-02-19 Tom Tromey <tromey@redhat.com>
6302 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6303 (target_trace_stop): Add argument.
6304 * target.c (update_current_target): Update.
6305 * remote.c (remote_trace_stop): Add 'self' argument.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6310 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6312 (target_get_tracepoint_status): Add argument.
6313 * target.c (update_current_target): Update.
6314 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6316 2014-02-19 Tom Tromey <tromey@redhat.com>
6318 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6319 * target.h (struct target_ops) <to_get_trace_status>: Add
6321 (target_get_trace_status): Add argument.
6322 * target.c (update_current_target): Update.
6323 * remote.c (remote_get_trace_status): Add 'self' argument.
6324 (remote_start_remote, remote_can_download_tracepoint): Update.
6325 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target.h (struct target_ops) <to_trace_start>: Add argument.
6330 (target_trace_start): Add argument.
6331 * target.c (update_current_target): Update.
6332 * remote.c (remote_trace_start): Add 'self' argument.
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6338 (target_trace_set_readonly_regions): Add argument.
6339 * target.c (update_current_target): Update.
6340 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6347 (target_disable_tracepoint): Add argument.
6348 * target.c (update_current_target): Update.
6349 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6355 (target_enable_tracepoint): Add argument.
6356 * target.c (update_current_target): Update.
6357 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target.h (struct target_ops) <to_download_trace_state_variable>:
6363 (target_download_trace_state_variable): Add argument.
6364 * target.c (update_current_target): Update.
6365 * remote.c (remote_download_trace_state_variable): Add 'self'
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6372 (target_can_download_tracepoint): Add argument.
6373 * target.c (update_current_target): Update.
6374 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target.h (struct target_ops) <to_download_tracepoint>: Add
6380 (target_download_tracepoint): Add argument.
6381 * target.c (update_current_target): Update.
6382 * remote.c (remote_download_tracepoint): Add 'self' argument.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target.h (struct target_ops) <to_trace_init>: Add argument.
6387 (target_trace_init): Add argument.
6388 * target.c (update_current_target): Update.
6389 * remote.c (remote_trace_init): Add 'self' argument.
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6394 * target.c (target_fileio_readlink): Add argument.
6395 * remote.c (remote_hostio_readlink): Add 'self' argument.
6396 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6401 * target.c (target_fileio_unlink): Add argument.
6402 * remote.c (remote_hostio_unlink): Add 'self' argument.
6403 (remote_file_delete): Update.
6404 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6409 * target.c (target_fileio_close): Add argument.
6410 * remote.c (remote_hostio_close): Add 'self' argument.
6411 (remote_hostio_close_cleanup): Update.
6412 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6414 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6416 2014-02-19 Tom Tromey <tromey@redhat.com>
6418 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6419 * target.c (target_fileio_pread): Add argument.
6420 * remote.c (remote_hostio_pread): Add 'self' argument.
6421 (remote_bfd_iovec_pread, remote_file_get): Update.
6422 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6427 * target.c (target_fileio_pwrite): Add argument.
6428 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6429 (remote_file_put): Update.
6430 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6435 * target.c (target_fileio_open): Add argument.
6436 * remote.c (remote_hostio_open): Add 'self' argument.
6437 (remote_bfd_iovec_open): Add 'self' argument.
6438 (remote_file_put): Add 'self' argument.
6439 (remote_file_get): Add 'self' argument.
6440 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6446 (target_can_run_breakpoint_commands): Add argument.
6447 * target.c (update_current_target): Update.
6448 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6450 (remote_insert_breakpoint): Add 'self' argument.
6451 (remote_insert_hw_breakpoint): Add 'self' argument.
6452 (remote_can_run_breakpoint_commands): Add 'self' argument.
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target.h (struct target_ops)
6457 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6458 (target_supports_evaluation_of_breakpoint_conditions): Add
6460 * target.c (update_current_target): Update.
6461 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6463 (remote_insert_breakpoint): Add 'self' argument.
6464 (remote_insert_hw_breakpoint): Add 'self' argument.
6465 (remote_supports_cond_breakpoints): Add 'self' argument.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6471 (target_supports_string_tracing): Add argument.
6472 * target.c (update_current_target): Update.
6473 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6475 2014-02-19 Tom Tromey <tromey@redhat.com>
6477 * target.h (struct target_ops)
6478 <to_supports_disable_randomization>: Add argument.
6479 * target.c (find_default_supports_disable_randomization): Add
6481 (target_supports_disable_randomization): Add argument.
6482 (find_default_supports_disable_randomization): Add 'self'
6484 * remote.c (extended_remote_supports_disable_randomization): Add
6486 (remote_supports_disable_randomization): Add 'self' argument.
6487 (extended_remote_create_inferior): Update.
6488 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6493 * target.h (struct target_ops)
6494 <to_supports_enable_disable_tracepoint>: Add argument.
6495 (target_supports_enable_disable_tracepoint): Add argument.
6496 * target.c (update_current_target): Update.
6497 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6500 2014-02-19 Tom Tromey <tromey@redhat.com>
6502 * target.h (struct target_ops) <to_supports_multi_process>: Add
6504 (target_supports_multi_process): Add argument.
6505 * target.c (update_current_target): Update.
6506 * remote.c (remote_supports_multi_process): Add 'self' argument.
6507 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6509 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6512 2014-02-19 Tom Tromey <tromey@redhat.com>
6514 * target.h (struct target_ops) <to_execution_direction>: Add
6516 (target_execution_direction): Add argument.
6517 * target.c (default_execution_direction): Add 'self' argument.
6518 * record-full.c (record_full_execution_direction): Add 'self'
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6523 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6525 (target_can_execute_reverse): Add argument.
6526 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6527 * record-full.c (record_full_can_execute_reverse): Add 'self'
6529 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6535 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6537 (target_get_ada_task_ptid): Add argument.
6538 * target.c (update_current_target): Update.
6539 (default_get_ada_task_ptid): Add 'self' argument.
6540 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6541 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6542 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6544 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6546 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6548 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6550 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6551 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6557 (target_goto_bookmark): Add argument.
6558 * target.c (dummy_goto_bookmark): Add 'self' argument.
6559 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6561 2014-02-19 Tom Tromey <tromey@redhat.com>
6563 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6564 (target_get_bookmark): Add argument.
6565 * target.c (dummy_get_bookmark): Add 'self' argument.
6566 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6572 (target_make_corefile_notes): Add argument.
6573 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6574 * procfs.c (procfs_make_note_section): Add 'self' argument.
6575 (procfs_make_note_section): Add 'self' argument.
6576 (procfs_make_note_section): Add 'self' argument.
6577 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6579 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6580 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6581 * exec.c (exec_make_note_section): Add 'self' argument.
6582 (exec_make_note_section): Add 'self' argument.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target.h (struct target_ops) <to_find_memory_regions>: Add
6588 (target_find_memory_regions): Add argument.
6589 * target.c (dummy_find_memory_regions): Add 'self' argument.
6590 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6591 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6592 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6593 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6594 * exec. (exec_do_find_memory_regions): New global.
6595 (exec_set_find_memory_regions): Rewrite.
6596 (exec_find_memory_regions): New function.
6597 (init_exec_ops): Use exec_find_memory_regions.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target.h (struct target_ops) <to_supports_non_stop>: Add
6603 * target.c (find_default_supports_non_stop): Add argument.
6604 (target_supports_non_stop): Add argument.
6605 (find_default_supports_non_stop): Add 'self' argument.
6606 * remote.c (remote_supports_non_stop): Add 'self' argument.
6607 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6609 2014-02-19 Tom Tromey <tromey@redhat.com>
6611 * target.h (struct target_ops) <to_log_command>: Add argument.
6612 (target_log_command): Add argument.
6613 * serial.h (serial_log_command): Add 'self' argument.
6614 * serial.c (serial_log_command): Add 'self' argument.
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6618 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6619 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6621 (target_pid_to_exec_file): Add argument.
6622 * target.c (debug_to_pid_to_exec_file): Add argument.
6623 (update_current_target): Update.
6624 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6625 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6626 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6627 (linux_handle_extended_wait): Update.
6628 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6629 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6630 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6631 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6633 2014-02-19 Tom Tromey <tromey@redhat.com>
6635 * target.h (struct target_ops) <to_rcmd>: Add argument.
6636 (target_rcmd): Add argument.
6637 * target.c (debug_to_rcmd): Add argument.
6638 (update_current_target, do_monitor_command): Update.
6639 * remote.c (remote_rcmd): Add 'self' argument.
6640 * monitor.c (monitor_rcmd): Add 'self' argument.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * windows-nat.c (windows_stop): Add 'self' argument.
6645 * target.h (struct target_ops) <to_stop>: Add argument.
6646 * target.c (target_stop): Add argument.
6647 (debug_to_stop): Add argument.
6648 (update_current_target): Update.
6649 * remote.c (remote_stop): Add 'self' argument.
6650 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6651 (gdbsim_cntrl_c): Update.
6652 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6653 * procfs.c (procfs_stop): Add 'self' argument.
6654 * nto-procfs.c (procfs_stop): Add 'self' argument.
6655 * monitor.c (monitor_stop): Add 'self' argument.
6656 (monitor_open): Update.
6657 * linux-nat.c (linux_nat_stop): Add argument.
6658 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6659 * gnu-nat.c (gnu_stop): Add 'self' argument.
6660 * darwin-nat.c (darwin_stop): Add 'self' argument.
6662 2014-02-19 Tom Tromey <tromey@redhat.com>
6664 * target.h (struct target_ops) <to_thread_name>: Add argument.
6665 * target.c (target_thread_name): Add argument.
6666 (update_current_target): Update.
6667 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6669 2014-02-19 Tom Tromey <tromey@redhat.com>
6671 * target.h (struct target_ops) <to_extra_thread_info>: Add
6673 (target_extra_thread_info): Add argument.
6674 * target.c (update_current_target): Update.
6675 * remote.c (remote_threads_extra_info): Add 'self' argument.
6676 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6678 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6679 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6680 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6682 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6684 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6686 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target.h (struct target_ops) <to_program_signals>: Add argument.
6692 * target.c (target_program_signals): Add argument.
6693 * remote.c (remote_program_signals): Add 'self' argument.
6695 2014-02-19 Tom Tromey <tromey@redhat.com>
6697 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6698 * target.c (target_pass_signals): Add argument.
6699 * remote.c (remote_pass_signals): Add 'self' argument.
6700 (remote_start_remote): Update.
6701 * procfs.c (procfs_pass_signals): Add 'self' argument.
6702 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6703 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6704 (linux_nat_create_inferior, linux_nat_attach): Update.
6706 2014-02-19 Tom Tromey <tromey@redhat.com>
6708 * windows-nat.c (windows_can_run): Add 'self' argument.
6709 * target.h (struct target_ops) <to_can_run>: Add argument.
6710 (target_can_run): Add argument.
6711 * target.c (debug_to_can_run): Add argument.
6712 (update_current_target): Update.
6713 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6714 * inf-child.c (inf_child_can_run): Add 'self' argument.
6715 * go32-nat.c (go32_can_run): Add 'self' argument.
6717 2014-02-19 Tom Tromey <tromey@redhat.com>
6719 * target.h (struct target_ops) <to_has_exited>: Add argument.
6720 (target_has_exited): Add argument.
6721 * target.c (debug_to_has_exited): Add argument.
6722 (update_current_target): Update.
6724 2014-02-19 Tom Tromey <tromey@redhat.com>
6726 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6728 (target_set_syscall_catchpoint): Add argument.
6729 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6731 * target.c (update_current_target): Update.
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6737 (target_remove_exec_catchpoint): Add argument.
6738 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6739 (update_current_target): Update.
6740 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6743 2014-02-19 Tom Tromey <tromey@redhat.com>
6745 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6747 (target_insert_exec_catchpoint): Add argument.
6748 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6749 (update_current_target): Update.
6750 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6757 (target_remove_vfork_catchpoint): Add argument.
6758 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6759 (update_current_target): Update.
6760 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6767 (target_insert_vfork_catchpoint): Add argument.
6768 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6769 (update_current_target): Update.
6770 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6773 2014-02-19 Tom Tromey <tromey@redhat.com>
6775 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6777 (target_remove_fork_catchpoint): Add argument.
6778 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6779 (update_current_target): Update.
6780 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6783 2014-02-19 Tom Tromey <tromey@redhat.com>
6785 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6787 (target_insert_fork_catchpoint): Add argument.
6788 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6789 (update_current_target): Update.
6790 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6797 (target_post_startup_inferior): Add argument.
6798 * target.c (debug_to_post_startup_inferior): Add argument.
6799 (update_current_target): Update.
6800 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6802 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6804 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6806 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6808 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6810 (super_post_startup_inferior): Likewise.
6811 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6813 (super_post_startup_inferior): Likewise.
6814 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6815 Add 'self' argument.
6816 (super_post_startup_inferior): Likewise.
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6820 * target.h (struct target_ops) <to_load>: Add argument.
6821 * target.c (target_load): Add argument.
6822 (debug_to_load): Add argument.
6823 (update_current_target): Update.
6824 * remote.c (remote_load): Add 'self' argument.
6825 * remote-sim.c (gdbsim_load): Add 'self' argument.
6826 * remote-mips.c (mips_load): Add 'self' argument.
6827 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6828 * monitor.c (monitor_load): Add 'self' argument.
6829 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6831 2014-02-19 Tom Tromey <tromey@redhat.com>
6833 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6834 (target_terminal_info): Add argument.
6835 * target.c (debug_to_terminal_info): Add argument.
6836 (default_terminal_info): Likewise.
6837 * inflow.c (child_terminal_info): Add 'self' argument.
6838 * inferior.h (child_terminal_info): Add 'self' argument.
6839 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6845 (target_terminal_save_ours): Add argument.
6846 * target.c (debug_to_terminal_save_ours): Add argument.
6847 (update_current_target): Update.
6848 * inflow.c (terminal_save_ours): Add 'self' argument.
6849 * inferior.h (terminal_save_ours): Add 'self' argument.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6854 (target_terminal_ours): Add argument.
6855 * target.c (debug_to_terminal_ours): Add argument.
6856 (update_current_target): Update.
6857 * remote.c (remote_terminal_ours): Add 'self' argument.
6858 (remote_close): Update.
6859 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6860 * inflow.c (terminal_ours): Add 'self' argument.
6861 * inferior.h (terminal_ours): Add 'self' argument.
6862 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6864 2014-02-19 Pedro Alves <palves@redhat.com>
6865 Tom Tromey <tromey@redhat.com>
6867 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6869 (target_terminal_ours_for_output): Add argument.
6870 * target.c (debug_to_terminal_ours_for_output): Add argument.
6871 (update_current_target): Update.
6872 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6873 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6874 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6878 * target.h (struct target_ops) <to_terminal_inferior>: Add
6880 * target.c (target_terminal_inferior): Add argument.
6881 (update_current_target): Update.
6882 * remote.c (remote_terminal_inferior): Add 'self' argument.
6883 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6884 * inflow.c (terminal_inferior): Add 'self' argument.
6885 * inferior.h (terminal_inferior): Add 'self' argument.
6886 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6887 (go32_terminal_inferior): Add 'self' argument.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6892 (target_terminal_init): Add argument.
6893 * target.c (debug_to_terminal_init): Add argument.
6894 (update_current_target): Update.
6895 * inflow.c (terminal_init_inferior): Add 'self' argument.
6896 * inferior.h (terminal_init_inferior): Add 'self' argument.
6897 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6898 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6900 2014-02-19 Tom Tromey <tromey@redhat.com>
6902 * target.h (struct target_ops)
6903 <to_can_accel_watchpoint_condition>: Add argument.
6904 (target_can_accel_watchpoint_condition): Add argument.
6905 * target.c (debug_to_can_accel_watchpoint_condition): Add
6907 (update_current_target): Update.
6908 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6911 2014-02-19 Tom Tromey <tromey@redhat.com>
6913 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6915 (target_region_ok_for_hw_watchpoint): Add argument.
6916 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6917 (default_region_ok_for_hw_watchpoint): Add argument.
6918 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6919 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6921 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6923 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6925 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6927 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6929 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6931 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6932 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6934 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6935 Add 'self' argument.
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6941 (target_insert_watchpoint): Add argument.
6942 * target.c (debug_to_insert_watchpoint): Add argument.
6943 (update_current_target): Update.
6944 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6945 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6946 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6947 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6948 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6949 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6951 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6952 (procfs_insert_hw_watchpoint): Add 'self' argument.
6953 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6955 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6957 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6959 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6960 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6962 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6969 (target_remove_watchpoint): Add argument.
6970 * target.c (debug_to_remove_watchpoint): Add argument.
6971 (update_current_target): Update.
6972 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6973 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6974 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6975 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6976 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6977 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6979 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6980 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6982 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6984 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6986 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6987 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6989 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6992 2014-02-19 Tom Tromey <tromey@redhat.com>
6994 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6996 (target_remove_hw_breakpoint): Add argument.
6997 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6998 (update_current_target): Update.
6999 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7000 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7002 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7003 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7005 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7012 (target_insert_hw_breakpoint): Add argument.
7013 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7014 (update_current_target): Update.
7015 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7016 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7018 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7019 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7020 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7022 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7025 2014-02-19 Tom Tromey <tromey@redhat.com>
7027 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7029 (target_can_use_hardware_watchpoint): Add argument.
7030 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7031 (update_current_target): Update.
7032 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7034 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7036 * remote.c (remote_check_watch_resources): Add 'self' argument.
7037 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7038 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7040 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7041 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7043 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7045 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7047 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7049 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7051 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7053 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7054 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7056 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7059 2014-02-19 Tom Tromey <tromey@redhat.com>
7061 * target.h (struct target_ops) <to_post_attach>: Add argument.
7062 (target_post_attach): Add argument.
7063 * target.c (debug_to_post_attach): Add argument.
7064 (update_current_target): Update.
7065 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7066 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7067 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7068 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7069 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7071 2014-02-19 Tom Tromey <tromey@redhat.com>
7073 * windows-nat.c (windows_close): Add 'self' argument.
7074 * tracepoint.c (tfile_close): Add 'self' argument.
7075 * target.h (struct target_ops) <to_close>: Add argument.
7076 * target.c (target_close): Add argument.
7077 (update_current_target): Update.
7078 * remote.c (remote_close): Add 'self' argument.
7079 * remote-sim.c (gdbsim_close): Add 'self' argument.
7080 * remote-mips.c (mips_close): Add 'self' argument.
7081 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7082 * record-full.c (record_full_close): Add 'self' argument.
7083 * record-btrace.c (record_btrace_close): Add 'self' argument.
7084 * monitor.h (monitor_close): Add 'self' argument.
7085 * monitor.c (monitor_close): Add 'self' argument.
7086 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7087 * linux-nat.c (linux_nat_close): Add argument.
7088 * go32-nat.c (go32_close): Add 'self' argument.
7089 * exec.c (exec_close_1): Add 'self' argument.
7090 * ctf.c (ctf_close): Add 'self' argument.
7091 * corelow.c (core_close): Add 'self' argument.
7092 (core_close_cleanup): Update.
7093 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7094 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7096 2014-02-19 Tom Tromey <tromey@redhat.com>
7098 * remote.c (remote_load): New function.
7099 (init_remote_ops): Use it.
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7103 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7105 * common/linux-btrace.h (linux_supports_btrace): Update.
7106 * remote.c (remote_supports_btrace): Add "self" argument.
7107 * target-delegates.c: Rebuild.
7108 * target.c (target_supports_btrace): Remove.
7109 * target.h (struct target_ops) <to_supports_btrace>: Add
7110 target_ops argument.
7111 (target_supports_btrace): New define.
7113 2014-02-19 Tom Tromey <tromey@redhat.com>
7115 * record-full.c (record_full_beneath_to_resume_ops)
7116 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7117 (record_full_beneath_to_wait)
7118 (record_full_beneath_to_store_registers_ops)
7119 (record_full_beneath_to_store_registers)
7120 (record_full_beneath_to_xfer_partial_ops)
7121 (record_full_beneath_to_xfer_partial)
7122 (record_full_beneath_to_insert_breakpoint_ops)
7123 (record_full_beneath_to_insert_breakpoint)
7124 (record_full_beneath_to_remove_breakpoint_ops)
7125 (record_full_beneath_to_remove_breakpoint)
7126 (record_full_beneath_to_stopped_by_watchpoint)
7127 (record_full_beneath_to_stopped_data_address)
7128 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7129 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7130 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7131 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7132 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7133 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7134 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7135 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7136 (record_full_resume, record_full_wait_1)
7137 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7138 (record_full_store_registers, record_full_xfer_partial)
7139 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7140 (record_full_async, record_full_core_xfer_partial): Use target
7142 * target-delegates.c: Rebuild.
7143 * target.c (current_xfer_partial): Remove.
7144 (update_current_target): Do not INHERIT or de_fault
7145 to_insert_breakpoint, to_remove_breakpoint,
7146 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7147 to_is_async_p, to_async. Do not set to_xfer_partial field.
7148 (default_xfer_partial): Simplify.
7149 (current_xfer_partial): Remove.
7150 (target_wait, target_resume): Simplify.
7151 (find_default_can_async_p, find_default_is_async_p): Update.
7152 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7153 to_xfer_partial, to_stopped_by_watchpoint,
7154 to_stopped_data_address.
7155 (target_store_registers): Simplify.
7156 (forward_target_remove_breakpoint)
7157 (forward_target_insert_breakpoint): Remove.
7158 (target_remove_breakpoint, target_insert_breakpoint)
7159 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7160 * target.h (struct target_ops) <to_resume, to_wait,
7161 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7162 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7163 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7165 (forward_target_remove_breakpoint)
7166 (forward_target_insert_breakpoint): Remove.
7167 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7169 (record_btrace_insert_breakpoint): Delegate directly.
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7174 * target-delegates.c: New file.
7175 * target.c: Include target-delegates.c.
7176 (init_dummy_target): Call install_dummy_methods.
7177 (complete_target_initialization): Call install_delegators.
7178 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7179 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7180 * make-target-delegates: New file.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * record.c (find_record_target): Use find_target_at.
7185 * target.c (find_target_at): New function.
7186 * target.h (find_target_at): Declare.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7192 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7194 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7195 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7197 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7199 * linux-nat.c (save_sigtrap): Update.
7200 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7201 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7202 (linux_nat_close): Update.
7203 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7205 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7207 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7208 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7209 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7210 (tmp_to_async): Add 'ops' argument.
7211 (record_full_stopped_by_watchpoint, record_full_async)
7212 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7214 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7215 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7216 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7217 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7218 (remote_is_async_p, remote_async): Add 'ops' argument.
7219 (remote_stopped_data_address): Update.
7220 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7221 * target.c (update_current_target)
7222 (find_default_can_async_p, find_default_is_async_p): Update.
7223 (init_dummy_target): Update.
7224 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7225 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7226 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7227 (target_can_async_p, target_is_async_p, target_async)
7228 (target_stopped_by_watchpoint): Update.
7230 2014-02-19 Yao Qi <yao@codesourcery.com>
7233 * gdbarch.sh: Remove startup_gdbarch.
7234 * gdbarch.c: Regenerated.
7235 * gdbarch.h: Likewise.
7237 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7239 * rl78-tdep.c (rl78_g10_register_name): New function.
7240 (rl78_return_value): Add g10 support.
7241 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7244 2014-02-17 Doug Evans <xdje42@gmail.com>
7246 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7247 (SUBDIR_GUILE_SRCS): Ditto.
7248 (scm-gsmob.o): Ditto.
7250 2014-02-17 Yao Qi <yao@codesourcery.com>
7252 * gnu-nat.c (ILL_RPC): Declare defined function.
7254 2014-02-17 Yao Qi <yao@codesourcery.com>
7256 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7257 mach_msg_type_number_t.
7258 (gnu_write_inferior): Likewise.
7260 2014-02-17 Yao Qi <yao@codesourcery.com>
7262 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7264 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7265 (inf_validate_procs, inf_signal): Likewise.
7266 (S_exception_raise_request): Likewise.
7267 (do_mach_notify_dead_name): Likewise.
7268 (steal_exc_port): Likewise.
7269 (gnu_read_inferior): Change 'copy_count''s type to
7270 mach_msg_type_number_t.
7271 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7274 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7276 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7277 flag. Adjust all users; in particular...
7278 (gnu_wait): ..., don't decrement its value in here...
7279 (gnu_create_inferior): ..., and instead set the flag in here,
7280 around the startup_inferior call, and call that one with
7281 START_INFERIOR_TRAPS_EXPECTED.
7283 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7284 (ILL_RPC): ... new macro.
7285 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7286 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7287 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7288 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7289 functions with ILL_RPC macro.
7290 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7291 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7292 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7293 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7294 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7295 (S_proc_getlogin_reply, S_proc_getsid_reply)
7296 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7297 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7298 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7299 (S_proc_getnports_reply, S_proc_is_important_reply)
7300 (S_proc_get_code_reply): New stub functions, generated with
7303 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7304 collected the type check structures.
7306 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7308 2014-02-14 Doug Evans <dje@google.com>
7310 * target.c (target_write_partial): Fix result type.
7312 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7314 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7315 the proper offsets to access fpregset_t.
7317 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7319 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7320 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7321 * h8300-tdep.c (setmachinelist): Remove global.
7322 * hppa-tdep.c (hppa_sigtramp): Remove global.
7323 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7324 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7325 * ravenscar-thread.c (update_target_observer): Remove global.
7326 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7328 2014-02-12 Tom Tromey <tromey@redhat.com>
7330 * common/rsp-low.c: Update comments.
7331 * common/rsp-low.h: Update comments.
7333 2014-02-12 Tom Tromey <tromey@redhat.com>
7335 * common/rsp-low.c (convert_ascii_to_int): Remove.
7336 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7338 2014-02-12 Tom Tromey <tromey@redhat.com>
7340 * common/rsp-low.h (unhexify): Don't declare.
7341 * common/rsp-low.c (unhexify): Remove.
7343 2014-02-12 Tom Tromey <tromey@redhat.com>
7345 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7346 * common/rsp-low.c (convert_int_to_ascii): Remove.
7348 2014-02-12 Tom Tromey <tromey@redhat.com>
7350 * common/rsp-low.h (hexify): Don't declare.
7351 * common/rsp-low.c (hexify): Remove.
7353 2014-02-12 Tom Tromey <tromey@redhat.com>
7355 * common/rsp-low.c (hexify): Never take strlen of argument.
7357 2014-02-12 Tom Tromey <tromey@redhat.com>
7359 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7360 * remote.c (extended_remote_run, remote_rcmd)
7361 (remote_download_trace_state_variable, remote_save_trace_data)
7362 (remote_set_trace_notes): Update.
7363 * tracepoint.c (encode_source_string, tfile_write_status)
7364 (tfile_write_uploaded_tsv): Update.
7366 2014-02-12 Tom Tromey <tromey@redhat.com>
7368 * tracepoint.c: Include rsp-low.h.
7369 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7370 * remote.c: Include rsp-low.h.
7371 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7372 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7373 (remote_unescape_input): Move to common/rsp-low.c.
7374 * common/rsp-low.h: New file.
7375 * common/rsp-low.c: New file.
7376 * Makefile.in (SFILES): Add common/rsp-low.c.
7377 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7378 (COMMON_OBS): Add rsp-low.o.
7379 (rsp-low.o): New target.
7381 2014-02-12 Tom Tromey <tromey@redhat.com>
7383 * utils.h: Include print-utils.h.
7384 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7385 (int_string, core_addr_to_string, core_addr_to_string_nz)
7386 (hex_string, hex_string_custom): Don't declare.
7387 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7388 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7389 (hex_string_custom, int_string, core_addr_to_string)
7390 (core_addr_to_string_nz, host_address_to_string): Move to
7391 common/print-utils.c.
7392 * common/print-utils.h: New file.
7393 * common/print-utils.c: New file
7394 * Makefile.in (SFILES): Add common/print-utils.c.
7395 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7396 (COMMON_OBS): Add print-utils.o.
7397 (print-utils.o): New target.
7399 2014-02-12 Tom Tromey <tromey@redhat.com>
7401 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7403 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7405 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7407 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7409 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7410 if a PT_IO ptrace request returns sucessfully but indicates that 0
7411 bytes were transferred.
7413 2014-02-12 Pedro Alves <palves@redhat.com>
7414 Kevin Buettner <kevinb@redhat.com>
7416 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7417 TYPE_INSTANCE_FLAG_CODE_SPACE.
7419 2014-02-12 Pedro Alves <palves@redhat.com>
7421 * h8300-tdep.c (pseudo_from_raw_register)
7422 (raw_from_pseudo_register): New functions.
7423 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7426 2014-02-12 Pedro Alves <palves@redhat.com>
7428 * h8300-tdep.c (h8300_register_sim_regno): New function.
7429 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7430 gdbarch_register_sim_regno hook.
7432 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7434 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7436 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7438 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7440 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7442 * obsd-tdep.h (obsd_init_abi): New prototype.
7443 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7444 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7445 (obsd_init_abi): New functions.
7446 * i386obsd-tdep.c: Include "obsd-tdep.h".
7447 (i386obsd_init_abi): Call obsd_init_abi.
7448 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7449 (amd64obsd_init_abi): Call obsd_init_abi.
7450 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7451 obsd-tdep.c to gdb_target_obs.
7453 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7455 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7456 double float arguments to 16-byte in the argument slots.
7458 2014-02-11 Doug Evans <xdje42@gmail.com>
7460 * configure.ac: Don't crash if pkg-config is not found and guile
7461 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7463 * configure: Regenerate.
7465 2014-02-11 Yao Qi <yao@codesourcery.com>
7467 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7468 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7469 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7470 * gnu-nat.c (gnu_xfer_memory): Likewise.
7471 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7472 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7473 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7474 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7476 2014-02-11 Yao Qi <yao@codesourcery.com>
7478 * target.h (enum target_xfer_error): Rename to ...
7479 (enum target_xfer_status): ... it. New. All users updated.
7480 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7482 (TARGET_XFER_STATUS_ERROR_P): New macro.
7483 (target_xfer_error_to_string): Remove declaration.
7484 (target_xfer_status_to_string): Declare.
7485 (target_xfer_partial_ftype): Adjust it.
7486 (struct target_ops) <to_xfer_partial>: Return
7487 target_xfer_status. Add argument xfered_len. Update
7489 * target.c (target_xfer_error_to_string): Rename to ...
7490 (target_xfer_status_to_string): ... it. New. All callers
7492 (target_read_live_memory): Likewise. Call target_xfer_partial
7493 instead of target_read.
7494 (memory_xfer_live_readonly_partial): Return
7495 target_xfer_status. Add argument xfered_len.
7496 (raw_memory_xfer_partial): Likewise.
7497 (memory_xfer_partial_1): Likewise.
7498 (memory_xfer_partial): Likewise.
7499 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7500 properly. Update debug message.
7501 (default_xfer_partial, current_xfer_partial): Likewise.
7502 (target_write_partial): Likewise.
7503 (target_read_partial): Likewise. All callers updated.
7504 (read_whatever_is_readable): Likewise.
7505 (target_write_with_progress): Likewise.
7506 (target_read_alloc_1): Likewise.
7508 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7509 * auxv.c (procfs_xfer_auxv): Likewise.
7510 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7511 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7512 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7513 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7514 * corefile.c (read_memory): Adjust.
7515 * corelow.c (core_xfer_partial): Likewise.
7516 * ctf.c (ctf_xfer_partial): Likewise.
7517 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7519 (darwin_xfer_partial): Likewise.
7520 * exec.c (section_table_xfer_memory_partial): Likewise. All
7522 (exec_xfer_partial): Likewise.
7523 * exec.h (section_table_xfer_memory_partial): Update
7525 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7527 (gnu_xfer_partial): Likewise.
7528 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7529 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7530 (ia64_hpux_xfer_solib_got): Likewise.
7531 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7532 type of 'partial_len' to ULONGEST.
7533 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7534 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7535 (linux_nat_xfer_partial): Likewise.
7536 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7537 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7538 * monitor.c (monitor_xfer_memory): Likewise.
7539 (monitor_xfer_partial): Likewise.
7540 * procfs.c (procfs_xfer_partial): Likewise.
7541 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7542 * record-full.c (record_full_xfer_partial): Likewise.
7543 (record_full_core_xfer_partial): Likewise.
7544 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7545 (gdbsim_xfer_partial): Likewise.
7546 * remote.c (remote_write_bytes_aux): Likewise. All callers
7548 (remote_write_bytes, remote_read_bytes): Likewise. All
7550 (remote_flash_erase): Likewise. All callers updated.
7551 (remote_write_qxfer): Likewise. All callers updated.
7552 (remote_read_qxfer): Likewise. All callers updated.
7553 (remote_xfer_partial): Likewise.
7554 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7555 (rs6000_xfer_shared_libraries): Likewise.
7556 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7557 (sol_thread_xfer_partial): Likewise.
7558 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7559 (sparc_xfer_partial): Likewise.
7560 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7562 (spu_xfer_partial): Likewise.
7563 * spu-multiarch.c (spu_xfer_partial): Likewise.
7564 * tracepoint.c (tfile_xfer_partial): Likewise.
7565 * windows-nat.c (windows_xfer_memory): Likewise.
7566 (windows_xfer_shared_libraries): Likewise.
7567 (windows_xfer_partial): Likewise.
7568 * valprint.c: Replace 'target_xfer_error' with
7569 'target_xfer_status' in comments.
7571 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7573 Checked in by Joel Brobecker <brobecker@adacore.com>.
7574 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7576 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7578 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7579 function parameters.
7581 2014-02-10 Will Newton <will.newton@linaro.org>
7583 * elfread.c (elf_rel_plt_read): Look for a .got section if
7584 looking up .got.plt fails.
7585 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7586 on address passed to elf_gnu_ifunc_record_cache.
7587 (elf_gnu_ifunc_resolve_addr): Likewise.
7588 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7590 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7592 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7593 (X_RETTURN): New macro.
7594 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7596 * sparc64-tdep.c (sparc64_init_abi): Hook
7597 sparc_in_function_epilogue_p.
7599 2014-02-10 Gary Benson <gbenson@redhat.com>
7601 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7602 Rename name_matcher to symbol_matcher.
7604 2014-02-10 Gary Benson <gbenson@redhat.com>
7606 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7607 Use expand_symtabs_file_matcher_ftype and
7608 expand_symtabs_symbol_matcher_ftype.
7610 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7612 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7613 (struct ada_symbol_cache): New.
7614 (ada_free_symbol_cache): Forward declare.
7615 (struct ada_pspace_data): New.
7616 (ada_pspace_data_handle): New static global.
7617 (get_ada_pspace_data, ada_pspace_data_cleanup)
7618 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7619 (cache_space, cache): Delete, now folded inside struct
7621 (ada_get_symbol_cache): New function.
7622 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7624 (_initialize_ada_language): Remove initialization of cache_space.
7625 Move call to observer_attach_inferior_exit up, grouping it
7626 with the other observer registrations inside this function.
7627 Rename command to be more general. Add call to
7628 register_program_space_data_with_cleanup.
7630 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7632 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7633 ada_new_objfile_observer.
7634 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7635 (_initialize_tasks): Update uses of ada_new_objfile_observer
7636 and ada_tasks_normal_stop_observer.
7638 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7640 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7641 returned by the 'Length attribute to integer.
7643 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7645 * ada-lang.c (_initialize_ada_language): Initialize
7646 cache_space obstack.
7648 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7650 * ada-lang.c (HASH_SIZE): New macro.
7651 (struct cache_entry): New type.
7652 (cache_space, cache): New static globals.
7653 (ada_clear_symbol_cache, find_entry): New functions.
7654 (lookup_cached_symbol, cache_symbol): Implement.
7655 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7656 (_initialize_ada_language): Attach ada_new_objfile_observer
7657 and ada_free_objfile_observer.
7659 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7661 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7662 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7663 struct block * parameter.
7664 (ada_lookup_symbol_list_worker): Constify local variable "block".
7665 Remove cast which is no longer necessary.
7667 2014-02-10 Doug Evans <xdje42@gmail.com>
7669 Add Guile as an extension language.
7670 * NEWS: Mention Guile scripting.
7671 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7672 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7673 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7674 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7675 (CLIBS): Add GUILE_LIBS.
7676 (install-guile): New rule.
7677 (guile.o): New rule.
7678 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7679 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7680 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7681 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7682 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7683 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7684 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7685 * configure.ac: New option --with-guile.
7686 * configure: Regenerate.
7687 * config.in: Regenerate.
7688 * auto-load.c: Remove #include "python/python.h". Add #include
7689 "gdb/section-scripts.h".
7690 (source_section_scripts): Handle Guile scripts.
7691 (_initialize_auto_load): Add name of Guile objfile script to
7692 scripts-directory help text.
7693 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7694 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7695 (struct breakpoint): New member scm_bp_object.
7696 * defs.h (enum command_control_type): New value guile_control.
7697 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7699 (show_user): Update comment.
7700 (_initialize_cli_cmds): Update help text for "show user". Update help
7701 text for max-user-call-depth.
7702 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7704 (multi_line_command_p): Add guile_control.
7705 (print_command_lines): Handle guile_control.
7706 (execute_control_command, recurse_read_control_structure): Ditto.
7707 (process_next_line): Recognize "guile" commands.
7708 * disasm.c (gdb_disassemble_info): Make non-static.
7709 * disasm.h: #include "dis-asm.h".
7710 (struct gdbarch): Add forward decl.
7711 (gdb_disassemble_info): Declare.
7712 * extension.c: #include "guile/guile.h".
7713 (extension_languages): Add guile.
7714 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7715 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7716 * gdbtypes.c (get_unsigned_type_max): New function.
7717 (get_signed_type_minmax): New function.
7718 * gdbtypes.h (get_unsigned_type_max): Declare.
7719 (get_signed_type_minmax): Declare.
7720 * guile/README: New file.
7721 * guile/guile-internal.h: New file.
7722 * guile/guile.c: New file.
7723 * guile/guile.h: New file.
7724 * guile/scm-arch.c: New file.
7725 * guile/scm-auto-load.c: New file.
7726 * guile/scm-block.c: New file.
7727 * guile/scm-breakpoint.c: New file.
7728 * guile/scm-disasm.c: New file.
7729 * guile/scm-exception.c: New file.
7730 * guile/scm-frame.c: New file.
7731 * guile/scm-gsmob.c: New file.
7732 * guile/scm-iterator.c: New file.
7733 * guile/scm-lazy-string.c: New file.
7734 * guile/scm-math.c: New file.
7735 * guile/scm-objfile.c: New file.
7736 * guile/scm-ports.c: New file.
7737 * guile/scm-pretty-print.c: New file.
7738 * guile/scm-safe-call.c: New file.
7739 * guile/scm-string.c: New file.
7740 * guile/scm-symbol.c: New file.
7741 * guile/scm-symtab.c: New file.
7742 * guile/scm-type.c: New file.
7743 * guile/scm-utils.c: New file.
7744 * guile/scm-value.c: New file.
7745 * guile/lib/gdb.scm: New file.
7746 * guile/lib/gdb/boot.scm: New file.
7747 * guile/lib/gdb/experimental.scm: New file.
7748 * guile/lib/gdb/init.scm: New file.
7749 * guile/lib/gdb/iterator.scm: New file.
7750 * guile/lib/gdb/printing.scm: New file.
7751 * guile/lib/gdb/types.scm: New file.
7752 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7753 (VPATH): Add $(GUILE_SRCDIR).
7754 (GUILE_DIR): New variable.
7755 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7756 (all): Add stamp-guile dependency.
7757 (stamp-guile): New rule.
7758 (clean-guile, install-guile, uninstall-guile): New rules.
7759 (install-only): Add install-guile dependency.
7760 (uninstall): Add uninstall-guile dependency.
7761 (clean): Add clean-guile dependency.
7763 2014-02-09 Doug Evans <xdje42@gmail.com>
7765 Revert this patch (which I approved, mea culpa).
7767 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7769 * Makefile.in (all-lib): Remove.
7770 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7772 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7774 Fix Python stack corruption.
7775 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7778 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7780 * Makefile.in (all-lib): Remove.
7781 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7783 2014-02-07 Doug Evans <dje@google.com>
7785 * extension-priv.h (extension_language_script_ops): Add comment.
7786 (extension_language_ops): Add comment.
7787 (active_ext_lang_state): Fix typo in comment.
7789 2014-02-07 Pedro Alves <palves@redhat.com>
7791 PR breakpoints/16292
7792 * infrun.c (handle_signal_stop) <signal arrives while stepping
7793 over a breakpoint>: Switch back to the stepping thread.
7795 2014-02-07 Yao Qi <yao@codesourcery.com>
7797 * target.c (target_xfer_partial): Return zero if LEN is zero.
7799 2014-02-07 Yao Qi <yao@codesourcery.com>
7801 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7802 (ld_so_xfer_auxv): Likewise.
7803 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7804 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7805 * corelow.c (core_xfer_partial): Likewise.
7806 * ctf.c (ctf_xfer_partial): Likewise.
7807 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7808 (darwin_xfer_partial): Likewise.
7809 * exec.c (exec_xfer_partial): Likewise.
7810 * gnu-nat.c (gnu_xfer_partial): Likewise.
7811 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7812 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7813 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7814 * linux-nat.c (linux_xfer_siginfo): Likewise.
7815 (linux_proc_xfer_spu): Likewise.
7816 * procfs.c (procfs_xfer_partial): Likewise.
7817 * record-full.c (record_full_xfer_partial): Likewise.
7818 (record_full_core_xfer_partial): Likewise.
7819 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7820 * remote.c (remote_write_qxfer): Likewise.
7821 (remote_write_qxfer, remote_read_qxfer): Likewise.
7822 (remote_xfer_partial): Likewise.
7823 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7824 (rs6000_xfer_shared_libraries): Likewise.
7825 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7826 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7827 (spu_xfer_partial): Likewise.
7828 * target.c (memory_xfer_partial_1): Likewise.
7829 * tracepoint.c (tfile_xfer_partial): Likewise.
7830 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7831 (windows_xfer_partial): Likewise.
7833 2014-02-07 Yao Qi <yao@codesourcery.com>
7835 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7837 (core_xfer_shared_libraries_aix): Likewise.
7838 * gdbarch.c, gdbarch.h: Regenerated.
7839 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7840 ULONGEST. Change 'len_avail' type to ULONGEST.
7841 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7842 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7844 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7846 2014-02-07 Yao Qi <yao@codesourcery.com>
7848 * corefile.c (memory_error): Get 'exception' from ERR and pass
7849 'exception' to throw_error.
7851 2014-02-06 Doug Evans <xdje42@gmail.com>
7853 * configure.ac (libpython checking): Remove all but python.o from
7854 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7855 * configure: Regenerate.
7857 * Makefile.in (SFILES): Add extension.c.
7858 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7859 (COMMON_OBS): Add extension.o.
7860 * extension.h: New file.
7861 * extension-priv.h: New file.
7862 * extension.c: New file.
7864 * python/python-internal.h: #include "extension.h".
7865 (gdbpy_auto_load_enabled): Declare.
7866 (gdbpy_apply_val_pretty_printer): Declare.
7867 (gdbpy_apply_frame_filter): Declare.
7868 (gdbpy_preserve_values): Declare.
7869 (gdbpy_breakpoint_cond_says_stop): Declare.
7870 (gdbpy_breakpoint_has_cond): Declare.
7871 (void source_python_script_for_objfile): Delete.
7872 * python/python.c: #include "extension-priv.h".
7873 Delete inclusion of "observer.h".
7874 (extension_language_python): Moved here and renamed from
7875 script_language_python in py-auto-load.c.
7876 Redefined to be of type extension_language_defn.
7877 (python_extension_script_ops): New global.
7878 (python_extension_ops): New global.
7879 (struct python_env): New member previous_active.
7880 (restore_python_env): Call restore_active_ext_lang.
7881 (ensure_python_env): Call set_active_ext_lang.
7882 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7884 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7886 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7888 (gdbpy_eval_from_control_command): Renamed from
7889 eval_python_from_control_command, made static. New arg extlang.
7890 (gdbpy_source_script) Renamed from source_python_script, made static.
7892 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7893 result to int. New arg extlang.
7894 (gdbpy_source_objfile_script): Renamed from
7895 source_python_script_for_objfile, made static. New arg extlang.
7896 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7897 static. New args extlang, extlang_printers. Change result type to
7899 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7900 static. New arg extlang. Rename arg printers to extlang_printers
7901 and change type to ext_lang_type_printers *.
7902 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7903 static. Replace argument arg with extlang, extlang_printers.
7904 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7905 (!HAVE_PYTHON, source_python_script): Delete.
7906 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7907 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7908 (!HAVE_PYTHON, start_type_printers): Delete.
7909 (!HAVE_PYTHON, apply_type_printers): Delete.
7910 (!HAVE_PYTHON, free_type_printers): Delete.
7911 (_initialize_python): Delete call to observer_attach_before_prompt.
7912 (finalize_python): Set/restore active extension language.
7913 (gdbpy_finish_initialization) Renamed from
7914 finish_python_initialization, made static. New arg extlang.
7915 (gdbpy_initialized): New function.
7916 * python/python.h: #include "extension.h". Delete #include
7917 "value.h", "mi/mi-cmds.h".
7918 (extension_language_python): Declare.
7919 (GDBPY_AUTO_FILE_NAME): Delete.
7920 (enum py_bt_status): Moved to extension.h and renamed to
7922 (enum frame_filter_flags): Moved to extension.h.
7923 (enum py_frame_args): Moved to extension.h and renamed to
7924 ext_lang_frame_args.
7925 (finish_python_initialization): Delete.
7926 (eval_python_from_control_command): Delete.
7927 (source_python_script): Delete.
7928 (apply_val_pretty_printer): Delete.
7929 (apply_frame_filter): Delete.
7930 (preserve_python_values): Delete.
7931 (gdbpy_script_language_defn): Delete.
7932 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7933 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7935 * auto-load.c: #include "extension.h".
7936 (GDB_AUTO_FILE_NAME): Delete.
7937 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7938 (script_language_gdb): Delete, moved to extension.c and renamed to
7939 extension_language_gdb.
7940 (source_gdb_script_for_objfile): Delete.
7941 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7942 (loaded_script): Change type of language member to
7943 struct extension_language_defn *.
7944 (init_loaded_scripts_info): Initialize
7945 unsupported_script_warning_printed.
7946 (maybe_add_script): Make static. Change type of language arg to
7947 struct extension_language_defn *.
7948 (clear_section_scripts): Reset unsupported_script_warning_printed.
7949 (auto_load_objfile_script_1): Rewrite to use extension language API.
7950 (auto_load_objfile_script): Make public. Remove support-compiled-in
7951 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7952 (source_section_scripts): Rewrite to use extension language API.
7953 (load_auto_scripts_for_objfile): Rewrite to use
7954 auto_load_scripts_for_objfile.
7955 (collect_matching_scripts_data): Change type of language member to
7956 struct extension_language_defn *.
7957 (auto_load_info_scripts): Change type of language arg to
7958 struct extension_language_defn *.
7959 (unsupported_script_warning_print): New function.
7960 (script_not_found_warning_print): Make static.
7961 (_initialize_auto_load): Rewrite construction of scripts-directory
7963 * auto-load.h (struct objfile): Add forward decl.
7964 (struct script_language): Delete.
7965 (struct auto_load_pspace_info): Add forward decl.
7966 (struct extension_language_defn): Add forward decl.
7967 (maybe_add_script): Delete.
7968 (auto_load_objfile_script): Declare.
7969 (script_not_found_warning_print): Delete.
7970 (auto_load_info_scripts): Update prototype.
7971 (auto_load_gdb_scripts_enabled): Declare.
7972 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7973 auto_load_python_scripts_enabled and made public.
7974 (script_language_python): Delete, moved to python.c.
7975 (gdbpy_script_language_defn): Delete.
7976 (info_auto_load_python_scripts): Update to use
7977 extension_language_python.
7979 * breakpoint.c (condition_command): Replace call to
7980 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7981 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7982 with call to breakpoint_ext_lang_cond_says_stop.
7983 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7984 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7985 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7986 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7988 (local_setattro): Print name of extension language with existing
7991 * valprint.c (val_print, value_print): Update to call
7992 apply_ext_lang_val_pretty_printer.
7993 * cp-valprint.c (cp_print_value): Update call to
7994 apply_ext_lang_val_pretty_printer.
7995 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7996 (gdbpy_apply_val_pretty_printer): Renamed from
7997 apply_val_pretty_printer. New arg extlang.
7998 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8000 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8001 extension language API.
8002 * cli/cli-script.c (execute_control_command): Update to call
8003 eval_ext_lang_from_control_command.
8005 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8006 enum ext_lang_bt_status values. Update call to
8007 apply_ext_lang_frame_filter.
8008 (mi_cmd_stack_list_locals): Ditto.
8009 (mi_cmd_stack_list_args): Ditto.
8010 (mi_cmd_stack_list_variables): Ditto.
8011 * mi/mi-main.c: Delete #include "python/python-internal.h".
8012 Add #include "extension.h".
8013 (mi_cmd_list_features): Replace reference to python internal variable
8014 gdb_python_initialized with call to ext_lang_initialized_p.
8016 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8017 Update to use enum ext_lang_frame_args. Update to call
8018 apply_ext_lang_frame_filter.
8019 * python/py-framefilter.c (extract_sym): Update to use enum
8021 (extract_value, py_print_type, py_print_value): Ditto.
8022 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8023 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8024 (py_print_frame): Ditto.
8025 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8026 New arg extlang. Update to use enum ext_lang_bt_status.
8028 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8029 finish_python_initialization. Replace with call to
8030 finish_ext_lang_initialization.
8032 * typeprint.c (do_free_global_table): Update to call
8033 free_ext_lang_type_printers.
8034 (create_global_typedef_table): Update to call
8035 start_ext_lang_type_printers.
8036 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8037 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8038 (type_print_options): Change type of global_printers from "void *"
8039 to "struct ext_lang_type_printers *".
8041 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8042 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8043 (gdbpy_preserve_values): Renamed from preserve_python_values.
8045 (!HAVE_PYTHON, preserve_python_values): Delete.
8047 * utils.c (quit_flag): Delete, moved to extension.c.
8048 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8051 * eval.c: Delete #include "python/python.h".
8052 * main.c: Delete #include "python/python.h".
8054 * defs.h: Update comment.
8056 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8060 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8062 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8065 2014-02-05 Yao Qi <yao@codesourcery.com>
8067 * remote.c (remote_pass_signals): Remove local 'buf' and use
8069 (remote_program_signals): Likewise.
8071 2014-02-05 Yao Qi <yao@codesourcery.com>
8073 * ctf.c: Include "inferior.h" and "gdbthread.h".
8074 (CTF_PID): A new macro.
8075 (ctf_open): Call inferior_appeared and add_thread_silent.
8076 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8077 (ctf_thread_alive): New function.
8078 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8080 2014-02-05 Yao Qi <yao@codesourcery.com>
8084 2013-05-24 Yao Qi <yao@codesourcery.com>
8086 * tracepoint.c (TFILE_PID): Remove.
8087 (tfile_open): Don't add thread and inferior.
8088 (tfile_close): Don't set 'inferior_ptid'. Don't call
8089 exit_inferior_silent.
8090 (tfile_thread_alive): Remove.
8091 (init_tfile_ops): Don't set field 'to_thread_alive' of
8094 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8096 * remote.c (remote_start_remote): Call remote_check_symbols even
8097 if only symbol-file (not file) has been given.
8099 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8101 * gdbarch.sh (skip_entrypoint): New callback.
8102 * gdbarch.c, gdbarch.h: Regenerate.
8103 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8104 * infrun.c (fill_in_stop_func): Likewise.
8105 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8106 (ppc_elfv2_elf_make_msymbol_special): New function.
8107 (ppc_elfv2_skip_entrypoint): Likewise.
8108 (ppc_linux_init_abi): Install them for ELFv2.
8110 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8112 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8113 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8114 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8115 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8116 structures returned in GPRs.
8118 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8120 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8121 offset to the stack parameter list for the ELFv2 ABI.
8123 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8125 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8126 set_gdbarch_convert_from_func_ptr_addr and
8127 set_gdbarch_elf_make_msymbol_special for ELFv1.
8128 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8129 function descriptors on ELFv1.
8130 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8131 set up r12 at function entry.
8133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8135 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8136 (struct gdbarch_tdep): New member elf_abi.
8138 * rs6000-tdep.c: Include "elf/ppc64.h".
8139 (rs6000_gdbarch_init): Detect ELF ABI version.
8141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8144 within a register pair holding a DFP 128-bit value on little-endian.
8145 (ppc64_sysv_abi_return_value_base): Likewise.
8146 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8147 (dfp_pseudo_register_write): Likewise.
8149 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8151 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8152 offset on little-endian when passing _Decimal32.
8153 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8155 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8157 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8158 of the overlapped FP register within the VSX register on little-
8160 (efpr_pseudo_register_write): Likewise.
8162 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8164 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8165 offset on little-endian when passing small structures.
8167 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8169 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8170 (struct ppc64_sysv_argpos): New data structure.
8171 (ppc64_sysv_abi_push_float): Remove.
8172 (ppc64_sysv_abi_push_val): New function.
8173 (ppc64_sysv_abi_push_integer): Likewise.
8174 (ppc64_sysv_abi_push_freg): Likewise.
8175 (ppc64_sysv_abi_push_vreg): Likewise.
8176 (ppc64_sysv_abi_push_param): Likewise.
8177 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8178 (ppc64_sysv_abi_return_value_base): New function.
8179 (ppc64_sysv_abi_return_value): Refactor to use it.
8181 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8183 * NEWS: Document new target powerpc64le-*-linux*.
8185 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8187 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8188 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8190 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8191 register set used in ELF core dumps. Add floating-point register set.
8193 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8195 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8196 dwarf2_to_gdb[] table using symbolic constants. Adjust
8197 penultimate entry from number representing the PC register
8198 to symbolic constant representing the MDR register. Add
8199 constant for the PC register to the end of the table.
8201 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8203 * bsd-kvm.c: Include <sys/param.h>
8205 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8207 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8209 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8211 * ada-lang.h (clear_ada_sym_cache): Delete.
8213 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8215 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8217 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8219 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8220 the sigreturn register save area only if the syscall is
8223 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8225 * valops.c (value_slice): Minor reformatting.
8227 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8229 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8231 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8233 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8235 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8236 (ada_ignore_descriptive_types_p): New static global.
8237 (find_parallel_type_by_descriptive_type): Return immediately
8238 if ada_ignore_descriptive_types_p is set.
8239 (_initialize_ada_language): Register new commands "maintenance
8240 set ada", "maintenance show ada", "maintenance set ada
8241 ignore-descriptive-types" and "maintenance show ada
8242 ignore-descriptive-types".
8243 * NEWS: Add entry for new "maint ada set/show
8244 ignore-descriptive-types" commands.
8246 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8248 * record-btrace.c (record_btrace_close): Call btrace_teardown
8251 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8253 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8256 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8258 * ada-typeprint (type_is_full_subrange_of_target_type):
8260 (print_range): Add parameter bounds_prefered_p. If not set,
8261 try printing range types using the name of their base type.
8262 (print_range_type): Add parameter bounds_prefered_p.
8263 Use it in call to print_range.
8264 (print_array_type, ada_print_type): Update calls to print_range
8265 and print_range_type.
8267 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8269 * ada-typeprint.c (print_array_type, print_choices, print_range)
8270 (print_range_bound, print_dynamic_range_bound, print_range_type):
8273 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8275 * ada-typeprint.c (print_range): Add missing empty line
8276 after local declaration.
8278 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8280 * ada-valprint.c (print_optional_low_bound): Get index_type's
8281 target type for as long as it is a TYPE_CODE_RANGE.
8283 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8285 * procfs.c (procfs_make_note_section): Remove assertion and
8288 2014-01-24 Yao Qi <yao@codesourcery.com>
8290 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8291 * corelow.c (get_core_siginfo): Likewise.
8293 2014-01-24 Yao Qi <yao@codesourcery.com>
8295 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8296 ULONGEST. Don't check 'len' is negative.
8297 (remote_write_bytes): Change type of 'len' to ULONGEST.
8299 2014-01-23 Tom Tromey <tromey@redhat.com>
8302 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8303 Handle exception from frame.block.
8304 (FrameVars.fetch_frame_locals): Likewise.
8306 2014-01-23 Tom Tromey <tromey@redhat.com>
8309 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8310 on a NULL pointer. Move "goto error" to correct place.
8312 2014-01-23 Tom Tromey <tromey@redhat.com>
8315 * python/py-framefilter.c (apply_frame_filter): Call
8316 ensure_python_env after computing gdbarch.
8318 2014-01-23 Yao Qi <yao@codesourcery.com>
8320 * target.c (raw_memory_xfer_partial): Change argument type
8321 from void * to gdb_byte *.
8322 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8324 2014-01-22 Doug Evans <dje@google.com>
8326 New gdbserver option --debug-format=timestamp.
8329 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8331 * syscalls/s390x-linux.xml: New file.
8332 * syscalls/s390-linux.xml: New file.
8333 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8334 (XML_SYSCALL_FILENAME_S390X): Likewise.
8335 (op_svc): New enum value for SVC opcode.
8336 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8337 (s390_linux_get_syscall_number): New function.
8338 (s390_gdbarch_init): Register '*get_syscall_number' and the
8339 syscall xml file name.
8340 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8341 "s390-linux.xml" and "s390x-linux.xml".
8342 * NEWS: Announce new feature.
8344 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8346 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8348 2014-01-22 Pedro Alves <palves@redhat.com>
8350 * xtensa-config.c: Include defs.h.
8352 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8354 * common/common-utils.h: Add "ARI:" comment beside __func__
8357 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8359 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8360 documentation a bit.
8362 2014-01-21 Roland McGrath <mcgrathr@google.com>
8364 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8365 * configure: Regenerate.
8366 * aclocal.m4: Regenerate.
8367 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8368 New substituted variables.
8369 (install-strip): New target.
8370 (INSTALL_SCRIPT): New substituted variable.
8371 (FLAGS_TO_PASS): Add it.
8372 (install-only): Use $(INSTALL_SCRIPT) rather than
8373 $(INSTALL_PROGRAM) for gcore.
8375 2014-01-20 Tom Tromey <tromey@redhat.com>
8377 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8380 2014-01-20 Tom Tromey <tromey@redhat.com>
8382 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8383 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8384 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8385 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8386 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8387 (struct cmd_list_element) <flags>: Remove.
8388 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8389 doc_allocated>: New fields.
8390 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8392 * maint.c (maintenance_do_deprecate): Update.
8393 * top.c (execute_command): Update.
8395 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8397 * xtensa-linux-nat.c: Include asm/ptrace.h.
8399 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8401 * Makefile.in (SFILES): Add d-support.c.
8402 (COMMON_OBS): Add d-support.o.
8403 * d-lang.h (d_parse_symbol): Add comment, now defined in
8405 * d-lang.c (parse_call_convention)
8406 (parse_attributes, parse_function_types)
8407 (parse_function_args, parse_type, parse_identifier)
8408 (call_convention_p, d_parse_symbol): Move functions to ...
8409 * d-support.c: ... New file.
8411 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8413 * d-lang.h (d_parse_symbol): Add declaration.
8414 * d-lang.c (extract_identifiers)
8415 (extract_type_info): Remove functions.
8416 (parse_call_convention, parse_attributes)
8417 (parse_function_types, parse_function_args)
8418 (parse_type, parse_identifier, call_convention_p)
8419 (d_parse_symbol): New functions.
8420 (d_demangle): Use d_parse_symbol to demangle D symbols.
8422 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8424 * d-lang.h (struct builtin_d_type): New data type.
8425 (builtin_d_type): Add declaration.
8426 * d-lang.c (d_language_arch_info, build_d_types)
8427 (builtin_d_type): New functions.
8428 (enum d_primitive_types): New data type.
8429 (d_language_defn): Change c_language_arch_info to
8430 d_language_arch_info.
8431 (d_type_data): New static variable.
8432 (_initialize_d_language): Initialize d_type_data.
8434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8436 * d-lang.h (d_main_name): Add declaration.
8437 * d-lang.c (d_main_name): New function.
8438 * symtab.c (find_main_name): Add call to d_main_name.
8440 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8442 * d-lang.c (d_language_defn): Change macro_expansion_c to
8445 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8447 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8449 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8451 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8452 gdb_exception" declaration.
8453 * remote.c (getpkt_or_notif_sane): Likewise.
8455 2014-01-17 Doug Evans <dje@google.com>
8457 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8458 function, contents of dirnames_to_char_ptr_vec_append moved here.
8459 (delim_string_to_char_ptr_vec): New function.
8460 (dirnames_to_char_ptr_vec_append): Rewrite.
8461 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8463 2014-01-17 Doug Evans <dje@google.com>
8465 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8467 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8468 #include "common-utils.h".
8469 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8470 * common/vec.h (VEC_ASSERT_PASS): Update.
8471 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8472 (MACH_CHECK_ERROR): Update.
8474 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8476 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8478 * gdbarch.h: Regenerate.
8480 2014-01-16 Tom Tromey <tromey@redhat.com>
8482 * value.c (struct value) <regnum>: Move earlier.
8484 2014-01-16 Tom Tromey <tromey@redhat.com>
8486 * remote.c (extended_remote_create_inferior): Rename from
8487 extended_remote_create_inferior_1. Add "ops" argument. Remove
8490 2014-01-16 Pedro Alves <palves@redhat.com>
8492 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8493 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8496 2014-01-16 Doug Evans <dje@google.com>
8498 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8502 * btrace.h (btrace_thread_flag): New.
8503 (struct btrace_thread_info) <flags>: New.
8504 * record-btrace.c (record_btrace_resume_thread)
8505 (record_btrace_find_thread_to_move, btrace_step_no_history)
8506 (btrace_step_stopped, record_btrace_start_replaying)
8507 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8508 (record_btrace_find_resume_thread): New.
8509 (record_btrace_resume, record_btrace_wait): Extend.
8510 (record_btrace_can_execute_reverse): New.
8511 (record_btrace_open): Fail in non-stop mode.
8512 (record_btrace_set_replay): Split into this, ...
8513 (record_btrace_stop_replaying): ... this, ...
8514 (record_btrace_clear_histories): ... and this.
8515 (init_record_btrace_ops): Init to_can_execute_reverse.
8516 * NEWS: Announce it.
8518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8520 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8521 (forward_target_decr_pc_after_break)
8522 (target_decr_pc_after_break): New.
8523 * target.c (forward_target_decr_pc_after_break)
8524 (target_decr_pc_after_break): New.
8525 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8526 instead of gdbarch_decr_pc_after_break.
8527 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8528 instead of gdbarch_decr_pc_after_break.
8529 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8530 instead of gdbarch_decr_pc_after_break.
8531 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8532 instead of gdbarch_decr_pc_after_break.
8533 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8534 instead of gdbarch_decr_pc_after_break.
8535 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8536 instead of gdbarch_decr_pc_after_break.
8538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8540 * btrace.c: Include regcache.h.
8541 (btrace_add_pc): New.
8542 (btrace_enable): Call btrace_add_pc.
8543 (btrace_is_empty): New.
8544 * btrace.h (btrace_is_empty): New.
8545 * record-btrace.c (require_btrace, record_btrace_info): Call
8548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8550 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8551 Support delta reads.
8552 (linux_disable_btrace): Change return type.
8553 * common/linux-btrace.h (linux_read_btrace): Change parameters
8554 and return type to allow error reporting. Update users.
8555 (linux_disable_btrace): Change return type. Update users.
8556 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8558 (btrace_error): New.
8559 (btrace_block) <begin>: Comment on BEGIN == 0.
8560 * btrace.c (btrace_compute_ftrace): Start from the end of
8562 (btrace_stitch_trace, btrace_clear_history): New.
8563 (btrace_fetch): Read delta trace, return if replaying.
8564 (btrace_clear): Move clear history code to btrace_clear_history.
8565 (parse_xml_btrace): Throw an error if parsing failed.
8566 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8567 and return type to allow error reporting.
8568 (target_read_btrace): Change parameters and return type to allow
8570 * target.c (target_read_btrace): Update.
8571 * remote.c (remote_read_btrace): Support delta reads. Pass
8573 * NEWS: Announce it.
8575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8577 * record.h (record_btrace_frame_unwind)
8578 (record_btrace_tailcall_frame_unwind): New declarations.
8579 * dwarf2-frame: Include record.h
8580 (dwarf2_frame_cfa): Throw an error for btrace frames.
8581 * record-btrace.c: Include hashtab.h.
8582 (btrace_get_bfun_name): New.
8583 (btrace_call_history): Call btrace_get_bfun_name.
8584 (struct btrace_frame_cache): New.
8586 (bfcache_hash, bfcache_eq, bfcache_new): New.
8587 (btrace_get_frame_function): New.
8588 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8589 (record_btrace_frame_this_id): Compute own id.
8590 (record_btrace_frame_prev_register): Provide PC, throw_error
8591 for all other registers.
8592 (record_btrace_frame_sniffer): Detect btrace frames.
8593 (record_btrace_tailcall_frame_sniffer): New.
8594 (record_btrace_frame_dealloc_cache): New.
8595 (record_btrace_frame_unwind): Add new functions.
8596 (record_btrace_tailcall_frame_unwind): New.
8597 (_initialize_record_btrace): Allocate cache.
8598 * btrace.c (btrace_clear): Call reinit_frame_cache.
8599 * NEWS: Announce it.
8601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8603 * record-btrace.c (record_btrace_set_replay)
8604 (record_btrace_goto_begin, record_btrace_goto_end)
8605 (record_btrace_goto): New.
8606 (init_record_btrace_ops): Initialize them.
8607 * NEWS: Announce it.
8609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8611 * record-btrace.c (record_btrace_find_new_threads)
8612 (record_btrace_thread_alive): New.
8613 (init_record_btrace_ops): Initialize to_find_new_threads and
8616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8618 * record-btrace.c (record_btrace_resume): New.
8619 (record_btrace_wait): New.
8620 (init_record_btrace_ops): Initialize to_wait and to_resume.
8622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8624 * record-btrace.c (record_btrace_xfer_partial)
8625 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8626 (record_btrace_allow_memory_access): New.
8627 (init_record_btrace_ops): Initialize new methods.
8628 * target.c (raw_memory_xfer_partial): Bail out if target reports
8629 that this memory is not available.
8631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8633 * target.h (target_ops) <to_insert_breakpoint>
8634 <to_remove_breakpoint>: Add target_ops parameter.
8635 (forward_target_insert_breakpoint): New.
8636 (forward_target_remove_breakpoint): New.
8637 (memory_remove_breakpoint, memory_insert_breakpoint):
8638 Add target_ops parameter.
8639 * target.c (target_insert_breakpoint): Split into this and ...
8640 (forward_target_insert_breakpoint): ... this.
8641 (target_remove_breakpoint): Split into this and ...
8642 (forward_target_remove_breakpoint): ... this.
8643 (debug_to_insert_breakpoint): Add target_ops parameter.
8644 Call forward_target_insert_breakpoint.
8645 (debug_to_remove_breakpoint): Add target_ops parameter.
8646 Call forward_target_remove_breakpoint.
8647 (update_current_target): Do not inherit or default to_insert_breakpoint
8648 and to_remove_breakpoint.
8649 * corelow.c (ignore): Add target_ops parameter.
8650 * exec.c (ignore): Add target_ops parameter.
8651 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8652 Add target_ops parameter.
8653 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8654 Add target_ops parameter.
8655 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8656 Add target_ops parameter.
8657 * record-full.c (record_full_beneath_to_insert_breakpoint)
8658 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8659 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8660 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8661 (record_full_core_remove_breakpoint): Add target_ops parameter.
8663 (record_full_beneath_to_insert_breakpoint_ops)
8664 (record_full_beneath_to_remove_breakpoint_ops)
8665 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8666 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8667 tmp_to_remove_breakpoint_ops,
8668 record_full_beneath_to_insert_breakpoint_ops, and
8669 record_full_beneath_to_remove_breakpoint_ops.
8670 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8671 (m32r_remove_breakpoint): Add target_ops parameter.
8672 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8673 Add target_ops parameter.
8674 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8675 Add target_ops parameter.
8677 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8678 Markus Metzger <markus.t.metzger@intel.com>
8680 * record-btrace.c: Include frame-unwind.h.
8681 (record_btrace_frame_unwind_stop_reason)
8682 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8683 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8685 (init_record_btrace_ops): Install it.
8687 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8689 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8692 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8694 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8697 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8699 * frame-unwind.c: Include target.h.
8700 (frame_unwind_try_unwinder): New function with code from ...
8701 (frame_unwind_find_by_frame): ... here. New variable
8702 unwinder_from_target, call also target_get_unwinder)
8703 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8704 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8705 * target.h (struct target_ops): New fields to_get_unwinder and
8706 to_get_tailcall_unwinder.
8707 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8711 * record-btrace.c (record_btrace_fetch_registers)
8712 (record_btrace_store_registers)
8713 (record_btrace_to_prepare_to_store): New.
8714 (init_record_btrace_ops): Add the above.
8716 2014-01-16 Tom Tromey <tromey@redhat.com>
8718 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8719 * target.h (struct target_ops) <to_prepare_to_store>: Add
8721 (target_prepare_to_store): Add argument.
8722 * target.c (debug_to_prepare_to_store): Add argument.
8723 (update_current_target): Update.
8724 * remote.c (remote_prepare_to_store): Add 'self' argument.
8725 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8726 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8727 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8728 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8730 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8731 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8732 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8733 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8734 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8738 * btrace.h (replay) <replay>: New.
8739 (btrace_is_replaying): New.
8740 * btrace.c (btrace_clear): Free replay iterator.
8741 (btrace_is_replaying): New.
8742 * record-btrace.c (record_btrace_is_replaying): New.
8743 (record_btrace_info): Print insn number if replaying.
8744 (record_btrace_insn_history): Start at replay position.
8745 (record_btrace_call_history): Start at replay position.
8746 (init_record_btrace_ops): Init to_record_is_replaying.
8748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8750 * record-btrace.c (record_btrace_insn_history_range): Include
8752 (record_btrace_insn_history_from): Adjust range.
8753 (record_btrace_call_history_range): Include
8755 (record_btrace_call_history_from): Adjust range.
8756 * NEWS: Announce changes.
8758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8760 * record.h (enum record_print_flag)
8761 <record_print_indent_calls>: New.
8762 * record.c (get_call_history_modifiers): Recognize /c modifier.
8763 (_initialize_record): Document /c modifier.
8764 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8765 Reorder fields. Optionally indent the function name. Update
8767 * NEWS: Announce changes.
8769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8771 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8773 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8775 * btrace.c (ftrace_new_function): Start counting at one.
8776 * record-btrace.c (record_btrace_info): Adjust number of calls
8778 * NEWS: Announce it.
8780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8782 * record-btrace.c (btrace_call_history_insn_range): Print
8783 insn range as [begin, end].
8785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8787 * btrace.h (struct btrace_func_link): New.
8788 (enum btrace_function_flag): New.
8789 (struct btrace_inst): Rename to ...
8790 (struct btrace_insn): ...this. Update all users.
8791 (struct btrace_func) <ibegin, iend>: Remove.
8792 (struct btrace_func_link): New.
8793 (struct btrace_func): Rename to ...
8794 (struct btrace_function): ...this. Update all users.
8795 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8796 (number, level, flags>: New.
8797 (struct btrace_insn_iterator): Rename to ...
8798 (struct btrace_insn_history): ...this.
8800 (struct btrace_insn_iterator, btrace_call_iterator): New.
8801 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8802 (struct btrace_target_info) <begin, end, level>
8803 <insn_history, call_history>: New.
8804 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8805 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8806 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8807 (btrace_call_number, btrace_call_begin, btrace_call_end)
8808 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8809 (btrace_find_function_by_number, btrace_set_insn_history)
8810 (btrace_set_call_history): New.
8811 * btrace.c (btrace_init_insn_iterator)
8812 (btrace_init_func_iterator, compute_itrace): Remove.
8813 (ftrace_print_function_name, ftrace_print_filename)
8814 (ftrace_skip_file): Change
8816 (ftrace_init_func): Remove.
8817 (ftrace_debug): Use new btrace_function fields.
8818 (ftrace_function_switched): Also consider gaining and
8819 losing symbol information).
8820 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8821 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8822 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8824 (ftrace_new_function): Move. Remove debug print.
8825 (ftrace_update_lines, ftrace_update_insns): New.
8826 (ftrace_update_function): Check for call, ret, and jump.
8827 (compute_ftrace): Renamed to ...
8828 (btrace_compute_ftrace): ...this. Rewritten to compute call
8830 (btrace_fetch, btrace_clear): Updated.
8831 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8832 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8833 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8834 (btrace_call_number, btrace_call_begin, btrace_call_end)
8835 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8836 (btrace_find_function_by_number, btrace_set_insn_history)
8837 (btrace_set_call_history): New.
8838 * record-btrace.c (require_btrace): Use new btrace thread
8840 (record_btrace_info, btrace_insn_history)
8841 (record_btrace_insn_history, record_btrace_insn_history_range):
8842 Use new btrace thread info fields and new iterator.
8843 (btrace_func_history_src_line): Rename to ...
8844 (btrace_call_history_src_line): ...this. Use new btrace
8846 (btrace_func_history): Rename to ...
8847 (btrace_call_history): ...this. Use new btrace thread info
8848 fields and new iterator.
8849 (record_btrace_call_history, record_btrace_call_history_range):
8850 Use new btrace thread info fields and new iterator.
8852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8854 * frame.h (frame_id_build_unavailable_stack_special): New.
8855 * frame.c (frame_id_build_unavailable_stack_special): New.
8857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8859 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8860 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8861 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8863 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8864 (i386_insn_is_jump, i386_jmp_p): New.
8865 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8866 insn_is_jump to gdbarch.
8867 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8868 * gdbarch.h: Regenerated.
8869 * gdbarch.c: Regenerated.
8870 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8871 (default_insn_is_jump): New.
8872 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8873 (default_insn_is_jump): New.
8875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8877 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8879 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8880 (btrace_read_type) <btrace_read_new>: Change to ...
8881 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8885 * common/linux-btrace.c (linux_read_btrace): Free trace from
8888 2014-01-15 Doug Evans <dje@google.com>
8890 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8893 2014-01-15 Tom Tromey <tromey@redhat.com>
8895 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8896 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8897 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8898 (set_objfile_main_name): New function.
8899 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8900 language_of_main>: New fields.
8901 (set_objfile_main_name): Declare.
8902 * symtab.c (find_main_name): Loop over objfiles to find the main
8904 (set_main_name): Now static.
8905 (get_main_info): Add comment.
8906 * symtab.h (set_main_name): Don't declare.
8908 2014-01-15 Tom Tromey <tromey@redhat.com>
8910 * symtab.c (main_progspace_key): New global.
8911 (struct main_info): New.
8912 (name_of_main, language_of_main): Remove.
8913 (get_main_info, main_info_cleanup): New function.
8914 (set_main_name, main_name, main_language): Use get_main_info.
8915 (_initialize_symtab): Initialize main_progspace_key.
8917 2014-01-15 Tom Tromey <tromey@redhat.com>
8919 * dbxread.c (process_one_symbol): Update.
8920 * dwarf2read.c (read_partial_die): Update.
8921 * symfile.c (set_initial_language): Call main_language.
8922 * symtab.c (language_of_main): Now static.
8923 (set_main_name): Add 'lang' parameter.
8924 (find_main_name): Update.
8925 (main_language): New function.
8926 (symtab_observer_executable_changed): Update.
8927 * symtab.h (set_main_name): Update.
8928 (language_of_main): Remove.
8929 (main_language): Declare.
8931 2014-01-15 Tom Tromey <tromey@redhat.com>
8933 * symfile.c (init_entry_point_info): Use new "initialized" field.
8935 * objfiles.h (struct entry_point) <initialized>: New field.
8936 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8937 (struct objfile) <ei>: ...here. Remove.
8938 * objfiles.c (entry_point_address_query): Update.
8940 2014-01-15 Tom Tromey <tromey@redhat.com>
8942 * objfiles.c (entry_point_address_query): Relocate entry point
8944 (objfile_relocate1): Do not relocate entry point address.
8945 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8946 <the_bfd_section_index>: New field.
8947 * symfile.c (init_entry_point_info): Find the entry point's
8950 2014-01-15 Tom Tromey <tromey@redhat.com>
8952 * solib-frv.c (enable_break): Use entry_point_address_query.
8954 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8956 * NEWS: Add note on improved process record-replay on
8957 arm*-linux* targets.
8959 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8961 * arm-tdep.c (enum arm_record_result): New enum.
8962 (arm_record_unsupported_insn): New function.
8963 (arm_record_coproc_data_proc): Removed.
8964 (thumb2_record_ld_st_multiple): New function.
8965 (thumb2_record_ld_st_dual_ex_tbb): New function.
8966 (thumb2_record_data_proc_sreg_mimm): New function.
8967 (thumb2_record_ps_dest_generic): New function.
8968 (thumb2_record_branch_misc_cntrl): New function.
8969 (thumb2_record_str_single_data): New function.
8970 (thumb2_record_ld_mem_hints): New function.
8971 (thumb2_record_ld_word): New function.
8972 (thumb2_record_lmul_lmla_div): New function.
8973 (thumb2_record_decode_insn_handler): New function.
8974 (decode_insn): Add thumb32 instruction handlers.
8976 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8978 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8979 (struct arm_linux_record_tdep): Declare.
8980 (arm_canonicalize_syscall): New function.
8981 (arm_all_but_pc_registers_record): New function.
8982 (arm_linux_syscall_record): New function.
8983 (arm_linux_init_abi): Add syscall recording constructs.
8984 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8985 decoding. (arm_record_coproc_data_proc): Update arm syscall
8987 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8988 <arm_syscall_record>: New field.
8989 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8992 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8994 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8995 register for push instruction recording.
8997 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8999 * arm-tdep.c (thumb_record_misc): Update to correct logical
9000 error while recording ldm, ldmia and pop instructions.
9002 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9004 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9006 2014-01-15 Pedro Alves <palves@redhat.com>
9008 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9009 (go32_resume, go32_fetch_registers, store_register)
9010 (go32_store_registers, go32_prepare_to_store)
9011 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9012 (go32_create_inferior, go32_can_run, go32_terminal_init)
9013 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9016 2014-01-15 Tom Tromey <tromey@redhat.com>
9018 * target.h (async_callback_ftype): New typedef.
9019 (struct target_ops) <to_async>: Use it.
9021 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9023 * python/py-value.c (get_field_type): Remove unnecessary curly
9024 braces for single-statement if block.
9026 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9028 * python/py-type.c (convert_field): Add missing empty line
9031 2014-01-14 Doug Evans <dje@google.com>
9033 * symfile.h (expand_symtabs_matching): Renamed from
9034 expand_partial_symbol_names. Update prototype.
9035 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9036 * symfile.c (expand_symtabs_matching): Renamed from
9037 expand_partial_symbol_names. New args file_matcher, kind.
9038 Rename arg fun to symbol_matcher.
9039 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9040 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9041 ada_expand_partial_symbol_name.
9042 (ada_make_symbol_completion_list): Update to call
9043 expand_symtabs_matching.
9044 (ada_add_global_exceptions): Call expand_symtabs_matching.
9045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9046 call map_symbol_filenames.
9047 * symtab.c (sources_info): Update to call map_symbol_filenames.
9048 (search_symbols): Call expand_symtabs_matching.
9049 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9050 (default_make_symbol_completion_list_break_on): Update to call
9051 expand_symtabs_matching.
9052 (make_source_files_completion_list): Update to call
9053 map_symbol_filenames.
9055 2014-01-14 Doug Evans <dje@google.com>
9057 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9058 (expand_symtabs_symbol_matcher_ftype): New typedef.
9059 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9060 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9061 * symfile.c (expand_partial_symbol_names): Update to use
9062 expand_symtabs_symbol_matcher_ftype.
9063 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9064 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9065 Arg name_matcher renamed to symbol_matcher.
9066 * psymtab.c (recursively_search_psymtabs): Update to use
9067 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9069 (expand_symtabs_matching_via_partial): Update to use
9070 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9071 Arg name_matcher renamed to symbol_matcher.
9073 2014-01-14 Doug Evans <dje@google.com>
9075 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9076 (map_partial_symbol_filenames): Ditto.
9077 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9078 (map_partial_symbol_filenames): Ditto.
9079 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9080 (map_partial_symbol_filenames): Ditto.
9081 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9082 (map_partial_symbol_filenames): Ditto.
9083 * symtab.c: Delete #include "psymtab.h".
9085 2014-01-14 Pedro Alves <palves@redhat.com>
9086 Tom Tromey <tromey@redhat.com>
9088 * infrun.c (use_displaced_stepping): Use find_record_target
9089 instead of RECORD_IS_USED.
9090 (adjust_pc_after_break): Use record_full_is_used instead of
9092 * record-btrace.c (record_btrace_open): Call record_preopen
9093 instead of checking RECORD_IS_USED.
9094 * record-full.c (record_full_shortname)
9095 (record_full_core_shortname): New globals.
9096 (record_full_is_used): New function.
9097 (find_full_open): Call record_preopen instead of checking
9099 (init_record_full_ops): Set the target's shortname to
9100 record_full_shortname.
9101 (init_record_full_core_ops): Set the target's shortname to
9102 record_full_core_shortname.
9103 * record-full.h (record_full_is_used): Declare.
9104 * record.c (find_record_target): Make extern.
9105 (record_preopen): New function.
9106 * record.h (RECORD_IS_USED): Delete macro.
9107 (find_record_target, record_preopen): Declare functions.
9109 2014-01-14 Yao Qi <yao@codesourcery.com>
9111 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9112 'len''s type to ULONGEST.
9113 (core_xfer_shared_libraries_aix): Likewise.
9114 * gdbarch.c, gdbarch.h: Regenerated.
9115 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9116 Change type of 'len' to ULONGEST.
9117 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9118 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9120 2014-01-14 Yao Qi <yao@codesourcery.com>
9122 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9123 type of 'len' to ULONGEST.
9124 (linux_xfer_osdata_processgroups): Likewise.
9125 (linux_xfer_osdata_threads): Likewise.
9126 (linux_xfer_osdata_fds): Likewise.
9127 (linux_xfer_osdata_isockets): Likewise.
9128 (linux_xfer_osdata_shm): Likewise.
9129 (linux_xfer_osdata_sem): Likewise.
9130 (linux_xfer_osdata_msg): Likewise.
9131 (linux_common_xfer_osdata): Likewise.
9132 (struct osdata_type) <getter>: Likewise.
9133 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9136 2014-01-14 Yao Qi <yao@codesourcery.com>
9138 * target.h (target_xfer_partial_ftype): Update.
9139 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9141 * aix-thread.c (aix_thread_xfer_partial): Change type of
9142 argument 'len' to ULONGEST.
9143 * auxv.c (procfs_xfer_auxv): Likewise.
9144 (ld_so_xfer_auxv): Likewise.
9145 (memory_xfer_auxv): Likewise.
9146 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9147 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9148 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9149 * corelow.c (core_xfer_partial): Likewise.
9150 * ctf.c (ctf_xfer_partial): Likewise.
9151 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9153 (darwin_read_dyld_info): Likewise.
9154 (darwin_xfer_partial): Likewise.
9155 * exec.c (section_table_xfer_memory_partial): Likewise.
9156 (exec_xfer_partial): Likewise.
9157 * exec.h (section_table_xfer_memory_partial): Update
9159 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9160 instead of plongest.
9161 (gnu_xfer_partial): Likewise.
9162 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9163 (ia64_hpux_xfer_solib_got): Likewise.
9164 (ia64_hpux_xfer_partial): Likewise.
9165 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9166 * inf-ptrace.c (inf_ptrace_xfer_partial):
9167 * inf-ttrace.c (inf_ttrace_xfer_partial):
9168 * linux-nat.c (linux_xfer_siginfo): Likewise.
9169 (linux_nat_xfer_partial): Likewise.
9170 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9171 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9172 * monitor.c (monitor_xfer_memory): Likewise.
9173 (monitor_xfer_partial): Likewise.
9174 * procfs.c (procfs_xfer_partial): Likewise.
9175 * record-full.c (record_full_xfer_partial): Likewise.
9176 (record_full_core_xfer_partial): Likewise.
9177 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9178 instead of plongest.
9179 (gdbsim_xfer_partial): Likewise.
9180 * remote.c (remote_xfer_partial): Likewise.
9181 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9182 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9184 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9185 (rs6000_xfer_shared_libraries): Likewise.
9186 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9187 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9188 (sparc_xfer_partial): Likewise.
9189 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9190 (spu_xfer_partial): Likewise.
9191 * spu-multiarch.c (spu_xfer_partial): Likewise.
9192 * target.c (target_read_live_memory): Likewise.
9193 (memory_xfer_live_readonly_partial): Likewise.
9194 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9195 (target_xfer_partial, default_xfer_partial): Likewise.
9196 (current_xfer_partial): Likewise.
9197 * tracepoint.c (tfile_xfer_partial): Likewise.
9198 * windows-nat.c (windows_xfer_memory): Likewise. Call
9199 pulongest instead of plongest.
9200 (windows_xfer_partial): Likewise.
9201 (windows_xfer_shared_libraries): Likewise.
9203 2014-01-14 Yao Qi <yao@codesourcery.com>
9205 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9206 target_xfer_partial_ftype.
9208 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9212 * valops.c (value_struct_elt_bitpos): New function
9213 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9214 object to 'None' if the field name is an empty string ("").
9215 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9216 attribute to look for a field when 'name' is 'None'.
9217 (get_field_type): New function
9219 2014-01-13 Doug Evans <dje@google.com>
9222 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9223 (try_open_dwop_file): Ditto.
9224 * gdb_bfd.c: #include "vec.h".
9225 (bfdp): New typedef.
9226 (struct gdb_bfd_data): New member included_bfds.
9227 (gdb_bfd_unref): Unref all included bfds.
9228 (gdb_bfd_record_inclusion): New function.
9229 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9231 2014-01-13 Tom Tromey <tromey@redhat.com>
9233 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9235 2014-01-13 Tom Tromey <tromey@redhat.com>
9237 * defs.h (use_windows): Remove.
9238 * gdb.c (main): Update.
9239 * main.c (captured_main, gdb_main): Update.
9240 * main.h (struct captured_main_args) <use_windows>: Remove.
9241 * top.c (use_windows): Remove.
9243 2014-01-13 Tom Tromey <tromey@redhat.com>
9245 * defs.h (deprecated_flush_hook): Remove.
9247 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9250 * linux-thread-db.c (try_thread_db_load): Add parameter
9251 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9252 (try_thread_db_load_from_pdir_1): Move it there from here.
9253 (try_thread_db_load_from_sdir): Update caller.
9254 (try_thread_db_load_from_dir): Move it there from here.
9256 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9258 * regformats/regdat.sh: Always rewrite the register file.
9260 2014-01-13 Pedro Alves <palves@redhat.com>
9262 * Makefile.in (CHECK_HEADERS): New variable.
9263 (check-headers:): New rule.
9265 2014-01-13 Tom Tromey <tromey@redhat.com>
9267 * cli/cli-setshow.c (do_set_command): Update.
9268 * defs.h (deprecated_set_hook): Remove.
9269 * top.c (deprecated_set_hook): Remove.
9271 2014-01-13 Pedro Alves <palves@redhat.com>
9273 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9274 the tracepoint if the PC is a pseudo-register.
9276 2014-01-13 Tom Tromey <tromey@redhat.com>
9278 * defs.h (XCALLOC): Remove.
9279 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9280 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9281 * dwarf2loc.c (allocate_piece_closure): Likewise.
9282 * elfread.c (elf_symfile_segments): Likewise.
9283 (elf_symfile_segments): Likewise.
9284 * gdbtypes.c (copy_type_recursive): Likewise.
9285 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9286 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9287 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9289 * mt-tdep.c (mt_gdbarch_init): Likewise.
9290 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9292 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9293 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9294 * registry.c (registry_alloc_data): Likewise.
9295 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9296 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9297 * serial.c (serial_fdopen_ops): Likewise.
9298 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9300 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9301 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9304 2014-01-13 Tom Tromey <tromey@redhat.com>
9306 * defs.h (XMALLOC): Remove.
9307 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9308 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9309 * cli-out.c (struct ui_out *): Likewise.
9310 * cli/cli-dump.c (add_dump_command): Likewise.
9311 (add_dump_command): Likewise.
9312 * complaints.c (get_complaints): Likewise.
9313 (find_complaint): Likewise.
9314 * dwarf2-frame.c (execute_cfa_program): Likewise.
9315 * dwarf2read.c (abbrev_table_read_table): Likewise.
9316 * gdbarch.sh: Likewise.
9317 * gdbarch.c: Rebuild.
9318 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9319 * interps.c (interp_new): Likewise.
9320 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9321 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9322 * mi/mi-console.c (mi_console_file_new): Likewise.
9323 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9324 * mi/mi-out.c (mi_out_new): Likewise.
9325 * mi/mi-parse.c (mi_parse): Likewise.
9326 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9327 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9328 * observer.c (xalloc_observer_list_node): Likewise.
9329 * regcache.c (regcache_xmalloc_1): Likewise.
9330 * reggroups.c (reggroup_new): Likewise.
9331 (_initialize_reggroup): Likewise.
9332 * registry.c (register_data_with_cleanup): Likewise.
9333 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9334 * ser-base.c (serial_ttystate): Likewise.
9335 * ser-mingw.c (make_pipe_state): Likewise.
9336 * ser-pipe.c (pipe_open): Likewise.
9337 * serial.c (serial_open): Likewise.
9338 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9339 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9340 (tui_alloc_win_info): Likewise.
9341 (tui_add_content_elements): Likewise.
9342 * tui/tui-file.c (tui_file_new): Likewise.
9343 * tui/tui-out.c (tui_out_new): Likewise.
9344 * ui-file.c (mem_file_new): Likewise.
9345 * ui-out.c (push_level): Likewise.
9346 (make_cleanup_ui_out_end): Likewise.
9347 (append_header_to_list): Likewise.
9348 (ui_out_new): Likewise.
9349 * user-regs.c (user_reg_add_builtin): Likewise.
9351 2014-01-13 Tom Tromey <tromey@redhat.com>
9353 * defs.h (XZALLOC): Remove.
9354 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9355 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9356 (get_ada_tasks_inferior_data): Likewise.
9357 * auto-load.c (get_auto_load_pspace_data): Likewise.
9358 * auxv.c (get_auxv_inferior_data): Likewise.
9359 * bfd-target.c (target_bfd_reopen): Likewise.
9360 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9361 (deprecated_insert_raw_breakpoint): Likewise.
9362 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9363 * corelow.c (core_open): Likewise.
9364 * darwin-nat.c (darwin_check_new_threads): Likewise.
9365 (darwin_attach_pid): Likewise.
9366 * dummy-frame.c (dummy_frame_push): Likewise.
9367 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9368 * dwarf2loc.c (allocate_piece_closure): Likewise.
9369 * elfread.c (elf_symfile_segments): Likewise.
9370 * eval.c (ptrmath_type_p): Likewise.
9371 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9372 * gdbtypes.c (alloc_type_arch): Likewise.
9373 (alloc_type_instance): Likewise.
9374 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9375 * inf-child.c (inf_child_can_use_agent): Likewise.
9376 * inflow.c (get_inflow_inferior_data): Likewise.
9377 * infrun.c (save_infcall_suspend_state): Likewise.
9378 * jit.c (jit_reader_load): Likewise.
9379 (get_jit_objfile_data): Likewise.
9380 (get_jit_program_space_data): Likewise.
9381 (jit_object_open_impl): Likewise.
9382 (jit_symtab_open_impl): Likewise.
9383 (jit_block_open_impl): Likewise.
9384 (jit_frame_sniffer): Likewise.
9385 * linux-fork.c (add_fork): Likewise.
9386 * maint.c (make_command_stats_cleanup): Likewise.
9387 * objfiles.c (get_objfile_pspace_data): Likewise.
9388 * opencl-lang.c (struct lval_closure): Likewise.
9389 * osdata.c (osdata_start_osdata): Likewise.
9390 * progspace.c (new_address_space): Likewise.
9391 (add_program_space): Likewise.
9392 * remote-sim.c (get_sim_inferior_data): Likewise.
9393 * sh-tdep.c (sh_gdbarch_init): Likewise.
9394 * skip.c (Ignore): Likewise.
9395 (skip_delete_command): Likewise.
9396 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9397 (library_list_start_library): Likewise.
9398 (solib_aix_current_sos): Likewise.
9399 * solib-darwin.c (get_darwin_info): Likewise.
9400 (darwin_current_sos): Likewise.
9401 * solib-dsbt.c (get_dsbt_info): Likewise.
9402 * solib-ia64-hpux.c (new_so_list): Likewise.
9403 (ia64_hpux_get_solib_linkage_addr): Likewise.
9404 * solib-spu.c (append_ocl_sos): Likewise.
9405 (spu_current_sos): Likewise.
9406 * solib-svr4.c (get_svr4_info): Likewise.
9407 (svr4_keep_data_in_core): Likewise.
9408 (library_list_start_library): Likewise.
9409 (svr4_default_sos): Likewise.
9410 (svr4_read_so_list): Likewise.
9411 * solib-target.c (library_list_start_library): Likewise.
9412 (solib_target_current_sos): Likewise.
9413 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9414 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9415 * symfile.c (default_symfile_segments): Likewise.
9416 * target-descriptions.c (tdesc_data_init): Likewise.
9417 (tdesc_create_reg): Likewise.
9418 (struct tdesc_type *): Likewise.
9419 (tdesc_create_vector): Likewise.
9420 (tdesc_set_struct_size): Likewise.
9421 (struct tdesc_type *): Likewise.
9422 (tdesc_free_feature): Likewise.
9423 (tdesc_create_feature): Likewise.
9424 * windows-nat.c (windows_add_thread): Likewise.
9425 (windows_make_so): Likewise.
9426 * xml-support.c (gdb_xml_body_text): Likewise.
9427 (gdb_xml_create_parser_and_cleanup): Likewise.
9428 (xml_process_xincludes): Likewise.
9429 * xml-syscall.c (allocate_syscalls_info): Likewise.
9430 (syscall_create_syscall_desc): Likewise.
9432 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9434 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9435 function, with code from i386_stap_parse_special_token.
9436 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9437 (i386_stap_parse_special_token): Move code to the two functions
9440 2014-01-09 Pedro Alves <palves@redhat.com>
9441 Hui Zhu <hui@codesourcery.com>
9444 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9445 bp_err_string. Don't mark the location shlib_disabled if the
9446 error thrown wasn't a generic or memory error. Catch errors
9447 thrown while inserting breakpoints in overlayed code. Output
9448 error message of software breakpoints.
9449 * remote.c (remote_insert_breakpoint): If this breakpoint has
9450 target-side commands but this stub doesn't support Z0 packets,
9451 throw NOT_SUPPORTED_ERROR error.
9452 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9453 * target.h (target_insert_breakpoint): Extend comment.
9454 (target_insert_hw_breakpoint): Add comment.
9456 2014-01-08 Pedro Alves <palves@redhat.com>
9458 * remote.c (remote_add_thread): Add threads silently if starting
9460 (remote_notice_new_inferior): If in all-stop, and starting up,
9461 don't call notice_new_inferior.
9462 (get_current_thread): New function, factored out from ...
9463 (add_current_inferior_and_thread): ... this. Adjust.
9464 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9465 found any thread, then select the remote's current thread as GDB's
9468 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9470 * NEWS: Create a new section for the next release branch.
9471 Rename the section of the current branch, now that it has
9474 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9476 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9477 * version.in: Bump version to 7.7.50.DATE-cvs.
9479 2014-01-08 Yao Qi <yao@codesourcery.com>
9481 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9482 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9483 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9485 2014-01-08 Yao Qi <yao@codesourcery.com>
9487 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9488 return value of bfd_get_filename to symbol_file_add_from_bfd.
9490 2014-01-08 Pierre Muller <muller@sourceware.org>
9493 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9494 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9495 to prim_record_mininal_symbol_and_info.
9496 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9497 in call to prim_record_minimal_symbol_and_info.
9498 (read_pe_exported_syms): Set index field of section_data.
9500 2014-01-07 Andrew Pinski <apinski@cavium.com>
9502 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9503 * features/aarch64.c: Regenerate.
9505 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9507 * target.c (return_null): Define.
9508 (update_current_target): Use it instead of return_zero for
9509 functions that return a pointer.
9511 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9513 * source.c (add_path): Fix check for duplicated paths in the previously
9516 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9518 * ada-lang.c: Remove duplicated include statements.
9519 * alphabsd-nat.c: Ditto.
9520 * amd64-darwin-tdep.c: Ditto.
9521 * amd64fbsd-nat.c: Ditto.
9522 * auto-load.c: Ditto.
9524 * breakpoint.c: Ditto.
9526 * fork-child.c: Ditto.
9527 * gdb_usleep.c: Ditto.
9528 * i386-darwin-tdep.c: Ditto.
9529 * i386fbsd-nat.c: Ditto.
9531 * inferior.c: Ditto.
9533 * linux-nat.c: Ditto.
9534 * linux-tdep.c: Ditto.
9535 * m68kbsd-nat.c: Ditto.
9536 * m68klinux-nat.c: Ditto.
9537 * microblaze-tdep.c: Ditto.
9538 * mips-linux-tdep.c: Ditto.
9539 * mn10300-tdep.c: Ditto.
9540 * nto-tdep.c: Ditto.
9541 * opencl-lang.c: Ditto.
9543 * printcmd.c: Ditto.
9544 * regcache.c: Ditto.
9545 * remote-m32r-sdi.c: Ditto.
9549 * tilegx-linux-nat.c: Ditto.
9550 * tilegx-tdep.c: Ditto.
9551 * tracepoint.c: Ditto.
9553 * vaxbsd-nat.c: Ditto.
9554 * windows-nat.c: Ditto.
9555 * xtensa-tdep.c: Ditto.
9557 2014-01-07 Yao Qi <yao@codesourcery.com>
9559 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9561 2014-01-07 Yao Qi <yao@codesourcery.com>
9562 Joel Brobecker <brobecker@adacore.com>
9564 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9565 (pdc_write_regs): Likewise.
9566 (fetch_regs_kernel_thread): Likewise.
9567 (store_regs_kernel_thread): Likewise.
9569 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9571 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9572 tagged type objects to their actual type.
9574 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9576 * ada-valprint.c (print_field_values): Add "language" parameter.
9577 Update calls to print_field_values and print_variant_part.
9578 Pass new parameter "language" in call to val_print instead
9579 of "current_language". Replace call to ada_val_print by call
9581 (print_variant_part): Add "language" parameter.
9582 (ada_val_print_struct_union): Update call to print_field_values.
9584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9586 * ada-valprint.c (ui_memcpy): Delete.
9587 (ada_print_floating): Update documentation. Add empty line
9588 between between function documentation and implementation.
9589 Delete variable "buffer". Use ui_file_xstrdup in place of
9590 ui_file_put. Minor adjustments following this change.
9592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9594 * ada-valprint.c (ada_val_print_string): New function,
9595 extracted from ada_val_print_array.
9596 (ada_val_print_array): Replace extracted code by call
9597 to ada_val_print_string followed by a return. Move
9598 "else" branch to the function's top block.
9600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9602 * ada-valprint.c (ada_val_print_array): Move implementation
9603 down. Rename parameter "offset" and "val" into "offset_aligned"
9604 and "original_value" respectively. Add parameter "offset".
9606 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9608 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9609 re-organizing the code. Change the "???" message printed
9610 when target type is a TYPE_CODE_UNDEF into
9611 "<ref to undefined type>".
9613 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9615 * ada-valprint.c (print_record): Delete, implementation inlined...
9616 (ada_val_print_struct_union): ... here. Remove call to
9617 ada_check_typedef in inlined implementation.
9619 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9621 * ada-valprint.c (ada_val_print_gnat_array): New function,
9622 extracted from ada_val_print_1;
9623 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9624 (ada_val_print_flt, ada_val_print_struct_union)
9625 (ada_val_print_ref): Likewise.
9626 (ada_val_print_1): Delete variables i and elttype.
9627 Replace extracted-out code by call to corresponding
9630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9632 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9636 * ada-valprint.c (ada_val_print_1): Replace calls to
9637 ada_val_print_1 by calls to val_print.
9639 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9641 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9642 Update calls to self accordingly. Replace calls to c_val_print
9643 by calls to val_print.
9645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9647 * ada-valprint.c (print_record): Delete declaration.
9648 (adjust_type_signedness, ada_val_print_1): Likewise.
9649 (ada_val_print): Move function implementation down.
9650 (print_variant_part, print_field_values, print_record):
9651 Move function implementation up.
9653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9655 * python/py-type.c (typy_get_name): New function.
9656 (type_object_getset): Add entry for attribute "name".
9657 * NEWS: Add entry mentioning this new attribute.
9659 2014-01-07 Yao Qi <yao@codesourcery.com>
9661 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9664 2014-01-07 Yao Qi <yao@codesourcery.com>
9666 * gnu-nat.c (info_port_rights): Add qualifier const to
9669 2014-01-07 Yao Qi <yao@codesourcery.com>
9671 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9673 2014-01-07 Yao Qi <yao@codesourcery.com>
9675 * gnu-nat.c (make_inf) Update declaration.
9676 (make_inf): Make it static.
9677 (inf_set_traced): Likewise.
9678 (inf_port_to_thread, inf_task_died_status): Likewise.
9680 2014-01-07 Yao Qi <yao@codesourcery.com>
9682 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9684 2014-01-07 Yao Qi <yao@codesourcery.com>
9686 * gnu-nat.c (_initialize_gnu_nat): Declare.
9688 2014-01-07 Yao Qi <yao@codesourcery.com>
9690 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9692 (struct gdbarch_info) <byte_order>: Change type to
9694 <byte_order_for_code>: Likewise.
9695 * gdbarch.c, gdbarch.h: Regenerated.
9697 2014-01-06 Sasha Smundak <asmundak@google.com>
9699 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9701 2014-01-06 Tom Tromey <tromey@redhat.com>
9703 * doublest.c (convert_doublest_to_floatformat): Use const, not
9705 * somread.c (som_symtab_read): Likewise.
9707 2014-01-07 Hui Zhu <hui@codesourcery.com>
9709 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9710 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9711 (gdb_bfd_fopen): Ditto.
9712 (gdb_bfd_openr): Ditto.
9713 (gdb_bfd_openw): Ditto.
9714 (gdb_bfd_openr_iovec): Ditto.
9715 (gdb_bfd_fdopenr): Ditto.
9716 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9717 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9719 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9721 * symfile-mem.c (symbol_file_add_from_memory): Removed
9722 gdb_bfd_stash_filename.
9724 2014-01-03 Doug Evans <dje@google.com>
9726 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9729 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9731 Update year range in copyright notice of all files.
9733 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9735 * top.c (print_gdb_version): Set copyright year to 2014.
9737 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9739 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9741 For older changes see ChangeLog-2013.
9747 version-control: never