1 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3 * target.h (target_ops) <to_prepare_to_generate_core>
4 <to_done_generating_core>: New.
5 (target_prepare_to_generate_core, target_done_generating_core): New.
6 * target.c (target_prepare_to_generate_core)
7 (target_done_generating_core): New.
8 * target-delegates.c: Regenerate.
9 * gcore.c: (write_gcore_file): Rename to ...
10 (write_gcore_file_1): ...this.
11 (write_gcore_file): Call target_prepare_to_generate_core
12 and target_done_generating_core.
14 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
16 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
17 * gcore.c (write_gcore_file): Free memory returned from
19 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
20 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
22 2014-06-24 Yao Qi <yao@codesourcery.com>
24 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
25 (arm_linux_init_abi): Set skip_trampoline_code with
26 gdbarch_skip_trampoline_code instead of
27 find_solib_trampoline_target.
29 2014-06-24 Yao Qi <yao@codesourcery.com>
31 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
32 arm_skip_bx_reg returns non-zero.
34 2014-06-24 Yao Qi <yao@codesourcery.com>
36 * arm-tdep.c (arm_skip_bx_reg): New function.
37 (arm_skip_stub): Call arm_skip_bx_reg.
39 2014-06-23 Don Breazeal <donb@codesourcery.com>
41 * MAINTAINERS: Add myself as write-after-approval maintainer.
43 2014-06-23 Pedro Alves <palves@redhat.com>
45 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
46 DR_CONTROL before setting DR0..DR3.
47 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
48 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
49 bits of DR_CONTROL related to the debug register slot being
50 disabled. If all slots are vacant, clear local slowdown as well,
51 and assert DR_CONTROL is 0.
53 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
55 * python/lib/gdb/command/xmethods.py
56 (get_method_matchers_in_loci): Lookup xmethod matchers in the
57 current progspace only if the string "progspace" matches LOCUS_RE.
59 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
61 Fix --with-system-readline with readline-6.3 patch 5.
62 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
63 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
66 2014-06-20 Tom Tromey <tromey@redhat.com>
68 * dwarf2read.c (dw2_get_real_path): Use correct type in
70 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
72 2014-06-20 Gary Benson <gbenson@redhat.com>
74 * common/gdb_thread_db.h: Moved to nat. All includes updated.
75 * common/glibc_thread_db.h: Likewise.
76 * common/i386-cpuid.h: Likewise.
77 * common/i386-gcc-cpuid.h: Likewise.
78 * common/linux-btrace.h: Likewise.
79 * common/linux-osdata.h: Likewise.
80 * common/linux-procfs.h: Likewise.
81 * common/linux-ptrace.h: Likewise.
82 * common/mips-linux-watch.h: Likewise.
83 * common/linux-btrace.c: Moved to nat.
84 * common/linux-osdata.c: Likewise.
85 * common/linux-procfs.c: Likewise.
86 * common/linux-ptrace.c: Likewise.
87 * common/mips-linux-watch.c: Likewise.
88 * nat/gdb_thread_db.h: Moved from common.
89 * nat/glibc_thread_db.h: Likewise.
90 * nat/i386-cpuid.h: Likewise.
91 * nat/i386-gcc-cpuid.h: Likewise.
92 * nat/linux-btrace.c: Likewise.
93 * nat/linux-btrace.h: Likewise.
94 * nat/linux-osdata.c: Likewise.
95 * nat/linux-osdata.h: Likewise.
96 * nat/linux-procfs.c: Likewise.
97 * nat/linux-procfs.h: Likewise.
98 * nat/linux-ptrace.c: Likewise.
99 * nat/linux-ptrace.h: Likewise.
100 * nat/mips-linux-watch.c: Likewise.
101 * nat/mips-linux-watch.h: Likewise.
102 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
103 (object file files): Reordered.
104 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
105 of glibc_thread_db.h.
107 2014-06-20 Gary Benson <gbenson@redhat.com>
109 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
110 (i386_dr_low_type): Moved to nat/i386-dregs.h.
111 (i386_dr_low): Likewise.
112 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
113 (i386_dr_low_set_addr): Likewise.
114 (i386_dr_low_get_addr): Likewise.
115 (i386_dr_low_can_set_control): Likewise.
116 (i386_dr_low_set_control): Likewise.
117 (i386_dr_low_get_control): Likewise.
118 (i386_dr_low_get_status): Likewise.
119 (i386_get_debug_register_length): Likewise.
120 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
121 (i386_dr_low): Likewise.
122 * nat/i386-dregs.c (i386-low.h): Remove include.
123 (i386-nat.h): Likewise.
124 (nat/i386-dregs.h): New include.
125 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
126 (i386_dr_low_set_addr): Likewise.
127 (i386_dr_low_get_addr): Likewise.
128 (i386_dr_low_can_set_control): Likewise.
129 (i386_dr_low_set_control): Likewise.
130 (i386_dr_low_get_control): Likewise.
131 (i386_dr_low_get_status): Likewise.
132 (i386_get_debug_register_length): Likewise.
133 (debug_hw_points): Likewise.
135 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
137 * Makefile.in (SFILES): Add d-exp.y.
138 (YYFILES): Add d-exp.c.
139 (YYOBJ): Add d-exp.o.
140 (local-maintainer-clean): Delete d-exp.c.
142 * d-lang.h (d_parse): New declaration.
143 (d_error): New declaration.
144 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
145 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
146 PREC_ORDER operators.
147 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
149 2014-06-19 Yao Qi <yao@codesourcery.com>
151 * gdbthread.h (any_running): Remove the declaration.
152 * thread.c (any_running): Remove.
154 2014-06-19 Yao Qi <yao@codesourcery.com>
156 * gdbthread.h (struct thread_info) <state>: Change its type to
157 'enum thread_state'. Update comments.
159 2014-06-19 Pedro Alves <palves@redhat.com>
161 * gdbthread.h (ALL_THREADS): Delete.
162 (ALL_NON_EXITED_THREADS): New macro.
163 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
164 instead of ALL_THREADS.
165 * infrun.c (find_thread_needs_step_over)
166 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
167 instead of ALL_THREADS.
168 * record-btrace.c (record_btrace_open)
169 (record_btrace_stop_recording, record_btrace_close)
170 (record_btrace_is_replaying, record_btrace_resume)
171 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
172 * remote.c (append_pending_thread_resumptions): Likewise.
173 * thread.c (thread_apply_all_command): Likewise.
175 2014-06-19 Gary Benson <gbenson@redhat.com>
177 * i386-nat.c (i386_stopped_by_watchpoint):
178 Use i386_dr_stopped_by_watchpoint.
179 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
180 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
182 2014-06-19 Gary Benson <gbenson@redhat.com>
184 * nat/i386-dregs.c: New file.
185 * Makefile.in (i386-dregs.o): New rule.
186 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
187 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
188 * config/i386/darwin.mh (NATDEPFILES): Likewise.
189 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
190 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
191 * config/i386/go32.mh (NATDEPFILES): Likewise.
192 * config/i386/linux.mh (NATDEPFILES): Likewise.
193 * config/i386/linux64.mh (NATDEPFILES): Likewise.
194 * config/i386/mingw.mh (NATDEPFILES): Likewise.
195 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
196 * i386-nat.h (debug_hw_points): New declaration.
197 * i386-nat.c (breakpoint.h): Remove include.
198 (command.h): Likewise.
199 (target.h): Likewise.
200 (gdb_assert.h): Likewise.
201 (debug_hw_points): Made nonstatic.
202 (debug_printf): Now in i386-dregs.c.
203 (TARGET_HAS_DR_LEN_8): Likewise.
204 (DR_CONTROL_SHIFT): Likewise.
205 (DR_CONTROL_SIZE): Likewise.
206 (DR_RW_EXECUTE): Likewise.
207 (DR_RW_WRITE): Likewise.
208 (DR_RW_READ): Likewise.
209 (DR_RW_IORW): Likewise.
210 (DR_LEN_1): Likewise.
211 (DR_LEN_2): Likewise.
212 (DR_LEN_4): Likewise.
213 (DR_LEN_8): Likewise.
214 (DR_LOCAL_ENABLE_SHIFT): Likewise.
215 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
216 (DR_ENABLE_SIZE): Likewise.
217 (DR_LOCAL_SLOWDOWN): Likewise.
218 (DR_GLOBAL_SLOWDOWN): Likewise.
219 (DR_CONTROL_RESERVED): Likewise.
220 (I386_DR_CONTROL_MASK): Likewise.
221 (I386_DR_VACANT): Likewise.
222 (I386_DR_LOCAL_ENABLE): Likewise.
223 (I386_DR_GLOBAL_ENABLE): Likewise.
224 (I386_DR_DISABLE): Likewise.
225 (I386_DR_SET_RW_LEN): Likewise.
226 (I386_DR_GET_RW_LEN): Likewise.
227 (I386_DR_WATCH_HIT): Likewise.
228 (i386_wp_op_t): Likewise.
229 (i386_show_dr): Likewise.
230 (i386_length_and_rw_bits): Likewise.
231 (i386_insert_aligned_watchpoint): Likewise.
232 (i386_remove_aligned_watchpoint): Likewise.
233 (i386_handle_nonaligned_watchpoint): Likewise.
234 (i386_update_inferior_debug_regs): Likewise.
235 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
236 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
237 (i386_region_ok_for_watchpoint):
238 Use i386_dr_region_ok_for_watchpoint.
239 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
241 2014-06-19 Gary Benson <gbenson@redhat.com>
243 * i386-nat.c (i386_insert_hw_breakpoint): Use
244 i386_insert_watchpoint.
245 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
247 2014-06-19 Gary Benson <gbenson@redhat.com>
249 * i386-nat.c (i386_dr_show): Renamed to
250 i386_show_dr and made static. All uses updated.
251 (i386_dr_length_and_rw_bits): Renamed to
252 i386_length_and_rw_bits and made static.
254 (i386_dr_insert_aligned_watchpoint): Renamed to
255 i386_insert_aligned_watchpoint and made static.
257 (i386_dr_remove_aligned_watchpoint): Renamed to
258 i386_remove_aligned_watchpoint and made static.
260 (i386_dr_update_inferior_debug_regs): Renamed to
261 i386_update_inferior_debug_regs and made static.
263 * nat/i386-dregs.h (i386_dr_show): Removed.
264 (i386_dr_length_and_rw_bits): Likewise.
265 (i386_dr_insert_aligned_watchpoint): Likewise.
266 (i386_dr_remove_aligned_watchpoint): Likewise.
267 (i386_dr_update_inferior_debug_regs): Likewise.
269 2014-06-19 Gary Benson <gbenson@redhat.com>
271 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
272 * configure: Regenerate.
273 * config.in: Likewise.
274 * main.c (signal.h): New include.
275 (setup_alternate_signal_stack): New function.
276 (captured_main): Call the above.
277 * cp-support.c (signal.h): New include.
278 (catch_demangler_crashes): New flag.
279 (SIGJMP_BUF): New define.
280 (SIGSETJMP): Likewise.
281 (SIGLONGJMP): Likewise.
282 (gdb_demangle_jmp_buf): New static global.
283 (gdb_demangle_attempt_core_dump): Likewise.
284 (gdb_demangle_signal_handler): New function.
285 (gdb_demangle): If catch_demangler_crashes is set, install the
286 above signal handler before calling bfd_demangle, and restore
287 the original signal handler afterwards. Display the offending
288 symbol and call demangler_warning the first time a segmentation
290 (_initialize_cp_support): New maint set/show command.
292 2014-06-19 Gary Benson <gbenson@redhat.com>
294 * utils.h (resource_limit_kind): New enum.
295 (can_dump_core): New declaration.
296 (warn_cant_dump_core): Likewise.
297 (dump_core): Likewise.
298 * utils.c (dump_core): Made nonstatic. Added new
299 parameter "limit_kind".
300 (can_dump_core): Made nonstatic. Moved printing code to...
301 (warn_cant_dump_core): New function.
302 (can_dump_core_warn): Likewise.
303 (internal_vproblem): Replace calls to can_dump_core with
304 calls to can_dump_core_warn. Supply new argument to each.
306 2014-06-19 Gary Benson <gbenson@redhat.com>
308 * utils.h (demangler_vwarning): New declaration.
309 (demangler_warning): Likewise.
310 * utils.c (struct internal_problem)
311 <user_settable_should_quit>: New field.
312 <user_settable_should_dump_core>: Likewise
313 (internal_error_problem): Add values for above new fields.
314 (internal_warning_problem): Likewise.
315 (demangler_warning_problem): New static global.
316 (demangler_vwarning): New function.
317 (demangler_warning): Likewise.
318 (add_internal_problem_command): Selectively add commands.
319 (_initialize_utils): New internal problem command.
320 * maint.c (maintenance_demangler_warning): New function.
321 (_initialize_maint_cmds): New command.
323 2014-06-18 Tom Tromey <tromey@redhat.com>
325 * f-valprint.c (info_common_command_for_block): Update.
326 * symtab.h (struct general_symbol_info) <common_block>: Now
329 2014-06-18 Tom Tromey <tromey@redhat.com>
331 * symtab.h (struct symtab) <blockvector>: Now const.
332 * ada-lang.c (ada_add_global_exceptions): Update.
333 * buildsym.c (augment_type_symtab): Update.
334 * dwarf2read.c (dw2_lookup_symbol): Update.
335 * jit.c (finalize_symtab): Update.
336 * jv-lang.c (add_class_symtab_symbol): Update.
337 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
339 * objfiles.c (objfile_relocate1): Update.
340 * psymtab.c (lookup_symbol_aux_psymtabs)
341 (maintenance_check_psymtabs): Update.
342 * python/py-symtab.c (stpy_global_block, stpy_static_block):
344 * spu-tdep.c (spu_catch_start): Update.
345 * symmisc.c (dump_symtab_1): Update.
346 * symtab.c (lookup_global_symbol_from_objfile)
347 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
348 (basic_lookup_transparent_type_quick)
349 (basic_lookup_transparent_type, find_pc_sect_symtab)
350 (find_pc_sect_line, search_symbols): Update.
351 * block.c (find_block_in_blockvector): Make "bl" const.
352 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
354 (blockvector_contains_pc): Make "bv" const.
355 (block_for_pc_sect): Update.
356 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
357 (blockvector_contains_pc): Update.
358 * breakpoint.c (resolve_sal_pc): Update.
359 * inline-frame.c (block_starting_point_at): Update.
361 2014-06-18 Tom Tromey <tromey@redhat.com>
363 * completer.c (complete_line): Make "line_buffer" const.
364 * completer.h (complete_line): Update.
366 2014-06-18 Tom Tromey <tromey@redhat.com>
368 * symtab.c (add_macro_name): Remove unneeded cast.
370 2014-06-18 Tom Tromey <tromey@redhat.com>
372 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
373 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
375 2014-06-18 Tom Tromey <tromey@redhat.com>
377 * probe.c (info_probes_for_ops): Make "arg" const.
378 * probe.h (info_probes_for_ops): Update.
380 2014-06-18 Tom Tromey <tromey@redhat.com>
382 * varobj.c (varobj_create): Update.
383 * valops.c (value_of_this): Update.
384 * tracepoint.c (add_local_symbols, scope_info): Update.
385 * symtab.h (struct general_symbol_info) <block>: Now const.
386 * symtab.c (skip_prologue_sal)
387 (default_make_symbol_completion_list_break_on)
388 (skip_prologue_using_sal): Update.
389 * stack.h (iterate_over_block_locals)
390 (iterate_over_block_local_vars): Update.
391 * stack.c (print_frame_args): Update.
392 (iterate_over_block_locals, iterate_over_block_local_vars): Make
394 (get_selected_block): Make return type const.
395 * python/py-frame.c (frapy_block): Update.
396 * python/py-block.c (gdbpy_block_for_pc): Update.
397 * p-exp.y (%union) <bval>: Now const.
398 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
399 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
400 * m2-exp.y (%union) <bval>: Now const.
401 * linespec.c (get_current_search_block): Make return type const.
402 (create_sals_line_offset, find_label_symbols): Update.
403 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
405 (block_starting_point_at): Make "block" const.
406 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
407 (check_exception_resume): Update.
408 * guile/scm-frame.c (gdbscm_frame_block): Update.
409 * guile/scm-block.c (gdbscm_lookup_block): Update.
410 * frame.h (get_frame_block): Update.
411 (get_selected_block): Make return type const.
412 * frame.c (frame_id_inner): Update.
413 * f-valprint.c (info_common_command_for_block)
414 (info_common_command): Update.
415 * dwarf2loc.c (dwarf2_find_location_expression)
416 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
417 (locexpr_describe_location_piece): Update.
418 * c-exp.y (%union) <bval>: Now const.
419 * breakpoint.c (resolve_sal_pc): Update.
420 * blockframe.c (get_frame_block):Make return type const.
421 (get_pc_function_start, get_frame_function, find_pc_sect_function)
422 (block_innermost_frame): Update.
423 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
424 (block_for_pc, block_for_pc_sect): Update.
425 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
427 (block_for_pc_sect, block_for_pc): Make return type const.
428 * ax-gdb.c (gen_expr): Update.
429 * alpha-mdebug-tdep.c (find_proc_desc): Update.
430 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
431 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
432 (ada_read_var_value): Update.
433 * ada-exp.y (struct name_info) <block>: Now const.
435 (block_lookup): Constify.
437 2014-06-18 Gary Benson <gbenson@redhat.com>
439 * nat/i386-dregs.h: New file.
440 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
441 * i386-nat.h (i386-dregs.h): New include.
442 (DR_FIRSTADDR): Now in i386-dregs.h.
443 (DR_LASTADDR): Likewise.
444 (DR_NADDR): Likewise.
445 (DR_STATUS): Likewise.
446 (DR_CONTROL): Likewise.
447 (i386_debug_reg_state): Likewise.
448 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
450 2014-06-18 Don Breazeal <donb@codesourcery.com>
452 * breakpoint.c (set_longjmp_breakpoint): Call
453 momentary_breakpoint_from_master with additional argument.
454 (set_longjmp_breakpoint_for_call_dummy): Call
455 momentary_breakpoint_from_master with additional argument.
456 (set_std_terminate_breakpoint): Call
457 momentary_breakpoint_from_master with additional argument.
458 (momentary_breakpoint_from_master): Add argument to function
459 definition and use it to initialize structure member flag.
460 (clone_momentary_breakpoint): Call
461 momentary_breakpoint_from_master with additional argument.
462 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
463 member flags set in momentary_breakpoint_from_master.
465 2014-06-18 Gary Benson <gbenson@redhat.com>
467 * i386-nat.c (i386_show_dr): Renamed to
468 i386_dr_show and made nonstatic. All uses updated.
469 (i386_length_and_rw_bits): Renamed to
470 i386_dr_length_and_rw_bits and made nonstatic.
472 (i386_insert_aligned_watchpoint): Renamed to
473 i386_dr_insert_aligned_watchpoint and made nonstatic.
475 (i386_remove_aligned_watchpoint): Renamed to
476 i386_dr_remove_aligned_watchpoint and made nonstatic.
478 (i386_update_inferior_debug_regs): Renamed to
479 i386_dr_update_inferior_debug_regs and made nonstatic.
482 2014-06-18 Gary Benson <gbenson@redhat.com>
484 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
485 (i386_dr_low_can_set_control): Likewise.
486 (i386_dr_low_set_addr): Likewise.
487 (i386_dr_low_set_control): Likewise.
488 (i386_dr_low_get_addr): Likewise.
489 (i386_dr_low_get_status): Likewise.
490 (i386_dr_low_get_control): Likewise.
491 (i386_insert_aligned_watchpoint): Use new macros.
492 (i386_update_inferior_debug_regs): Likewise.
493 (i386_stopped_data_address): Likewise.
495 2014-06-18 Gary Benson <gbenson@redhat.com>
497 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
498 New parameter. All uses updated.
500 2014-06-18 Gary Benson <gbenson@redhat.com>
502 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
505 2014-06-18 Gary Benson <gbenson@redhat.com>
507 * i386-nat.c (debug_printf): New macro.
508 (i386_get_debug_register_length): Likewise.
509 (TARGET_HAS_DR_LEN_8): Use above macro.
510 (i386_show_dr): Use debug_printf instead of puts_unfiltered
511 and printf_unfiltered. Use phex to format values.
513 2014-06-18 Gary Benson <gbenson@redhat.com>
515 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
518 2014-06-18 Gary Benson <gbenson@redhat.com>
520 * i386-nat.c: Comment changes.
522 2014-06-18 Gary Benson <gbenson@redhat.com>
524 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
526 2014-06-18 Gary Benson <gbenson@redhat.com>
528 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
529 (i386_insert_aligned_watchpoint): Likewise.
530 (i386_remove_aligned_watchpoint): Likewise.
531 (i386_handle_nonaligned_watchpoint): Likewise.
533 2014-06-18 Gary Benson <gbenson@redhat.com>
535 * i386-nat.c: Whitespace changes.
537 2014-06-17 Samuel Bronson <naesten@gmail.com>
539 * MAINTAINERS: Update Roland McGrath's email address.
540 Thanks to Sergio Durigan Junior for pointing out that he left
541 Red Hat a while ago, and giving me a current address.
543 2014-06-17 Tom Tromey <tromey@redhat.com>
545 * utils.h (savestring): Remove declaration.
547 2014-06-17 Tom Tromey <tromey@redhat.com>
549 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
551 2014-06-16 Keith Seitz <keiths@redhat.com>
554 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
555 to update the varobj if inferior_ptid is null_ptid.
557 2014-06-16 Tom Tromey <tromey@redhat.com>
559 * target.h (struct target_ops) <to_info_proc>: Make parameter
561 (target_info_proc): Update.
562 * target.c (target_info_proc): Make "args" const.
563 * procfs.c (procfs_info_proc): Update.
564 * linux-tdep.c (linux_info_proc): Update.
565 (linux_core_info_proc_mappings): Make "args" const.
566 (linux_core_info_proc): Update.
567 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
568 * gdbarch.c: Rebuild.
569 * gdbarch.h: Rebuild.
570 * corelow.c (core_info_proc): Update.
572 2014-06-16 Tom Tromey <tromey@redhat.com>
574 * target.h (struct target_ops) <to_disconnect>: Make parameter
576 (target_disconnect): Update.
577 * target.c (target_disconnect): Make "args" const.
578 * target-delegates.c: Rebuild.
579 * remote.c (remote_disconnect): Update.
580 * record.h (record_disconnect): Update.
581 * record.c (record_disconnect): Update.
582 * inf-child.c (inf_child_disconnect): Update.
584 2014-06-16 Tom Tromey <tromey@redhat.com>
586 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
587 * target.c (debug_to_rcmd, default_rcmd): Update.
588 * target-delegates.c: Rebuild.
589 * remote.c (remote_rcmd): Update.
590 * monitor.c (monitor_rcmd): Update.
592 2014-06-16 Pedro Alves <palves@redhat.com>
594 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
595 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
596 have OBJF_SHARED set.
597 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
598 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
599 instead of OBJF_USERLOADED.
600 * objfiles.h (OBJF_SHARED): Update comment.
601 (userloaded_objfile_contains_address_p): Rename to ...
602 (shared_objfile_contains_address_p): ... this, and update
604 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
606 (remove_symbol_file_command): Skip objfiles that don't have
609 2014-06-16 Tom Tromey <tromey@redhat.com>
611 * minsyms.h (prim_record_minimal_symbol)
612 (prim_record_minimal_symbol_and_info): Update comments.
614 2014-06-14 Eli Zaretskii <eliz@gnu.org>
616 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
617 or --without-guile, according to how GDB was built.
619 2014-06-13 Tom Tromey <tromey@redhat.com>
621 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
623 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
625 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
627 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
628 help_list.Pass all_commands, not -1, to help_list.
629 * cli/cli-dump.c (dump_command, append_command)
630 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
631 (binary_dump_command, binary_append_command): Pass all_commands,
632 not -1, to help_list.
633 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
635 * valprint.c (set_print, set_print_raw): Pass all_commands, not
637 * typeprint.c (set_print_type): Pass all_commands, not -1, to
639 * top.c (set_history): Pass all_commands, not -1, to help_list.
640 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
641 all_commands, not -1, to help_list.
642 * symfile.c (overlay_command): Pass all_commands, not -1, to
644 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
646 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
648 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
650 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
651 not -1, to help_list.
652 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
653 not -1, to help_list.
654 * maint.c (maintenance_command, maintenance_info_command)
655 (maintenance_print_command, maintenance_set_cmd): Pass
656 all_commands, not -1, to help_list.
657 * macrocmd.c (macro_command): Pass all_commands, not -1, to
659 * language.c (set_check): Pass all_commands, not -1, to help_list.
660 * infcmd.c (unset_command): Pass all_commands, not -1, to
662 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
664 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
666 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
668 * breakpoint.c (save_command): Pass all_commands, not -1, to
670 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
671 all_commands, not -1, to help_list.
673 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
675 * regcache.c (struct register_to_invalidate): New structure.
676 (do_register_invalidate, make_cleanup_regcache_invalidate): New
678 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
680 2014-06-12 Yao Qi <yao@codesourcery.com>
682 * varobj.c (varobj_get_num_children): Call
684 (varobj_list_children): Likewise.
685 (varobj_update): Likewise. Update comments.
687 2014-06-12 Yao Qi <yao@codesourcery.com>
689 * varobj.c (varobj_pretty_printed_p): Rename to ...
690 (varobj_is_dynamic_p): ... this. New function.
691 * varobj.h (varobj_pretty_printed_p): Remove declaration.
692 (varobj_is_dynamic_p): Declare.
693 * mi/mi-cmd-var.c (print_varobj): All callers updated.
694 (mi_print_value_p, varobj_update_one): Likewise.
696 2014-06-12 Pedro Alves <pedro@codesourcery.com>
697 Yao Qi <yao@codesourcery.com>
699 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
700 (varobj_get_iterator): Wrap up code for pretty-printer by
701 "#if HAVE_PYTHON" and "#endif".
702 (update_dynamic_varobj_children): Likewise.
704 2014-06-12 Pedro Alves <pedro@codesourcery.com>
705 Yao Qi <yao@codesourcery.com>
707 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
708 gdb_python_initialized is false. Move some code from varobj.c.
709 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
710 * varobj.c: Move "varobj-iter.h" inclusion earlier.
711 (struct varobj_item): Moved to varobj-iter.h".
712 (varobj_clear_saved_item): New function.
713 (update_dynamic_varobj_children): Move python-related code to
715 (free_variable): Call varobj_clear_saved_item and
718 2014-06-12 Pedro Alves <pedro@codesourcery.com>
719 Yao Qi <yao@codesourcery.com>
721 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
722 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
723 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
724 (py-varobj.o): New rule.
725 * python/py-varobj.c: New file.
726 * python/python-internal.h (py_varobj_get_iterator): Declare.
727 * varobj-iter.h: New file.
728 * varobj.c: Include "varobj-iter.h"
729 (struct varobj) <child_iter>: Change its type from "PyObject *"
730 to "struct varobj_iter *".
731 <saved_item>: Likewise.
732 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
733 [HAVE_PYTHON] (varobj_get_iterator): New function.
734 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
735 python-specific code to python/py-varobj.c.
736 (install_visualizer): Call varobj_iter_delete instead of
738 * varobj.h (varobj_ensure_python_env): Declare.
740 2014-06-12 Yao Qi <yao@codesourcery.com>
742 * varobj.c (struct varobj_item): New structure.
743 (create_child_with_value): Update declaration.
744 (varobj_add_child): Replace arguments 'name' and 'value' with
745 'item'. All callers updated.
746 (install_dynamic_child): Likewise.
747 (update_dynamic_varobj_children): Likewise.
748 (varobj_add_child): Likewise.
749 (create_child_with_value): Likewise.
751 2014-06-11 Joel Brobecker <brobecker@adacore.com>
753 * NEWS: Create a new section for the next release branch.
754 Rename the section of the current branch, now that it has
757 2014-06-11 Joel Brobecker <brobecker@adacore.com>
759 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
760 * version.in: Bump version to 7.8.50.DATE-cvs.
762 2014-06-11 Pedro Alves <palves@redhat.com>
765 * ser-mingw.c (net_windows_socket_check_pending): New function.
766 (net_windows_select_thread): Ignore spurious wakeups. Use
767 net_windows_socket_check_pending.
768 (net_windows_wait_handle): Check for pending events with
769 ioctlsocket, through net_windows_socket_check_pending, instead of
770 checking the socket's event.
772 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
774 * python/python-internal.h (gdb_PyObject_GetAttrString)
775 (gdb_PyObject_HasAttrString): New inline function definitions.
776 * py-value.c (get_field_flag): Remove the now unnecessary cast to
777 char * of the second argument to PyObject_GetAttrString.
779 2014-06-10 Joel Brobecker <brobecker@adacore.com>
781 * serial.c (serial_write): Fix index of character to be printed
782 in call to serial_logchar when serial debug traces are enabled.
784 2014-06-10 Joel Brobecker <brobecker@adacore.com>
786 * gdbtypes (resolve_dynamic_range): Add function description.
788 2014-06-09 Pedro Alves <palves@redhat.com>
790 * linux-nat.c (linux_child_follow_fork): Initialize status with
791 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
792 inner block. Only pass the signal to PTRACE_DETACH if in pass
795 2014-06-09 Gary Benson <gbenson@redhat.com>
797 * common/signals.c (gdb_signal_from_host): Reorder to separate
798 the always-available ANSI-standard signals from the signals that
800 (do_gdb_signal_to_host): Likewise.
801 * proc-events.c (signal_table): Likewise.
803 2014-06-08 Hui Zhu <hui@codesourcery.com>
805 * common/linux-ptrace.c (linux_disable_event_reporting): New
807 * common/linux-ptrace.h (linux_disable_event_reporting): New
809 * linux-nat.c (linux_child_follow_fork): Do a single step before
812 2014-06-07 Keith Seitz <keiths@redhat.com>
816 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
817 from symbol_matches_domain in symtab.c. All local callers
818 of symbol_matches_domain updated.
819 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
820 search STRUCT_DOMAIN.
821 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
822 independently. standard_lookup will do that automatically.
823 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
824 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
825 (cp_lookup_symbol_in_namespace): Likewise.
826 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
827 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
828 may return a STRUCT_DOMAIN match.
829 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
830 * cp-support.c: Include language.h.
831 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
833 * psymtab.c (match_partial_symbol): Compare the requested
834 domain with the symbol's domain directly.
835 (lookup_partial_symbol): Likewise.
836 * symtab.c (lookup_symbol_in_language): Explain when/why
837 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
838 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
839 appropriate languages.
840 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
841 and moved to ada-lang.c
842 (lookup_block_symbol): Explain that this function only returns
843 symbol matching the requested DOMAIN.
844 Compare the requested domain with the symbol's domain directly.
845 (iterate_over_symbols): Compare the requested domain with the
846 symbol's domain directly.
847 * symtab.h (symbol_matches_domain): Remove.
849 2014-06-06 Doug Evans <xdje42@gmail.com>
851 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
852 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
853 (gdbscm_guile_version_is_at_least): Declare.
854 (gdbscm_scm_string_to_int): Declare.
855 * guile/guile.c (gdbscm_guile_major_version): New global.
856 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
857 (guile_datadir): New static global.
858 (gdbscm_guile_data_directory): New function.
859 (initialize_scheme_side): Update.
860 (misc_guile_functions): Add guile-data-directory.
861 (initialize_gdb_module): Fetch guile version number.
862 * guile/lib/gdb.scm: Remove call to add-to-load-path.
863 * guile/lib/gdb/init.scm (%initialize!): Ditto.
864 * guile/lib/gdb/boot.scm: Use guile-data-directory.
865 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
867 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
868 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
869 * guile/scm-value.c (gdbscm_value_to_string): Only call
870 scm_port_conversion_strategy if Guile version >= 2.0.6.
872 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
874 * main.c (print_gdb_help): Add -q and --silent.
876 2014-06-06 Gary Benson <gbenson@redhat.com>
878 * common/signals.c: Remove preprocessor conditionals for
879 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
881 * proc-events.c: Likewise.
883 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
885 * symfile.c (symfile_free_objfile): Remove restriction to
887 * symfile-mem.c (symbol_file_add_from_memory): Call
888 add_target_sections_of_objfile.
890 2014-06-05 Ludovic Courtès <ludo@gnu.org>
892 * guile/scm-value.c (gdbscm_history_append_x): Use
893 'vlscm_get_value_smob_arg_unsafe' instead of
894 'vlscm_scm_to_value'.
896 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
899 * utils.c (printchar): Don't escape at all if quoter is NUL.
900 Update function documentation to clarify effect of parameter
902 * remote.c (escape_buffer): Pass '\\' as the quoter to
904 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
906 (mi_solib_unloaded): Same.
908 2014-06-05 Joel Brobecker <brobecker@adacore.com>
910 * development.sh: Delete.
911 * Makefile.in (config.status): Adjust dependency on development.sh.
912 * configure.ac: Adjust development.sh source call.
913 * configure: Regenerate.
915 2014-06-04 Doug Evans <xdje42@gmail.com>
917 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
918 is_scheme_bkpt, spec.
919 (bpscm_make_breakpoint_smob): Initialize new members.
920 (gdbscm_create_breakpoint_x): Split into two ...
921 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
922 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
923 (scheme_function breakpoint_functions): Update.
924 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
925 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
926 register-breakpoint!.
928 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
931 * mem-break.c (z_type_supported): Return zero if
932 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
934 2014-06-04 Tom Tromey <tromey@redhat.com>
936 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
937 value_from_contents_and_address_unresolved.
938 (ada_template_to_fixed_record_type_1): Likewise.
939 (ada_which_variant_applies): Likewise.
940 * value.h (value_from_contents_and_address_unresolved): Declare.
941 * value.c (value_from_contents_and_address_unresolved): New
943 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
944 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
945 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
947 2014-06-04 Tom Tromey <tromey@redhat.com>
949 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
951 2014-06-04 Tom Tromey <tromey@redhat.com>
953 * procfs.c (procfs_attach): Make "args" const.
954 * windows-nat.c (windows_attach): Make "args" const.
955 * nto-procfs.c (procfs_attach): Make "args" const.
956 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
957 * go32-nat.c (go32_attach): Make "args" const.
958 * gnu-nat.c (gnu_attach): Make "args" const.
959 * darwin-nat.c (darwin_attach): Make "args" const.
960 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
961 * linux-nat.c (linux_nat_attach): Make "args" const.
962 * remote.c (extended_remote_attach_1, extended_remote_attach):
964 * target.h (struct target_ops) <to_attach>: Make "args" const.
965 (find_default_attach): Likewise.
966 * utils.c (parse_pid_to_attach): Make "args" const.
967 * utils.h (parse_pid_to_attach): Update.
969 2014-06-04 Tom Tromey <tromey@redhat.com>
971 * target-delegates.c: Rebuild.
972 * target.c (default_thread_address_space): New function.
973 (target_thread_address_space): Simplify.
974 * target.h (struct target_ops) <to_thread_address_space>: Add
977 2014-06-04 Doug Evans <xdje42@gmail.com>
979 * guile/scm-type.c (type_smob): Remove duplicate typedef.
981 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
983 * record-btrace.c: Include event-loop.h and inf-loop.h.
984 (record_btrace_resume_exec_dir)
985 (record_btrace_async_inferior_event_handler)
986 (record_btrace_handle_async_inferior_event): New.
987 (record_btrace_open): Create async event handler.
988 (record_btrace_close): Delete async event handler.
989 (record_btrace_resume): Set record_btrace_resume_exec_dir,
990 Mark async event handler.
991 (record_btrace_execution_direction): New.
992 (init_record_btrace_ops): Initialize to_execution_direction.
994 2014-06-03 Doug Evans <xdje42@gmail.com>
996 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
997 (gdbscm_make_parameter): Ditto.
999 2014-06-03 Doug Evans <dje@google.com>
1001 * exec.c (exec_close_1): Call clear_section_table instead of
1002 resize_section_table.
1003 (clear_section_table): New function.
1004 (resize_section_table): Make static. Rename arg num_added to
1006 * exec.h (clear_section_table): Declare.
1007 (resize_section_table): Delete.
1008 * progspace.c (release_program_space): Call clear_section_table
1009 instead of resize_section_table.
1011 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1013 * NEWS (Python Scripting): Add entry about the new xmethods
1016 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1018 * python/py-xmethods.c: New file.
1019 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1020 (objfpy_dealloc): XDECREF on the new xmethods field.
1021 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1023 (objfpy_get_xmethods): New function.
1024 (objfile_getset): New entry 'xmethods'.
1025 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1026 (pspy_dealloc): XDECREF on the new xmethods field.
1027 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1029 (pspy_get_xmethods): New function.
1030 (pspace_getset): New entry 'xmethods'.
1031 * python/python-internal.h: Add declarations for new functions.
1032 * python/python.c (_initialize_python): Invoke
1033 gdbpy_initialize_xmethods.
1034 * python/lib/gdb/__init__.py (xmethods): New
1036 * python/lib/gdb/xmethod.py: New file.
1037 * python/lib/gdb/command/xmethods.py: New file.
1039 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1041 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1042 best match method returned by find_overload_match is an xmethod.
1043 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1044 the best matching operator returned by find_overload_match is an
1046 * valops.c: #include "extension.h".
1047 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1048 Return void. The list of matching source methods is returned in
1049 "fn_list" and a vector of matching debug method workers is
1050 returned in "xm_worker_vec". Update all callers.
1051 (value_find_oload_method_list): Likewise.
1052 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1053 non-NULL, then the index of the best matching method in this
1054 vector is returned. Update all callers.
1055 (find_overload_match): Include xmethods while performing overload
1058 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1060 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1061 * extension-priv.h (struct extension_language_ops): Add the
1063 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1064 get_matching_xmethod_workers, get_xmethod_argtypes,
1065 invoke_xmethod, free_xmethod_worker,
1066 free_xmethod_worker_vec): New functions.
1067 * extension.h: #include "common/vec.h".
1068 New function declarations.
1069 (struct xmethod_worker): New struct.
1070 (VEC (xmethod_worker_ptr)): New vector type.
1071 (xmethod_worker_ptr): New typedef.
1072 (xmethod_worker_vec): Likewise.
1073 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1075 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1076 (struct builtin_type): New field "xmethod".
1077 * valarith.c (value_ptradd): Assert that the value argument is not
1079 * valops.c (value_must_coerce_to_target): Return 0 for
1080 lval_xcallable values.
1081 * value.c (struct value): New field XM_WORKER in the field
1083 (value_address, value_raw_address): Return 0 for lval_xcallable
1085 (set_value_address): Assert that the value is not an
1087 (value_free): Free the associated xmethod worker when freeing
1088 lval_xcallable values.
1089 (set_value_component_location): Assert that the WHOLE value is not
1091 (value_of_xmethod, call_xmethod): New functions.
1092 * value.h: Declare "struct xmethod_worker".
1093 Declare new functions value_of_xmethod, call_xmethod.
1095 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1096 Pedro Alves <palves@redhat.com>
1098 PR breakpoints/17000
1099 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1100 New function, extracted from software_breakpoint_inserted_here_p.
1101 (software_breakpoint_inserted_here_p): Replace factored out code
1102 by call to find_non_raw_software_breakpoint_inserted_here.
1103 (bp_target_info_copy_insertion_state): New function.
1104 (bkpt_insert_location): Handle the case of a single-step
1105 breakpoint already inserted at the same address.
1106 (bkpt_remove_location): Handle the case of a single-step
1107 breakpoint still inserted at the same address.
1108 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1109 breakpoint already inserted at the same address.
1110 (deprecated_remove_raw_breakpoint): Handle the case of a
1111 non-raw breakpoint still inserted at the same address.
1112 (find_single_step_breakpoint): New function, extracted from
1113 single_step_breakpoint_inserted_here_p.
1114 (find_single_step_breakpoint): New function,
1115 factored out from single_step_breakpoint_inserted_here_p.
1116 (single_step_breakpoint_inserted_here_p): Reimplement.
1118 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1120 Pushed by Joel Brobecker <brobecker@adacore.com>
1121 * source.c (show_substitute_path_command): Fix display of matching
1124 2014-06-03 Gary Benson <gbenson@redhat.com>
1126 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1128 2014-06-02 Doug Evans <xdje42@gmail.com>
1130 Add parameter support for Guile.
1131 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1132 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1133 (scm-param.o): New rule.
1134 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1135 (gdbscm_misc_error): Declare.
1136 (gdbscm_canonicalize_command_name): Declare.
1137 (gdbscm_scm_to_host_string): Declare.
1138 (gdbscm_scm_from_host_string): Declare.
1139 (gdbscm_initialize_parameters): Declare.
1140 * guile/guile.c (initialize_gdb_module): Call
1141 gdbscm_initialize_parameters.
1142 * guile/lib/gdb.scm: Export parameter symbols.
1143 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1144 cmdscm_canonicalize_name and made public. All callers updated.
1145 * guile/scm-exception.c (gdbscm_misc_error): New function.
1146 * guile/scm-param.c: New file.
1147 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1148 (gdbscm_scm_to_host_string): New function.
1149 (gdbscm_scm_from_host_string): New function.
1150 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1152 2014-06-02 Doug Evans <xdje42@gmail.com>
1154 Add command support for Guile.
1155 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1156 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1157 (scm-cmd.o): New rule.
1158 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1159 (gdbscm_user_error_p): Declare.
1160 (gdbscm_parse_command_name): Declare.
1161 (gdbscm_valid_command_class_p): Declare.
1162 (gdbscm_initialize_commands): Declare.
1163 * guile/guile.c (initialize_gdb_module): Call
1164 gdbscm_initialize_commands.
1165 * guile/lib/gdb.scm: Export command symbols.
1166 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1167 (throw-user-error): New function.
1168 * guile/scm-cmd.c: New file.
1169 * guile/scm-exception.c (user_error_symbol): New static global.
1170 (gdbscm_user_error_p): New function.
1171 (gdbscm_initialize_exceptions): Set user_error_symbol.
1172 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1174 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1176 * top.c (command_loop): Handle comments here...
1177 (command_line_input): ... not here.
1179 2014-06-02 Doug Evans <xdje42@gmail.com>
1181 Add progspace support for Guile.
1182 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1183 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1184 (scm-progspace.o): New rule.
1185 * guile/guile-internal.h (pspace_smob): New typedef.
1186 (psscm_pspace_smob_pretty_printers): Declare.
1187 (psscm_pspace_smob_from_pspace): Declare.
1188 (psscm_scm_from_pspace): Declare.
1189 * guile/guile.c (initialize_gdb_module): Call
1190 gdbscm_initialize_pspaces.
1191 * guile/lib/gdb.scm: Export progspace symbols.
1192 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1194 (append-pretty-printer!): Ditto.
1195 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1197 * guile/scm-progspace.c: New file.
1199 2014-06-03 Alan Modra <amodra@gmail.com>
1201 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1202 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1204 2014-06-02 Doug Evans <dje@google.com>
1206 Add support for skeletonless type units.
1207 * dwarf2read.c (struct dwarf2_per_objfile): New member
1208 n_allocated_type_units.
1209 (struct dwarf2_per_objfile) <tu_stats>: New member
1210 nr_all_type_units_reallocs.
1211 (create_signatured_type_table_from_index): Initialize
1212 n_allocated_type_units
1213 (create_all_type_units): Ditto.
1214 (add_type_unit): Move up in file. New arg slot.
1215 All callers updated. Increase space for all_type_units more
1217 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1218 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1219 (lookup_dwp_signatured_type): Ditto.
1220 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1221 All callers updated.
1222 (build_type_psymtabs_1): Leave type_unit_groups as
1223 NULL if no TUs present.
1224 (print_tu_stats): New function.
1225 (process_skeletonless_type_unit): New function.
1226 (process_dwo_file_for_skeletonless_type_units): New
1228 (process_skeletonless_type_units): New function.
1229 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1230 Call print tu_stats if debugging enabled.
1232 2014-06-02 Pedro Alves <palves@redhat.com>
1234 * breakpoint.c (build_target_command_list): Don't build a command
1235 list if we have any duplicate location that isn't a dprintf.
1237 2014-06-02 Pedro Alves <palves@redhat.com>
1239 * breakpoint.c (dprintf_breakpoint_hit): New function.
1240 (initialize_breakpoint_ops): Install it as dprintf's
1241 breakpoint_hit method.
1243 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1245 * source.c (substitute_path_rule_matches): Simplify using
1246 filename_ncmp instead of FILENAME_CMP.
1248 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1250 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1252 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1254 * configure.ac: When Guile is available, check for the
1255 availability of 'scm_new_smob'.
1256 * configure, config.h.in: Regenerate.
1257 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1260 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1262 * frame.c (struct frame_info): Add stop_string field.
1263 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1264 (get_prev_frame_always): Old content moved into
1265 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1266 TRY_CATCH, handle MEMORY_ERROR exceptions.
1267 (frame_stop_reason_string): New function definition.
1268 * frame.h (unwind_stop_reason_to_string): Extend comment to
1269 mention frame_stop_reason_string.
1270 (frame_stop_reason_string): New function declaration.
1271 * stack.c (frame_info): Switch to frame_stop_reason_string.
1272 (backtrace_command_1): Switch to frame_stop_reason_string.
1273 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1274 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1275 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1277 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1279 * frame.c (frame_stop_reason_string): Rename to ...
1280 (unwind_stop_reason_to_string): this.
1281 * frame.h (frame_stop_reason_string): Rename to ...
1282 (unwind_stop_reason_to_string): this.
1283 * stack.c (frame_info): Update call to frame_stop_reason_string.
1284 (backtrace_command_1): Likewise.
1285 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1286 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1288 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1290 * frame.c (remove_prev_frame): New function.
1291 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1294 2014-05-29 Pedro Alves <palves@redhat.com>
1296 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1297 and make it const. When a single-step decays to a continue,
1298 clear 'step', not 'hw_step'. Pass whether the caller wanted
1299 to step to user_visible_resume_ptid, not what we ask the
1302 2014-05-29 Pedro Alves <palves@redhat.com>
1304 * infrun.c (process_event_stop_test, handle_step_into_function)
1305 (handle_step_into_function_backward): Adjust.
1306 Don't set the even thread's stop_step and call stop_waiting before
1307 calling end_stepping_range. Instead do that ...
1308 (end_stepping_range): ... here. Take an ecs pointer parameter.
1310 2014-05-29 Pedro Alves <palves@redhat.com>
1312 * infrun.c (stop_stepping): Rename to ...
1313 (stop_waiting): ... this.
1314 (proceed): Update comment.
1315 (process_event_stop_test, handle_inferior_event)
1316 (handle_signal_stop, handle_step_into_function)
1317 (handle_step_into_function_backward): Update.
1319 2014-05-29 Pedro Alves <palves@redhat.com>
1321 * infcall.c (run_inferior_call): Don't check whether the current
1322 thread is running after the proceed call.
1324 2014-05-29 Pedro Alves <palves@redhat.com>
1325 Tom Tromey <tromey@redhat.com>
1327 * NEWS: Mention "maint set target-async", "set mi-async", and that
1328 background execution commands are now always available.
1329 * target.h (target_async_permitted): Update comment.
1330 * target.c (target_async_permitted, target_async_permitted_1):
1332 (set_target_async_command): Rename to ...
1333 (maint_set_target_async_command): ... this.
1334 (show_target_async_command): Rename to ...
1335 (maint_show_target_async_command): ... this.
1336 (_initialize_target): Adjust.
1337 * infcmd.c (prepare_execution_command): Make extern.
1338 * inferior.h (prepare_execution_command): Declare.
1339 * infrun.c (set_observer_mode): Leave target async alone.
1340 * mi/mi-interp.c (mi_interpreter_init): Install
1341 mi_on_sync_execution_done as sync_execution_done observer.
1342 (mi_on_sync_execution_done): New function.
1343 (mi_execute_command_input_handler): Don't print the prompt if we
1344 just started a synchronous command with an async target.
1345 (mi_on_resume): Check sync_execution before printing prompt.
1346 * mi/mi-main.h (mi_async_p): Declare.
1347 * mi/mi-main.c: Include gdbcmd.h.
1348 (mi_async_p): New function.
1349 (mi_async, mi_async_1): New globals.
1350 (set_mi_async_command, show_mi_async_command, mi_async): New
1352 (exec_continue): Call prepare_execution_command.
1353 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1354 (mi_execute_async_cli_command): Use mi_async_p.
1355 (_initialize_mi_main): Install "set mi-async". Make
1356 "target-async" a deprecated alias.
1358 2014-05-29 Pedro Alves <palves@redhat.com>
1360 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1361 (_initialize_cli_interp): Adjust.
1362 * event-loop.c: Include "observer.h".
1363 (start_event_loop): Notify 'command_error' observers instead of
1364 calling display_gdb_prompt. Remove FIXME comment.
1365 * event-top.c (display_gdb_prompt): Remove call into the
1367 * inf-loop.c: Include "observer.h".
1368 (inferior_event_handler): Notify 'command_error' observers instead
1369 of calling display_gdb_prompt.
1370 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1371 observers instead of calling display_gdb_prompt.
1372 * interps.c (interp_set): Don't call display_gdb_prompt.
1373 (current_interp_display_prompt_p): Delete.
1374 * interps.h (interp_prompt_p): Delete declaration.
1375 (interp_prompt_p_ftype): Delete.
1376 (struct interp_procs) <prompt_proc_p>: Delete field.
1377 (current_interp_display_prompt_p): Delete declaration.
1378 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1379 (_initialize_mi_interp): Adjust.
1380 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1381 'command_error' observers.
1382 (tui_on_sync_execution_done, tui_on_command_error): New
1384 (tui_display_prompt_p): Delete.
1385 (_initialize_tui_interp): Adjust.
1387 2014-05-29 Pedro Alves <palves@redhat.com>
1390 * cli/cli-interp.c: Include infrun.h and observer.h.
1391 (cli_uiout, cli_interp): New globals.
1392 (cli_on_signal_received, cli_on_end_stepping_range)
1393 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1395 (cli_interpreter_init): Install them as 'end_stepping_range',
1396 'signal_received' 'signal_exited', 'exited' and 'no_history'
1398 (_initialize_cli_interp): Remove cli_interp local.
1399 * infrun.c (handle_inferior_event): Call the several stop reason
1400 observers instead of printing the stop reason directly.
1401 (end_stepping_range): New function.
1402 (print_end_stepping_range_reason, print_signal_exited_reason)
1403 (print_exited_reason, print_signal_received_reason)
1404 (print_no_history_reason): Make static, and add an uiout
1405 parameter. Print to that instead of to CURRENT_UIOUT.
1406 * infrun.h (print_end_stepping_range_reason)
1407 (print_signal_exited_reason, print_exited_reason)
1408 (print_signal_received_reason print_no_history_reason): New
1410 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1412 <cli_uiout>: New field.
1413 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1414 uiout for CLI output. Install 'signal_received',
1415 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1417 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1418 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1419 (mi_on_no_history): New functions.
1420 (ui_out_free_cleanup): Delete function.
1421 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1422 instead use the one already stored in the MI interpreter data.
1423 (mi_ui_out): Adjust.
1424 * tui/tui-interp.c: Include infrun.h and observer.h.
1425 (tui_interp): New global.
1426 (tui_on_signal_received, tui_on_end_stepping_range)
1427 (tui_on_signal_exited, tui_on_exited)
1428 (tui_on_no_history): New functions.
1429 (tui_init): Install them as 'end_stepping_range',
1430 'signal_received' 'signal_exited', 'exited' and 'no_history'
1432 (_initialize_tui_interp): Delete tui_interp local.
1434 2014-05-29 Pedro Alves <palves@redhat.com>
1437 * linux-nat.c (linux_nat_resume_callback): Rename the second
1438 parameter to 'except'. Skip LP if it points to EXCEPT.
1439 (linux_nat_resume): Don't mark the event lwp as not stopped
1440 before resuming sibling lwps. Instead ask
1441 linux_nat_resume_callback to skip the event lwp. Mark it as not
1442 stopped after actually resuming it.
1443 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1445 (wait_lwp): Mark the lwp as stopped here.
1446 (stop_wait_callback): Mark the lwp as not stopped right after
1447 resuming it. Don't mark lwps as stopped here.
1448 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1449 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1451 2014-05-29 Pedro Alves <palves@redhat.com>
1454 * infrun.c (resume): Determine how much to resume depending on
1455 whether the caller wanted a step, not whether we can hardware step
1456 the target. Mark all threads that we intend to run as running,
1457 unless we're calling an inferior function.
1458 (normal_stop): If the thread is running an infcall, don't finish
1460 * target.c (target_resume): Don't mark threads as running here.
1462 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1464 * serial.c (_initialize_serial): Remove support for
1465 the "set remotebaud" and "show remotebaud" commands.
1466 * NEWS: Add entry documenting the removal of that command.
1468 2014-05-28 Yao Qi <yao@codesourcery.com>
1470 * charset.c: Fix typo in comments.
1472 2014-05-27 Gary Benson <gbenson@redhat.com>
1474 * utils.c (internal_vproblem): Prompt for a bug report.
1476 2014-05-26 Andy Wingo <wingo@igalia.com>
1478 * guile/scm-arch.c (arscm_mark_arch_smob):
1479 * guile/scm-block.c (bkscm_mark_block_smob)
1480 (bkscm_mark_block_syms_progress_smob):
1481 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1482 * guile/scm-exception.c (exscm_mark_exception_smob):
1483 * guile/scm-frame.c (frscm_mark_frame_smob):
1484 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1485 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1486 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1487 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1488 (ppscm_mark_pretty_printer_worker_smob):
1489 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1490 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1491 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1492 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1494 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1497 2014-05-26 Andy Wingo <wingo@igalia.com>
1498 Doug Evans <xdje42@gmail.com>
1500 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1501 empty_base_class. All uses updated.
1502 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1503 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1505 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1506 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1507 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1508 (gdbscm_gsmob_has_property_p, add_property_name)
1509 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1510 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1511 (gdb-object-has-property?, gdb-object-properties): Remove.
1512 (gdb-object-kind): Renamed from gsmob-kind.
1514 2014-05-26 Andy Wingo <wingo@igalia.com>
1516 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1517 * configure: Regenerate.
1519 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1521 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1523 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1525 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1526 (replay_memory_access_read_only, replay_memory_access_read_write)
1527 (replay_memory_access_types, replay_memory_access)
1528 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1529 (cmd_set_record_btrace, cmd_show_record_btrace)
1530 (cmd_show_replay_memory_access): New.
1531 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1532 (record_btrace_remove_breakpoint): Replace
1533 record_btrace_allow_memory_access with replay_memory_access.
1534 (_initialize_record_btrace): Add commands.
1535 * NEWS: Announce it.
1537 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1539 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1541 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1543 * MAINTAINERS (Write After Approval): Move self back from
1546 2014-05-22 Pedro Alves <palves@redhat.com>
1548 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1549 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1550 (disable_randomization, enum exec_direction_kind)
1551 (execution_direction, stop_registers, start_remote)
1552 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1553 (wait_for_inferior, normal_stop, get_last_target_status)
1554 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1555 (insert_step_resume_breakpoint_at_sal)
1556 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1557 (set_step_info, print_stop_event, signal_stop_state)
1558 (signal_print_state, signal_pass_state, signal_stop_update)
1559 (signal_print_update, signal_pass_update)
1560 (update_signals_program_target, clear_exit_convenience_vars)
1561 (displaced_step_dump_bytes, update_observer_mode)
1562 (signal_catch_update, gdb_signal_from_command): Move
1564 * infrun.h: ... to this new file.
1565 * amd64-tdep.c: Include infrun.h.
1566 * annotate.c: Include infrun.h.
1567 * arch-utils.c: Include infrun.h.
1568 * arm-linux-tdep.c: Include infrun.h.
1569 * arm-tdep.c: Include infrun.h.
1570 * break-catch-sig.c: Include infrun.h.
1571 * breakpoint.c: Include infrun.h.
1572 * common/agent.c: Include infrun.h instead of inferior.h.
1573 * corelow.c: Include infrun.h.
1574 * event-top.c: Include infrun.h.
1575 * go32-nat.c: Include infrun.h.
1576 * i386-tdep.c: Include infrun.h.
1577 * inf-loop.c: Include infrun.h.
1578 * infcall.c: Include infrun.h.
1579 * infcmd.c: Include infrun.h.
1580 * infrun.c: Include infrun.h.
1581 * linux-fork.c: Include infrun.h.
1582 * linux-nat.c: Include infrun.h.
1583 * linux-thread-db.c: Include infrun.h.
1584 * monitor.c: Include infrun.h.
1585 * nto-tdep.c: Include infrun.h.
1586 * procfs.c: Include infrun.h.
1587 * record-btrace.c: Include infrun.h.
1588 * record-full.c: Include infrun.h.
1589 * remote-m32r-sdi.c: Include infrun.h.
1590 * remote-mips.c: Include infrun.h.
1591 * remote-notif.c: Include infrun.h.
1592 * remote-sim.c: Include infrun.h.
1593 * remote.c: Include infrun.h.
1594 * reverse.c: Include infrun.h.
1595 * rs6000-tdep.c: Include infrun.h.
1596 * s390-linux-tdep.c: Include infrun.h.
1597 * solib-irix.c: Include infrun.h.
1598 * solib-osf.c: Include infrun.h.
1599 * solib-svr4.c: Include infrun.h.
1600 * target.c: Include infrun.h.
1601 * top.c: Include infrun.h.
1602 * windows-nat.c: Include infrun.h.
1603 * mi/mi-interp.c: Include infrun.h.
1604 * mi/mi-main.c: Include infrun.h.
1605 * python/py-threadevent.c: Include infrun.h.
1607 2014-05-22 Pedro Alves <palves@redhat.com>
1609 * infrun.c (handle_inferior_event): Store the exit code for
1610 --return-child-result here, instead of ...
1611 (print_exited_reason): ... here.
1613 2014-05-21 Pedro Alves <palves@redhat.com>
1616 * gdbthread.h (struct thread_control_state): New field
1618 * infrun.c (follow_fork): Copy the new thread control field to the
1620 (clear_proceed_status_thread): Clear the new thread control field.
1621 (proceed): Set the new thread control field.
1622 * interps.h (command_interp): Declare.
1623 * interps.c (command_interpreter): New global.
1624 (command_interp): New function.
1625 (interp_exec): Set `command_interpreter' while here.
1626 * cli-out.c (cli_uiout_dtor): New function.
1627 (cli_ui_out_impl): Install it.
1628 * mi/mi-interp.c: Include cli-out.h.
1629 (mi_cmd_interpreter_exec): Add comment.
1630 (restore_current_uiout_cleanup): New function.
1631 (ui_out_free_cleanup): New function.
1632 (mi_on_normal_stop): If finishing an execution command started by
1633 a CLI command, or any kind of breakpoint-like event triggered,
1634 print the stop event to the output (CLI) stream.
1635 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1637 2014-05-21 Pedro Alves <palves@redhat.com>
1639 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1640 current source line having changed.
1641 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1642 * infrun.c (normal_stop): Adjust call to
1643 set_current_sal_from_frame.
1644 * source.c (clear_lines_listed_range): New function.
1645 (set_current_source_symtab_and_line, identify_source_line): Clear
1646 the lines listed range.
1647 (line_info): Handle the first "info line" after the current source
1648 line having changed.
1649 * stack.c (print_stack_frame): Remove center handling.
1650 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1653 2014-05-21 Pedro Alves <palves@redhat.com>
1655 * inf-child.c (inf_child_mourn_inferior): New function.
1656 * inf-child.h (inf_child_mourn_inferior): New declaration.
1657 * darwin-nat.c (darwin_mourn_inferior): Use
1658 inf_child_mourn_inferior.
1659 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1660 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1661 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1662 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1663 * windows-nat.c (windows_mourn_inferior): Likewise.
1665 2014-05-21 Doug Evans <xdje42@gmail.com>
1667 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1669 2014-05-21 Doug Evans <xdje42@gmail.com>
1671 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1672 (gdbscm_out_of_range_error): Ditto.
1673 (gdbscm_memory_error): Ditto.
1674 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1675 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1676 (gdbscm_out_of_range_error): Update.
1677 (gdbscm_memory_error): Update.
1678 (gdbscm_scm_to_target_string_unsafe): Delete.
1680 2014-05-21 Pedro Alves <palves@redhat.com>
1682 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1684 (inf_child_open_target): New function.
1685 (inf_child_open): Use inf_child_open_target to push the target
1686 instead of erroring out.
1687 (inf_child_disconnect, inf_child_close)
1688 (inf_child_maybe_unpush_target): New functions.
1689 (inf_child_target): Install inf_child_disconnect and
1690 inf_child_close. Store a pointer to the returned object.
1691 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1693 * target.c (auto_connect_native_target): New global.
1694 (show_default_run_target): New function.
1695 (find_default_run_target): Return NULL if automatically connecting
1696 to the native target is disabled.
1697 (_initialize_target): Install set/show auto-connect-native-target.
1698 * NEWS: Mention "set auto-connect-native-target", and "target
1700 * linux-nat.c (super_close): New global.
1701 (linux_nat_close): Call super_close.
1702 (linux_nat_add_target): Store a pointer to the base class's
1704 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1705 inf_child_maybe_unpush.
1706 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1708 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1709 the inferior. Use inf_child_maybe_unpush_target.
1710 (inf_ttrace_attach): Don't push the target if it is already
1712 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1713 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1714 after mourning the inferior. Use inf_child_maybe_unpush_target.
1715 (darwin_attach_pid): Don't push the target if it is already
1717 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1718 mourning the inferior. Use inf_child_maybe_unpush_target.
1719 (gnu_detach): Use inf_child_maybe_unpush_target.
1720 * go32-nat.c (go32_create_inferior): Don't push the target if it
1722 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1723 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1724 (procfs_open): Rename to ...
1725 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1726 comments. Can target_preopen before changing node. Call
1727 inf_child_open_target to push the target explicitly.
1728 (procfs_attach): Don't push the target if it is already pushed.
1729 (procfs_detach): Use inf_child_maybe_unpush_target.
1730 (procfs_create_inferior): Don't push the target if it is already
1732 (nto_native_ops): New global.
1733 (procfs_open): Reimplement.
1734 (procfs_native_open): New function.
1735 (init_procfs_targets): Install procfs_native_open as to_open of
1736 "target native". Store a pointer to the "native" target in
1738 * procfs.c (procfs_attach): Don't push the target if it is already
1740 (procfs_detach): Use inf_child_maybe_unpush_target.
1741 (procfs_mourn_inferior): Only unpush the target after mourning the
1742 inferior. Use inf_child_maybe_unpush_target.
1743 (procfs_init_inferior): Don't push the target if it is already
1745 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1746 if it is already pushed.
1748 2014-05-21 Pedro Alves <palves@redhat.com>
1750 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1751 and "procfs" targets are now called "native" instead.
1753 2014-05-21 Pedro Alves <palves@redhat.com>
1755 * go32-nat.c (go32_open): Delete.
1756 (go32_target): Don't override the to_open method.
1758 2014-05-21 Pedro Alves <palves@redhat.com>
1760 * nto-procfs.c (procfs_can_run): New function.
1761 (nto_procfs_ops): New global.
1762 (init_procfs_targets): New, based on procfs_target. Install
1763 "target native" in addition to "target procfs".
1764 (_initialize_procfs): Call init_procfs_targets instead of adding
1767 2014-05-21 Pedro Alves <palves@redhat.com>
1769 * windows-nat.c (windows_target): Don't override to_shortname,
1770 to_longname or to_doc.
1772 2014-05-21 Pedro Alves <palves@redhat.com>
1774 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1777 2014-05-21 Pedro Alves <palves@redhat.com>
1779 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1780 to_shortname, to_longname or to_doc.
1782 2014-05-21 Pedro Alves <palves@redhat.com>
1784 * go32-nat.c (go32_target): Don't override to_shortname,
1785 to_longname or to_doc.
1787 2014-05-21 Pedro Alves <palves@redhat.com>
1789 * inf-child.c (inf_child_open): Remove mention of "child".
1790 (inf_child_target): Rename target to "native" instead of "child".
1792 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1794 * Makefile.in (SFILES): Delete "regset.c".
1795 (COMMON_OBS): Delete "regset.o".
1797 * regset.h (regset_alloc): Delete prototype.
1799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1801 * sparc-linux-tdep.c (sparc32_linux_gregset)
1802 (sparc32_linux_fpregset): New static regset structures.
1803 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1804 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1806 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1807 (sparc64_linux_fpregset): New static regset structures.
1808 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1809 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1810 New static regset structures.
1811 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1812 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1813 New static regset structures.
1814 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1815 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1816 New static regset structures.
1817 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1818 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1819 New static regset structures.
1820 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1822 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1824 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1825 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1826 register maps ("regmaps") from "*regset" to "*regmap". Do this
1827 for all regmap types and variables.
1828 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1829 (sparc32_linux_supply_core_gregset)
1830 (sparc32_linux_collect_core_gregset)
1831 (sparc32_linux_supply_core_fpregset)
1832 (sparc32_linux_collect_core_fpregset): Likewise.
1833 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1834 (sparc_gregmap, sparc_fpregmap): ... these.
1835 (sparc_supply_gregset, sparc_collect_gregset)
1836 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1837 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1838 (_initialize_sparc_nat): Rename regmaps.
1839 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1840 (sparc_gregmap, sparc_fpregmap): ... these.
1841 (sparc_supply_gregset, sparc_collect_gregset)
1842 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1843 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1845 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1846 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1848 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1850 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1851 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1852 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1854 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1855 (sparc32_bsd_fpregset): Rename to...
1856 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1857 (sparc32_bsd_fpregmap): ... these.
1858 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1859 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1860 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1861 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1862 (struct sparc_gregmap, struct sparc_fpregmap)
1863 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1864 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1865 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1866 (sparc32_supply_regset, sparc32_collect_gregset)
1867 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1869 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1870 (sparc64_linux_ptrace_gregmap): ... this.
1871 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1872 (_initialize_sparc64_linux_nat): Rename regmaps.
1873 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1874 (sparc64_linux_core_gregmap): ... this.
1875 (sparc64_linux_supply_core_gregset)
1876 (sparc64_linux_collect_core_gregset)
1877 (sparc64_linux_supply_core_fpregset)
1878 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1879 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1880 (sparc64_sol2_fpregset): Rename to...
1881 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1882 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1883 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1885 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1886 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1887 (sparc64_bsd_fpregset): Rename to...
1888 (struct sparc_gregmap, sparc64_sol2_gregmap)
1889 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1890 (sparc64_bsd_fpregmap): ... these.
1891 (sparc64_supply_gregset, sparc64_collect_gregset)
1892 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1894 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1895 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1896 (sparc64fbsd_gregmap): ... this.
1897 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1898 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1900 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1901 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1902 (sparc64nbsd_collect_fpregset): Likewise.
1903 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1904 (sparc64nbsd_gregmap): ... this.
1905 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1907 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1908 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1909 (sparc64obsd_gregmap): ... this.
1910 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1912 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1913 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1914 (sparc32nbsd_gregmap): ... this.
1915 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1918 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1920 * score-tdep.c (score7_linux_gregset): New static regset
1922 (score7_linux_regset_from_core_section): Remove dynamic regset
1924 (score_gdbarch_init): Drop allocation of tdep structure.
1925 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1927 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1929 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1931 (am33_regset_from_core_section): Remove dynamic regset
1934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1937 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1939 (mips_linux_regset_from_core_section): Remove dynamic regset
1941 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1942 'gregset64', 'fpregset', and 'fpregset64'.
1943 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1944 deleted tdep fields.
1946 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1948 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1950 (amd64_regset_from_core_section): Remove dynamic regset
1952 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1954 (amd64obsd_regset_from_core_section): Remove dynamic regset
1956 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1958 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1959 x86-common regset supply function.
1960 * i386-tdep.c (i386_collect_gregset): Make static.
1961 (i386_gregset): New global regset structure.
1962 (i386_fpregset, i386_xstateregset): New static regset structures.
1963 (i386_regset_from_core_section): Remove dynamic regset
1965 (i386_gdbarch_init): Remove initialization of tdep fields
1966 'gregset', 'fpregset', and 'xstateregset'.
1967 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1968 'fpregset', and 'xstateregset'.
1969 (i386_collect_gregset): Remove prototype.
1970 (i386_gregset): New declaration.
1971 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1973 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1976 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1978 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1979 (arm_linux_vfpregset): New static regset structures.
1980 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1982 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1983 and 'vfpregset' fields.
1985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1987 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1988 (aarch64_linux_fpregset): New static regset structures.
1989 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1990 of regset structures.
1991 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * regset.h (struct regset): Remove gdbarch field.
1997 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1998 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1999 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2001 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2002 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2003 (ppc32_linux_vsxregset): Likewise.
2004 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2005 via the regcache instead of the regset.
2006 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2007 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2008 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2009 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2015 Constify structures.
2016 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2017 (alphanbsd_aout_gregset): Likewise.
2018 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2019 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2021 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2022 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2024 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2025 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2026 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2027 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2028 * m88k-tdep.c (m88k_gregset): Likewise.
2029 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2030 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2031 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2032 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2033 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2034 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2035 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2036 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2037 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2039 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2040 * sh-tdep.h (sh_corefile_gregset): Likewise.
2041 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2042 * vax-tdep.c (vax_gregset): Likewise.
2044 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 Fix TLS access for -static -pthread.
2047 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2048 (try_thread_db_load_1): Initialize it.
2049 (thread_db_get_thread_local_address): Call it if LM is zero.
2050 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2051 * target.h (struct target_ops) (to_get_thread_local_address): Add
2052 load_module_addr comment.
2054 2014-05-21 Pedro Alves <palves@redhat.com>
2056 * dcache.c (dcache_read_memory_partial): If reading the cache line
2057 fails, fallback to reading just the memory the caller wanted.
2059 2014-05-20 Doug Evans <dje@google.com>
2061 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2062 instead of get_current_arch.
2064 2014-05-20 Pedro Alves <palves@redhat.com>
2066 * NEWS: Mention that compare-sections now works with all targets.
2068 * remote.c (PACKET_qCRC): New enum value.
2069 (remote_verify_memory): Don't send qCRC if the target has no
2070 execution. Use packet_support/packet_ok. If the target doesn't
2071 support the qCRC packet, fallback to a deep memory copy.
2072 (compare_sections_command): Say "target image" instead of "remote
2074 (_initialize_remote): Add PACKET_qCRC to the list of config
2075 packets that have no associated command. Extend comment.
2076 * target.c (simple_verify_memory, default_verify_memory): New
2078 * target.h (struct target_ops) <to_verify_memory>: Default to
2079 default_verify_memory.
2080 (simple_verify_memory): New declaration.
2081 * target-delegates.c: Regenerate.
2083 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2085 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2087 2014-05-20 Hui Zhu <hui@codesourcery.com>
2088 Yao Qi <yao@codesourcery.com>
2091 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2092 and change address of sp and pc.
2094 2014-05-19 Tom Tromey <tromey@redhat.com>
2096 * gdbtypes.c (rank_function): Use XNEWVEC.
2097 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2099 2014-05-19 Doug Evans <dje@google.com>
2101 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2102 build_type_unit_groups and moved closer to only caller. Remove
2103 arguments. All references updated. Remove outdated .gdb_index
2105 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2106 build_type_psymtabs_1.
2108 2014-05-19 Doug Evans <dje@google.com>
2110 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2111 n_type_unit_groups, all_type_unit_groups. All uses removed.
2112 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2113 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2114 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2115 (add_type_unit_group_to_table): Delete.
2117 2014-05-19 Doug Evans <dje@google.com>
2119 * eval.c (evaluate_subexp_standard): Add some comments.
2121 2014-05-17 Doug Evans <xdje42@gmail.com>
2123 * progspace.c (remove_program_space): Delete, unused.
2124 * progspace.h (remove_program_space): Ditto.
2126 2014-05-17 Doug Evans <xdje42@gmail.com>
2128 * inferior.c (prune_inferiors): Fix comment.
2129 (remove_inferior_command): Call prune_program_spaces.
2131 2014-05-16 Doug Evans <dje@google.com>
2133 New command line option -D.
2135 * main.c (set_gdb_data_directory): New function.
2136 (captured_main): Recognize -D. Flag error for --data-directory "".
2137 Call set_gdb_data_directory.
2138 (print_gdb_help): Print --data-directory, -D.
2139 * main.h (set_gdb_data_directory): Declare.
2140 * top.c (staged_gdb_datadir): New static global.
2141 (set_gdb_datadir): Call set_gdb_data_directory
2142 (show_gdb_datadir): New function.
2143 (init_main): Update init of data-directory parameter.
2145 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2147 Import the "dirfd" gnulib module.
2148 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2149 * gnulib/aclocal.m4: Update.
2150 * gnulib/config.in: Update.
2151 * gnulib/configure: Update.
2152 * gnulib/import/Makefile.am: Update.
2153 * gnulib/import/Makefile.in: Update.
2154 * gnulib/import/dirfd.c: New.
2155 * gnulib/import/m4/dirfd.m4: New.
2156 * gnulib/import/m4/gnulib-cache.m4: Update.
2157 * gnulib/import/m4/gnulib-comp.m4: Update.
2159 2014-05-16 Pierre Muller <muller@sourceware.org>
2160 Yao Qi <yao@codesourcery.com>
2162 * valprint.c (print_wchar): Move the code on checking whether
2163 W is a printable wide char to the default branch of switch
2164 statement below. Call wchar_printable instead of gdb_iswprint.
2166 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2168 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2169 ldr.w and ldrd instructions.
2171 2014-05-15 Doug Evans <dje@google.com>
2173 * dwarf2read.c (read_structure_type): Delete outdated comments.
2175 2014-05-14 Tom Tromey <tromey@redhat.com>
2177 * macrocmd.c (print_macro_definition): Reindent.
2179 2014-05-13 Doug Evans <xdje42@gmail.com>
2181 * python/py-cmd.c (cmdpy_completer): Add comment.
2182 (completers): Make const.
2184 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2186 * infrun.c (resume): Remove should_resume (unused). Move up
2187 declaration of resume_ptid.
2189 2014-05-13 Tom Tromey <tromey@redhat.com>
2191 * language.h (unop_type_check): Remove.
2192 (binop_type_check): Don't declare.
2194 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2196 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2197 call to regcache_raw_collect.
2199 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2201 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2202 mi_console->quote as the quoting character.
2204 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2206 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2208 2014-04-29 Tom Tromey <tromey@redhat.com>
2210 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2211 "show debug varobj".
2213 2014-05-07 Kyle McMartin <kyle@redhat.com>
2215 Pushed by Joel Brobecker <brobecker@adacore.com>.
2216 * aarch64-tdep.c (aarch64_software_single_step): New function.
2217 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2218 with aarch64_software_single_step.
2220 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2224 2014-05-05 Keith Seitz <keiths@redhat.com>
2226 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2227 variable or history value is successfully parsed.
2229 2014-05-05 Yao Qi <yao@codesourcery.com>
2230 Pedro Alves <palves@redhat.com>
2232 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2233 address of blocks that intersects the requested range. Trim
2234 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2236 * ctf.c (ctf_xfer_partial): Likewise.
2238 2014-05-05 Yao Qi <yao@codesourcery.com>
2240 * printcmd.c (display_command): Remove the check to
2241 target_has_execution.
2243 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2245 * ppcobsd-nat.c: Include "obsd-nat.h".
2246 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2248 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2250 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2252 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2253 and 16-bit signed and unsigned arguments. Update comment.
2254 (stap_parse_probe_arguments): Extend code to handle such
2255 arguments. Use warning instead of complaint to notify about
2256 unrecognized bitness.
2258 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2260 PR breakpoints/16889
2261 * stap-probe.c (stap_parse_probe_arguments): Simplify
2262 check for non-prefixed probes (i.e., probes whose
2263 arguments do not start with "N@"). Always set the
2264 argument type to a sane value.
2266 2014-05-01 David Taylor <dtaylor@emc.com>
2268 * remote.c (compare_sections_command): Add -r option to compare
2269 all loadable read-only sections.
2271 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2273 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2274 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2276 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2277 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2278 Remove unused CORE_ADDR argument. Update all callers.
2280 2014-04-29 Pedro Alves <palves@redhat.com>
2282 * remote.c (struct packet_config) <detect>: Extend comment.
2283 (add_packet_config_cmd): Don't set the config's detect or support
2285 (init_all_packet_configs): Also initialize the config's 'detect'
2287 (reset_all_packet_configs_support): New function.
2288 (remote_open_1): Call reset_all_packet_configs_support instead of
2289 init_all_packet_configs.
2290 (_initialize_remote): Initialize all packet configs. Assert that
2291 all packets have an associated command, except a few known
2294 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2296 * dwarf2read.c (read_subrange_type): Handle dynamic
2297 DW_AT_lower_bound attributes.
2299 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2301 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2302 dynamic bounds before computing its upper bound.
2303 (ada_discrete_type_low_bound): Same as above with the lower bound.
2305 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2307 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2308 range types. Adjust the array handling implementation to
2309 take advantage of this change.
2310 (resolve_dynamic_range): New function, mostly extracted from
2311 resolve_dynamic_bounds.
2312 (resolve_dynamic_array): New function, mostly extracted from
2313 resolve_dynamic_bounds.
2314 (resolve_dynamic_bounds): Delete.
2315 (resolve_dynamic_type): Reimplement. Add handling of
2316 TYPE_CODE_RANGE types.
2318 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2320 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2321 handling of parallel ___XA types.
2323 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2325 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2326 unnecessary second call to static_unwrap_type.
2328 2014-04-27 Hui Zhu <hui@codesourcery.com>
2330 * stack.c (print_frame_info): Call do_gdb_disassembly with
2331 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2333 2014-04-26 Doug Evans <xdje42@gmail.com>
2335 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2337 2014-04-25 Pedro Alves <palves@redhat.com>
2340 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2341 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2342 and newline from built string.
2343 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2344 (linux_ptrace_attach_fail_reason): ... this.
2345 * linux-nat.c (linux_nat_attach): Adjust to use
2346 linux_ptrace_attach_fail_reason.
2348 2014-04-25 Pedro Alves <palves@redhat.com>
2350 * remote.c (struct remote_state): Remove multi_process_aware,
2351 non_stop_aware, cond_tracepoints, cond_breakpoints,
2352 breakpoint_commands, fast_tracepoints, static_tracepoints,
2353 install_in_trace, disconnected_tracing,
2354 enable_disable_tracepoints, string_tracing, and
2355 augmented_libraries_svr4_read fields.
2356 (remote_multi_process_p): Move further below in the file.
2357 (struct packet_config): Add comments.
2358 (update_packet_config): Delete function.
2359 (show_packet_config_cmd): Use packet_config_support.
2360 (add_packet_config_cmd): Use NULL as set callback.
2361 (packet_ok): "set remote foo-packet"-style commands no longer
2362 change config->supported -- adjust.
2363 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2364 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2365 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2366 (PACKET_QNonStop, PACKET_multiprocess_feature)
2367 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2368 (PACKET_DisconnectedTracing_feature)
2369 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2370 (set_remote_protocol_packet_cmd): Delete function.
2371 (packet_config_support, packet_support): New functions.
2372 (set_remote_protocol_Z_packet_cmd): Don't call
2373 update_packet_config.
2374 (remote_query_attached, remote_pass_signals)
2375 (remote_program_signals, remote_threads_info)
2376 (remote_threads_extra_info, remote_start_remote): Use
2378 (remote_start_remote): Use packet_config_support and
2380 (init_all_packet_configs): Set all packets to unknown support,
2381 instead of calling update_packet_config.
2382 (remote_check_symbols): Use packet_support.
2383 (remote_supported_packet): Unconditionally set the packet config's
2385 (remote_multi_process_feature, remote_non_stop_feature)
2386 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2387 (remote_breakpoint_commands_feature)
2388 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2389 (remote_install_in_trace_feature)
2390 (remote_disconnected_tracing_feature)
2391 (remote_enable_disable_tracepoint_feature)
2392 (remote_string_tracing_feature)
2393 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2394 (remote_protocol_features): Adjust to use remote_supported_packet
2395 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2396 "ConditionalTracepoints", "ConditionalBreakpoints",
2397 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2398 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2399 "EnableDisableTracepoints", and "tracenz".
2400 (remote_query_supported): Use packet_support.
2401 (remote_open_1): Adjust.
2402 (extended_remote_attach_1): Use packet_support. Switch on the
2403 result of packet_ok instead of checking whether the packet ended
2405 (remote_vcont_resume): Use packet_support.
2406 (remote_resume, remote_stop_ns, fetch_register_using_p)
2407 (remote_prepare_to_store, store_register_using_P)
2408 (check_binary_download, remote_write_bytes): Use packet_support.
2409 (remote_vkill): Use packet_support. Switch on the result of
2410 packet_ok instead of checking whether the packet ended up
2412 (extended_remote_supports_disable_randomization): Use
2414 (extended_remote_run): Switch on the result of packet_ok instead
2415 of checking whether the packet ended up disabled.
2416 (remote_insert_breakpoint, remote_remove_breakpoint)
2417 (remote_insert_watchpoint, remote_remove_watchpoint)
2418 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2420 (remote_search_memory): Use packet_config_support.
2421 (remote_get_thread_local_address, remote_get_tib_address)
2422 (remote_hostio_send_command, remote_can_execute_reverse): Use
2424 (remote_supports_cond_tracepoints)
2425 (remote_supports_cond_breakpoints)
2426 (remote_supports_fast_tracepoints)
2427 (remote_supports_static_tracepoints)
2428 (remote_supports_install_in_trace)
2429 (remote_supports_enable_disable_tracepoint)
2430 (remote_supports_string_tracing)
2431 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2432 the packet config says the feature is enabled or disabled.
2433 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2434 (remote_get_trace_status): Use packet_support.
2435 (remote_set_disconnected_tracing): Adjust to check whether the
2436 feature is enabled with packet_support.
2437 (remote_set_trace_buffer_size, remote_use_agent)
2438 (remote_can_use_agent, remote_supports_btrace): Use
2440 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2441 Use packet_config_support.
2442 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2443 the packet config says the feature is enabled or disabled.
2444 (set_range_stepping): Use packet_support.
2446 2014-04-25 Tom Tromey <tromey@redhat.com>
2448 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2451 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2453 * NEWS: Mention support for C99 variable length arrays.
2455 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2457 * ada-lang.c (standard_exc): Expand introductory comment.
2459 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2460 Walfred Tedeschi <walfred.tedeschi@intel.com>
2462 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2464 (amd64_linux_read_description): Add code to handle AVX512 xstate
2465 mask and return respective tdesc.
2466 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2467 and features/i386/x32-avx512-linux.c.
2468 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2469 (amd64_linux_core_read_description): Add code to handle AVX512
2470 xstate mask and return respective tdesc.
2471 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2472 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2474 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2475 (tdesc_amd64_avx512_linux): New prototype.
2476 (tdesc_x32_avx512_linux): Likewise.
2477 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2478 features/i386/x32-avx512.c.
2479 (amd64_ymm_avx512_names): New register names for pseudo
2481 (amd64_ymmh_avx512_names): New register names for raw registers
2483 (amd64_k_names): New register names for K registers.
2484 (amd64_zmmh_names): New register names for ZMM raw registers.
2485 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2486 (amd64_xmm_avx512_names): New register names for XMM16-31
2488 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2490 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2491 if feature is present.
2492 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2493 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2494 (AMD64_NUM_REGS): Adjust to new number of registers.
2495 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2496 registers supplied via XSTATE by AVX512 registers.
2497 (i386_linux_read_description): Add case for AVX512.
2498 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2499 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2500 (i386_linux_core_read_description): Add case for AVX512.
2501 (i386_linux_init_abi): Install supported register note section
2503 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2505 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2506 registers to be number of zmm7h + 1.
2507 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2508 * i386-tdep.c: Include features/i386/i386-avx512.c.
2509 (i386_zmm_names): Add ZMM pseudo register names array.
2510 (i386_zmmh_names): Add ZMM raw register names array.
2511 (i386_k_names): Add K raw register names array.
2512 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2513 registers. AVX512 has 16 more ZMM registers than there are YMM
2515 (i386_zmmh_regnum_p): Add function to look up register number of
2517 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2518 (i386_k_regnum_p): Likewise for K raw registers.
2519 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2520 registers added by AVX512.
2521 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2522 registers added by AVX512.
2523 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2525 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2526 (i386_pseudo_register_name): Add ZMM pseudo registers.
2527 (i386_zmm_type): Construct and return vector registers type for ZMM
2529 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2530 ZMM0-31 pseudo registers and K registers.
2531 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2532 and YMM16-31 registers from register cache.
2533 (i386_pseudo_register_write): Add code to write K, ZMM and
2535 (i386_register_reggroup_p): Add code to include/exclude AVX512
2536 registers in/from respective register groups.
2537 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2538 registers if feature is present in xcr0.
2539 (i386_gdbarch_init): Add code to initialize AVX512 feature
2540 variables in tdep structure, wire in pseudo registers and call
2541 initialize_tdesc_i386_avx512.
2542 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2544 (i386_regnum): Add AVX512 registers.
2545 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2546 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2547 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2548 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2550 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2551 (i386_ymm_avx512_regnum_p): Likewise.
2552 (i386_k_regnum_p): Likewise.
2553 (i386_zmm_regnum_p): Likewise.
2554 (i386_zmmh_regnum_p): Likewise.
2555 * i387-tdep.c : Update year in copyright notice.
2556 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2558 (XSAVE_YMM_AVX512_ADDR): New macro.
2559 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2561 (XSAVE_XMM_AVX512_ADDR): New macro.
2562 (xsave_avx512_k_offset): New table for K register offsets in
2564 (XSAVE_AVX512_K_ADDR): New macro.
2565 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2567 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2568 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2570 (i387_collect_xsave): Add code to collect AVX512 registers from
2572 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2573 of XMM16-31 registers.
2574 (I387_NUM_K_REGS): New define for number of K registers.
2575 (I387_K0_REGNUM): New define for K0 register number.
2576 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2577 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2578 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2580 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2581 (I387_XMM16_REGNUM): New define for XMM16 register number.
2582 (I387_YMM0_REGNUM): New define for YMM0 register number.
2583 (I387_KEND_REGNUM): New define for last K register number.
2584 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2585 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2587 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2589 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2591 * features/Makefile: Add AVX512 related files.
2592 * features/i386/32bit-avx512.xml: New file.
2593 * features/i386/64bit-avx512.xml: Likewise.
2594 * features/i386/amd64-avx512-linux.c: Likewise.
2595 * features/i386/amd64-avx512-linux.xml: Likewise.
2596 * features/i386/amd64-avx512.c: Likewise.
2597 * features/i386/amd64-avx512.xml: Likewise.
2598 * features/i386/i386-avx512-linux.c: Likewise.
2599 * features/i386/i386-avx512-linux.xml: Likewise.
2600 * features/i386/i386-avx512.c: Likewise.
2601 * features/i386/i386-avx512.xml: Likewise.
2602 * features/i386/x32-avx512-linux.c: Likewise.
2603 * features/i386/x32-avx512-linux.xml: Likewise.
2604 * features/i386/x32-avx512.c: Likewise.
2605 * features/i386/x32-avx512.xml: Likewise.
2606 * regformats/i386/amd64-avx512-linux.dat: New file.
2607 * regformats/i386/amd64-avx512.dat: Likewise.
2608 * regformats/i386/i386-avx512-linux.dat: Likewise.
2609 * regformats/i386/i386-avx512.dat: Likewise.
2610 * regformats/i386/x32-avx512-linux.dat: Likewise.
2611 * regformats/i386/x32-avx512.dat: Likewise.
2612 * NEWS: Add note about new support for AVX512.
2615 2014-04-23 Pedro Alves <palves@redhat.com>
2617 * breakpoint.c (insert_bp_location): Tolerate errors if the
2618 breakpoint is set in a user-loaded objfile.
2619 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2620 location is marked shlib_disabled. If the breakpoint is set in a
2621 user-loaded objfile is a GDB-side memory breakpoint, validate it
2622 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2623 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2625 * mem-break.c (memory_validate_breakpoint): New function.
2626 * objfiles.c (userloaded_objfile_contains_address_p): New
2628 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2629 * target.h (memory_validate_breakpoint): New declaration.
2631 2014-04-23 Pedro Alves <palves@redhat.com>
2633 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2634 the breakpoint is set in a shared library, only suppress
2635 errors for software breakpoints, not hardware breakpoints.
2637 2014-04-22 Pedro Alves <palves@redhat.com>
2639 * infrun.c (schedlock_applies): New function, factored out from
2640 find_thread_needs_step_over.
2641 (find_thread_needs_step_over): Use it.
2642 (switch_back_to_stepped_thread): Always clear trap_expected if the
2643 step over is finished. Return early if scheduler locking applies.
2644 Look for the stepping thread and a potential step-over thread with
2646 (currently_stepping_or_nexting_callback): Delete.
2648 2014-04-22 Nick Clifton <nickc@redhat.com>
2650 * NEWS: Mention that ARM sim now supports tracing.
2652 2014-04-22 Yao Qi <yao@codesourcery.com>
2654 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2656 * tracefile.c (tracefile_fetch_registers): ... it. New
2658 * tracefile.h (tracefile_fetch_registers): Declare.
2659 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2660 tracefile_fetch_registers.
2662 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2665 * windows-nat.c (thread_rec): Don't display a warning when
2666 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2667 fails for any reason, set th->suspended to -1, so that we don't
2668 try to resume such a thread. Also, don't return NULL in these
2669 cases, to avoid completely ruin the session due to "PC register is
2670 not available" error.
2671 (do_windows_fetch_inferior_registers): Check errors in
2672 GetThreadContext call.
2673 (windows_continue): Accept an additional argument KILLED; if not
2674 zero, ignore errors in the SetThreadContext call, since the
2675 inferior was killed and is shutting down.
2676 (windows_resume, get_windows_debug_event)
2677 (windows_create_inferior, windows_mourn_inferior)
2678 (windows_kill_inferior): All callers of windows_continue changed
2679 to adjust to its new calling sequence.
2681 2014-04-19 Yao Qi <yao@codesourcery.com>
2683 * ctf.c (ctf_open): Call post_create_inferior.
2685 2014-04-19 Yao Qi <yao@codesourcery.com>
2687 * ctf.c (handle_id): New static variable.
2688 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2689 value. Get the declaration of event "register" and get length
2690 of field "contents".
2692 2014-04-19 Yao Qi <yao@codesourcery.com>
2694 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2696 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2698 * valops.c (oload_method_static): Remove unnecessary argument
2699 METHOD. Update all callers.
2701 2014-04-18 Pedro alves <palves@redhat.com>
2702 Tom Tromey <tromey@redhat.com>
2705 * frame.c (get_prev_frame_1): Rename to ...
2706 (get_prev_frame_always): ... this, and make extern. Adjust.
2707 (skip_artificial_frames): Use get_prev_frame_always.
2708 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2709 (get_frame_unwind_stop_reason): Adjust to rename.
2710 * frame.h (get_prev_frame_always): Declare.
2711 * inline-frame.c: Include frame.h.
2712 (inline_frame_this_id): Use get_prev_frame_always.
2714 2014-04-18 Tristan Gingold <gingold@adacore.com>
2716 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2717 code by using bfd_mach_o_get_base_address.
2719 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2721 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2722 (spu_ax_pseudo_register_collect): New function.
2723 (spu_ax_pseudo_register_push_stack): Likewise.
2724 (spu_dwarf_reg_to_regnum): Likewise.
2725 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2727 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2729 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2730 Replace FRAME argument with FRAME_ID.
2731 * gdbarch.c, gdbarch.h: Regenerate.
2732 * findvar.c (default_value_from_register): Add GDBARCH argument;
2733 replace FRAME by FRAME_ID. No longer call get_frame_id.
2734 (value_from_register): Update call to gdbarch_value_from_register.
2735 * value.h (default_value_from_register): Update prototype.
2736 * s390-linux-tdep.c (s390_value_from_register): Update interface
2737 and call to default_value_from_register.
2738 * spu-tdep.c (spu_value_from_register): Likewise.
2740 * findvar.c (address_from_register): Remove TYPE argument.
2741 Do not call value_from_register; use gdbarch_value_from_register
2742 with null_frame_id instead.
2743 * value.h (address_from_register): Update prototype.
2744 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2745 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2746 address_from_register interface change.
2748 2014-04-17 Yao Qi <yao@codesourcery.com>
2750 * gdbtypes.h: Update comments to link to types and macros'
2753 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2755 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2757 2014-04-16 Keith Seitz <keiths@redhat.com>
2760 * dwarf2read.c (skip_one_die): Check that all relative-offset
2761 sibling DIEs fall within range of the current reader's buffer.
2762 (read_partial_die): Likewise.
2764 2014-04-16 Keith Seitz <keiths@redhat.com>
2767 * cp-namespace.c (lookup_symbol_file): If the type name of
2768 `this' is NULL, return immediately.
2770 2014-04-14 Keith Seitz <keiths@redhat.com>
2773 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2774 from symbol_matches_domain in symtab.c. All local callers
2775 of symbol_matches_domain updated.
2776 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2777 search STRUCT_DOMAIN.
2778 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2779 independently. standard_lookup will do that automatically.
2780 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2781 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2782 (cp_lookup_symbol_in_namespace): Likewise.
2783 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2784 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2785 may return a STRUCT_DOMAIN match.
2786 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2787 * cp-support.c: Include language.h.
2788 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2790 * psymtab.c (match_partial_symbol): Compare the requested
2791 domain with the symbol's domain directly.
2792 (lookup_partial_symbol): Likewise.
2793 * symtab.c (lookup_symbol_in_language): Explain when/why
2794 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2795 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2796 appropriate languages.
2797 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2798 and moved to ada-lang.c
2799 (lookup_block_symbol): Explain that this function only returns
2800 symbol matching the requested DOMAIN.
2801 Compare the requested domain with the symbol's domain directly.
2802 (iterate_over_symbols): Compare the requested domain with the
2803 symbol's domain directly.
2804 * symtab.h (symbol_matches_domain): Remove.
2806 2014-04-14 Tom Tromey <tromey@redhat.com>
2809 * c-exp.y (type_aggregate_p): New function.
2810 (qualified_name, classify_inner_name): Use it.
2811 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2812 and TYPE_TARGET_TYPE of an enum type.
2813 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2815 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2816 handle TYPE_DECLARED_CLASS.
2817 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2819 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2820 * valops.c (enum_constant_from_type): New function.
2821 (value_aggregate_elt): Use it.
2822 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2825 2014-04-14 Tom Tromey <tromey@redhat.com>
2827 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2828 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2830 * value.h (value_aggregate_elt): Update.
2832 2014-04-14 Tom Tromey <tromey@redhat.com>
2834 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2836 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2838 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2839 (evaluate_subexp_standard): Pass noside argument.
2840 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2841 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2842 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2843 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2844 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2846 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2848 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2849 points to a constant blob.
2851 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2853 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2854 property and store it as the high bound and flag the range accordingly.
2855 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2856 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2857 * gdbtypes.h (enum range_flags): New enum.
2858 (struct range_bounds): Add flags member.
2860 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2862 * c-typeprint.c (c_type_print_varspec_suffix): Added
2863 check for not yet resolved high bound. If unresolved, print
2864 "variable length" string to the console instead of random
2867 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2869 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2871 (ada_template_to_fixed_record_type_1): Likewise.
2872 (ada_to_fixed_type_1): Likewise.
2873 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2874 (cp_print_value): Likewise.
2875 * d-valprint.c (dynamic_array_type): Likewise.
2876 * findvar.c (address_of_variable): Likewise.
2877 * jv-valprint.c (java_value_print): Likewise.
2878 * valops.c (value_ind): Likewise.
2879 * value.c (coerce_ref): Likewise.
2881 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2883 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2884 value and retrieve the dynamic type size.
2886 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2888 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2889 passed to sizeof is dynamic evaluate the argument to compute the length.
2891 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2892 Joel Brobecker <brobecker@adacore.com>
2894 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2895 (dwarf2_evaluate_property): New function.
2896 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2897 * dwarf2read.c (attr_to_dynamic_prop): New function.
2898 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2900 * gdbtypes.c: Include dwarf2loc.h.
2901 (is_dynamic_type): New function.
2902 (resolve_dynamic_type): New function.
2903 (resolve_dynamic_bounds): New function.
2904 (get_type_length): New function.
2905 (check_typedef): Use get_type_length to compute type length.
2906 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2907 (TYPE_LOW_BOUND_KIND): New macro.
2908 (is_dynamic_type): New function prototype.
2909 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2910 to resolve dynamic properties of the type. Update comment.
2911 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2913 2014-04-14 Richard Henderson <rth@redhat.com>
2915 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2917 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2918 Doug Evans <xdje42@gmail.com>
2920 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2921 dereference TYPE_CODE_REF values.
2923 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2925 Revert the following changes due to regressions:
2927 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2928 (dwarf2_evaluate_property): New function.
2929 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2930 * dwarf2read.c (attr_to_dynamic_prop): New function.
2931 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2933 * gdbtypes.c: Include dwarf2loc.h.
2934 (is_dynamic_type): New function.
2935 (resolve_dynamic_type): New function.
2936 (resolve_dynamic_bounds): New function.
2937 (get_type_length): New function.
2938 (check_typedef): Use get_type_length to compute type length.
2939 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2940 (TYPE_LOW_BOUND_KIND): New macro.
2941 (is_dynamic_type): New function prototype.
2942 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2943 to resolve dynamic properties of the type. Update comment.
2944 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2946 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2947 passed to sizeof is dynamic evaluate the argument to compute the length.
2949 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2950 value and retrieve the dynamic type size.
2952 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2953 (ada_template_to_fixed_record_type_1): Likewise.
2954 (ada_to_fixed_type_1): Likewise.
2955 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2956 (cp_print_value): Likewise.
2957 * d-valprint.c (dynamic_array_type): Likewise.
2958 * eval.c (evaluate_subexp_with_coercion): Likewise.
2959 * findvar.c (address_of_variable): Likewise.
2960 * jv-valprint.c (java_value_print): Likewise.
2961 * valops.c (value_ind): Likewise.
2962 * value.c (coerce_ref): Likewise.
2964 * c-typeprint.c (c_type_print_varspec_suffix): Added
2965 check for not yet resolved high bound. If unresolved, print
2966 "variable length" string to the console instead of random
2969 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2970 property and store it as the high bound and flag the range accordingly.
2971 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2972 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2973 * gdbtypes.h (enum range_flags): New enum.
2974 (struct range_bounds): Add flags member.
2976 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2977 points to a constant blob.
2979 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2980 (evaluate_subexp_standard): Pass noside argument.
2981 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2982 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2983 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2984 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2985 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2987 2014-04-11 Keith Seitz <keiths@redhat.com>
2990 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2991 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2994 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2996 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2997 (evaluate_subexp_standard): Pass noside argument.
2998 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2999 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3000 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3001 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3002 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3004 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3006 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3007 points to a constant blob.
3009 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3011 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3012 property and store it as the high bound and flag the range accordingly.
3013 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3014 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3015 * gdbtypes.h (enum range_flags): New enum.
3016 (struct range_bounds): Add flags member.
3018 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3020 * c-typeprint.c (c_type_print_varspec_suffix): Added
3021 check for not yet resolved high bound. If unresolved, print
3022 "variable length" string to the console instead of random
3025 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3027 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3028 (ada_template_to_fixed_record_type_1): Likewise.
3029 (ada_to_fixed_type_1): Likewise.
3030 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3031 (cp_print_value): Likewise.
3032 * d-valprint.c (dynamic_array_type): Likewise.
3033 * eval.c (evaluate_subexp_with_coercion): Likewise.
3034 * findvar.c (address_of_variable): Likewise.
3035 * jv-valprint.c (java_value_print): Likewise.
3036 * valops.c (value_ind): Likewise.
3037 * value.c (coerce_ref): Likewise.
3039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3041 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3042 value and retrieve the dynamic type size.
3044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3046 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3047 passed to sizeof is dynamic evaluate the argument to compute the length.
3049 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3051 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3052 (dwarf2_evaluate_property): New function.
3053 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3054 * dwarf2read.c (attr_to_dynamic_prop): New function.
3055 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3057 * gdbtypes.c: Include dwarf2loc.h.
3058 (is_dynamic_type): New function.
3059 (resolve_dynamic_type): New function.
3060 (resolve_dynamic_bounds): New function.
3061 (get_type_length): New function.
3062 (check_typedef): Use get_type_length to compute type length.
3063 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3064 (TYPE_LOW_BOUND_KIND): New macro.
3065 (is_dynamic_type): New function prototype.
3066 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3067 to resolve dynamic properties of the type. Update comment.
3068 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3070 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3072 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3073 declaring high/low bounds and change uses accordingly. Call
3074 create_range_type instead of create_static_range_type.
3075 * gdbtypes.c (create_range_type): New function.
3076 (create_range_type): Convert bounds into struct bound_prop and pass
3077 them to create_range_type.
3078 * gdbtypes.h (struct bound_prop): New struct.
3079 (create_range_type): New function prototype.
3080 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3081 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3082 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3084 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3086 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3088 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3089 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3090 * ada-lang.c: All uses of create_range_type updated.
3091 * coffread.c: All uses of create_range_type updated.
3092 * dwarf2read.c: All uses of create_range_type updated.
3093 * f-exp.y: All uses of create_range_type updated.
3094 * m2-valprint.c: All uses of create_range_type updated.
3095 * mdebugread.c: All uses of create_range_type updated.
3096 * stabsread.c: All uses of create_range_type updated.
3097 * valops.c: All uses of create_range_type updated.
3098 * valprint.c: All uses of create_range_type updated.
3100 2014-04-10 Pedro Alves <palves@redhat.com>
3102 * breakpoint.c (single_step_breakpoints)
3103 (single_step_gdbarch): Move up in the file.
3104 (one_breakpoint_xfer_memory): New function, factored out from ...
3105 (breakpoint_xfer_memory): ... here. Also process single-step
3108 2014-04-09 Tristan Gingold <gingold@adacore.com>
3110 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3112 (darwin_decode_exception_message): Free port only after use.
3114 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3116 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3117 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3118 when setting the size of call_length.
3120 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3122 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3123 dereference TYPE_CODE_REF values.
3125 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3127 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3128 end of warning message.
3130 2014-04-03 Doug Evans <dje@google.com>
3132 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3133 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3135 2014-04-02 Alan Modra <amodra@gmail.com>
3137 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3138 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3139 (struct symbol_file_add_from_memory_args): Add size field.
3140 (find_vdso_size): New function.
3141 (add_vsyscall_page): Attempt to find vdso size.
3143 2014-04-01 Doug Evans <dje@google.com>
3145 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3147 2014-04-01 Tristan Gingold <gingold@adacore.com>
3149 * darwin-nat.c (darwin_encode_reply): Add prototype.
3150 (darwin_decode_exception_message): Reply to unknown inferiors.
3151 (darwin_decode_message): Handle message by id. Ignore message
3152 to unknown inferior.
3153 (darwin_wait): Discard unknown messages, add debug trace.
3155 2014-03-31 Doug Evans <dje@google.com>
3157 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3160 2014-03-31 Doug Evans <dje@google.com>
3162 New option "set print symbol-loading".
3164 * solib.c (solib_read_symbols): Only print symbol loading messages
3166 (solib_add): If symbol loading is in "brief" mode, notify user
3167 symbols are being loaded.
3168 (reload_shared_libraries_1): Ditto.
3169 * symfile.c (print_symbol_loading_off): New static global.
3170 (print_symbol_loading_brief): New static global.
3171 (print_symbol_loading_full): New static global.
3172 (print_symbol_loading_enums): New static global.
3173 (print_symbol_loading): New static global.
3174 (print_symbol_loading_p): New function.
3175 (symbol_file_add_with_addrs): Only print symbol loading messages
3177 (_initialize_symfile): Register "print symbol-loading" set/show
3179 * symfile.h (print_symbol_loading_p): Declare.
3181 2014-03-30 Doug Evans <xdje42@gmail.com>
3183 * infrun.c (set_last_target_status): New function.
3184 (handle_inferior_event): Call it.
3186 2014-03-30 Doug Evans <xdje42@gmail.com>
3188 * inferior.h (enum stop_kind): Improve comment.
3190 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3192 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3193 a reference, strip the reference layer before calling
3194 the lang_ops value_has_mutated callback.
3196 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3198 Remove some globals from our parser.
3199 * language.c (unk_lang_parser): Add "struct parser_state"
3201 * language.h (struct language_defn) <la_parser>: Likewise.
3202 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3203 (initialize_expout): Add "struct parser_state" argument.
3204 Rewrite function to use the parser state.
3205 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3206 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3207 write_exp_elt_longcst, write_exp_elt_dblcst,
3208 write_exp_elt_decfloatcst, write_exp_elt_type,
3209 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3210 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3211 write_dollar_variable): Likewise.
3212 (parse_exp_in_context_1): Use parser state.
3213 (insert_type_address_space): Add "struct parser_state" argument.
3215 (increase_expout_size): New function.
3216 * parser-defs.h: Forward declare "struct language_defn" and
3217 "struct parser_state".
3218 (expout, expout_size, expout_ptr): Remove extern declarations.
3219 (parse_gdbarch, parse_language): Rewrite macro declarations to
3220 accept the parser state.
3221 (struct parser_state): New struct.
3222 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3223 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3224 write_exp_elt_decfloatcst, write_exp_elt_type,
3225 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3226 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3227 write_exp_msymbol, write_dollar_variable,
3228 mark_struct_expression, insert_type_address_space): Add "struct
3229 parser_state" argument.
3230 (increase_expout_size): New function.
3231 * utils.c (do_clear_parser_state): New function.
3232 (make_cleanup_clear_parser_state): Likewise.
3233 * utils.h (make_cleanup_clear_parser_state): New function
3235 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3236 Update calls to write_exp* in order to pass the parser state.
3237 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3238 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3239 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3240 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3241 * stap-probe.c (stap_parse_register_operand): Likewise.
3242 (stap_parse_single_operand): Likewise.
3243 (stap_parse_argument_1): Likewise.
3244 (stap_parse_argument): Use parser state.
3245 * stap-probe.h: Include "parser-defs.h".
3246 (struct stap_parse_info) <pstate>: New field.
3247 * c-exp.y (parse_type): Rewrite to use parser state.
3248 (yyparse): Redefine to c_parse_internal.
3249 (pstate): New global variable.
3250 (parse_number): Add "struct parser_state" argument.
3251 (write_destructor_name): Likewise.
3252 (type_exp): Update calls to write_exp* and similars in order to
3254 (exp1, exp, variable, qualified_name, space_identifier,
3255 typename, typebase): Likewise.
3256 (write_destructor_name, parse_number, lex_one_token,
3257 classify_name, classify_inner_name, c_parse): Add "struct
3258 parser_state" argument. Update function to use parser state.
3259 * c-lang.h: Forward declare "struct parser_state".
3260 (c_parse): Add "struct parser_state" argument.
3261 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3262 (yyparse): Redefine macro to ada_parse_internal.
3263 (pstate): New variable.
3264 (write_int, write_object_renaming, write_var_or_type,
3265 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3266 type_int, type_long, type_long_long, type_float, type_double,
3267 type_long_double, type_char, type_boolean, type_system_address):
3268 Add "struct parser_state" argument.
3269 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3270 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3271 var_or_type, aggregate, aggregate_component_list,
3272 positional_list, others, component_group,
3273 component_associations): Update calls to write_exp* and similar
3274 functions in order to use parser state.
3275 (ada_parse, write_var_from_sym, write_int,
3276 write_exp_op_with_string, write_object_renaming,
3277 find_primitive_type, write_selectors, write_ambiguous_var,
3278 write_var_or_type, write_name_assoc, type_int, type_long,
3279 type_long_long, type_float, type_double, type_long_double,
3280 type_char, type_boolean, type_system_address): Add "struct
3281 parser_state" argument. Adjust function to use parser state.
3282 * ada-lang.c (parse): Likewise.
3283 * ada-lang.h: Forward declare "struct parser_state".
3284 (ada_parse): Add "struct parser_state" argument.
3285 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3286 calls to both functions.
3287 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3289 (yyparse): Redefine macro to f_parse_internal.
3290 (pstate): New variable.
3291 (parse_number): Add "struct parser_state" argument.
3292 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3293 and similars in order to use parser state.
3294 (parse_number): Adjust code to use parser state.
3296 (f_parse): New function.
3297 * f-lang.h: Forward declare "struct parser_state".
3298 (f_parse): Add "struct parser_state" argument.
3299 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3301 (yyparse): Redefine macro for java_parse_internal.
3302 (pstate): New variable.
3303 (push_expression_name, push_expression_name, insert_exp): Add
3304 "struct parser_state" argument.
3305 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3306 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3307 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3308 PostIncrementExpression, PostDecrementExpression,
3309 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3310 UnaryExpressionNotPlusMinus, CastExpression,
3311 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3312 RelationalExpression, EqualityExpression, AndExpression,
3313 ExclusiveOrExpression, InclusiveOrExpression,
3314 ConditionalAndExpression, ConditionalOrExpression,
3315 ConditionalExpression, Assignment, LeftHandSide): Update
3316 calls to write_exp* and similars in order to use parser state.
3317 (parse_number): Ajust code to use parser state.
3319 (java_parse): New function.
3320 (push_variable): Add "struct parser_state" argument. Adjust
3321 code to user parser state.
3322 (push_fieldnames, push_qualified_expression_name,
3323 push_expression_name, insert_exp): Likewise.
3324 * jv-lang.h: Forward declare "struct parser_state".
3325 (java_parse): Add "struct parser_state" argument.
3326 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3328 (yyparse): Redefine macro to m2_parse_internal.
3329 (pstate): New variable.
3330 (type_exp, exp, fblock, variable, type): Update calls to
3331 write_exp* and similars to use parser state.
3333 (m2_parse): New function.
3334 * m2-lang.h: Forward declare "struct parser_state".
3335 (m2_parse): Add "struct parser_state" argument.
3336 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3337 * objc-lang.h: Forward declare "struct parser_state".
3338 (end_msglist): Add "struct parser_state" argument.
3339 * p-exp.y (parse_type): Rewrite macro to use parser state.
3340 (yyparse): Redefine macro to pascal_parse_internal.
3341 (pstate): New variable.
3342 (parse_number): Add "struct parser_state" argument.
3343 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3344 write_exp* and similars in order to use parser state.
3345 (parse_number, yylex): Adjust code to use parser state.
3346 (pascal_parse): New function.
3347 * p-lang.h: Forward declare "struct parser_state".
3348 (pascal_parse): Add "struct parser_state" argument.
3349 * go-exp.y (parse_type): Rewrite macro to use parser state.
3350 (yyparse): Redefine macro to go_parse_internal.
3351 (pstate): New variable.
3352 (parse_number): Add "struct parser_state" argument.
3353 (type_exp, exp1, exp, variable, type): Update calls to
3354 write_exp* and similars in order to use parser state.
3355 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3356 to use parser state.
3357 (go_parse): Likewise.
3358 * go-lang.h: Forward declare "struct parser_state".
3359 (go_parse): Add "struct parser_state" argument.
3361 2014-03-27 Doug Evans <dje@google.com>
3363 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3365 2014-03-27 Doug Evans <dje@google.com>
3367 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3368 Remove argument abbrev_section. All callers updated.
3370 2014-03-27 Doug Evans <dje@google.com>
3372 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3373 addr_base, ranges_base.
3375 2014-03-26 Keith Seitz <keiths@redhat.com>
3377 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3378 types, not VAR_DOMAIN.
3380 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3382 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3384 * features/nios2-linux.c: Regenerated.
3385 * features/nios2.c: Regenerated.
3387 2014-03-25 Pedro Alves <palves@redhat.com>
3389 * cli/cli-script.c (script_from_file): Force the interpreter to
3392 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3394 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3395 small stack allocation.
3397 2014-03-24 Tristan Gingold <gingold@adacore.com>
3399 * darwin-nat.c (exc_server): Remove unused prototype.
3400 (darwin_dump_message): Correctly display data on x86_64.
3401 (darwin_encode_reply): Fix style.
3402 Add comments and fix indentation.
3404 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3406 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3408 2014-03-22 Doug Evans <xdje42@gmail.com>
3410 * infcmd.c: Whitespace fixes.
3411 (interrupt_command): Merge two function comments into one.
3413 2014-03-22 Doug Evans <xdje42@gmail.com>
3415 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3418 2014-03-22 Yao Qi <yao@codesourcery.com>
3420 * remote.c (target_read_live_memory): Remove.
3421 (memory_xfer_live_readonly_partial): Rename it to
3422 remote_xfer_live_readonly_partial. Remove argument 'object'.
3423 All callers updated. Call remote_read_bytes_1
3424 instead of target_read_live_memory.
3425 * tracepoint.c (set_traceframe_number): Remove.
3426 (make_cleanup_restore_traceframe_number): Likewise .
3427 * tracepoint.h (set_traceframe_number): Remove declaration.
3428 (make_cleanup_restore_traceframe_number): Likewise.
3430 2014-03-22 Yao Qi <yao@codesourcery.com>
3432 * remote.c (remote_read_bytes): Move code on reading from the
3434 (remote_read_bytes_1): ... here. New function.
3436 2014-03-22 Yao Qi <yao@codesourcery.com>
3438 * ctf.c (ctf_xfer_partial): Check the return value of
3439 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3440 return TARGET_XFER_UNAVAILABLE.
3441 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3442 * target.c (target_read_live_memory): Move it to remote.c.
3443 (memory_xfer_live_readonly_partial): Likewise.
3444 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3445 * remote.c (target_read_live_memory): Moved from target.c.
3446 (memory_xfer_live_readonly_partial): Likewise.
3447 (remote_read_bytes): Factored out from
3448 memory_xfer_partial_1.
3450 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3452 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3455 2014-03-21 Pedro Alves <palves@redhat.com>
3457 * infrun.c (normal_stop): Extend comment.
3459 2014-03-21 Hui Zhu <hui@codesourcery.com>
3460 Pedro Alves <palves@redhat.com>
3462 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3464 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3465 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3466 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3468 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3470 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3471 `z' formatted output modifier.
3473 2014-03-20 Tom Tromey <tromey@redhat.com>
3474 Sergio Durigan Junior <sergiodj@redhat.com>
3476 * probe.c (parse_probes): Turn assert into an ordinary error.
3477 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3478 exceptions when parsing probes. Rearrange the code for clarity.
3480 2014-03-20 Tom Tromey <tromey@redhat.com>
3483 * top.c (execute_command): Only dispatch events if the command
3486 2014-03-20 Tom Tromey <tromey@redhat.com>
3489 * infcall.c: Include event-top.h.
3490 (run_inferior_call): Call async_disable_stdin if needed.
3492 2014-03-20 Pedro Alves <palves@redhat.com>
3494 * infrun.c (prepare_to_proceed): Delete.
3495 (thread_still_needs_step_over): New function.
3496 (find_thread_needs_step_over): New function.
3497 (proceed): If the current thread needs a step-over, set its
3498 steping_over_breakpoint flag. Adjust to use
3499 find_thread_needs_step_over instead of prepare_to_proceed.
3500 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3501 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3503 (switch_back_to_stepped_thread): Step over breakpoints of all
3504 threads not the stepping thread, before switching back to the
3507 2014-03-20 Pedro Alves <palves@redhat.com>
3509 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3511 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3512 * infrun.c (saved_singlestep_ptid)
3513 (stepping_past_singlestep_breakpoint): Delete.
3514 (resume): Remove stepping_past_singlestep_breakpoint handling.
3515 (proceed): Store the prev_pc of the stepping thread too.
3516 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3518 (enum infwait_states): Delete infwait_thread_hop_state.
3519 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3521 (handle_inferior_event): Adjust.
3522 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3523 handling and the thread-hop code. Before removing single-step
3524 breakpoints, check whether the thread hit a single-step breakpoint
3525 of another thread. If it did, the trap is not a random signal.
3526 (switch_back_to_stepped_thread): If the event thread hit a
3527 single-step breakpoint, unblock it before switching to the
3528 stepping thread. Handle the case of the stepped thread having
3530 (keep_going): Handle the case of the current thread moving past a
3531 single-step breakpoint.
3533 2014-03-20 Pedro Alves <palves@redhat.com>
3536 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3537 are being stepped over.
3538 (breakpoint_address_match): Make extern.
3539 * breakpoint.h (breakpoint_address_match): New declaration.
3540 * inferior.h (stepping_past_instruction_at): New declaration.
3541 * infrun.c (struct step_over_info): New type.
3542 (step_over_info): New global.
3543 (set_step_over_info, clear_step_over_info)
3544 (stepping_past_instruction_at): New functions.
3545 (handle_inferior_event): Clear the step-over info when
3546 trap_expected is cleared.
3547 (resume): Remove now stale comment.
3548 (clear_proceed_status): Clear step-over info.
3549 (proceed): Adjust step-over handling to set or clear the step-over
3550 info instead of removing all breakpoints.
3551 (handle_signal_stop): When setting up a thread-hop, don't remove
3553 (stop_stepping): Clear step-over info.
3554 (keep_going): Adjust step-over handling to set or clear step-over
3555 info and then always inserting breakpoints, instead of removing
3556 all breakpoints when stepping over one.
3558 2014-03-20 Pedro Alves <palves@redhat.com>
3560 * infrun.c (previous_inferior_ptid): Adjust comment.
3561 (deferred_step_ptid): Delete.
3562 (infrun_thread_ptid_changed, prepare_to_proceed)
3563 (init_wait_for_inferior): Adjust.
3564 (handle_signal_stop): Delete deferred_step_ptid handling.
3566 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 * defs.h (sync_quit_force_run): New declaration.
3570 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3571 * event-top.c (async_sigterm_handler): New declaration.
3572 (async_sigterm_token): New variable.
3573 (async_init_signals): Create also async_sigterm_token.
3574 (async_sigterm_handler): New function.
3575 (sync_quit_force_run): New variable.
3576 (handle_sigterm): Replace quit_force call by other calls.
3577 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3579 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3581 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3582 offset into SPE pseudo registers.
3584 2014-03-18 Pedro Alves <palves@redhat.com>
3587 * inferior.h (print_stop_event): Declare.
3588 * infrun.c (print_stop_event): New, factored out from ...
3589 (normal_stop): ... this.
3590 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3591 of bpstat_print/print_stack_frame.
3593 2014-03-17 Tom Tromey <tromey@redhat.com>
3595 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3597 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3599 * ada-lang.c (decode_constrained_packed_array): Perform a
3600 minimal coercion for reference with coerce_ref instead of
3603 2014-03-17 Tristan Gingold <gingold@adacore.com>
3605 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3606 (darwin_solib_create_inferior_hook): Emit a warning if version
3609 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3611 * python/py-value.c (get_field_flag): Cast flag_name argument to
3612 PyObject_GetAttrString to support Python 2.4.
3614 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3616 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3617 (Global Maintainers): Remove Jan Kratochvil.
3619 2014-03-14 Pedro Alves <palves@redhat.com>
3621 * inferior.h (terminal_ours_for_output): Rename to ...
3622 (child_terminal_ours_for_output): ... this.
3623 (terminal_save_ours): Rename to ...
3624 (child_terminal_save_ours): ... this.
3625 (terminal_ours): Rename to ...
3626 (child_terminal_ours): ... this.
3627 (terminal_inferior): Rename to ...
3628 (child_terminal_inferior): ... this.
3629 (terminal_init_inferior): Rename to ...
3630 (child_terminal_init_inferior): ... this.
3631 (terminal_init_inferior_with_pgrp): Rename to ...
3632 (child_terminal_init_inferior_with_pgrp): ... this.
3633 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3634 (child_terminal_init_with_pgrp): ... this.
3635 (terminal_save_ours): Rename to ...
3636 (child_terminal_save_ours): ... this.
3637 (terminal_init_inferior): Rename to ...
3638 (child_terminal_init): ... this. Adjust.
3639 (terminal_inferior): Rename to ...
3640 (child_terminal_inferior): ... this.
3641 (terminal_ours_for_output): Rename to ...
3642 (child_terminal_ours_for_output): ... this. Adjust.
3643 (terminal_ours): Rename to ...
3644 (child_terminal_ours): ... this.
3645 (terminal_ours_1): Rename to ...
3646 (child_terminal_ours_1): ... this. Adjust.
3647 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3648 * windows-nat.c (do_initial_windows_stuff): Adjust.
3649 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3650 (gnu_terminal_init): ... this. Adjust.
3651 (gnu_target): Adjust.
3652 * inf-child.c (inf_child_target): Adjust.
3654 2014-03-13 Doug Evans <xdje42@gmail.com>
3657 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3660 2014-03-13 Doug Evans <xdje42@gmail.com>
3662 * value.c (record_latest_value): Call release_value_or_incref
3663 instead of release_value.
3665 2014-03-13 Pedro Alves <palves@redhat.com>
3667 * procfs.c (procfs_target): Don't override to_shortname,
3668 to_longname or to_doc.
3670 2014-03-13 Pedro Alves <palves@redhat.com>
3672 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3673 Unix in user visible strings.
3675 2014-03-12 Stan Shebs <stan@codesourcery.com>
3677 * gdbtypes.h: Annotate comments for Doxygen, add a page
3678 block comment with some general info.
3680 2014-03-12 Pedro Alves <palves@redhat.com>
3682 * infcmd.c (prepare_execution_command): New function, factored out
3683 from several execution commands.
3684 (run_command_1, continue_command, step_1, jump_command)
3685 (signal_command, until_command, advance_command, finish_command)
3686 (attach_command): Use prepare_execution_command.
3688 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3690 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3693 (struct arm_linux_thread_points): Removed.
3694 (struct arm_linux_process_info): New.
3695 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3696 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3697 (arm_linux_find_breakpoints_by_tid): Removed.
3698 (struct arch_lwp_info): New.
3699 (arm_linux_find_process_pid): New functions.
3700 (arm_linux_add_process): New functions.
3701 (arm_linux_process_info_get): New functions.
3702 (arm_linux_forget_process): New function.
3703 (arm_linux_get_debug_reg_state): New function.
3704 (struct update_registers_data): New.
3705 (update_registers_callback): New function.
3706 (arm_linux_insert_hw_breakpoint1): Updated.
3707 (arm_linux_remove_hw_breakpoint1): Updated.
3708 (arm_linux_insert_hw_breakpoint): Updated.
3709 (arm_linux_remove_hw_breakpoint): Updated.
3710 (arm_linux_insert_watchpoint): Updated.
3711 (arm_linux_remove_watchpoint): Updated.
3712 (arm_linux_new_thread): Updated.
3713 (arm_linux_prepare_to_resume): New function.
3714 (arm_linux_new_fork): New function.
3715 (_initialize_arm_linux_nat): Updated.
3717 2014-03-12 Pedro Alves <palves@redhat.com>
3719 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3721 2014-03-12 Tom Tromey <tromey@redhat.com>
3723 * inf-child.c (return_zero): New function.
3724 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3725 * aix-thread.c (aix_thread_inferior_created): New function.
3726 (aix_thread_attach): Remove.
3727 (init_aix_thread_ops): Don't set to_attach.
3728 (_initialize_aix_thread): Register inferior_created observer.
3729 * corelow.c (init_core_ops): Don't set to_attach or
3731 * exec.c (init_exec_ops): Don't set to_attach or
3733 * infcmd.c (run_command_1): Use find_run_target. Make direct
3735 (attach_command): Use find_attach_target. Make direct target
3737 * record-btrace.c (init_record_btrace_ops): Don't set
3739 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3741 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3742 set to_create_inferior.
3743 * target.c (complete_target_initialization): Add assertion.
3744 (target_create_inferior): Remove.
3745 (find_default_attach, find_default_create_inferior): Remove.
3746 (find_attach_target, find_run_target): New functions.
3747 (find_default_is_async_p, find_default_can_async_p)
3748 (target_supports_non_stop, target_attach): Remove.
3749 (init_dummy_target): Don't set to_create_inferior or
3750 to_supports_non_stop.
3751 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3752 TARGET_DEFAULT_FUNC.
3753 <to_create_inferior>: Add comment.
3754 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3755 TARGET_DEFAULT_RETURN.
3756 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3757 (find_attach_target, find_run_target): Declare.
3758 (target_create_inferior): Remove.
3759 (target_has_execution_1): Update comment.
3760 (target_supports_non_stop): Remove.
3761 * target-delegates.c: Rebuild.
3763 2014-03-12 Pedro Alves <palves@redhat.com>
3765 * inf-child.h: Update comment to not mention Unix.
3767 2014-03-12 Pedro Alves <palves@redhat.com>
3769 * inf-child.c: Update top comment to not mention Unix. Add
3770 generic comment describing how this target is meant to be used.
3771 (inf_child_post_attach, inf_child_post_startup_inferior)
3772 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3775 2014-03-12 Pedro Alves <palves@redhat.com>
3777 * nto-procfs.c: Include inf-child.h.
3778 (procfs_ops): Delete global.
3779 (procfs_can_run): Delete method.
3780 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3781 target pointer instead of referencing procfs_ops.
3782 (procfs_prepare_to_store): Delete.
3783 (init_procfs_ops): Delete function.
3784 (procfs_target): New function, based on init_procfs_ops, but
3785 inherit inf_child_target.
3786 (_initialize_procfs): Use procfs_target.
3788 2014-03-12 Pedro Alves <palves@redhat.com>
3790 * windows-nat.c: Include inf-child.h.
3791 (windows_ops): Delete global.
3792 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3794 (init_windows_ops): Delete function.
3795 (windows_target): New function, based on init_windows_ops, but
3796 inherit inf_child_target.
3797 (_initialize_windows_nat): Use windows_target. Install x86
3798 specific target methods here.
3800 2014-03-10 Doug Evans <xdje42@gmail.com>
3802 * guile/guile.c (call_initialize_gdb_module): New function.
3803 (initialize_guile): Replace call to scm_init_guile with call to
3806 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3808 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3809 in call to TYPE_CODE macro.
3811 2014-03-10 Jerome Guitton <guitton@adacore.com>
3813 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3814 Resolve tagged types to full view.
3816 2014-03-10 Hui Zhu <hui@codesourcery.com>
3818 * target.h (target_insert_breakpoint): Remove "hardware" from its
3821 2014-03-07 Doug Evans <dje@google.com>
3823 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3825 2014-03-07 Doug Evans <dje@google.com>
3827 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3828 Remove unused local comp_dir_attr. Assert exactly one of
3829 stub_comp_unit_die, stub_comp_dir is non-NULL.
3831 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3833 * target.h (complete_target_initialization, add_target):
3836 2014-03-07 Pedro Alves <palves@redhat.com>
3838 * go32-nat.c: Include inf-child.h.
3839 (go32_ops): Delete global.
3840 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3842 (go32_create_inferior): Push the passed in target pointer instead
3843 of referencing go32_ops.
3844 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3845 (go32_target): New function, based on init_go32_ops, but inherit
3847 (_initialize_go32_nat): Use go32_target. Move parts of
3850 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3852 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3853 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3854 SYMBOL_VALUE_ADDRESS.
3855 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3857 2014-03-06 Yao Qi <yao@codesourcery.com>
3859 * breakpoint.c (get_tracepoint_by_number): Remove argument
3860 optional_p. All callers updated. Adjust comments. Update
3862 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3864 2014-03-06 Yao Qi <yao@codesourcery.com>
3866 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3867 early if get_number returns zero. Use 'p' instead of 'args'.
3869 2014-03-06 Yao Qi <yao@codesourcery.com>
3871 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3874 2014-03-06 Yao Qi <yao@codesourcery.com>
3876 PR breakpoints/16508
3877 * tracepoint.c (check_trace_running): New function.
3878 (trace_find_command): Move code to check_trace_running and
3879 call check_trace_running.
3880 (trace_find_pc_command): Likewise.
3881 (trace_find_tracepoint_command): Likewise.
3882 (trace_find_line_command): Likewise.
3883 (trace_find_range_command): Likewise.
3884 * tracepoint.h (check_trace_running): Likewise.
3885 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3887 2014-03-06 Yao Qi <yao@codesourcery.com>
3889 * target.h (struct target_ops) <to_traceframe_info>: Use
3890 TARGET_DEFAULT_NORETURN (tcomplain ()).
3891 * target-delegates.c: Regenerated.
3893 2014-03-05 Pedro Alves <palves@redhat.com>
3896 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3897 void. Update comment.
3898 (dcache_xfer_memory): Delete.
3899 (dcache_read_memory_partial): New, based on the read bits of
3901 (dcache_update): Add status parameter. Use ULONGEST for len, and
3902 adjust. Discard cache lines if the reason for the update was
3904 * dcache.h (dcache_xfer_memory): Delete declaration.
3905 (dcache_read_memory_partial): New declaration.
3906 (dcache_update): Update prototype.
3907 * target.c (raw_memory_xfer_partial): Update the dcache here.
3908 (memory_xfer_partial_1): Don't handle dcache writes here.
3910 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3912 * remote-sim.c (gdbsim_load): Add const to prog.
3914 2014-03-03 Tom Tromey <tromey@redhat.com>
3916 * elfread.c (probe_key): Change to bfd_data.
3917 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3918 now per-BFD, not per-objfile.
3919 * stap-probe.c (stap_probe_destroy): Update comment.
3920 (handle_stap_probe): Allocate on the per-BFD obstack.
3922 2014-03-03 Tom Tromey <tromey@redhat.com>
3924 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3925 * breakpoint.c (create_longjmp_master_breakpoint): Use
3927 (add_location_to_breakpoint, bkpt_probe_insert_location)
3928 (bkpt_probe_remove_location): Update.
3929 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3930 * elfread.c (elf_symfile_relocate_probe): Remove.
3931 (elf_probe_fns): Update.
3932 (insert_exception_resume_breakpoint): Change type of "probe"
3933 parameter to bound_probe.
3934 (check_exception_resume): Update.
3935 * objfiles.c (objfile_relocate1): Don't relocate probes.
3936 * probe.c (bound_probe_s): New typedef.
3937 (parse_probes): Use get_probe_address. Set sal's objfile.
3938 (find_probe_by_pc): Return a bound_probe.
3939 (collect_probes): Return a VEC(bound_probe_s).
3940 (compare_probes): Update.
3941 (gen_ui_out_table_header_info): Change type of "probes"
3943 (info_probes_for_ops): Update.
3944 (get_probe_address): New function.
3945 (probe_safe_evaluate_at_pc): Update.
3946 * probe.h (struct probe_ops) <get_probe_address>: New field.
3947 <set_semaphore, clear_semaphore>: Add objfile parameter.
3948 (struct probe) <objfile>: Remove field.
3950 <address>: Update comment.
3951 (struct bound_probe): New.
3952 (find_probe_by_pc): Return a bound_probe.
3953 (get_probe_address): Declare.
3954 * solib-svr4.c (struct probe_and_action) <address>: New field.
3955 (hash_probe_and_action, equal_probe_and_action): Update.
3956 (register_solib_event_probe): Add address parameter.
3957 (solib_event_probe_at): Update.
3958 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3960 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3961 (stap_get_probe_address): New function.
3962 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3963 (compile_probe_arg): Update.
3964 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3966 (handle_stap_probe): Don't relocate the probe.
3967 (stap_relocate): Remove.
3968 (stap_gen_info_probes_table_values): Update.
3969 (stap_probe_ops): Remove stap_relocate.
3970 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3971 (debug_sym_probe_fns): Update.
3972 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3973 * symtab.c (init_sal): Use memset.
3974 * symtab.h (struct symtab_and_line) <objfile>: New field.
3975 * tracepoint.c (start_tracing, stop_tracing): Update.
3977 2014-03-03 Tom Tromey <tromey@redhat.com>
3979 * probe.h (parse_probes, find_probe_by_pc)
3980 (find_probes_in_objfile): Fix comments.
3982 2014-03-02 Doug Evans <xdje42@gmail.com>
3984 * infrun.c (handle_signal_stop): Replace test for
3985 TARGET_WAITKIND_STOPPED with an assert.
3987 2014-03-02 Doug Evans <xdje42@gmail.com>
3989 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3991 2014-03-02 Doug Evans <xdje42@gmail.com>
3993 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3995 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3997 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3999 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4001 * i386obsd-nat.c: Include "obsd-nat.h".
4002 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4004 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4006 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4008 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4010 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4012 * mips64obsd-nat.c: Include "obsd-nath".
4013 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4015 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4017 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4019 * amd64obsd-nat.c: Include "obsd-nat,h.
4020 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4022 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4024 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4026 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4027 (find_overload_match): Update call to find_oload_champ.
4028 (find_oload_champ_namespace_loop): Likewise
4030 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4032 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4034 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4035 * config/sparc/obsd64.mh: New file.
4036 * sparc64obsd-nat.c: New file.
4038 * obsd-nat.h: New file.
4039 * obsd-nat.c: New file.
4040 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4041 (ALLDEPFILES): Add obsd-nat.c.
4043 2014-02-28 Tom Tromey <tromey@redhat.com>
4045 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4046 * cli-out.h (cli_ui_out_impl): Now const.
4047 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4048 * ui-out.c (struct ui_out) <impl>: Now const.
4049 (default_ui_out_impl): Now const.
4050 (ui_out_new): Make 'impl' parameter const.
4051 * ui-out.h (ui_out_new): Update.
4053 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4055 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4057 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4059 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4061 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4063 Additional PR 8882 fix.
4064 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4066 2014-02-27 Pedro Alves <palves@redhat.com>
4068 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4071 2014-02-27 Pedro Alves <palves@redhat.com>
4074 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4075 * nat/linux-waitpid.c: Include string.h.
4076 (status_to_str): Moved here and made extern.
4077 * nat/linux-waitpid.h (status_to_str): New declaration.
4079 2014-02-27 Hui Zhu <hui@codesourcery.com>
4082 * infrun.c (ptid_match): Move ...
4083 * common/ptid.c (ptid_match): ... here.
4084 * inferior.h (ptid_match): Move ...
4085 * common/ptid.h (ptid_match): ... here.
4087 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4089 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4090 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4093 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4095 * obsd-tdep.c (obsd_auxv_parse): New function.
4096 (obsd_init_abi): Set auxv_parse.
4098 * gdbarch.sh (auxv_parse): New.
4099 * gdbarch.h: Regenerated.
4100 * gdbarch.c: Regenerated.
4101 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4103 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4105 * guile/scm-value.c (gdbscm_history_append_x): New function.
4106 (value_functions): Add it.
4108 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4110 * dwarf2read.c (attr_value_as_address): New function.
4111 (dwarf2_find_base_address, read_call_site_scope): Use
4112 attr_value_as_address in place of DW_ADDR.
4113 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4114 the low and high addresses. Slight rework of the handling
4115 of the high pc being a constant form, and limit it to
4116 DWARF verson 4 or higher.
4117 (dwarf2_record_block_ranges): Likewise.
4118 (read_partial_die): Likewise.
4119 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4121 2014-02-26 Tom Tromey <tromey@redhat.com>
4123 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4125 2014-02-26 Tom Tromey <tromey@redhat.com>
4127 * elfread.c (elf_read_minimal_symbols): Return early if
4128 minimal symbols have already been read. Add "ei" parameter.
4129 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4130 * minsyms.c (prim_record_minimal_symbol_full): Update.
4131 * objfiles.h (struct objstats) <n_minsyms>: Move...
4132 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4133 * symmisc.c (print_objfile_statistics): Update.
4135 2014-02-26 Tom Tromey <tromey@redhat.com>
4137 * elfread.c (elf_read_minimal_symbols): New function, from
4139 (elf_symfile_read): Call it.
4141 2014-02-26 Tom Tromey <tromey@redhat.com>
4143 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4144 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4145 (lookup_minimal_symbol_solib_trampoline)
4146 (lookup_minimal_symbol_by_pc_section_1)
4147 (lookup_minimal_symbol_and_objfile): Update.
4148 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4149 Don't allocate a minimal symbol if minsyms have already been read.
4150 (build_minimal_symbol_hash_tables): Update.
4151 (install_minimal_symbols): Do nothing if minsyms already read.
4152 Use the per-BFD obstack.
4153 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4154 * objfiles.c (allocate_objfile): Call
4155 terminate_minimal_symbol_table later.
4156 (have_minimal_symbols): Update.
4157 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4158 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4159 Move from struct objfile.
4160 <minsyms_read>: New field.
4161 (struct objfile) <msymbols, minimal_symbol_count,
4162 msymbol_hash, msymbol_demangled_hash>: Move.
4163 (ALL_OBJFILE_MSYMBOLS): Update.
4164 * symfile.c (read_symbols): Set minsyms_read.
4165 (reread_symbols): Update.
4166 * symmisc.c (dump_objfile, dump_msymbols): Update.
4168 2014-02-26 Tom Tromey <tromey@redhat.com>
4170 * minsyms.c (msymbols_sort): Remove.
4171 * minsyms.h (msymbols_sort): Remove.
4172 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4173 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4174 * elfread.c (elf_symtab_read): Don't add section offsets.
4175 * xcoffread.c (record_minimal_symbol): Don't add section offset
4176 to minimal symbol address.
4177 * somread.c (text_offset, data_offset): Remove.
4178 (som_symtab_read): Don't add section offsets to minimal symbol
4180 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4181 Don't add section offsets to minimal symbols.
4182 * coffread.c (coff_symtab_read): Don't add section offsets
4183 to minimal symbol addresses.
4184 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4185 to minimal symbol addresses.
4186 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4187 section offset to minimal symbol addresses.
4188 * mdebugread.c (parse_partial_symbols): Don't add section
4189 offset to minimal symbol addresses.
4190 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4191 offset to minimal symbol addresses.
4193 2014-02-26 Tom Tromey <tromey@redhat.com>
4195 * ada-lang.c (ada_main_name): Update.
4196 (ada_add_standard_exceptions): Update.
4197 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4198 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4199 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4200 * auxv.c (ld_so_xfer_auxv): Update.
4201 * avr-tdep.c (avr_scan_prologue): Update.
4202 * ax-gdb.c (gen_var_ref): Update.
4203 * blockframe.c (get_pc_function_start)
4204 (find_pc_partial_function_gnu_ifunc): Update.
4205 * breakpoint.c (create_overlay_event_breakpoint)
4206 (create_longjmp_master_breakpoint)
4207 (create_std_terminate_master_breakpoint)
4208 (create_exception_master_breakpoint): Update.
4209 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4210 * c-valprint.c (c_val_print): Update.
4211 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4212 * common/agent.c (agent_look_up_symbols): Update.
4213 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4214 * dwarf2loc.c (call_site_to_target_addr): Update.
4215 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4216 * elfread.c (elf_gnu_ifunc_record_cache)
4217 (elf_gnu_ifunc_resolve_by_got): Update.
4218 * findvar.c (default_read_var_value): Update.
4219 * frame.c (inside_main_func): Update.
4220 * frv-tdep.c (frv_frame_this_id): Update.
4221 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4222 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4224 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4225 (hppa_hpux_find_dummy_bpaddr): Update.
4226 * hppa-tdep.c (hppa_symbol_address): Update.
4227 * infcmd.c (until_next_command): Update.
4228 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4230 * linespec.c (minsym_found, add_minsym): Update.
4231 * linux-nat.c (get_signo): Update.
4232 * linux-thread-db.c (inferior_has_bug): Update.
4233 * m32c-tdep.c (m32c_return_value)
4234 (m32c_m16c_address_to_pointer): Update.
4235 * m32r-tdep.c (m32r_frame_this_id): Update.
4236 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4237 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4238 * maint.c (maintenance_translate_address): Update.
4239 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4240 (frob_address): New function.
4241 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4242 frob_address. Rename parameter to "pc_in".
4243 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4245 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4247 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4248 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4249 * objc-lang.c (find_objc_msgsend): Update.
4250 * objfiles.c (objfile_relocate1): Update.
4251 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4252 * p-valprint.c (pascal_val_print): Update.
4253 * parse.c (write_exp_msymbol): Update.
4254 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4255 (ppc_elfv2_skip_entrypoint): Update.
4256 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4257 * printcmd.c (build_address_symbolic, msym_info)
4258 (address_info): Update.
4259 * proc-service.c (ps_pglobal_lookup): Update.
4260 * psymtab.c (find_pc_sect_psymtab_closer)
4261 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4262 Change msymbol parameter to bound_minimal_symbol.
4263 * ravenscar-thread.c (get_running_thread_id): Update.
4264 * remote.c (remote_check_symbols): Update.
4265 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4267 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4268 * solib-dsbt.c (lm_base): Update.
4269 * solib-frv.c (lm_base, main_got): Update.
4270 * solib-irix.c (locate_base): Update.
4271 * solib-som.c (som_solib_create_inferior_hook)
4272 (link_map_start): Update.
4273 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4274 * solib-svr4.c (elf_locate_base, enable_break): Update.
4275 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4276 (flush_ea_cache): Update.
4277 * stabsread.c (define_symbol, scan_file_globals): Update.
4278 * stack.c (find_frame_funname): Update.
4279 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4280 (debug_qf_find_pc_sect_symtab): Update.
4281 * symfile.c (simple_read_overlay_table)
4282 (simple_overlay_update): Update.
4283 * symfile.h (struct quick_symbol_functions)
4284 <find_pc_sect_symtab>: Change type of msymbol to
4285 bound_minimal_symbol.
4286 * symmisc.c (dump_msymbols): Update.
4287 * symtab.c (find_pc_sect_symtab_via_partial)
4288 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4289 (search_symbols, print_msymbol_info): Update.
4290 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4291 (MSYMBOL_VALUE_ADDRESS): Redefine.
4292 (BMSYMBOL_VALUE_ADDRESS): New macro.
4293 * tracepoint.c (scope_info): Update.
4294 * tui/tui-disasm.c (tui_find_disassembly_address)
4295 (tui_get_begin_asm_address): Update.
4296 * valops.c (find_function_in_inferior): Update.
4297 * value.c (value_static_field, value_fn_field): Update.
4299 2014-02-26 Tom Tromey <tromey@redhat.com>
4301 * ada-lang.c (ada_update_initial_language): Update.
4302 (ada_main_name, ada_has_this_exception_support): Update.
4303 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4304 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4305 * arm-tdep.c (arm_skip_stub): Update.
4306 * auxv.c (ld_so_xfer_auxv): Update.
4307 * avr-tdep.c (avr_scan_prologue): Update.
4308 * ax-gdb.c (gen_var_ref): Update.
4309 * breakpoint.c (struct breakpoint_objfile_data)
4310 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4311 type to bound_minimal_symbol.
4312 (create_overlay_event_breakpoint)
4313 (create_longjmp_master_breakpoint)
4314 (create_std_terminate_master_breakpoint)
4315 (create_exception_master_breakpoint): Update.
4316 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4317 * c-exp.y (classify_name): Update.
4318 * coffread.c (coff_symfile_read): Update.
4319 * common/agent.c (agent_look_up_symbols): Update.
4320 * d-lang.c (d_main_name): Update.
4321 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4322 * dec-thread.c (enable_dec_thread): Update.
4323 * dwarf2loc.c (call_site_to_target_addr): Update.
4324 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4325 * eval.c (evaluate_subexp_standard): Update.
4326 * findvar.c (struct minsym_lookup_data) <result>: Change type
4327 to bound_minimal_symbol.
4329 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4330 * frame.c (inside_main_func): Update.
4331 * frv-tdep.c (frv_frame_this_id): Update.
4332 * gcore.c (call_target_sbrk): Update.
4333 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4334 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4336 * go-lang.c (go_main_name): Update.
4337 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4338 (hppa_hpux_find_import_stub_for_addr): Update.
4339 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4340 Update. Change return type.
4341 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4343 * jit.c (jit_breakpoint_re_set_internal): Update.
4344 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4346 * linux-nat.c (get_signo): Update.
4347 * linux-thread-db.c (inferior_has_bug): Update
4348 * m32c-tdep.c (m32c_return_value)
4349 (m32c_m16c_address_to_pointer): Update.
4350 * m32r-tdep.c (m32r_frame_this_id): Update.
4351 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4352 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4353 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4354 lookup_minimal_symbol. Change return type.
4355 (lookup_minimal_symbol): Remove.
4356 (lookup_bound_minimal_symbol): Update.
4357 (lookup_minimal_symbol_text): Change return type.
4358 (lookup_minimal_symbol_solib_trampoline): Change return type.
4359 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4360 (lookup_minimal_symbol_solib_trampoline): Change return type.
4361 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4362 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4363 (value_nsstring, find_imps): Update.
4364 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4365 * p-lang.c (pascal_main_name): Update.
4366 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4367 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4368 * proc-service.c (ps_pglobal_lookup): Update.
4369 * ravenscar-thread.c (get_running_thread_msymbol): Change
4371 (has_ravenscar_runtime, get_running_thread_id): Update.
4372 * remote.c (remote_check_symbols): Update.
4373 * sol-thread.c (ps_pglobal_lookup): Update.
4374 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4375 * solib-dsbt.c (lm_base): Update.
4376 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4378 * solib-irix.c (locate_base): Update.
4379 * solib-som.c (som_solib_create_inferior_hook)
4380 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4382 * solib-spu.c (spu_enable_break): Update.
4383 * solib-svr4.c (elf_locate_base, enable_break): Update.
4384 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4385 (flush_ea_cache): Update.
4386 * stabsread.c (define_symbol): Update.
4387 * symfile.c (simple_read_overlay_table): Update.
4388 * symtab.c (find_pc_sect_line): Update.
4389 * tracepoint.c (scope_info): Update.
4390 * tui-disasm.c (tui_get_begin_asm_address): Update.
4391 * value.c (value_static_field): Update.
4393 2014-02-26 Tom Tromey <tromey@redhat.com>
4395 * minsyms.c (prim_record_minimal_symbol_full): Use
4396 SET_MSYMBOL_VALUE_ADDRESS.
4397 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4398 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4399 SET_MSYMBOL_VALUE_ADDRESS.
4400 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4401 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4403 2014-02-26 Tom Tromey <tromey@redhat.com>
4405 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4406 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4407 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4408 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4409 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4410 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4411 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4412 * ada-lang.c (ada_main_name): Update.
4413 (ada_lookup_simple_minsym): Update.
4414 (ada_make_symbol_completion_list): Update.
4415 (ada_add_standard_exceptions): Update.
4416 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4417 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4418 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4419 * arm-tdep.c (skip_prologue_function): Update.
4420 (arm_skip_stack_protector, arm_skip_stub): Update.
4421 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4422 (arm_wince_skip_main_prologue): Update.
4423 * auxv.c (ld_so_xfer_auxv): Update.
4424 * avr-tdep.c (avr_scan_prologue): Update.
4425 * ax-gdb.c (gen_var_ref): Update.
4426 * block.c (call_site_for_pc): Update.
4427 * blockframe.c (get_pc_function_start): Update.
4428 (find_pc_partial_function_gnu_ifunc): Update.
4429 * breakpoint.c (create_overlay_event_breakpoint): Update.
4430 (create_longjmp_master_breakpoint): Update.
4431 (create_std_terminate_master_breakpoint): Update.
4432 (create_exception_master_breakpoint): Update.
4433 (resolve_sal_pc): Update.
4434 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4435 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4437 * c-valprint.c (c_val_print): Update.
4438 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4439 * coffread.c (coff_symfile_read): Update.
4440 * common/agent.c (agent_look_up_symbols): Update.
4441 * dbxread.c (find_stab_function_addr): Update.
4442 (end_psymtab): Update.
4443 * dwarf2loc.c (call_site_to_target_addr): Update.
4444 (func_verify_no_selftailcall): Update.
4445 (tailcall_dump): Update.
4446 (call_site_find_chain_1): Update.
4447 (dwarf_expr_reg_to_entry_parameter): Update.
4448 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4449 (elf_gnu_ifunc_resolve_by_got): Update.
4450 * f-valprint.c (info_common_command): Update.
4451 * findvar.c (read_var_value): Update.
4452 * frame.c (get_prev_frame_1): Update.
4453 (inside_main_func): Update.
4454 * frv-tdep.c (frv_skip_main_prologue): Update.
4455 (frv_frame_this_id): Update.
4456 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4457 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4458 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4459 (gnuv3_skip_trampoline): Update.
4460 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4461 (hppa64_hpux_in_solib_call_trampoline): Update.
4462 (hppa_hpux_skip_trampoline_code): Update.
4463 (hppa64_hpux_search_dummy_call_sequence): Update.
4464 (hppa_hpux_find_import_stub_for_addr): Update.
4465 (hppa_hpux_find_dummy_bpaddr): Update.
4466 * hppa-tdep.c (hppa_symbol_address)
4467 (hppa_lookup_stub_minimal_symbol): Update.
4468 * i386-tdep.c (i386_skip_main_prologue): Update.
4469 (i386_pe_skip_trampoline_code): Update.
4470 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4471 * infcall.c (get_function_name): Update.
4472 * infcmd.c (until_next_command): Update.
4473 * jit.c (jit_breakpoint_re_set_internal): Update.
4474 (jit_inferior_init): Update.
4475 * linespec.c (minsym_found): Update.
4476 (add_minsym): Update.
4477 * linux-fork.c (info_checkpoints_command): Update.
4478 * linux-nat.c (get_signo): Update.
4479 * linux-thread-db.c (inferior_has_bug): Update.
4480 * m32c-tdep.c (m32c_return_value): Update.
4481 (m32c_m16c_address_to_pointer): Update.
4482 (m32c_m16c_pointer_to_address): Update.
4483 * m32r-tdep.c (m32r_frame_this_id): Update.
4484 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4485 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4486 * maint.c (maintenance_translate_address): Update.
4487 * minsyms.c (add_minsym_to_hash_table): Update.
4488 (add_minsym_to_demangled_hash_table): Update.
4489 (msymbol_objfile): Update.
4490 (lookup_minimal_symbol): Update.
4491 (iterate_over_minimal_symbols): Update.
4492 (lookup_minimal_symbol_text): Update.
4493 (lookup_minimal_symbol_by_pc_name): Update.
4494 (lookup_minimal_symbol_solib_trampoline): Update.
4495 (lookup_minimal_symbol_by_pc_section_1): Update.
4496 (lookup_minimal_symbol_and_objfile): Update.
4497 (prim_record_minimal_symbol_full): Update.
4498 (compare_minimal_symbols): Update.
4499 (compact_minimal_symbols): Update.
4500 (build_minimal_symbol_hash_tables): Update.
4501 (install_minimal_symbols): Update.
4502 (terminate_minimal_symbol_table): Update.
4503 (find_solib_trampoline_target): Update.
4504 (minimal_symbol_upper_bound): Update.
4505 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4506 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4507 (mips_skip_pic_trampoline_code): Update.
4508 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4509 * objc-lang.c (selectors_info): Update.
4510 (classes_info): Update.
4511 (find_methods): Update.
4512 (find_imps): Update.
4513 (find_objc_msgsend): Update.
4514 * objfiles.c (objfile_relocate1): Update.
4515 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4516 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4517 * p-valprint.c (pascal_val_print): Update.
4518 * parse.c (write_exp_msymbol): Update.
4519 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4520 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4521 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4522 * printcmd.c (build_address_symbolic): Update.
4524 (address_info): Update.
4525 * proc-service.c (ps_pglobal_lookup): Update.
4526 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4527 (find_pc_sect_psymtab): Update.
4528 * python/py-framefilter.c (py_print_frame): Update.
4529 * ravenscar-thread.c (get_running_thread_id): Update.
4530 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4532 * remote.c (remote_check_symbols): Update.
4533 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4534 (rs6000_skip_trampoline_code): Update.
4535 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4536 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4537 * solib-dsbt.c (lm_base): Update.
4538 * solib-frv.c (lm_base): Update.
4540 * solib-irix.c (locate_base): Update.
4541 * solib-som.c (som_solib_create_inferior_hook): Update.
4542 (som_solib_desire_dynamic_linker_symbols): Update.
4543 (link_map_start): Update.
4544 * solib-spu.c (spu_enable_break): Update.
4545 (ocl_enable_break): Update.
4546 * solib-svr4.c (elf_locate_base): Update.
4547 (enable_break): Update.
4548 * spu-tdep.c (spu_get_overlay_table): Update.
4549 (spu_catch_start): Update.
4550 (flush_ea_cache): Update.
4551 * stabsread.c (define_symbol): Update.
4552 (scan_file_globals): Update.
4553 * stack.c (find_frame_funname): Update.
4554 (frame_info): Update.
4555 * symfile.c (simple_read_overlay_table): Update.
4556 (simple_overlay_update): Update.
4557 * symmisc.c (dump_msymbols): Update.
4558 * symtab.c (fixup_section): Update.
4559 (find_pc_sect_line): Update.
4560 (skip_prologue_sal): Update.
4561 (search_symbols): Update.
4562 (print_msymbol_info): Update.
4563 (rbreak_command): Update.
4564 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4565 (completion_list_objc_symbol): Update.
4566 (default_make_symbol_completion_list_break_on): Update.
4567 * tracepoint.c (scope_info): Update.
4568 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4569 (tui_get_begin_asm_address): Update.
4570 * valops.c (find_function_in_inferior): Update.
4571 * value.c (value_static_field): Update.
4572 (value_fn_field): Update.
4574 2014-02-26 Tom Tromey <tromey@redhat.com>
4576 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4577 bound minimal symbols. Move code that knows about minsym
4579 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4581 * minsyms.h (minimal_symbol_upper_bound): Declare.
4582 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4583 minimal_symbol_upper_bound.
4585 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4587 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4588 Use the type's name if its basic type does not have a tag.
4590 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4592 * dwarf2read.c (read_subrange_type): Add comment.
4594 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4596 * dwarf2read.c (update_enumeration_type_from_children): New
4597 function, mostly extracted from process_structure_scope.
4598 (read_enumeration_type): Call update_enumeration_type_from_children.
4599 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4600 and flag_flag_enum fields.
4602 2014-02-26 Pedro Alves <palves@redhat.com>
4604 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4605 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4606 to_xfer_partial method.
4608 2014-02-26 Pedro Alves <palves@redhat.com>
4610 * target.c (complete_target_initialization): Don't install
4611 default_xfer_partial as to_xfer_partial hook.
4613 (update_current_target): Don't INHERIT nor de_fault
4614 deprecated_xfer_memory. Delete de_fault macro.
4615 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4616 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4617 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4620 2014-02-26 Pedro Alves <palves@redhat.com>
4622 * go32-nat.c (my_write_child): New function.
4623 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4624 (go32_xfer_partial): New function.
4625 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4626 Instead install a to_xfer_partial hook.
4628 2014-02-26 Pedro Alves <palves@redhat.com>
4630 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4631 to_xfer_partial helper. Rewrite.
4632 (procfs_xfer_partial): New function.
4633 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4634 Install a to_xfer_partial hook.
4636 2014-02-26 Pedro Alves <palves@redhat.com>
4638 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4639 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4640 (m32r_xfer_partial): New function.
4641 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4642 Install a to_xfer_partial hook.
4644 2014-02-26 Pedro Alves <palves@redhat.com>
4646 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4648 (mips_xfer_partial): New function.
4649 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4650 hook. Install a to_xfer_partial hook.
4652 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4654 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4655 * gdbtypes.c (create_array_type_with_stride): New function,
4656 renaming create_array_type, but with an added parameter
4657 called "bit_stride".
4658 (create_array_type): Re-implement using
4659 create_array_type_with_stride.
4660 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4661 and DW_AT_bit_stride attributes.
4663 2014-02-26 Pedro Alves <palves@redhat.com>
4665 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4666 task-specific breakpoints.
4668 2014-02-25 Pedro Alves <palves@redhat.com>
4670 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4671 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4673 2014-02-25 Stan Shebs <stan@codesourcery.com>
4675 * defs.h: Annotate comments for Doxygen.
4677 2014-02-25 Tom Tromey <tromey@redhat.com>
4679 * target.h (target_ignore): Don't declare.
4680 * target.c (target_ignore): Remove.
4682 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 * auto-load.c (auto_load_objfile_script_1): Change filename to
4688 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4690 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4691 documentation. Adjust prototype to match the target_ops
4692 to_xfer_partial method. Adjust implementation accordingly.
4694 2014-02-25 Hui Zhu <hui@codesourcery.com>
4696 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4699 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4701 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4702 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4703 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4704 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4705 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4706 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4707 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4708 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4710 (rl78_register_type): Use a data pointer type for SP and
4711 new pseudo registers mentioned above. Use a 16 bit integer
4712 type for all other register pairs.
4713 (rl78_register_name, rl78_g10_register_name): Update for
4714 new pseudo registers.
4715 (rl78_pseudo_register_read): Likewise.
4716 (rl78_pseudo_register_write): Likewise.
4717 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4718 to the newly added pseudo registers.
4720 2014-02-24 Doug Evans <dje@google.com>
4722 * value.c (record_latest_value): Fix comment.
4723 * printcmd.c (print_command_1): Remove code to handle -1 return from
4724 record_latest_value.
4726 2014-02-24 Pedro Alves <palves@redhat.com>
4728 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4729 deprecated_xfer_memory hook.
4730 (procfs_xfer_partial): Call procfs_xfer_memory instead
4731 of the deprecated_xfer_memory target hook.
4732 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4735 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4737 * windows-nat.c (windows_xfer_shared_libraries): Return
4738 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4739 requested object is TARGET_OBJECT_LIBRARIES.
4741 2014-02-24 Yao Qi <yao@codesourcery.com>
4743 * target.h (enum target_xfer_status)
4744 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4745 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4747 * corefile.c (memory_error_message): User updated.
4748 * exec.c (section_table_read_available_memory): Likewise.
4749 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4750 * target.c (target_xfer_status_to_string): Likewise.
4751 (raw_memory_xfer_partial): Likewise.
4752 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4753 * valops.c (read_value_memory): Likewise.
4754 * exec.h: Update comments.
4756 2014-02-24 Yao Qi <yao@codesourcery.com>
4758 * target.c (target_xfer_status_to_string): Rename argument err
4760 * target.h (target_xfer_status_to_string): Update declaration.
4761 Replace target_xfer_error_to_string with
4762 target_xfer_status_to_string in comment.
4764 2014-02-24 Yao Qi <yao@codesourcery.com>
4766 * mips-linux-nat.c (super_close): Update its type.
4767 (mips_linux_close): Pass 'self' to super_close.
4769 2014-02-24 Yao Qi <yao@codesourcery.com>
4771 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4772 * corefile.c (read_memory): Adjusted.
4773 * target.c (target_write_with_progress): Adjusted.
4775 2014-02-23 Yao Qi <yao@codesourcery.com>
4779 2013-10-25 Yao Qi <yao@codesourcery.com>
4781 * remote.c (remote_traceframe_info): Return early if
4782 traceframe is not selected.
4784 2013-07-19 Yao Qi <yao@codesourcery.com>
4786 * target.c (update_current_target): Change the default action
4787 of 'to_traceframe_info' from tcomplain to return_zero.
4788 * target.h (struct target_ops) <to_traceframe_info>: Add more
4791 2014-02-23 Yao Qi <yao@codesourcery.com>
4793 * valops.c (read_value_memory): Rewrite it. Call
4794 target_xfer_partial in a loop.
4795 * exec.h (section_table_available_memory): Remove declaration.
4796 Move comments to ...
4797 * exec.c (section_table_available_memory): ... here. Make it
4800 2014-02-23 Yao Qi <yao@codesourcery.com>
4802 * exec.c (section_table_read_available_memory): New function.
4803 * exec.h (section_table_read_available_memory): Declare.
4804 * ctf.c (ctf_xfer_partial): Call
4805 section_table_read_available_memory.
4806 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4808 2014-02-23 Yao Qi <yao@codesourcery.com>
4810 * ctf.c (ctf_xfer_partial): Move code to ...
4811 * exec.c (exec_read_partial_read_only): ... it. New function.
4812 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4813 * tracefile.c: Include "exec.h".
4814 * exec.h (exec_read_partial_read_only): Declare.
4816 2014-02-23 Yao Qi <yao@codesourcery.com>
4818 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4819 (tfile_has_memory): Remove.
4820 (init_tfile_ops): Don't set fields to_has_all_memory and
4821 to_has_memory of tfile_ops.
4822 * tracefile.c (tracefile_has_all_memory): New function.
4823 (tracefile_has_memory): New function.
4824 (init_tracefile_ops): Initialize fields to_has_all_memory and
4825 to_has_memory of 'ops'.
4827 2014-02-23 Yao Qi <yao@codesourcery.com>
4829 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4830 (ctf_thread_alive, ctf_get_trace_status): Remove.
4831 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4833 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4834 (tfile_has_stack, tfile_has_registers): Remove.
4835 (tfile_thread_alive): Remove.
4836 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4838 * tracefile.c (tracefile_has_stack): New function.
4839 (tracefile_has_registers): New function.
4840 (tracefile_thread_alive): New function.
4841 (tracefile_get_trace_status): New function.
4842 (init_tracefile_ops): New function.
4843 * tracefile.h (init_tracefile_ops): Declare.
4845 2014-02-23 Yao Qi <yao@codesourcery.com>
4847 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4848 (O_LARGEFILE): Likewise.
4849 (tfile_ops): Likewise.
4850 (TRACE_HEADER_SIZE): Likewise.
4851 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4852 (cur_data_size): Likewise.
4853 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4854 (tfile_close, tfile_files_info): Likewise.
4855 (tfile_get_trace_status): Likewise.
4856 (tfile_get_tracepoint_status): Likewise.
4857 (tfile_get_traceframe_address): Likewise.
4858 (tfile_trace_find, match_blocktype): Likewise.
4859 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4860 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4861 (tfile_get_trace_state_variable_value): Likewise.
4862 (tfile_has_all_memory, tfile_has_memory): Likewise.
4863 (tfile_has_stack, tfile_has_registers): Likewise.
4864 (tfile_thread_alive, build_traceframe_info): Likewise.
4865 (tfile_traceframe_info, init_tfile_ops): Likewise.
4866 (_initialize_tracepoint): Don't call init_tfile_ops
4867 and add_target_with_completer.
4868 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4869 exec.h, completer.h and filenames.h.
4870 (_initialize_tracefile_tfile): New function.
4872 2014-02-23 Yao Qi <yao@codesourcery.com>
4874 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4876 (HFILES_NO_SRCDIR): Add tracefile.h.
4877 * ctf.c: Include "tracefile.h".
4878 * tracefile.h: New file.
4879 * tracefile.c: New file
4880 * tracefile-tfile.c: New file.
4881 * tracepoint.c: Include "tracefile.h".
4882 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4883 (stop_reason_names): Add const.
4884 (trace_file_writer_xfree): Move it to tracefile.c.
4885 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4886 (trace_save_ctf): Likewise.
4887 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4888 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4889 (tfile_write_header, tfile_write_regblock_type): Likewise.
4890 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4891 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4892 (tfile_write_raw_data, tfile_end): Likewise.
4893 (tfile_trace_file_writer_new): Likewise.
4894 (free_uploaded_tp): Make it extern.
4895 (free_uploaded_tsv): Make it extern.
4896 (_initialize_tracepoint): Move code to register command 'tsave'
4898 * tracepoint.h (stop_reason_names): Declare.
4899 (struct trace_frame_write_ops): Move it to tracefile.h.
4900 (struct trace_file_write_ops): Likewise.
4901 (struct trace_file_writer): Likewise.
4902 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4904 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4907 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4909 (get_cores_used_by_process): New parameter num_cores, use it.
4910 (linux_xfer_osdata_processes): Pass num_cores to it.
4911 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4914 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4916 * target.c (memory_xfer_partial): Fix length arg in call to
4917 breakpoint_xfer_memory.
4919 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4922 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4923 number comes after the + or - signs. Adjust length of register
4924 name to be extracted.
4926 2014-02-20 Tom Tromey <tromey@redhat.com>
4928 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4929 (ada_varobj_ops): Mark "extern".
4931 2014-02-20 Tom Tromey <tromey@redhat.com>
4933 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4935 2014-02-20 Doug Evans <xdje42@gmail.com>
4937 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4938 All callers updated.
4939 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4940 All callers updated.
4941 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4942 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4944 2014-02-20 lin zuojian <manjian2006@gmail.com>
4945 Joel Brobecker <brobecker@adacore.com>
4946 Doug Evans <xdje42@gmail.com>
4949 * dwarf2read.c (struct die_info): New member in_process.
4950 (reset_die_in_process): New function.
4951 (process_die): Set it at the start, reset when returning.
4952 (inherit_abstract_dies): Only call process_die if origin_child_die
4953 not already being processed.
4955 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4957 * windows-nat.c (handle_unload_dll): Add function documentation.
4958 (do_initial_windows_stuff): Add comment explaining why we wait
4959 until after inferior initialization has finished before
4960 processing all DLLs.
4962 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4964 * windows-nat.c (get_module_name): Delete.
4965 (windows_get_exec_module_filename): New function, mostly
4966 inspired from get_module_name.
4967 (windows_pid_to_exec_file): Replace call to get_module_name
4968 by call to windows_get_exec_module_filename.
4970 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4972 * windows-nat.c (handle_load_dll): Rewrite this function's
4973 introductory comment. Remove code using get_module_name
4974 to get the DLL's name.
4976 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4978 * windows-nat.c (get_windows_debug_event): Ignore
4979 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4980 if windows_initialization_done == 0.
4981 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4982 Adjust implementation to always load all DLLs.
4983 (do_initial_windows_stuff): Replace call to
4984 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4986 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4988 * windows-nat.c (_initialize_windows_nat): Deprecate the
4989 "dll-symbols" command. Turn the "add-shared-symbol-files"
4990 and "assf" aliases into commands, and deprecate them as well.
4991 * NEWS: Add entry explaining that "dll-symbols" and its two
4992 aliases are now deprecated.
4994 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4996 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4997 new-line in debug string. Remove trailing spaces.
4999 2014-02-19 Stan Shebs <stan@codesourcery.com>
5001 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5003 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5005 * NEWS: Add entry for the new feature
5006 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5009 2014-02-19 Stan Shebs <stan@codesourcery.com>
5011 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5013 2014-02-19 Pedro Alves <palves@redhat.com>
5015 * common/ptid.h (struct ptid): Mention that process_stratum
5016 targets should prefer ptid.lwp.
5018 2014-02-19 Pedro Alves <palves@redhat.com>
5020 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5021 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5022 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5023 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5024 store remote thread ids rather than ptid.tid.
5025 (_initialize_remote): Adjust.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target.c (target_get_unwinder): Rewrite.
5030 (target_get_tailcall_unwinder): Rewrite.
5031 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5032 (record_btrace_to_get_tailcall_unwinder): New function.
5033 (init_record_btrace_ops): Update.
5034 * target.h (struct target_ops) <to_get_unwinder,
5035 to_get_tailcall_unwinder>: Now function pointers. Use
5036 TARGET_DEFAULT_RETURN.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5042 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5044 2014-02-19 Tom Tromey <tromey@redhat.com>
5046 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5048 * target-delegates.c: Rebuild.
5049 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5050 TARGET_DEFAULT_FUNC.
5051 * target.c (default_target_decr_pc_after_break): Rename from
5052 forward_target_decr_pc_after_break. Simplify.
5053 (target_decr_pc_after_break): Rely on delegation.
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target.c (update_current_target): Do not INHERIT to_doc or
5058 to_magic. Do not de_fault to_open or to_close.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * gcore.h (objfile_find_memory_regions): Declare.
5063 * gcore.c (objfile_find_memory_regions): No longer static. Add
5065 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5066 * exec.c: Include gcore.h.
5067 (exec_set_find_memory_regions): Remove.
5068 (exec_find_memory_regions): Remove.
5069 (exec_do_find_memory_regions): Remove.
5070 (init_exec_ops): Update.
5071 * defs.h (exec_set_find_memory_regions): Remove.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.h (struct target_ops) <to_extra_thread_info,
5077 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5078 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5079 not 0, in TARGET_DEFAULT_RETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target.c (complete_target_initialization): Remove casts. Use
5084 return_zero_has_execution.
5085 (return_zero): Add "ignore" argument.
5086 (return_zero_has_execution): New function.
5087 (init_dummy_target): Remove casts. Use
5088 return_zero_has_execution.
5090 2014-02-19 Tom Tromey <tromey@redhat.com>
5092 * target.c (update_current_target): Update comments. Do not
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5099 * corelow.c (core_read_description): Delegate when needed.
5100 * remote.c (remote_read_description): Delegate when needed.
5101 * target-delegates.c: Rebuild.
5102 * target.c (target_read_description): Rewrite.
5103 * target.h (struct target_ops) <to_read_description>: Update
5104 comment. Use TARGET_DEFAULT_RETURN.
5106 2014-02-19 Tom Tromey <tromey@redhat.com>
5108 * target-delegates.c: Rebuild.
5109 * target.c (update_current_target): Don't inherit or default
5111 (find_default_run_target): Check against delegate_can_run.
5112 * target.h (struct target_ops) <to_can_run>: Use
5113 TARGET_DEFAULT_RETURN.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target-delegates.c: Rebuild.
5118 * target.c (target_disconnect): Unconditionally delegate.
5119 * target.h (struct target_ops) <to_disconnect>: Use
5120 TARGET_DEFAULT_NORETURN.
5122 2014-02-19 Tom Tromey <tromey@redhat.com>
5124 * record.c (record_stop): Unconditionally delegate.
5125 * target-delegates.c: Rebuild.
5126 * target.c (target_stop_recording): Unconditionally delegate.
5127 * target.h (struct target_ops) <to_stop_recording>: Use
5128 TARGET_DEFAULT_IGNORE.
5130 2014-02-19 Tom Tromey <tromey@redhat.com>
5132 * target-delegates.c: Rebuild.
5133 * target.c (target_enable_btrace): Unconditionally delegate.
5134 * target.h (struct target_ops) <to_enable_btrace>: Use
5135 TARGET_DEFAULT_NORETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (target_read_btrace): Unconditionally delegate.
5141 * target.h (struct target_ops) <to_read_btrace>: Use
5142 TARGET_DEFAULT_NORETURN.
5144 2014-02-19 Tom Tromey <tromey@redhat.com>
5146 * target-delegates.c: Rebuild.
5147 * target.c (target_teardown_btrace): Unconditionally delegate.
5148 * target.h (struct target_ops) <to_teardown_btrace>: Use
5149 TARGET_DEFAULT_NORETURN.
5151 2014-02-19 Tom Tromey <tromey@redhat.com>
5153 * target-delegates.c: Rebuild.
5154 * target.c (target_disable_btrace): Unconditionally delegate.
5155 * target.h (struct target_ops) <to_disable_btrace>: Use
5156 TARGET_DEFAULT_NORETURN.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target-delegates.c: Rebuild.
5161 * target.c (default_search_memory): New function.
5162 (simple_search_memory): Update comment.
5163 (target_search_memory): Unconditionally delegate.
5164 * target.h (struct target_ops) <to_search_memory>: Use
5165 TARGET_DEFAULT_FUNC.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * auxv.c (default_auxv_parse): No longer static.
5170 (target_auxv_parse): Unconditionally delegate.
5171 * auxv.h (default_auxv_parse): Declare.
5172 * target-delegates.c: Rebuild.
5173 * target.c: Include auxv.h.
5174 * target.h (struct target_ops) <to_auxv_parse>: Use
5175 TARGET_DEFAULT_FUNC.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target-delegates.c: Rebuild.
5180 * target.c (target_memory_map): Unconditionally delegate.
5181 * target.h (struct target_ops) <to_memory_map>: Use
5182 TARGET_DEFAULT_RETURN.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (target_thread_alive): Unconditionally delegate.
5188 * target.h (struct target_ops) <to_thread_alive>: Use
5189 TARGET_DEFAULT_RETURN.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target-delegates.c: Rebuild.
5194 * target.c (target_save_record): Unconditionally delegate.
5195 * target.h (struct target_ops) <to_save_record>: Use
5196 TARGET_DEFAULT_NORETURN.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (target_delete_record): Unconditionally delegate.
5202 * target.h (struct target_ops) <to_delete_record>: Use
5203 TARGET_DEFAULT_NORETURN.
5205 2014-02-19 Tom Tromey <tromey@redhat.com>
5207 * target-delegates.c: Rebuild.
5208 * target.c (target_record_is_replaying): Unconditionally
5210 * target.h (struct target_ops) <to_record_is_replaying>: Use
5211 TARGET_DEFAULT_RETURN.
5213 2014-02-19 Tom Tromey <tromey@redhat.com>
5215 * target-delegates.c: Rebuild.
5216 * target.c (target_goto_record_begin): Unconditionally delegate.
5217 * target.h (struct target_ops) <to_goto_record_begin>: Use
5218 TARGET_DEFAULT_NORETURN.
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target-delegates.c: Rebuild.
5223 * target.c (target_goto_record_end): Unconditionally delegate.
5224 * target.h (struct target_ops) <to_goto_record_end>: Use
5225 TARGET_DEFAULT_NORETURN.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (target_goto_record): Unconditionally delegate.
5231 * target.h (struct target_ops) <to_goto_record>: Use
5232 TARGET_DEFAULT_NORETURN.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (target_insn_history): Unconditionally delegate.
5238 * target.h (struct target_ops) <to_insn_history>: Use
5239 TARGET_DEFAULT_NORETURN.
5241 2014-02-19 Tom Tromey <tromey@redhat.com>
5243 * target-delegates.c: Rebuild.
5244 * target.c (target_insn_history_from): Unconditionally delegate.
5245 * target.h (struct target_ops) <to_insn_history_from>: Use
5246 TARGET_DEFAULT_NORETURN.
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * target-delegates.c: Rebuild.
5251 * target.c (target_insn_history_range): Unconditionally delegate.
5252 * target.h (struct target_ops) <to_insn_history_range>: Use
5253 TARGET_DEFAULT_NORETURN.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target-delegates.c: Rebuild.
5258 * target.c (target_call_history): Unconditionally delegate.
5259 * target.h (struct target_ops) <to_call_history>: Use
5260 TARGET_DEFAULT_NORETURN.
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target-delegates.c: Rebuild.
5265 * target.c (target_call_history_from): Unconditionally delegate.
5266 * target.h (struct target_ops) <to_call_history_from>: Use
5267 TARGET_DEFAULT_NORETURN.
5269 2014-02-19 Tom Tromey <tromey@redhat.com>
5271 * target-delegates.c: Rebuild.
5272 * target.c (target_call_history_range): Unconditionally delegate.
5273 * target.h (struct target_ops) <to_call_history_range>: Use
5274 TARGET_DEFAULT_NORETURN.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target-delegates.c: Rebuild.
5279 * target.c (target_verify_memory): Unconditionally delegate.
5280 * target.h (struct target_ops) <to_verify_memory>: Use
5281 TARGET_DEFAULT_NORETURN.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target-delegates.c: Rebuild.
5286 * target.c (target_core_of_thread): Unconditionally delegate.
5287 * target.h (struct target_ops) <to_core_of_thread>: Use
5288 TARGET_DEFAULT_RETURN.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target-delegates.c: Rebuild.
5293 * target.c (target_flash_done): Unconditionally delegate.
5294 * target.h (struct target_ops) <to_flash_done>: Use
5295 TARGET_DEFAULT_NORETURN.
5297 2014-02-19 Tom Tromey <tromey@redhat.com>
5299 * target-delegates.c: Rebuild.
5300 * target.c (target_flash_erase): Unconditionally delegate.
5301 * target.h (struct target_ops) <to_flash_erase>: Use
5302 TARGET_DEFAULT_NORETURN.
5304 2014-02-19 Tom Tromey <tromey@redhat.com>
5306 * target-delegates.c: Rebuild.
5307 * target.c (target_get_section_table): Unconditionally delegate.
5308 * target.h (struct target_ops) <to_get_section_table>: Use
5309 TARGET_DEFAULT_RETURN.
5311 2014-02-19 Tom Tromey <tromey@redhat.com>
5313 * target-delegates.c: Rebuild.
5314 * target.c (target_pid_to_str): Unconditionally delegate.
5315 (init_dummy_target): Don't initialize to_pid_to_str.
5316 (default_pid_to_str): Rename from dummy_pid_to_str.
5317 * target.h (struct target_ops) <to_pid_to_str>: Use
5318 TARGET_DEFAULT_FUNC.
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target-delegates.c: Rebuild.
5323 * target.c (target_find_new_threads): Unconditionally delegate.
5324 * target.h (struct target_ops) <to_find_new_threads>: Use
5325 TARGET_DEFAULT_RETURN.
5327 2014-02-19 Tom Tromey <tromey@redhat.com>
5329 * target-delegates.c: Rebuild.
5330 * target.c (target_program_signals): Unconditionally delegate.
5331 * target.h (struct target_ops) <to_program_signals>: Use
5332 TARGET_DEFAULT_IGNORE.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * target-delegates.c: Rebuild.
5337 * target.c (target_pass_signals): Unconditionally delegate.
5338 * target.h (struct target_ops) <to_pass_signals>: Use
5339 TARGET_DEFAULT_IGNORE.
5341 2014-02-19 Tom Tromey <tromey@redhat.com>
5343 * target-delegates.c: Rebuild.
5344 * target.c (default_mourn_inferior): New function.
5345 (target_mourn_inferior): Unconditionally delegate.
5346 * target.h (struct target_ops) <to_mourn_inferior>: Use
5347 TARGET_DEFAULT_FUNC.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target-delegates.c: Rebuild.
5352 * target.c (default_follow_fork): New function.
5353 (target_follow_fork): Unconditionally delegate.
5354 * target.h (struct target_ops) <to_follow_fork>: Use
5355 TARGET_DEFAULT_FUNC.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target-delegates.c: Rebuild.
5360 * target.c (target_kill): Unconditionally delegate.
5361 * target.h (struct target_ops) <to_kill>: Use
5362 TARGET_DEFAULT_NORETURN.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (target_masked_watch_num_registers): Unconditionally
5369 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5370 Use TARGET_DEFAULT_RETURN.
5372 2014-02-19 Tom Tromey <tromey@redhat.com>
5374 * target-delegates.c: Rebuild.
5375 * target.c (target_remove_mask_watchpoint): Unconditionally
5377 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5378 TARGET_DEFAULT_RETURN.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * target-delegates.c: Rebuild.
5383 * target.c (target_insert_mask_watchpoint): Unconditionally
5385 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5386 TARGET_DEFAULT_RETURN.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target-delegates.c: Rebuild.
5391 * target.c (target_ranged_break_num_registers): Unconditionally
5393 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5394 Use TARGET_DEFAULT_RETURN.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target-delegates.c: Rebuild.
5399 * target.c (target_fetch_registers): Unconditionally delegate.
5400 * target.h (struct target_ops) <to_fetch_registers>: Use
5401 TARGET_DEFAULT_NORETURN.
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target-delegates.c: Rebuild.
5406 * target.c (update_current_target): Don't inherit or default
5408 * target.h (struct target_ops) <to_stop>: Use
5409 TARGET_DEFAULT_IGNORE.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target-delegates.c: Rebuild.
5414 * target.c (update_current_target): Don't inherit or default
5415 to_can_run_breakpoint_commands.
5416 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5417 Use TARGET_DEFAULT_RETURN.
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target-delegates.c: Rebuild.
5422 * target.c (update_current_target): Don't inherit or default
5423 to_supports_evaluation_of_breakpoint_conditions.
5424 * target.h (struct target_ops)
5425 <to_supports_evaluation_of_breakpoint_conditions>: Use
5426 TARGET_DEFAULT_RETURN.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target-delegates.c: Rebuild.
5431 * target.c (update_current_target): Don't inherit or default
5432 to_augmented_libraries_svr4_read.
5433 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5434 Use TARGET_DEFAULT_RETURN.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target-delegates.c: Rebuild.
5439 * target.c (update_current_target): Don't inherit or default
5441 * target.h (struct target_ops) <to_can_use_agent>: Use
5442 TARGET_DEFAULT_RETURN.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target-delegates.c: Rebuild.
5447 * target.c (update_current_target): Don't inherit or default
5449 * target.h (struct target_ops) <to_use_agent>: Use
5450 TARGET_DEFAULT_NORETURN.
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target-delegates.c: Rebuild.
5455 * target.c (update_current_target): Don't inherit or default
5457 (return_null): Remove.
5458 * target.h (struct target_ops) <to_traceframe_info>: Use
5459 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
5466 * target.h (struct target_ops)
5467 <to_static_tracepoint_markers_by_strid>: Use
5468 TARGET_DEFAULT_NORETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5474 to_static_tracepoint_marker_at.
5475 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5476 Use TARGET_DEFAULT_RETURN.
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
5483 * target.h (struct target_ops) <to_set_permissions>: Use
5484 TARGET_DEFAULT_IGNORE.
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
5491 * target.h (struct target_ops) <to_get_tib_address>: Use
5492 TARGET_DEFAULT_NORETURN.
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_set_trace_notes>: Use
5500 TARGET_DEFAULT_RETURN.
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target-delegates.c: Rebuild.
5505 * target.c (update_current_target): Don't initialize
5506 to_set_trace_buffer_size.
5507 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5508 TARGET_DEFAULT_IGNORE.
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
5514 to_set_circular_trace_buffer.
5515 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5516 TARGET_DEFAULT_IGNORE.
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target-delegates.c: Rebuild.
5521 * target.c (update_current_target): Don't inherit or default
5522 to_set_disconnected_tracing.
5523 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5524 TARGET_DEFAULT_IGNORE.
5526 2014-02-19 Tom Tromey <tromey@redhat.com>
5528 * target-delegates.c: Rebuild.
5529 * target.c (update_current_target): Don't inherit or default
5530 to_get_min_fast_tracepoint_insn_len.
5531 (return_minus_one): Remove.
5532 * target.h (struct target_ops)
5533 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target-delegates.c: Rebuild.
5538 * target.c (update_current_target): Don't inherit or default
5539 to_get_raw_trace_data.
5540 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5541 TARGET_DEFAULT_NORETURN.
5543 2014-02-19 Tom Tromey <tromey@redhat.com>
5545 * target-delegates.c: Rebuild.
5546 * target.c (update_current_target): Don't inherit or default
5547 to_upload_trace_state_variables.
5548 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5549 Use TARGET_DEFAULT_RETURN.
5551 2014-02-19 Tom Tromey <tromey@redhat.com>
5553 * target-delegates.c: Rebuild.
5554 * target.c (update_current_target): Don't inherit or default
5555 to_upload_tracepoints.
5556 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5557 TARGET_DEFAULT_RETURN.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target-delegates.c: Rebuild.
5562 * target.c (update_current_target): Don't inherit or default
5564 * target.h (struct target_ops) <to_save_trace_data>: Use
5565 TARGET_DEFAULT_NORETURN.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target-delegates.c: Rebuild.
5570 * target.c (update_current_target): Don't inherit or default
5571 to_get_trace_state_variable_value.
5572 * target.h (struct target_ops)
5573 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target-delegates.c: Rebuild.
5578 * target.c (update_current_target): Don't inherit or default
5580 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * target-delegates.c: Rebuild.
5585 * target.c (update_current_target): Don't inherit or default
5587 * target.h (struct target_ops) <to_trace_stop>: Use
5588 TARGET_DEFAULT_NORETURN.
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5592 * target-delegates.c: Rebuild.
5593 * target.c (update_current_target): Don't inherit or default
5594 to_get_tracepoint_status.
5595 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5596 TARGET_DEFAULT_NORETURN.
5598 2014-02-19 Tom Tromey <tromey@redhat.com>
5600 * target-delegates.c: Rebuild.
5601 * target.c (update_current_target): Don't inherit or default
5602 to_get_trace_status.
5603 * target.h (struct target_ops) <to_get_trace_status>: Use
5604 TARGET_DEFAULT_RETURN.
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target-delegates.c: Rebuild.
5609 * target.c (update_current_target): Don't inherit or default
5611 * target.h (struct target_ops) <to_trace_start>: Use
5612 TARGET_DEFAULT_NORETURN.
5614 2014-02-19 Tom Tromey <tromey@redhat.com>
5616 * target-delegates.c: Rebuild.
5617 * target.c (update_current_target): Don't inherit or default
5618 to_trace_set_readonly_regions.
5619 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5620 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
5627 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5628 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
5635 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5636 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
5643 * target.h (struct target_ops) <to_download_trace_state_variable>:
5644 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
5651 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5652 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
5659 * target.h (struct target_ops) <to_download_tracepoint>: Use
5660 TARGET_DEFAULT_NORETURN.
5662 2014-02-19 Tom Tromey <tromey@redhat.com>
5664 * target-delegates.c: Rebuild.
5665 * target.c (update_current_target): Don't inherit or default
5667 * target.h (struct target_ops) <to_trace_init>: Use
5668 TARGET_DEFAULT_RETURN.
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * target-delegates.c: Rebuild.
5673 * target.c (update_current_target): Don't inherit or default
5674 to_supports_string_tracing.
5675 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5676 TARGET_DEFAULT_RETURN.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target-delegates.c: Rebuild.
5681 * target.c (update_current_target): Don't inherit or default
5682 to_supports_enable_disable_tracepoint.
5683 * target.h (struct target_ops)
5684 <to_supports_enable_disable_tracepoint>: Use
5685 TARGET_DEFAULT_RETURN.
5687 2014-02-19 Tom Tromey <tromey@redhat.com>
5689 * target-delegates.c: Rebuild.
5690 * target.c (update_current_target): Don't inherit or default
5691 to_supports_multi_process.
5692 * target.h (struct target_ops) <to_supports_multi_process>: Use
5693 TARGET_DEFAULT_RETURN.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target-delegates.c: Rebuild.
5698 * target.c (update_current_target): Don't inherit or default
5699 to_get_ada_task_ptid.
5700 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5701 TARGET_DEFAULT_FUNC.
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * target-delegates.c: Rebuild.
5706 * target.c (update_current_target): Don't inherit or default
5707 to_thread_architecture.
5708 * target.h (struct target_ops) <to_thread_architecture>: Use
5709 TARGET_DEFAULT_FUNC.
5711 2014-02-19 Tom Tromey <tromey@redhat.com>
5713 * target-delegates.c: Rebuild.
5714 * target.c (update_current_target): Don't inherit or default
5715 to_execution_direction.
5716 * target.h (struct target_ops) <to_execution_direction>: Use
5717 TARGET_DEFAULT_FUNC.
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target-delegates.c: Rebuild.
5722 * target.c (update_current_target): Don't inherit or default
5723 to_can_execute_reverse.
5724 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5725 TARGET_DEFAULT_RETURN.
5726 (target_can_execute_reverse): Unconditionally delegate.
5728 2014-02-19 Tom Tromey <tromey@redhat.com>
5730 * target-delegates.c: Rebuild.
5731 * target.c (update_current_target): Don't inherit or default
5733 (dummy_goto_bookmark): Remove.
5734 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5735 * target.h (struct target_ops) <to_goto_bookmark>: Use
5736 TARGET_DEFAULT_NORETURN.
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target-delegates.c: Rebuild.
5741 * target.c (update_current_target): Don't inherit or default
5743 (dummy_get_bookmark): Remove.
5744 (init_dummy_target): Don't inherit or default to_get_bookmark.
5745 * target.h (struct target_ops) <to_get_bookmark>: Use
5746 TARGET_DEFAULT_NORETURN
5748 2014-02-19 Tom Tromey <tromey@redhat.com>
5750 * target-delegates.c: Rebuild.
5751 * target.c (update_current_target): Don't inherit or default
5752 to_make_corefile_notes.
5753 (init_dummy_target): Don't initialize to_make_corefile_notes.
5754 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5755 TARGET_DEFAULT_FUNC.
5757 2014-02-19 Tom Tromey <tromey@redhat.com>
5759 * target-delegates.c: Rebuild.
5760 * target.c (update_current_target): Don't inherit or default
5761 to_find_memory_regions.
5762 (init_dummy_target): Don't initialize to_find_memory_regions.
5763 * target.h (struct target_ops) <to_find_memory_regions>: Use
5764 TARGET_DEFAULT_FUNC.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.c (update_current_target): Don't inherit or default
5771 * target.h (struct target_ops) <to_log_command>: Use
5772 TARGET_DEFAULT_IGNORE.
5773 (target_log_command): Unconditionally delegate.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target-delegates.c: Rebuild.
5778 * target.c (update_current_target): Don't inherit or default
5779 to_pid_to_exec_file.
5780 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5781 TARGET_DEFAULT_RETURN.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (update_current_target): Don't inherit or default
5788 (target_thread_name): Unconditionally delegate.
5789 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
5797 * target.h (struct target_ops) <to_extra_thread_info>: 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
5805 * target.h (struct target_ops) <to_has_exited>: Use
5806 TARGET_DEFAULT_RETURN..
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (update_current_target): Don't inherit or default
5812 to_set_syscall_catchpoint.
5813 (return_one): Remove.
5814 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5815 TARGET_DEFAULT_RETURN.
5817 2014-02-19 Tom Tromey <tromey@redhat.com>
5819 * target-delegates.c: Rebuild.
5820 * target.c (update_current_target): Don't inherit or default
5821 to_insert_exec_catchpoint.
5822 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5823 TARGET_DEFAULT_RETURN.
5825 2014-01-08 Tom Tromey <tromey@redhat.com>
5827 * target-delegates.c: Rebuild.
5828 * target.c (update_current_target): Don't inherit or default
5829 to_insert_exec_catchpoint.
5830 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5831 TARGET_DEFAULT_RETURN.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target-delegates.c: Rebuild.
5836 * target.c (update_current_target): Don't inherit or default
5837 to_remove_vfork_catchpoint.
5838 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5839 TARGET_DEFAULT_RETURN.
5841 2014-02-19 Tom Tromey <tromey@redhat.com>
5843 * target-delegates.c: Rebuild.
5844 * target.c (update_current_target): Don't inherit or default
5845 to_insert_vfork_catchpoint.
5846 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5847 TARGET_DEFAULT_RETURN.
5849 2014-02-19 Tom Tromey <tromey@redhat.com>
5851 * target-delegates.c: Rebuild.
5852 * target.c (update_current_target): Don't inherit or default
5853 to_remove_fork_catchpoint.
5854 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5855 TARGET_DEFAULT_RETURN.
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * target-delegates.c: Rebuild.
5860 * target.c (update_current_target): Don't inherit or default
5861 to_insert_fork_catchpoint.
5862 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5863 TARGET_DEFAULT_RETURN.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target-delegates.c: Rebuild.
5868 * target.c (update_current_target): Don't inherit or default
5869 to_post_startup_inferior.
5870 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5871 TARGET_DEFAULT_IGNORE.
5873 2014-02-19 Tom Tromey <tromey@redhat.com>
5875 * target-delegates.c: Rebuild.
5876 * target.c (update_current_target): Don't inherit or default
5878 * target.h (struct target_ops) <to_load>: Use
5879 TARGET_DEFAULT_NORETURN.
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target-delegates.c: Rebuild.
5884 * target.c (update_current_target): Don't inherit or default
5886 * target.h (struct target_ops) <to_terminal_info>: Use
5887 TARGET_DEFAULT_FUNC.
5889 2014-02-19 Tom Tromey <tromey@redhat.com>
5891 * target-delegates.c: Rebuild.
5892 * target.c (update_current_target): Don't inherit or default
5893 to_terminal_save_ours.
5894 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5895 TARGET_DEFAULT_IGNORE.
5897 2014-02-19 Tom Tromey <tromey@redhat.com>
5899 * target-delegates.c: Rebuild.
5900 * target.c (update_current_target): Don't inherit or default
5902 * target.h (struct target_ops) <to_terminal_ours>: Use
5903 TARGET_DEFAULT_IGNORE.
5905 2014-02-19 Tom Tromey <tromey@redhat.com>
5907 * target-delegates.c: Rebuild.
5908 * target.c (update_current_target): Don't inherit or default
5909 to_terminal_ours_for_output.
5910 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5911 TARGET_DEFAULT_IGNORE.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5915 * target-delegates.c: Rebuild.
5916 * target.c (update_current_target): Don't inherit or default
5917 to_terminal_inferior.
5918 * target.h (struct target_ops) <to_terminal_inferior>: Use
5919 TARGET_DEFAULT_IGNORE.
5921 2014-02-19 Tom Tromey <tromey@redhat.com>
5923 * target-delegates.c: Rebuild.
5924 * target.c (update_current_target): Don't inherit or default
5926 * target.h (struct target_ops) <to_terminal_init>: Use
5927 TARGET_DEFAULT_IGNORE.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (update_current_target): Don't inherit or default
5933 to_can_accel_watchpoint_condition.
5934 * target.h (struct target_ops)
5935 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target-delegates.c: Rebuild.
5940 * target.c (update_current_target): Don't inherit or default
5941 to_region_ok_for_hw_watchpoint.
5942 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5943 Use TARGET_DEFAULT_FUNC.
5945 2014-02-19 Tom Tromey <tromey@redhat.com>
5947 * target-delegates.c: Rebuild.
5948 * target.c (update_current_target): Don't inherit or default
5949 to_watchpoint_addr_within_range.
5950 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5951 Use TARGET_DEFAULT_FUNC.
5953 2014-02-19 Tom Tromey <tromey@redhat.com>
5955 * target-delegates.c: Rebuild.
5956 * target.c (update_current_target): Don't inherit or default
5957 to_remove_watchpoint.
5958 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5959 TARGET_DEFAULT_NORETURN.
5961 2014-02-19 Tom Tromey <tromey@redhat.com>
5963 * target-delegates.c: Rebuild.
5964 * target.c (update_current_target): Don't inherit or default
5965 to_insert_watchpoint.
5966 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5967 TARGET_DEFAULT_RETURN.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target-delegates.c: Rebuild.
5972 * target.c (update_current_target): Don't inherit or default
5973 to_remove_hw_breakpoint.
5974 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5975 TARGET_DEFAULT_RETURN.
5977 2014-02-19 Tom Tromey <tromey@redhat.com>
5979 * target-delegates.c: Rebuild.
5980 * target.c (update_current_target): Don't inherit or default
5981 to_insert_hw_breakpoint.
5982 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5983 TARGET_DEFAULT_RETURN.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target-delegates.c: Rebuild.
5988 * target.c (update_current_target): Don't inherit or default
5989 to_can_use_hw_breakpoint.
5990 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5991 TARGET_DEFAULT_RETURN.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * target-delegates.c: Rebuild.
5996 * target.c (update_current_target): Don't inherit or default
5998 * target.h (struct target_ops) <to_files_info>: Use
5999 TARGET_DEFAULT_IGNORE.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target-delegates.c: Rebuild.
6004 * target.c (update_current_target): Don't inherit or default
6006 * target.h (struct target_ops) <to_store>: Use
6007 TARGET_DEFAULT_NORETURN.
6009 2014-02-19 Tom Tromey <tromey@redhat.com>
6011 * target-delegates.c: Rebuild.
6012 * target.c (update_current_target): Don't inherit or default
6014 * target.h (struct target_ops) <to_post_attach>: Use
6015 TARGET_DEFAULT_IGNORE.
6017 2014-02-19 Tom Tromey <tromey@redhat.com>
6019 * target-delegates.c: Rebuild.
6020 * target.c (update_current_target): Don't inherit or default
6022 (default_rcmd): New function.
6023 (do_monitor_command): Unconditionally delegate.
6024 * target.h (struct target_ops) <to_rmcd>: Use
6025 TARGET_DEFAULT_FUNC.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target-delegates.c: Rebuild.
6030 * target.c (init_dummy_target): Don't initialize to_attach.
6031 (target_attach): Unconditionally delegate.
6032 * target.h (struct target_ops) <to_attach>: Use
6033 TARGET_DEFAULT_FUNC.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target-delegates.c: Rebuild.
6038 * target.c (target_detach): Unconditionally delegate.
6039 (init_dummy_target): Don't initialize to_detach.
6040 * target.h (struct target_ops) <to_detach>: Use
6041 TARGET_DEFAULT_IGNORE.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6047 (target_augmented_libraries_svr4_read): Add argument.
6048 * target.c (update_current_target): Update.
6049 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target.h (struct target_ops) <to_call_history_range>: Add
6056 * target.c (target_call_history_range): Add argument.
6057 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6059 (record_btrace_call_history_from): Update.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target.h (struct target_ops) <to_call_history_from>: Add
6065 * target.c (target_call_history_from): Add argument.
6066 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6069 2014-02-19 Tom Tromey <tromey@redhat.com>
6071 * target.h (struct target_ops) <to_call_history>: Add argument.
6072 * target.c (target_call_history): Add argument.
6073 * record-btrace.c (record_btrace_call_history): Add 'self'
6076 2014-02-19 Tom Tromey <tromey@redhat.com>
6078 * target.h (struct target_ops) <to_insn_history_range>: Add
6080 * target.c (target_insn_history_range): Add argument.
6081 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6083 (record_btrace_insn_history_from): Update.
6085 2014-02-19 Tom Tromey <tromey@redhat.com>
6087 * target.h (struct target_ops) <to_insn_history_from>: Add
6089 * target.c (target_insn_history_from): Add argument.
6090 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * target.h (struct target_ops) <to_insn_history>: Add argument.
6096 * target.c (target_insn_history): Add argument.
6097 * record-btrace.c (record_btrace_insn_history): Add 'self'
6100 2014-02-19 Tom Tromey <tromey@redhat.com>
6102 * target.h (struct target_ops) <to_goto_record>: Add argument.
6103 * target.c (target_goto_record): Add argument.
6104 * record-full.c (record_full_goto): Add 'self' argument.
6105 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6109 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6110 * target.c (target_goto_record_end): Add argument.
6111 * record-full.c (record_full_goto_end): Add 'self' argument.
6112 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * target.h (struct target_ops) <to_goto_record_begin>: Add
6118 * target.c (target_goto_record_begin): Add argument.
6119 * record-full.c (record_full_goto_begin): Add 'self' argument.
6120 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target.h (struct target_ops) <to_record_is_replaying>: Add
6127 * target.c (target_record_is_replaying): Add argument.
6128 * record-full.c (record_full_is_replaying): Add 'self' argument.
6129 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6131 (record_btrace_xfer_partial, record_btrace_store_registers)
6132 (record_btrace_prepare_to_store, record_btrace_resume)
6133 (record_btrace_wait, record_btrace_decr_pc_after_break)
6134 (record_btrace_find_new_threads, record_btrace_thread_alive):
6137 2014-02-19 Tom Tromey <tromey@redhat.com>
6139 * target.h (struct target_ops) <to_delete_record>: Add argument.
6140 * target.c (target_delete_record): Add argument.
6141 * record-full.c (record_full_delete): Add 'self' argument.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_save_record>: Add argument.
6146 * target.c (target_save_record): Add argument.
6147 * record-full.c (record_full_save): Add 'self' argument.
6148 (record_full_save): Add 'self' argument.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_info_record>: Add argument.
6153 * target.c (target_info_record): Add argument.
6154 * record.c (info_record_command): Add argument.
6155 * record-full.c (record_full_info): Add 'self' argument.
6156 * record-btrace.c (record_btrace_info): Add 'self' argument.
6158 2014-02-19 Tom Tromey <tromey@redhat.com>
6160 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6161 * target.c (target_stop_recording): Add argument.
6162 * record.c (record_stop): Add argument.
6163 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6166 2014-02-19 Tom Tromey <tromey@redhat.com>
6168 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6169 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6170 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6172 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6173 (_initialize_amd64_linux_nat): Use it.
6174 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6175 (_initialize_i386_linux_nat): Use it.
6177 2014-02-19 Tom Tromey <tromey@redhat.com>
6179 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6180 * target.c (target_teardown_btrace): Add argument.
6181 * remote.c (remote_teardown_btrace): Add 'self' argument.
6182 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6184 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6190 * target.c (target_disable_btrace): Add argument.
6191 * remote.c (remote_disable_btrace): Add 'self' argument.
6192 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6194 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6200 * target.c (target_enable_btrace): Add argument.
6201 * remote.c (remote_enable_btrace): Add 'self' argument.
6202 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6204 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6209 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6210 (target_can_use_agent): Add argument.
6211 * target.c (update_current_target): Update.
6212 * remote.c (remote_can_use_agent): Add 'self' argument.
6213 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target.h (struct target_ops) <to_use_agent>: Add argument.
6218 (target_use_agent): Add argument.
6219 * target.c (update_current_target): Update.
6220 * remote.c (remote_use_agent): Add 'self' argument.
6221 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6225 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6226 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6227 (target_traceframe_info): Add argument.
6228 * target.c (update_current_target): Update.
6229 * remote.c (remote_traceframe_info): Add 'self' argument.
6230 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6232 2014-02-19 Tom Tromey <tromey@redhat.com>
6234 * target.h (target_static_tracepoint_markers_by_strid): Add
6236 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6238 * target.c (update_current_target): Update.
6239 * remote.c (struct target_ops)
6240 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6241 * linux-nat.c (struct target_ops)
6242 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6244 2014-02-19 Tom Tromey <tromey@redhat.com>
6246 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6248 (target_static_tracepoint_marker_at): Add argument.
6249 * target.c (update_current_target): Update.
6250 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6256 (target_set_permissions): Add argument.
6257 * target.c (update_current_target): Update.
6258 * remote.c (remote_set_permissions): Add 'self' argument.
6259 (remote_start_remote): Update.
6261 2014-02-19 Tom Tromey <tromey@redhat.com>
6263 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6264 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6265 (target_get_tib_address): Add argument.
6266 * target.c (update_current_target): Update.
6267 * remote.c (remote_get_tib_address): Add 'self' argument.
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6272 (target_set_trace_notes): Add argument.
6273 * target.c (update_current_target): Update.
6274 * remote.c (remote_set_trace_notes): Add 'self' argument.
6276 2014-02-19 Tom Tromey <tromey@redhat.com>
6278 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6280 (target_set_trace_buffer_size): Add argument.
6281 * target.c (update_current_target): Update.
6282 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6288 (target_set_circular_trace_buffer): Add argument.
6289 * target.c (update_current_target): Update.
6290 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6293 2014-02-19 Tom Tromey <tromey@redhat.com>
6295 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6297 (target_set_disconnected_tracing): Add argument.
6298 * target.c (update_current_target): Update.
6299 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * target.h (struct target_ops)
6304 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6305 (target_get_min_fast_tracepoint_insn_len): Add argument.
6306 * target.c (update_current_target): Update.
6307 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6314 (target_get_raw_trace_data): Add argument.
6315 * target.c (update_current_target): Update.
6316 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6322 (target_upload_trace_state_variables): Add argument.
6323 * target.c (update_current_target): Update.
6324 * remote.c (remote_upload_trace_state_variables): Add 'self'
6326 (remote_start_remote): Update.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6332 (target_upload_tracepoints): Add argument.
6333 * target.c (update_current_target): Update.
6334 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6335 (remote_start_remote): Update.
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6339 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6340 (target_save_trace_data): Add argument.
6341 * target.c (update_current_target): Update.
6342 * remote.c (remote_save_trace_data): Add 'self' argument.
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6348 * target.h (struct target_ops)
6349 <to_get_trace_state_variable_value>: Add argument.
6350 (target_get_trace_state_variable_value): Add argument.
6351 * target.c (update_current_target): Update.
6352 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6354 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6359 * target.h (struct target_ops) <to_trace_find>: Add argument.
6360 (target_trace_find): Add argument.
6361 * target.c (update_current_target): Update.
6362 * remote.c (remote_trace_find): Add 'self' argument.
6363 * ctf.c (ctf_trace_find): Add 'self' argument.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6368 (target_trace_stop): Add argument.
6369 * target.c (update_current_target): Update.
6370 * remote.c (remote_trace_stop): Add 'self' argument.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6375 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6377 (target_get_tracepoint_status): Add argument.
6378 * target.c (update_current_target): Update.
6379 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6384 * target.h (struct target_ops) <to_get_trace_status>: Add
6386 (target_get_trace_status): Add argument.
6387 * target.c (update_current_target): Update.
6388 * remote.c (remote_get_trace_status): Add 'self' argument.
6389 (remote_start_remote, remote_can_download_tracepoint): Update.
6390 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target.h (struct target_ops) <to_trace_start>: Add argument.
6395 (target_trace_start): Add argument.
6396 * target.c (update_current_target): Update.
6397 * remote.c (remote_trace_start): Add 'self' argument.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6403 (target_trace_set_readonly_regions): Add argument.
6404 * target.c (update_current_target): Update.
6405 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6408 2014-02-19 Tom Tromey <tromey@redhat.com>
6410 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6412 (target_disable_tracepoint): Add argument.
6413 * target.c (update_current_target): Update.
6414 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6416 2014-02-19 Tom Tromey <tromey@redhat.com>
6418 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6420 (target_enable_tracepoint): Add argument.
6421 * target.c (update_current_target): Update.
6422 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target.h (struct target_ops) <to_download_trace_state_variable>:
6428 (target_download_trace_state_variable): Add argument.
6429 * target.c (update_current_target): Update.
6430 * remote.c (remote_download_trace_state_variable): Add 'self'
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6437 (target_can_download_tracepoint): Add argument.
6438 * target.c (update_current_target): Update.
6439 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6441 2014-02-19 Tom Tromey <tromey@redhat.com>
6443 * target.h (struct target_ops) <to_download_tracepoint>: Add
6445 (target_download_tracepoint): Add argument.
6446 * target.c (update_current_target): Update.
6447 * remote.c (remote_download_tracepoint): Add 'self' argument.
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6451 * target.h (struct target_ops) <to_trace_init>: Add argument.
6452 (target_trace_init): Add argument.
6453 * target.c (update_current_target): Update.
6454 * remote.c (remote_trace_init): Add 'self' argument.
6456 2014-02-19 Tom Tromey <tromey@redhat.com>
6458 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6459 * target.c (target_fileio_readlink): Add argument.
6460 * remote.c (remote_hostio_readlink): Add 'self' argument.
6461 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6466 * target.c (target_fileio_unlink): Add argument.
6467 * remote.c (remote_hostio_unlink): Add 'self' argument.
6468 (remote_file_delete): Update.
6469 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6474 * target.c (target_fileio_close): Add argument.
6475 * remote.c (remote_hostio_close): Add 'self' argument.
6476 (remote_hostio_close_cleanup): Update.
6477 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6479 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6481 2014-02-19 Tom Tromey <tromey@redhat.com>
6483 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6484 * target.c (target_fileio_pread): Add argument.
6485 * remote.c (remote_hostio_pread): Add 'self' argument.
6486 (remote_bfd_iovec_pread, remote_file_get): Update.
6487 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6491 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6492 * target.c (target_fileio_pwrite): Add argument.
6493 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6494 (remote_file_put): Update.
6495 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6497 2014-02-19 Tom Tromey <tromey@redhat.com>
6499 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6500 * target.c (target_fileio_open): Add argument.
6501 * remote.c (remote_hostio_open): Add 'self' argument.
6502 (remote_bfd_iovec_open): Add 'self' argument.
6503 (remote_file_put): Add 'self' argument.
6504 (remote_file_get): Add 'self' argument.
6505 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6507 2014-02-19 Tom Tromey <tromey@redhat.com>
6509 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6511 (target_can_run_breakpoint_commands): Add argument.
6512 * target.c (update_current_target): Update.
6513 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6515 (remote_insert_breakpoint): Add 'self' argument.
6516 (remote_insert_hw_breakpoint): Add 'self' argument.
6517 (remote_can_run_breakpoint_commands): Add 'self' argument.
6519 2014-02-19 Tom Tromey <tromey@redhat.com>
6521 * target.h (struct target_ops)
6522 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6523 (target_supports_evaluation_of_breakpoint_conditions): Add
6525 * target.c (update_current_target): Update.
6526 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6528 (remote_insert_breakpoint): Add 'self' argument.
6529 (remote_insert_hw_breakpoint): Add 'self' argument.
6530 (remote_supports_cond_breakpoints): Add 'self' argument.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6536 (target_supports_string_tracing): Add argument.
6537 * target.c (update_current_target): Update.
6538 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target.h (struct target_ops)
6543 <to_supports_disable_randomization>: Add argument.
6544 * target.c (find_default_supports_disable_randomization): Add
6546 (target_supports_disable_randomization): Add argument.
6547 (find_default_supports_disable_randomization): Add 'self'
6549 * remote.c (extended_remote_supports_disable_randomization): Add
6551 (remote_supports_disable_randomization): Add 'self' argument.
6552 (extended_remote_create_inferior): Update.
6553 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target.h (struct target_ops)
6559 <to_supports_enable_disable_tracepoint>: Add argument.
6560 (target_supports_enable_disable_tracepoint): Add argument.
6561 * target.c (update_current_target): Update.
6562 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target.h (struct target_ops) <to_supports_multi_process>: Add
6569 (target_supports_multi_process): Add argument.
6570 * target.c (update_current_target): Update.
6571 * remote.c (remote_supports_multi_process): Add 'self' argument.
6572 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6574 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6577 2014-02-19 Tom Tromey <tromey@redhat.com>
6579 * target.h (struct target_ops) <to_execution_direction>: Add
6581 (target_execution_direction): Add argument.
6582 * target.c (default_execution_direction): Add 'self' argument.
6583 * record-full.c (record_full_execution_direction): Add 'self'
6586 2014-02-19 Tom Tromey <tromey@redhat.com>
6588 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6590 (target_can_execute_reverse): Add argument.
6591 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6592 * record-full.c (record_full_can_execute_reverse): Add 'self'
6594 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6599 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6600 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6602 (target_get_ada_task_ptid): Add argument.
6603 * target.c (update_current_target): Update.
6604 (default_get_ada_task_ptid): Add 'self' argument.
6605 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6606 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6607 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6609 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6611 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6613 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6615 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6616 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6622 (target_goto_bookmark): Add argument.
6623 * target.c (dummy_goto_bookmark): Add 'self' argument.
6624 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6629 (target_get_bookmark): Add argument.
6630 * target.c (dummy_get_bookmark): Add 'self' argument.
6631 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6633 2014-02-19 Tom Tromey <tromey@redhat.com>
6635 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6637 (target_make_corefile_notes): Add argument.
6638 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6639 * procfs.c (procfs_make_note_section): Add 'self' argument.
6640 (procfs_make_note_section): Add 'self' argument.
6641 (procfs_make_note_section): Add 'self' argument.
6642 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6644 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6645 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6646 * exec.c (exec_make_note_section): Add 'self' argument.
6647 (exec_make_note_section): Add 'self' argument.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target.h (struct target_ops) <to_find_memory_regions>: Add
6653 (target_find_memory_regions): Add argument.
6654 * target.c (dummy_find_memory_regions): Add 'self' argument.
6655 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6656 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6657 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6658 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6659 * exec. (exec_do_find_memory_regions): New global.
6660 (exec_set_find_memory_regions): Rewrite.
6661 (exec_find_memory_regions): New function.
6662 (init_exec_ops): Use exec_find_memory_regions.
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target.h (struct target_ops) <to_supports_non_stop>: Add
6668 * target.c (find_default_supports_non_stop): Add argument.
6669 (target_supports_non_stop): Add argument.
6670 (find_default_supports_non_stop): Add 'self' argument.
6671 * remote.c (remote_supports_non_stop): Add 'self' argument.
6672 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target.h (struct target_ops) <to_log_command>: Add argument.
6677 (target_log_command): Add argument.
6678 * serial.h (serial_log_command): Add 'self' argument.
6679 * serial.c (serial_log_command): Add 'self' argument.
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6684 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6686 (target_pid_to_exec_file): Add argument.
6687 * target.c (debug_to_pid_to_exec_file): Add argument.
6688 (update_current_target): Update.
6689 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6690 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6691 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6692 (linux_handle_extended_wait): Update.
6693 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6694 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6695 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6696 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target.h (struct target_ops) <to_rcmd>: Add argument.
6701 (target_rcmd): Add argument.
6702 * target.c (debug_to_rcmd): Add argument.
6703 (update_current_target, do_monitor_command): Update.
6704 * remote.c (remote_rcmd): Add 'self' argument.
6705 * monitor.c (monitor_rcmd): Add 'self' argument.
6707 2014-02-19 Tom Tromey <tromey@redhat.com>
6709 * windows-nat.c (windows_stop): Add 'self' argument.
6710 * target.h (struct target_ops) <to_stop>: Add argument.
6711 * target.c (target_stop): Add argument.
6712 (debug_to_stop): Add argument.
6713 (update_current_target): Update.
6714 * remote.c (remote_stop): Add 'self' argument.
6715 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6716 (gdbsim_cntrl_c): Update.
6717 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6718 * procfs.c (procfs_stop): Add 'self' argument.
6719 * nto-procfs.c (procfs_stop): Add 'self' argument.
6720 * monitor.c (monitor_stop): Add 'self' argument.
6721 (monitor_open): Update.
6722 * linux-nat.c (linux_nat_stop): Add argument.
6723 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6724 * gnu-nat.c (gnu_stop): Add 'self' argument.
6725 * darwin-nat.c (darwin_stop): Add 'self' argument.
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target.h (struct target_ops) <to_thread_name>: Add argument.
6730 * target.c (target_thread_name): Add argument.
6731 (update_current_target): Update.
6732 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6734 2014-02-19 Tom Tromey <tromey@redhat.com>
6736 * target.h (struct target_ops) <to_extra_thread_info>: Add
6738 (target_extra_thread_info): Add argument.
6739 * target.c (update_current_target): Update.
6740 * remote.c (remote_threads_extra_info): Add 'self' argument.
6741 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6743 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6744 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6745 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6747 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6749 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6751 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_program_signals>: Add argument.
6757 * target.c (target_program_signals): Add argument.
6758 * remote.c (remote_program_signals): Add 'self' argument.
6760 2014-02-19 Tom Tromey <tromey@redhat.com>
6762 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6763 * target.c (target_pass_signals): Add argument.
6764 * remote.c (remote_pass_signals): Add 'self' argument.
6765 (remote_start_remote): Update.
6766 * procfs.c (procfs_pass_signals): Add 'self' argument.
6767 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6768 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6769 (linux_nat_create_inferior, linux_nat_attach): Update.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * windows-nat.c (windows_can_run): Add 'self' argument.
6774 * target.h (struct target_ops) <to_can_run>: Add argument.
6775 (target_can_run): Add argument.
6776 * target.c (debug_to_can_run): Add argument.
6777 (update_current_target): Update.
6778 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6779 * inf-child.c (inf_child_can_run): Add 'self' argument.
6780 * go32-nat.c (go32_can_run): Add 'self' argument.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target.h (struct target_ops) <to_has_exited>: Add argument.
6785 (target_has_exited): Add argument.
6786 * target.c (debug_to_has_exited): Add argument.
6787 (update_current_target): Update.
6789 2014-02-19 Tom Tromey <tromey@redhat.com>
6791 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6793 (target_set_syscall_catchpoint): Add argument.
6794 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6796 * target.c (update_current_target): Update.
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6802 (target_remove_exec_catchpoint): Add argument.
6803 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6804 (update_current_target): Update.
6805 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6808 2014-02-19 Tom Tromey <tromey@redhat.com>
6810 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6812 (target_insert_exec_catchpoint): Add argument.
6813 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6814 (update_current_target): Update.
6815 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6820 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6822 (target_remove_vfork_catchpoint): Add argument.
6823 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6824 (update_current_target): Update.
6825 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6828 2014-02-19 Tom Tromey <tromey@redhat.com>
6830 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6832 (target_insert_vfork_catchpoint): Add argument.
6833 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6834 (update_current_target): Update.
6835 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6838 2014-02-19 Tom Tromey <tromey@redhat.com>
6840 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6842 (target_remove_fork_catchpoint): Add argument.
6843 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6844 (update_current_target): Update.
6845 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6848 2014-02-19 Tom Tromey <tromey@redhat.com>
6850 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6852 (target_insert_fork_catchpoint): Add argument.
6853 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6854 (update_current_target): Update.
6855 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6858 2014-02-19 Tom Tromey <tromey@redhat.com>
6860 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6862 (target_post_startup_inferior): Add argument.
6863 * target.c (debug_to_post_startup_inferior): Add argument.
6864 (update_current_target): Update.
6865 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6867 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6869 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6871 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6873 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6875 (super_post_startup_inferior): Likewise.
6876 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6878 (super_post_startup_inferior): Likewise.
6879 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6880 Add 'self' argument.
6881 (super_post_startup_inferior): Likewise.
6883 2014-02-19 Tom Tromey <tromey@redhat.com>
6885 * target.h (struct target_ops) <to_load>: Add argument.
6886 * target.c (target_load): Add argument.
6887 (debug_to_load): Add argument.
6888 (update_current_target): Update.
6889 * remote.c (remote_load): Add 'self' argument.
6890 * remote-sim.c (gdbsim_load): Add 'self' argument.
6891 * remote-mips.c (mips_load): Add 'self' argument.
6892 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6893 * monitor.c (monitor_load): Add 'self' argument.
6894 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6896 2014-02-19 Tom Tromey <tromey@redhat.com>
6898 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6899 (target_terminal_info): Add argument.
6900 * target.c (debug_to_terminal_info): Add argument.
6901 (default_terminal_info): Likewise.
6902 * inflow.c (child_terminal_info): Add 'self' argument.
6903 * inferior.h (child_terminal_info): Add 'self' argument.
6904 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6910 (target_terminal_save_ours): Add argument.
6911 * target.c (debug_to_terminal_save_ours): Add argument.
6912 (update_current_target): Update.
6913 * inflow.c (terminal_save_ours): Add 'self' argument.
6914 * inferior.h (terminal_save_ours): Add 'self' argument.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6919 (target_terminal_ours): Add argument.
6920 * target.c (debug_to_terminal_ours): Add argument.
6921 (update_current_target): Update.
6922 * remote.c (remote_terminal_ours): Add 'self' argument.
6923 (remote_close): Update.
6924 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6925 * inflow.c (terminal_ours): Add 'self' argument.
6926 * inferior.h (terminal_ours): Add 'self' argument.
6927 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6929 2014-02-19 Pedro Alves <palves@redhat.com>
6930 Tom Tromey <tromey@redhat.com>
6932 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6934 (target_terminal_ours_for_output): Add argument.
6935 * target.c (debug_to_terminal_ours_for_output): Add argument.
6936 (update_current_target): Update.
6937 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6938 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6939 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6941 2014-02-19 Tom Tromey <tromey@redhat.com>
6943 * target.h (struct target_ops) <to_terminal_inferior>: Add
6945 * target.c (target_terminal_inferior): Add argument.
6946 (update_current_target): Update.
6947 * remote.c (remote_terminal_inferior): Add 'self' argument.
6948 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6949 * inflow.c (terminal_inferior): Add 'self' argument.
6950 * inferior.h (terminal_inferior): Add 'self' argument.
6951 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6952 (go32_terminal_inferior): Add 'self' argument.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6957 (target_terminal_init): Add argument.
6958 * target.c (debug_to_terminal_init): Add argument.
6959 (update_current_target): Update.
6960 * inflow.c (terminal_init_inferior): Add 'self' argument.
6961 * inferior.h (terminal_init_inferior): Add 'self' argument.
6962 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6963 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * target.h (struct target_ops)
6968 <to_can_accel_watchpoint_condition>: Add argument.
6969 (target_can_accel_watchpoint_condition): Add argument.
6970 * target.c (debug_to_can_accel_watchpoint_condition): Add
6972 (update_current_target): Update.
6973 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6976 2014-02-19 Tom Tromey <tromey@redhat.com>
6978 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6980 (target_region_ok_for_hw_watchpoint): Add argument.
6981 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6982 (default_region_ok_for_hw_watchpoint): Add argument.
6983 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6984 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6986 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6988 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6990 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6992 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6994 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6996 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6997 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6999 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7000 Add 'self' argument.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7006 (target_insert_watchpoint): Add argument.
7007 * target.c (debug_to_insert_watchpoint): Add argument.
7008 (update_current_target): Update.
7009 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7010 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7011 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7012 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7013 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7014 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7016 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7017 (procfs_insert_hw_watchpoint): Add 'self' argument.
7018 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7020 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7022 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7024 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7025 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7027 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7030 2014-02-19 Tom Tromey <tromey@redhat.com>
7032 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7034 (target_remove_watchpoint): Add argument.
7035 * target.c (debug_to_remove_watchpoint): Add argument.
7036 (update_current_target): Update.
7037 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7038 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7039 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7040 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7041 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7042 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7044 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7045 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7047 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7049 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7051 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7052 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7054 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7057 2014-02-19 Tom Tromey <tromey@redhat.com>
7059 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7061 (target_remove_hw_breakpoint): Add argument.
7062 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7063 (update_current_target): Update.
7064 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7065 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7067 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7068 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7070 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7073 2014-02-19 Tom Tromey <tromey@redhat.com>
7075 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7077 (target_insert_hw_breakpoint): Add argument.
7078 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7079 (update_current_target): Update.
7080 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7081 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7083 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7084 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7085 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7087 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7090 2014-02-19 Tom Tromey <tromey@redhat.com>
7092 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7094 (target_can_use_hardware_watchpoint): Add argument.
7095 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7096 (update_current_target): Update.
7097 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7099 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7101 * remote.c (remote_check_watch_resources): Add 'self' argument.
7102 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7103 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7105 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7106 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7108 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7110 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7112 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7114 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7116 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7118 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7119 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7121 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target.h (struct target_ops) <to_post_attach>: Add argument.
7127 (target_post_attach): Add argument.
7128 * target.c (debug_to_post_attach): Add argument.
7129 (update_current_target): Update.
7130 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7131 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7132 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7133 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7134 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * windows-nat.c (windows_close): Add 'self' argument.
7139 * tracepoint.c (tfile_close): Add 'self' argument.
7140 * target.h (struct target_ops) <to_close>: Add argument.
7141 * target.c (target_close): Add argument.
7142 (update_current_target): Update.
7143 * remote.c (remote_close): Add 'self' argument.
7144 * remote-sim.c (gdbsim_close): Add 'self' argument.
7145 * remote-mips.c (mips_close): Add 'self' argument.
7146 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7147 * record-full.c (record_full_close): Add 'self' argument.
7148 * record-btrace.c (record_btrace_close): Add 'self' argument.
7149 * monitor.h (monitor_close): Add 'self' argument.
7150 * monitor.c (monitor_close): Add 'self' argument.
7151 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7152 * linux-nat.c (linux_nat_close): Add argument.
7153 * go32-nat.c (go32_close): Add 'self' argument.
7154 * exec.c (exec_close_1): Add 'self' argument.
7155 * ctf.c (ctf_close): Add 'self' argument.
7156 * corelow.c (core_close): Add 'self' argument.
7157 (core_close_cleanup): Update.
7158 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7159 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7163 * remote.c (remote_load): New function.
7164 (init_remote_ops): Use it.
7166 2014-02-19 Tom Tromey <tromey@redhat.com>
7168 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7170 * common/linux-btrace.h (linux_supports_btrace): Update.
7171 * remote.c (remote_supports_btrace): Add "self" argument.
7172 * target-delegates.c: Rebuild.
7173 * target.c (target_supports_btrace): Remove.
7174 * target.h (struct target_ops) <to_supports_btrace>: Add
7175 target_ops argument.
7176 (target_supports_btrace): New define.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * record-full.c (record_full_beneath_to_resume_ops)
7181 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7182 (record_full_beneath_to_wait)
7183 (record_full_beneath_to_store_registers_ops)
7184 (record_full_beneath_to_store_registers)
7185 (record_full_beneath_to_xfer_partial_ops)
7186 (record_full_beneath_to_xfer_partial)
7187 (record_full_beneath_to_insert_breakpoint_ops)
7188 (record_full_beneath_to_insert_breakpoint)
7189 (record_full_beneath_to_remove_breakpoint_ops)
7190 (record_full_beneath_to_remove_breakpoint)
7191 (record_full_beneath_to_stopped_by_watchpoint)
7192 (record_full_beneath_to_stopped_data_address)
7193 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7194 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7195 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7196 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7197 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7198 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7199 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7200 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7201 (record_full_resume, record_full_wait_1)
7202 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7203 (record_full_store_registers, record_full_xfer_partial)
7204 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7205 (record_full_async, record_full_core_xfer_partial): Use target
7207 * target-delegates.c: Rebuild.
7208 * target.c (current_xfer_partial): Remove.
7209 (update_current_target): Do not INHERIT or de_fault
7210 to_insert_breakpoint, to_remove_breakpoint,
7211 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7212 to_is_async_p, to_async. Do not set to_xfer_partial field.
7213 (default_xfer_partial): Simplify.
7214 (current_xfer_partial): Remove.
7215 (target_wait, target_resume): Simplify.
7216 (find_default_can_async_p, find_default_is_async_p): Update.
7217 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7218 to_xfer_partial, to_stopped_by_watchpoint,
7219 to_stopped_data_address.
7220 (target_store_registers): Simplify.
7221 (forward_target_remove_breakpoint)
7222 (forward_target_insert_breakpoint): Remove.
7223 (target_remove_breakpoint, target_insert_breakpoint)
7224 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7225 * target.h (struct target_ops) <to_resume, to_wait,
7226 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7227 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7228 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7230 (forward_target_remove_breakpoint)
7231 (forward_target_insert_breakpoint): Remove.
7232 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7234 (record_btrace_insert_breakpoint): Delegate directly.
7236 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target-delegates.c: New file.
7240 * target.c: Include target-delegates.c.
7241 (init_dummy_target): Call install_dummy_methods.
7242 (complete_target_initialization): Call install_delegators.
7243 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7244 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7245 * make-target-delegates: New file.
7247 2014-02-19 Tom Tromey <tromey@redhat.com>
7249 * record.c (find_record_target): Use find_target_at.
7250 * target.c (find_target_at): New function.
7251 * target.h (find_target_at): Declare.
7253 2014-02-19 Tom Tromey <tromey@redhat.com>
7255 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7257 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7259 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7260 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7262 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7264 * linux-nat.c (save_sigtrap): Update.
7265 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7266 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7267 (linux_nat_close): Update.
7268 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7270 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7272 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7273 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7274 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7275 (tmp_to_async): Add 'ops' argument.
7276 (record_full_stopped_by_watchpoint, record_full_async)
7277 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7279 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7280 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7281 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7282 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7283 (remote_is_async_p, remote_async): Add 'ops' argument.
7284 (remote_stopped_data_address): Update.
7285 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7286 * target.c (update_current_target)
7287 (find_default_can_async_p, find_default_is_async_p): Update.
7288 (init_dummy_target): Update.
7289 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7290 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7291 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7292 (target_can_async_p, target_is_async_p, target_async)
7293 (target_stopped_by_watchpoint): Update.
7295 2014-02-19 Yao Qi <yao@codesourcery.com>
7298 * gdbarch.sh: Remove startup_gdbarch.
7299 * gdbarch.c: Regenerated.
7300 * gdbarch.h: Likewise.
7302 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7304 * rl78-tdep.c (rl78_g10_register_name): New function.
7305 (rl78_return_value): Add g10 support.
7306 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7309 2014-02-17 Doug Evans <xdje42@gmail.com>
7311 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7312 (SUBDIR_GUILE_SRCS): Ditto.
7313 (scm-gsmob.o): Ditto.
7315 2014-02-17 Yao Qi <yao@codesourcery.com>
7317 * gnu-nat.c (ILL_RPC): Declare defined function.
7319 2014-02-17 Yao Qi <yao@codesourcery.com>
7321 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7322 mach_msg_type_number_t.
7323 (gnu_write_inferior): Likewise.
7325 2014-02-17 Yao Qi <yao@codesourcery.com>
7327 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7329 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7330 (inf_validate_procs, inf_signal): Likewise.
7331 (S_exception_raise_request): Likewise.
7332 (do_mach_notify_dead_name): Likewise.
7333 (steal_exc_port): Likewise.
7334 (gnu_read_inferior): Change 'copy_count''s type to
7335 mach_msg_type_number_t.
7336 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7339 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7341 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7342 flag. Adjust all users; in particular...
7343 (gnu_wait): ..., don't decrement its value in here...
7344 (gnu_create_inferior): ..., and instead set the flag in here,
7345 around the startup_inferior call, and call that one with
7346 START_INFERIOR_TRAPS_EXPECTED.
7348 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7349 (ILL_RPC): ... new macro.
7350 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7351 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7352 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7353 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7354 functions with ILL_RPC macro.
7355 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7356 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7357 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7358 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7359 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7360 (S_proc_getlogin_reply, S_proc_getsid_reply)
7361 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7362 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7363 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7364 (S_proc_getnports_reply, S_proc_is_important_reply)
7365 (S_proc_get_code_reply): New stub functions, generated with
7368 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7369 collected the type check structures.
7371 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7373 2014-02-14 Doug Evans <dje@google.com>
7375 * target.c (target_write_partial): Fix result type.
7377 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7379 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7380 the proper offsets to access fpregset_t.
7382 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7384 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7385 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7386 * h8300-tdep.c (setmachinelist): Remove global.
7387 * hppa-tdep.c (hppa_sigtramp): Remove global.
7388 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7389 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7390 * ravenscar-thread.c (update_target_observer): Remove global.
7391 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7393 2014-02-12 Tom Tromey <tromey@redhat.com>
7395 * common/rsp-low.c: Update comments.
7396 * common/rsp-low.h: Update comments.
7398 2014-02-12 Tom Tromey <tromey@redhat.com>
7400 * common/rsp-low.c (convert_ascii_to_int): Remove.
7401 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7403 2014-02-12 Tom Tromey <tromey@redhat.com>
7405 * common/rsp-low.h (unhexify): Don't declare.
7406 * common/rsp-low.c (unhexify): Remove.
7408 2014-02-12 Tom Tromey <tromey@redhat.com>
7410 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7411 * common/rsp-low.c (convert_int_to_ascii): Remove.
7413 2014-02-12 Tom Tromey <tromey@redhat.com>
7415 * common/rsp-low.h (hexify): Don't declare.
7416 * common/rsp-low.c (hexify): Remove.
7418 2014-02-12 Tom Tromey <tromey@redhat.com>
7420 * common/rsp-low.c (hexify): Never take strlen of argument.
7422 2014-02-12 Tom Tromey <tromey@redhat.com>
7424 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7425 * remote.c (extended_remote_run, remote_rcmd)
7426 (remote_download_trace_state_variable, remote_save_trace_data)
7427 (remote_set_trace_notes): Update.
7428 * tracepoint.c (encode_source_string, tfile_write_status)
7429 (tfile_write_uploaded_tsv): Update.
7431 2014-02-12 Tom Tromey <tromey@redhat.com>
7433 * tracepoint.c: Include rsp-low.h.
7434 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7435 * remote.c: Include rsp-low.h.
7436 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7437 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7438 (remote_unescape_input): Move to common/rsp-low.c.
7439 * common/rsp-low.h: New file.
7440 * common/rsp-low.c: New file.
7441 * Makefile.in (SFILES): Add common/rsp-low.c.
7442 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7443 (COMMON_OBS): Add rsp-low.o.
7444 (rsp-low.o): New target.
7446 2014-02-12 Tom Tromey <tromey@redhat.com>
7448 * utils.h: Include print-utils.h.
7449 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7450 (int_string, core_addr_to_string, core_addr_to_string_nz)
7451 (hex_string, hex_string_custom): Don't declare.
7452 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7453 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7454 (hex_string_custom, int_string, core_addr_to_string)
7455 (core_addr_to_string_nz, host_address_to_string): Move to
7456 common/print-utils.c.
7457 * common/print-utils.h: New file.
7458 * common/print-utils.c: New file
7459 * Makefile.in (SFILES): Add common/print-utils.c.
7460 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7461 (COMMON_OBS): Add print-utils.o.
7462 (print-utils.o): New target.
7464 2014-02-12 Tom Tromey <tromey@redhat.com>
7466 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7468 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7470 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7472 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7474 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7475 if a PT_IO ptrace request returns sucessfully but indicates that 0
7476 bytes were transferred.
7478 2014-02-12 Pedro Alves <palves@redhat.com>
7479 Kevin Buettner <kevinb@redhat.com>
7481 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7482 TYPE_INSTANCE_FLAG_CODE_SPACE.
7484 2014-02-12 Pedro Alves <palves@redhat.com>
7486 * h8300-tdep.c (pseudo_from_raw_register)
7487 (raw_from_pseudo_register): New functions.
7488 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7491 2014-02-12 Pedro Alves <palves@redhat.com>
7493 * h8300-tdep.c (h8300_register_sim_regno): New function.
7494 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7495 gdbarch_register_sim_regno hook.
7497 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7499 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7501 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7503 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7505 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7507 * obsd-tdep.h (obsd_init_abi): New prototype.
7508 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7509 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7510 (obsd_init_abi): New functions.
7511 * i386obsd-tdep.c: Include "obsd-tdep.h".
7512 (i386obsd_init_abi): Call obsd_init_abi.
7513 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7514 (amd64obsd_init_abi): Call obsd_init_abi.
7515 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7516 obsd-tdep.c to gdb_target_obs.
7518 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7520 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7521 double float arguments to 16-byte in the argument slots.
7523 2014-02-11 Doug Evans <xdje42@gmail.com>
7525 * configure.ac: Don't crash if pkg-config is not found and guile
7526 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7528 * configure: Regenerate.
7530 2014-02-11 Yao Qi <yao@codesourcery.com>
7532 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7533 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7534 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7535 * gnu-nat.c (gnu_xfer_memory): Likewise.
7536 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7537 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7538 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7539 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7541 2014-02-11 Yao Qi <yao@codesourcery.com>
7543 * target.h (enum target_xfer_error): Rename to ...
7544 (enum target_xfer_status): ... it. New. All users updated.
7545 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7547 (TARGET_XFER_STATUS_ERROR_P): New macro.
7548 (target_xfer_error_to_string): Remove declaration.
7549 (target_xfer_status_to_string): Declare.
7550 (target_xfer_partial_ftype): Adjust it.
7551 (struct target_ops) <to_xfer_partial>: Return
7552 target_xfer_status. Add argument xfered_len. Update
7554 * target.c (target_xfer_error_to_string): Rename to ...
7555 (target_xfer_status_to_string): ... it. New. All callers
7557 (target_read_live_memory): Likewise. Call target_xfer_partial
7558 instead of target_read.
7559 (memory_xfer_live_readonly_partial): Return
7560 target_xfer_status. Add argument xfered_len.
7561 (raw_memory_xfer_partial): Likewise.
7562 (memory_xfer_partial_1): Likewise.
7563 (memory_xfer_partial): Likewise.
7564 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7565 properly. Update debug message.
7566 (default_xfer_partial, current_xfer_partial): Likewise.
7567 (target_write_partial): Likewise.
7568 (target_read_partial): Likewise. All callers updated.
7569 (read_whatever_is_readable): Likewise.
7570 (target_write_with_progress): Likewise.
7571 (target_read_alloc_1): Likewise.
7573 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7574 * auxv.c (procfs_xfer_auxv): Likewise.
7575 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7576 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7577 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7578 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7579 * corefile.c (read_memory): Adjust.
7580 * corelow.c (core_xfer_partial): Likewise.
7581 * ctf.c (ctf_xfer_partial): Likewise.
7582 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7584 (darwin_xfer_partial): Likewise.
7585 * exec.c (section_table_xfer_memory_partial): Likewise. All
7587 (exec_xfer_partial): Likewise.
7588 * exec.h (section_table_xfer_memory_partial): Update
7590 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7592 (gnu_xfer_partial): Likewise.
7593 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7594 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7595 (ia64_hpux_xfer_solib_got): Likewise.
7596 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7597 type of 'partial_len' to ULONGEST.
7598 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7599 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7600 (linux_nat_xfer_partial): Likewise.
7601 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7602 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7603 * monitor.c (monitor_xfer_memory): Likewise.
7604 (monitor_xfer_partial): Likewise.
7605 * procfs.c (procfs_xfer_partial): Likewise.
7606 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7607 * record-full.c (record_full_xfer_partial): Likewise.
7608 (record_full_core_xfer_partial): Likewise.
7609 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7610 (gdbsim_xfer_partial): Likewise.
7611 * remote.c (remote_write_bytes_aux): Likewise. All callers
7613 (remote_write_bytes, remote_read_bytes): Likewise. All
7615 (remote_flash_erase): Likewise. All callers updated.
7616 (remote_write_qxfer): Likewise. All callers updated.
7617 (remote_read_qxfer): Likewise. All callers updated.
7618 (remote_xfer_partial): Likewise.
7619 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7620 (rs6000_xfer_shared_libraries): Likewise.
7621 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7622 (sol_thread_xfer_partial): Likewise.
7623 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7624 (sparc_xfer_partial): Likewise.
7625 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7627 (spu_xfer_partial): Likewise.
7628 * spu-multiarch.c (spu_xfer_partial): Likewise.
7629 * tracepoint.c (tfile_xfer_partial): Likewise.
7630 * windows-nat.c (windows_xfer_memory): Likewise.
7631 (windows_xfer_shared_libraries): Likewise.
7632 (windows_xfer_partial): Likewise.
7633 * valprint.c: Replace 'target_xfer_error' with
7634 'target_xfer_status' in comments.
7636 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7638 Checked in by Joel Brobecker <brobecker@adacore.com>.
7639 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7641 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7643 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7644 function parameters.
7646 2014-02-10 Will Newton <will.newton@linaro.org>
7648 * elfread.c (elf_rel_plt_read): Look for a .got section if
7649 looking up .got.plt fails.
7650 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7651 on address passed to elf_gnu_ifunc_record_cache.
7652 (elf_gnu_ifunc_resolve_addr): Likewise.
7653 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7655 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7657 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7658 (X_RETTURN): New macro.
7659 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7661 * sparc64-tdep.c (sparc64_init_abi): Hook
7662 sparc_in_function_epilogue_p.
7664 2014-02-10 Gary Benson <gbenson@redhat.com>
7666 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7667 Rename name_matcher to symbol_matcher.
7669 2014-02-10 Gary Benson <gbenson@redhat.com>
7671 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7672 Use expand_symtabs_file_matcher_ftype and
7673 expand_symtabs_symbol_matcher_ftype.
7675 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7677 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7678 (struct ada_symbol_cache): New.
7679 (ada_free_symbol_cache): Forward declare.
7680 (struct ada_pspace_data): New.
7681 (ada_pspace_data_handle): New static global.
7682 (get_ada_pspace_data, ada_pspace_data_cleanup)
7683 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7684 (cache_space, cache): Delete, now folded inside struct
7686 (ada_get_symbol_cache): New function.
7687 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7689 (_initialize_ada_language): Remove initialization of cache_space.
7690 Move call to observer_attach_inferior_exit up, grouping it
7691 with the other observer registrations inside this function.
7692 Rename command to be more general. Add call to
7693 register_program_space_data_with_cleanup.
7695 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7697 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7698 ada_new_objfile_observer.
7699 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7700 (_initialize_tasks): Update uses of ada_new_objfile_observer
7701 and ada_tasks_normal_stop_observer.
7703 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7705 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7706 returned by the 'Length attribute to integer.
7708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7710 * ada-lang.c (_initialize_ada_language): Initialize
7711 cache_space obstack.
7713 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7715 * ada-lang.c (HASH_SIZE): New macro.
7716 (struct cache_entry): New type.
7717 (cache_space, cache): New static globals.
7718 (ada_clear_symbol_cache, find_entry): New functions.
7719 (lookup_cached_symbol, cache_symbol): Implement.
7720 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7721 (_initialize_ada_language): Attach ada_new_objfile_observer
7722 and ada_free_objfile_observer.
7724 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7726 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7727 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7728 struct block * parameter.
7729 (ada_lookup_symbol_list_worker): Constify local variable "block".
7730 Remove cast which is no longer necessary.
7732 2014-02-10 Doug Evans <xdje42@gmail.com>
7734 Add Guile as an extension language.
7735 * NEWS: Mention Guile scripting.
7736 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7737 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7738 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7739 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7740 (CLIBS): Add GUILE_LIBS.
7741 (install-guile): New rule.
7742 (guile.o): New rule.
7743 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7744 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7745 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7746 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7747 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7748 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7749 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7750 * configure.ac: New option --with-guile.
7751 * configure: Regenerate.
7752 * config.in: Regenerate.
7753 * auto-load.c: Remove #include "python/python.h". Add #include
7754 "gdb/section-scripts.h".
7755 (source_section_scripts): Handle Guile scripts.
7756 (_initialize_auto_load): Add name of Guile objfile script to
7757 scripts-directory help text.
7758 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7759 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7760 (struct breakpoint): New member scm_bp_object.
7761 * defs.h (enum command_control_type): New value guile_control.
7762 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7764 (show_user): Update comment.
7765 (_initialize_cli_cmds): Update help text for "show user". Update help
7766 text for max-user-call-depth.
7767 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7769 (multi_line_command_p): Add guile_control.
7770 (print_command_lines): Handle guile_control.
7771 (execute_control_command, recurse_read_control_structure): Ditto.
7772 (process_next_line): Recognize "guile" commands.
7773 * disasm.c (gdb_disassemble_info): Make non-static.
7774 * disasm.h: #include "dis-asm.h".
7775 (struct gdbarch): Add forward decl.
7776 (gdb_disassemble_info): Declare.
7777 * extension.c: #include "guile/guile.h".
7778 (extension_languages): Add guile.
7779 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7780 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7781 * gdbtypes.c (get_unsigned_type_max): New function.
7782 (get_signed_type_minmax): New function.
7783 * gdbtypes.h (get_unsigned_type_max): Declare.
7784 (get_signed_type_minmax): Declare.
7785 * guile/README: New file.
7786 * guile/guile-internal.h: New file.
7787 * guile/guile.c: New file.
7788 * guile/guile.h: New file.
7789 * guile/scm-arch.c: New file.
7790 * guile/scm-auto-load.c: New file.
7791 * guile/scm-block.c: New file.
7792 * guile/scm-breakpoint.c: New file.
7793 * guile/scm-disasm.c: New file.
7794 * guile/scm-exception.c: New file.
7795 * guile/scm-frame.c: New file.
7796 * guile/scm-gsmob.c: New file.
7797 * guile/scm-iterator.c: New file.
7798 * guile/scm-lazy-string.c: New file.
7799 * guile/scm-math.c: New file.
7800 * guile/scm-objfile.c: New file.
7801 * guile/scm-ports.c: New file.
7802 * guile/scm-pretty-print.c: New file.
7803 * guile/scm-safe-call.c: New file.
7804 * guile/scm-string.c: New file.
7805 * guile/scm-symbol.c: New file.
7806 * guile/scm-symtab.c: New file.
7807 * guile/scm-type.c: New file.
7808 * guile/scm-utils.c: New file.
7809 * guile/scm-value.c: New file.
7810 * guile/lib/gdb.scm: New file.
7811 * guile/lib/gdb/boot.scm: New file.
7812 * guile/lib/gdb/experimental.scm: New file.
7813 * guile/lib/gdb/init.scm: New file.
7814 * guile/lib/gdb/iterator.scm: New file.
7815 * guile/lib/gdb/printing.scm: New file.
7816 * guile/lib/gdb/types.scm: New file.
7817 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7818 (VPATH): Add $(GUILE_SRCDIR).
7819 (GUILE_DIR): New variable.
7820 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7821 (all): Add stamp-guile dependency.
7822 (stamp-guile): New rule.
7823 (clean-guile, install-guile, uninstall-guile): New rules.
7824 (install-only): Add install-guile dependency.
7825 (uninstall): Add uninstall-guile dependency.
7826 (clean): Add clean-guile dependency.
7828 2014-02-09 Doug Evans <xdje42@gmail.com>
7830 Revert this patch (which I approved, mea culpa).
7832 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7834 * Makefile.in (all-lib): Remove.
7835 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7837 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7839 Fix Python stack corruption.
7840 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7843 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7845 * Makefile.in (all-lib): Remove.
7846 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7848 2014-02-07 Doug Evans <dje@google.com>
7850 * extension-priv.h (extension_language_script_ops): Add comment.
7851 (extension_language_ops): Add comment.
7852 (active_ext_lang_state): Fix typo in comment.
7854 2014-02-07 Pedro Alves <palves@redhat.com>
7856 PR breakpoints/16292
7857 * infrun.c (handle_signal_stop) <signal arrives while stepping
7858 over a breakpoint>: Switch back to the stepping thread.
7860 2014-02-07 Yao Qi <yao@codesourcery.com>
7862 * target.c (target_xfer_partial): Return zero if LEN is zero.
7864 2014-02-07 Yao Qi <yao@codesourcery.com>
7866 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7867 (ld_so_xfer_auxv): Likewise.
7868 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7869 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7870 * corelow.c (core_xfer_partial): Likewise.
7871 * ctf.c (ctf_xfer_partial): Likewise.
7872 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7873 (darwin_xfer_partial): Likewise.
7874 * exec.c (exec_xfer_partial): Likewise.
7875 * gnu-nat.c (gnu_xfer_partial): Likewise.
7876 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7877 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7878 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7879 * linux-nat.c (linux_xfer_siginfo): Likewise.
7880 (linux_proc_xfer_spu): Likewise.
7881 * procfs.c (procfs_xfer_partial): Likewise.
7882 * record-full.c (record_full_xfer_partial): Likewise.
7883 (record_full_core_xfer_partial): Likewise.
7884 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7885 * remote.c (remote_write_qxfer): Likewise.
7886 (remote_write_qxfer, remote_read_qxfer): Likewise.
7887 (remote_xfer_partial): Likewise.
7888 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7889 (rs6000_xfer_shared_libraries): Likewise.
7890 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7891 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7892 (spu_xfer_partial): Likewise.
7893 * target.c (memory_xfer_partial_1): Likewise.
7894 * tracepoint.c (tfile_xfer_partial): Likewise.
7895 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7896 (windows_xfer_partial): Likewise.
7898 2014-02-07 Yao Qi <yao@codesourcery.com>
7900 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7902 (core_xfer_shared_libraries_aix): Likewise.
7903 * gdbarch.c, gdbarch.h: Regenerated.
7904 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7905 ULONGEST. Change 'len_avail' type to ULONGEST.
7906 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7907 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7909 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7911 2014-02-07 Yao Qi <yao@codesourcery.com>
7913 * corefile.c (memory_error): Get 'exception' from ERR and pass
7914 'exception' to throw_error.
7916 2014-02-06 Doug Evans <xdje42@gmail.com>
7918 * configure.ac (libpython checking): Remove all but python.o from
7919 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7920 * configure: Regenerate.
7922 * Makefile.in (SFILES): Add extension.c.
7923 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7924 (COMMON_OBS): Add extension.o.
7925 * extension.h: New file.
7926 * extension-priv.h: New file.
7927 * extension.c: New file.
7929 * python/python-internal.h: #include "extension.h".
7930 (gdbpy_auto_load_enabled): Declare.
7931 (gdbpy_apply_val_pretty_printer): Declare.
7932 (gdbpy_apply_frame_filter): Declare.
7933 (gdbpy_preserve_values): Declare.
7934 (gdbpy_breakpoint_cond_says_stop): Declare.
7935 (gdbpy_breakpoint_has_cond): Declare.
7936 (void source_python_script_for_objfile): Delete.
7937 * python/python.c: #include "extension-priv.h".
7938 Delete inclusion of "observer.h".
7939 (extension_language_python): Moved here and renamed from
7940 script_language_python in py-auto-load.c.
7941 Redefined to be of type extension_language_defn.
7942 (python_extension_script_ops): New global.
7943 (python_extension_ops): New global.
7944 (struct python_env): New member previous_active.
7945 (restore_python_env): Call restore_active_ext_lang.
7946 (ensure_python_env): Call set_active_ext_lang.
7947 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7949 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7951 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7953 (gdbpy_eval_from_control_command): Renamed from
7954 eval_python_from_control_command, made static. New arg extlang.
7955 (gdbpy_source_script) Renamed from source_python_script, made static.
7957 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7958 result to int. New arg extlang.
7959 (gdbpy_source_objfile_script): Renamed from
7960 source_python_script_for_objfile, made static. New arg extlang.
7961 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7962 static. New args extlang, extlang_printers. Change result type to
7964 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7965 static. New arg extlang. Rename arg printers to extlang_printers
7966 and change type to ext_lang_type_printers *.
7967 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7968 static. Replace argument arg with extlang, extlang_printers.
7969 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7970 (!HAVE_PYTHON, source_python_script): Delete.
7971 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7972 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7973 (!HAVE_PYTHON, start_type_printers): Delete.
7974 (!HAVE_PYTHON, apply_type_printers): Delete.
7975 (!HAVE_PYTHON, free_type_printers): Delete.
7976 (_initialize_python): Delete call to observer_attach_before_prompt.
7977 (finalize_python): Set/restore active extension language.
7978 (gdbpy_finish_initialization) Renamed from
7979 finish_python_initialization, made static. New arg extlang.
7980 (gdbpy_initialized): New function.
7981 * python/python.h: #include "extension.h". Delete #include
7982 "value.h", "mi/mi-cmds.h".
7983 (extension_language_python): Declare.
7984 (GDBPY_AUTO_FILE_NAME): Delete.
7985 (enum py_bt_status): Moved to extension.h and renamed to
7987 (enum frame_filter_flags): Moved to extension.h.
7988 (enum py_frame_args): Moved to extension.h and renamed to
7989 ext_lang_frame_args.
7990 (finish_python_initialization): Delete.
7991 (eval_python_from_control_command): Delete.
7992 (source_python_script): Delete.
7993 (apply_val_pretty_printer): Delete.
7994 (apply_frame_filter): Delete.
7995 (preserve_python_values): Delete.
7996 (gdbpy_script_language_defn): Delete.
7997 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7998 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8000 * auto-load.c: #include "extension.h".
8001 (GDB_AUTO_FILE_NAME): Delete.
8002 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8003 (script_language_gdb): Delete, moved to extension.c and renamed to
8004 extension_language_gdb.
8005 (source_gdb_script_for_objfile): Delete.
8006 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8007 (loaded_script): Change type of language member to
8008 struct extension_language_defn *.
8009 (init_loaded_scripts_info): Initialize
8010 unsupported_script_warning_printed.
8011 (maybe_add_script): Make static. Change type of language arg to
8012 struct extension_language_defn *.
8013 (clear_section_scripts): Reset unsupported_script_warning_printed.
8014 (auto_load_objfile_script_1): Rewrite to use extension language API.
8015 (auto_load_objfile_script): Make public. Remove support-compiled-in
8016 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8017 (source_section_scripts): Rewrite to use extension language API.
8018 (load_auto_scripts_for_objfile): Rewrite to use
8019 auto_load_scripts_for_objfile.
8020 (collect_matching_scripts_data): Change type of language member to
8021 struct extension_language_defn *.
8022 (auto_load_info_scripts): Change type of language arg to
8023 struct extension_language_defn *.
8024 (unsupported_script_warning_print): New function.
8025 (script_not_found_warning_print): Make static.
8026 (_initialize_auto_load): Rewrite construction of scripts-directory
8028 * auto-load.h (struct objfile): Add forward decl.
8029 (struct script_language): Delete.
8030 (struct auto_load_pspace_info): Add forward decl.
8031 (struct extension_language_defn): Add forward decl.
8032 (maybe_add_script): Delete.
8033 (auto_load_objfile_script): Declare.
8034 (script_not_found_warning_print): Delete.
8035 (auto_load_info_scripts): Update prototype.
8036 (auto_load_gdb_scripts_enabled): Declare.
8037 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8038 auto_load_python_scripts_enabled and made public.
8039 (script_language_python): Delete, moved to python.c.
8040 (gdbpy_script_language_defn): Delete.
8041 (info_auto_load_python_scripts): Update to use
8042 extension_language_python.
8044 * breakpoint.c (condition_command): Replace call to
8045 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8046 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8047 with call to breakpoint_ext_lang_cond_says_stop.
8048 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8049 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8050 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8051 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8053 (local_setattro): Print name of extension language with existing
8056 * valprint.c (val_print, value_print): Update to call
8057 apply_ext_lang_val_pretty_printer.
8058 * cp-valprint.c (cp_print_value): Update call to
8059 apply_ext_lang_val_pretty_printer.
8060 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8061 (gdbpy_apply_val_pretty_printer): Renamed from
8062 apply_val_pretty_printer. New arg extlang.
8063 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8065 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8066 extension language API.
8067 * cli/cli-script.c (execute_control_command): Update to call
8068 eval_ext_lang_from_control_command.
8070 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8071 enum ext_lang_bt_status values. Update call to
8072 apply_ext_lang_frame_filter.
8073 (mi_cmd_stack_list_locals): Ditto.
8074 (mi_cmd_stack_list_args): Ditto.
8075 (mi_cmd_stack_list_variables): Ditto.
8076 * mi/mi-main.c: Delete #include "python/python-internal.h".
8077 Add #include "extension.h".
8078 (mi_cmd_list_features): Replace reference to python internal variable
8079 gdb_python_initialized with call to ext_lang_initialized_p.
8081 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8082 Update to use enum ext_lang_frame_args. Update to call
8083 apply_ext_lang_frame_filter.
8084 * python/py-framefilter.c (extract_sym): Update to use enum
8086 (extract_value, py_print_type, py_print_value): Ditto.
8087 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8088 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8089 (py_print_frame): Ditto.
8090 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8091 New arg extlang. Update to use enum ext_lang_bt_status.
8093 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8094 finish_python_initialization. Replace with call to
8095 finish_ext_lang_initialization.
8097 * typeprint.c (do_free_global_table): Update to call
8098 free_ext_lang_type_printers.
8099 (create_global_typedef_table): Update to call
8100 start_ext_lang_type_printers.
8101 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8102 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8103 (type_print_options): Change type of global_printers from "void *"
8104 to "struct ext_lang_type_printers *".
8106 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8107 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8108 (gdbpy_preserve_values): Renamed from preserve_python_values.
8110 (!HAVE_PYTHON, preserve_python_values): Delete.
8112 * utils.c (quit_flag): Delete, moved to extension.c.
8113 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8116 * eval.c: Delete #include "python/python.h".
8117 * main.c: Delete #include "python/python.h".
8119 * defs.h: Update comment.
8121 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8125 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8127 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8130 2014-02-05 Yao Qi <yao@codesourcery.com>
8132 * remote.c (remote_pass_signals): Remove local 'buf' and use
8134 (remote_program_signals): Likewise.
8136 2014-02-05 Yao Qi <yao@codesourcery.com>
8138 * ctf.c: Include "inferior.h" and "gdbthread.h".
8139 (CTF_PID): A new macro.
8140 (ctf_open): Call inferior_appeared and add_thread_silent.
8141 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8142 (ctf_thread_alive): New function.
8143 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8145 2014-02-05 Yao Qi <yao@codesourcery.com>
8149 2013-05-24 Yao Qi <yao@codesourcery.com>
8151 * tracepoint.c (TFILE_PID): Remove.
8152 (tfile_open): Don't add thread and inferior.
8153 (tfile_close): Don't set 'inferior_ptid'. Don't call
8154 exit_inferior_silent.
8155 (tfile_thread_alive): Remove.
8156 (init_tfile_ops): Don't set field 'to_thread_alive' of
8159 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8161 * remote.c (remote_start_remote): Call remote_check_symbols even
8162 if only symbol-file (not file) has been given.
8164 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8166 * gdbarch.sh (skip_entrypoint): New callback.
8167 * gdbarch.c, gdbarch.h: Regenerate.
8168 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8169 * infrun.c (fill_in_stop_func): Likewise.
8170 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8171 (ppc_elfv2_elf_make_msymbol_special): New function.
8172 (ppc_elfv2_skip_entrypoint): Likewise.
8173 (ppc_linux_init_abi): Install them for ELFv2.
8175 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8177 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8178 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8179 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8180 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8181 structures returned in GPRs.
8183 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8185 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8186 offset to the stack parameter list for the ELFv2 ABI.
8188 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8190 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8191 set_gdbarch_convert_from_func_ptr_addr and
8192 set_gdbarch_elf_make_msymbol_special for ELFv1.
8193 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8194 function descriptors on ELFv1.
8195 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8196 set up r12 at function entry.
8198 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8200 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8201 (struct gdbarch_tdep): New member elf_abi.
8203 * rs6000-tdep.c: Include "elf/ppc64.h".
8204 (rs6000_gdbarch_init): Detect ELF ABI version.
8206 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8208 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8209 within a register pair holding a DFP 128-bit value on little-endian.
8210 (ppc64_sysv_abi_return_value_base): Likewise.
8211 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8212 (dfp_pseudo_register_write): Likewise.
8214 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8216 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8217 offset on little-endian when passing _Decimal32.
8218 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8220 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8222 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8223 of the overlapped FP register within the VSX register on little-
8225 (efpr_pseudo_register_write): Likewise.
8227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8229 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8230 offset on little-endian when passing small structures.
8232 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8234 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8235 (struct ppc64_sysv_argpos): New data structure.
8236 (ppc64_sysv_abi_push_float): Remove.
8237 (ppc64_sysv_abi_push_val): New function.
8238 (ppc64_sysv_abi_push_integer): Likewise.
8239 (ppc64_sysv_abi_push_freg): Likewise.
8240 (ppc64_sysv_abi_push_vreg): Likewise.
8241 (ppc64_sysv_abi_push_param): Likewise.
8242 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8243 (ppc64_sysv_abi_return_value_base): New function.
8244 (ppc64_sysv_abi_return_value): Refactor to use it.
8246 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8248 * NEWS: Document new target powerpc64le-*-linux*.
8250 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8252 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8253 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8255 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8256 register set used in ELF core dumps. Add floating-point register set.
8258 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8260 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8261 dwarf2_to_gdb[] table using symbolic constants. Adjust
8262 penultimate entry from number representing the PC register
8263 to symbolic constant representing the MDR register. Add
8264 constant for the PC register to the end of the table.
8266 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8268 * bsd-kvm.c: Include <sys/param.h>
8270 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8272 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8274 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8276 * ada-lang.h (clear_ada_sym_cache): Delete.
8278 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8280 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8282 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8284 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8285 the sigreturn register save area only if the syscall is
8288 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8290 * valops.c (value_slice): Minor reformatting.
8292 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8294 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8296 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8298 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8300 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8301 (ada_ignore_descriptive_types_p): New static global.
8302 (find_parallel_type_by_descriptive_type): Return immediately
8303 if ada_ignore_descriptive_types_p is set.
8304 (_initialize_ada_language): Register new commands "maintenance
8305 set ada", "maintenance show ada", "maintenance set ada
8306 ignore-descriptive-types" and "maintenance show ada
8307 ignore-descriptive-types".
8308 * NEWS: Add entry for new "maint ada set/show
8309 ignore-descriptive-types" commands.
8311 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8313 * record-btrace.c (record_btrace_close): Call btrace_teardown
8316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8318 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8321 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8323 * ada-typeprint (type_is_full_subrange_of_target_type):
8325 (print_range): Add parameter bounds_prefered_p. If not set,
8326 try printing range types using the name of their base type.
8327 (print_range_type): Add parameter bounds_prefered_p.
8328 Use it in call to print_range.
8329 (print_array_type, ada_print_type): Update calls to print_range
8330 and print_range_type.
8332 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8334 * ada-typeprint.c (print_array_type, print_choices, print_range)
8335 (print_range_bound, print_dynamic_range_bound, print_range_type):
8338 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8340 * ada-typeprint.c (print_range): Add missing empty line
8341 after local declaration.
8343 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8345 * ada-valprint.c (print_optional_low_bound): Get index_type's
8346 target type for as long as it is a TYPE_CODE_RANGE.
8348 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8350 * procfs.c (procfs_make_note_section): Remove assertion and
8353 2014-01-24 Yao Qi <yao@codesourcery.com>
8355 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8356 * corelow.c (get_core_siginfo): Likewise.
8358 2014-01-24 Yao Qi <yao@codesourcery.com>
8360 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8361 ULONGEST. Don't check 'len' is negative.
8362 (remote_write_bytes): Change type of 'len' to ULONGEST.
8364 2014-01-23 Tom Tromey <tromey@redhat.com>
8367 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8368 Handle exception from frame.block.
8369 (FrameVars.fetch_frame_locals): Likewise.
8371 2014-01-23 Tom Tromey <tromey@redhat.com>
8374 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8375 on a NULL pointer. Move "goto error" to correct place.
8377 2014-01-23 Tom Tromey <tromey@redhat.com>
8380 * python/py-framefilter.c (apply_frame_filter): Call
8381 ensure_python_env after computing gdbarch.
8383 2014-01-23 Yao Qi <yao@codesourcery.com>
8385 * target.c (raw_memory_xfer_partial): Change argument type
8386 from void * to gdb_byte *.
8387 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8389 2014-01-22 Doug Evans <dje@google.com>
8391 New gdbserver option --debug-format=timestamp.
8394 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8396 * syscalls/s390x-linux.xml: New file.
8397 * syscalls/s390-linux.xml: New file.
8398 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8399 (XML_SYSCALL_FILENAME_S390X): Likewise.
8400 (op_svc): New enum value for SVC opcode.
8401 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8402 (s390_linux_get_syscall_number): New function.
8403 (s390_gdbarch_init): Register '*get_syscall_number' and the
8404 syscall xml file name.
8405 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8406 "s390-linux.xml" and "s390x-linux.xml".
8407 * NEWS: Announce new feature.
8409 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8411 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8413 2014-01-22 Pedro Alves <palves@redhat.com>
8415 * xtensa-config.c: Include defs.h.
8417 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8419 * common/common-utils.h: Add "ARI:" comment beside __func__
8422 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8424 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8425 documentation a bit.
8427 2014-01-21 Roland McGrath <mcgrathr@google.com>
8429 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8430 * configure: Regenerate.
8431 * aclocal.m4: Regenerate.
8432 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8433 New substituted variables.
8434 (install-strip): New target.
8435 (INSTALL_SCRIPT): New substituted variable.
8436 (FLAGS_TO_PASS): Add it.
8437 (install-only): Use $(INSTALL_SCRIPT) rather than
8438 $(INSTALL_PROGRAM) for gcore.
8440 2014-01-20 Tom Tromey <tromey@redhat.com>
8442 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8445 2014-01-20 Tom Tromey <tromey@redhat.com>
8447 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8448 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8449 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8450 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8451 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8452 (struct cmd_list_element) <flags>: Remove.
8453 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8454 doc_allocated>: New fields.
8455 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8457 * maint.c (maintenance_do_deprecate): Update.
8458 * top.c (execute_command): Update.
8460 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8462 * xtensa-linux-nat.c: Include asm/ptrace.h.
8464 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8466 * Makefile.in (SFILES): Add d-support.c.
8467 (COMMON_OBS): Add d-support.o.
8468 * d-lang.h (d_parse_symbol): Add comment, now defined in
8470 * d-lang.c (parse_call_convention)
8471 (parse_attributes, parse_function_types)
8472 (parse_function_args, parse_type, parse_identifier)
8473 (call_convention_p, d_parse_symbol): Move functions to ...
8474 * d-support.c: ... New file.
8476 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8478 * d-lang.h (d_parse_symbol): Add declaration.
8479 * d-lang.c (extract_identifiers)
8480 (extract_type_info): Remove functions.
8481 (parse_call_convention, parse_attributes)
8482 (parse_function_types, parse_function_args)
8483 (parse_type, parse_identifier, call_convention_p)
8484 (d_parse_symbol): New functions.
8485 (d_demangle): Use d_parse_symbol to demangle D symbols.
8487 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8489 * d-lang.h (struct builtin_d_type): New data type.
8490 (builtin_d_type): Add declaration.
8491 * d-lang.c (d_language_arch_info, build_d_types)
8492 (builtin_d_type): New functions.
8493 (enum d_primitive_types): New data type.
8494 (d_language_defn): Change c_language_arch_info to
8495 d_language_arch_info.
8496 (d_type_data): New static variable.
8497 (_initialize_d_language): Initialize d_type_data.
8499 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8501 * d-lang.h (d_main_name): Add declaration.
8502 * d-lang.c (d_main_name): New function.
8503 * symtab.c (find_main_name): Add call to d_main_name.
8505 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8507 * d-lang.c (d_language_defn): Change macro_expansion_c to
8510 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8512 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8514 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8516 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8517 gdb_exception" declaration.
8518 * remote.c (getpkt_or_notif_sane): Likewise.
8520 2014-01-17 Doug Evans <dje@google.com>
8522 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8523 function, contents of dirnames_to_char_ptr_vec_append moved here.
8524 (delim_string_to_char_ptr_vec): New function.
8525 (dirnames_to_char_ptr_vec_append): Rewrite.
8526 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8528 2014-01-17 Doug Evans <dje@google.com>
8530 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8532 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8533 #include "common-utils.h".
8534 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8535 * common/vec.h (VEC_ASSERT_PASS): Update.
8536 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8537 (MACH_CHECK_ERROR): Update.
8539 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8541 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8543 * gdbarch.h: Regenerate.
8545 2014-01-16 Tom Tromey <tromey@redhat.com>
8547 * value.c (struct value) <regnum>: Move earlier.
8549 2014-01-16 Tom Tromey <tromey@redhat.com>
8551 * remote.c (extended_remote_create_inferior): Rename from
8552 extended_remote_create_inferior_1. Add "ops" argument. Remove
8555 2014-01-16 Pedro Alves <palves@redhat.com>
8557 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8558 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8561 2014-01-16 Doug Evans <dje@google.com>
8563 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8567 * btrace.h (btrace_thread_flag): New.
8568 (struct btrace_thread_info) <flags>: New.
8569 * record-btrace.c (record_btrace_resume_thread)
8570 (record_btrace_find_thread_to_move, btrace_step_no_history)
8571 (btrace_step_stopped, record_btrace_start_replaying)
8572 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8573 (record_btrace_find_resume_thread): New.
8574 (record_btrace_resume, record_btrace_wait): Extend.
8575 (record_btrace_can_execute_reverse): New.
8576 (record_btrace_open): Fail in non-stop mode.
8577 (record_btrace_set_replay): Split into this, ...
8578 (record_btrace_stop_replaying): ... this, ...
8579 (record_btrace_clear_histories): ... and this.
8580 (init_record_btrace_ops): Init to_can_execute_reverse.
8581 * NEWS: Announce it.
8583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8585 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8586 (forward_target_decr_pc_after_break)
8587 (target_decr_pc_after_break): New.
8588 * target.c (forward_target_decr_pc_after_break)
8589 (target_decr_pc_after_break): New.
8590 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8591 instead of gdbarch_decr_pc_after_break.
8592 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8593 instead of gdbarch_decr_pc_after_break.
8594 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8595 instead of gdbarch_decr_pc_after_break.
8596 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8597 instead of gdbarch_decr_pc_after_break.
8598 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8599 instead of gdbarch_decr_pc_after_break.
8600 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8601 instead of gdbarch_decr_pc_after_break.
8603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8605 * btrace.c: Include regcache.h.
8606 (btrace_add_pc): New.
8607 (btrace_enable): Call btrace_add_pc.
8608 (btrace_is_empty): New.
8609 * btrace.h (btrace_is_empty): New.
8610 * record-btrace.c (require_btrace, record_btrace_info): Call
8613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8615 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8616 Support delta reads.
8617 (linux_disable_btrace): Change return type.
8618 * common/linux-btrace.h (linux_read_btrace): Change parameters
8619 and return type to allow error reporting. Update users.
8620 (linux_disable_btrace): Change return type. Update users.
8621 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8623 (btrace_error): New.
8624 (btrace_block) <begin>: Comment on BEGIN == 0.
8625 * btrace.c (btrace_compute_ftrace): Start from the end of
8627 (btrace_stitch_trace, btrace_clear_history): New.
8628 (btrace_fetch): Read delta trace, return if replaying.
8629 (btrace_clear): Move clear history code to btrace_clear_history.
8630 (parse_xml_btrace): Throw an error if parsing failed.
8631 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8632 and return type to allow error reporting.
8633 (target_read_btrace): Change parameters and return type to allow
8635 * target.c (target_read_btrace): Update.
8636 * remote.c (remote_read_btrace): Support delta reads. Pass
8638 * NEWS: Announce it.
8640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8642 * record.h (record_btrace_frame_unwind)
8643 (record_btrace_tailcall_frame_unwind): New declarations.
8644 * dwarf2-frame: Include record.h
8645 (dwarf2_frame_cfa): Throw an error for btrace frames.
8646 * record-btrace.c: Include hashtab.h.
8647 (btrace_get_bfun_name): New.
8648 (btrace_call_history): Call btrace_get_bfun_name.
8649 (struct btrace_frame_cache): New.
8651 (bfcache_hash, bfcache_eq, bfcache_new): New.
8652 (btrace_get_frame_function): New.
8653 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8654 (record_btrace_frame_this_id): Compute own id.
8655 (record_btrace_frame_prev_register): Provide PC, throw_error
8656 for all other registers.
8657 (record_btrace_frame_sniffer): Detect btrace frames.
8658 (record_btrace_tailcall_frame_sniffer): New.
8659 (record_btrace_frame_dealloc_cache): New.
8660 (record_btrace_frame_unwind): Add new functions.
8661 (record_btrace_tailcall_frame_unwind): New.
8662 (_initialize_record_btrace): Allocate cache.
8663 * btrace.c (btrace_clear): Call reinit_frame_cache.
8664 * NEWS: Announce it.
8666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8668 * record-btrace.c (record_btrace_set_replay)
8669 (record_btrace_goto_begin, record_btrace_goto_end)
8670 (record_btrace_goto): New.
8671 (init_record_btrace_ops): Initialize them.
8672 * NEWS: Announce it.
8674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8676 * record-btrace.c (record_btrace_find_new_threads)
8677 (record_btrace_thread_alive): New.
8678 (init_record_btrace_ops): Initialize to_find_new_threads and
8681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8683 * record-btrace.c (record_btrace_resume): New.
8684 (record_btrace_wait): New.
8685 (init_record_btrace_ops): Initialize to_wait and to_resume.
8687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8689 * record-btrace.c (record_btrace_xfer_partial)
8690 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8691 (record_btrace_allow_memory_access): New.
8692 (init_record_btrace_ops): Initialize new methods.
8693 * target.c (raw_memory_xfer_partial): Bail out if target reports
8694 that this memory is not available.
8696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8698 * target.h (target_ops) <to_insert_breakpoint>
8699 <to_remove_breakpoint>: Add target_ops parameter.
8700 (forward_target_insert_breakpoint): New.
8701 (forward_target_remove_breakpoint): New.
8702 (memory_remove_breakpoint, memory_insert_breakpoint):
8703 Add target_ops parameter.
8704 * target.c (target_insert_breakpoint): Split into this and ...
8705 (forward_target_insert_breakpoint): ... this.
8706 (target_remove_breakpoint): Split into this and ...
8707 (forward_target_remove_breakpoint): ... this.
8708 (debug_to_insert_breakpoint): Add target_ops parameter.
8709 Call forward_target_insert_breakpoint.
8710 (debug_to_remove_breakpoint): Add target_ops parameter.
8711 Call forward_target_remove_breakpoint.
8712 (update_current_target): Do not inherit or default to_insert_breakpoint
8713 and to_remove_breakpoint.
8714 * corelow.c (ignore): Add target_ops parameter.
8715 * exec.c (ignore): Add target_ops parameter.
8716 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8717 Add target_ops parameter.
8718 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8719 Add target_ops parameter.
8720 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8721 Add target_ops parameter.
8722 * record-full.c (record_full_beneath_to_insert_breakpoint)
8723 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8724 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8725 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8726 (record_full_core_remove_breakpoint): Add target_ops parameter.
8728 (record_full_beneath_to_insert_breakpoint_ops)
8729 (record_full_beneath_to_remove_breakpoint_ops)
8730 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8731 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8732 tmp_to_remove_breakpoint_ops,
8733 record_full_beneath_to_insert_breakpoint_ops, and
8734 record_full_beneath_to_remove_breakpoint_ops.
8735 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8736 (m32r_remove_breakpoint): Add target_ops parameter.
8737 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8738 Add target_ops parameter.
8739 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8740 Add target_ops parameter.
8742 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8743 Markus Metzger <markus.t.metzger@intel.com>
8745 * record-btrace.c: Include frame-unwind.h.
8746 (record_btrace_frame_unwind_stop_reason)
8747 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8748 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8750 (init_record_btrace_ops): Install it.
8752 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8754 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8757 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8759 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8762 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8764 * frame-unwind.c: Include target.h.
8765 (frame_unwind_try_unwinder): New function with code from ...
8766 (frame_unwind_find_by_frame): ... here. New variable
8767 unwinder_from_target, call also target_get_unwinder)
8768 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8769 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8770 * target.h (struct target_ops): New fields to_get_unwinder and
8771 to_get_tailcall_unwinder.
8772 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8776 * record-btrace.c (record_btrace_fetch_registers)
8777 (record_btrace_store_registers)
8778 (record_btrace_to_prepare_to_store): New.
8779 (init_record_btrace_ops): Add the above.
8781 2014-01-16 Tom Tromey <tromey@redhat.com>
8783 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8784 * target.h (struct target_ops) <to_prepare_to_store>: Add
8786 (target_prepare_to_store): Add argument.
8787 * target.c (debug_to_prepare_to_store): Add argument.
8788 (update_current_target): Update.
8789 * remote.c (remote_prepare_to_store): Add 'self' argument.
8790 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8791 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8792 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8793 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8795 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8796 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8797 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8798 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8799 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8801 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8803 * btrace.h (replay) <replay>: New.
8804 (btrace_is_replaying): New.
8805 * btrace.c (btrace_clear): Free replay iterator.
8806 (btrace_is_replaying): New.
8807 * record-btrace.c (record_btrace_is_replaying): New.
8808 (record_btrace_info): Print insn number if replaying.
8809 (record_btrace_insn_history): Start at replay position.
8810 (record_btrace_call_history): Start at replay position.
8811 (init_record_btrace_ops): Init to_record_is_replaying.
8813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8815 * record-btrace.c (record_btrace_insn_history_range): Include
8817 (record_btrace_insn_history_from): Adjust range.
8818 (record_btrace_call_history_range): Include
8820 (record_btrace_call_history_from): Adjust range.
8821 * NEWS: Announce changes.
8823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8825 * record.h (enum record_print_flag)
8826 <record_print_indent_calls>: New.
8827 * record.c (get_call_history_modifiers): Recognize /c modifier.
8828 (_initialize_record): Document /c modifier.
8829 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8830 Reorder fields. Optionally indent the function name. Update
8832 * NEWS: Announce changes.
8834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8836 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8840 * btrace.c (ftrace_new_function): Start counting at one.
8841 * record-btrace.c (record_btrace_info): Adjust number of calls
8843 * NEWS: Announce it.
8845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8847 * record-btrace.c (btrace_call_history_insn_range): Print
8848 insn range as [begin, end].
8850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8852 * btrace.h (struct btrace_func_link): New.
8853 (enum btrace_function_flag): New.
8854 (struct btrace_inst): Rename to ...
8855 (struct btrace_insn): ...this. Update all users.
8856 (struct btrace_func) <ibegin, iend>: Remove.
8857 (struct btrace_func_link): New.
8858 (struct btrace_func): Rename to ...
8859 (struct btrace_function): ...this. Update all users.
8860 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8861 (number, level, flags>: New.
8862 (struct btrace_insn_iterator): Rename to ...
8863 (struct btrace_insn_history): ...this.
8865 (struct btrace_insn_iterator, btrace_call_iterator): New.
8866 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8867 (struct btrace_target_info) <begin, end, level>
8868 <insn_history, call_history>: New.
8869 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8870 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8871 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8872 (btrace_call_number, btrace_call_begin, btrace_call_end)
8873 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8874 (btrace_find_function_by_number, btrace_set_insn_history)
8875 (btrace_set_call_history): New.
8876 * btrace.c (btrace_init_insn_iterator)
8877 (btrace_init_func_iterator, compute_itrace): Remove.
8878 (ftrace_print_function_name, ftrace_print_filename)
8879 (ftrace_skip_file): Change
8881 (ftrace_init_func): Remove.
8882 (ftrace_debug): Use new btrace_function fields.
8883 (ftrace_function_switched): Also consider gaining and
8884 losing symbol information).
8885 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8886 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8887 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8889 (ftrace_new_function): Move. Remove debug print.
8890 (ftrace_update_lines, ftrace_update_insns): New.
8891 (ftrace_update_function): Check for call, ret, and jump.
8892 (compute_ftrace): Renamed to ...
8893 (btrace_compute_ftrace): ...this. Rewritten to compute call
8895 (btrace_fetch, btrace_clear): Updated.
8896 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8897 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8898 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8899 (btrace_call_number, btrace_call_begin, btrace_call_end)
8900 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8901 (btrace_find_function_by_number, btrace_set_insn_history)
8902 (btrace_set_call_history): New.
8903 * record-btrace.c (require_btrace): Use new btrace thread
8905 (record_btrace_info, btrace_insn_history)
8906 (record_btrace_insn_history, record_btrace_insn_history_range):
8907 Use new btrace thread info fields and new iterator.
8908 (btrace_func_history_src_line): Rename to ...
8909 (btrace_call_history_src_line): ...this. Use new btrace
8911 (btrace_func_history): Rename to ...
8912 (btrace_call_history): ...this. Use new btrace thread info
8913 fields and new iterator.
8914 (record_btrace_call_history, record_btrace_call_history_range):
8915 Use new btrace thread info fields and new iterator.
8917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8919 * frame.h (frame_id_build_unavailable_stack_special): New.
8920 * frame.c (frame_id_build_unavailable_stack_special): New.
8922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8924 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8925 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8926 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8928 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8929 (i386_insn_is_jump, i386_jmp_p): New.
8930 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8931 insn_is_jump to gdbarch.
8932 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8933 * gdbarch.h: Regenerated.
8934 * gdbarch.c: Regenerated.
8935 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8936 (default_insn_is_jump): New.
8937 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8938 (default_insn_is_jump): New.
8940 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8942 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8944 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8945 (btrace_read_type) <btrace_read_new>: Change to ...
8946 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8950 * common/linux-btrace.c (linux_read_btrace): Free trace from
8953 2014-01-15 Doug Evans <dje@google.com>
8955 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8958 2014-01-15 Tom Tromey <tromey@redhat.com>
8960 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8961 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8962 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8963 (set_objfile_main_name): New function.
8964 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8965 language_of_main>: New fields.
8966 (set_objfile_main_name): Declare.
8967 * symtab.c (find_main_name): Loop over objfiles to find the main
8969 (set_main_name): Now static.
8970 (get_main_info): Add comment.
8971 * symtab.h (set_main_name): Don't declare.
8973 2014-01-15 Tom Tromey <tromey@redhat.com>
8975 * symtab.c (main_progspace_key): New global.
8976 (struct main_info): New.
8977 (name_of_main, language_of_main): Remove.
8978 (get_main_info, main_info_cleanup): New function.
8979 (set_main_name, main_name, main_language): Use get_main_info.
8980 (_initialize_symtab): Initialize main_progspace_key.
8982 2014-01-15 Tom Tromey <tromey@redhat.com>
8984 * dbxread.c (process_one_symbol): Update.
8985 * dwarf2read.c (read_partial_die): Update.
8986 * symfile.c (set_initial_language): Call main_language.
8987 * symtab.c (language_of_main): Now static.
8988 (set_main_name): Add 'lang' parameter.
8989 (find_main_name): Update.
8990 (main_language): New function.
8991 (symtab_observer_executable_changed): Update.
8992 * symtab.h (set_main_name): Update.
8993 (language_of_main): Remove.
8994 (main_language): Declare.
8996 2014-01-15 Tom Tromey <tromey@redhat.com>
8998 * symfile.c (init_entry_point_info): Use new "initialized" field.
9000 * objfiles.h (struct entry_point) <initialized>: New field.
9001 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9002 (struct objfile) <ei>: ...here. Remove.
9003 * objfiles.c (entry_point_address_query): Update.
9005 2014-01-15 Tom Tromey <tromey@redhat.com>
9007 * objfiles.c (entry_point_address_query): Relocate entry point
9009 (objfile_relocate1): Do not relocate entry point address.
9010 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9011 <the_bfd_section_index>: New field.
9012 * symfile.c (init_entry_point_info): Find the entry point's
9015 2014-01-15 Tom Tromey <tromey@redhat.com>
9017 * solib-frv.c (enable_break): Use entry_point_address_query.
9019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9021 * NEWS: Add note on improved process record-replay on
9022 arm*-linux* targets.
9024 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9026 * arm-tdep.c (enum arm_record_result): New enum.
9027 (arm_record_unsupported_insn): New function.
9028 (arm_record_coproc_data_proc): Removed.
9029 (thumb2_record_ld_st_multiple): New function.
9030 (thumb2_record_ld_st_dual_ex_tbb): New function.
9031 (thumb2_record_data_proc_sreg_mimm): New function.
9032 (thumb2_record_ps_dest_generic): New function.
9033 (thumb2_record_branch_misc_cntrl): New function.
9034 (thumb2_record_str_single_data): New function.
9035 (thumb2_record_ld_mem_hints): New function.
9036 (thumb2_record_ld_word): New function.
9037 (thumb2_record_lmul_lmla_div): New function.
9038 (thumb2_record_decode_insn_handler): New function.
9039 (decode_insn): Add thumb32 instruction handlers.
9041 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9043 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9044 (struct arm_linux_record_tdep): Declare.
9045 (arm_canonicalize_syscall): New function.
9046 (arm_all_but_pc_registers_record): New function.
9047 (arm_linux_syscall_record): New function.
9048 (arm_linux_init_abi): Add syscall recording constructs.
9049 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9050 decoding. (arm_record_coproc_data_proc): Update arm syscall
9052 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9053 <arm_syscall_record>: New field.
9054 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9059 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9060 register for push instruction recording.
9062 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9064 * arm-tdep.c (thumb_record_misc): Update to correct logical
9065 error while recording ldm, ldmia and pop instructions.
9067 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9069 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9071 2014-01-15 Pedro Alves <palves@redhat.com>
9073 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9074 (go32_resume, go32_fetch_registers, store_register)
9075 (go32_store_registers, go32_prepare_to_store)
9076 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9077 (go32_create_inferior, go32_can_run, go32_terminal_init)
9078 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9081 2014-01-15 Tom Tromey <tromey@redhat.com>
9083 * target.h (async_callback_ftype): New typedef.
9084 (struct target_ops) <to_async>: Use it.
9086 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9088 * python/py-value.c (get_field_type): Remove unnecessary curly
9089 braces for single-statement if block.
9091 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9093 * python/py-type.c (convert_field): Add missing empty line
9096 2014-01-14 Doug Evans <dje@google.com>
9098 * symfile.h (expand_symtabs_matching): Renamed from
9099 expand_partial_symbol_names. Update prototype.
9100 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9101 * symfile.c (expand_symtabs_matching): Renamed from
9102 expand_partial_symbol_names. New args file_matcher, kind.
9103 Rename arg fun to symbol_matcher.
9104 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9105 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9106 ada_expand_partial_symbol_name.
9107 (ada_make_symbol_completion_list): Update to call
9108 expand_symtabs_matching.
9109 (ada_add_global_exceptions): Call expand_symtabs_matching.
9110 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9111 call map_symbol_filenames.
9112 * symtab.c (sources_info): Update to call map_symbol_filenames.
9113 (search_symbols): Call expand_symtabs_matching.
9114 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9115 (default_make_symbol_completion_list_break_on): Update to call
9116 expand_symtabs_matching.
9117 (make_source_files_completion_list): Update to call
9118 map_symbol_filenames.
9120 2014-01-14 Doug Evans <dje@google.com>
9122 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9123 (expand_symtabs_symbol_matcher_ftype): New typedef.
9124 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9125 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9126 * symfile.c (expand_partial_symbol_names): Update to use
9127 expand_symtabs_symbol_matcher_ftype.
9128 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9129 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9130 Arg name_matcher renamed to symbol_matcher.
9131 * psymtab.c (recursively_search_psymtabs): Update to use
9132 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9134 (expand_symtabs_matching_via_partial): Update to use
9135 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9136 Arg name_matcher renamed to symbol_matcher.
9138 2014-01-14 Doug Evans <dje@google.com>
9140 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9141 (map_partial_symbol_filenames): Ditto.
9142 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9143 (map_partial_symbol_filenames): Ditto.
9144 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9145 (map_partial_symbol_filenames): Ditto.
9146 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9147 (map_partial_symbol_filenames): Ditto.
9148 * symtab.c: Delete #include "psymtab.h".
9150 2014-01-14 Pedro Alves <palves@redhat.com>
9151 Tom Tromey <tromey@redhat.com>
9153 * infrun.c (use_displaced_stepping): Use find_record_target
9154 instead of RECORD_IS_USED.
9155 (adjust_pc_after_break): Use record_full_is_used instead of
9157 * record-btrace.c (record_btrace_open): Call record_preopen
9158 instead of checking RECORD_IS_USED.
9159 * record-full.c (record_full_shortname)
9160 (record_full_core_shortname): New globals.
9161 (record_full_is_used): New function.
9162 (find_full_open): Call record_preopen instead of checking
9164 (init_record_full_ops): Set the target's shortname to
9165 record_full_shortname.
9166 (init_record_full_core_ops): Set the target's shortname to
9167 record_full_core_shortname.
9168 * record-full.h (record_full_is_used): Declare.
9169 * record.c (find_record_target): Make extern.
9170 (record_preopen): New function.
9171 * record.h (RECORD_IS_USED): Delete macro.
9172 (find_record_target, record_preopen): Declare functions.
9174 2014-01-14 Yao Qi <yao@codesourcery.com>
9176 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9177 'len''s type to ULONGEST.
9178 (core_xfer_shared_libraries_aix): Likewise.
9179 * gdbarch.c, gdbarch.h: Regenerated.
9180 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9181 Change type of 'len' to ULONGEST.
9182 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9183 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9185 2014-01-14 Yao Qi <yao@codesourcery.com>
9187 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9188 type of 'len' to ULONGEST.
9189 (linux_xfer_osdata_processgroups): Likewise.
9190 (linux_xfer_osdata_threads): Likewise.
9191 (linux_xfer_osdata_fds): Likewise.
9192 (linux_xfer_osdata_isockets): Likewise.
9193 (linux_xfer_osdata_shm): Likewise.
9194 (linux_xfer_osdata_sem): Likewise.
9195 (linux_xfer_osdata_msg): Likewise.
9196 (linux_common_xfer_osdata): Likewise.
9197 (struct osdata_type) <getter>: Likewise.
9198 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9201 2014-01-14 Yao Qi <yao@codesourcery.com>
9203 * target.h (target_xfer_partial_ftype): Update.
9204 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9206 * aix-thread.c (aix_thread_xfer_partial): Change type of
9207 argument 'len' to ULONGEST.
9208 * auxv.c (procfs_xfer_auxv): Likewise.
9209 (ld_so_xfer_auxv): Likewise.
9210 (memory_xfer_auxv): Likewise.
9211 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9212 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9213 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9214 * corelow.c (core_xfer_partial): Likewise.
9215 * ctf.c (ctf_xfer_partial): Likewise.
9216 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9218 (darwin_read_dyld_info): Likewise.
9219 (darwin_xfer_partial): Likewise.
9220 * exec.c (section_table_xfer_memory_partial): Likewise.
9221 (exec_xfer_partial): Likewise.
9222 * exec.h (section_table_xfer_memory_partial): Update
9224 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9225 instead of plongest.
9226 (gnu_xfer_partial): Likewise.
9227 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9228 (ia64_hpux_xfer_solib_got): Likewise.
9229 (ia64_hpux_xfer_partial): Likewise.
9230 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9231 * inf-ptrace.c (inf_ptrace_xfer_partial):
9232 * inf-ttrace.c (inf_ttrace_xfer_partial):
9233 * linux-nat.c (linux_xfer_siginfo): Likewise.
9234 (linux_nat_xfer_partial): Likewise.
9235 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9236 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9237 * monitor.c (monitor_xfer_memory): Likewise.
9238 (monitor_xfer_partial): Likewise.
9239 * procfs.c (procfs_xfer_partial): Likewise.
9240 * record-full.c (record_full_xfer_partial): Likewise.
9241 (record_full_core_xfer_partial): Likewise.
9242 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9243 instead of plongest.
9244 (gdbsim_xfer_partial): Likewise.
9245 * remote.c (remote_xfer_partial): Likewise.
9246 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9247 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9249 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9250 (rs6000_xfer_shared_libraries): Likewise.
9251 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9252 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9253 (sparc_xfer_partial): Likewise.
9254 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9255 (spu_xfer_partial): Likewise.
9256 * spu-multiarch.c (spu_xfer_partial): Likewise.
9257 * target.c (target_read_live_memory): Likewise.
9258 (memory_xfer_live_readonly_partial): Likewise.
9259 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9260 (target_xfer_partial, default_xfer_partial): Likewise.
9261 (current_xfer_partial): Likewise.
9262 * tracepoint.c (tfile_xfer_partial): Likewise.
9263 * windows-nat.c (windows_xfer_memory): Likewise. Call
9264 pulongest instead of plongest.
9265 (windows_xfer_partial): Likewise.
9266 (windows_xfer_shared_libraries): Likewise.
9268 2014-01-14 Yao Qi <yao@codesourcery.com>
9270 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9271 target_xfer_partial_ftype.
9273 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9277 * valops.c (value_struct_elt_bitpos): New function
9278 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9279 object to 'None' if the field name is an empty string ("").
9280 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9281 attribute to look for a field when 'name' is 'None'.
9282 (get_field_type): New function
9284 2014-01-13 Doug Evans <dje@google.com>
9287 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9288 (try_open_dwop_file): Ditto.
9289 * gdb_bfd.c: #include "vec.h".
9290 (bfdp): New typedef.
9291 (struct gdb_bfd_data): New member included_bfds.
9292 (gdb_bfd_unref): Unref all included bfds.
9293 (gdb_bfd_record_inclusion): New function.
9294 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9296 2014-01-13 Tom Tromey <tromey@redhat.com>
9298 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9300 2014-01-13 Tom Tromey <tromey@redhat.com>
9302 * defs.h (use_windows): Remove.
9303 * gdb.c (main): Update.
9304 * main.c (captured_main, gdb_main): Update.
9305 * main.h (struct captured_main_args) <use_windows>: Remove.
9306 * top.c (use_windows): Remove.
9308 2014-01-13 Tom Tromey <tromey@redhat.com>
9310 * defs.h (deprecated_flush_hook): Remove.
9312 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 * linux-thread-db.c (try_thread_db_load): Add parameter
9316 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9317 (try_thread_db_load_from_pdir_1): Move it there from here.
9318 (try_thread_db_load_from_sdir): Update caller.
9319 (try_thread_db_load_from_dir): Move it there from here.
9321 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9323 * regformats/regdat.sh: Always rewrite the register file.
9325 2014-01-13 Pedro Alves <palves@redhat.com>
9327 * Makefile.in (CHECK_HEADERS): New variable.
9328 (check-headers:): New rule.
9330 2014-01-13 Tom Tromey <tromey@redhat.com>
9332 * cli/cli-setshow.c (do_set_command): Update.
9333 * defs.h (deprecated_set_hook): Remove.
9334 * top.c (deprecated_set_hook): Remove.
9336 2014-01-13 Pedro Alves <palves@redhat.com>
9338 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9339 the tracepoint if the PC is a pseudo-register.
9341 2014-01-13 Tom Tromey <tromey@redhat.com>
9343 * defs.h (XCALLOC): Remove.
9344 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9345 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9346 * dwarf2loc.c (allocate_piece_closure): Likewise.
9347 * elfread.c (elf_symfile_segments): Likewise.
9348 (elf_symfile_segments): Likewise.
9349 * gdbtypes.c (copy_type_recursive): Likewise.
9350 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9351 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9352 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9354 * mt-tdep.c (mt_gdbarch_init): Likewise.
9355 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9357 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9358 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9359 * registry.c (registry_alloc_data): Likewise.
9360 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9361 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9362 * serial.c (serial_fdopen_ops): Likewise.
9363 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9365 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9366 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9369 2014-01-13 Tom Tromey <tromey@redhat.com>
9371 * defs.h (XMALLOC): Remove.
9372 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9373 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9374 * cli-out.c (struct ui_out *): Likewise.
9375 * cli/cli-dump.c (add_dump_command): Likewise.
9376 (add_dump_command): Likewise.
9377 * complaints.c (get_complaints): Likewise.
9378 (find_complaint): Likewise.
9379 * dwarf2-frame.c (execute_cfa_program): Likewise.
9380 * dwarf2read.c (abbrev_table_read_table): Likewise.
9381 * gdbarch.sh: Likewise.
9382 * gdbarch.c: Rebuild.
9383 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9384 * interps.c (interp_new): Likewise.
9385 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9386 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9387 * mi/mi-console.c (mi_console_file_new): Likewise.
9388 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9389 * mi/mi-out.c (mi_out_new): Likewise.
9390 * mi/mi-parse.c (mi_parse): Likewise.
9391 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9392 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9393 * observer.c (xalloc_observer_list_node): Likewise.
9394 * regcache.c (regcache_xmalloc_1): Likewise.
9395 * reggroups.c (reggroup_new): Likewise.
9396 (_initialize_reggroup): Likewise.
9397 * registry.c (register_data_with_cleanup): Likewise.
9398 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9399 * ser-base.c (serial_ttystate): Likewise.
9400 * ser-mingw.c (make_pipe_state): Likewise.
9401 * ser-pipe.c (pipe_open): Likewise.
9402 * serial.c (serial_open): Likewise.
9403 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9404 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9405 (tui_alloc_win_info): Likewise.
9406 (tui_add_content_elements): Likewise.
9407 * tui/tui-file.c (tui_file_new): Likewise.
9408 * tui/tui-out.c (tui_out_new): Likewise.
9409 * ui-file.c (mem_file_new): Likewise.
9410 * ui-out.c (push_level): Likewise.
9411 (make_cleanup_ui_out_end): Likewise.
9412 (append_header_to_list): Likewise.
9413 (ui_out_new): Likewise.
9414 * user-regs.c (user_reg_add_builtin): Likewise.
9416 2014-01-13 Tom Tromey <tromey@redhat.com>
9418 * defs.h (XZALLOC): Remove.
9419 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9420 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9421 (get_ada_tasks_inferior_data): Likewise.
9422 * auto-load.c (get_auto_load_pspace_data): Likewise.
9423 * auxv.c (get_auxv_inferior_data): Likewise.
9424 * bfd-target.c (target_bfd_reopen): Likewise.
9425 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9426 (deprecated_insert_raw_breakpoint): Likewise.
9427 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9428 * corelow.c (core_open): Likewise.
9429 * darwin-nat.c (darwin_check_new_threads): Likewise.
9430 (darwin_attach_pid): Likewise.
9431 * dummy-frame.c (dummy_frame_push): Likewise.
9432 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9433 * dwarf2loc.c (allocate_piece_closure): Likewise.
9434 * elfread.c (elf_symfile_segments): Likewise.
9435 * eval.c (ptrmath_type_p): Likewise.
9436 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9437 * gdbtypes.c (alloc_type_arch): Likewise.
9438 (alloc_type_instance): Likewise.
9439 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9440 * inf-child.c (inf_child_can_use_agent): Likewise.
9441 * inflow.c (get_inflow_inferior_data): Likewise.
9442 * infrun.c (save_infcall_suspend_state): Likewise.
9443 * jit.c (jit_reader_load): Likewise.
9444 (get_jit_objfile_data): Likewise.
9445 (get_jit_program_space_data): Likewise.
9446 (jit_object_open_impl): Likewise.
9447 (jit_symtab_open_impl): Likewise.
9448 (jit_block_open_impl): Likewise.
9449 (jit_frame_sniffer): Likewise.
9450 * linux-fork.c (add_fork): Likewise.
9451 * maint.c (make_command_stats_cleanup): Likewise.
9452 * objfiles.c (get_objfile_pspace_data): Likewise.
9453 * opencl-lang.c (struct lval_closure): Likewise.
9454 * osdata.c (osdata_start_osdata): Likewise.
9455 * progspace.c (new_address_space): Likewise.
9456 (add_program_space): Likewise.
9457 * remote-sim.c (get_sim_inferior_data): Likewise.
9458 * sh-tdep.c (sh_gdbarch_init): Likewise.
9459 * skip.c (Ignore): Likewise.
9460 (skip_delete_command): Likewise.
9461 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9462 (library_list_start_library): Likewise.
9463 (solib_aix_current_sos): Likewise.
9464 * solib-darwin.c (get_darwin_info): Likewise.
9465 (darwin_current_sos): Likewise.
9466 * solib-dsbt.c (get_dsbt_info): Likewise.
9467 * solib-ia64-hpux.c (new_so_list): Likewise.
9468 (ia64_hpux_get_solib_linkage_addr): Likewise.
9469 * solib-spu.c (append_ocl_sos): Likewise.
9470 (spu_current_sos): Likewise.
9471 * solib-svr4.c (get_svr4_info): Likewise.
9472 (svr4_keep_data_in_core): Likewise.
9473 (library_list_start_library): Likewise.
9474 (svr4_default_sos): Likewise.
9475 (svr4_read_so_list): Likewise.
9476 * solib-target.c (library_list_start_library): Likewise.
9477 (solib_target_current_sos): Likewise.
9478 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9479 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9480 * symfile.c (default_symfile_segments): Likewise.
9481 * target-descriptions.c (tdesc_data_init): Likewise.
9482 (tdesc_create_reg): Likewise.
9483 (struct tdesc_type *): Likewise.
9484 (tdesc_create_vector): Likewise.
9485 (tdesc_set_struct_size): Likewise.
9486 (struct tdesc_type *): Likewise.
9487 (tdesc_free_feature): Likewise.
9488 (tdesc_create_feature): Likewise.
9489 * windows-nat.c (windows_add_thread): Likewise.
9490 (windows_make_so): Likewise.
9491 * xml-support.c (gdb_xml_body_text): Likewise.
9492 (gdb_xml_create_parser_and_cleanup): Likewise.
9493 (xml_process_xincludes): Likewise.
9494 * xml-syscall.c (allocate_syscalls_info): Likewise.
9495 (syscall_create_syscall_desc): Likewise.
9497 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9499 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9500 function, with code from i386_stap_parse_special_token.
9501 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9502 (i386_stap_parse_special_token): Move code to the two functions
9505 2014-01-09 Pedro Alves <palves@redhat.com>
9506 Hui Zhu <hui@codesourcery.com>
9509 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9510 bp_err_string. Don't mark the location shlib_disabled if the
9511 error thrown wasn't a generic or memory error. Catch errors
9512 thrown while inserting breakpoints in overlayed code. Output
9513 error message of software breakpoints.
9514 * remote.c (remote_insert_breakpoint): If this breakpoint has
9515 target-side commands but this stub doesn't support Z0 packets,
9516 throw NOT_SUPPORTED_ERROR error.
9517 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9518 * target.h (target_insert_breakpoint): Extend comment.
9519 (target_insert_hw_breakpoint): Add comment.
9521 2014-01-08 Pedro Alves <palves@redhat.com>
9523 * remote.c (remote_add_thread): Add threads silently if starting
9525 (remote_notice_new_inferior): If in all-stop, and starting up,
9526 don't call notice_new_inferior.
9527 (get_current_thread): New function, factored out from ...
9528 (add_current_inferior_and_thread): ... this. Adjust.
9529 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9530 found any thread, then select the remote's current thread as GDB's
9533 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9535 * NEWS: Create a new section for the next release branch.
9536 Rename the section of the current branch, now that it has
9539 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9541 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9542 * version.in: Bump version to 7.7.50.DATE-cvs.
9544 2014-01-08 Yao Qi <yao@codesourcery.com>
9546 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9547 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9548 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9550 2014-01-08 Yao Qi <yao@codesourcery.com>
9552 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9553 return value of bfd_get_filename to symbol_file_add_from_bfd.
9555 2014-01-08 Pierre Muller <muller@sourceware.org>
9558 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9559 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9560 to prim_record_mininal_symbol_and_info.
9561 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9562 in call to prim_record_minimal_symbol_and_info.
9563 (read_pe_exported_syms): Set index field of section_data.
9565 2014-01-07 Andrew Pinski <apinski@cavium.com>
9567 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9568 * features/aarch64.c: Regenerate.
9570 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9572 * target.c (return_null): Define.
9573 (update_current_target): Use it instead of return_zero for
9574 functions that return a pointer.
9576 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9578 * source.c (add_path): Fix check for duplicated paths in the previously
9581 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9583 * ada-lang.c: Remove duplicated include statements.
9584 * alphabsd-nat.c: Ditto.
9585 * amd64-darwin-tdep.c: Ditto.
9586 * amd64fbsd-nat.c: Ditto.
9587 * auto-load.c: Ditto.
9589 * breakpoint.c: Ditto.
9591 * fork-child.c: Ditto.
9592 * gdb_usleep.c: Ditto.
9593 * i386-darwin-tdep.c: Ditto.
9594 * i386fbsd-nat.c: Ditto.
9596 * inferior.c: Ditto.
9598 * linux-nat.c: Ditto.
9599 * linux-tdep.c: Ditto.
9600 * m68kbsd-nat.c: Ditto.
9601 * m68klinux-nat.c: Ditto.
9602 * microblaze-tdep.c: Ditto.
9603 * mips-linux-tdep.c: Ditto.
9604 * mn10300-tdep.c: Ditto.
9605 * nto-tdep.c: Ditto.
9606 * opencl-lang.c: Ditto.
9608 * printcmd.c: Ditto.
9609 * regcache.c: Ditto.
9610 * remote-m32r-sdi.c: Ditto.
9614 * tilegx-linux-nat.c: Ditto.
9615 * tilegx-tdep.c: Ditto.
9616 * tracepoint.c: Ditto.
9618 * vaxbsd-nat.c: Ditto.
9619 * windows-nat.c: Ditto.
9620 * xtensa-tdep.c: Ditto.
9622 2014-01-07 Yao Qi <yao@codesourcery.com>
9624 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9626 2014-01-07 Yao Qi <yao@codesourcery.com>
9627 Joel Brobecker <brobecker@adacore.com>
9629 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9630 (pdc_write_regs): Likewise.
9631 (fetch_regs_kernel_thread): Likewise.
9632 (store_regs_kernel_thread): Likewise.
9634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9636 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9637 tagged type objects to their actual type.
9639 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9641 * ada-valprint.c (print_field_values): Add "language" parameter.
9642 Update calls to print_field_values and print_variant_part.
9643 Pass new parameter "language" in call to val_print instead
9644 of "current_language". Replace call to ada_val_print by call
9646 (print_variant_part): Add "language" parameter.
9647 (ada_val_print_struct_union): Update call to print_field_values.
9649 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9651 * ada-valprint.c (ui_memcpy): Delete.
9652 (ada_print_floating): Update documentation. Add empty line
9653 between between function documentation and implementation.
9654 Delete variable "buffer". Use ui_file_xstrdup in place of
9655 ui_file_put. Minor adjustments following this change.
9657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9659 * ada-valprint.c (ada_val_print_string): New function,
9660 extracted from ada_val_print_array.
9661 (ada_val_print_array): Replace extracted code by call
9662 to ada_val_print_string followed by a return. Move
9663 "else" branch to the function's top block.
9665 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9667 * ada-valprint.c (ada_val_print_array): Move implementation
9668 down. Rename parameter "offset" and "val" into "offset_aligned"
9669 and "original_value" respectively. Add parameter "offset".
9671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9673 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9674 re-organizing the code. Change the "???" message printed
9675 when target type is a TYPE_CODE_UNDEF into
9676 "<ref to undefined type>".
9678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9680 * ada-valprint.c (print_record): Delete, implementation inlined...
9681 (ada_val_print_struct_union): ... here. Remove call to
9682 ada_check_typedef in inlined implementation.
9684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9686 * ada-valprint.c (ada_val_print_gnat_array): New function,
9687 extracted from ada_val_print_1;
9688 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9689 (ada_val_print_flt, ada_val_print_struct_union)
9690 (ada_val_print_ref): Likewise.
9691 (ada_val_print_1): Delete variables i and elttype.
9692 Replace extracted-out code by call to corresponding
9695 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9697 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9701 * ada-valprint.c (ada_val_print_1): Replace calls to
9702 ada_val_print_1 by calls to val_print.
9704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9706 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9707 Update calls to self accordingly. Replace calls to c_val_print
9708 by calls to val_print.
9710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9712 * ada-valprint.c (print_record): Delete declaration.
9713 (adjust_type_signedness, ada_val_print_1): Likewise.
9714 (ada_val_print): Move function implementation down.
9715 (print_variant_part, print_field_values, print_record):
9716 Move function implementation up.
9718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9720 * python/py-type.c (typy_get_name): New function.
9721 (type_object_getset): Add entry for attribute "name".
9722 * NEWS: Add entry mentioning this new attribute.
9724 2014-01-07 Yao Qi <yao@codesourcery.com>
9726 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9729 2014-01-07 Yao Qi <yao@codesourcery.com>
9731 * gnu-nat.c (info_port_rights): Add qualifier const to
9734 2014-01-07 Yao Qi <yao@codesourcery.com>
9736 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9738 2014-01-07 Yao Qi <yao@codesourcery.com>
9740 * gnu-nat.c (make_inf) Update declaration.
9741 (make_inf): Make it static.
9742 (inf_set_traced): Likewise.
9743 (inf_port_to_thread, inf_task_died_status): Likewise.
9745 2014-01-07 Yao Qi <yao@codesourcery.com>
9747 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9749 2014-01-07 Yao Qi <yao@codesourcery.com>
9751 * gnu-nat.c (_initialize_gnu_nat): Declare.
9753 2014-01-07 Yao Qi <yao@codesourcery.com>
9755 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9757 (struct gdbarch_info) <byte_order>: Change type to
9759 <byte_order_for_code>: Likewise.
9760 * gdbarch.c, gdbarch.h: Regenerated.
9762 2014-01-06 Sasha Smundak <asmundak@google.com>
9764 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9766 2014-01-06 Tom Tromey <tromey@redhat.com>
9768 * doublest.c (convert_doublest_to_floatformat): Use const, not
9770 * somread.c (som_symtab_read): Likewise.
9772 2014-01-07 Hui Zhu <hui@codesourcery.com>
9774 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9775 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9776 (gdb_bfd_fopen): Ditto.
9777 (gdb_bfd_openr): Ditto.
9778 (gdb_bfd_openw): Ditto.
9779 (gdb_bfd_openr_iovec): Ditto.
9780 (gdb_bfd_fdopenr): Ditto.
9781 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9782 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9784 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9786 * symfile-mem.c (symbol_file_add_from_memory): Removed
9787 gdb_bfd_stash_filename.
9789 2014-01-03 Doug Evans <dje@google.com>
9791 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9794 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9796 Update year range in copyright notice of all files.
9798 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9800 * top.c (print_gdb_version): Set copyright year to 2014.
9802 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9804 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9806 For older changes see ChangeLog-2013.
9812 version-control: never