1 2014-06-26 Yao Qi <yao@codesourcery.com>
3 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4 dummyframe and this_id into inner block below.
6 2014-06-26 Yao Qi <yao@codesourcery.com>
8 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
9 with "signal_pass[0]" in the initialization of signal_pass.
11 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
13 * record-btrace.c (record_btrace_generating_corefile)
14 (record_btrace_prepare_to_generate_core)
15 (record_btrace_done_generating_core): New.
16 (record_btrace_xfer_partial, record_btrace_fetch_registers)
17 (record_btrace_store_registers, record_btrace_prepare_to_store):
18 Forward request when generating a core file.
19 (record_btrace_open): Set record_btrace_generating_corefile to zero.
20 (init_record_btrace_ops): Set to_prepare_to_generate_core and
21 to_done_generating_core.
23 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
25 * target.h (target_ops) <to_prepare_to_generate_core>
26 <to_done_generating_core>: New.
27 (target_prepare_to_generate_core, target_done_generating_core): New.
28 * target.c (target_prepare_to_generate_core)
29 (target_done_generating_core): New.
30 * target-delegates.c: Regenerate.
31 * gcore.c: (write_gcore_file): Rename to ...
32 (write_gcore_file_1): ...this.
33 (write_gcore_file): Call target_prepare_to_generate_core
34 and target_done_generating_core.
36 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
38 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
39 * gcore.c (write_gcore_file): Free memory returned from
41 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
42 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
44 2014-06-24 Yao Qi <yao@codesourcery.com>
46 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
47 (arm_linux_init_abi): Set skip_trampoline_code with
48 gdbarch_skip_trampoline_code instead of
49 find_solib_trampoline_target.
51 2014-06-24 Yao Qi <yao@codesourcery.com>
53 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
54 arm_skip_bx_reg returns non-zero.
56 2014-06-24 Yao Qi <yao@codesourcery.com>
58 * arm-tdep.c (arm_skip_bx_reg): New function.
59 (arm_skip_stub): Call arm_skip_bx_reg.
61 2014-06-23 Don Breazeal <donb@codesourcery.com>
63 * MAINTAINERS: Add myself as write-after-approval maintainer.
65 2014-06-23 Pedro Alves <palves@redhat.com>
67 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
68 DR_CONTROL before setting DR0..DR3.
69 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
70 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
71 bits of DR_CONTROL related to the debug register slot being
72 disabled. If all slots are vacant, clear local slowdown as well,
73 and assert DR_CONTROL is 0.
75 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
77 * python/lib/gdb/command/xmethods.py
78 (get_method_matchers_in_loci): Lookup xmethod matchers in the
79 current progspace only if the string "progspace" matches LOCUS_RE.
81 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
83 Fix --with-system-readline with readline-6.3 patch 5.
84 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
85 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
88 2014-06-20 Tom Tromey <tromey@redhat.com>
90 * dwarf2read.c (dw2_get_real_path): Use correct type in
92 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
94 2014-06-20 Gary Benson <gbenson@redhat.com>
96 * common/gdb_thread_db.h: Moved to nat. All includes updated.
97 * common/glibc_thread_db.h: Likewise.
98 * common/i386-cpuid.h: Likewise.
99 * common/i386-gcc-cpuid.h: Likewise.
100 * common/linux-btrace.h: Likewise.
101 * common/linux-osdata.h: Likewise.
102 * common/linux-procfs.h: Likewise.
103 * common/linux-ptrace.h: Likewise.
104 * common/mips-linux-watch.h: Likewise.
105 * common/linux-btrace.c: Moved to nat.
106 * common/linux-osdata.c: Likewise.
107 * common/linux-procfs.c: Likewise.
108 * common/linux-ptrace.c: Likewise.
109 * common/mips-linux-watch.c: Likewise.
110 * nat/gdb_thread_db.h: Moved from common.
111 * nat/glibc_thread_db.h: Likewise.
112 * nat/i386-cpuid.h: Likewise.
113 * nat/i386-gcc-cpuid.h: Likewise.
114 * nat/linux-btrace.c: Likewise.
115 * nat/linux-btrace.h: Likewise.
116 * nat/linux-osdata.c: Likewise.
117 * nat/linux-osdata.h: Likewise.
118 * nat/linux-procfs.c: Likewise.
119 * nat/linux-procfs.h: Likewise.
120 * nat/linux-ptrace.c: Likewise.
121 * nat/linux-ptrace.h: Likewise.
122 * nat/mips-linux-watch.c: Likewise.
123 * nat/mips-linux-watch.h: Likewise.
124 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
125 (object file files): Reordered.
126 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
127 of glibc_thread_db.h.
129 2014-06-20 Gary Benson <gbenson@redhat.com>
131 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
132 (i386_dr_low_type): Moved to nat/i386-dregs.h.
133 (i386_dr_low): Likewise.
134 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
135 (i386_dr_low_set_addr): Likewise.
136 (i386_dr_low_get_addr): Likewise.
137 (i386_dr_low_can_set_control): Likewise.
138 (i386_dr_low_set_control): Likewise.
139 (i386_dr_low_get_control): Likewise.
140 (i386_dr_low_get_status): Likewise.
141 (i386_get_debug_register_length): Likewise.
142 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
143 (i386_dr_low): Likewise.
144 * nat/i386-dregs.c (i386-low.h): Remove include.
145 (i386-nat.h): Likewise.
146 (nat/i386-dregs.h): New include.
147 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
148 (i386_dr_low_set_addr): Likewise.
149 (i386_dr_low_get_addr): Likewise.
150 (i386_dr_low_can_set_control): Likewise.
151 (i386_dr_low_set_control): Likewise.
152 (i386_dr_low_get_control): Likewise.
153 (i386_dr_low_get_status): Likewise.
154 (i386_get_debug_register_length): Likewise.
155 (debug_hw_points): Likewise.
157 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
159 * Makefile.in (SFILES): Add d-exp.y.
160 (YYFILES): Add d-exp.c.
161 (YYOBJ): Add d-exp.o.
162 (local-maintainer-clean): Delete d-exp.c.
164 * d-lang.h (d_parse): New declaration.
165 (d_error): New declaration.
166 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
167 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
168 PREC_ORDER operators.
169 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
171 2014-06-19 Yao Qi <yao@codesourcery.com>
173 * gdbthread.h (any_running): Remove the declaration.
174 * thread.c (any_running): Remove.
176 2014-06-19 Yao Qi <yao@codesourcery.com>
178 * gdbthread.h (struct thread_info) <state>: Change its type to
179 'enum thread_state'. Update comments.
181 2014-06-19 Pedro Alves <palves@redhat.com>
183 * gdbthread.h (ALL_THREADS): Delete.
184 (ALL_NON_EXITED_THREADS): New macro.
185 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
186 instead of ALL_THREADS.
187 * infrun.c (find_thread_needs_step_over)
188 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
189 instead of ALL_THREADS.
190 * record-btrace.c (record_btrace_open)
191 (record_btrace_stop_recording, record_btrace_close)
192 (record_btrace_is_replaying, record_btrace_resume)
193 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
194 * remote.c (append_pending_thread_resumptions): Likewise.
195 * thread.c (thread_apply_all_command): Likewise.
197 2014-06-19 Gary Benson <gbenson@redhat.com>
199 * i386-nat.c (i386_stopped_by_watchpoint):
200 Use i386_dr_stopped_by_watchpoint.
201 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
202 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
204 2014-06-19 Gary Benson <gbenson@redhat.com>
206 * nat/i386-dregs.c: New file.
207 * Makefile.in (i386-dregs.o): New rule.
208 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
209 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
210 * config/i386/darwin.mh (NATDEPFILES): Likewise.
211 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
212 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
213 * config/i386/go32.mh (NATDEPFILES): Likewise.
214 * config/i386/linux.mh (NATDEPFILES): Likewise.
215 * config/i386/linux64.mh (NATDEPFILES): Likewise.
216 * config/i386/mingw.mh (NATDEPFILES): Likewise.
217 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
218 * i386-nat.h (debug_hw_points): New declaration.
219 * i386-nat.c (breakpoint.h): Remove include.
220 (command.h): Likewise.
221 (target.h): Likewise.
222 (gdb_assert.h): Likewise.
223 (debug_hw_points): Made nonstatic.
224 (debug_printf): Now in i386-dregs.c.
225 (TARGET_HAS_DR_LEN_8): Likewise.
226 (DR_CONTROL_SHIFT): Likewise.
227 (DR_CONTROL_SIZE): Likewise.
228 (DR_RW_EXECUTE): Likewise.
229 (DR_RW_WRITE): Likewise.
230 (DR_RW_READ): Likewise.
231 (DR_RW_IORW): Likewise.
232 (DR_LEN_1): Likewise.
233 (DR_LEN_2): Likewise.
234 (DR_LEN_4): Likewise.
235 (DR_LEN_8): Likewise.
236 (DR_LOCAL_ENABLE_SHIFT): Likewise.
237 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
238 (DR_ENABLE_SIZE): Likewise.
239 (DR_LOCAL_SLOWDOWN): Likewise.
240 (DR_GLOBAL_SLOWDOWN): Likewise.
241 (DR_CONTROL_RESERVED): Likewise.
242 (I386_DR_CONTROL_MASK): Likewise.
243 (I386_DR_VACANT): Likewise.
244 (I386_DR_LOCAL_ENABLE): Likewise.
245 (I386_DR_GLOBAL_ENABLE): Likewise.
246 (I386_DR_DISABLE): Likewise.
247 (I386_DR_SET_RW_LEN): Likewise.
248 (I386_DR_GET_RW_LEN): Likewise.
249 (I386_DR_WATCH_HIT): Likewise.
250 (i386_wp_op_t): Likewise.
251 (i386_show_dr): Likewise.
252 (i386_length_and_rw_bits): Likewise.
253 (i386_insert_aligned_watchpoint): Likewise.
254 (i386_remove_aligned_watchpoint): Likewise.
255 (i386_handle_nonaligned_watchpoint): Likewise.
256 (i386_update_inferior_debug_regs): Likewise.
257 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
258 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
259 (i386_region_ok_for_watchpoint):
260 Use i386_dr_region_ok_for_watchpoint.
261 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
263 2014-06-19 Gary Benson <gbenson@redhat.com>
265 * i386-nat.c (i386_insert_hw_breakpoint): Use
266 i386_insert_watchpoint.
267 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
269 2014-06-19 Gary Benson <gbenson@redhat.com>
271 * i386-nat.c (i386_dr_show): Renamed to
272 i386_show_dr and made static. All uses updated.
273 (i386_dr_length_and_rw_bits): Renamed to
274 i386_length_and_rw_bits and made static.
276 (i386_dr_insert_aligned_watchpoint): Renamed to
277 i386_insert_aligned_watchpoint and made static.
279 (i386_dr_remove_aligned_watchpoint): Renamed to
280 i386_remove_aligned_watchpoint and made static.
282 (i386_dr_update_inferior_debug_regs): Renamed to
283 i386_update_inferior_debug_regs and made static.
285 * nat/i386-dregs.h (i386_dr_show): Removed.
286 (i386_dr_length_and_rw_bits): Likewise.
287 (i386_dr_insert_aligned_watchpoint): Likewise.
288 (i386_dr_remove_aligned_watchpoint): Likewise.
289 (i386_dr_update_inferior_debug_regs): Likewise.
291 2014-06-19 Gary Benson <gbenson@redhat.com>
293 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
294 * configure: Regenerate.
295 * config.in: Likewise.
296 * main.c (signal.h): New include.
297 (setup_alternate_signal_stack): New function.
298 (captured_main): Call the above.
299 * cp-support.c (signal.h): New include.
300 (catch_demangler_crashes): New flag.
301 (SIGJMP_BUF): New define.
302 (SIGSETJMP): Likewise.
303 (SIGLONGJMP): Likewise.
304 (gdb_demangle_jmp_buf): New static global.
305 (gdb_demangle_attempt_core_dump): Likewise.
306 (gdb_demangle_signal_handler): New function.
307 (gdb_demangle): If catch_demangler_crashes is set, install the
308 above signal handler before calling bfd_demangle, and restore
309 the original signal handler afterwards. Display the offending
310 symbol and call demangler_warning the first time a segmentation
312 (_initialize_cp_support): New maint set/show command.
314 2014-06-19 Gary Benson <gbenson@redhat.com>
316 * utils.h (resource_limit_kind): New enum.
317 (can_dump_core): New declaration.
318 (warn_cant_dump_core): Likewise.
319 (dump_core): Likewise.
320 * utils.c (dump_core): Made nonstatic. Added new
321 parameter "limit_kind".
322 (can_dump_core): Made nonstatic. Moved printing code to...
323 (warn_cant_dump_core): New function.
324 (can_dump_core_warn): Likewise.
325 (internal_vproblem): Replace calls to can_dump_core with
326 calls to can_dump_core_warn. Supply new argument to each.
328 2014-06-19 Gary Benson <gbenson@redhat.com>
330 * utils.h (demangler_vwarning): New declaration.
331 (demangler_warning): Likewise.
332 * utils.c (struct internal_problem)
333 <user_settable_should_quit>: New field.
334 <user_settable_should_dump_core>: Likewise
335 (internal_error_problem): Add values for above new fields.
336 (internal_warning_problem): Likewise.
337 (demangler_warning_problem): New static global.
338 (demangler_vwarning): New function.
339 (demangler_warning): Likewise.
340 (add_internal_problem_command): Selectively add commands.
341 (_initialize_utils): New internal problem command.
342 * maint.c (maintenance_demangler_warning): New function.
343 (_initialize_maint_cmds): New command.
345 2014-06-18 Tom Tromey <tromey@redhat.com>
347 * f-valprint.c (info_common_command_for_block): Update.
348 * symtab.h (struct general_symbol_info) <common_block>: Now
351 2014-06-18 Tom Tromey <tromey@redhat.com>
353 * symtab.h (struct symtab) <blockvector>: Now const.
354 * ada-lang.c (ada_add_global_exceptions): Update.
355 * buildsym.c (augment_type_symtab): Update.
356 * dwarf2read.c (dw2_lookup_symbol): Update.
357 * jit.c (finalize_symtab): Update.
358 * jv-lang.c (add_class_symtab_symbol): Update.
359 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
361 * objfiles.c (objfile_relocate1): Update.
362 * psymtab.c (lookup_symbol_aux_psymtabs)
363 (maintenance_check_psymtabs): Update.
364 * python/py-symtab.c (stpy_global_block, stpy_static_block):
366 * spu-tdep.c (spu_catch_start): Update.
367 * symmisc.c (dump_symtab_1): Update.
368 * symtab.c (lookup_global_symbol_from_objfile)
369 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
370 (basic_lookup_transparent_type_quick)
371 (basic_lookup_transparent_type, find_pc_sect_symtab)
372 (find_pc_sect_line, search_symbols): Update.
373 * block.c (find_block_in_blockvector): Make "bl" const.
374 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
376 (blockvector_contains_pc): Make "bv" const.
377 (block_for_pc_sect): Update.
378 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
379 (blockvector_contains_pc): Update.
380 * breakpoint.c (resolve_sal_pc): Update.
381 * inline-frame.c (block_starting_point_at): Update.
383 2014-06-18 Tom Tromey <tromey@redhat.com>
385 * completer.c (complete_line): Make "line_buffer" const.
386 * completer.h (complete_line): Update.
388 2014-06-18 Tom Tromey <tromey@redhat.com>
390 * symtab.c (add_macro_name): Remove unneeded cast.
392 2014-06-18 Tom Tromey <tromey@redhat.com>
394 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
395 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
397 2014-06-18 Tom Tromey <tromey@redhat.com>
399 * probe.c (info_probes_for_ops): Make "arg" const.
400 * probe.h (info_probes_for_ops): Update.
402 2014-06-18 Tom Tromey <tromey@redhat.com>
404 * varobj.c (varobj_create): Update.
405 * valops.c (value_of_this): Update.
406 * tracepoint.c (add_local_symbols, scope_info): Update.
407 * symtab.h (struct general_symbol_info) <block>: Now const.
408 * symtab.c (skip_prologue_sal)
409 (default_make_symbol_completion_list_break_on)
410 (skip_prologue_using_sal): Update.
411 * stack.h (iterate_over_block_locals)
412 (iterate_over_block_local_vars): Update.
413 * stack.c (print_frame_args): Update.
414 (iterate_over_block_locals, iterate_over_block_local_vars): Make
416 (get_selected_block): Make return type const.
417 * python/py-frame.c (frapy_block): Update.
418 * python/py-block.c (gdbpy_block_for_pc): Update.
419 * p-exp.y (%union) <bval>: Now const.
420 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
421 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
422 * m2-exp.y (%union) <bval>: Now const.
423 * linespec.c (get_current_search_block): Make return type const.
424 (create_sals_line_offset, find_label_symbols): Update.
425 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
427 (block_starting_point_at): Make "block" const.
428 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
429 (check_exception_resume): Update.
430 * guile/scm-frame.c (gdbscm_frame_block): Update.
431 * guile/scm-block.c (gdbscm_lookup_block): Update.
432 * frame.h (get_frame_block): Update.
433 (get_selected_block): Make return type const.
434 * frame.c (frame_id_inner): Update.
435 * f-valprint.c (info_common_command_for_block)
436 (info_common_command): Update.
437 * dwarf2loc.c (dwarf2_find_location_expression)
438 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
439 (locexpr_describe_location_piece): Update.
440 * c-exp.y (%union) <bval>: Now const.
441 * breakpoint.c (resolve_sal_pc): Update.
442 * blockframe.c (get_frame_block):Make return type const.
443 (get_pc_function_start, get_frame_function, find_pc_sect_function)
444 (block_innermost_frame): Update.
445 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
446 (block_for_pc, block_for_pc_sect): Update.
447 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
449 (block_for_pc_sect, block_for_pc): Make return type const.
450 * ax-gdb.c (gen_expr): Update.
451 * alpha-mdebug-tdep.c (find_proc_desc): Update.
452 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
453 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
454 (ada_read_var_value): Update.
455 * ada-exp.y (struct name_info) <block>: Now const.
457 (block_lookup): Constify.
459 2014-06-18 Gary Benson <gbenson@redhat.com>
461 * nat/i386-dregs.h: New file.
462 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
463 * i386-nat.h (i386-dregs.h): New include.
464 (DR_FIRSTADDR): Now in i386-dregs.h.
465 (DR_LASTADDR): Likewise.
466 (DR_NADDR): Likewise.
467 (DR_STATUS): Likewise.
468 (DR_CONTROL): Likewise.
469 (i386_debug_reg_state): Likewise.
470 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
472 2014-06-18 Don Breazeal <donb@codesourcery.com>
474 * breakpoint.c (set_longjmp_breakpoint): Call
475 momentary_breakpoint_from_master with additional argument.
476 (set_longjmp_breakpoint_for_call_dummy): Call
477 momentary_breakpoint_from_master with additional argument.
478 (set_std_terminate_breakpoint): Call
479 momentary_breakpoint_from_master with additional argument.
480 (momentary_breakpoint_from_master): Add argument to function
481 definition and use it to initialize structure member flag.
482 (clone_momentary_breakpoint): Call
483 momentary_breakpoint_from_master with additional argument.
484 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
485 member flags set in momentary_breakpoint_from_master.
487 2014-06-18 Gary Benson <gbenson@redhat.com>
489 * i386-nat.c (i386_show_dr): Renamed to
490 i386_dr_show and made nonstatic. All uses updated.
491 (i386_length_and_rw_bits): Renamed to
492 i386_dr_length_and_rw_bits and made nonstatic.
494 (i386_insert_aligned_watchpoint): Renamed to
495 i386_dr_insert_aligned_watchpoint and made nonstatic.
497 (i386_remove_aligned_watchpoint): Renamed to
498 i386_dr_remove_aligned_watchpoint and made nonstatic.
500 (i386_update_inferior_debug_regs): Renamed to
501 i386_dr_update_inferior_debug_regs and made nonstatic.
504 2014-06-18 Gary Benson <gbenson@redhat.com>
506 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
507 (i386_dr_low_can_set_control): Likewise.
508 (i386_dr_low_set_addr): Likewise.
509 (i386_dr_low_set_control): Likewise.
510 (i386_dr_low_get_addr): Likewise.
511 (i386_dr_low_get_status): Likewise.
512 (i386_dr_low_get_control): Likewise.
513 (i386_insert_aligned_watchpoint): Use new macros.
514 (i386_update_inferior_debug_regs): Likewise.
515 (i386_stopped_data_address): Likewise.
517 2014-06-18 Gary Benson <gbenson@redhat.com>
519 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
520 New parameter. All uses updated.
522 2014-06-18 Gary Benson <gbenson@redhat.com>
524 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
527 2014-06-18 Gary Benson <gbenson@redhat.com>
529 * i386-nat.c (debug_printf): New macro.
530 (i386_get_debug_register_length): Likewise.
531 (TARGET_HAS_DR_LEN_8): Use above macro.
532 (i386_show_dr): Use debug_printf instead of puts_unfiltered
533 and printf_unfiltered. Use phex to format values.
535 2014-06-18 Gary Benson <gbenson@redhat.com>
537 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
540 2014-06-18 Gary Benson <gbenson@redhat.com>
542 * i386-nat.c: Comment changes.
544 2014-06-18 Gary Benson <gbenson@redhat.com>
546 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
548 2014-06-18 Gary Benson <gbenson@redhat.com>
550 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
551 (i386_insert_aligned_watchpoint): Likewise.
552 (i386_remove_aligned_watchpoint): Likewise.
553 (i386_handle_nonaligned_watchpoint): Likewise.
555 2014-06-18 Gary Benson <gbenson@redhat.com>
557 * i386-nat.c: Whitespace changes.
559 2014-06-17 Samuel Bronson <naesten@gmail.com>
561 * MAINTAINERS: Update Roland McGrath's email address.
562 Thanks to Sergio Durigan Junior for pointing out that he left
563 Red Hat a while ago, and giving me a current address.
565 2014-06-17 Tom Tromey <tromey@redhat.com>
567 * utils.h (savestring): Remove declaration.
569 2014-06-17 Tom Tromey <tromey@redhat.com>
571 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
573 2014-06-16 Keith Seitz <keiths@redhat.com>
576 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
577 to update the varobj if inferior_ptid is null_ptid.
579 2014-06-16 Tom Tromey <tromey@redhat.com>
581 * target.h (struct target_ops) <to_info_proc>: Make parameter
583 (target_info_proc): Update.
584 * target.c (target_info_proc): Make "args" const.
585 * procfs.c (procfs_info_proc): Update.
586 * linux-tdep.c (linux_info_proc): Update.
587 (linux_core_info_proc_mappings): Make "args" const.
588 (linux_core_info_proc): Update.
589 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
590 * gdbarch.c: Rebuild.
591 * gdbarch.h: Rebuild.
592 * corelow.c (core_info_proc): Update.
594 2014-06-16 Tom Tromey <tromey@redhat.com>
596 * target.h (struct target_ops) <to_disconnect>: Make parameter
598 (target_disconnect): Update.
599 * target.c (target_disconnect): Make "args" const.
600 * target-delegates.c: Rebuild.
601 * remote.c (remote_disconnect): Update.
602 * record.h (record_disconnect): Update.
603 * record.c (record_disconnect): Update.
604 * inf-child.c (inf_child_disconnect): Update.
606 2014-06-16 Tom Tromey <tromey@redhat.com>
608 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
609 * target.c (debug_to_rcmd, default_rcmd): Update.
610 * target-delegates.c: Rebuild.
611 * remote.c (remote_rcmd): Update.
612 * monitor.c (monitor_rcmd): Update.
614 2014-06-16 Pedro Alves <palves@redhat.com>
616 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
617 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
618 have OBJF_SHARED set.
619 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
620 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
621 instead of OBJF_USERLOADED.
622 * objfiles.h (OBJF_SHARED): Update comment.
623 (userloaded_objfile_contains_address_p): Rename to ...
624 (shared_objfile_contains_address_p): ... this, and update
626 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
628 (remove_symbol_file_command): Skip objfiles that don't have
631 2014-06-16 Tom Tromey <tromey@redhat.com>
633 * minsyms.h (prim_record_minimal_symbol)
634 (prim_record_minimal_symbol_and_info): Update comments.
636 2014-06-14 Eli Zaretskii <eliz@gnu.org>
638 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
639 or --without-guile, according to how GDB was built.
641 2014-06-13 Tom Tromey <tromey@redhat.com>
643 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
645 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
647 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
649 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
650 help_list.Pass all_commands, not -1, to help_list.
651 * cli/cli-dump.c (dump_command, append_command)
652 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
653 (binary_dump_command, binary_append_command): Pass all_commands,
654 not -1, to help_list.
655 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
657 * valprint.c (set_print, set_print_raw): Pass all_commands, not
659 * typeprint.c (set_print_type): Pass all_commands, not -1, to
661 * top.c (set_history): Pass all_commands, not -1, to help_list.
662 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
663 all_commands, not -1, to help_list.
664 * symfile.c (overlay_command): Pass all_commands, not -1, to
666 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
668 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
670 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
672 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
673 not -1, to help_list.
674 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
675 not -1, to help_list.
676 * maint.c (maintenance_command, maintenance_info_command)
677 (maintenance_print_command, maintenance_set_cmd): Pass
678 all_commands, not -1, to help_list.
679 * macrocmd.c (macro_command): Pass all_commands, not -1, to
681 * language.c (set_check): Pass all_commands, not -1, to help_list.
682 * infcmd.c (unset_command): Pass all_commands, not -1, to
684 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
686 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
688 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
690 * breakpoint.c (save_command): Pass all_commands, not -1, to
692 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
693 all_commands, not -1, to help_list.
695 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
697 * regcache.c (struct register_to_invalidate): New structure.
698 (do_register_invalidate, make_cleanup_regcache_invalidate): New
700 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
702 2014-06-12 Yao Qi <yao@codesourcery.com>
704 * varobj.c (varobj_get_num_children): Call
706 (varobj_list_children): Likewise.
707 (varobj_update): Likewise. Update comments.
709 2014-06-12 Yao Qi <yao@codesourcery.com>
711 * varobj.c (varobj_pretty_printed_p): Rename to ...
712 (varobj_is_dynamic_p): ... this. New function.
713 * varobj.h (varobj_pretty_printed_p): Remove declaration.
714 (varobj_is_dynamic_p): Declare.
715 * mi/mi-cmd-var.c (print_varobj): All callers updated.
716 (mi_print_value_p, varobj_update_one): Likewise.
718 2014-06-12 Pedro Alves <pedro@codesourcery.com>
719 Yao Qi <yao@codesourcery.com>
721 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
722 (varobj_get_iterator): Wrap up code for pretty-printer by
723 "#if HAVE_PYTHON" and "#endif".
724 (update_dynamic_varobj_children): Likewise.
726 2014-06-12 Pedro Alves <pedro@codesourcery.com>
727 Yao Qi <yao@codesourcery.com>
729 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
730 gdb_python_initialized is false. Move some code from varobj.c.
731 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
732 * varobj.c: Move "varobj-iter.h" inclusion earlier.
733 (struct varobj_item): Moved to varobj-iter.h".
734 (varobj_clear_saved_item): New function.
735 (update_dynamic_varobj_children): Move python-related code to
737 (free_variable): Call varobj_clear_saved_item and
740 2014-06-12 Pedro Alves <pedro@codesourcery.com>
741 Yao Qi <yao@codesourcery.com>
743 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
744 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
745 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
746 (py-varobj.o): New rule.
747 * python/py-varobj.c: New file.
748 * python/python-internal.h (py_varobj_get_iterator): Declare.
749 * varobj-iter.h: New file.
750 * varobj.c: Include "varobj-iter.h"
751 (struct varobj) <child_iter>: Change its type from "PyObject *"
752 to "struct varobj_iter *".
753 <saved_item>: Likewise.
754 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
755 [HAVE_PYTHON] (varobj_get_iterator): New function.
756 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
757 python-specific code to python/py-varobj.c.
758 (install_visualizer): Call varobj_iter_delete instead of
760 * varobj.h (varobj_ensure_python_env): Declare.
762 2014-06-12 Yao Qi <yao@codesourcery.com>
764 * varobj.c (struct varobj_item): New structure.
765 (create_child_with_value): Update declaration.
766 (varobj_add_child): Replace arguments 'name' and 'value' with
767 'item'. All callers updated.
768 (install_dynamic_child): Likewise.
769 (update_dynamic_varobj_children): Likewise.
770 (varobj_add_child): Likewise.
771 (create_child_with_value): Likewise.
773 2014-06-11 Joel Brobecker <brobecker@adacore.com>
775 * NEWS: Create a new section for the next release branch.
776 Rename the section of the current branch, now that it has
779 2014-06-11 Joel Brobecker <brobecker@adacore.com>
781 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
782 * version.in: Bump version to 7.8.50.DATE-cvs.
784 2014-06-11 Pedro Alves <palves@redhat.com>
787 * ser-mingw.c (net_windows_socket_check_pending): New function.
788 (net_windows_select_thread): Ignore spurious wakeups. Use
789 net_windows_socket_check_pending.
790 (net_windows_wait_handle): Check for pending events with
791 ioctlsocket, through net_windows_socket_check_pending, instead of
792 checking the socket's event.
794 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
796 * python/python-internal.h (gdb_PyObject_GetAttrString)
797 (gdb_PyObject_HasAttrString): New inline function definitions.
798 * py-value.c (get_field_flag): Remove the now unnecessary cast to
799 char * of the second argument to PyObject_GetAttrString.
801 2014-06-10 Joel Brobecker <brobecker@adacore.com>
803 * serial.c (serial_write): Fix index of character to be printed
804 in call to serial_logchar when serial debug traces are enabled.
806 2014-06-10 Joel Brobecker <brobecker@adacore.com>
808 * gdbtypes (resolve_dynamic_range): Add function description.
810 2014-06-09 Pedro Alves <palves@redhat.com>
812 * linux-nat.c (linux_child_follow_fork): Initialize status with
813 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
814 inner block. Only pass the signal to PTRACE_DETACH if in pass
817 2014-06-09 Gary Benson <gbenson@redhat.com>
819 * common/signals.c (gdb_signal_from_host): Reorder to separate
820 the always-available ANSI-standard signals from the signals that
822 (do_gdb_signal_to_host): Likewise.
823 * proc-events.c (signal_table): Likewise.
825 2014-06-08 Hui Zhu <hui@codesourcery.com>
827 * common/linux-ptrace.c (linux_disable_event_reporting): New
829 * common/linux-ptrace.h (linux_disable_event_reporting): New
831 * linux-nat.c (linux_child_follow_fork): Do a single step before
834 2014-06-07 Keith Seitz <keiths@redhat.com>
838 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
839 from symbol_matches_domain in symtab.c. All local callers
840 of symbol_matches_domain updated.
841 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
842 search STRUCT_DOMAIN.
843 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
844 independently. standard_lookup will do that automatically.
845 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
846 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
847 (cp_lookup_symbol_in_namespace): Likewise.
848 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
849 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
850 may return a STRUCT_DOMAIN match.
851 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
852 * cp-support.c: Include language.h.
853 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
855 * psymtab.c (match_partial_symbol): Compare the requested
856 domain with the symbol's domain directly.
857 (lookup_partial_symbol): Likewise.
858 * symtab.c (lookup_symbol_in_language): Explain when/why
859 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
860 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
861 appropriate languages.
862 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
863 and moved to ada-lang.c
864 (lookup_block_symbol): Explain that this function only returns
865 symbol matching the requested DOMAIN.
866 Compare the requested domain with the symbol's domain directly.
867 (iterate_over_symbols): Compare the requested domain with the
868 symbol's domain directly.
869 * symtab.h (symbol_matches_domain): Remove.
871 2014-06-06 Doug Evans <xdje42@gmail.com>
873 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
874 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
875 (gdbscm_guile_version_is_at_least): Declare.
876 (gdbscm_scm_string_to_int): Declare.
877 * guile/guile.c (gdbscm_guile_major_version): New global.
878 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
879 (guile_datadir): New static global.
880 (gdbscm_guile_data_directory): New function.
881 (initialize_scheme_side): Update.
882 (misc_guile_functions): Add guile-data-directory.
883 (initialize_gdb_module): Fetch guile version number.
884 * guile/lib/gdb.scm: Remove call to add-to-load-path.
885 * guile/lib/gdb/init.scm (%initialize!): Ditto.
886 * guile/lib/gdb/boot.scm: Use guile-data-directory.
887 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
889 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
890 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
891 * guile/scm-value.c (gdbscm_value_to_string): Only call
892 scm_port_conversion_strategy if Guile version >= 2.0.6.
894 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
896 * main.c (print_gdb_help): Add -q and --silent.
898 2014-06-06 Gary Benson <gbenson@redhat.com>
900 * common/signals.c: Remove preprocessor conditionals for
901 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
903 * proc-events.c: Likewise.
905 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
907 * symfile.c (symfile_free_objfile): Remove restriction to
909 * symfile-mem.c (symbol_file_add_from_memory): Call
910 add_target_sections_of_objfile.
912 2014-06-05 Ludovic Courtès <ludo@gnu.org>
914 * guile/scm-value.c (gdbscm_history_append_x): Use
915 'vlscm_get_value_smob_arg_unsafe' instead of
916 'vlscm_scm_to_value'.
918 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
921 * utils.c (printchar): Don't escape at all if quoter is NUL.
922 Update function documentation to clarify effect of parameter
924 * remote.c (escape_buffer): Pass '\\' as the quoter to
926 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
928 (mi_solib_unloaded): Same.
930 2014-06-05 Joel Brobecker <brobecker@adacore.com>
932 * development.sh: Delete.
933 * Makefile.in (config.status): Adjust dependency on development.sh.
934 * configure.ac: Adjust development.sh source call.
935 * configure: Regenerate.
937 2014-06-04 Doug Evans <xdje42@gmail.com>
939 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
940 is_scheme_bkpt, spec.
941 (bpscm_make_breakpoint_smob): Initialize new members.
942 (gdbscm_create_breakpoint_x): Split into two ...
943 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
944 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
945 (scheme_function breakpoint_functions): Update.
946 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
947 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
948 register-breakpoint!.
950 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
953 * mem-break.c (z_type_supported): Return zero if
954 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
956 2014-06-04 Tom Tromey <tromey@redhat.com>
958 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
959 value_from_contents_and_address_unresolved.
960 (ada_template_to_fixed_record_type_1): Likewise.
961 (ada_which_variant_applies): Likewise.
962 * value.h (value_from_contents_and_address_unresolved): Declare.
963 * value.c (value_from_contents_and_address_unresolved): New
965 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
966 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
967 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
969 2014-06-04 Tom Tromey <tromey@redhat.com>
971 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
973 2014-06-04 Tom Tromey <tromey@redhat.com>
975 * procfs.c (procfs_attach): Make "args" const.
976 * windows-nat.c (windows_attach): Make "args" const.
977 * nto-procfs.c (procfs_attach): Make "args" const.
978 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
979 * go32-nat.c (go32_attach): Make "args" const.
980 * gnu-nat.c (gnu_attach): Make "args" const.
981 * darwin-nat.c (darwin_attach): Make "args" const.
982 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
983 * linux-nat.c (linux_nat_attach): Make "args" const.
984 * remote.c (extended_remote_attach_1, extended_remote_attach):
986 * target.h (struct target_ops) <to_attach>: Make "args" const.
987 (find_default_attach): Likewise.
988 * utils.c (parse_pid_to_attach): Make "args" const.
989 * utils.h (parse_pid_to_attach): Update.
991 2014-06-04 Tom Tromey <tromey@redhat.com>
993 * target-delegates.c: Rebuild.
994 * target.c (default_thread_address_space): New function.
995 (target_thread_address_space): Simplify.
996 * target.h (struct target_ops) <to_thread_address_space>: Add
999 2014-06-04 Doug Evans <xdje42@gmail.com>
1001 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1003 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1005 * record-btrace.c: Include event-loop.h and inf-loop.h.
1006 (record_btrace_resume_exec_dir)
1007 (record_btrace_async_inferior_event_handler)
1008 (record_btrace_handle_async_inferior_event): New.
1009 (record_btrace_open): Create async event handler.
1010 (record_btrace_close): Delete async event handler.
1011 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1012 Mark async event handler.
1013 (record_btrace_execution_direction): New.
1014 (init_record_btrace_ops): Initialize to_execution_direction.
1016 2014-06-03 Doug Evans <xdje42@gmail.com>
1018 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1019 (gdbscm_make_parameter): Ditto.
1021 2014-06-03 Doug Evans <dje@google.com>
1023 * exec.c (exec_close_1): Call clear_section_table instead of
1024 resize_section_table.
1025 (clear_section_table): New function.
1026 (resize_section_table): Make static. Rename arg num_added to
1028 * exec.h (clear_section_table): Declare.
1029 (resize_section_table): Delete.
1030 * progspace.c (release_program_space): Call clear_section_table
1031 instead of resize_section_table.
1033 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1035 * NEWS (Python Scripting): Add entry about the new xmethods
1038 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1040 * python/py-xmethods.c: New file.
1041 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1042 (objfpy_dealloc): XDECREF on the new xmethods field.
1043 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1045 (objfpy_get_xmethods): New function.
1046 (objfile_getset): New entry 'xmethods'.
1047 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1048 (pspy_dealloc): XDECREF on the new xmethods field.
1049 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1051 (pspy_get_xmethods): New function.
1052 (pspace_getset): New entry 'xmethods'.
1053 * python/python-internal.h: Add declarations for new functions.
1054 * python/python.c (_initialize_python): Invoke
1055 gdbpy_initialize_xmethods.
1056 * python/lib/gdb/__init__.py (xmethods): New
1058 * python/lib/gdb/xmethod.py: New file.
1059 * python/lib/gdb/command/xmethods.py: New file.
1061 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1063 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1064 best match method returned by find_overload_match is an xmethod.
1065 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1066 the best matching operator returned by find_overload_match is an
1068 * valops.c: #include "extension.h".
1069 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1070 Return void. The list of matching source methods is returned in
1071 "fn_list" and a vector of matching debug method workers is
1072 returned in "xm_worker_vec". Update all callers.
1073 (value_find_oload_method_list): Likewise.
1074 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1075 non-NULL, then the index of the best matching method in this
1076 vector is returned. Update all callers.
1077 (find_overload_match): Include xmethods while performing overload
1080 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1082 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1083 * extension-priv.h (struct extension_language_ops): Add the
1085 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1086 get_matching_xmethod_workers, get_xmethod_argtypes,
1087 invoke_xmethod, free_xmethod_worker,
1088 free_xmethod_worker_vec): New functions.
1089 * extension.h: #include "common/vec.h".
1090 New function declarations.
1091 (struct xmethod_worker): New struct.
1092 (VEC (xmethod_worker_ptr)): New vector type.
1093 (xmethod_worker_ptr): New typedef.
1094 (xmethod_worker_vec): Likewise.
1095 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1097 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1098 (struct builtin_type): New field "xmethod".
1099 * valarith.c (value_ptradd): Assert that the value argument is not
1101 * valops.c (value_must_coerce_to_target): Return 0 for
1102 lval_xcallable values.
1103 * value.c (struct value): New field XM_WORKER in the field
1105 (value_address, value_raw_address): Return 0 for lval_xcallable
1107 (set_value_address): Assert that the value is not an
1109 (value_free): Free the associated xmethod worker when freeing
1110 lval_xcallable values.
1111 (set_value_component_location): Assert that the WHOLE value is not
1113 (value_of_xmethod, call_xmethod): New functions.
1114 * value.h: Declare "struct xmethod_worker".
1115 Declare new functions value_of_xmethod, call_xmethod.
1117 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1118 Pedro Alves <palves@redhat.com>
1120 PR breakpoints/17000
1121 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1122 New function, extracted from software_breakpoint_inserted_here_p.
1123 (software_breakpoint_inserted_here_p): Replace factored out code
1124 by call to find_non_raw_software_breakpoint_inserted_here.
1125 (bp_target_info_copy_insertion_state): New function.
1126 (bkpt_insert_location): Handle the case of a single-step
1127 breakpoint already inserted at the same address.
1128 (bkpt_remove_location): Handle the case of a single-step
1129 breakpoint still inserted at the same address.
1130 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1131 breakpoint already inserted at the same address.
1132 (deprecated_remove_raw_breakpoint): Handle the case of a
1133 non-raw breakpoint still inserted at the same address.
1134 (find_single_step_breakpoint): New function, extracted from
1135 single_step_breakpoint_inserted_here_p.
1136 (find_single_step_breakpoint): New function,
1137 factored out from single_step_breakpoint_inserted_here_p.
1138 (single_step_breakpoint_inserted_here_p): Reimplement.
1140 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1142 Pushed by Joel Brobecker <brobecker@adacore.com>
1143 * source.c (show_substitute_path_command): Fix display of matching
1146 2014-06-03 Gary Benson <gbenson@redhat.com>
1148 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1150 2014-06-02 Doug Evans <xdje42@gmail.com>
1152 Add parameter support for Guile.
1153 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1154 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1155 (scm-param.o): New rule.
1156 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1157 (gdbscm_misc_error): Declare.
1158 (gdbscm_canonicalize_command_name): Declare.
1159 (gdbscm_scm_to_host_string): Declare.
1160 (gdbscm_scm_from_host_string): Declare.
1161 (gdbscm_initialize_parameters): Declare.
1162 * guile/guile.c (initialize_gdb_module): Call
1163 gdbscm_initialize_parameters.
1164 * guile/lib/gdb.scm: Export parameter symbols.
1165 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1166 cmdscm_canonicalize_name and made public. All callers updated.
1167 * guile/scm-exception.c (gdbscm_misc_error): New function.
1168 * guile/scm-param.c: New file.
1169 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1170 (gdbscm_scm_to_host_string): New function.
1171 (gdbscm_scm_from_host_string): New function.
1172 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1174 2014-06-02 Doug Evans <xdje42@gmail.com>
1176 Add command support for Guile.
1177 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1178 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1179 (scm-cmd.o): New rule.
1180 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1181 (gdbscm_user_error_p): Declare.
1182 (gdbscm_parse_command_name): Declare.
1183 (gdbscm_valid_command_class_p): Declare.
1184 (gdbscm_initialize_commands): Declare.
1185 * guile/guile.c (initialize_gdb_module): Call
1186 gdbscm_initialize_commands.
1187 * guile/lib/gdb.scm: Export command symbols.
1188 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1189 (throw-user-error): New function.
1190 * guile/scm-cmd.c: New file.
1191 * guile/scm-exception.c (user_error_symbol): New static global.
1192 (gdbscm_user_error_p): New function.
1193 (gdbscm_initialize_exceptions): Set user_error_symbol.
1194 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1196 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1198 * top.c (command_loop): Handle comments here...
1199 (command_line_input): ... not here.
1201 2014-06-02 Doug Evans <xdje42@gmail.com>
1203 Add progspace support for Guile.
1204 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1205 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1206 (scm-progspace.o): New rule.
1207 * guile/guile-internal.h (pspace_smob): New typedef.
1208 (psscm_pspace_smob_pretty_printers): Declare.
1209 (psscm_pspace_smob_from_pspace): Declare.
1210 (psscm_scm_from_pspace): Declare.
1211 * guile/guile.c (initialize_gdb_module): Call
1212 gdbscm_initialize_pspaces.
1213 * guile/lib/gdb.scm: Export progspace symbols.
1214 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1216 (append-pretty-printer!): Ditto.
1217 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1219 * guile/scm-progspace.c: New file.
1221 2014-06-03 Alan Modra <amodra@gmail.com>
1223 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1224 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1226 2014-06-02 Doug Evans <dje@google.com>
1228 Add support for skeletonless type units.
1229 * dwarf2read.c (struct dwarf2_per_objfile): New member
1230 n_allocated_type_units.
1231 (struct dwarf2_per_objfile) <tu_stats>: New member
1232 nr_all_type_units_reallocs.
1233 (create_signatured_type_table_from_index): Initialize
1234 n_allocated_type_units
1235 (create_all_type_units): Ditto.
1236 (add_type_unit): Move up in file. New arg slot.
1237 All callers updated. Increase space for all_type_units more
1239 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1240 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1241 (lookup_dwp_signatured_type): Ditto.
1242 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1243 All callers updated.
1244 (build_type_psymtabs_1): Leave type_unit_groups as
1245 NULL if no TUs present.
1246 (print_tu_stats): New function.
1247 (process_skeletonless_type_unit): New function.
1248 (process_dwo_file_for_skeletonless_type_units): New
1250 (process_skeletonless_type_units): New function.
1251 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1252 Call print tu_stats if debugging enabled.
1254 2014-06-02 Pedro Alves <palves@redhat.com>
1256 * breakpoint.c (build_target_command_list): Don't build a command
1257 list if we have any duplicate location that isn't a dprintf.
1259 2014-06-02 Pedro Alves <palves@redhat.com>
1261 * breakpoint.c (dprintf_breakpoint_hit): New function.
1262 (initialize_breakpoint_ops): Install it as dprintf's
1263 breakpoint_hit method.
1265 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1267 * source.c (substitute_path_rule_matches): Simplify using
1268 filename_ncmp instead of FILENAME_CMP.
1270 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1272 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1274 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1276 * configure.ac: When Guile is available, check for the
1277 availability of 'scm_new_smob'.
1278 * configure, config.h.in: Regenerate.
1279 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1282 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1284 * frame.c (struct frame_info): Add stop_string field.
1285 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1286 (get_prev_frame_always): Old content moved into
1287 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1288 TRY_CATCH, handle MEMORY_ERROR exceptions.
1289 (frame_stop_reason_string): New function definition.
1290 * frame.h (unwind_stop_reason_to_string): Extend comment to
1291 mention frame_stop_reason_string.
1292 (frame_stop_reason_string): New function declaration.
1293 * stack.c (frame_info): Switch to frame_stop_reason_string.
1294 (backtrace_command_1): Switch to frame_stop_reason_string.
1295 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1296 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1297 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1299 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1301 * frame.c (frame_stop_reason_string): Rename to ...
1302 (unwind_stop_reason_to_string): this.
1303 * frame.h (frame_stop_reason_string): Rename to ...
1304 (unwind_stop_reason_to_string): this.
1305 * stack.c (frame_info): Update call to frame_stop_reason_string.
1306 (backtrace_command_1): Likewise.
1307 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1308 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1310 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1312 * frame.c (remove_prev_frame): New function.
1313 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1316 2014-05-29 Pedro Alves <palves@redhat.com>
1318 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1319 and make it const. When a single-step decays to a continue,
1320 clear 'step', not 'hw_step'. Pass whether the caller wanted
1321 to step to user_visible_resume_ptid, not what we ask the
1324 2014-05-29 Pedro Alves <palves@redhat.com>
1326 * infrun.c (process_event_stop_test, handle_step_into_function)
1327 (handle_step_into_function_backward): Adjust.
1328 Don't set the even thread's stop_step and call stop_waiting before
1329 calling end_stepping_range. Instead do that ...
1330 (end_stepping_range): ... here. Take an ecs pointer parameter.
1332 2014-05-29 Pedro Alves <palves@redhat.com>
1334 * infrun.c (stop_stepping): Rename to ...
1335 (stop_waiting): ... this.
1336 (proceed): Update comment.
1337 (process_event_stop_test, handle_inferior_event)
1338 (handle_signal_stop, handle_step_into_function)
1339 (handle_step_into_function_backward): Update.
1341 2014-05-29 Pedro Alves <palves@redhat.com>
1343 * infcall.c (run_inferior_call): Don't check whether the current
1344 thread is running after the proceed call.
1346 2014-05-29 Pedro Alves <palves@redhat.com>
1347 Tom Tromey <tromey@redhat.com>
1349 * NEWS: Mention "maint set target-async", "set mi-async", and that
1350 background execution commands are now always available.
1351 * target.h (target_async_permitted): Update comment.
1352 * target.c (target_async_permitted, target_async_permitted_1):
1354 (set_target_async_command): Rename to ...
1355 (maint_set_target_async_command): ... this.
1356 (show_target_async_command): Rename to ...
1357 (maint_show_target_async_command): ... this.
1358 (_initialize_target): Adjust.
1359 * infcmd.c (prepare_execution_command): Make extern.
1360 * inferior.h (prepare_execution_command): Declare.
1361 * infrun.c (set_observer_mode): Leave target async alone.
1362 * mi/mi-interp.c (mi_interpreter_init): Install
1363 mi_on_sync_execution_done as sync_execution_done observer.
1364 (mi_on_sync_execution_done): New function.
1365 (mi_execute_command_input_handler): Don't print the prompt if we
1366 just started a synchronous command with an async target.
1367 (mi_on_resume): Check sync_execution before printing prompt.
1368 * mi/mi-main.h (mi_async_p): Declare.
1369 * mi/mi-main.c: Include gdbcmd.h.
1370 (mi_async_p): New function.
1371 (mi_async, mi_async_1): New globals.
1372 (set_mi_async_command, show_mi_async_command, mi_async): New
1374 (exec_continue): Call prepare_execution_command.
1375 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1376 (mi_execute_async_cli_command): Use mi_async_p.
1377 (_initialize_mi_main): Install "set mi-async". Make
1378 "target-async" a deprecated alias.
1380 2014-05-29 Pedro Alves <palves@redhat.com>
1382 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1383 (_initialize_cli_interp): Adjust.
1384 * event-loop.c: Include "observer.h".
1385 (start_event_loop): Notify 'command_error' observers instead of
1386 calling display_gdb_prompt. Remove FIXME comment.
1387 * event-top.c (display_gdb_prompt): Remove call into the
1389 * inf-loop.c: Include "observer.h".
1390 (inferior_event_handler): Notify 'command_error' observers instead
1391 of calling display_gdb_prompt.
1392 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1393 observers instead of calling display_gdb_prompt.
1394 * interps.c (interp_set): Don't call display_gdb_prompt.
1395 (current_interp_display_prompt_p): Delete.
1396 * interps.h (interp_prompt_p): Delete declaration.
1397 (interp_prompt_p_ftype): Delete.
1398 (struct interp_procs) <prompt_proc_p>: Delete field.
1399 (current_interp_display_prompt_p): Delete declaration.
1400 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1401 (_initialize_mi_interp): Adjust.
1402 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1403 'command_error' observers.
1404 (tui_on_sync_execution_done, tui_on_command_error): New
1406 (tui_display_prompt_p): Delete.
1407 (_initialize_tui_interp): Adjust.
1409 2014-05-29 Pedro Alves <palves@redhat.com>
1412 * cli/cli-interp.c: Include infrun.h and observer.h.
1413 (cli_uiout, cli_interp): New globals.
1414 (cli_on_signal_received, cli_on_end_stepping_range)
1415 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1417 (cli_interpreter_init): Install them as 'end_stepping_range',
1418 'signal_received' 'signal_exited', 'exited' and 'no_history'
1420 (_initialize_cli_interp): Remove cli_interp local.
1421 * infrun.c (handle_inferior_event): Call the several stop reason
1422 observers instead of printing the stop reason directly.
1423 (end_stepping_range): New function.
1424 (print_end_stepping_range_reason, print_signal_exited_reason)
1425 (print_exited_reason, print_signal_received_reason)
1426 (print_no_history_reason): Make static, and add an uiout
1427 parameter. Print to that instead of to CURRENT_UIOUT.
1428 * infrun.h (print_end_stepping_range_reason)
1429 (print_signal_exited_reason, print_exited_reason)
1430 (print_signal_received_reason print_no_history_reason): New
1432 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1434 <cli_uiout>: New field.
1435 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1436 uiout for CLI output. Install 'signal_received',
1437 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1439 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1440 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1441 (mi_on_no_history): New functions.
1442 (ui_out_free_cleanup): Delete function.
1443 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1444 instead use the one already stored in the MI interpreter data.
1445 (mi_ui_out): Adjust.
1446 * tui/tui-interp.c: Include infrun.h and observer.h.
1447 (tui_interp): New global.
1448 (tui_on_signal_received, tui_on_end_stepping_range)
1449 (tui_on_signal_exited, tui_on_exited)
1450 (tui_on_no_history): New functions.
1451 (tui_init): Install them as 'end_stepping_range',
1452 'signal_received' 'signal_exited', 'exited' and 'no_history'
1454 (_initialize_tui_interp): Delete tui_interp local.
1456 2014-05-29 Pedro Alves <palves@redhat.com>
1459 * linux-nat.c (linux_nat_resume_callback): Rename the second
1460 parameter to 'except'. Skip LP if it points to EXCEPT.
1461 (linux_nat_resume): Don't mark the event lwp as not stopped
1462 before resuming sibling lwps. Instead ask
1463 linux_nat_resume_callback to skip the event lwp. Mark it as not
1464 stopped after actually resuming it.
1465 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1467 (wait_lwp): Mark the lwp as stopped here.
1468 (stop_wait_callback): Mark the lwp as not stopped right after
1469 resuming it. Don't mark lwps as stopped here.
1470 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1471 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1473 2014-05-29 Pedro Alves <palves@redhat.com>
1476 * infrun.c (resume): Determine how much to resume depending on
1477 whether the caller wanted a step, not whether we can hardware step
1478 the target. Mark all threads that we intend to run as running,
1479 unless we're calling an inferior function.
1480 (normal_stop): If the thread is running an infcall, don't finish
1482 * target.c (target_resume): Don't mark threads as running here.
1484 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1486 * serial.c (_initialize_serial): Remove support for
1487 the "set remotebaud" and "show remotebaud" commands.
1488 * NEWS: Add entry documenting the removal of that command.
1490 2014-05-28 Yao Qi <yao@codesourcery.com>
1492 * charset.c: Fix typo in comments.
1494 2014-05-27 Gary Benson <gbenson@redhat.com>
1496 * utils.c (internal_vproblem): Prompt for a bug report.
1498 2014-05-26 Andy Wingo <wingo@igalia.com>
1500 * guile/scm-arch.c (arscm_mark_arch_smob):
1501 * guile/scm-block.c (bkscm_mark_block_smob)
1502 (bkscm_mark_block_syms_progress_smob):
1503 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1504 * guile/scm-exception.c (exscm_mark_exception_smob):
1505 * guile/scm-frame.c (frscm_mark_frame_smob):
1506 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1507 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1508 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1509 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1510 (ppscm_mark_pretty_printer_worker_smob):
1511 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1512 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1513 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1514 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1516 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1519 2014-05-26 Andy Wingo <wingo@igalia.com>
1520 Doug Evans <xdje42@gmail.com>
1522 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1523 empty_base_class. All uses updated.
1524 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1525 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1527 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1528 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1529 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1530 (gdbscm_gsmob_has_property_p, add_property_name)
1531 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1532 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1533 (gdb-object-has-property?, gdb-object-properties): Remove.
1534 (gdb-object-kind): Renamed from gsmob-kind.
1536 2014-05-26 Andy Wingo <wingo@igalia.com>
1538 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1539 * configure: Regenerate.
1541 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1543 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1545 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1547 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1548 (replay_memory_access_read_only, replay_memory_access_read_write)
1549 (replay_memory_access_types, replay_memory_access)
1550 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1551 (cmd_set_record_btrace, cmd_show_record_btrace)
1552 (cmd_show_replay_memory_access): New.
1553 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1554 (record_btrace_remove_breakpoint): Replace
1555 record_btrace_allow_memory_access with replay_memory_access.
1556 (_initialize_record_btrace): Add commands.
1557 * NEWS: Announce it.
1559 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1561 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1563 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1565 * MAINTAINERS (Write After Approval): Move self back from
1568 2014-05-22 Pedro Alves <palves@redhat.com>
1570 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1571 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1572 (disable_randomization, enum exec_direction_kind)
1573 (execution_direction, stop_registers, start_remote)
1574 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1575 (wait_for_inferior, normal_stop, get_last_target_status)
1576 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1577 (insert_step_resume_breakpoint_at_sal)
1578 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1579 (set_step_info, print_stop_event, signal_stop_state)
1580 (signal_print_state, signal_pass_state, signal_stop_update)
1581 (signal_print_update, signal_pass_update)
1582 (update_signals_program_target, clear_exit_convenience_vars)
1583 (displaced_step_dump_bytes, update_observer_mode)
1584 (signal_catch_update, gdb_signal_from_command): Move
1586 * infrun.h: ... to this new file.
1587 * amd64-tdep.c: Include infrun.h.
1588 * annotate.c: Include infrun.h.
1589 * arch-utils.c: Include infrun.h.
1590 * arm-linux-tdep.c: Include infrun.h.
1591 * arm-tdep.c: Include infrun.h.
1592 * break-catch-sig.c: Include infrun.h.
1593 * breakpoint.c: Include infrun.h.
1594 * common/agent.c: Include infrun.h instead of inferior.h.
1595 * corelow.c: Include infrun.h.
1596 * event-top.c: Include infrun.h.
1597 * go32-nat.c: Include infrun.h.
1598 * i386-tdep.c: Include infrun.h.
1599 * inf-loop.c: Include infrun.h.
1600 * infcall.c: Include infrun.h.
1601 * infcmd.c: Include infrun.h.
1602 * infrun.c: Include infrun.h.
1603 * linux-fork.c: Include infrun.h.
1604 * linux-nat.c: Include infrun.h.
1605 * linux-thread-db.c: Include infrun.h.
1606 * monitor.c: Include infrun.h.
1607 * nto-tdep.c: Include infrun.h.
1608 * procfs.c: Include infrun.h.
1609 * record-btrace.c: Include infrun.h.
1610 * record-full.c: Include infrun.h.
1611 * remote-m32r-sdi.c: Include infrun.h.
1612 * remote-mips.c: Include infrun.h.
1613 * remote-notif.c: Include infrun.h.
1614 * remote-sim.c: Include infrun.h.
1615 * remote.c: Include infrun.h.
1616 * reverse.c: Include infrun.h.
1617 * rs6000-tdep.c: Include infrun.h.
1618 * s390-linux-tdep.c: Include infrun.h.
1619 * solib-irix.c: Include infrun.h.
1620 * solib-osf.c: Include infrun.h.
1621 * solib-svr4.c: Include infrun.h.
1622 * target.c: Include infrun.h.
1623 * top.c: Include infrun.h.
1624 * windows-nat.c: Include infrun.h.
1625 * mi/mi-interp.c: Include infrun.h.
1626 * mi/mi-main.c: Include infrun.h.
1627 * python/py-threadevent.c: Include infrun.h.
1629 2014-05-22 Pedro Alves <palves@redhat.com>
1631 * infrun.c (handle_inferior_event): Store the exit code for
1632 --return-child-result here, instead of ...
1633 (print_exited_reason): ... here.
1635 2014-05-21 Pedro Alves <palves@redhat.com>
1638 * gdbthread.h (struct thread_control_state): New field
1640 * infrun.c (follow_fork): Copy the new thread control field to the
1642 (clear_proceed_status_thread): Clear the new thread control field.
1643 (proceed): Set the new thread control field.
1644 * interps.h (command_interp): Declare.
1645 * interps.c (command_interpreter): New global.
1646 (command_interp): New function.
1647 (interp_exec): Set `command_interpreter' while here.
1648 * cli-out.c (cli_uiout_dtor): New function.
1649 (cli_ui_out_impl): Install it.
1650 * mi/mi-interp.c: Include cli-out.h.
1651 (mi_cmd_interpreter_exec): Add comment.
1652 (restore_current_uiout_cleanup): New function.
1653 (ui_out_free_cleanup): New function.
1654 (mi_on_normal_stop): If finishing an execution command started by
1655 a CLI command, or any kind of breakpoint-like event triggered,
1656 print the stop event to the output (CLI) stream.
1657 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1659 2014-05-21 Pedro Alves <palves@redhat.com>
1661 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1662 current source line having changed.
1663 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1664 * infrun.c (normal_stop): Adjust call to
1665 set_current_sal_from_frame.
1666 * source.c (clear_lines_listed_range): New function.
1667 (set_current_source_symtab_and_line, identify_source_line): Clear
1668 the lines listed range.
1669 (line_info): Handle the first "info line" after the current source
1670 line having changed.
1671 * stack.c (print_stack_frame): Remove center handling.
1672 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1675 2014-05-21 Pedro Alves <palves@redhat.com>
1677 * inf-child.c (inf_child_mourn_inferior): New function.
1678 * inf-child.h (inf_child_mourn_inferior): New declaration.
1679 * darwin-nat.c (darwin_mourn_inferior): Use
1680 inf_child_mourn_inferior.
1681 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1682 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1683 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1684 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1685 * windows-nat.c (windows_mourn_inferior): Likewise.
1687 2014-05-21 Doug Evans <xdje42@gmail.com>
1689 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1691 2014-05-21 Doug Evans <xdje42@gmail.com>
1693 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1694 (gdbscm_out_of_range_error): Ditto.
1695 (gdbscm_memory_error): Ditto.
1696 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1697 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1698 (gdbscm_out_of_range_error): Update.
1699 (gdbscm_memory_error): Update.
1700 (gdbscm_scm_to_target_string_unsafe): Delete.
1702 2014-05-21 Pedro Alves <palves@redhat.com>
1704 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1706 (inf_child_open_target): New function.
1707 (inf_child_open): Use inf_child_open_target to push the target
1708 instead of erroring out.
1709 (inf_child_disconnect, inf_child_close)
1710 (inf_child_maybe_unpush_target): New functions.
1711 (inf_child_target): Install inf_child_disconnect and
1712 inf_child_close. Store a pointer to the returned object.
1713 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1715 * target.c (auto_connect_native_target): New global.
1716 (show_default_run_target): New function.
1717 (find_default_run_target): Return NULL if automatically connecting
1718 to the native target is disabled.
1719 (_initialize_target): Install set/show auto-connect-native-target.
1720 * NEWS: Mention "set auto-connect-native-target", and "target
1722 * linux-nat.c (super_close): New global.
1723 (linux_nat_close): Call super_close.
1724 (linux_nat_add_target): Store a pointer to the base class's
1726 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1727 inf_child_maybe_unpush.
1728 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1730 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1731 the inferior. Use inf_child_maybe_unpush_target.
1732 (inf_ttrace_attach): Don't push the target if it is already
1734 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1735 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1736 after mourning the inferior. Use inf_child_maybe_unpush_target.
1737 (darwin_attach_pid): Don't push the target if it is already
1739 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1740 mourning the inferior. Use inf_child_maybe_unpush_target.
1741 (gnu_detach): Use inf_child_maybe_unpush_target.
1742 * go32-nat.c (go32_create_inferior): Don't push the target if it
1744 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1745 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1746 (procfs_open): Rename to ...
1747 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1748 comments. Can target_preopen before changing node. Call
1749 inf_child_open_target to push the target explicitly.
1750 (procfs_attach): Don't push the target if it is already pushed.
1751 (procfs_detach): Use inf_child_maybe_unpush_target.
1752 (procfs_create_inferior): Don't push the target if it is already
1754 (nto_native_ops): New global.
1755 (procfs_open): Reimplement.
1756 (procfs_native_open): New function.
1757 (init_procfs_targets): Install procfs_native_open as to_open of
1758 "target native". Store a pointer to the "native" target in
1760 * procfs.c (procfs_attach): Don't push the target if it is already
1762 (procfs_detach): Use inf_child_maybe_unpush_target.
1763 (procfs_mourn_inferior): Only unpush the target after mourning the
1764 inferior. Use inf_child_maybe_unpush_target.
1765 (procfs_init_inferior): Don't push the target if it is already
1767 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1768 if it is already pushed.
1770 2014-05-21 Pedro Alves <palves@redhat.com>
1772 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1773 and "procfs" targets are now called "native" instead.
1775 2014-05-21 Pedro Alves <palves@redhat.com>
1777 * go32-nat.c (go32_open): Delete.
1778 (go32_target): Don't override the to_open method.
1780 2014-05-21 Pedro Alves <palves@redhat.com>
1782 * nto-procfs.c (procfs_can_run): New function.
1783 (nto_procfs_ops): New global.
1784 (init_procfs_targets): New, based on procfs_target. Install
1785 "target native" in addition to "target procfs".
1786 (_initialize_procfs): Call init_procfs_targets instead of adding
1789 2014-05-21 Pedro Alves <palves@redhat.com>
1791 * windows-nat.c (windows_target): Don't override to_shortname,
1792 to_longname or to_doc.
1794 2014-05-21 Pedro Alves <palves@redhat.com>
1796 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1799 2014-05-21 Pedro Alves <palves@redhat.com>
1801 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1802 to_shortname, to_longname or to_doc.
1804 2014-05-21 Pedro Alves <palves@redhat.com>
1806 * go32-nat.c (go32_target): Don't override to_shortname,
1807 to_longname or to_doc.
1809 2014-05-21 Pedro Alves <palves@redhat.com>
1811 * inf-child.c (inf_child_open): Remove mention of "child".
1812 (inf_child_target): Rename target to "native" instead of "child".
1814 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1816 * Makefile.in (SFILES): Delete "regset.c".
1817 (COMMON_OBS): Delete "regset.o".
1819 * regset.h (regset_alloc): Delete prototype.
1821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1823 * sparc-linux-tdep.c (sparc32_linux_gregset)
1824 (sparc32_linux_fpregset): New static regset structures.
1825 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1826 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1828 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1829 (sparc64_linux_fpregset): New static regset structures.
1830 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1831 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1832 New static regset structures.
1833 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1834 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1835 New static regset structures.
1836 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1837 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1838 New static regset structures.
1839 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1840 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1841 New static regset structures.
1842 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1846 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1847 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1848 register maps ("regmaps") from "*regset" to "*regmap". Do this
1849 for all regmap types and variables.
1850 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1851 (sparc32_linux_supply_core_gregset)
1852 (sparc32_linux_collect_core_gregset)
1853 (sparc32_linux_supply_core_fpregset)
1854 (sparc32_linux_collect_core_fpregset): Likewise.
1855 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1856 (sparc_gregmap, sparc_fpregmap): ... these.
1857 (sparc_supply_gregset, sparc_collect_gregset)
1858 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1859 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1860 (_initialize_sparc_nat): Rename regmaps.
1861 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1862 (sparc_gregmap, sparc_fpregmap): ... these.
1863 (sparc_supply_gregset, sparc_collect_gregset)
1864 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1865 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1867 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1868 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1870 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1872 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1873 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1874 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1876 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1877 (sparc32_bsd_fpregset): Rename to...
1878 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1879 (sparc32_bsd_fpregmap): ... these.
1880 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1881 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1882 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1883 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1884 (struct sparc_gregmap, struct sparc_fpregmap)
1885 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1886 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1887 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1888 (sparc32_supply_regset, sparc32_collect_gregset)
1889 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1891 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1892 (sparc64_linux_ptrace_gregmap): ... this.
1893 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1894 (_initialize_sparc64_linux_nat): Rename regmaps.
1895 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1896 (sparc64_linux_core_gregmap): ... this.
1897 (sparc64_linux_supply_core_gregset)
1898 (sparc64_linux_collect_core_gregset)
1899 (sparc64_linux_supply_core_fpregset)
1900 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1901 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1902 (sparc64_sol2_fpregset): Rename to...
1903 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1904 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1905 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1907 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1908 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1909 (sparc64_bsd_fpregset): Rename to...
1910 (struct sparc_gregmap, sparc64_sol2_gregmap)
1911 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1912 (sparc64_bsd_fpregmap): ... these.
1913 (sparc64_supply_gregset, sparc64_collect_gregset)
1914 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1916 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1917 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1918 (sparc64fbsd_gregmap): ... this.
1919 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1920 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1922 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1923 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1924 (sparc64nbsd_collect_fpregset): Likewise.
1925 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1926 (sparc64nbsd_gregmap): ... this.
1927 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1929 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1930 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1931 (sparc64obsd_gregmap): ... this.
1932 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1934 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1935 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1936 (sparc32nbsd_gregmap): ... this.
1937 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1940 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1942 * score-tdep.c (score7_linux_gregset): New static regset
1944 (score7_linux_regset_from_core_section): Remove dynamic regset
1946 (score_gdbarch_init): Drop allocation of tdep structure.
1947 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1949 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1951 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1953 (am33_regset_from_core_section): Remove dynamic regset
1956 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1959 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1961 (mips_linux_regset_from_core_section): Remove dynamic regset
1963 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1964 'gregset64', 'fpregset', and 'fpregset64'.
1965 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1966 deleted tdep fields.
1968 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1970 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1972 (amd64_regset_from_core_section): Remove dynamic regset
1974 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1976 (amd64obsd_regset_from_core_section): Remove dynamic regset
1978 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1980 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1981 x86-common regset supply function.
1982 * i386-tdep.c (i386_collect_gregset): Make static.
1983 (i386_gregset): New global regset structure.
1984 (i386_fpregset, i386_xstateregset): New static regset structures.
1985 (i386_regset_from_core_section): Remove dynamic regset
1987 (i386_gdbarch_init): Remove initialization of tdep fields
1988 'gregset', 'fpregset', and 'xstateregset'.
1989 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1990 'fpregset', and 'xstateregset'.
1991 (i386_collect_gregset): Remove prototype.
1992 (i386_gregset): New declaration.
1993 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1995 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2000 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2001 (arm_linux_vfpregset): New static regset structures.
2002 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2004 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2005 and 'vfpregset' fields.
2007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2010 (aarch64_linux_fpregset): New static regset structures.
2011 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2012 of regset structures.
2013 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2016 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2018 * regset.h (struct regset): Remove gdbarch field.
2019 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2020 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2021 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2023 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2024 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2025 (ppc32_linux_vsxregset): Likewise.
2026 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2027 via the regcache instead of the regset.
2028 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2029 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2030 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2031 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2034 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2036 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2037 Constify structures.
2038 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2039 (alphanbsd_aout_gregset): Likewise.
2040 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2041 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2043 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2044 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2046 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2047 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2048 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2049 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2050 * m88k-tdep.c (m88k_gregset): Likewise.
2051 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2052 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2053 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2054 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2055 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2056 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2057 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2058 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2059 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2061 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2062 * sh-tdep.h (sh_corefile_gregset): Likewise.
2063 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2064 * vax-tdep.c (vax_gregset): Likewise.
2066 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2068 Fix TLS access for -static -pthread.
2069 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2070 (try_thread_db_load_1): Initialize it.
2071 (thread_db_get_thread_local_address): Call it if LM is zero.
2072 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2073 * target.h (struct target_ops) (to_get_thread_local_address): Add
2074 load_module_addr comment.
2076 2014-05-21 Pedro Alves <palves@redhat.com>
2078 * dcache.c (dcache_read_memory_partial): If reading the cache line
2079 fails, fallback to reading just the memory the caller wanted.
2081 2014-05-20 Doug Evans <dje@google.com>
2083 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2084 instead of get_current_arch.
2086 2014-05-20 Pedro Alves <palves@redhat.com>
2088 * NEWS: Mention that compare-sections now works with all targets.
2090 * remote.c (PACKET_qCRC): New enum value.
2091 (remote_verify_memory): Don't send qCRC if the target has no
2092 execution. Use packet_support/packet_ok. If the target doesn't
2093 support the qCRC packet, fallback to a deep memory copy.
2094 (compare_sections_command): Say "target image" instead of "remote
2096 (_initialize_remote): Add PACKET_qCRC to the list of config
2097 packets that have no associated command. Extend comment.
2098 * target.c (simple_verify_memory, default_verify_memory): New
2100 * target.h (struct target_ops) <to_verify_memory>: Default to
2101 default_verify_memory.
2102 (simple_verify_memory): New declaration.
2103 * target-delegates.c: Regenerate.
2105 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2107 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2109 2014-05-20 Hui Zhu <hui@codesourcery.com>
2110 Yao Qi <yao@codesourcery.com>
2113 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2114 and change address of sp and pc.
2116 2014-05-19 Tom Tromey <tromey@redhat.com>
2118 * gdbtypes.c (rank_function): Use XNEWVEC.
2119 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2121 2014-05-19 Doug Evans <dje@google.com>
2123 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2124 build_type_unit_groups and moved closer to only caller. Remove
2125 arguments. All references updated. Remove outdated .gdb_index
2127 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2128 build_type_psymtabs_1.
2130 2014-05-19 Doug Evans <dje@google.com>
2132 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2133 n_type_unit_groups, all_type_unit_groups. All uses removed.
2134 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2135 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2136 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2137 (add_type_unit_group_to_table): Delete.
2139 2014-05-19 Doug Evans <dje@google.com>
2141 * eval.c (evaluate_subexp_standard): Add some comments.
2143 2014-05-17 Doug Evans <xdje42@gmail.com>
2145 * progspace.c (remove_program_space): Delete, unused.
2146 * progspace.h (remove_program_space): Ditto.
2148 2014-05-17 Doug Evans <xdje42@gmail.com>
2150 * inferior.c (prune_inferiors): Fix comment.
2151 (remove_inferior_command): Call prune_program_spaces.
2153 2014-05-16 Doug Evans <dje@google.com>
2155 New command line option -D.
2157 * main.c (set_gdb_data_directory): New function.
2158 (captured_main): Recognize -D. Flag error for --data-directory "".
2159 Call set_gdb_data_directory.
2160 (print_gdb_help): Print --data-directory, -D.
2161 * main.h (set_gdb_data_directory): Declare.
2162 * top.c (staged_gdb_datadir): New static global.
2163 (set_gdb_datadir): Call set_gdb_data_directory
2164 (show_gdb_datadir): New function.
2165 (init_main): Update init of data-directory parameter.
2167 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2169 Import the "dirfd" gnulib module.
2170 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2171 * gnulib/aclocal.m4: Update.
2172 * gnulib/config.in: Update.
2173 * gnulib/configure: Update.
2174 * gnulib/import/Makefile.am: Update.
2175 * gnulib/import/Makefile.in: Update.
2176 * gnulib/import/dirfd.c: New.
2177 * gnulib/import/m4/dirfd.m4: New.
2178 * gnulib/import/m4/gnulib-cache.m4: Update.
2179 * gnulib/import/m4/gnulib-comp.m4: Update.
2181 2014-05-16 Pierre Muller <muller@sourceware.org>
2182 Yao Qi <yao@codesourcery.com>
2184 * valprint.c (print_wchar): Move the code on checking whether
2185 W is a printable wide char to the default branch of switch
2186 statement below. Call wchar_printable instead of gdb_iswprint.
2188 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2190 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2191 ldr.w and ldrd instructions.
2193 2014-05-15 Doug Evans <dje@google.com>
2195 * dwarf2read.c (read_structure_type): Delete outdated comments.
2197 2014-05-14 Tom Tromey <tromey@redhat.com>
2199 * macrocmd.c (print_macro_definition): Reindent.
2201 2014-05-13 Doug Evans <xdje42@gmail.com>
2203 * python/py-cmd.c (cmdpy_completer): Add comment.
2204 (completers): Make const.
2206 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2208 * infrun.c (resume): Remove should_resume (unused). Move up
2209 declaration of resume_ptid.
2211 2014-05-13 Tom Tromey <tromey@redhat.com>
2213 * language.h (unop_type_check): Remove.
2214 (binop_type_check): Don't declare.
2216 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2218 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2219 call to regcache_raw_collect.
2221 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2223 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2224 mi_console->quote as the quoting character.
2226 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2228 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2230 2014-04-29 Tom Tromey <tromey@redhat.com>
2232 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2233 "show debug varobj".
2235 2014-05-07 Kyle McMartin <kyle@redhat.com>
2237 Pushed by Joel Brobecker <brobecker@adacore.com>.
2238 * aarch64-tdep.c (aarch64_software_single_step): New function.
2239 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2240 with aarch64_software_single_step.
2242 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2246 2014-05-05 Keith Seitz <keiths@redhat.com>
2248 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2249 variable or history value is successfully parsed.
2251 2014-05-05 Yao Qi <yao@codesourcery.com>
2252 Pedro Alves <palves@redhat.com>
2254 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2255 address of blocks that intersects the requested range. Trim
2256 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2258 * ctf.c (ctf_xfer_partial): Likewise.
2260 2014-05-05 Yao Qi <yao@codesourcery.com>
2262 * printcmd.c (display_command): Remove the check to
2263 target_has_execution.
2265 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2267 * ppcobsd-nat.c: Include "obsd-nat.h".
2268 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2270 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2272 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2274 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2275 and 16-bit signed and unsigned arguments. Update comment.
2276 (stap_parse_probe_arguments): Extend code to handle such
2277 arguments. Use warning instead of complaint to notify about
2278 unrecognized bitness.
2280 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2282 PR breakpoints/16889
2283 * stap-probe.c (stap_parse_probe_arguments): Simplify
2284 check for non-prefixed probes (i.e., probes whose
2285 arguments do not start with "N@"). Always set the
2286 argument type to a sane value.
2288 2014-05-01 David Taylor <dtaylor@emc.com>
2290 * remote.c (compare_sections_command): Add -r option to compare
2291 all loadable read-only sections.
2293 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2295 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2296 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2298 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2299 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2300 Remove unused CORE_ADDR argument. Update all callers.
2302 2014-04-29 Pedro Alves <palves@redhat.com>
2304 * remote.c (struct packet_config) <detect>: Extend comment.
2305 (add_packet_config_cmd): Don't set the config's detect or support
2307 (init_all_packet_configs): Also initialize the config's 'detect'
2309 (reset_all_packet_configs_support): New function.
2310 (remote_open_1): Call reset_all_packet_configs_support instead of
2311 init_all_packet_configs.
2312 (_initialize_remote): Initialize all packet configs. Assert that
2313 all packets have an associated command, except a few known
2316 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2318 * dwarf2read.c (read_subrange_type): Handle dynamic
2319 DW_AT_lower_bound attributes.
2321 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2323 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2324 dynamic bounds before computing its upper bound.
2325 (ada_discrete_type_low_bound): Same as above with the lower bound.
2327 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2329 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2330 range types. Adjust the array handling implementation to
2331 take advantage of this change.
2332 (resolve_dynamic_range): New function, mostly extracted from
2333 resolve_dynamic_bounds.
2334 (resolve_dynamic_array): New function, mostly extracted from
2335 resolve_dynamic_bounds.
2336 (resolve_dynamic_bounds): Delete.
2337 (resolve_dynamic_type): Reimplement. Add handling of
2338 TYPE_CODE_RANGE types.
2340 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2342 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2343 handling of parallel ___XA types.
2345 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2347 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2348 unnecessary second call to static_unwrap_type.
2350 2014-04-27 Hui Zhu <hui@codesourcery.com>
2352 * stack.c (print_frame_info): Call do_gdb_disassembly with
2353 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2355 2014-04-26 Doug Evans <xdje42@gmail.com>
2357 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2359 2014-04-25 Pedro Alves <palves@redhat.com>
2362 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2363 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2364 and newline from built string.
2365 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2366 (linux_ptrace_attach_fail_reason): ... this.
2367 * linux-nat.c (linux_nat_attach): Adjust to use
2368 linux_ptrace_attach_fail_reason.
2370 2014-04-25 Pedro Alves <palves@redhat.com>
2372 * remote.c (struct remote_state): Remove multi_process_aware,
2373 non_stop_aware, cond_tracepoints, cond_breakpoints,
2374 breakpoint_commands, fast_tracepoints, static_tracepoints,
2375 install_in_trace, disconnected_tracing,
2376 enable_disable_tracepoints, string_tracing, and
2377 augmented_libraries_svr4_read fields.
2378 (remote_multi_process_p): Move further below in the file.
2379 (struct packet_config): Add comments.
2380 (update_packet_config): Delete function.
2381 (show_packet_config_cmd): Use packet_config_support.
2382 (add_packet_config_cmd): Use NULL as set callback.
2383 (packet_ok): "set remote foo-packet"-style commands no longer
2384 change config->supported -- adjust.
2385 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2386 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2387 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2388 (PACKET_QNonStop, PACKET_multiprocess_feature)
2389 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2390 (PACKET_DisconnectedTracing_feature)
2391 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2392 (set_remote_protocol_packet_cmd): Delete function.
2393 (packet_config_support, packet_support): New functions.
2394 (set_remote_protocol_Z_packet_cmd): Don't call
2395 update_packet_config.
2396 (remote_query_attached, remote_pass_signals)
2397 (remote_program_signals, remote_threads_info)
2398 (remote_threads_extra_info, remote_start_remote): Use
2400 (remote_start_remote): Use packet_config_support and
2402 (init_all_packet_configs): Set all packets to unknown support,
2403 instead of calling update_packet_config.
2404 (remote_check_symbols): Use packet_support.
2405 (remote_supported_packet): Unconditionally set the packet config's
2407 (remote_multi_process_feature, remote_non_stop_feature)
2408 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2409 (remote_breakpoint_commands_feature)
2410 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2411 (remote_install_in_trace_feature)
2412 (remote_disconnected_tracing_feature)
2413 (remote_enable_disable_tracepoint_feature)
2414 (remote_string_tracing_feature)
2415 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2416 (remote_protocol_features): Adjust to use remote_supported_packet
2417 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2418 "ConditionalTracepoints", "ConditionalBreakpoints",
2419 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2420 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2421 "EnableDisableTracepoints", and "tracenz".
2422 (remote_query_supported): Use packet_support.
2423 (remote_open_1): Adjust.
2424 (extended_remote_attach_1): Use packet_support. Switch on the
2425 result of packet_ok instead of checking whether the packet ended
2427 (remote_vcont_resume): Use packet_support.
2428 (remote_resume, remote_stop_ns, fetch_register_using_p)
2429 (remote_prepare_to_store, store_register_using_P)
2430 (check_binary_download, remote_write_bytes): Use packet_support.
2431 (remote_vkill): Use packet_support. Switch on the result of
2432 packet_ok instead of checking whether the packet ended up
2434 (extended_remote_supports_disable_randomization): Use
2436 (extended_remote_run): Switch on the result of packet_ok instead
2437 of checking whether the packet ended up disabled.
2438 (remote_insert_breakpoint, remote_remove_breakpoint)
2439 (remote_insert_watchpoint, remote_remove_watchpoint)
2440 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2442 (remote_search_memory): Use packet_config_support.
2443 (remote_get_thread_local_address, remote_get_tib_address)
2444 (remote_hostio_send_command, remote_can_execute_reverse): Use
2446 (remote_supports_cond_tracepoints)
2447 (remote_supports_cond_breakpoints)
2448 (remote_supports_fast_tracepoints)
2449 (remote_supports_static_tracepoints)
2450 (remote_supports_install_in_trace)
2451 (remote_supports_enable_disable_tracepoint)
2452 (remote_supports_string_tracing)
2453 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2454 the packet config says the feature is enabled or disabled.
2455 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2456 (remote_get_trace_status): Use packet_support.
2457 (remote_set_disconnected_tracing): Adjust to check whether the
2458 feature is enabled with packet_support.
2459 (remote_set_trace_buffer_size, remote_use_agent)
2460 (remote_can_use_agent, remote_supports_btrace): Use
2462 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2463 Use packet_config_support.
2464 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2465 the packet config says the feature is enabled or disabled.
2466 (set_range_stepping): Use packet_support.
2468 2014-04-25 Tom Tromey <tromey@redhat.com>
2470 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2473 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2475 * NEWS: Mention support for C99 variable length arrays.
2477 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2479 * ada-lang.c (standard_exc): Expand introductory comment.
2481 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2482 Walfred Tedeschi <walfred.tedeschi@intel.com>
2484 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2486 (amd64_linux_read_description): Add code to handle AVX512 xstate
2487 mask and return respective tdesc.
2488 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2489 and features/i386/x32-avx512-linux.c.
2490 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2491 (amd64_linux_core_read_description): Add code to handle AVX512
2492 xstate mask and return respective tdesc.
2493 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2494 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2496 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2497 (tdesc_amd64_avx512_linux): New prototype.
2498 (tdesc_x32_avx512_linux): Likewise.
2499 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2500 features/i386/x32-avx512.c.
2501 (amd64_ymm_avx512_names): New register names for pseudo
2503 (amd64_ymmh_avx512_names): New register names for raw registers
2505 (amd64_k_names): New register names for K registers.
2506 (amd64_zmmh_names): New register names for ZMM raw registers.
2507 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2508 (amd64_xmm_avx512_names): New register names for XMM16-31
2510 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2512 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2513 if feature is present.
2514 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2515 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2516 (AMD64_NUM_REGS): Adjust to new number of registers.
2517 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2518 registers supplied via XSTATE by AVX512 registers.
2519 (i386_linux_read_description): Add case for AVX512.
2520 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2521 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2522 (i386_linux_core_read_description): Add case for AVX512.
2523 (i386_linux_init_abi): Install supported register note section
2525 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2527 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2528 registers to be number of zmm7h + 1.
2529 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2530 * i386-tdep.c: Include features/i386/i386-avx512.c.
2531 (i386_zmm_names): Add ZMM pseudo register names array.
2532 (i386_zmmh_names): Add ZMM raw register names array.
2533 (i386_k_names): Add K raw register names array.
2534 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2535 registers. AVX512 has 16 more ZMM registers than there are YMM
2537 (i386_zmmh_regnum_p): Add function to look up register number of
2539 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2540 (i386_k_regnum_p): Likewise for K raw registers.
2541 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2542 registers added by AVX512.
2543 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2544 registers added by AVX512.
2545 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2547 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2548 (i386_pseudo_register_name): Add ZMM pseudo registers.
2549 (i386_zmm_type): Construct and return vector registers type for ZMM
2551 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2552 ZMM0-31 pseudo registers and K registers.
2553 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2554 and YMM16-31 registers from register cache.
2555 (i386_pseudo_register_write): Add code to write K, ZMM and
2557 (i386_register_reggroup_p): Add code to include/exclude AVX512
2558 registers in/from respective register groups.
2559 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2560 registers if feature is present in xcr0.
2561 (i386_gdbarch_init): Add code to initialize AVX512 feature
2562 variables in tdep structure, wire in pseudo registers and call
2563 initialize_tdesc_i386_avx512.
2564 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2566 (i386_regnum): Add AVX512 registers.
2567 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2568 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2569 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2570 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2572 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2573 (i386_ymm_avx512_regnum_p): Likewise.
2574 (i386_k_regnum_p): Likewise.
2575 (i386_zmm_regnum_p): Likewise.
2576 (i386_zmmh_regnum_p): Likewise.
2577 * i387-tdep.c : Update year in copyright notice.
2578 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2580 (XSAVE_YMM_AVX512_ADDR): New macro.
2581 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2583 (XSAVE_XMM_AVX512_ADDR): New macro.
2584 (xsave_avx512_k_offset): New table for K register offsets in
2586 (XSAVE_AVX512_K_ADDR): New macro.
2587 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2589 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2590 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2592 (i387_collect_xsave): Add code to collect AVX512 registers from
2594 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2595 of XMM16-31 registers.
2596 (I387_NUM_K_REGS): New define for number of K registers.
2597 (I387_K0_REGNUM): New define for K0 register number.
2598 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2599 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2600 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2602 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2603 (I387_XMM16_REGNUM): New define for XMM16 register number.
2604 (I387_YMM0_REGNUM): New define for YMM0 register number.
2605 (I387_KEND_REGNUM): New define for last K register number.
2606 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2607 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2609 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2611 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2613 * features/Makefile: Add AVX512 related files.
2614 * features/i386/32bit-avx512.xml: New file.
2615 * features/i386/64bit-avx512.xml: Likewise.
2616 * features/i386/amd64-avx512-linux.c: Likewise.
2617 * features/i386/amd64-avx512-linux.xml: Likewise.
2618 * features/i386/amd64-avx512.c: Likewise.
2619 * features/i386/amd64-avx512.xml: Likewise.
2620 * features/i386/i386-avx512-linux.c: Likewise.
2621 * features/i386/i386-avx512-linux.xml: Likewise.
2622 * features/i386/i386-avx512.c: Likewise.
2623 * features/i386/i386-avx512.xml: Likewise.
2624 * features/i386/x32-avx512-linux.c: Likewise.
2625 * features/i386/x32-avx512-linux.xml: Likewise.
2626 * features/i386/x32-avx512.c: Likewise.
2627 * features/i386/x32-avx512.xml: Likewise.
2628 * regformats/i386/amd64-avx512-linux.dat: New file.
2629 * regformats/i386/amd64-avx512.dat: Likewise.
2630 * regformats/i386/i386-avx512-linux.dat: Likewise.
2631 * regformats/i386/i386-avx512.dat: Likewise.
2632 * regformats/i386/x32-avx512-linux.dat: Likewise.
2633 * regformats/i386/x32-avx512.dat: Likewise.
2634 * NEWS: Add note about new support for AVX512.
2637 2014-04-23 Pedro Alves <palves@redhat.com>
2639 * breakpoint.c (insert_bp_location): Tolerate errors if the
2640 breakpoint is set in a user-loaded objfile.
2641 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2642 location is marked shlib_disabled. If the breakpoint is set in a
2643 user-loaded objfile is a GDB-side memory breakpoint, validate it
2644 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2645 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2647 * mem-break.c (memory_validate_breakpoint): New function.
2648 * objfiles.c (userloaded_objfile_contains_address_p): New
2650 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2651 * target.h (memory_validate_breakpoint): New declaration.
2653 2014-04-23 Pedro Alves <palves@redhat.com>
2655 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2656 the breakpoint is set in a shared library, only suppress
2657 errors for software breakpoints, not hardware breakpoints.
2659 2014-04-22 Pedro Alves <palves@redhat.com>
2661 * infrun.c (schedlock_applies): New function, factored out from
2662 find_thread_needs_step_over.
2663 (find_thread_needs_step_over): Use it.
2664 (switch_back_to_stepped_thread): Always clear trap_expected if the
2665 step over is finished. Return early if scheduler locking applies.
2666 Look for the stepping thread and a potential step-over thread with
2668 (currently_stepping_or_nexting_callback): Delete.
2670 2014-04-22 Nick Clifton <nickc@redhat.com>
2672 * NEWS: Mention that ARM sim now supports tracing.
2674 2014-04-22 Yao Qi <yao@codesourcery.com>
2676 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2678 * tracefile.c (tracefile_fetch_registers): ... it. New
2680 * tracefile.h (tracefile_fetch_registers): Declare.
2681 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2682 tracefile_fetch_registers.
2684 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2687 * windows-nat.c (thread_rec): Don't display a warning when
2688 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2689 fails for any reason, set th->suspended to -1, so that we don't
2690 try to resume such a thread. Also, don't return NULL in these
2691 cases, to avoid completely ruin the session due to "PC register is
2692 not available" error.
2693 (do_windows_fetch_inferior_registers): Check errors in
2694 GetThreadContext call.
2695 (windows_continue): Accept an additional argument KILLED; if not
2696 zero, ignore errors in the SetThreadContext call, since the
2697 inferior was killed and is shutting down.
2698 (windows_resume, get_windows_debug_event)
2699 (windows_create_inferior, windows_mourn_inferior)
2700 (windows_kill_inferior): All callers of windows_continue changed
2701 to adjust to its new calling sequence.
2703 2014-04-19 Yao Qi <yao@codesourcery.com>
2705 * ctf.c (ctf_open): Call post_create_inferior.
2707 2014-04-19 Yao Qi <yao@codesourcery.com>
2709 * ctf.c (handle_id): New static variable.
2710 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2711 value. Get the declaration of event "register" and get length
2712 of field "contents".
2714 2014-04-19 Yao Qi <yao@codesourcery.com>
2716 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2718 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2720 * valops.c (oload_method_static): Remove unnecessary argument
2721 METHOD. Update all callers.
2723 2014-04-18 Pedro alves <palves@redhat.com>
2724 Tom Tromey <tromey@redhat.com>
2727 * frame.c (get_prev_frame_1): Rename to ...
2728 (get_prev_frame_always): ... this, and make extern. Adjust.
2729 (skip_artificial_frames): Use get_prev_frame_always.
2730 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2731 (get_frame_unwind_stop_reason): Adjust to rename.
2732 * frame.h (get_prev_frame_always): Declare.
2733 * inline-frame.c: Include frame.h.
2734 (inline_frame_this_id): Use get_prev_frame_always.
2736 2014-04-18 Tristan Gingold <gingold@adacore.com>
2738 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2739 code by using bfd_mach_o_get_base_address.
2741 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2743 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2744 (spu_ax_pseudo_register_collect): New function.
2745 (spu_ax_pseudo_register_push_stack): Likewise.
2746 (spu_dwarf_reg_to_regnum): Likewise.
2747 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2749 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2751 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2752 Replace FRAME argument with FRAME_ID.
2753 * gdbarch.c, gdbarch.h: Regenerate.
2754 * findvar.c (default_value_from_register): Add GDBARCH argument;
2755 replace FRAME by FRAME_ID. No longer call get_frame_id.
2756 (value_from_register): Update call to gdbarch_value_from_register.
2757 * value.h (default_value_from_register): Update prototype.
2758 * s390-linux-tdep.c (s390_value_from_register): Update interface
2759 and call to default_value_from_register.
2760 * spu-tdep.c (spu_value_from_register): Likewise.
2762 * findvar.c (address_from_register): Remove TYPE argument.
2763 Do not call value_from_register; use gdbarch_value_from_register
2764 with null_frame_id instead.
2765 * value.h (address_from_register): Update prototype.
2766 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2767 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2768 address_from_register interface change.
2770 2014-04-17 Yao Qi <yao@codesourcery.com>
2772 * gdbtypes.h: Update comments to link to types and macros'
2775 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2777 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2779 2014-04-16 Keith Seitz <keiths@redhat.com>
2782 * dwarf2read.c (skip_one_die): Check that all relative-offset
2783 sibling DIEs fall within range of the current reader's buffer.
2784 (read_partial_die): Likewise.
2786 2014-04-16 Keith Seitz <keiths@redhat.com>
2789 * cp-namespace.c (lookup_symbol_file): If the type name of
2790 `this' is NULL, return immediately.
2792 2014-04-14 Keith Seitz <keiths@redhat.com>
2795 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2796 from symbol_matches_domain in symtab.c. All local callers
2797 of symbol_matches_domain updated.
2798 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2799 search STRUCT_DOMAIN.
2800 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2801 independently. standard_lookup will do that automatically.
2802 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2803 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2804 (cp_lookup_symbol_in_namespace): Likewise.
2805 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2806 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2807 may return a STRUCT_DOMAIN match.
2808 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2809 * cp-support.c: Include language.h.
2810 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2812 * psymtab.c (match_partial_symbol): Compare the requested
2813 domain with the symbol's domain directly.
2814 (lookup_partial_symbol): Likewise.
2815 * symtab.c (lookup_symbol_in_language): Explain when/why
2816 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2817 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2818 appropriate languages.
2819 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2820 and moved to ada-lang.c
2821 (lookup_block_symbol): Explain that this function only returns
2822 symbol matching the requested DOMAIN.
2823 Compare the requested domain with the symbol's domain directly.
2824 (iterate_over_symbols): Compare the requested domain with the
2825 symbol's domain directly.
2826 * symtab.h (symbol_matches_domain): Remove.
2828 2014-04-14 Tom Tromey <tromey@redhat.com>
2831 * c-exp.y (type_aggregate_p): New function.
2832 (qualified_name, classify_inner_name): Use it.
2833 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2834 and TYPE_TARGET_TYPE of an enum type.
2835 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2837 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2838 handle TYPE_DECLARED_CLASS.
2839 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2841 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2842 * valops.c (enum_constant_from_type): New function.
2843 (value_aggregate_elt): Use it.
2844 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2847 2014-04-14 Tom Tromey <tromey@redhat.com>
2849 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2850 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2852 * value.h (value_aggregate_elt): Update.
2854 2014-04-14 Tom Tromey <tromey@redhat.com>
2856 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2858 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2860 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2861 (evaluate_subexp_standard): Pass noside argument.
2862 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2863 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2864 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2865 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2866 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2868 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2870 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2871 points to a constant blob.
2873 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2875 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2876 property and store it as the high bound and flag the range accordingly.
2877 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2878 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2879 * gdbtypes.h (enum range_flags): New enum.
2880 (struct range_bounds): Add flags member.
2882 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2884 * c-typeprint.c (c_type_print_varspec_suffix): Added
2885 check for not yet resolved high bound. If unresolved, print
2886 "variable length" string to the console instead of random
2889 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2891 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2893 (ada_template_to_fixed_record_type_1): Likewise.
2894 (ada_to_fixed_type_1): Likewise.
2895 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2896 (cp_print_value): Likewise.
2897 * d-valprint.c (dynamic_array_type): Likewise.
2898 * findvar.c (address_of_variable): Likewise.
2899 * jv-valprint.c (java_value_print): Likewise.
2900 * valops.c (value_ind): Likewise.
2901 * value.c (coerce_ref): Likewise.
2903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2905 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2906 value and retrieve the dynamic type size.
2908 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2910 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2911 passed to sizeof is dynamic evaluate the argument to compute the length.
2913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2914 Joel Brobecker <brobecker@adacore.com>
2916 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2917 (dwarf2_evaluate_property): New function.
2918 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2919 * dwarf2read.c (attr_to_dynamic_prop): New function.
2920 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2922 * gdbtypes.c: Include dwarf2loc.h.
2923 (is_dynamic_type): New function.
2924 (resolve_dynamic_type): New function.
2925 (resolve_dynamic_bounds): New function.
2926 (get_type_length): New function.
2927 (check_typedef): Use get_type_length to compute type length.
2928 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2929 (TYPE_LOW_BOUND_KIND): New macro.
2930 (is_dynamic_type): New function prototype.
2931 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2932 to resolve dynamic properties of the type. Update comment.
2933 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2935 2014-04-14 Richard Henderson <rth@redhat.com>
2937 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2939 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2940 Doug Evans <xdje42@gmail.com>
2942 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2943 dereference TYPE_CODE_REF values.
2945 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2947 Revert the following changes due to regressions:
2949 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2950 (dwarf2_evaluate_property): New function.
2951 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2952 * dwarf2read.c (attr_to_dynamic_prop): New function.
2953 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2955 * gdbtypes.c: Include dwarf2loc.h.
2956 (is_dynamic_type): New function.
2957 (resolve_dynamic_type): New function.
2958 (resolve_dynamic_bounds): New function.
2959 (get_type_length): New function.
2960 (check_typedef): Use get_type_length to compute type length.
2961 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2962 (TYPE_LOW_BOUND_KIND): New macro.
2963 (is_dynamic_type): New function prototype.
2964 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2965 to resolve dynamic properties of the type. Update comment.
2966 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2968 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2969 passed to sizeof is dynamic evaluate the argument to compute the length.
2971 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2972 value and retrieve the dynamic type size.
2974 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2975 (ada_template_to_fixed_record_type_1): Likewise.
2976 (ada_to_fixed_type_1): Likewise.
2977 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2978 (cp_print_value): Likewise.
2979 * d-valprint.c (dynamic_array_type): Likewise.
2980 * eval.c (evaluate_subexp_with_coercion): Likewise.
2981 * findvar.c (address_of_variable): Likewise.
2982 * jv-valprint.c (java_value_print): Likewise.
2983 * valops.c (value_ind): Likewise.
2984 * value.c (coerce_ref): Likewise.
2986 * c-typeprint.c (c_type_print_varspec_suffix): Added
2987 check for not yet resolved high bound. If unresolved, print
2988 "variable length" string to the console instead of random
2991 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2992 property and store it as the high bound and flag the range accordingly.
2993 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2994 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2995 * gdbtypes.h (enum range_flags): New enum.
2996 (struct range_bounds): Add flags member.
2998 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2999 points to a constant blob.
3001 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3002 (evaluate_subexp_standard): Pass noside argument.
3003 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3004 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3005 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3006 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3007 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3009 2014-04-11 Keith Seitz <keiths@redhat.com>
3012 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3013 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3016 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3018 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3019 (evaluate_subexp_standard): Pass noside argument.
3020 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3021 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3022 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3023 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3024 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3026 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3028 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3029 points to a constant blob.
3031 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3033 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3034 property and store it as the high bound and flag the range accordingly.
3035 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3036 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3037 * gdbtypes.h (enum range_flags): New enum.
3038 (struct range_bounds): Add flags member.
3040 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3042 * c-typeprint.c (c_type_print_varspec_suffix): Added
3043 check for not yet resolved high bound. If unresolved, print
3044 "variable length" string to the console instead of random
3047 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3049 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3050 (ada_template_to_fixed_record_type_1): Likewise.
3051 (ada_to_fixed_type_1): Likewise.
3052 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3053 (cp_print_value): Likewise.
3054 * d-valprint.c (dynamic_array_type): Likewise.
3055 * eval.c (evaluate_subexp_with_coercion): Likewise.
3056 * findvar.c (address_of_variable): Likewise.
3057 * jv-valprint.c (java_value_print): Likewise.
3058 * valops.c (value_ind): Likewise.
3059 * value.c (coerce_ref): Likewise.
3061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3063 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3064 value and retrieve the dynamic type size.
3066 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3068 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3069 passed to sizeof is dynamic evaluate the argument to compute the length.
3071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3073 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3074 (dwarf2_evaluate_property): New function.
3075 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3076 * dwarf2read.c (attr_to_dynamic_prop): New function.
3077 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3079 * gdbtypes.c: Include dwarf2loc.h.
3080 (is_dynamic_type): New function.
3081 (resolve_dynamic_type): New function.
3082 (resolve_dynamic_bounds): New function.
3083 (get_type_length): New function.
3084 (check_typedef): Use get_type_length to compute type length.
3085 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3086 (TYPE_LOW_BOUND_KIND): New macro.
3087 (is_dynamic_type): New function prototype.
3088 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3089 to resolve dynamic properties of the type. Update comment.
3090 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3094 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3095 declaring high/low bounds and change uses accordingly. Call
3096 create_range_type instead of create_static_range_type.
3097 * gdbtypes.c (create_range_type): New function.
3098 (create_range_type): Convert bounds into struct bound_prop and pass
3099 them to create_range_type.
3100 * gdbtypes.h (struct bound_prop): New struct.
3101 (create_range_type): New function prototype.
3102 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3103 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3104 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3106 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3110 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3111 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3112 * ada-lang.c: All uses of create_range_type updated.
3113 * coffread.c: All uses of create_range_type updated.
3114 * dwarf2read.c: All uses of create_range_type updated.
3115 * f-exp.y: All uses of create_range_type updated.
3116 * m2-valprint.c: All uses of create_range_type updated.
3117 * mdebugread.c: All uses of create_range_type updated.
3118 * stabsread.c: All uses of create_range_type updated.
3119 * valops.c: All uses of create_range_type updated.
3120 * valprint.c: All uses of create_range_type updated.
3122 2014-04-10 Pedro Alves <palves@redhat.com>
3124 * breakpoint.c (single_step_breakpoints)
3125 (single_step_gdbarch): Move up in the file.
3126 (one_breakpoint_xfer_memory): New function, factored out from ...
3127 (breakpoint_xfer_memory): ... here. Also process single-step
3130 2014-04-09 Tristan Gingold <gingold@adacore.com>
3132 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3134 (darwin_decode_exception_message): Free port only after use.
3136 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3138 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3139 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3140 when setting the size of call_length.
3142 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3144 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3145 dereference TYPE_CODE_REF values.
3147 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3149 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3150 end of warning message.
3152 2014-04-03 Doug Evans <dje@google.com>
3154 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3155 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3157 2014-04-02 Alan Modra <amodra@gmail.com>
3159 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3160 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3161 (struct symbol_file_add_from_memory_args): Add size field.
3162 (find_vdso_size): New function.
3163 (add_vsyscall_page): Attempt to find vdso size.
3165 2014-04-01 Doug Evans <dje@google.com>
3167 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3169 2014-04-01 Tristan Gingold <gingold@adacore.com>
3171 * darwin-nat.c (darwin_encode_reply): Add prototype.
3172 (darwin_decode_exception_message): Reply to unknown inferiors.
3173 (darwin_decode_message): Handle message by id. Ignore message
3174 to unknown inferior.
3175 (darwin_wait): Discard unknown messages, add debug trace.
3177 2014-03-31 Doug Evans <dje@google.com>
3179 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3182 2014-03-31 Doug Evans <dje@google.com>
3184 New option "set print symbol-loading".
3186 * solib.c (solib_read_symbols): Only print symbol loading messages
3188 (solib_add): If symbol loading is in "brief" mode, notify user
3189 symbols are being loaded.
3190 (reload_shared_libraries_1): Ditto.
3191 * symfile.c (print_symbol_loading_off): New static global.
3192 (print_symbol_loading_brief): New static global.
3193 (print_symbol_loading_full): New static global.
3194 (print_symbol_loading_enums): New static global.
3195 (print_symbol_loading): New static global.
3196 (print_symbol_loading_p): New function.
3197 (symbol_file_add_with_addrs): Only print symbol loading messages
3199 (_initialize_symfile): Register "print symbol-loading" set/show
3201 * symfile.h (print_symbol_loading_p): Declare.
3203 2014-03-30 Doug Evans <xdje42@gmail.com>
3205 * infrun.c (set_last_target_status): New function.
3206 (handle_inferior_event): Call it.
3208 2014-03-30 Doug Evans <xdje42@gmail.com>
3210 * inferior.h (enum stop_kind): Improve comment.
3212 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3214 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3215 a reference, strip the reference layer before calling
3216 the lang_ops value_has_mutated callback.
3218 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3220 Remove some globals from our parser.
3221 * language.c (unk_lang_parser): Add "struct parser_state"
3223 * language.h (struct language_defn) <la_parser>: Likewise.
3224 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3225 (initialize_expout): Add "struct parser_state" argument.
3226 Rewrite function to use the parser state.
3227 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3228 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3229 write_exp_elt_longcst, write_exp_elt_dblcst,
3230 write_exp_elt_decfloatcst, write_exp_elt_type,
3231 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3232 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3233 write_dollar_variable): Likewise.
3234 (parse_exp_in_context_1): Use parser state.
3235 (insert_type_address_space): Add "struct parser_state" argument.
3237 (increase_expout_size): New function.
3238 * parser-defs.h: Forward declare "struct language_defn" and
3239 "struct parser_state".
3240 (expout, expout_size, expout_ptr): Remove extern declarations.
3241 (parse_gdbarch, parse_language): Rewrite macro declarations to
3242 accept the parser state.
3243 (struct parser_state): New struct.
3244 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3245 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3246 write_exp_elt_decfloatcst, write_exp_elt_type,
3247 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3248 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3249 write_exp_msymbol, write_dollar_variable,
3250 mark_struct_expression, insert_type_address_space): Add "struct
3251 parser_state" argument.
3252 (increase_expout_size): New function.
3253 * utils.c (do_clear_parser_state): New function.
3254 (make_cleanup_clear_parser_state): Likewise.
3255 * utils.h (make_cleanup_clear_parser_state): New function
3257 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3258 Update calls to write_exp* in order to pass the parser state.
3259 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3260 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3261 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3262 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3263 * stap-probe.c (stap_parse_register_operand): Likewise.
3264 (stap_parse_single_operand): Likewise.
3265 (stap_parse_argument_1): Likewise.
3266 (stap_parse_argument): Use parser state.
3267 * stap-probe.h: Include "parser-defs.h".
3268 (struct stap_parse_info) <pstate>: New field.
3269 * c-exp.y (parse_type): Rewrite to use parser state.
3270 (yyparse): Redefine to c_parse_internal.
3271 (pstate): New global variable.
3272 (parse_number): Add "struct parser_state" argument.
3273 (write_destructor_name): Likewise.
3274 (type_exp): Update calls to write_exp* and similars in order to
3276 (exp1, exp, variable, qualified_name, space_identifier,
3277 typename, typebase): Likewise.
3278 (write_destructor_name, parse_number, lex_one_token,
3279 classify_name, classify_inner_name, c_parse): Add "struct
3280 parser_state" argument. Update function to use parser state.
3281 * c-lang.h: Forward declare "struct parser_state".
3282 (c_parse): Add "struct parser_state" argument.
3283 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3284 (yyparse): Redefine macro to ada_parse_internal.
3285 (pstate): New variable.
3286 (write_int, write_object_renaming, write_var_or_type,
3287 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3288 type_int, type_long, type_long_long, type_float, type_double,
3289 type_long_double, type_char, type_boolean, type_system_address):
3290 Add "struct parser_state" argument.
3291 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3292 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3293 var_or_type, aggregate, aggregate_component_list,
3294 positional_list, others, component_group,
3295 component_associations): Update calls to write_exp* and similar
3296 functions in order to use parser state.
3297 (ada_parse, write_var_from_sym, write_int,
3298 write_exp_op_with_string, write_object_renaming,
3299 find_primitive_type, write_selectors, write_ambiguous_var,
3300 write_var_or_type, write_name_assoc, type_int, type_long,
3301 type_long_long, type_float, type_double, type_long_double,
3302 type_char, type_boolean, type_system_address): Add "struct
3303 parser_state" argument. Adjust function to use parser state.
3304 * ada-lang.c (parse): Likewise.
3305 * ada-lang.h: Forward declare "struct parser_state".
3306 (ada_parse): Add "struct parser_state" argument.
3307 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3308 calls to both functions.
3309 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3311 (yyparse): Redefine macro to f_parse_internal.
3312 (pstate): New variable.
3313 (parse_number): Add "struct parser_state" argument.
3314 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3315 and similars in order to use parser state.
3316 (parse_number): Adjust code to use parser state.
3318 (f_parse): New function.
3319 * f-lang.h: Forward declare "struct parser_state".
3320 (f_parse): Add "struct parser_state" argument.
3321 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3323 (yyparse): Redefine macro for java_parse_internal.
3324 (pstate): New variable.
3325 (push_expression_name, push_expression_name, insert_exp): Add
3326 "struct parser_state" argument.
3327 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3328 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3329 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3330 PostIncrementExpression, PostDecrementExpression,
3331 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3332 UnaryExpressionNotPlusMinus, CastExpression,
3333 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3334 RelationalExpression, EqualityExpression, AndExpression,
3335 ExclusiveOrExpression, InclusiveOrExpression,
3336 ConditionalAndExpression, ConditionalOrExpression,
3337 ConditionalExpression, Assignment, LeftHandSide): Update
3338 calls to write_exp* and similars in order to use parser state.
3339 (parse_number): Ajust code to use parser state.
3341 (java_parse): New function.
3342 (push_variable): Add "struct parser_state" argument. Adjust
3343 code to user parser state.
3344 (push_fieldnames, push_qualified_expression_name,
3345 push_expression_name, insert_exp): Likewise.
3346 * jv-lang.h: Forward declare "struct parser_state".
3347 (java_parse): Add "struct parser_state" argument.
3348 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3350 (yyparse): Redefine macro to m2_parse_internal.
3351 (pstate): New variable.
3352 (type_exp, exp, fblock, variable, type): Update calls to
3353 write_exp* and similars to use parser state.
3355 (m2_parse): New function.
3356 * m2-lang.h: Forward declare "struct parser_state".
3357 (m2_parse): Add "struct parser_state" argument.
3358 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3359 * objc-lang.h: Forward declare "struct parser_state".
3360 (end_msglist): Add "struct parser_state" argument.
3361 * p-exp.y (parse_type): Rewrite macro to use parser state.
3362 (yyparse): Redefine macro to pascal_parse_internal.
3363 (pstate): New variable.
3364 (parse_number): Add "struct parser_state" argument.
3365 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3366 write_exp* and similars in order to use parser state.
3367 (parse_number, yylex): Adjust code to use parser state.
3368 (pascal_parse): New function.
3369 * p-lang.h: Forward declare "struct parser_state".
3370 (pascal_parse): Add "struct parser_state" argument.
3371 * go-exp.y (parse_type): Rewrite macro to use parser state.
3372 (yyparse): Redefine macro to go_parse_internal.
3373 (pstate): New variable.
3374 (parse_number): Add "struct parser_state" argument.
3375 (type_exp, exp1, exp, variable, type): Update calls to
3376 write_exp* and similars in order to use parser state.
3377 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3378 to use parser state.
3379 (go_parse): Likewise.
3380 * go-lang.h: Forward declare "struct parser_state".
3381 (go_parse): Add "struct parser_state" argument.
3383 2014-03-27 Doug Evans <dje@google.com>
3385 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3387 2014-03-27 Doug Evans <dje@google.com>
3389 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3390 Remove argument abbrev_section. All callers updated.
3392 2014-03-27 Doug Evans <dje@google.com>
3394 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3395 addr_base, ranges_base.
3397 2014-03-26 Keith Seitz <keiths@redhat.com>
3399 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3400 types, not VAR_DOMAIN.
3402 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3404 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3406 * features/nios2-linux.c: Regenerated.
3407 * features/nios2.c: Regenerated.
3409 2014-03-25 Pedro Alves <palves@redhat.com>
3411 * cli/cli-script.c (script_from_file): Force the interpreter to
3414 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3416 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3417 small stack allocation.
3419 2014-03-24 Tristan Gingold <gingold@adacore.com>
3421 * darwin-nat.c (exc_server): Remove unused prototype.
3422 (darwin_dump_message): Correctly display data on x86_64.
3423 (darwin_encode_reply): Fix style.
3424 Add comments and fix indentation.
3426 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3428 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3430 2014-03-22 Doug Evans <xdje42@gmail.com>
3432 * infcmd.c: Whitespace fixes.
3433 (interrupt_command): Merge two function comments into one.
3435 2014-03-22 Doug Evans <xdje42@gmail.com>
3437 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3440 2014-03-22 Yao Qi <yao@codesourcery.com>
3442 * remote.c (target_read_live_memory): Remove.
3443 (memory_xfer_live_readonly_partial): Rename it to
3444 remote_xfer_live_readonly_partial. Remove argument 'object'.
3445 All callers updated. Call remote_read_bytes_1
3446 instead of target_read_live_memory.
3447 * tracepoint.c (set_traceframe_number): Remove.
3448 (make_cleanup_restore_traceframe_number): Likewise .
3449 * tracepoint.h (set_traceframe_number): Remove declaration.
3450 (make_cleanup_restore_traceframe_number): Likewise.
3452 2014-03-22 Yao Qi <yao@codesourcery.com>
3454 * remote.c (remote_read_bytes): Move code on reading from the
3456 (remote_read_bytes_1): ... here. New function.
3458 2014-03-22 Yao Qi <yao@codesourcery.com>
3460 * ctf.c (ctf_xfer_partial): Check the return value of
3461 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3462 return TARGET_XFER_UNAVAILABLE.
3463 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3464 * target.c (target_read_live_memory): Move it to remote.c.
3465 (memory_xfer_live_readonly_partial): Likewise.
3466 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3467 * remote.c (target_read_live_memory): Moved from target.c.
3468 (memory_xfer_live_readonly_partial): Likewise.
3469 (remote_read_bytes): Factored out from
3470 memory_xfer_partial_1.
3472 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3474 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3477 2014-03-21 Pedro Alves <palves@redhat.com>
3479 * infrun.c (normal_stop): Extend comment.
3481 2014-03-21 Hui Zhu <hui@codesourcery.com>
3482 Pedro Alves <palves@redhat.com>
3484 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3486 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3487 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3488 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3490 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3492 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3493 `z' formatted output modifier.
3495 2014-03-20 Tom Tromey <tromey@redhat.com>
3496 Sergio Durigan Junior <sergiodj@redhat.com>
3498 * probe.c (parse_probes): Turn assert into an ordinary error.
3499 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3500 exceptions when parsing probes. Rearrange the code for clarity.
3502 2014-03-20 Tom Tromey <tromey@redhat.com>
3505 * top.c (execute_command): Only dispatch events if the command
3508 2014-03-20 Tom Tromey <tromey@redhat.com>
3511 * infcall.c: Include event-top.h.
3512 (run_inferior_call): Call async_disable_stdin if needed.
3514 2014-03-20 Pedro Alves <palves@redhat.com>
3516 * infrun.c (prepare_to_proceed): Delete.
3517 (thread_still_needs_step_over): New function.
3518 (find_thread_needs_step_over): New function.
3519 (proceed): If the current thread needs a step-over, set its
3520 steping_over_breakpoint flag. Adjust to use
3521 find_thread_needs_step_over instead of prepare_to_proceed.
3522 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3523 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3525 (switch_back_to_stepped_thread): Step over breakpoints of all
3526 threads not the stepping thread, before switching back to the
3529 2014-03-20 Pedro Alves <palves@redhat.com>
3531 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3533 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3534 * infrun.c (saved_singlestep_ptid)
3535 (stepping_past_singlestep_breakpoint): Delete.
3536 (resume): Remove stepping_past_singlestep_breakpoint handling.
3537 (proceed): Store the prev_pc of the stepping thread too.
3538 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3540 (enum infwait_states): Delete infwait_thread_hop_state.
3541 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3543 (handle_inferior_event): Adjust.
3544 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3545 handling and the thread-hop code. Before removing single-step
3546 breakpoints, check whether the thread hit a single-step breakpoint
3547 of another thread. If it did, the trap is not a random signal.
3548 (switch_back_to_stepped_thread): If the event thread hit a
3549 single-step breakpoint, unblock it before switching to the
3550 stepping thread. Handle the case of the stepped thread having
3552 (keep_going): Handle the case of the current thread moving past a
3553 single-step breakpoint.
3555 2014-03-20 Pedro Alves <palves@redhat.com>
3558 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3559 are being stepped over.
3560 (breakpoint_address_match): Make extern.
3561 * breakpoint.h (breakpoint_address_match): New declaration.
3562 * inferior.h (stepping_past_instruction_at): New declaration.
3563 * infrun.c (struct step_over_info): New type.
3564 (step_over_info): New global.
3565 (set_step_over_info, clear_step_over_info)
3566 (stepping_past_instruction_at): New functions.
3567 (handle_inferior_event): Clear the step-over info when
3568 trap_expected is cleared.
3569 (resume): Remove now stale comment.
3570 (clear_proceed_status): Clear step-over info.
3571 (proceed): Adjust step-over handling to set or clear the step-over
3572 info instead of removing all breakpoints.
3573 (handle_signal_stop): When setting up a thread-hop, don't remove
3575 (stop_stepping): Clear step-over info.
3576 (keep_going): Adjust step-over handling to set or clear step-over
3577 info and then always inserting breakpoints, instead of removing
3578 all breakpoints when stepping over one.
3580 2014-03-20 Pedro Alves <palves@redhat.com>
3582 * infrun.c (previous_inferior_ptid): Adjust comment.
3583 (deferred_step_ptid): Delete.
3584 (infrun_thread_ptid_changed, prepare_to_proceed)
3585 (init_wait_for_inferior): Adjust.
3586 (handle_signal_stop): Delete deferred_step_ptid handling.
3588 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3591 * defs.h (sync_quit_force_run): New declaration.
3592 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3593 * event-top.c (async_sigterm_handler): New declaration.
3594 (async_sigterm_token): New variable.
3595 (async_init_signals): Create also async_sigterm_token.
3596 (async_sigterm_handler): New function.
3597 (sync_quit_force_run): New variable.
3598 (handle_sigterm): Replace quit_force call by other calls.
3599 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3601 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3603 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3604 offset into SPE pseudo registers.
3606 2014-03-18 Pedro Alves <palves@redhat.com>
3609 * inferior.h (print_stop_event): Declare.
3610 * infrun.c (print_stop_event): New, factored out from ...
3611 (normal_stop): ... this.
3612 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3613 of bpstat_print/print_stack_frame.
3615 2014-03-17 Tom Tromey <tromey@redhat.com>
3617 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3619 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3621 * ada-lang.c (decode_constrained_packed_array): Perform a
3622 minimal coercion for reference with coerce_ref instead of
3625 2014-03-17 Tristan Gingold <gingold@adacore.com>
3627 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3628 (darwin_solib_create_inferior_hook): Emit a warning if version
3631 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3633 * python/py-value.c (get_field_flag): Cast flag_name argument to
3634 PyObject_GetAttrString to support Python 2.4.
3636 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3638 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3639 (Global Maintainers): Remove Jan Kratochvil.
3641 2014-03-14 Pedro Alves <palves@redhat.com>
3643 * inferior.h (terminal_ours_for_output): Rename to ...
3644 (child_terminal_ours_for_output): ... this.
3645 (terminal_save_ours): Rename to ...
3646 (child_terminal_save_ours): ... this.
3647 (terminal_ours): Rename to ...
3648 (child_terminal_ours): ... this.
3649 (terminal_inferior): Rename to ...
3650 (child_terminal_inferior): ... this.
3651 (terminal_init_inferior): Rename to ...
3652 (child_terminal_init_inferior): ... this.
3653 (terminal_init_inferior_with_pgrp): Rename to ...
3654 (child_terminal_init_inferior_with_pgrp): ... this.
3655 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3656 (child_terminal_init_with_pgrp): ... this.
3657 (terminal_save_ours): Rename to ...
3658 (child_terminal_save_ours): ... this.
3659 (terminal_init_inferior): Rename to ...
3660 (child_terminal_init): ... this. Adjust.
3661 (terminal_inferior): Rename to ...
3662 (child_terminal_inferior): ... this.
3663 (terminal_ours_for_output): Rename to ...
3664 (child_terminal_ours_for_output): ... this. Adjust.
3665 (terminal_ours): Rename to ...
3666 (child_terminal_ours): ... this.
3667 (terminal_ours_1): Rename to ...
3668 (child_terminal_ours_1): ... this. Adjust.
3669 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3670 * windows-nat.c (do_initial_windows_stuff): Adjust.
3671 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3672 (gnu_terminal_init): ... this. Adjust.
3673 (gnu_target): Adjust.
3674 * inf-child.c (inf_child_target): Adjust.
3676 2014-03-13 Doug Evans <xdje42@gmail.com>
3679 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3682 2014-03-13 Doug Evans <xdje42@gmail.com>
3684 * value.c (record_latest_value): Call release_value_or_incref
3685 instead of release_value.
3687 2014-03-13 Pedro Alves <palves@redhat.com>
3689 * procfs.c (procfs_target): Don't override to_shortname,
3690 to_longname or to_doc.
3692 2014-03-13 Pedro Alves <palves@redhat.com>
3694 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3695 Unix in user visible strings.
3697 2014-03-12 Stan Shebs <stan@codesourcery.com>
3699 * gdbtypes.h: Annotate comments for Doxygen, add a page
3700 block comment with some general info.
3702 2014-03-12 Pedro Alves <palves@redhat.com>
3704 * infcmd.c (prepare_execution_command): New function, factored out
3705 from several execution commands.
3706 (run_command_1, continue_command, step_1, jump_command)
3707 (signal_command, until_command, advance_command, finish_command)
3708 (attach_command): Use prepare_execution_command.
3710 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3712 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3715 (struct arm_linux_thread_points): Removed.
3716 (struct arm_linux_process_info): New.
3717 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3718 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3719 (arm_linux_find_breakpoints_by_tid): Removed.
3720 (struct arch_lwp_info): New.
3721 (arm_linux_find_process_pid): New functions.
3722 (arm_linux_add_process): New functions.
3723 (arm_linux_process_info_get): New functions.
3724 (arm_linux_forget_process): New function.
3725 (arm_linux_get_debug_reg_state): New function.
3726 (struct update_registers_data): New.
3727 (update_registers_callback): New function.
3728 (arm_linux_insert_hw_breakpoint1): Updated.
3729 (arm_linux_remove_hw_breakpoint1): Updated.
3730 (arm_linux_insert_hw_breakpoint): Updated.
3731 (arm_linux_remove_hw_breakpoint): Updated.
3732 (arm_linux_insert_watchpoint): Updated.
3733 (arm_linux_remove_watchpoint): Updated.
3734 (arm_linux_new_thread): Updated.
3735 (arm_linux_prepare_to_resume): New function.
3736 (arm_linux_new_fork): New function.
3737 (_initialize_arm_linux_nat): Updated.
3739 2014-03-12 Pedro Alves <palves@redhat.com>
3741 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3743 2014-03-12 Tom Tromey <tromey@redhat.com>
3745 * inf-child.c (return_zero): New function.
3746 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3747 * aix-thread.c (aix_thread_inferior_created): New function.
3748 (aix_thread_attach): Remove.
3749 (init_aix_thread_ops): Don't set to_attach.
3750 (_initialize_aix_thread): Register inferior_created observer.
3751 * corelow.c (init_core_ops): Don't set to_attach or
3753 * exec.c (init_exec_ops): Don't set to_attach or
3755 * infcmd.c (run_command_1): Use find_run_target. Make direct
3757 (attach_command): Use find_attach_target. Make direct target
3759 * record-btrace.c (init_record_btrace_ops): Don't set
3761 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3763 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3764 set to_create_inferior.
3765 * target.c (complete_target_initialization): Add assertion.
3766 (target_create_inferior): Remove.
3767 (find_default_attach, find_default_create_inferior): Remove.
3768 (find_attach_target, find_run_target): New functions.
3769 (find_default_is_async_p, find_default_can_async_p)
3770 (target_supports_non_stop, target_attach): Remove.
3771 (init_dummy_target): Don't set to_create_inferior or
3772 to_supports_non_stop.
3773 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3774 TARGET_DEFAULT_FUNC.
3775 <to_create_inferior>: Add comment.
3776 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3777 TARGET_DEFAULT_RETURN.
3778 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3779 (find_attach_target, find_run_target): Declare.
3780 (target_create_inferior): Remove.
3781 (target_has_execution_1): Update comment.
3782 (target_supports_non_stop): Remove.
3783 * target-delegates.c: Rebuild.
3785 2014-03-12 Pedro Alves <palves@redhat.com>
3787 * inf-child.h: Update comment to not mention Unix.
3789 2014-03-12 Pedro Alves <palves@redhat.com>
3791 * inf-child.c: Update top comment to not mention Unix. Add
3792 generic comment describing how this target is meant to be used.
3793 (inf_child_post_attach, inf_child_post_startup_inferior)
3794 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3797 2014-03-12 Pedro Alves <palves@redhat.com>
3799 * nto-procfs.c: Include inf-child.h.
3800 (procfs_ops): Delete global.
3801 (procfs_can_run): Delete method.
3802 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3803 target pointer instead of referencing procfs_ops.
3804 (procfs_prepare_to_store): Delete.
3805 (init_procfs_ops): Delete function.
3806 (procfs_target): New function, based on init_procfs_ops, but
3807 inherit inf_child_target.
3808 (_initialize_procfs): Use procfs_target.
3810 2014-03-12 Pedro Alves <palves@redhat.com>
3812 * windows-nat.c: Include inf-child.h.
3813 (windows_ops): Delete global.
3814 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3816 (init_windows_ops): Delete function.
3817 (windows_target): New function, based on init_windows_ops, but
3818 inherit inf_child_target.
3819 (_initialize_windows_nat): Use windows_target. Install x86
3820 specific target methods here.
3822 2014-03-10 Doug Evans <xdje42@gmail.com>
3824 * guile/guile.c (call_initialize_gdb_module): New function.
3825 (initialize_guile): Replace call to scm_init_guile with call to
3828 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3830 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3831 in call to TYPE_CODE macro.
3833 2014-03-10 Jerome Guitton <guitton@adacore.com>
3835 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3836 Resolve tagged types to full view.
3838 2014-03-10 Hui Zhu <hui@codesourcery.com>
3840 * target.h (target_insert_breakpoint): Remove "hardware" from its
3843 2014-03-07 Doug Evans <dje@google.com>
3845 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3847 2014-03-07 Doug Evans <dje@google.com>
3849 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3850 Remove unused local comp_dir_attr. Assert exactly one of
3851 stub_comp_unit_die, stub_comp_dir is non-NULL.
3853 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3855 * target.h (complete_target_initialization, add_target):
3858 2014-03-07 Pedro Alves <palves@redhat.com>
3860 * go32-nat.c: Include inf-child.h.
3861 (go32_ops): Delete global.
3862 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3864 (go32_create_inferior): Push the passed in target pointer instead
3865 of referencing go32_ops.
3866 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3867 (go32_target): New function, based on init_go32_ops, but inherit
3869 (_initialize_go32_nat): Use go32_target. Move parts of
3872 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3874 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3875 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3876 SYMBOL_VALUE_ADDRESS.
3877 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3879 2014-03-06 Yao Qi <yao@codesourcery.com>
3881 * breakpoint.c (get_tracepoint_by_number): Remove argument
3882 optional_p. All callers updated. Adjust comments. Update
3884 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3886 2014-03-06 Yao Qi <yao@codesourcery.com>
3888 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3889 early if get_number returns zero. Use 'p' instead of 'args'.
3891 2014-03-06 Yao Qi <yao@codesourcery.com>
3893 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3896 2014-03-06 Yao Qi <yao@codesourcery.com>
3898 PR breakpoints/16508
3899 * tracepoint.c (check_trace_running): New function.
3900 (trace_find_command): Move code to check_trace_running and
3901 call check_trace_running.
3902 (trace_find_pc_command): Likewise.
3903 (trace_find_tracepoint_command): Likewise.
3904 (trace_find_line_command): Likewise.
3905 (trace_find_range_command): Likewise.
3906 * tracepoint.h (check_trace_running): Likewise.
3907 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3909 2014-03-06 Yao Qi <yao@codesourcery.com>
3911 * target.h (struct target_ops) <to_traceframe_info>: Use
3912 TARGET_DEFAULT_NORETURN (tcomplain ()).
3913 * target-delegates.c: Regenerated.
3915 2014-03-05 Pedro Alves <palves@redhat.com>
3918 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3919 void. Update comment.
3920 (dcache_xfer_memory): Delete.
3921 (dcache_read_memory_partial): New, based on the read bits of
3923 (dcache_update): Add status parameter. Use ULONGEST for len, and
3924 adjust. Discard cache lines if the reason for the update was
3926 * dcache.h (dcache_xfer_memory): Delete declaration.
3927 (dcache_read_memory_partial): New declaration.
3928 (dcache_update): Update prototype.
3929 * target.c (raw_memory_xfer_partial): Update the dcache here.
3930 (memory_xfer_partial_1): Don't handle dcache writes here.
3932 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3934 * remote-sim.c (gdbsim_load): Add const to prog.
3936 2014-03-03 Tom Tromey <tromey@redhat.com>
3938 * elfread.c (probe_key): Change to bfd_data.
3939 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3940 now per-BFD, not per-objfile.
3941 * stap-probe.c (stap_probe_destroy): Update comment.
3942 (handle_stap_probe): Allocate on the per-BFD obstack.
3944 2014-03-03 Tom Tromey <tromey@redhat.com>
3946 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3947 * breakpoint.c (create_longjmp_master_breakpoint): Use
3949 (add_location_to_breakpoint, bkpt_probe_insert_location)
3950 (bkpt_probe_remove_location): Update.
3951 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3952 * elfread.c (elf_symfile_relocate_probe): Remove.
3953 (elf_probe_fns): Update.
3954 (insert_exception_resume_breakpoint): Change type of "probe"
3955 parameter to bound_probe.
3956 (check_exception_resume): Update.
3957 * objfiles.c (objfile_relocate1): Don't relocate probes.
3958 * probe.c (bound_probe_s): New typedef.
3959 (parse_probes): Use get_probe_address. Set sal's objfile.
3960 (find_probe_by_pc): Return a bound_probe.
3961 (collect_probes): Return a VEC(bound_probe_s).
3962 (compare_probes): Update.
3963 (gen_ui_out_table_header_info): Change type of "probes"
3965 (info_probes_for_ops): Update.
3966 (get_probe_address): New function.
3967 (probe_safe_evaluate_at_pc): Update.
3968 * probe.h (struct probe_ops) <get_probe_address>: New field.
3969 <set_semaphore, clear_semaphore>: Add objfile parameter.
3970 (struct probe) <objfile>: Remove field.
3972 <address>: Update comment.
3973 (struct bound_probe): New.
3974 (find_probe_by_pc): Return a bound_probe.
3975 (get_probe_address): Declare.
3976 * solib-svr4.c (struct probe_and_action) <address>: New field.
3977 (hash_probe_and_action, equal_probe_and_action): Update.
3978 (register_solib_event_probe): Add address parameter.
3979 (solib_event_probe_at): Update.
3980 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3982 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3983 (stap_get_probe_address): New function.
3984 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3985 (compile_probe_arg): Update.
3986 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3988 (handle_stap_probe): Don't relocate the probe.
3989 (stap_relocate): Remove.
3990 (stap_gen_info_probes_table_values): Update.
3991 (stap_probe_ops): Remove stap_relocate.
3992 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3993 (debug_sym_probe_fns): Update.
3994 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3995 * symtab.c (init_sal): Use memset.
3996 * symtab.h (struct symtab_and_line) <objfile>: New field.
3997 * tracepoint.c (start_tracing, stop_tracing): Update.
3999 2014-03-03 Tom Tromey <tromey@redhat.com>
4001 * probe.h (parse_probes, find_probe_by_pc)
4002 (find_probes_in_objfile): Fix comments.
4004 2014-03-02 Doug Evans <xdje42@gmail.com>
4006 * infrun.c (handle_signal_stop): Replace test for
4007 TARGET_WAITKIND_STOPPED with an assert.
4009 2014-03-02 Doug Evans <xdje42@gmail.com>
4011 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4013 2014-03-02 Doug Evans <xdje42@gmail.com>
4015 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4017 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4019 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4021 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4023 * i386obsd-nat.c: Include "obsd-nat.h".
4024 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4026 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4028 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4030 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4032 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4034 * mips64obsd-nat.c: Include "obsd-nath".
4035 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4037 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4039 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4041 * amd64obsd-nat.c: Include "obsd-nat,h.
4042 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4044 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4046 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4048 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4049 (find_overload_match): Update call to find_oload_champ.
4050 (find_oload_champ_namespace_loop): Likewise
4052 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4054 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4056 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4057 * config/sparc/obsd64.mh: New file.
4058 * sparc64obsd-nat.c: New file.
4060 * obsd-nat.h: New file.
4061 * obsd-nat.c: New file.
4062 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4063 (ALLDEPFILES): Add obsd-nat.c.
4065 2014-02-28 Tom Tromey <tromey@redhat.com>
4067 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4068 * cli-out.h (cli_ui_out_impl): Now const.
4069 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4070 * ui-out.c (struct ui_out) <impl>: Now const.
4071 (default_ui_out_impl): Now const.
4072 (ui_out_new): Make 'impl' parameter const.
4073 * ui-out.h (ui_out_new): Update.
4075 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4077 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4079 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4081 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4083 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4085 Additional PR 8882 fix.
4086 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4088 2014-02-27 Pedro Alves <palves@redhat.com>
4090 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4093 2014-02-27 Pedro Alves <palves@redhat.com>
4096 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4097 * nat/linux-waitpid.c: Include string.h.
4098 (status_to_str): Moved here and made extern.
4099 * nat/linux-waitpid.h (status_to_str): New declaration.
4101 2014-02-27 Hui Zhu <hui@codesourcery.com>
4104 * infrun.c (ptid_match): Move ...
4105 * common/ptid.c (ptid_match): ... here.
4106 * inferior.h (ptid_match): Move ...
4107 * common/ptid.h (ptid_match): ... here.
4109 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4111 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4112 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4115 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4117 * obsd-tdep.c (obsd_auxv_parse): New function.
4118 (obsd_init_abi): Set auxv_parse.
4120 * gdbarch.sh (auxv_parse): New.
4121 * gdbarch.h: Regenerated.
4122 * gdbarch.c: Regenerated.
4123 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4125 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4127 * guile/scm-value.c (gdbscm_history_append_x): New function.
4128 (value_functions): Add it.
4130 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4132 * dwarf2read.c (attr_value_as_address): New function.
4133 (dwarf2_find_base_address, read_call_site_scope): Use
4134 attr_value_as_address in place of DW_ADDR.
4135 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4136 the low and high addresses. Slight rework of the handling
4137 of the high pc being a constant form, and limit it to
4138 DWARF verson 4 or higher.
4139 (dwarf2_record_block_ranges): Likewise.
4140 (read_partial_die): Likewise.
4141 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4143 2014-02-26 Tom Tromey <tromey@redhat.com>
4145 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4147 2014-02-26 Tom Tromey <tromey@redhat.com>
4149 * elfread.c (elf_read_minimal_symbols): Return early if
4150 minimal symbols have already been read. Add "ei" parameter.
4151 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4152 * minsyms.c (prim_record_minimal_symbol_full): Update.
4153 * objfiles.h (struct objstats) <n_minsyms>: Move...
4154 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4155 * symmisc.c (print_objfile_statistics): Update.
4157 2014-02-26 Tom Tromey <tromey@redhat.com>
4159 * elfread.c (elf_read_minimal_symbols): New function, from
4161 (elf_symfile_read): Call it.
4163 2014-02-26 Tom Tromey <tromey@redhat.com>
4165 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4166 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4167 (lookup_minimal_symbol_solib_trampoline)
4168 (lookup_minimal_symbol_by_pc_section_1)
4169 (lookup_minimal_symbol_and_objfile): Update.
4170 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4171 Don't allocate a minimal symbol if minsyms have already been read.
4172 (build_minimal_symbol_hash_tables): Update.
4173 (install_minimal_symbols): Do nothing if minsyms already read.
4174 Use the per-BFD obstack.
4175 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4176 * objfiles.c (allocate_objfile): Call
4177 terminate_minimal_symbol_table later.
4178 (have_minimal_symbols): Update.
4179 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4180 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4181 Move from struct objfile.
4182 <minsyms_read>: New field.
4183 (struct objfile) <msymbols, minimal_symbol_count,
4184 msymbol_hash, msymbol_demangled_hash>: Move.
4185 (ALL_OBJFILE_MSYMBOLS): Update.
4186 * symfile.c (read_symbols): Set minsyms_read.
4187 (reread_symbols): Update.
4188 * symmisc.c (dump_objfile, dump_msymbols): Update.
4190 2014-02-26 Tom Tromey <tromey@redhat.com>
4192 * minsyms.c (msymbols_sort): Remove.
4193 * minsyms.h (msymbols_sort): Remove.
4194 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4195 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4196 * elfread.c (elf_symtab_read): Don't add section offsets.
4197 * xcoffread.c (record_minimal_symbol): Don't add section offset
4198 to minimal symbol address.
4199 * somread.c (text_offset, data_offset): Remove.
4200 (som_symtab_read): Don't add section offsets to minimal symbol
4202 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4203 Don't add section offsets to minimal symbols.
4204 * coffread.c (coff_symtab_read): Don't add section offsets
4205 to minimal symbol addresses.
4206 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4207 to minimal symbol addresses.
4208 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4209 section offset to minimal symbol addresses.
4210 * mdebugread.c (parse_partial_symbols): Don't add section
4211 offset to minimal symbol addresses.
4212 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4213 offset to minimal symbol addresses.
4215 2014-02-26 Tom Tromey <tromey@redhat.com>
4217 * ada-lang.c (ada_main_name): Update.
4218 (ada_add_standard_exceptions): Update.
4219 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4220 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4221 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4222 * auxv.c (ld_so_xfer_auxv): Update.
4223 * avr-tdep.c (avr_scan_prologue): Update.
4224 * ax-gdb.c (gen_var_ref): Update.
4225 * blockframe.c (get_pc_function_start)
4226 (find_pc_partial_function_gnu_ifunc): Update.
4227 * breakpoint.c (create_overlay_event_breakpoint)
4228 (create_longjmp_master_breakpoint)
4229 (create_std_terminate_master_breakpoint)
4230 (create_exception_master_breakpoint): Update.
4231 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4232 * c-valprint.c (c_val_print): Update.
4233 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4234 * common/agent.c (agent_look_up_symbols): Update.
4235 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4236 * dwarf2loc.c (call_site_to_target_addr): Update.
4237 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4238 * elfread.c (elf_gnu_ifunc_record_cache)
4239 (elf_gnu_ifunc_resolve_by_got): Update.
4240 * findvar.c (default_read_var_value): Update.
4241 * frame.c (inside_main_func): Update.
4242 * frv-tdep.c (frv_frame_this_id): Update.
4243 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4244 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4246 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4247 (hppa_hpux_find_dummy_bpaddr): Update.
4248 * hppa-tdep.c (hppa_symbol_address): Update.
4249 * infcmd.c (until_next_command): Update.
4250 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4252 * linespec.c (minsym_found, add_minsym): Update.
4253 * linux-nat.c (get_signo): Update.
4254 * linux-thread-db.c (inferior_has_bug): Update.
4255 * m32c-tdep.c (m32c_return_value)
4256 (m32c_m16c_address_to_pointer): Update.
4257 * m32r-tdep.c (m32r_frame_this_id): Update.
4258 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4259 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4260 * maint.c (maintenance_translate_address): Update.
4261 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4262 (frob_address): New function.
4263 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4264 frob_address. Rename parameter to "pc_in".
4265 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4267 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4269 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4270 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4271 * objc-lang.c (find_objc_msgsend): Update.
4272 * objfiles.c (objfile_relocate1): Update.
4273 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4274 * p-valprint.c (pascal_val_print): Update.
4275 * parse.c (write_exp_msymbol): Update.
4276 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4277 (ppc_elfv2_skip_entrypoint): Update.
4278 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4279 * printcmd.c (build_address_symbolic, msym_info)
4280 (address_info): Update.
4281 * proc-service.c (ps_pglobal_lookup): Update.
4282 * psymtab.c (find_pc_sect_psymtab_closer)
4283 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4284 Change msymbol parameter to bound_minimal_symbol.
4285 * ravenscar-thread.c (get_running_thread_id): Update.
4286 * remote.c (remote_check_symbols): Update.
4287 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4289 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4290 * solib-dsbt.c (lm_base): Update.
4291 * solib-frv.c (lm_base, main_got): Update.
4292 * solib-irix.c (locate_base): Update.
4293 * solib-som.c (som_solib_create_inferior_hook)
4294 (link_map_start): Update.
4295 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4296 * solib-svr4.c (elf_locate_base, enable_break): Update.
4297 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4298 (flush_ea_cache): Update.
4299 * stabsread.c (define_symbol, scan_file_globals): Update.
4300 * stack.c (find_frame_funname): Update.
4301 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4302 (debug_qf_find_pc_sect_symtab): Update.
4303 * symfile.c (simple_read_overlay_table)
4304 (simple_overlay_update): Update.
4305 * symfile.h (struct quick_symbol_functions)
4306 <find_pc_sect_symtab>: Change type of msymbol to
4307 bound_minimal_symbol.
4308 * symmisc.c (dump_msymbols): Update.
4309 * symtab.c (find_pc_sect_symtab_via_partial)
4310 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4311 (search_symbols, print_msymbol_info): Update.
4312 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4313 (MSYMBOL_VALUE_ADDRESS): Redefine.
4314 (BMSYMBOL_VALUE_ADDRESS): New macro.
4315 * tracepoint.c (scope_info): Update.
4316 * tui/tui-disasm.c (tui_find_disassembly_address)
4317 (tui_get_begin_asm_address): Update.
4318 * valops.c (find_function_in_inferior): Update.
4319 * value.c (value_static_field, value_fn_field): Update.
4321 2014-02-26 Tom Tromey <tromey@redhat.com>
4323 * ada-lang.c (ada_update_initial_language): Update.
4324 (ada_main_name, ada_has_this_exception_support): Update.
4325 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4326 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4327 * arm-tdep.c (arm_skip_stub): Update.
4328 * auxv.c (ld_so_xfer_auxv): Update.
4329 * avr-tdep.c (avr_scan_prologue): Update.
4330 * ax-gdb.c (gen_var_ref): Update.
4331 * breakpoint.c (struct breakpoint_objfile_data)
4332 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4333 type to bound_minimal_symbol.
4334 (create_overlay_event_breakpoint)
4335 (create_longjmp_master_breakpoint)
4336 (create_std_terminate_master_breakpoint)
4337 (create_exception_master_breakpoint): Update.
4338 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4339 * c-exp.y (classify_name): Update.
4340 * coffread.c (coff_symfile_read): Update.
4341 * common/agent.c (agent_look_up_symbols): Update.
4342 * d-lang.c (d_main_name): Update.
4343 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4344 * dec-thread.c (enable_dec_thread): Update.
4345 * dwarf2loc.c (call_site_to_target_addr): Update.
4346 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4347 * eval.c (evaluate_subexp_standard): Update.
4348 * findvar.c (struct minsym_lookup_data) <result>: Change type
4349 to bound_minimal_symbol.
4351 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4352 * frame.c (inside_main_func): Update.
4353 * frv-tdep.c (frv_frame_this_id): Update.
4354 * gcore.c (call_target_sbrk): Update.
4355 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4356 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4358 * go-lang.c (go_main_name): Update.
4359 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4360 (hppa_hpux_find_import_stub_for_addr): Update.
4361 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4362 Update. Change return type.
4363 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4365 * jit.c (jit_breakpoint_re_set_internal): Update.
4366 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4368 * linux-nat.c (get_signo): Update.
4369 * linux-thread-db.c (inferior_has_bug): Update
4370 * m32c-tdep.c (m32c_return_value)
4371 (m32c_m16c_address_to_pointer): Update.
4372 * m32r-tdep.c (m32r_frame_this_id): Update.
4373 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4374 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4375 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4376 lookup_minimal_symbol. Change return type.
4377 (lookup_minimal_symbol): Remove.
4378 (lookup_bound_minimal_symbol): Update.
4379 (lookup_minimal_symbol_text): Change return type.
4380 (lookup_minimal_symbol_solib_trampoline): Change return type.
4381 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4382 (lookup_minimal_symbol_solib_trampoline): Change return type.
4383 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4384 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4385 (value_nsstring, find_imps): Update.
4386 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4387 * p-lang.c (pascal_main_name): Update.
4388 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4389 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4390 * proc-service.c (ps_pglobal_lookup): Update.
4391 * ravenscar-thread.c (get_running_thread_msymbol): Change
4393 (has_ravenscar_runtime, get_running_thread_id): Update.
4394 * remote.c (remote_check_symbols): Update.
4395 * sol-thread.c (ps_pglobal_lookup): Update.
4396 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4397 * solib-dsbt.c (lm_base): Update.
4398 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4400 * solib-irix.c (locate_base): Update.
4401 * solib-som.c (som_solib_create_inferior_hook)
4402 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4404 * solib-spu.c (spu_enable_break): Update.
4405 * solib-svr4.c (elf_locate_base, enable_break): Update.
4406 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4407 (flush_ea_cache): Update.
4408 * stabsread.c (define_symbol): Update.
4409 * symfile.c (simple_read_overlay_table): Update.
4410 * symtab.c (find_pc_sect_line): Update.
4411 * tracepoint.c (scope_info): Update.
4412 * tui-disasm.c (tui_get_begin_asm_address): Update.
4413 * value.c (value_static_field): Update.
4415 2014-02-26 Tom Tromey <tromey@redhat.com>
4417 * minsyms.c (prim_record_minimal_symbol_full): Use
4418 SET_MSYMBOL_VALUE_ADDRESS.
4419 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4420 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4421 SET_MSYMBOL_VALUE_ADDRESS.
4422 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4423 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4425 2014-02-26 Tom Tromey <tromey@redhat.com>
4427 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4428 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4429 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4430 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4431 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4432 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4433 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4434 * ada-lang.c (ada_main_name): Update.
4435 (ada_lookup_simple_minsym): Update.
4436 (ada_make_symbol_completion_list): Update.
4437 (ada_add_standard_exceptions): Update.
4438 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4439 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4440 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4441 * arm-tdep.c (skip_prologue_function): Update.
4442 (arm_skip_stack_protector, arm_skip_stub): Update.
4443 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4444 (arm_wince_skip_main_prologue): Update.
4445 * auxv.c (ld_so_xfer_auxv): Update.
4446 * avr-tdep.c (avr_scan_prologue): Update.
4447 * ax-gdb.c (gen_var_ref): Update.
4448 * block.c (call_site_for_pc): Update.
4449 * blockframe.c (get_pc_function_start): Update.
4450 (find_pc_partial_function_gnu_ifunc): Update.
4451 * breakpoint.c (create_overlay_event_breakpoint): Update.
4452 (create_longjmp_master_breakpoint): Update.
4453 (create_std_terminate_master_breakpoint): Update.
4454 (create_exception_master_breakpoint): Update.
4455 (resolve_sal_pc): Update.
4456 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4457 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4459 * c-valprint.c (c_val_print): Update.
4460 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4461 * coffread.c (coff_symfile_read): Update.
4462 * common/agent.c (agent_look_up_symbols): Update.
4463 * dbxread.c (find_stab_function_addr): Update.
4464 (end_psymtab): Update.
4465 * dwarf2loc.c (call_site_to_target_addr): Update.
4466 (func_verify_no_selftailcall): Update.
4467 (tailcall_dump): Update.
4468 (call_site_find_chain_1): Update.
4469 (dwarf_expr_reg_to_entry_parameter): Update.
4470 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4471 (elf_gnu_ifunc_resolve_by_got): Update.
4472 * f-valprint.c (info_common_command): Update.
4473 * findvar.c (read_var_value): Update.
4474 * frame.c (get_prev_frame_1): Update.
4475 (inside_main_func): Update.
4476 * frv-tdep.c (frv_skip_main_prologue): Update.
4477 (frv_frame_this_id): Update.
4478 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4479 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4480 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4481 (gnuv3_skip_trampoline): Update.
4482 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4483 (hppa64_hpux_in_solib_call_trampoline): Update.
4484 (hppa_hpux_skip_trampoline_code): Update.
4485 (hppa64_hpux_search_dummy_call_sequence): Update.
4486 (hppa_hpux_find_import_stub_for_addr): Update.
4487 (hppa_hpux_find_dummy_bpaddr): Update.
4488 * hppa-tdep.c (hppa_symbol_address)
4489 (hppa_lookup_stub_minimal_symbol): Update.
4490 * i386-tdep.c (i386_skip_main_prologue): Update.
4491 (i386_pe_skip_trampoline_code): Update.
4492 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4493 * infcall.c (get_function_name): Update.
4494 * infcmd.c (until_next_command): Update.
4495 * jit.c (jit_breakpoint_re_set_internal): Update.
4496 (jit_inferior_init): Update.
4497 * linespec.c (minsym_found): Update.
4498 (add_minsym): Update.
4499 * linux-fork.c (info_checkpoints_command): Update.
4500 * linux-nat.c (get_signo): Update.
4501 * linux-thread-db.c (inferior_has_bug): Update.
4502 * m32c-tdep.c (m32c_return_value): Update.
4503 (m32c_m16c_address_to_pointer): Update.
4504 (m32c_m16c_pointer_to_address): Update.
4505 * m32r-tdep.c (m32r_frame_this_id): Update.
4506 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4507 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4508 * maint.c (maintenance_translate_address): Update.
4509 * minsyms.c (add_minsym_to_hash_table): Update.
4510 (add_minsym_to_demangled_hash_table): Update.
4511 (msymbol_objfile): Update.
4512 (lookup_minimal_symbol): Update.
4513 (iterate_over_minimal_symbols): Update.
4514 (lookup_minimal_symbol_text): Update.
4515 (lookup_minimal_symbol_by_pc_name): Update.
4516 (lookup_minimal_symbol_solib_trampoline): Update.
4517 (lookup_minimal_symbol_by_pc_section_1): Update.
4518 (lookup_minimal_symbol_and_objfile): Update.
4519 (prim_record_minimal_symbol_full): Update.
4520 (compare_minimal_symbols): Update.
4521 (compact_minimal_symbols): Update.
4522 (build_minimal_symbol_hash_tables): Update.
4523 (install_minimal_symbols): Update.
4524 (terminate_minimal_symbol_table): Update.
4525 (find_solib_trampoline_target): Update.
4526 (minimal_symbol_upper_bound): Update.
4527 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4528 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4529 (mips_skip_pic_trampoline_code): Update.
4530 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4531 * objc-lang.c (selectors_info): Update.
4532 (classes_info): Update.
4533 (find_methods): Update.
4534 (find_imps): Update.
4535 (find_objc_msgsend): Update.
4536 * objfiles.c (objfile_relocate1): Update.
4537 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4538 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4539 * p-valprint.c (pascal_val_print): Update.
4540 * parse.c (write_exp_msymbol): Update.
4541 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4542 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4543 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4544 * printcmd.c (build_address_symbolic): Update.
4546 (address_info): Update.
4547 * proc-service.c (ps_pglobal_lookup): Update.
4548 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4549 (find_pc_sect_psymtab): Update.
4550 * python/py-framefilter.c (py_print_frame): Update.
4551 * ravenscar-thread.c (get_running_thread_id): Update.
4552 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4554 * remote.c (remote_check_symbols): Update.
4555 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4556 (rs6000_skip_trampoline_code): Update.
4557 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4558 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4559 * solib-dsbt.c (lm_base): Update.
4560 * solib-frv.c (lm_base): Update.
4562 * solib-irix.c (locate_base): Update.
4563 * solib-som.c (som_solib_create_inferior_hook): Update.
4564 (som_solib_desire_dynamic_linker_symbols): Update.
4565 (link_map_start): Update.
4566 * solib-spu.c (spu_enable_break): Update.
4567 (ocl_enable_break): Update.
4568 * solib-svr4.c (elf_locate_base): Update.
4569 (enable_break): Update.
4570 * spu-tdep.c (spu_get_overlay_table): Update.
4571 (spu_catch_start): Update.
4572 (flush_ea_cache): Update.
4573 * stabsread.c (define_symbol): Update.
4574 (scan_file_globals): Update.
4575 * stack.c (find_frame_funname): Update.
4576 (frame_info): Update.
4577 * symfile.c (simple_read_overlay_table): Update.
4578 (simple_overlay_update): Update.
4579 * symmisc.c (dump_msymbols): Update.
4580 * symtab.c (fixup_section): Update.
4581 (find_pc_sect_line): Update.
4582 (skip_prologue_sal): Update.
4583 (search_symbols): Update.
4584 (print_msymbol_info): Update.
4585 (rbreak_command): Update.
4586 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4587 (completion_list_objc_symbol): Update.
4588 (default_make_symbol_completion_list_break_on): Update.
4589 * tracepoint.c (scope_info): Update.
4590 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4591 (tui_get_begin_asm_address): Update.
4592 * valops.c (find_function_in_inferior): Update.
4593 * value.c (value_static_field): Update.
4594 (value_fn_field): Update.
4596 2014-02-26 Tom Tromey <tromey@redhat.com>
4598 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4599 bound minimal symbols. Move code that knows about minsym
4601 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4603 * minsyms.h (minimal_symbol_upper_bound): Declare.
4604 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4605 minimal_symbol_upper_bound.
4607 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4609 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4610 Use the type's name if its basic type does not have a tag.
4612 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4614 * dwarf2read.c (read_subrange_type): Add comment.
4616 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4618 * dwarf2read.c (update_enumeration_type_from_children): New
4619 function, mostly extracted from process_structure_scope.
4620 (read_enumeration_type): Call update_enumeration_type_from_children.
4621 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4622 and flag_flag_enum fields.
4624 2014-02-26 Pedro Alves <palves@redhat.com>
4626 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4627 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4628 to_xfer_partial method.
4630 2014-02-26 Pedro Alves <palves@redhat.com>
4632 * target.c (complete_target_initialization): Don't install
4633 default_xfer_partial as to_xfer_partial hook.
4635 (update_current_target): Don't INHERIT nor de_fault
4636 deprecated_xfer_memory. Delete de_fault macro.
4637 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4638 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4639 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4642 2014-02-26 Pedro Alves <palves@redhat.com>
4644 * go32-nat.c (my_write_child): New function.
4645 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4646 (go32_xfer_partial): New function.
4647 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4648 Instead install a to_xfer_partial hook.
4650 2014-02-26 Pedro Alves <palves@redhat.com>
4652 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4653 to_xfer_partial helper. Rewrite.
4654 (procfs_xfer_partial): New function.
4655 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4656 Install a to_xfer_partial hook.
4658 2014-02-26 Pedro Alves <palves@redhat.com>
4660 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4661 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4662 (m32r_xfer_partial): New function.
4663 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4664 Install a to_xfer_partial hook.
4666 2014-02-26 Pedro Alves <palves@redhat.com>
4668 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4670 (mips_xfer_partial): New function.
4671 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4672 hook. Install a to_xfer_partial hook.
4674 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4676 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4677 * gdbtypes.c (create_array_type_with_stride): New function,
4678 renaming create_array_type, but with an added parameter
4679 called "bit_stride".
4680 (create_array_type): Re-implement using
4681 create_array_type_with_stride.
4682 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4683 and DW_AT_bit_stride attributes.
4685 2014-02-26 Pedro Alves <palves@redhat.com>
4687 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4688 task-specific breakpoints.
4690 2014-02-25 Pedro Alves <palves@redhat.com>
4692 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4693 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4695 2014-02-25 Stan Shebs <stan@codesourcery.com>
4697 * defs.h: Annotate comments for Doxygen.
4699 2014-02-25 Tom Tromey <tromey@redhat.com>
4701 * target.h (target_ignore): Don't declare.
4702 * target.c (target_ignore): Remove.
4704 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4707 * auto-load.c (auto_load_objfile_script_1): Change filename to
4710 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4712 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4713 documentation. Adjust prototype to match the target_ops
4714 to_xfer_partial method. Adjust implementation accordingly.
4716 2014-02-25 Hui Zhu <hui@codesourcery.com>
4718 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4721 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4723 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4724 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4725 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4726 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4727 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4728 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4729 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4730 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4732 (rl78_register_type): Use a data pointer type for SP and
4733 new pseudo registers mentioned above. Use a 16 bit integer
4734 type for all other register pairs.
4735 (rl78_register_name, rl78_g10_register_name): Update for
4736 new pseudo registers.
4737 (rl78_pseudo_register_read): Likewise.
4738 (rl78_pseudo_register_write): Likewise.
4739 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4740 to the newly added pseudo registers.
4742 2014-02-24 Doug Evans <dje@google.com>
4744 * value.c (record_latest_value): Fix comment.
4745 * printcmd.c (print_command_1): Remove code to handle -1 return from
4746 record_latest_value.
4748 2014-02-24 Pedro Alves <palves@redhat.com>
4750 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4751 deprecated_xfer_memory hook.
4752 (procfs_xfer_partial): Call procfs_xfer_memory instead
4753 of the deprecated_xfer_memory target hook.
4754 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4757 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4759 * windows-nat.c (windows_xfer_shared_libraries): Return
4760 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4761 requested object is TARGET_OBJECT_LIBRARIES.
4763 2014-02-24 Yao Qi <yao@codesourcery.com>
4765 * target.h (enum target_xfer_status)
4766 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4767 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4769 * corefile.c (memory_error_message): User updated.
4770 * exec.c (section_table_read_available_memory): Likewise.
4771 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4772 * target.c (target_xfer_status_to_string): Likewise.
4773 (raw_memory_xfer_partial): Likewise.
4774 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4775 * valops.c (read_value_memory): Likewise.
4776 * exec.h: Update comments.
4778 2014-02-24 Yao Qi <yao@codesourcery.com>
4780 * target.c (target_xfer_status_to_string): Rename argument err
4782 * target.h (target_xfer_status_to_string): Update declaration.
4783 Replace target_xfer_error_to_string with
4784 target_xfer_status_to_string in comment.
4786 2014-02-24 Yao Qi <yao@codesourcery.com>
4788 * mips-linux-nat.c (super_close): Update its type.
4789 (mips_linux_close): Pass 'self' to super_close.
4791 2014-02-24 Yao Qi <yao@codesourcery.com>
4793 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4794 * corefile.c (read_memory): Adjusted.
4795 * target.c (target_write_with_progress): Adjusted.
4797 2014-02-23 Yao Qi <yao@codesourcery.com>
4801 2013-10-25 Yao Qi <yao@codesourcery.com>
4803 * remote.c (remote_traceframe_info): Return early if
4804 traceframe is not selected.
4806 2013-07-19 Yao Qi <yao@codesourcery.com>
4808 * target.c (update_current_target): Change the default action
4809 of 'to_traceframe_info' from tcomplain to return_zero.
4810 * target.h (struct target_ops) <to_traceframe_info>: Add more
4813 2014-02-23 Yao Qi <yao@codesourcery.com>
4815 * valops.c (read_value_memory): Rewrite it. Call
4816 target_xfer_partial in a loop.
4817 * exec.h (section_table_available_memory): Remove declaration.
4818 Move comments to ...
4819 * exec.c (section_table_available_memory): ... here. Make it
4822 2014-02-23 Yao Qi <yao@codesourcery.com>
4824 * exec.c (section_table_read_available_memory): New function.
4825 * exec.h (section_table_read_available_memory): Declare.
4826 * ctf.c (ctf_xfer_partial): Call
4827 section_table_read_available_memory.
4828 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4830 2014-02-23 Yao Qi <yao@codesourcery.com>
4832 * ctf.c (ctf_xfer_partial): Move code to ...
4833 * exec.c (exec_read_partial_read_only): ... it. New function.
4834 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4835 * tracefile.c: Include "exec.h".
4836 * exec.h (exec_read_partial_read_only): Declare.
4838 2014-02-23 Yao Qi <yao@codesourcery.com>
4840 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4841 (tfile_has_memory): Remove.
4842 (init_tfile_ops): Don't set fields to_has_all_memory and
4843 to_has_memory of tfile_ops.
4844 * tracefile.c (tracefile_has_all_memory): New function.
4845 (tracefile_has_memory): New function.
4846 (init_tracefile_ops): Initialize fields to_has_all_memory and
4847 to_has_memory of 'ops'.
4849 2014-02-23 Yao Qi <yao@codesourcery.com>
4851 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4852 (ctf_thread_alive, ctf_get_trace_status): Remove.
4853 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4855 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4856 (tfile_has_stack, tfile_has_registers): Remove.
4857 (tfile_thread_alive): Remove.
4858 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4860 * tracefile.c (tracefile_has_stack): New function.
4861 (tracefile_has_registers): New function.
4862 (tracefile_thread_alive): New function.
4863 (tracefile_get_trace_status): New function.
4864 (init_tracefile_ops): New function.
4865 * tracefile.h (init_tracefile_ops): Declare.
4867 2014-02-23 Yao Qi <yao@codesourcery.com>
4869 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4870 (O_LARGEFILE): Likewise.
4871 (tfile_ops): Likewise.
4872 (TRACE_HEADER_SIZE): Likewise.
4873 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4874 (cur_data_size): Likewise.
4875 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4876 (tfile_close, tfile_files_info): Likewise.
4877 (tfile_get_trace_status): Likewise.
4878 (tfile_get_tracepoint_status): Likewise.
4879 (tfile_get_traceframe_address): Likewise.
4880 (tfile_trace_find, match_blocktype): Likewise.
4881 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4882 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4883 (tfile_get_trace_state_variable_value): Likewise.
4884 (tfile_has_all_memory, tfile_has_memory): Likewise.
4885 (tfile_has_stack, tfile_has_registers): Likewise.
4886 (tfile_thread_alive, build_traceframe_info): Likewise.
4887 (tfile_traceframe_info, init_tfile_ops): Likewise.
4888 (_initialize_tracepoint): Don't call init_tfile_ops
4889 and add_target_with_completer.
4890 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4891 exec.h, completer.h and filenames.h.
4892 (_initialize_tracefile_tfile): New function.
4894 2014-02-23 Yao Qi <yao@codesourcery.com>
4896 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4898 (HFILES_NO_SRCDIR): Add tracefile.h.
4899 * ctf.c: Include "tracefile.h".
4900 * tracefile.h: New file.
4901 * tracefile.c: New file
4902 * tracefile-tfile.c: New file.
4903 * tracepoint.c: Include "tracefile.h".
4904 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4905 (stop_reason_names): Add const.
4906 (trace_file_writer_xfree): Move it to tracefile.c.
4907 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4908 (trace_save_ctf): Likewise.
4909 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4910 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4911 (tfile_write_header, tfile_write_regblock_type): Likewise.
4912 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4913 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4914 (tfile_write_raw_data, tfile_end): Likewise.
4915 (tfile_trace_file_writer_new): Likewise.
4916 (free_uploaded_tp): Make it extern.
4917 (free_uploaded_tsv): Make it extern.
4918 (_initialize_tracepoint): Move code to register command 'tsave'
4920 * tracepoint.h (stop_reason_names): Declare.
4921 (struct trace_frame_write_ops): Move it to tracefile.h.
4922 (struct trace_file_write_ops): Likewise.
4923 (struct trace_file_writer): Likewise.
4924 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4926 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4931 (get_cores_used_by_process): New parameter num_cores, use it.
4932 (linux_xfer_osdata_processes): Pass num_cores to it.
4933 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4936 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4938 * target.c (memory_xfer_partial): Fix length arg in call to
4939 breakpoint_xfer_memory.
4941 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4944 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4945 number comes after the + or - signs. Adjust length of register
4946 name to be extracted.
4948 2014-02-20 Tom Tromey <tromey@redhat.com>
4950 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4951 (ada_varobj_ops): Mark "extern".
4953 2014-02-20 Tom Tromey <tromey@redhat.com>
4955 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4957 2014-02-20 Doug Evans <xdje42@gmail.com>
4959 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4960 All callers updated.
4961 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4962 All callers updated.
4963 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4964 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4966 2014-02-20 lin zuojian <manjian2006@gmail.com>
4967 Joel Brobecker <brobecker@adacore.com>
4968 Doug Evans <xdje42@gmail.com>
4971 * dwarf2read.c (struct die_info): New member in_process.
4972 (reset_die_in_process): New function.
4973 (process_die): Set it at the start, reset when returning.
4974 (inherit_abstract_dies): Only call process_die if origin_child_die
4975 not already being processed.
4977 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4979 * windows-nat.c (handle_unload_dll): Add function documentation.
4980 (do_initial_windows_stuff): Add comment explaining why we wait
4981 until after inferior initialization has finished before
4982 processing all DLLs.
4984 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4986 * windows-nat.c (get_module_name): Delete.
4987 (windows_get_exec_module_filename): New function, mostly
4988 inspired from get_module_name.
4989 (windows_pid_to_exec_file): Replace call to get_module_name
4990 by call to windows_get_exec_module_filename.
4992 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4994 * windows-nat.c (handle_load_dll): Rewrite this function's
4995 introductory comment. Remove code using get_module_name
4996 to get the DLL's name.
4998 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5000 * windows-nat.c (get_windows_debug_event): Ignore
5001 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5002 if windows_initialization_done == 0.
5003 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5004 Adjust implementation to always load all DLLs.
5005 (do_initial_windows_stuff): Replace call to
5006 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5008 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5010 * windows-nat.c (_initialize_windows_nat): Deprecate the
5011 "dll-symbols" command. Turn the "add-shared-symbol-files"
5012 and "assf" aliases into commands, and deprecate them as well.
5013 * NEWS: Add entry explaining that "dll-symbols" and its two
5014 aliases are now deprecated.
5016 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5018 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5019 new-line in debug string. Remove trailing spaces.
5021 2014-02-19 Stan Shebs <stan@codesourcery.com>
5023 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5025 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5027 * NEWS: Add entry for the new feature
5028 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5031 2014-02-19 Stan Shebs <stan@codesourcery.com>
5033 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5035 2014-02-19 Pedro Alves <palves@redhat.com>
5037 * common/ptid.h (struct ptid): Mention that process_stratum
5038 targets should prefer ptid.lwp.
5040 2014-02-19 Pedro Alves <palves@redhat.com>
5042 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5043 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5044 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5045 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5046 store remote thread ids rather than ptid.tid.
5047 (_initialize_remote): Adjust.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target.c (target_get_unwinder): Rewrite.
5052 (target_get_tailcall_unwinder): Rewrite.
5053 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5054 (record_btrace_to_get_tailcall_unwinder): New function.
5055 (init_record_btrace_ops): Update.
5056 * target.h (struct target_ops) <to_get_unwinder,
5057 to_get_tailcall_unwinder>: Now function pointers. Use
5058 TARGET_DEFAULT_RETURN.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5064 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5070 * target-delegates.c: Rebuild.
5071 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5072 TARGET_DEFAULT_FUNC.
5073 * target.c (default_target_decr_pc_after_break): Rename from
5074 forward_target_decr_pc_after_break. Simplify.
5075 (target_decr_pc_after_break): Rely on delegation.
5077 2014-02-19 Tom Tromey <tromey@redhat.com>
5079 * target.c (update_current_target): Do not INHERIT to_doc or
5080 to_magic. Do not de_fault to_open or to_close.
5082 2014-02-19 Tom Tromey <tromey@redhat.com>
5084 * gcore.h (objfile_find_memory_regions): Declare.
5085 * gcore.c (objfile_find_memory_regions): No longer static. Add
5087 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5088 * exec.c: Include gcore.h.
5089 (exec_set_find_memory_regions): Remove.
5090 (exec_find_memory_regions): Remove.
5091 (exec_do_find_memory_regions): Remove.
5092 (init_exec_ops): Update.
5093 * defs.h (exec_set_find_memory_regions): Remove.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.h (struct target_ops) <to_extra_thread_info,
5099 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5100 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5101 not 0, in TARGET_DEFAULT_RETURN.
5103 2014-02-19 Tom Tromey <tromey@redhat.com>
5105 * target.c (complete_target_initialization): Remove casts. Use
5106 return_zero_has_execution.
5107 (return_zero): Add "ignore" argument.
5108 (return_zero_has_execution): New function.
5109 (init_dummy_target): Remove casts. Use
5110 return_zero_has_execution.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target.c (update_current_target): Update comments. Do not
5117 2014-02-19 Tom Tromey <tromey@redhat.com>
5119 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5121 * corelow.c (core_read_description): Delegate when needed.
5122 * remote.c (remote_read_description): Delegate when needed.
5123 * target-delegates.c: Rebuild.
5124 * target.c (target_read_description): Rewrite.
5125 * target.h (struct target_ops) <to_read_description>: Update
5126 comment. Use TARGET_DEFAULT_RETURN.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (update_current_target): Don't inherit or default
5133 (find_default_run_target): Check against delegate_can_run.
5134 * target.h (struct target_ops) <to_can_run>: Use
5135 TARGET_DEFAULT_RETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (target_disconnect): Unconditionally delegate.
5141 * target.h (struct target_ops) <to_disconnect>: Use
5142 TARGET_DEFAULT_NORETURN.
5144 2014-02-19 Tom Tromey <tromey@redhat.com>
5146 * record.c (record_stop): Unconditionally delegate.
5147 * target-delegates.c: Rebuild.
5148 * target.c (target_stop_recording): Unconditionally delegate.
5149 * target.h (struct target_ops) <to_stop_recording>: Use
5150 TARGET_DEFAULT_IGNORE.
5152 2014-02-19 Tom Tromey <tromey@redhat.com>
5154 * target-delegates.c: Rebuild.
5155 * target.c (target_enable_btrace): Unconditionally delegate.
5156 * target.h (struct target_ops) <to_enable_btrace>: Use
5157 TARGET_DEFAULT_NORETURN.
5159 2014-02-19 Tom Tromey <tromey@redhat.com>
5161 * target-delegates.c: Rebuild.
5162 * target.c (target_read_btrace): Unconditionally delegate.
5163 * target.h (struct target_ops) <to_read_btrace>: Use
5164 TARGET_DEFAULT_NORETURN.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (target_teardown_btrace): Unconditionally delegate.
5170 * target.h (struct target_ops) <to_teardown_btrace>: Use
5171 TARGET_DEFAULT_NORETURN.
5173 2014-02-19 Tom Tromey <tromey@redhat.com>
5175 * target-delegates.c: Rebuild.
5176 * target.c (target_disable_btrace): Unconditionally delegate.
5177 * target.h (struct target_ops) <to_disable_btrace>: Use
5178 TARGET_DEFAULT_NORETURN.
5180 2014-02-19 Tom Tromey <tromey@redhat.com>
5182 * target-delegates.c: Rebuild.
5183 * target.c (default_search_memory): New function.
5184 (simple_search_memory): Update comment.
5185 (target_search_memory): Unconditionally delegate.
5186 * target.h (struct target_ops) <to_search_memory>: Use
5187 TARGET_DEFAULT_FUNC.
5189 2014-02-19 Tom Tromey <tromey@redhat.com>
5191 * auxv.c (default_auxv_parse): No longer static.
5192 (target_auxv_parse): Unconditionally delegate.
5193 * auxv.h (default_auxv_parse): Declare.
5194 * target-delegates.c: Rebuild.
5195 * target.c: Include auxv.h.
5196 * target.h (struct target_ops) <to_auxv_parse>: Use
5197 TARGET_DEFAULT_FUNC.
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target-delegates.c: Rebuild.
5202 * target.c (target_memory_map): Unconditionally delegate.
5203 * target.h (struct target_ops) <to_memory_map>: Use
5204 TARGET_DEFAULT_RETURN.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target-delegates.c: Rebuild.
5209 * target.c (target_thread_alive): Unconditionally delegate.
5210 * target.h (struct target_ops) <to_thread_alive>: Use
5211 TARGET_DEFAULT_RETURN.
5213 2014-02-19 Tom Tromey <tromey@redhat.com>
5215 * target-delegates.c: Rebuild.
5216 * target.c (target_save_record): Unconditionally delegate.
5217 * target.h (struct target_ops) <to_save_record>: Use
5218 TARGET_DEFAULT_NORETURN.
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target-delegates.c: Rebuild.
5223 * target.c (target_delete_record): Unconditionally delegate.
5224 * target.h (struct target_ops) <to_delete_record>: Use
5225 TARGET_DEFAULT_NORETURN.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (target_record_is_replaying): Unconditionally
5232 * target.h (struct target_ops) <to_record_is_replaying>: Use
5233 TARGET_DEFAULT_RETURN.
5235 2014-02-19 Tom Tromey <tromey@redhat.com>
5237 * target-delegates.c: Rebuild.
5238 * target.c (target_goto_record_begin): Unconditionally delegate.
5239 * target.h (struct target_ops) <to_goto_record_begin>: Use
5240 TARGET_DEFAULT_NORETURN.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target-delegates.c: Rebuild.
5245 * target.c (target_goto_record_end): Unconditionally delegate.
5246 * target.h (struct target_ops) <to_goto_record_end>: Use
5247 TARGET_DEFAULT_NORETURN.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * target-delegates.c: Rebuild.
5252 * target.c (target_goto_record): Unconditionally delegate.
5253 * target.h (struct target_ops) <to_goto_record>: Use
5254 TARGET_DEFAULT_NORETURN.
5256 2014-02-19 Tom Tromey <tromey@redhat.com>
5258 * target-delegates.c: Rebuild.
5259 * target.c (target_insn_history): Unconditionally delegate.
5260 * target.h (struct target_ops) <to_insn_history>: Use
5261 TARGET_DEFAULT_NORETURN.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target-delegates.c: Rebuild.
5266 * target.c (target_insn_history_from): Unconditionally delegate.
5267 * target.h (struct target_ops) <to_insn_history_from>: Use
5268 TARGET_DEFAULT_NORETURN.
5270 2014-02-19 Tom Tromey <tromey@redhat.com>
5272 * target-delegates.c: Rebuild.
5273 * target.c (target_insn_history_range): Unconditionally delegate.
5274 * target.h (struct target_ops) <to_insn_history_range>: Use
5275 TARGET_DEFAULT_NORETURN.
5277 2014-02-19 Tom Tromey <tromey@redhat.com>
5279 * target-delegates.c: Rebuild.
5280 * target.c (target_call_history): Unconditionally delegate.
5281 * target.h (struct target_ops) <to_call_history>: Use
5282 TARGET_DEFAULT_NORETURN.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target-delegates.c: Rebuild.
5287 * target.c (target_call_history_from): Unconditionally delegate.
5288 * target.h (struct target_ops) <to_call_history_from>: Use
5289 TARGET_DEFAULT_NORETURN.
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5293 * target-delegates.c: Rebuild.
5294 * target.c (target_call_history_range): Unconditionally delegate.
5295 * target.h (struct target_ops) <to_call_history_range>: Use
5296 TARGET_DEFAULT_NORETURN.
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target-delegates.c: Rebuild.
5301 * target.c (target_verify_memory): Unconditionally delegate.
5302 * target.h (struct target_ops) <to_verify_memory>: Use
5303 TARGET_DEFAULT_NORETURN.
5305 2014-02-19 Tom Tromey <tromey@redhat.com>
5307 * target-delegates.c: Rebuild.
5308 * target.c (target_core_of_thread): Unconditionally delegate.
5309 * target.h (struct target_ops) <to_core_of_thread>: Use
5310 TARGET_DEFAULT_RETURN.
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target-delegates.c: Rebuild.
5315 * target.c (target_flash_done): Unconditionally delegate.
5316 * target.h (struct target_ops) <to_flash_done>: Use
5317 TARGET_DEFAULT_NORETURN.
5319 2014-02-19 Tom Tromey <tromey@redhat.com>
5321 * target-delegates.c: Rebuild.
5322 * target.c (target_flash_erase): Unconditionally delegate.
5323 * target.h (struct target_ops) <to_flash_erase>: Use
5324 TARGET_DEFAULT_NORETURN.
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target-delegates.c: Rebuild.
5329 * target.c (target_get_section_table): Unconditionally delegate.
5330 * target.h (struct target_ops) <to_get_section_table>: Use
5331 TARGET_DEFAULT_RETURN.
5333 2014-02-19 Tom Tromey <tromey@redhat.com>
5335 * target-delegates.c: Rebuild.
5336 * target.c (target_pid_to_str): Unconditionally delegate.
5337 (init_dummy_target): Don't initialize to_pid_to_str.
5338 (default_pid_to_str): Rename from dummy_pid_to_str.
5339 * target.h (struct target_ops) <to_pid_to_str>: Use
5340 TARGET_DEFAULT_FUNC.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target-delegates.c: Rebuild.
5345 * target.c (target_find_new_threads): Unconditionally delegate.
5346 * target.h (struct target_ops) <to_find_new_threads>: Use
5347 TARGET_DEFAULT_RETURN.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target-delegates.c: Rebuild.
5352 * target.c (target_program_signals): Unconditionally delegate.
5353 * target.h (struct target_ops) <to_program_signals>: Use
5354 TARGET_DEFAULT_IGNORE.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target-delegates.c: Rebuild.
5359 * target.c (target_pass_signals): Unconditionally delegate.
5360 * target.h (struct target_ops) <to_pass_signals>: Use
5361 TARGET_DEFAULT_IGNORE.
5363 2014-02-19 Tom Tromey <tromey@redhat.com>
5365 * target-delegates.c: Rebuild.
5366 * target.c (default_mourn_inferior): New function.
5367 (target_mourn_inferior): Unconditionally delegate.
5368 * target.h (struct target_ops) <to_mourn_inferior>: Use
5369 TARGET_DEFAULT_FUNC.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target-delegates.c: Rebuild.
5374 * target.c (default_follow_fork): New function.
5375 (target_follow_fork): Unconditionally delegate.
5376 * target.h (struct target_ops) <to_follow_fork>: Use
5377 TARGET_DEFAULT_FUNC.
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target-delegates.c: Rebuild.
5382 * target.c (target_kill): Unconditionally delegate.
5383 * target.h (struct target_ops) <to_kill>: Use
5384 TARGET_DEFAULT_NORETURN.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target-delegates.c: Rebuild.
5389 * target.c (target_masked_watch_num_registers): Unconditionally
5391 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5392 Use TARGET_DEFAULT_RETURN.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target-delegates.c: Rebuild.
5397 * target.c (target_remove_mask_watchpoint): Unconditionally
5399 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5400 TARGET_DEFAULT_RETURN.
5402 2014-02-19 Tom Tromey <tromey@redhat.com>
5404 * target-delegates.c: Rebuild.
5405 * target.c (target_insert_mask_watchpoint): Unconditionally
5407 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5408 TARGET_DEFAULT_RETURN.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target-delegates.c: Rebuild.
5413 * target.c (target_ranged_break_num_registers): Unconditionally
5415 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5416 Use TARGET_DEFAULT_RETURN.
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target-delegates.c: Rebuild.
5421 * target.c (target_fetch_registers): Unconditionally delegate.
5422 * target.h (struct target_ops) <to_fetch_registers>: Use
5423 TARGET_DEFAULT_NORETURN.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target-delegates.c: Rebuild.
5428 * target.c (update_current_target): Don't inherit or default
5430 * target.h (struct target_ops) <to_stop>: Use
5431 TARGET_DEFAULT_IGNORE.
5433 2014-02-19 Tom Tromey <tromey@redhat.com>
5435 * target-delegates.c: Rebuild.
5436 * target.c (update_current_target): Don't inherit or default
5437 to_can_run_breakpoint_commands.
5438 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5439 Use TARGET_DEFAULT_RETURN.
5441 2014-02-19 Tom Tromey <tromey@redhat.com>
5443 * target-delegates.c: Rebuild.
5444 * target.c (update_current_target): Don't inherit or default
5445 to_supports_evaluation_of_breakpoint_conditions.
5446 * target.h (struct target_ops)
5447 <to_supports_evaluation_of_breakpoint_conditions>: Use
5448 TARGET_DEFAULT_RETURN.
5450 2014-02-19 Tom Tromey <tromey@redhat.com>
5452 * target-delegates.c: Rebuild.
5453 * target.c (update_current_target): Don't inherit or default
5454 to_augmented_libraries_svr4_read.
5455 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5456 Use TARGET_DEFAULT_RETURN.
5458 2014-02-19 Tom Tromey <tromey@redhat.com>
5460 * target-delegates.c: Rebuild.
5461 * target.c (update_current_target): Don't inherit or default
5463 * target.h (struct target_ops) <to_can_use_agent>: Use
5464 TARGET_DEFAULT_RETURN.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target-delegates.c: Rebuild.
5469 * target.c (update_current_target): Don't inherit or default
5471 * target.h (struct target_ops) <to_use_agent>: Use
5472 TARGET_DEFAULT_NORETURN.
5474 2014-02-19 Tom Tromey <tromey@redhat.com>
5476 * target-delegates.c: Rebuild.
5477 * target.c (update_current_target): Don't inherit or default
5479 (return_null): Remove.
5480 * target.h (struct target_ops) <to_traceframe_info>: Use
5481 TARGET_DEFAULT_RETURN.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target-delegates.c: Rebuild.
5486 * target.c (update_current_target): Don't inherit or default
5487 to_static_tracepoint_markers_by_strid.
5488 * target.h (struct target_ops)
5489 <to_static_tracepoint_markers_by_strid>: Use
5490 TARGET_DEFAULT_NORETURN.
5492 2014-02-19 Tom Tromey <tromey@redhat.com>
5494 * target-delegates.c: Rebuild.
5495 * target.c (update_current_target): Don't inherit or default
5496 to_static_tracepoint_marker_at.
5497 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5498 Use TARGET_DEFAULT_RETURN.
5500 2014-02-19 Tom Tromey <tromey@redhat.com>
5502 * target-delegates.c: Rebuild.
5503 * target.c (update_current_target): Don't inherit or default
5505 * target.h (struct target_ops) <to_set_permissions>: Use
5506 TARGET_DEFAULT_IGNORE.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target-delegates.c: Rebuild.
5511 * target.c (update_current_target): Don't inherit or default
5513 * target.h (struct target_ops) <to_get_tib_address>: Use
5514 TARGET_DEFAULT_NORETURN.
5516 2014-02-19 Tom Tromey <tromey@redhat.com>
5518 * target-delegates.c: Rebuild.
5519 * target.c (update_current_target): Don't inherit or default
5521 * target.h (struct target_ops) <to_set_trace_notes>: Use
5522 TARGET_DEFAULT_RETURN.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target-delegates.c: Rebuild.
5527 * target.c (update_current_target): Don't initialize
5528 to_set_trace_buffer_size.
5529 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5530 TARGET_DEFAULT_IGNORE.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target-delegates.c: Rebuild.
5535 * target.c (update_current_target): Don't inherit or default
5536 to_set_circular_trace_buffer.
5537 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5538 TARGET_DEFAULT_IGNORE.
5540 2014-02-19 Tom Tromey <tromey@redhat.com>
5542 * target-delegates.c: Rebuild.
5543 * target.c (update_current_target): Don't inherit or default
5544 to_set_disconnected_tracing.
5545 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5546 TARGET_DEFAULT_IGNORE.
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target-delegates.c: Rebuild.
5551 * target.c (update_current_target): Don't inherit or default
5552 to_get_min_fast_tracepoint_insn_len.
5553 (return_minus_one): Remove.
5554 * target.h (struct target_ops)
5555 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * target-delegates.c: Rebuild.
5560 * target.c (update_current_target): Don't inherit or default
5561 to_get_raw_trace_data.
5562 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5563 TARGET_DEFAULT_NORETURN.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target-delegates.c: Rebuild.
5568 * target.c (update_current_target): Don't inherit or default
5569 to_upload_trace_state_variables.
5570 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5571 Use TARGET_DEFAULT_RETURN.
5573 2014-02-19 Tom Tromey <tromey@redhat.com>
5575 * target-delegates.c: Rebuild.
5576 * target.c (update_current_target): Don't inherit or default
5577 to_upload_tracepoints.
5578 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5579 TARGET_DEFAULT_RETURN.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target-delegates.c: Rebuild.
5584 * target.c (update_current_target): Don't inherit or default
5586 * target.h (struct target_ops) <to_save_trace_data>: Use
5587 TARGET_DEFAULT_NORETURN.
5589 2014-02-19 Tom Tromey <tromey@redhat.com>
5591 * target-delegates.c: Rebuild.
5592 * target.c (update_current_target): Don't inherit or default
5593 to_get_trace_state_variable_value.
5594 * target.h (struct target_ops)
5595 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target-delegates.c: Rebuild.
5600 * target.c (update_current_target): Don't inherit or default
5602 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5604 2014-02-19 Tom Tromey <tromey@redhat.com>
5606 * target-delegates.c: Rebuild.
5607 * target.c (update_current_target): Don't inherit or default
5609 * target.h (struct target_ops) <to_trace_stop>: Use
5610 TARGET_DEFAULT_NORETURN.
5612 2014-02-19 Tom Tromey <tromey@redhat.com>
5614 * target-delegates.c: Rebuild.
5615 * target.c (update_current_target): Don't inherit or default
5616 to_get_tracepoint_status.
5617 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5618 TARGET_DEFAULT_NORETURN.
5620 2014-02-19 Tom Tromey <tromey@redhat.com>
5622 * target-delegates.c: Rebuild.
5623 * target.c (update_current_target): Don't inherit or default
5624 to_get_trace_status.
5625 * target.h (struct target_ops) <to_get_trace_status>: Use
5626 TARGET_DEFAULT_RETURN.
5628 2014-02-19 Tom Tromey <tromey@redhat.com>
5630 * target-delegates.c: Rebuild.
5631 * target.c (update_current_target): Don't inherit or default
5633 * target.h (struct target_ops) <to_trace_start>: Use
5634 TARGET_DEFAULT_NORETURN.
5636 2014-02-19 Tom Tromey <tromey@redhat.com>
5638 * target-delegates.c: Rebuild.
5639 * target.c (update_current_target): Don't inherit or default
5640 to_trace_set_readonly_regions.
5641 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5642 Use TARGET_DEFAULT_NORETURN.
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target-delegates.c: Rebuild.
5647 * target.c (update_current_target): Don't inherit or default
5648 to_disable_tracepoint.
5649 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5650 TARGET_DEFAULT_NORETURN.
5652 2014-02-19 Tom Tromey <tromey@redhat.com>
5654 * target-delegates.c: Rebuild.
5655 * target.c (update_current_target): Don't inherit or default
5656 to_enable_tracepoint.
5657 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5658 TARGET_DEFAULT_NORETURN.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target-delegates.c: Rebuild.
5663 * target.c (update_current_target): Don't inherit or default
5664 to_download_trace_state_variable.
5665 * target.h (struct target_ops) <to_download_trace_state_variable>:
5666 Use TARGET_DEFAULT_NORETURN.
5668 2014-02-19 Tom Tromey <tromey@redhat.com>
5670 * target-delegates.c: Rebuild.
5671 * target.c (update_current_target): Don't inherit or default
5672 to_can_download_tracepoint.
5673 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5674 TARGET_DEFAULT_RETURN.
5676 2014-02-19 Tom Tromey <tromey@redhat.com>
5678 * target-delegates.c: Rebuild.
5679 * target.c (update_current_target): Don't inherit or default
5680 to_download_tracepoint.
5681 * target.h (struct target_ops) <to_download_tracepoint>: Use
5682 TARGET_DEFAULT_NORETURN.
5684 2014-02-19 Tom Tromey <tromey@redhat.com>
5686 * target-delegates.c: Rebuild.
5687 * target.c (update_current_target): Don't inherit or default
5689 * target.h (struct target_ops) <to_trace_init>: Use
5690 TARGET_DEFAULT_RETURN.
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target-delegates.c: Rebuild.
5695 * target.c (update_current_target): Don't inherit or default
5696 to_supports_string_tracing.
5697 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5698 TARGET_DEFAULT_RETURN.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target-delegates.c: Rebuild.
5703 * target.c (update_current_target): Don't inherit or default
5704 to_supports_enable_disable_tracepoint.
5705 * target.h (struct target_ops)
5706 <to_supports_enable_disable_tracepoint>: Use
5707 TARGET_DEFAULT_RETURN.
5709 2014-02-19 Tom Tromey <tromey@redhat.com>
5711 * target-delegates.c: Rebuild.
5712 * target.c (update_current_target): Don't inherit or default
5713 to_supports_multi_process.
5714 * target.h (struct target_ops) <to_supports_multi_process>: Use
5715 TARGET_DEFAULT_RETURN.
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * target-delegates.c: Rebuild.
5720 * target.c (update_current_target): Don't inherit or default
5721 to_get_ada_task_ptid.
5722 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5723 TARGET_DEFAULT_FUNC.
5725 2014-02-19 Tom Tromey <tromey@redhat.com>
5727 * target-delegates.c: Rebuild.
5728 * target.c (update_current_target): Don't inherit or default
5729 to_thread_architecture.
5730 * target.h (struct target_ops) <to_thread_architecture>: Use
5731 TARGET_DEFAULT_FUNC.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target-delegates.c: Rebuild.
5736 * target.c (update_current_target): Don't inherit or default
5737 to_execution_direction.
5738 * target.h (struct target_ops) <to_execution_direction>: Use
5739 TARGET_DEFAULT_FUNC.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target-delegates.c: Rebuild.
5744 * target.c (update_current_target): Don't inherit or default
5745 to_can_execute_reverse.
5746 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5747 TARGET_DEFAULT_RETURN.
5748 (target_can_execute_reverse): Unconditionally delegate.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target-delegates.c: Rebuild.
5753 * target.c (update_current_target): Don't inherit or default
5755 (dummy_goto_bookmark): Remove.
5756 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5757 * target.h (struct target_ops) <to_goto_bookmark>: Use
5758 TARGET_DEFAULT_NORETURN.
5760 2014-02-19 Tom Tromey <tromey@redhat.com>
5762 * target-delegates.c: Rebuild.
5763 * target.c (update_current_target): Don't inherit or default
5765 (dummy_get_bookmark): Remove.
5766 (init_dummy_target): Don't inherit or default to_get_bookmark.
5767 * target.h (struct target_ops) <to_get_bookmark>: Use
5768 TARGET_DEFAULT_NORETURN
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target-delegates.c: Rebuild.
5773 * target.c (update_current_target): Don't inherit or default
5774 to_make_corefile_notes.
5775 (init_dummy_target): Don't initialize to_make_corefile_notes.
5776 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5777 TARGET_DEFAULT_FUNC.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target-delegates.c: Rebuild.
5782 * target.c (update_current_target): Don't inherit or default
5783 to_find_memory_regions.
5784 (init_dummy_target): Don't initialize to_find_memory_regions.
5785 * target.h (struct target_ops) <to_find_memory_regions>: Use
5786 TARGET_DEFAULT_FUNC.
5788 2014-02-19 Tom Tromey <tromey@redhat.com>
5790 * target-delegates.c: Rebuild.
5791 * target.c (update_current_target): Don't inherit or default
5793 * target.h (struct target_ops) <to_log_command>: Use
5794 TARGET_DEFAULT_IGNORE.
5795 (target_log_command): Unconditionally delegate.
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target-delegates.c: Rebuild.
5800 * target.c (update_current_target): Don't inherit or default
5801 to_pid_to_exec_file.
5802 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5803 TARGET_DEFAULT_RETURN.
5805 2014-02-19 Tom Tromey <tromey@redhat.com>
5807 * target-delegates.c: Rebuild.
5808 * target.c (update_current_target): Don't inherit or default
5810 (target_thread_name): Unconditionally delegate.
5811 * target.h (struct target_ops) <to_thread_name>: Use
5812 TARGET_DEFAULT_RETURN.
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * target-delegates.c: Rebuild.
5817 * target.c (update_current_target): Don't inherit or default
5818 to_extra_thread_info.
5819 * target.h (struct target_ops) <to_extra_thread_info>: Use
5820 TARGET_DEFAULT_RETURN.
5822 2014-02-19 Tom Tromey <tromey@redhat.com>
5824 * target-delegates.c: Rebuild.
5825 * target.c (update_current_target): Don't inherit or default
5827 * target.h (struct target_ops) <to_has_exited>: Use
5828 TARGET_DEFAULT_RETURN..
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target-delegates.c: Rebuild.
5833 * target.c (update_current_target): Don't inherit or default
5834 to_set_syscall_catchpoint.
5835 (return_one): Remove.
5836 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5837 TARGET_DEFAULT_RETURN.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target-delegates.c: Rebuild.
5842 * target.c (update_current_target): Don't inherit or default
5843 to_insert_exec_catchpoint.
5844 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5845 TARGET_DEFAULT_RETURN.
5847 2014-01-08 Tom Tromey <tromey@redhat.com>
5849 * target-delegates.c: Rebuild.
5850 * target.c (update_current_target): Don't inherit or default
5851 to_insert_exec_catchpoint.
5852 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5853 TARGET_DEFAULT_RETURN.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (update_current_target): Don't inherit or default
5859 to_remove_vfork_catchpoint.
5860 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5861 TARGET_DEFAULT_RETURN.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target-delegates.c: Rebuild.
5866 * target.c (update_current_target): Don't inherit or default
5867 to_insert_vfork_catchpoint.
5868 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5869 TARGET_DEFAULT_RETURN.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target-delegates.c: Rebuild.
5874 * target.c (update_current_target): Don't inherit or default
5875 to_remove_fork_catchpoint.
5876 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5877 TARGET_DEFAULT_RETURN.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target-delegates.c: Rebuild.
5882 * target.c (update_current_target): Don't inherit or default
5883 to_insert_fork_catchpoint.
5884 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5885 TARGET_DEFAULT_RETURN.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (update_current_target): Don't inherit or default
5891 to_post_startup_inferior.
5892 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5893 TARGET_DEFAULT_IGNORE.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target-delegates.c: Rebuild.
5898 * target.c (update_current_target): Don't inherit or default
5900 * target.h (struct target_ops) <to_load>: Use
5901 TARGET_DEFAULT_NORETURN.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * target-delegates.c: Rebuild.
5906 * target.c (update_current_target): Don't inherit or default
5908 * target.h (struct target_ops) <to_terminal_info>: Use
5909 TARGET_DEFAULT_FUNC.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5915 to_terminal_save_ours.
5916 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5917 TARGET_DEFAULT_IGNORE.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target-delegates.c: Rebuild.
5922 * target.c (update_current_target): Don't inherit or default
5924 * target.h (struct target_ops) <to_terminal_ours>: Use
5925 TARGET_DEFAULT_IGNORE.
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5929 * target-delegates.c: Rebuild.
5930 * target.c (update_current_target): Don't inherit or default
5931 to_terminal_ours_for_output.
5932 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5933 TARGET_DEFAULT_IGNORE.
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5937 * target-delegates.c: Rebuild.
5938 * target.c (update_current_target): Don't inherit or default
5939 to_terminal_inferior.
5940 * target.h (struct target_ops) <to_terminal_inferior>: Use
5941 TARGET_DEFAULT_IGNORE.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (update_current_target): Don't inherit or default
5948 * target.h (struct target_ops) <to_terminal_init>: Use
5949 TARGET_DEFAULT_IGNORE.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (update_current_target): Don't inherit or default
5955 to_can_accel_watchpoint_condition.
5956 * target.h (struct target_ops)
5957 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target-delegates.c: Rebuild.
5962 * target.c (update_current_target): Don't inherit or default
5963 to_region_ok_for_hw_watchpoint.
5964 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5965 Use TARGET_DEFAULT_FUNC.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target-delegates.c: Rebuild.
5970 * target.c (update_current_target): Don't inherit or default
5971 to_watchpoint_addr_within_range.
5972 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5973 Use TARGET_DEFAULT_FUNC.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * target-delegates.c: Rebuild.
5978 * target.c (update_current_target): Don't inherit or default
5979 to_remove_watchpoint.
5980 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5981 TARGET_DEFAULT_NORETURN.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (update_current_target): Don't inherit or default
5987 to_insert_watchpoint.
5988 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5989 TARGET_DEFAULT_RETURN.
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target-delegates.c: Rebuild.
5994 * target.c (update_current_target): Don't inherit or default
5995 to_remove_hw_breakpoint.
5996 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5997 TARGET_DEFAULT_RETURN.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target-delegates.c: Rebuild.
6002 * target.c (update_current_target): Don't inherit or default
6003 to_insert_hw_breakpoint.
6004 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6005 TARGET_DEFAULT_RETURN.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target-delegates.c: Rebuild.
6010 * target.c (update_current_target): Don't inherit or default
6011 to_can_use_hw_breakpoint.
6012 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6013 TARGET_DEFAULT_RETURN.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target-delegates.c: Rebuild.
6018 * target.c (update_current_target): Don't inherit or default
6020 * target.h (struct target_ops) <to_files_info>: Use
6021 TARGET_DEFAULT_IGNORE.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target-delegates.c: Rebuild.
6026 * target.c (update_current_target): Don't inherit or default
6028 * target.h (struct target_ops) <to_store>: Use
6029 TARGET_DEFAULT_NORETURN.
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6033 * target-delegates.c: Rebuild.
6034 * target.c (update_current_target): Don't inherit or default
6036 * target.h (struct target_ops) <to_post_attach>: Use
6037 TARGET_DEFAULT_IGNORE.
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target-delegates.c: Rebuild.
6042 * target.c (update_current_target): Don't inherit or default
6044 (default_rcmd): New function.
6045 (do_monitor_command): Unconditionally delegate.
6046 * target.h (struct target_ops) <to_rmcd>: Use
6047 TARGET_DEFAULT_FUNC.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (init_dummy_target): Don't initialize to_attach.
6053 (target_attach): Unconditionally delegate.
6054 * target.h (struct target_ops) <to_attach>: Use
6055 TARGET_DEFAULT_FUNC.
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_detach): Unconditionally delegate.
6061 (init_dummy_target): Don't initialize to_detach.
6062 * target.h (struct target_ops) <to_detach>: Use
6063 TARGET_DEFAULT_IGNORE.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6069 (target_augmented_libraries_svr4_read): Add argument.
6070 * target.c (update_current_target): Update.
6071 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target.h (struct target_ops) <to_call_history_range>: Add
6078 * target.c (target_call_history_range): Add argument.
6079 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6081 (record_btrace_call_history_from): Update.
6083 2014-02-19 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops) <to_call_history_from>: Add
6087 * target.c (target_call_history_from): Add argument.
6088 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target.h (struct target_ops) <to_call_history>: Add argument.
6094 * target.c (target_call_history): Add argument.
6095 * record-btrace.c (record_btrace_call_history): Add 'self'
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * target.h (struct target_ops) <to_insn_history_range>: Add
6102 * target.c (target_insn_history_range): Add argument.
6103 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6105 (record_btrace_insn_history_from): Update.
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6109 * target.h (struct target_ops) <to_insn_history_from>: Add
6111 * target.c (target_insn_history_from): Add argument.
6112 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6115 2014-02-19 Tom Tromey <tromey@redhat.com>
6117 * target.h (struct target_ops) <to_insn_history>: Add argument.
6118 * target.c (target_insn_history): Add argument.
6119 * record-btrace.c (record_btrace_insn_history): Add 'self'
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target.h (struct target_ops) <to_goto_record>: Add argument.
6125 * target.c (target_goto_record): Add argument.
6126 * record-full.c (record_full_goto): Add 'self' argument.
6127 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6129 2014-02-19 Tom Tromey <tromey@redhat.com>
6131 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6132 * target.c (target_goto_record_end): Add argument.
6133 * record-full.c (record_full_goto_end): Add 'self' argument.
6134 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target.h (struct target_ops) <to_goto_record_begin>: Add
6140 * target.c (target_goto_record_begin): Add argument.
6141 * record-full.c (record_full_goto_begin): Add 'self' argument.
6142 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6145 2014-02-19 Tom Tromey <tromey@redhat.com>
6147 * target.h (struct target_ops) <to_record_is_replaying>: Add
6149 * target.c (target_record_is_replaying): Add argument.
6150 * record-full.c (record_full_is_replaying): Add 'self' argument.
6151 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6153 (record_btrace_xfer_partial, record_btrace_store_registers)
6154 (record_btrace_prepare_to_store, record_btrace_resume)
6155 (record_btrace_wait, record_btrace_decr_pc_after_break)
6156 (record_btrace_find_new_threads, record_btrace_thread_alive):
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target.h (struct target_ops) <to_delete_record>: Add argument.
6162 * target.c (target_delete_record): Add argument.
6163 * record-full.c (record_full_delete): Add 'self' argument.
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_save_record>: Add argument.
6168 * target.c (target_save_record): Add argument.
6169 * record-full.c (record_full_save): Add 'self' argument.
6170 (record_full_save): Add 'self' argument.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target.h (struct target_ops) <to_info_record>: Add argument.
6175 * target.c (target_info_record): Add argument.
6176 * record.c (info_record_command): Add argument.
6177 * record-full.c (record_full_info): Add 'self' argument.
6178 * record-btrace.c (record_btrace_info): Add 'self' argument.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6183 * target.c (target_stop_recording): Add argument.
6184 * record.c (record_stop): Add argument.
6185 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6188 2014-02-19 Tom Tromey <tromey@redhat.com>
6190 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6191 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6192 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6194 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6195 (_initialize_amd64_linux_nat): Use it.
6196 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6197 (_initialize_i386_linux_nat): Use it.
6199 2014-02-19 Tom Tromey <tromey@redhat.com>
6201 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6202 * target.c (target_teardown_btrace): Add argument.
6203 * remote.c (remote_teardown_btrace): Add 'self' argument.
6204 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6206 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6212 * target.c (target_disable_btrace): Add argument.
6213 * remote.c (remote_disable_btrace): Add 'self' argument.
6214 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6216 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6222 * target.c (target_enable_btrace): Add argument.
6223 * remote.c (remote_enable_btrace): Add 'self' argument.
6224 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6226 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6232 (target_can_use_agent): Add argument.
6233 * target.c (update_current_target): Update.
6234 * remote.c (remote_can_use_agent): Add 'self' argument.
6235 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.h (struct target_ops) <to_use_agent>: Add argument.
6240 (target_use_agent): Add argument.
6241 * target.c (update_current_target): Update.
6242 * remote.c (remote_use_agent): Add 'self' argument.
6243 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6248 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6249 (target_traceframe_info): Add argument.
6250 * target.c (update_current_target): Update.
6251 * remote.c (remote_traceframe_info): Add 'self' argument.
6252 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * target.h (target_static_tracepoint_markers_by_strid): Add
6258 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6260 * target.c (update_current_target): Update.
6261 * remote.c (struct target_ops)
6262 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6263 * linux-nat.c (struct target_ops)
6264 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6270 (target_static_tracepoint_marker_at): Add argument.
6271 * target.c (update_current_target): Update.
6272 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6278 (target_set_permissions): Add argument.
6279 * target.c (update_current_target): Update.
6280 * remote.c (remote_set_permissions): Add 'self' argument.
6281 (remote_start_remote): Update.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6286 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6287 (target_get_tib_address): Add argument.
6288 * target.c (update_current_target): Update.
6289 * remote.c (remote_get_tib_address): Add 'self' argument.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6294 (target_set_trace_notes): Add argument.
6295 * target.c (update_current_target): Update.
6296 * remote.c (remote_set_trace_notes): Add 'self' argument.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6302 (target_set_trace_buffer_size): Add argument.
6303 * target.c (update_current_target): Update.
6304 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6310 (target_set_circular_trace_buffer): Add argument.
6311 * target.c (update_current_target): Update.
6312 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6319 (target_set_disconnected_tracing): Add argument.
6320 * target.c (update_current_target): Update.
6321 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target.h (struct target_ops)
6326 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6327 (target_get_min_fast_tracepoint_insn_len): Add argument.
6328 * target.c (update_current_target): Update.
6329 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6332 2014-02-19 Tom Tromey <tromey@redhat.com>
6334 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6336 (target_get_raw_trace_data): Add argument.
6337 * target.c (update_current_target): Update.
6338 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6340 2014-02-19 Tom Tromey <tromey@redhat.com>
6342 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6344 (target_upload_trace_state_variables): Add argument.
6345 * target.c (update_current_target): Update.
6346 * remote.c (remote_upload_trace_state_variables): Add 'self'
6348 (remote_start_remote): Update.
6350 2014-02-19 Tom Tromey <tromey@redhat.com>
6352 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6354 (target_upload_tracepoints): Add argument.
6355 * target.c (update_current_target): Update.
6356 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6357 (remote_start_remote): Update.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6362 (target_save_trace_data): Add argument.
6363 * target.c (update_current_target): Update.
6364 * remote.c (remote_save_trace_data): Add 'self' argument.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6370 * target.h (struct target_ops)
6371 <to_get_trace_state_variable_value>: Add argument.
6372 (target_get_trace_state_variable_value): Add argument.
6373 * target.c (update_current_target): Update.
6374 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6376 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6381 * target.h (struct target_ops) <to_trace_find>: Add argument.
6382 (target_trace_find): Add argument.
6383 * target.c (update_current_target): Update.
6384 * remote.c (remote_trace_find): Add 'self' argument.
6385 * ctf.c (ctf_trace_find): Add 'self' argument.
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6390 (target_trace_stop): Add argument.
6391 * target.c (update_current_target): Update.
6392 * remote.c (remote_trace_stop): Add 'self' argument.
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6397 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6399 (target_get_tracepoint_status): Add argument.
6400 * target.c (update_current_target): Update.
6401 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6406 * target.h (struct target_ops) <to_get_trace_status>: Add
6408 (target_get_trace_status): Add argument.
6409 * target.c (update_current_target): Update.
6410 * remote.c (remote_get_trace_status): Add 'self' argument.
6411 (remote_start_remote, remote_can_download_tracepoint): Update.
6412 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target.h (struct target_ops) <to_trace_start>: Add argument.
6417 (target_trace_start): Add argument.
6418 * target.c (update_current_target): Update.
6419 * remote.c (remote_trace_start): Add 'self' argument.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6425 (target_trace_set_readonly_regions): Add argument.
6426 * target.c (update_current_target): Update.
6427 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6430 2014-02-19 Tom Tromey <tromey@redhat.com>
6432 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6434 (target_disable_tracepoint): Add argument.
6435 * target.c (update_current_target): Update.
6436 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6442 (target_enable_tracepoint): Add argument.
6443 * target.c (update_current_target): Update.
6444 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target.h (struct target_ops) <to_download_trace_state_variable>:
6450 (target_download_trace_state_variable): Add argument.
6451 * target.c (update_current_target): Update.
6452 * remote.c (remote_download_trace_state_variable): Add 'self'
6455 2014-02-19 Tom Tromey <tromey@redhat.com>
6457 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6459 (target_can_download_tracepoint): Add argument.
6460 * target.c (update_current_target): Update.
6461 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target.h (struct target_ops) <to_download_tracepoint>: Add
6467 (target_download_tracepoint): Add argument.
6468 * target.c (update_current_target): Update.
6469 * remote.c (remote_download_tracepoint): Add 'self' argument.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target.h (struct target_ops) <to_trace_init>: Add argument.
6474 (target_trace_init): Add argument.
6475 * target.c (update_current_target): Update.
6476 * remote.c (remote_trace_init): Add 'self' argument.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6481 * target.c (target_fileio_readlink): Add argument.
6482 * remote.c (remote_hostio_readlink): Add 'self' argument.
6483 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6488 * target.c (target_fileio_unlink): Add argument.
6489 * remote.c (remote_hostio_unlink): Add 'self' argument.
6490 (remote_file_delete): Update.
6491 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6496 * target.c (target_fileio_close): Add argument.
6497 * remote.c (remote_hostio_close): Add 'self' argument.
6498 (remote_hostio_close_cleanup): Update.
6499 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6501 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6506 * target.c (target_fileio_pread): Add argument.
6507 * remote.c (remote_hostio_pread): Add 'self' argument.
6508 (remote_bfd_iovec_pread, remote_file_get): Update.
6509 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6514 * target.c (target_fileio_pwrite): Add argument.
6515 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6516 (remote_file_put): Update.
6517 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6519 2014-02-19 Tom Tromey <tromey@redhat.com>
6521 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6522 * target.c (target_fileio_open): Add argument.
6523 * remote.c (remote_hostio_open): Add 'self' argument.
6524 (remote_bfd_iovec_open): Add 'self' argument.
6525 (remote_file_put): Add 'self' argument.
6526 (remote_file_get): Add 'self' argument.
6527 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6529 2014-02-19 Tom Tromey <tromey@redhat.com>
6531 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6533 (target_can_run_breakpoint_commands): Add argument.
6534 * target.c (update_current_target): Update.
6535 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6537 (remote_insert_breakpoint): Add 'self' argument.
6538 (remote_insert_hw_breakpoint): Add 'self' argument.
6539 (remote_can_run_breakpoint_commands): Add 'self' argument.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target.h (struct target_ops)
6544 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6545 (target_supports_evaluation_of_breakpoint_conditions): Add
6547 * target.c (update_current_target): Update.
6548 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6550 (remote_insert_breakpoint): Add 'self' argument.
6551 (remote_insert_hw_breakpoint): Add 'self' argument.
6552 (remote_supports_cond_breakpoints): Add 'self' argument.
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6558 (target_supports_string_tracing): Add argument.
6559 * target.c (update_current_target): Update.
6560 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target.h (struct target_ops)
6565 <to_supports_disable_randomization>: Add argument.
6566 * target.c (find_default_supports_disable_randomization): Add
6568 (target_supports_disable_randomization): Add argument.
6569 (find_default_supports_disable_randomization): Add 'self'
6571 * remote.c (extended_remote_supports_disable_randomization): Add
6573 (remote_supports_disable_randomization): Add 'self' argument.
6574 (extended_remote_create_inferior): Update.
6575 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6580 * target.h (struct target_ops)
6581 <to_supports_enable_disable_tracepoint>: Add argument.
6582 (target_supports_enable_disable_tracepoint): Add argument.
6583 * target.c (update_current_target): Update.
6584 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * target.h (struct target_ops) <to_supports_multi_process>: Add
6591 (target_supports_multi_process): Add argument.
6592 * target.c (update_current_target): Update.
6593 * remote.c (remote_supports_multi_process): Add 'self' argument.
6594 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6596 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target.h (struct target_ops) <to_execution_direction>: Add
6603 (target_execution_direction): Add argument.
6604 * target.c (default_execution_direction): Add 'self' argument.
6605 * record-full.c (record_full_execution_direction): Add 'self'
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6612 (target_can_execute_reverse): Add argument.
6613 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6614 * record-full.c (record_full_can_execute_reverse): Add 'self'
6616 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6622 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6624 (target_get_ada_task_ptid): Add argument.
6625 * target.c (update_current_target): Update.
6626 (default_get_ada_task_ptid): Add 'self' argument.
6627 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6628 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6629 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6631 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6633 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6635 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6637 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6638 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6641 2014-02-19 Tom Tromey <tromey@redhat.com>
6643 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6644 (target_goto_bookmark): Add argument.
6645 * target.c (dummy_goto_bookmark): Add 'self' argument.
6646 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6651 (target_get_bookmark): Add argument.
6652 * target.c (dummy_get_bookmark): Add 'self' argument.
6653 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6659 (target_make_corefile_notes): Add argument.
6660 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6661 * procfs.c (procfs_make_note_section): Add 'self' argument.
6662 (procfs_make_note_section): Add 'self' argument.
6663 (procfs_make_note_section): Add 'self' argument.
6664 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6666 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6667 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6668 * exec.c (exec_make_note_section): Add 'self' argument.
6669 (exec_make_note_section): Add 'self' argument.
6671 2014-02-19 Tom Tromey <tromey@redhat.com>
6673 * target.h (struct target_ops) <to_find_memory_regions>: Add
6675 (target_find_memory_regions): Add argument.
6676 * target.c (dummy_find_memory_regions): Add 'self' argument.
6677 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6678 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6679 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6680 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6681 * exec. (exec_do_find_memory_regions): New global.
6682 (exec_set_find_memory_regions): Rewrite.
6683 (exec_find_memory_regions): New function.
6684 (init_exec_ops): Use exec_find_memory_regions.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target.h (struct target_ops) <to_supports_non_stop>: Add
6690 * target.c (find_default_supports_non_stop): Add argument.
6691 (target_supports_non_stop): Add argument.
6692 (find_default_supports_non_stop): Add 'self' argument.
6693 * remote.c (remote_supports_non_stop): Add 'self' argument.
6694 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6696 2014-02-19 Tom Tromey <tromey@redhat.com>
6698 * target.h (struct target_ops) <to_log_command>: Add argument.
6699 (target_log_command): Add argument.
6700 * serial.h (serial_log_command): Add 'self' argument.
6701 * serial.c (serial_log_command): Add 'self' argument.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6706 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6708 (target_pid_to_exec_file): Add argument.
6709 * target.c (debug_to_pid_to_exec_file): Add argument.
6710 (update_current_target): Update.
6711 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6712 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6713 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6714 (linux_handle_extended_wait): Update.
6715 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6716 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6717 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6718 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target.h (struct target_ops) <to_rcmd>: Add argument.
6723 (target_rcmd): Add argument.
6724 * target.c (debug_to_rcmd): Add argument.
6725 (update_current_target, do_monitor_command): Update.
6726 * remote.c (remote_rcmd): Add 'self' argument.
6727 * monitor.c (monitor_rcmd): Add 'self' argument.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * windows-nat.c (windows_stop): Add 'self' argument.
6732 * target.h (struct target_ops) <to_stop>: Add argument.
6733 * target.c (target_stop): Add argument.
6734 (debug_to_stop): Add argument.
6735 (update_current_target): Update.
6736 * remote.c (remote_stop): Add 'self' argument.
6737 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6738 (gdbsim_cntrl_c): Update.
6739 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6740 * procfs.c (procfs_stop): Add 'self' argument.
6741 * nto-procfs.c (procfs_stop): Add 'self' argument.
6742 * monitor.c (monitor_stop): Add 'self' argument.
6743 (monitor_open): Update.
6744 * linux-nat.c (linux_nat_stop): Add argument.
6745 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6746 * gnu-nat.c (gnu_stop): Add 'self' argument.
6747 * darwin-nat.c (darwin_stop): Add 'self' argument.
6749 2014-02-19 Tom Tromey <tromey@redhat.com>
6751 * target.h (struct target_ops) <to_thread_name>: Add argument.
6752 * target.c (target_thread_name): Add argument.
6753 (update_current_target): Update.
6754 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6758 * target.h (struct target_ops) <to_extra_thread_info>: Add
6760 (target_extra_thread_info): Add argument.
6761 * target.c (update_current_target): Update.
6762 * remote.c (remote_threads_extra_info): Add 'self' argument.
6763 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6765 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6766 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6767 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6769 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6771 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6773 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6776 2014-02-19 Tom Tromey <tromey@redhat.com>
6778 * target.h (struct target_ops) <to_program_signals>: Add argument.
6779 * target.c (target_program_signals): Add argument.
6780 * remote.c (remote_program_signals): Add 'self' argument.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6785 * target.c (target_pass_signals): Add argument.
6786 * remote.c (remote_pass_signals): Add 'self' argument.
6787 (remote_start_remote): Update.
6788 * procfs.c (procfs_pass_signals): Add 'self' argument.
6789 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6790 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6791 (linux_nat_create_inferior, linux_nat_attach): Update.
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * windows-nat.c (windows_can_run): Add 'self' argument.
6796 * target.h (struct target_ops) <to_can_run>: Add argument.
6797 (target_can_run): Add argument.
6798 * target.c (debug_to_can_run): Add argument.
6799 (update_current_target): Update.
6800 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6801 * inf-child.c (inf_child_can_run): Add 'self' argument.
6802 * go32-nat.c (go32_can_run): Add 'self' argument.
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target.h (struct target_ops) <to_has_exited>: Add argument.
6807 (target_has_exited): Add argument.
6808 * target.c (debug_to_has_exited): Add argument.
6809 (update_current_target): Update.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6815 (target_set_syscall_catchpoint): Add argument.
6816 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6818 * target.c (update_current_target): Update.
6820 2014-02-19 Tom Tromey <tromey@redhat.com>
6822 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6824 (target_remove_exec_catchpoint): Add argument.
6825 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6826 (update_current_target): Update.
6827 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6830 2014-02-19 Tom Tromey <tromey@redhat.com>
6832 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6834 (target_insert_exec_catchpoint): Add argument.
6835 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6836 (update_current_target): Update.
6837 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6840 2014-02-19 Tom Tromey <tromey@redhat.com>
6842 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6844 (target_remove_vfork_catchpoint): Add argument.
6845 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6846 (update_current_target): Update.
6847 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6850 2014-02-19 Tom Tromey <tromey@redhat.com>
6852 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6854 (target_insert_vfork_catchpoint): Add argument.
6855 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6856 (update_current_target): Update.
6857 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6860 2014-02-19 Tom Tromey <tromey@redhat.com>
6862 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6864 (target_remove_fork_catchpoint): Add argument.
6865 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6866 (update_current_target): Update.
6867 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6874 (target_insert_fork_catchpoint): Add argument.
6875 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6876 (update_current_target): Update.
6877 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6884 (target_post_startup_inferior): Add argument.
6885 * target.c (debug_to_post_startup_inferior): Add argument.
6886 (update_current_target): Update.
6887 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6889 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6891 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6893 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6895 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6897 (super_post_startup_inferior): Likewise.
6898 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6900 (super_post_startup_inferior): Likewise.
6901 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6902 Add 'self' argument.
6903 (super_post_startup_inferior): Likewise.
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target.h (struct target_ops) <to_load>: Add argument.
6908 * target.c (target_load): Add argument.
6909 (debug_to_load): Add argument.
6910 (update_current_target): Update.
6911 * remote.c (remote_load): Add 'self' argument.
6912 * remote-sim.c (gdbsim_load): Add 'self' argument.
6913 * remote-mips.c (mips_load): Add 'self' argument.
6914 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6915 * monitor.c (monitor_load): Add 'self' argument.
6916 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6918 2014-02-19 Tom Tromey <tromey@redhat.com>
6920 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6921 (target_terminal_info): Add argument.
6922 * target.c (debug_to_terminal_info): Add argument.
6923 (default_terminal_info): Likewise.
6924 * inflow.c (child_terminal_info): Add 'self' argument.
6925 * inferior.h (child_terminal_info): Add 'self' argument.
6926 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6928 2014-02-19 Tom Tromey <tromey@redhat.com>
6930 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6932 (target_terminal_save_ours): Add argument.
6933 * target.c (debug_to_terminal_save_ours): Add argument.
6934 (update_current_target): Update.
6935 * inflow.c (terminal_save_ours): Add 'self' argument.
6936 * inferior.h (terminal_save_ours): Add 'self' argument.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6941 (target_terminal_ours): Add argument.
6942 * target.c (debug_to_terminal_ours): Add argument.
6943 (update_current_target): Update.
6944 * remote.c (remote_terminal_ours): Add 'self' argument.
6945 (remote_close): Update.
6946 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6947 * inflow.c (terminal_ours): Add 'self' argument.
6948 * inferior.h (terminal_ours): Add 'self' argument.
6949 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6951 2014-02-19 Pedro Alves <palves@redhat.com>
6952 Tom Tromey <tromey@redhat.com>
6954 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6956 (target_terminal_ours_for_output): Add argument.
6957 * target.c (debug_to_terminal_ours_for_output): Add argument.
6958 (update_current_target): Update.
6959 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6960 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6961 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6963 2014-02-19 Tom Tromey <tromey@redhat.com>
6965 * target.h (struct target_ops) <to_terminal_inferior>: Add
6967 * target.c (target_terminal_inferior): Add argument.
6968 (update_current_target): Update.
6969 * remote.c (remote_terminal_inferior): Add 'self' argument.
6970 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6971 * inflow.c (terminal_inferior): Add 'self' argument.
6972 * inferior.h (terminal_inferior): Add 'self' argument.
6973 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6974 (go32_terminal_inferior): Add 'self' argument.
6976 2014-02-19 Tom Tromey <tromey@redhat.com>
6978 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6979 (target_terminal_init): Add argument.
6980 * target.c (debug_to_terminal_init): Add argument.
6981 (update_current_target): Update.
6982 * inflow.c (terminal_init_inferior): Add 'self' argument.
6983 * inferior.h (terminal_init_inferior): Add 'self' argument.
6984 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6985 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target.h (struct target_ops)
6990 <to_can_accel_watchpoint_condition>: Add argument.
6991 (target_can_accel_watchpoint_condition): Add argument.
6992 * target.c (debug_to_can_accel_watchpoint_condition): Add
6994 (update_current_target): Update.
6995 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6998 2014-02-19 Tom Tromey <tromey@redhat.com>
7000 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7002 (target_region_ok_for_hw_watchpoint): Add argument.
7003 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7004 (default_region_ok_for_hw_watchpoint): Add argument.
7005 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7006 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7008 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7010 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7012 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7014 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7016 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7018 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7019 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7021 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7022 Add 'self' argument.
7024 2014-02-19 Tom Tromey <tromey@redhat.com>
7026 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7028 (target_insert_watchpoint): Add argument.
7029 * target.c (debug_to_insert_watchpoint): Add argument.
7030 (update_current_target): Update.
7031 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7032 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7033 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7034 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7035 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7036 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7038 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7039 (procfs_insert_hw_watchpoint): Add 'self' argument.
7040 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7042 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7044 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7046 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7047 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7049 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7052 2014-02-19 Tom Tromey <tromey@redhat.com>
7054 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7056 (target_remove_watchpoint): Add argument.
7057 * target.c (debug_to_remove_watchpoint): Add argument.
7058 (update_current_target): Update.
7059 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7060 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7061 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7062 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7063 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7064 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7066 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7067 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7069 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7071 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7073 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7074 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7076 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7079 2014-02-19 Tom Tromey <tromey@redhat.com>
7081 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7083 (target_remove_hw_breakpoint): Add argument.
7084 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7085 (update_current_target): Update.
7086 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7087 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7089 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7090 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7092 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7099 (target_insert_hw_breakpoint): Add argument.
7100 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7101 (update_current_target): Update.
7102 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7103 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7105 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7106 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7107 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7109 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7112 2014-02-19 Tom Tromey <tromey@redhat.com>
7114 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7116 (target_can_use_hardware_watchpoint): Add argument.
7117 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7118 (update_current_target): Update.
7119 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7121 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7123 * remote.c (remote_check_watch_resources): Add 'self' argument.
7124 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7125 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7127 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7128 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7130 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7132 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7134 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7136 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7138 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7140 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7141 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7143 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7146 2014-02-19 Tom Tromey <tromey@redhat.com>
7148 * target.h (struct target_ops) <to_post_attach>: Add argument.
7149 (target_post_attach): Add argument.
7150 * target.c (debug_to_post_attach): Add argument.
7151 (update_current_target): Update.
7152 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7153 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7154 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7155 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7156 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * windows-nat.c (windows_close): Add 'self' argument.
7161 * tracepoint.c (tfile_close): Add 'self' argument.
7162 * target.h (struct target_ops) <to_close>: Add argument.
7163 * target.c (target_close): Add argument.
7164 (update_current_target): Update.
7165 * remote.c (remote_close): Add 'self' argument.
7166 * remote-sim.c (gdbsim_close): Add 'self' argument.
7167 * remote-mips.c (mips_close): Add 'self' argument.
7168 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7169 * record-full.c (record_full_close): Add 'self' argument.
7170 * record-btrace.c (record_btrace_close): Add 'self' argument.
7171 * monitor.h (monitor_close): Add 'self' argument.
7172 * monitor.c (monitor_close): Add 'self' argument.
7173 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7174 * linux-nat.c (linux_nat_close): Add argument.
7175 * go32-nat.c (go32_close): Add 'self' argument.
7176 * exec.c (exec_close_1): Add 'self' argument.
7177 * ctf.c (ctf_close): Add 'self' argument.
7178 * corelow.c (core_close): Add 'self' argument.
7179 (core_close_cleanup): Update.
7180 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7181 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7183 2014-02-19 Tom Tromey <tromey@redhat.com>
7185 * remote.c (remote_load): New function.
7186 (init_remote_ops): Use it.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7192 * common/linux-btrace.h (linux_supports_btrace): Update.
7193 * remote.c (remote_supports_btrace): Add "self" argument.
7194 * target-delegates.c: Rebuild.
7195 * target.c (target_supports_btrace): Remove.
7196 * target.h (struct target_ops) <to_supports_btrace>: Add
7197 target_ops argument.
7198 (target_supports_btrace): New define.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * record-full.c (record_full_beneath_to_resume_ops)
7203 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7204 (record_full_beneath_to_wait)
7205 (record_full_beneath_to_store_registers_ops)
7206 (record_full_beneath_to_store_registers)
7207 (record_full_beneath_to_xfer_partial_ops)
7208 (record_full_beneath_to_xfer_partial)
7209 (record_full_beneath_to_insert_breakpoint_ops)
7210 (record_full_beneath_to_insert_breakpoint)
7211 (record_full_beneath_to_remove_breakpoint_ops)
7212 (record_full_beneath_to_remove_breakpoint)
7213 (record_full_beneath_to_stopped_by_watchpoint)
7214 (record_full_beneath_to_stopped_data_address)
7215 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7216 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7217 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7218 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7219 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7220 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7221 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7222 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7223 (record_full_resume, record_full_wait_1)
7224 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7225 (record_full_store_registers, record_full_xfer_partial)
7226 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7227 (record_full_async, record_full_core_xfer_partial): Use target
7229 * target-delegates.c: Rebuild.
7230 * target.c (current_xfer_partial): Remove.
7231 (update_current_target): Do not INHERIT or de_fault
7232 to_insert_breakpoint, to_remove_breakpoint,
7233 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7234 to_is_async_p, to_async. Do not set to_xfer_partial field.
7235 (default_xfer_partial): Simplify.
7236 (current_xfer_partial): Remove.
7237 (target_wait, target_resume): Simplify.
7238 (find_default_can_async_p, find_default_is_async_p): Update.
7239 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7240 to_xfer_partial, to_stopped_by_watchpoint,
7241 to_stopped_data_address.
7242 (target_store_registers): Simplify.
7243 (forward_target_remove_breakpoint)
7244 (forward_target_insert_breakpoint): Remove.
7245 (target_remove_breakpoint, target_insert_breakpoint)
7246 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7247 * target.h (struct target_ops) <to_resume, to_wait,
7248 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7249 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7250 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7252 (forward_target_remove_breakpoint)
7253 (forward_target_insert_breakpoint): Remove.
7254 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7256 (record_btrace_insert_breakpoint): Delegate directly.
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7261 * target-delegates.c: New file.
7262 * target.c: Include target-delegates.c.
7263 (init_dummy_target): Call install_dummy_methods.
7264 (complete_target_initialization): Call install_delegators.
7265 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7266 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7267 * make-target-delegates: New file.
7269 2014-02-19 Tom Tromey <tromey@redhat.com>
7271 * record.c (find_record_target): Use find_target_at.
7272 * target.c (find_target_at): New function.
7273 * target.h (find_target_at): Declare.
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7279 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7281 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7282 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7284 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7286 * linux-nat.c (save_sigtrap): Update.
7287 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7288 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7289 (linux_nat_close): Update.
7290 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7292 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7294 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7295 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7296 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7297 (tmp_to_async): Add 'ops' argument.
7298 (record_full_stopped_by_watchpoint, record_full_async)
7299 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7301 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7302 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7303 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7304 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7305 (remote_is_async_p, remote_async): Add 'ops' argument.
7306 (remote_stopped_data_address): Update.
7307 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7308 * target.c (update_current_target)
7309 (find_default_can_async_p, find_default_is_async_p): Update.
7310 (init_dummy_target): Update.
7311 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7312 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7313 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7314 (target_can_async_p, target_is_async_p, target_async)
7315 (target_stopped_by_watchpoint): Update.
7317 2014-02-19 Yao Qi <yao@codesourcery.com>
7320 * gdbarch.sh: Remove startup_gdbarch.
7321 * gdbarch.c: Regenerated.
7322 * gdbarch.h: Likewise.
7324 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7326 * rl78-tdep.c (rl78_g10_register_name): New function.
7327 (rl78_return_value): Add g10 support.
7328 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7331 2014-02-17 Doug Evans <xdje42@gmail.com>
7333 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7334 (SUBDIR_GUILE_SRCS): Ditto.
7335 (scm-gsmob.o): Ditto.
7337 2014-02-17 Yao Qi <yao@codesourcery.com>
7339 * gnu-nat.c (ILL_RPC): Declare defined function.
7341 2014-02-17 Yao Qi <yao@codesourcery.com>
7343 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7344 mach_msg_type_number_t.
7345 (gnu_write_inferior): Likewise.
7347 2014-02-17 Yao Qi <yao@codesourcery.com>
7349 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7351 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7352 (inf_validate_procs, inf_signal): Likewise.
7353 (S_exception_raise_request): Likewise.
7354 (do_mach_notify_dead_name): Likewise.
7355 (steal_exc_port): Likewise.
7356 (gnu_read_inferior): Change 'copy_count''s type to
7357 mach_msg_type_number_t.
7358 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7361 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7363 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7364 flag. Adjust all users; in particular...
7365 (gnu_wait): ..., don't decrement its value in here...
7366 (gnu_create_inferior): ..., and instead set the flag in here,
7367 around the startup_inferior call, and call that one with
7368 START_INFERIOR_TRAPS_EXPECTED.
7370 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7371 (ILL_RPC): ... new macro.
7372 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7373 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7374 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7375 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7376 functions with ILL_RPC macro.
7377 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7378 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7379 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7380 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7381 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7382 (S_proc_getlogin_reply, S_proc_getsid_reply)
7383 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7384 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7385 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7386 (S_proc_getnports_reply, S_proc_is_important_reply)
7387 (S_proc_get_code_reply): New stub functions, generated with
7390 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7391 collected the type check structures.
7393 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7395 2014-02-14 Doug Evans <dje@google.com>
7397 * target.c (target_write_partial): Fix result type.
7399 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7401 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7402 the proper offsets to access fpregset_t.
7404 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7406 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7407 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7408 * h8300-tdep.c (setmachinelist): Remove global.
7409 * hppa-tdep.c (hppa_sigtramp): Remove global.
7410 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7411 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7412 * ravenscar-thread.c (update_target_observer): Remove global.
7413 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7415 2014-02-12 Tom Tromey <tromey@redhat.com>
7417 * common/rsp-low.c: Update comments.
7418 * common/rsp-low.h: Update comments.
7420 2014-02-12 Tom Tromey <tromey@redhat.com>
7422 * common/rsp-low.c (convert_ascii_to_int): Remove.
7423 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7425 2014-02-12 Tom Tromey <tromey@redhat.com>
7427 * common/rsp-low.h (unhexify): Don't declare.
7428 * common/rsp-low.c (unhexify): Remove.
7430 2014-02-12 Tom Tromey <tromey@redhat.com>
7432 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7433 * common/rsp-low.c (convert_int_to_ascii): Remove.
7435 2014-02-12 Tom Tromey <tromey@redhat.com>
7437 * common/rsp-low.h (hexify): Don't declare.
7438 * common/rsp-low.c (hexify): Remove.
7440 2014-02-12 Tom Tromey <tromey@redhat.com>
7442 * common/rsp-low.c (hexify): Never take strlen of argument.
7444 2014-02-12 Tom Tromey <tromey@redhat.com>
7446 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7447 * remote.c (extended_remote_run, remote_rcmd)
7448 (remote_download_trace_state_variable, remote_save_trace_data)
7449 (remote_set_trace_notes): Update.
7450 * tracepoint.c (encode_source_string, tfile_write_status)
7451 (tfile_write_uploaded_tsv): Update.
7453 2014-02-12 Tom Tromey <tromey@redhat.com>
7455 * tracepoint.c: Include rsp-low.h.
7456 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7457 * remote.c: Include rsp-low.h.
7458 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7459 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7460 (remote_unescape_input): Move to common/rsp-low.c.
7461 * common/rsp-low.h: New file.
7462 * common/rsp-low.c: New file.
7463 * Makefile.in (SFILES): Add common/rsp-low.c.
7464 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7465 (COMMON_OBS): Add rsp-low.o.
7466 (rsp-low.o): New target.
7468 2014-02-12 Tom Tromey <tromey@redhat.com>
7470 * utils.h: Include print-utils.h.
7471 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7472 (int_string, core_addr_to_string, core_addr_to_string_nz)
7473 (hex_string, hex_string_custom): Don't declare.
7474 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7475 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7476 (hex_string_custom, int_string, core_addr_to_string)
7477 (core_addr_to_string_nz, host_address_to_string): Move to
7478 common/print-utils.c.
7479 * common/print-utils.h: New file.
7480 * common/print-utils.c: New file
7481 * Makefile.in (SFILES): Add common/print-utils.c.
7482 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7483 (COMMON_OBS): Add print-utils.o.
7484 (print-utils.o): New target.
7486 2014-02-12 Tom Tromey <tromey@redhat.com>
7488 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7490 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7492 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7494 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7496 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7497 if a PT_IO ptrace request returns sucessfully but indicates that 0
7498 bytes were transferred.
7500 2014-02-12 Pedro Alves <palves@redhat.com>
7501 Kevin Buettner <kevinb@redhat.com>
7503 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7504 TYPE_INSTANCE_FLAG_CODE_SPACE.
7506 2014-02-12 Pedro Alves <palves@redhat.com>
7508 * h8300-tdep.c (pseudo_from_raw_register)
7509 (raw_from_pseudo_register): New functions.
7510 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7513 2014-02-12 Pedro Alves <palves@redhat.com>
7515 * h8300-tdep.c (h8300_register_sim_regno): New function.
7516 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7517 gdbarch_register_sim_regno hook.
7519 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7521 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7523 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7525 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7527 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7529 * obsd-tdep.h (obsd_init_abi): New prototype.
7530 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7531 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7532 (obsd_init_abi): New functions.
7533 * i386obsd-tdep.c: Include "obsd-tdep.h".
7534 (i386obsd_init_abi): Call obsd_init_abi.
7535 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7536 (amd64obsd_init_abi): Call obsd_init_abi.
7537 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7538 obsd-tdep.c to gdb_target_obs.
7540 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7542 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7543 double float arguments to 16-byte in the argument slots.
7545 2014-02-11 Doug Evans <xdje42@gmail.com>
7547 * configure.ac: Don't crash if pkg-config is not found and guile
7548 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7550 * configure: Regenerate.
7552 2014-02-11 Yao Qi <yao@codesourcery.com>
7554 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7555 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7556 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7557 * gnu-nat.c (gnu_xfer_memory): Likewise.
7558 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7559 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7560 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7561 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7563 2014-02-11 Yao Qi <yao@codesourcery.com>
7565 * target.h (enum target_xfer_error): Rename to ...
7566 (enum target_xfer_status): ... it. New. All users updated.
7567 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7569 (TARGET_XFER_STATUS_ERROR_P): New macro.
7570 (target_xfer_error_to_string): Remove declaration.
7571 (target_xfer_status_to_string): Declare.
7572 (target_xfer_partial_ftype): Adjust it.
7573 (struct target_ops) <to_xfer_partial>: Return
7574 target_xfer_status. Add argument xfered_len. Update
7576 * target.c (target_xfer_error_to_string): Rename to ...
7577 (target_xfer_status_to_string): ... it. New. All callers
7579 (target_read_live_memory): Likewise. Call target_xfer_partial
7580 instead of target_read.
7581 (memory_xfer_live_readonly_partial): Return
7582 target_xfer_status. Add argument xfered_len.
7583 (raw_memory_xfer_partial): Likewise.
7584 (memory_xfer_partial_1): Likewise.
7585 (memory_xfer_partial): Likewise.
7586 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7587 properly. Update debug message.
7588 (default_xfer_partial, current_xfer_partial): Likewise.
7589 (target_write_partial): Likewise.
7590 (target_read_partial): Likewise. All callers updated.
7591 (read_whatever_is_readable): Likewise.
7592 (target_write_with_progress): Likewise.
7593 (target_read_alloc_1): Likewise.
7595 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7596 * auxv.c (procfs_xfer_auxv): Likewise.
7597 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7598 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7599 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7600 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7601 * corefile.c (read_memory): Adjust.
7602 * corelow.c (core_xfer_partial): Likewise.
7603 * ctf.c (ctf_xfer_partial): Likewise.
7604 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7606 (darwin_xfer_partial): Likewise.
7607 * exec.c (section_table_xfer_memory_partial): Likewise. All
7609 (exec_xfer_partial): Likewise.
7610 * exec.h (section_table_xfer_memory_partial): Update
7612 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7614 (gnu_xfer_partial): Likewise.
7615 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7616 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7617 (ia64_hpux_xfer_solib_got): Likewise.
7618 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7619 type of 'partial_len' to ULONGEST.
7620 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7621 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7622 (linux_nat_xfer_partial): Likewise.
7623 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7624 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7625 * monitor.c (monitor_xfer_memory): Likewise.
7626 (monitor_xfer_partial): Likewise.
7627 * procfs.c (procfs_xfer_partial): Likewise.
7628 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7629 * record-full.c (record_full_xfer_partial): Likewise.
7630 (record_full_core_xfer_partial): Likewise.
7631 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7632 (gdbsim_xfer_partial): Likewise.
7633 * remote.c (remote_write_bytes_aux): Likewise. All callers
7635 (remote_write_bytes, remote_read_bytes): Likewise. All
7637 (remote_flash_erase): Likewise. All callers updated.
7638 (remote_write_qxfer): Likewise. All callers updated.
7639 (remote_read_qxfer): Likewise. All callers updated.
7640 (remote_xfer_partial): Likewise.
7641 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7642 (rs6000_xfer_shared_libraries): Likewise.
7643 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7644 (sol_thread_xfer_partial): Likewise.
7645 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7646 (sparc_xfer_partial): Likewise.
7647 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7649 (spu_xfer_partial): Likewise.
7650 * spu-multiarch.c (spu_xfer_partial): Likewise.
7651 * tracepoint.c (tfile_xfer_partial): Likewise.
7652 * windows-nat.c (windows_xfer_memory): Likewise.
7653 (windows_xfer_shared_libraries): Likewise.
7654 (windows_xfer_partial): Likewise.
7655 * valprint.c: Replace 'target_xfer_error' with
7656 'target_xfer_status' in comments.
7658 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7660 Checked in by Joel Brobecker <brobecker@adacore.com>.
7661 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7663 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7665 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7666 function parameters.
7668 2014-02-10 Will Newton <will.newton@linaro.org>
7670 * elfread.c (elf_rel_plt_read): Look for a .got section if
7671 looking up .got.plt fails.
7672 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7673 on address passed to elf_gnu_ifunc_record_cache.
7674 (elf_gnu_ifunc_resolve_addr): Likewise.
7675 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7677 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7679 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7680 (X_RETTURN): New macro.
7681 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7683 * sparc64-tdep.c (sparc64_init_abi): Hook
7684 sparc_in_function_epilogue_p.
7686 2014-02-10 Gary Benson <gbenson@redhat.com>
7688 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7689 Rename name_matcher to symbol_matcher.
7691 2014-02-10 Gary Benson <gbenson@redhat.com>
7693 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7694 Use expand_symtabs_file_matcher_ftype and
7695 expand_symtabs_symbol_matcher_ftype.
7697 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7699 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7700 (struct ada_symbol_cache): New.
7701 (ada_free_symbol_cache): Forward declare.
7702 (struct ada_pspace_data): New.
7703 (ada_pspace_data_handle): New static global.
7704 (get_ada_pspace_data, ada_pspace_data_cleanup)
7705 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7706 (cache_space, cache): Delete, now folded inside struct
7708 (ada_get_symbol_cache): New function.
7709 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7711 (_initialize_ada_language): Remove initialization of cache_space.
7712 Move call to observer_attach_inferior_exit up, grouping it
7713 with the other observer registrations inside this function.
7714 Rename command to be more general. Add call to
7715 register_program_space_data_with_cleanup.
7717 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7719 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7720 ada_new_objfile_observer.
7721 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7722 (_initialize_tasks): Update uses of ada_new_objfile_observer
7723 and ada_tasks_normal_stop_observer.
7725 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7727 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7728 returned by the 'Length attribute to integer.
7730 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7732 * ada-lang.c (_initialize_ada_language): Initialize
7733 cache_space obstack.
7735 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7737 * ada-lang.c (HASH_SIZE): New macro.
7738 (struct cache_entry): New type.
7739 (cache_space, cache): New static globals.
7740 (ada_clear_symbol_cache, find_entry): New functions.
7741 (lookup_cached_symbol, cache_symbol): Implement.
7742 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7743 (_initialize_ada_language): Attach ada_new_objfile_observer
7744 and ada_free_objfile_observer.
7746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7748 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7749 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7750 struct block * parameter.
7751 (ada_lookup_symbol_list_worker): Constify local variable "block".
7752 Remove cast which is no longer necessary.
7754 2014-02-10 Doug Evans <xdje42@gmail.com>
7756 Add Guile as an extension language.
7757 * NEWS: Mention Guile scripting.
7758 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7759 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7760 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7761 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7762 (CLIBS): Add GUILE_LIBS.
7763 (install-guile): New rule.
7764 (guile.o): New rule.
7765 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7766 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7767 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7768 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7769 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7770 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7771 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7772 * configure.ac: New option --with-guile.
7773 * configure: Regenerate.
7774 * config.in: Regenerate.
7775 * auto-load.c: Remove #include "python/python.h". Add #include
7776 "gdb/section-scripts.h".
7777 (source_section_scripts): Handle Guile scripts.
7778 (_initialize_auto_load): Add name of Guile objfile script to
7779 scripts-directory help text.
7780 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7781 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7782 (struct breakpoint): New member scm_bp_object.
7783 * defs.h (enum command_control_type): New value guile_control.
7784 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7786 (show_user): Update comment.
7787 (_initialize_cli_cmds): Update help text for "show user". Update help
7788 text for max-user-call-depth.
7789 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7791 (multi_line_command_p): Add guile_control.
7792 (print_command_lines): Handle guile_control.
7793 (execute_control_command, recurse_read_control_structure): Ditto.
7794 (process_next_line): Recognize "guile" commands.
7795 * disasm.c (gdb_disassemble_info): Make non-static.
7796 * disasm.h: #include "dis-asm.h".
7797 (struct gdbarch): Add forward decl.
7798 (gdb_disassemble_info): Declare.
7799 * extension.c: #include "guile/guile.h".
7800 (extension_languages): Add guile.
7801 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7802 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7803 * gdbtypes.c (get_unsigned_type_max): New function.
7804 (get_signed_type_minmax): New function.
7805 * gdbtypes.h (get_unsigned_type_max): Declare.
7806 (get_signed_type_minmax): Declare.
7807 * guile/README: New file.
7808 * guile/guile-internal.h: New file.
7809 * guile/guile.c: New file.
7810 * guile/guile.h: New file.
7811 * guile/scm-arch.c: New file.
7812 * guile/scm-auto-load.c: New file.
7813 * guile/scm-block.c: New file.
7814 * guile/scm-breakpoint.c: New file.
7815 * guile/scm-disasm.c: New file.
7816 * guile/scm-exception.c: New file.
7817 * guile/scm-frame.c: New file.
7818 * guile/scm-gsmob.c: New file.
7819 * guile/scm-iterator.c: New file.
7820 * guile/scm-lazy-string.c: New file.
7821 * guile/scm-math.c: New file.
7822 * guile/scm-objfile.c: New file.
7823 * guile/scm-ports.c: New file.
7824 * guile/scm-pretty-print.c: New file.
7825 * guile/scm-safe-call.c: New file.
7826 * guile/scm-string.c: New file.
7827 * guile/scm-symbol.c: New file.
7828 * guile/scm-symtab.c: New file.
7829 * guile/scm-type.c: New file.
7830 * guile/scm-utils.c: New file.
7831 * guile/scm-value.c: New file.
7832 * guile/lib/gdb.scm: New file.
7833 * guile/lib/gdb/boot.scm: New file.
7834 * guile/lib/gdb/experimental.scm: New file.
7835 * guile/lib/gdb/init.scm: New file.
7836 * guile/lib/gdb/iterator.scm: New file.
7837 * guile/lib/gdb/printing.scm: New file.
7838 * guile/lib/gdb/types.scm: New file.
7839 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7840 (VPATH): Add $(GUILE_SRCDIR).
7841 (GUILE_DIR): New variable.
7842 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7843 (all): Add stamp-guile dependency.
7844 (stamp-guile): New rule.
7845 (clean-guile, install-guile, uninstall-guile): New rules.
7846 (install-only): Add install-guile dependency.
7847 (uninstall): Add uninstall-guile dependency.
7848 (clean): Add clean-guile dependency.
7850 2014-02-09 Doug Evans <xdje42@gmail.com>
7852 Revert this patch (which I approved, mea culpa).
7854 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7856 * Makefile.in (all-lib): Remove.
7857 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7859 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7861 Fix Python stack corruption.
7862 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7865 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7867 * Makefile.in (all-lib): Remove.
7868 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7870 2014-02-07 Doug Evans <dje@google.com>
7872 * extension-priv.h (extension_language_script_ops): Add comment.
7873 (extension_language_ops): Add comment.
7874 (active_ext_lang_state): Fix typo in comment.
7876 2014-02-07 Pedro Alves <palves@redhat.com>
7878 PR breakpoints/16292
7879 * infrun.c (handle_signal_stop) <signal arrives while stepping
7880 over a breakpoint>: Switch back to the stepping thread.
7882 2014-02-07 Yao Qi <yao@codesourcery.com>
7884 * target.c (target_xfer_partial): Return zero if LEN is zero.
7886 2014-02-07 Yao Qi <yao@codesourcery.com>
7888 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7889 (ld_so_xfer_auxv): Likewise.
7890 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7891 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7892 * corelow.c (core_xfer_partial): Likewise.
7893 * ctf.c (ctf_xfer_partial): Likewise.
7894 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7895 (darwin_xfer_partial): Likewise.
7896 * exec.c (exec_xfer_partial): Likewise.
7897 * gnu-nat.c (gnu_xfer_partial): Likewise.
7898 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7899 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7900 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7901 * linux-nat.c (linux_xfer_siginfo): Likewise.
7902 (linux_proc_xfer_spu): Likewise.
7903 * procfs.c (procfs_xfer_partial): Likewise.
7904 * record-full.c (record_full_xfer_partial): Likewise.
7905 (record_full_core_xfer_partial): Likewise.
7906 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7907 * remote.c (remote_write_qxfer): Likewise.
7908 (remote_write_qxfer, remote_read_qxfer): Likewise.
7909 (remote_xfer_partial): Likewise.
7910 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7911 (rs6000_xfer_shared_libraries): Likewise.
7912 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7913 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7914 (spu_xfer_partial): Likewise.
7915 * target.c (memory_xfer_partial_1): Likewise.
7916 * tracepoint.c (tfile_xfer_partial): Likewise.
7917 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7918 (windows_xfer_partial): Likewise.
7920 2014-02-07 Yao Qi <yao@codesourcery.com>
7922 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7924 (core_xfer_shared_libraries_aix): Likewise.
7925 * gdbarch.c, gdbarch.h: Regenerated.
7926 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7927 ULONGEST. Change 'len_avail' type to ULONGEST.
7928 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7929 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7931 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7933 2014-02-07 Yao Qi <yao@codesourcery.com>
7935 * corefile.c (memory_error): Get 'exception' from ERR and pass
7936 'exception' to throw_error.
7938 2014-02-06 Doug Evans <xdje42@gmail.com>
7940 * configure.ac (libpython checking): Remove all but python.o from
7941 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7942 * configure: Regenerate.
7944 * Makefile.in (SFILES): Add extension.c.
7945 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7946 (COMMON_OBS): Add extension.o.
7947 * extension.h: New file.
7948 * extension-priv.h: New file.
7949 * extension.c: New file.
7951 * python/python-internal.h: #include "extension.h".
7952 (gdbpy_auto_load_enabled): Declare.
7953 (gdbpy_apply_val_pretty_printer): Declare.
7954 (gdbpy_apply_frame_filter): Declare.
7955 (gdbpy_preserve_values): Declare.
7956 (gdbpy_breakpoint_cond_says_stop): Declare.
7957 (gdbpy_breakpoint_has_cond): Declare.
7958 (void source_python_script_for_objfile): Delete.
7959 * python/python.c: #include "extension-priv.h".
7960 Delete inclusion of "observer.h".
7961 (extension_language_python): Moved here and renamed from
7962 script_language_python in py-auto-load.c.
7963 Redefined to be of type extension_language_defn.
7964 (python_extension_script_ops): New global.
7965 (python_extension_ops): New global.
7966 (struct python_env): New member previous_active.
7967 (restore_python_env): Call restore_active_ext_lang.
7968 (ensure_python_env): Call set_active_ext_lang.
7969 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7971 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7973 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7975 (gdbpy_eval_from_control_command): Renamed from
7976 eval_python_from_control_command, made static. New arg extlang.
7977 (gdbpy_source_script) Renamed from source_python_script, made static.
7979 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7980 result to int. New arg extlang.
7981 (gdbpy_source_objfile_script): Renamed from
7982 source_python_script_for_objfile, made static. New arg extlang.
7983 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7984 static. New args extlang, extlang_printers. Change result type to
7986 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7987 static. New arg extlang. Rename arg printers to extlang_printers
7988 and change type to ext_lang_type_printers *.
7989 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7990 static. Replace argument arg with extlang, extlang_printers.
7991 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7992 (!HAVE_PYTHON, source_python_script): Delete.
7993 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7994 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7995 (!HAVE_PYTHON, start_type_printers): Delete.
7996 (!HAVE_PYTHON, apply_type_printers): Delete.
7997 (!HAVE_PYTHON, free_type_printers): Delete.
7998 (_initialize_python): Delete call to observer_attach_before_prompt.
7999 (finalize_python): Set/restore active extension language.
8000 (gdbpy_finish_initialization) Renamed from
8001 finish_python_initialization, made static. New arg extlang.
8002 (gdbpy_initialized): New function.
8003 * python/python.h: #include "extension.h". Delete #include
8004 "value.h", "mi/mi-cmds.h".
8005 (extension_language_python): Declare.
8006 (GDBPY_AUTO_FILE_NAME): Delete.
8007 (enum py_bt_status): Moved to extension.h and renamed to
8009 (enum frame_filter_flags): Moved to extension.h.
8010 (enum py_frame_args): Moved to extension.h and renamed to
8011 ext_lang_frame_args.
8012 (finish_python_initialization): Delete.
8013 (eval_python_from_control_command): Delete.
8014 (source_python_script): Delete.
8015 (apply_val_pretty_printer): Delete.
8016 (apply_frame_filter): Delete.
8017 (preserve_python_values): Delete.
8018 (gdbpy_script_language_defn): Delete.
8019 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8020 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8022 * auto-load.c: #include "extension.h".
8023 (GDB_AUTO_FILE_NAME): Delete.
8024 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8025 (script_language_gdb): Delete, moved to extension.c and renamed to
8026 extension_language_gdb.
8027 (source_gdb_script_for_objfile): Delete.
8028 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8029 (loaded_script): Change type of language member to
8030 struct extension_language_defn *.
8031 (init_loaded_scripts_info): Initialize
8032 unsupported_script_warning_printed.
8033 (maybe_add_script): Make static. Change type of language arg to
8034 struct extension_language_defn *.
8035 (clear_section_scripts): Reset unsupported_script_warning_printed.
8036 (auto_load_objfile_script_1): Rewrite to use extension language API.
8037 (auto_load_objfile_script): Make public. Remove support-compiled-in
8038 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8039 (source_section_scripts): Rewrite to use extension language API.
8040 (load_auto_scripts_for_objfile): Rewrite to use
8041 auto_load_scripts_for_objfile.
8042 (collect_matching_scripts_data): Change type of language member to
8043 struct extension_language_defn *.
8044 (auto_load_info_scripts): Change type of language arg to
8045 struct extension_language_defn *.
8046 (unsupported_script_warning_print): New function.
8047 (script_not_found_warning_print): Make static.
8048 (_initialize_auto_load): Rewrite construction of scripts-directory
8050 * auto-load.h (struct objfile): Add forward decl.
8051 (struct script_language): Delete.
8052 (struct auto_load_pspace_info): Add forward decl.
8053 (struct extension_language_defn): Add forward decl.
8054 (maybe_add_script): Delete.
8055 (auto_load_objfile_script): Declare.
8056 (script_not_found_warning_print): Delete.
8057 (auto_load_info_scripts): Update prototype.
8058 (auto_load_gdb_scripts_enabled): Declare.
8059 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8060 auto_load_python_scripts_enabled and made public.
8061 (script_language_python): Delete, moved to python.c.
8062 (gdbpy_script_language_defn): Delete.
8063 (info_auto_load_python_scripts): Update to use
8064 extension_language_python.
8066 * breakpoint.c (condition_command): Replace call to
8067 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8068 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8069 with call to breakpoint_ext_lang_cond_says_stop.
8070 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8071 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8072 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8073 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8075 (local_setattro): Print name of extension language with existing
8078 * valprint.c (val_print, value_print): Update to call
8079 apply_ext_lang_val_pretty_printer.
8080 * cp-valprint.c (cp_print_value): Update call to
8081 apply_ext_lang_val_pretty_printer.
8082 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8083 (gdbpy_apply_val_pretty_printer): Renamed from
8084 apply_val_pretty_printer. New arg extlang.
8085 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8087 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8088 extension language API.
8089 * cli/cli-script.c (execute_control_command): Update to call
8090 eval_ext_lang_from_control_command.
8092 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8093 enum ext_lang_bt_status values. Update call to
8094 apply_ext_lang_frame_filter.
8095 (mi_cmd_stack_list_locals): Ditto.
8096 (mi_cmd_stack_list_args): Ditto.
8097 (mi_cmd_stack_list_variables): Ditto.
8098 * mi/mi-main.c: Delete #include "python/python-internal.h".
8099 Add #include "extension.h".
8100 (mi_cmd_list_features): Replace reference to python internal variable
8101 gdb_python_initialized with call to ext_lang_initialized_p.
8103 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8104 Update to use enum ext_lang_frame_args. Update to call
8105 apply_ext_lang_frame_filter.
8106 * python/py-framefilter.c (extract_sym): Update to use enum
8108 (extract_value, py_print_type, py_print_value): Ditto.
8109 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8110 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8111 (py_print_frame): Ditto.
8112 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8113 New arg extlang. Update to use enum ext_lang_bt_status.
8115 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8116 finish_python_initialization. Replace with call to
8117 finish_ext_lang_initialization.
8119 * typeprint.c (do_free_global_table): Update to call
8120 free_ext_lang_type_printers.
8121 (create_global_typedef_table): Update to call
8122 start_ext_lang_type_printers.
8123 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8124 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8125 (type_print_options): Change type of global_printers from "void *"
8126 to "struct ext_lang_type_printers *".
8128 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8129 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8130 (gdbpy_preserve_values): Renamed from preserve_python_values.
8132 (!HAVE_PYTHON, preserve_python_values): Delete.
8134 * utils.c (quit_flag): Delete, moved to extension.c.
8135 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8138 * eval.c: Delete #include "python/python.h".
8139 * main.c: Delete #include "python/python.h".
8141 * defs.h: Update comment.
8143 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8147 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8149 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8152 2014-02-05 Yao Qi <yao@codesourcery.com>
8154 * remote.c (remote_pass_signals): Remove local 'buf' and use
8156 (remote_program_signals): Likewise.
8158 2014-02-05 Yao Qi <yao@codesourcery.com>
8160 * ctf.c: Include "inferior.h" and "gdbthread.h".
8161 (CTF_PID): A new macro.
8162 (ctf_open): Call inferior_appeared and add_thread_silent.
8163 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8164 (ctf_thread_alive): New function.
8165 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8167 2014-02-05 Yao Qi <yao@codesourcery.com>
8171 2013-05-24 Yao Qi <yao@codesourcery.com>
8173 * tracepoint.c (TFILE_PID): Remove.
8174 (tfile_open): Don't add thread and inferior.
8175 (tfile_close): Don't set 'inferior_ptid'. Don't call
8176 exit_inferior_silent.
8177 (tfile_thread_alive): Remove.
8178 (init_tfile_ops): Don't set field 'to_thread_alive' of
8181 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8183 * remote.c (remote_start_remote): Call remote_check_symbols even
8184 if only symbol-file (not file) has been given.
8186 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8188 * gdbarch.sh (skip_entrypoint): New callback.
8189 * gdbarch.c, gdbarch.h: Regenerate.
8190 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8191 * infrun.c (fill_in_stop_func): Likewise.
8192 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8193 (ppc_elfv2_elf_make_msymbol_special): New function.
8194 (ppc_elfv2_skip_entrypoint): Likewise.
8195 (ppc_linux_init_abi): Install them for ELFv2.
8197 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8199 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8200 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8201 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8202 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8203 structures returned in GPRs.
8205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8208 offset to the stack parameter list for the ELFv2 ABI.
8210 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8212 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8213 set_gdbarch_convert_from_func_ptr_addr and
8214 set_gdbarch_elf_make_msymbol_special for ELFv1.
8215 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8216 function descriptors on ELFv1.
8217 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8218 set up r12 at function entry.
8220 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8222 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8223 (struct gdbarch_tdep): New member elf_abi.
8225 * rs6000-tdep.c: Include "elf/ppc64.h".
8226 (rs6000_gdbarch_init): Detect ELF ABI version.
8228 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8230 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8231 within a register pair holding a DFP 128-bit value on little-endian.
8232 (ppc64_sysv_abi_return_value_base): Likewise.
8233 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8234 (dfp_pseudo_register_write): Likewise.
8236 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8238 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8239 offset on little-endian when passing _Decimal32.
8240 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8244 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8245 of the overlapped FP register within the VSX register on little-
8247 (efpr_pseudo_register_write): Likewise.
8249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8251 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8252 offset on little-endian when passing small structures.
8254 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8256 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8257 (struct ppc64_sysv_argpos): New data structure.
8258 (ppc64_sysv_abi_push_float): Remove.
8259 (ppc64_sysv_abi_push_val): New function.
8260 (ppc64_sysv_abi_push_integer): Likewise.
8261 (ppc64_sysv_abi_push_freg): Likewise.
8262 (ppc64_sysv_abi_push_vreg): Likewise.
8263 (ppc64_sysv_abi_push_param): Likewise.
8264 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8265 (ppc64_sysv_abi_return_value_base): New function.
8266 (ppc64_sysv_abi_return_value): Refactor to use it.
8268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8270 * NEWS: Document new target powerpc64le-*-linux*.
8272 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8274 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8275 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8277 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8278 register set used in ELF core dumps. Add floating-point register set.
8280 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8282 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8283 dwarf2_to_gdb[] table using symbolic constants. Adjust
8284 penultimate entry from number representing the PC register
8285 to symbolic constant representing the MDR register. Add
8286 constant for the PC register to the end of the table.
8288 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8290 * bsd-kvm.c: Include <sys/param.h>
8292 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8294 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8296 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8298 * ada-lang.h (clear_ada_sym_cache): Delete.
8300 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8302 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8304 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8306 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8307 the sigreturn register save area only if the syscall is
8310 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8312 * valops.c (value_slice): Minor reformatting.
8314 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8316 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8318 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8320 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8322 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8323 (ada_ignore_descriptive_types_p): New static global.
8324 (find_parallel_type_by_descriptive_type): Return immediately
8325 if ada_ignore_descriptive_types_p is set.
8326 (_initialize_ada_language): Register new commands "maintenance
8327 set ada", "maintenance show ada", "maintenance set ada
8328 ignore-descriptive-types" and "maintenance show ada
8329 ignore-descriptive-types".
8330 * NEWS: Add entry for new "maint ada set/show
8331 ignore-descriptive-types" commands.
8333 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8335 * record-btrace.c (record_btrace_close): Call btrace_teardown
8338 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8340 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8343 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8345 * ada-typeprint (type_is_full_subrange_of_target_type):
8347 (print_range): Add parameter bounds_prefered_p. If not set,
8348 try printing range types using the name of their base type.
8349 (print_range_type): Add parameter bounds_prefered_p.
8350 Use it in call to print_range.
8351 (print_array_type, ada_print_type): Update calls to print_range
8352 and print_range_type.
8354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8356 * ada-typeprint.c (print_array_type, print_choices, print_range)
8357 (print_range_bound, print_dynamic_range_bound, print_range_type):
8360 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8362 * ada-typeprint.c (print_range): Add missing empty line
8363 after local declaration.
8365 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8367 * ada-valprint.c (print_optional_low_bound): Get index_type's
8368 target type for as long as it is a TYPE_CODE_RANGE.
8370 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8372 * procfs.c (procfs_make_note_section): Remove assertion and
8375 2014-01-24 Yao Qi <yao@codesourcery.com>
8377 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8378 * corelow.c (get_core_siginfo): Likewise.
8380 2014-01-24 Yao Qi <yao@codesourcery.com>
8382 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8383 ULONGEST. Don't check 'len' is negative.
8384 (remote_write_bytes): Change type of 'len' to ULONGEST.
8386 2014-01-23 Tom Tromey <tromey@redhat.com>
8389 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8390 Handle exception from frame.block.
8391 (FrameVars.fetch_frame_locals): Likewise.
8393 2014-01-23 Tom Tromey <tromey@redhat.com>
8396 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8397 on a NULL pointer. Move "goto error" to correct place.
8399 2014-01-23 Tom Tromey <tromey@redhat.com>
8402 * python/py-framefilter.c (apply_frame_filter): Call
8403 ensure_python_env after computing gdbarch.
8405 2014-01-23 Yao Qi <yao@codesourcery.com>
8407 * target.c (raw_memory_xfer_partial): Change argument type
8408 from void * to gdb_byte *.
8409 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8411 2014-01-22 Doug Evans <dje@google.com>
8413 New gdbserver option --debug-format=timestamp.
8416 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8418 * syscalls/s390x-linux.xml: New file.
8419 * syscalls/s390-linux.xml: New file.
8420 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8421 (XML_SYSCALL_FILENAME_S390X): Likewise.
8422 (op_svc): New enum value for SVC opcode.
8423 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8424 (s390_linux_get_syscall_number): New function.
8425 (s390_gdbarch_init): Register '*get_syscall_number' and the
8426 syscall xml file name.
8427 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8428 "s390-linux.xml" and "s390x-linux.xml".
8429 * NEWS: Announce new feature.
8431 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8433 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8435 2014-01-22 Pedro Alves <palves@redhat.com>
8437 * xtensa-config.c: Include defs.h.
8439 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8441 * common/common-utils.h: Add "ARI:" comment beside __func__
8444 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8446 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8447 documentation a bit.
8449 2014-01-21 Roland McGrath <mcgrathr@google.com>
8451 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8452 * configure: Regenerate.
8453 * aclocal.m4: Regenerate.
8454 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8455 New substituted variables.
8456 (install-strip): New target.
8457 (INSTALL_SCRIPT): New substituted variable.
8458 (FLAGS_TO_PASS): Add it.
8459 (install-only): Use $(INSTALL_SCRIPT) rather than
8460 $(INSTALL_PROGRAM) for gcore.
8462 2014-01-20 Tom Tromey <tromey@redhat.com>
8464 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8467 2014-01-20 Tom Tromey <tromey@redhat.com>
8469 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8470 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8471 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8472 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8473 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8474 (struct cmd_list_element) <flags>: Remove.
8475 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8476 doc_allocated>: New fields.
8477 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8479 * maint.c (maintenance_do_deprecate): Update.
8480 * top.c (execute_command): Update.
8482 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8484 * xtensa-linux-nat.c: Include asm/ptrace.h.
8486 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8488 * Makefile.in (SFILES): Add d-support.c.
8489 (COMMON_OBS): Add d-support.o.
8490 * d-lang.h (d_parse_symbol): Add comment, now defined in
8492 * d-lang.c (parse_call_convention)
8493 (parse_attributes, parse_function_types)
8494 (parse_function_args, parse_type, parse_identifier)
8495 (call_convention_p, d_parse_symbol): Move functions to ...
8496 * d-support.c: ... New file.
8498 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8500 * d-lang.h (d_parse_symbol): Add declaration.
8501 * d-lang.c (extract_identifiers)
8502 (extract_type_info): Remove functions.
8503 (parse_call_convention, parse_attributes)
8504 (parse_function_types, parse_function_args)
8505 (parse_type, parse_identifier, call_convention_p)
8506 (d_parse_symbol): New functions.
8507 (d_demangle): Use d_parse_symbol to demangle D symbols.
8509 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8511 * d-lang.h (struct builtin_d_type): New data type.
8512 (builtin_d_type): Add declaration.
8513 * d-lang.c (d_language_arch_info, build_d_types)
8514 (builtin_d_type): New functions.
8515 (enum d_primitive_types): New data type.
8516 (d_language_defn): Change c_language_arch_info to
8517 d_language_arch_info.
8518 (d_type_data): New static variable.
8519 (_initialize_d_language): Initialize d_type_data.
8521 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8523 * d-lang.h (d_main_name): Add declaration.
8524 * d-lang.c (d_main_name): New function.
8525 * symtab.c (find_main_name): Add call to d_main_name.
8527 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8529 * d-lang.c (d_language_defn): Change macro_expansion_c to
8532 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8534 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8536 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8538 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8539 gdb_exception" declaration.
8540 * remote.c (getpkt_or_notif_sane): Likewise.
8542 2014-01-17 Doug Evans <dje@google.com>
8544 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8545 function, contents of dirnames_to_char_ptr_vec_append moved here.
8546 (delim_string_to_char_ptr_vec): New function.
8547 (dirnames_to_char_ptr_vec_append): Rewrite.
8548 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8550 2014-01-17 Doug Evans <dje@google.com>
8552 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8554 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8555 #include "common-utils.h".
8556 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8557 * common/vec.h (VEC_ASSERT_PASS): Update.
8558 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8559 (MACH_CHECK_ERROR): Update.
8561 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8563 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8565 * gdbarch.h: Regenerate.
8567 2014-01-16 Tom Tromey <tromey@redhat.com>
8569 * value.c (struct value) <regnum>: Move earlier.
8571 2014-01-16 Tom Tromey <tromey@redhat.com>
8573 * remote.c (extended_remote_create_inferior): Rename from
8574 extended_remote_create_inferior_1. Add "ops" argument. Remove
8577 2014-01-16 Pedro Alves <palves@redhat.com>
8579 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8580 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8583 2014-01-16 Doug Evans <dje@google.com>
8585 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8589 * btrace.h (btrace_thread_flag): New.
8590 (struct btrace_thread_info) <flags>: New.
8591 * record-btrace.c (record_btrace_resume_thread)
8592 (record_btrace_find_thread_to_move, btrace_step_no_history)
8593 (btrace_step_stopped, record_btrace_start_replaying)
8594 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8595 (record_btrace_find_resume_thread): New.
8596 (record_btrace_resume, record_btrace_wait): Extend.
8597 (record_btrace_can_execute_reverse): New.
8598 (record_btrace_open): Fail in non-stop mode.
8599 (record_btrace_set_replay): Split into this, ...
8600 (record_btrace_stop_replaying): ... this, ...
8601 (record_btrace_clear_histories): ... and this.
8602 (init_record_btrace_ops): Init to_can_execute_reverse.
8603 * NEWS: Announce it.
8605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8607 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8608 (forward_target_decr_pc_after_break)
8609 (target_decr_pc_after_break): New.
8610 * target.c (forward_target_decr_pc_after_break)
8611 (target_decr_pc_after_break): New.
8612 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8613 instead of gdbarch_decr_pc_after_break.
8614 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8615 instead of gdbarch_decr_pc_after_break.
8616 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8617 instead of gdbarch_decr_pc_after_break.
8618 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8619 instead of gdbarch_decr_pc_after_break.
8620 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8621 instead of gdbarch_decr_pc_after_break.
8622 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8623 instead of gdbarch_decr_pc_after_break.
8625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8627 * btrace.c: Include regcache.h.
8628 (btrace_add_pc): New.
8629 (btrace_enable): Call btrace_add_pc.
8630 (btrace_is_empty): New.
8631 * btrace.h (btrace_is_empty): New.
8632 * record-btrace.c (require_btrace, record_btrace_info): Call
8635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8637 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8638 Support delta reads.
8639 (linux_disable_btrace): Change return type.
8640 * common/linux-btrace.h (linux_read_btrace): Change parameters
8641 and return type to allow error reporting. Update users.
8642 (linux_disable_btrace): Change return type. Update users.
8643 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8645 (btrace_error): New.
8646 (btrace_block) <begin>: Comment on BEGIN == 0.
8647 * btrace.c (btrace_compute_ftrace): Start from the end of
8649 (btrace_stitch_trace, btrace_clear_history): New.
8650 (btrace_fetch): Read delta trace, return if replaying.
8651 (btrace_clear): Move clear history code to btrace_clear_history.
8652 (parse_xml_btrace): Throw an error if parsing failed.
8653 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8654 and return type to allow error reporting.
8655 (target_read_btrace): Change parameters and return type to allow
8657 * target.c (target_read_btrace): Update.
8658 * remote.c (remote_read_btrace): Support delta reads. Pass
8660 * NEWS: Announce it.
8662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8664 * record.h (record_btrace_frame_unwind)
8665 (record_btrace_tailcall_frame_unwind): New declarations.
8666 * dwarf2-frame: Include record.h
8667 (dwarf2_frame_cfa): Throw an error for btrace frames.
8668 * record-btrace.c: Include hashtab.h.
8669 (btrace_get_bfun_name): New.
8670 (btrace_call_history): Call btrace_get_bfun_name.
8671 (struct btrace_frame_cache): New.
8673 (bfcache_hash, bfcache_eq, bfcache_new): New.
8674 (btrace_get_frame_function): New.
8675 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8676 (record_btrace_frame_this_id): Compute own id.
8677 (record_btrace_frame_prev_register): Provide PC, throw_error
8678 for all other registers.
8679 (record_btrace_frame_sniffer): Detect btrace frames.
8680 (record_btrace_tailcall_frame_sniffer): New.
8681 (record_btrace_frame_dealloc_cache): New.
8682 (record_btrace_frame_unwind): Add new functions.
8683 (record_btrace_tailcall_frame_unwind): New.
8684 (_initialize_record_btrace): Allocate cache.
8685 * btrace.c (btrace_clear): Call reinit_frame_cache.
8686 * NEWS: Announce it.
8688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8690 * record-btrace.c (record_btrace_set_replay)
8691 (record_btrace_goto_begin, record_btrace_goto_end)
8692 (record_btrace_goto): New.
8693 (init_record_btrace_ops): Initialize them.
8694 * NEWS: Announce it.
8696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8698 * record-btrace.c (record_btrace_find_new_threads)
8699 (record_btrace_thread_alive): New.
8700 (init_record_btrace_ops): Initialize to_find_new_threads and
8703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8705 * record-btrace.c (record_btrace_resume): New.
8706 (record_btrace_wait): New.
8707 (init_record_btrace_ops): Initialize to_wait and to_resume.
8709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8711 * record-btrace.c (record_btrace_xfer_partial)
8712 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8713 (record_btrace_allow_memory_access): New.
8714 (init_record_btrace_ops): Initialize new methods.
8715 * target.c (raw_memory_xfer_partial): Bail out if target reports
8716 that this memory is not available.
8718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8720 * target.h (target_ops) <to_insert_breakpoint>
8721 <to_remove_breakpoint>: Add target_ops parameter.
8722 (forward_target_insert_breakpoint): New.
8723 (forward_target_remove_breakpoint): New.
8724 (memory_remove_breakpoint, memory_insert_breakpoint):
8725 Add target_ops parameter.
8726 * target.c (target_insert_breakpoint): Split into this and ...
8727 (forward_target_insert_breakpoint): ... this.
8728 (target_remove_breakpoint): Split into this and ...
8729 (forward_target_remove_breakpoint): ... this.
8730 (debug_to_insert_breakpoint): Add target_ops parameter.
8731 Call forward_target_insert_breakpoint.
8732 (debug_to_remove_breakpoint): Add target_ops parameter.
8733 Call forward_target_remove_breakpoint.
8734 (update_current_target): Do not inherit or default to_insert_breakpoint
8735 and to_remove_breakpoint.
8736 * corelow.c (ignore): Add target_ops parameter.
8737 * exec.c (ignore): Add target_ops parameter.
8738 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8739 Add target_ops parameter.
8740 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8741 Add target_ops parameter.
8742 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8743 Add target_ops parameter.
8744 * record-full.c (record_full_beneath_to_insert_breakpoint)
8745 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8746 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8747 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8748 (record_full_core_remove_breakpoint): Add target_ops parameter.
8750 (record_full_beneath_to_insert_breakpoint_ops)
8751 (record_full_beneath_to_remove_breakpoint_ops)
8752 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8753 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8754 tmp_to_remove_breakpoint_ops,
8755 record_full_beneath_to_insert_breakpoint_ops, and
8756 record_full_beneath_to_remove_breakpoint_ops.
8757 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8758 (m32r_remove_breakpoint): Add target_ops parameter.
8759 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8760 Add target_ops parameter.
8761 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8762 Add target_ops parameter.
8764 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8765 Markus Metzger <markus.t.metzger@intel.com>
8767 * record-btrace.c: Include frame-unwind.h.
8768 (record_btrace_frame_unwind_stop_reason)
8769 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8770 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8772 (init_record_btrace_ops): Install it.
8774 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8776 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8779 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8781 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8784 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8786 * frame-unwind.c: Include target.h.
8787 (frame_unwind_try_unwinder): New function with code from ...
8788 (frame_unwind_find_by_frame): ... here. New variable
8789 unwinder_from_target, call also target_get_unwinder)
8790 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8791 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8792 * target.h (struct target_ops): New fields to_get_unwinder and
8793 to_get_tailcall_unwinder.
8794 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8798 * record-btrace.c (record_btrace_fetch_registers)
8799 (record_btrace_store_registers)
8800 (record_btrace_to_prepare_to_store): New.
8801 (init_record_btrace_ops): Add the above.
8803 2014-01-16 Tom Tromey <tromey@redhat.com>
8805 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8806 * target.h (struct target_ops) <to_prepare_to_store>: Add
8808 (target_prepare_to_store): Add argument.
8809 * target.c (debug_to_prepare_to_store): Add argument.
8810 (update_current_target): Update.
8811 * remote.c (remote_prepare_to_store): Add 'self' argument.
8812 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8813 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8814 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8815 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8817 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8818 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8819 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8820 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8821 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8825 * btrace.h (replay) <replay>: New.
8826 (btrace_is_replaying): New.
8827 * btrace.c (btrace_clear): Free replay iterator.
8828 (btrace_is_replaying): New.
8829 * record-btrace.c (record_btrace_is_replaying): New.
8830 (record_btrace_info): Print insn number if replaying.
8831 (record_btrace_insn_history): Start at replay position.
8832 (record_btrace_call_history): Start at replay position.
8833 (init_record_btrace_ops): Init to_record_is_replaying.
8835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8837 * record-btrace.c (record_btrace_insn_history_range): Include
8839 (record_btrace_insn_history_from): Adjust range.
8840 (record_btrace_call_history_range): Include
8842 (record_btrace_call_history_from): Adjust range.
8843 * NEWS: Announce changes.
8845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8847 * record.h (enum record_print_flag)
8848 <record_print_indent_calls>: New.
8849 * record.c (get_call_history_modifiers): Recognize /c modifier.
8850 (_initialize_record): Document /c modifier.
8851 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8852 Reorder fields. Optionally indent the function name. Update
8854 * NEWS: Announce changes.
8856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8858 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8862 * btrace.c (ftrace_new_function): Start counting at one.
8863 * record-btrace.c (record_btrace_info): Adjust number of calls
8865 * NEWS: Announce it.
8867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8869 * record-btrace.c (btrace_call_history_insn_range): Print
8870 insn range as [begin, end].
8872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8874 * btrace.h (struct btrace_func_link): New.
8875 (enum btrace_function_flag): New.
8876 (struct btrace_inst): Rename to ...
8877 (struct btrace_insn): ...this. Update all users.
8878 (struct btrace_func) <ibegin, iend>: Remove.
8879 (struct btrace_func_link): New.
8880 (struct btrace_func): Rename to ...
8881 (struct btrace_function): ...this. Update all users.
8882 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8883 (number, level, flags>: New.
8884 (struct btrace_insn_iterator): Rename to ...
8885 (struct btrace_insn_history): ...this.
8887 (struct btrace_insn_iterator, btrace_call_iterator): New.
8888 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8889 (struct btrace_target_info) <begin, end, level>
8890 <insn_history, call_history>: New.
8891 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8892 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8893 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8894 (btrace_call_number, btrace_call_begin, btrace_call_end)
8895 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8896 (btrace_find_function_by_number, btrace_set_insn_history)
8897 (btrace_set_call_history): New.
8898 * btrace.c (btrace_init_insn_iterator)
8899 (btrace_init_func_iterator, compute_itrace): Remove.
8900 (ftrace_print_function_name, ftrace_print_filename)
8901 (ftrace_skip_file): Change
8903 (ftrace_init_func): Remove.
8904 (ftrace_debug): Use new btrace_function fields.
8905 (ftrace_function_switched): Also consider gaining and
8906 losing symbol information).
8907 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8908 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8909 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8911 (ftrace_new_function): Move. Remove debug print.
8912 (ftrace_update_lines, ftrace_update_insns): New.
8913 (ftrace_update_function): Check for call, ret, and jump.
8914 (compute_ftrace): Renamed to ...
8915 (btrace_compute_ftrace): ...this. Rewritten to compute call
8917 (btrace_fetch, btrace_clear): Updated.
8918 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8919 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8920 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8921 (btrace_call_number, btrace_call_begin, btrace_call_end)
8922 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8923 (btrace_find_function_by_number, btrace_set_insn_history)
8924 (btrace_set_call_history): New.
8925 * record-btrace.c (require_btrace): Use new btrace thread
8927 (record_btrace_info, btrace_insn_history)
8928 (record_btrace_insn_history, record_btrace_insn_history_range):
8929 Use new btrace thread info fields and new iterator.
8930 (btrace_func_history_src_line): Rename to ...
8931 (btrace_call_history_src_line): ...this. Use new btrace
8933 (btrace_func_history): Rename to ...
8934 (btrace_call_history): ...this. Use new btrace thread info
8935 fields and new iterator.
8936 (record_btrace_call_history, record_btrace_call_history_range):
8937 Use new btrace thread info fields and new iterator.
8939 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8941 * frame.h (frame_id_build_unavailable_stack_special): New.
8942 * frame.c (frame_id_build_unavailable_stack_special): New.
8944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8946 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8947 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8948 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8950 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8951 (i386_insn_is_jump, i386_jmp_p): New.
8952 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8953 insn_is_jump to gdbarch.
8954 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8955 * gdbarch.h: Regenerated.
8956 * gdbarch.c: Regenerated.
8957 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8958 (default_insn_is_jump): New.
8959 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8960 (default_insn_is_jump): New.
8962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8964 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8966 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8967 (btrace_read_type) <btrace_read_new>: Change to ...
8968 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8972 * common/linux-btrace.c (linux_read_btrace): Free trace from
8975 2014-01-15 Doug Evans <dje@google.com>
8977 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8980 2014-01-15 Tom Tromey <tromey@redhat.com>
8982 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8983 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8984 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8985 (set_objfile_main_name): New function.
8986 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8987 language_of_main>: New fields.
8988 (set_objfile_main_name): Declare.
8989 * symtab.c (find_main_name): Loop over objfiles to find the main
8991 (set_main_name): Now static.
8992 (get_main_info): Add comment.
8993 * symtab.h (set_main_name): Don't declare.
8995 2014-01-15 Tom Tromey <tromey@redhat.com>
8997 * symtab.c (main_progspace_key): New global.
8998 (struct main_info): New.
8999 (name_of_main, language_of_main): Remove.
9000 (get_main_info, main_info_cleanup): New function.
9001 (set_main_name, main_name, main_language): Use get_main_info.
9002 (_initialize_symtab): Initialize main_progspace_key.
9004 2014-01-15 Tom Tromey <tromey@redhat.com>
9006 * dbxread.c (process_one_symbol): Update.
9007 * dwarf2read.c (read_partial_die): Update.
9008 * symfile.c (set_initial_language): Call main_language.
9009 * symtab.c (language_of_main): Now static.
9010 (set_main_name): Add 'lang' parameter.
9011 (find_main_name): Update.
9012 (main_language): New function.
9013 (symtab_observer_executable_changed): Update.
9014 * symtab.h (set_main_name): Update.
9015 (language_of_main): Remove.
9016 (main_language): Declare.
9018 2014-01-15 Tom Tromey <tromey@redhat.com>
9020 * symfile.c (init_entry_point_info): Use new "initialized" field.
9022 * objfiles.h (struct entry_point) <initialized>: New field.
9023 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9024 (struct objfile) <ei>: ...here. Remove.
9025 * objfiles.c (entry_point_address_query): Update.
9027 2014-01-15 Tom Tromey <tromey@redhat.com>
9029 * objfiles.c (entry_point_address_query): Relocate entry point
9031 (objfile_relocate1): Do not relocate entry point address.
9032 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9033 <the_bfd_section_index>: New field.
9034 * symfile.c (init_entry_point_info): Find the entry point's
9037 2014-01-15 Tom Tromey <tromey@redhat.com>
9039 * solib-frv.c (enable_break): Use entry_point_address_query.
9041 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9043 * NEWS: Add note on improved process record-replay on
9044 arm*-linux* targets.
9046 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9048 * arm-tdep.c (enum arm_record_result): New enum.
9049 (arm_record_unsupported_insn): New function.
9050 (arm_record_coproc_data_proc): Removed.
9051 (thumb2_record_ld_st_multiple): New function.
9052 (thumb2_record_ld_st_dual_ex_tbb): New function.
9053 (thumb2_record_data_proc_sreg_mimm): New function.
9054 (thumb2_record_ps_dest_generic): New function.
9055 (thumb2_record_branch_misc_cntrl): New function.
9056 (thumb2_record_str_single_data): New function.
9057 (thumb2_record_ld_mem_hints): New function.
9058 (thumb2_record_ld_word): New function.
9059 (thumb2_record_lmul_lmla_div): New function.
9060 (thumb2_record_decode_insn_handler): New function.
9061 (decode_insn): Add thumb32 instruction handlers.
9063 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9065 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9066 (struct arm_linux_record_tdep): Declare.
9067 (arm_canonicalize_syscall): New function.
9068 (arm_all_but_pc_registers_record): New function.
9069 (arm_linux_syscall_record): New function.
9070 (arm_linux_init_abi): Add syscall recording constructs.
9071 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9072 decoding. (arm_record_coproc_data_proc): Update arm syscall
9074 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9075 <arm_syscall_record>: New field.
9076 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9079 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9081 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9082 register for push instruction recording.
9084 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9086 * arm-tdep.c (thumb_record_misc): Update to correct logical
9087 error while recording ldm, ldmia and pop instructions.
9089 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9091 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9093 2014-01-15 Pedro Alves <palves@redhat.com>
9095 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9096 (go32_resume, go32_fetch_registers, store_register)
9097 (go32_store_registers, go32_prepare_to_store)
9098 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9099 (go32_create_inferior, go32_can_run, go32_terminal_init)
9100 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9103 2014-01-15 Tom Tromey <tromey@redhat.com>
9105 * target.h (async_callback_ftype): New typedef.
9106 (struct target_ops) <to_async>: Use it.
9108 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9110 * python/py-value.c (get_field_type): Remove unnecessary curly
9111 braces for single-statement if block.
9113 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9115 * python/py-type.c (convert_field): Add missing empty line
9118 2014-01-14 Doug Evans <dje@google.com>
9120 * symfile.h (expand_symtabs_matching): Renamed from
9121 expand_partial_symbol_names. Update prototype.
9122 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9123 * symfile.c (expand_symtabs_matching): Renamed from
9124 expand_partial_symbol_names. New args file_matcher, kind.
9125 Rename arg fun to symbol_matcher.
9126 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9127 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9128 ada_expand_partial_symbol_name.
9129 (ada_make_symbol_completion_list): Update to call
9130 expand_symtabs_matching.
9131 (ada_add_global_exceptions): Call expand_symtabs_matching.
9132 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9133 call map_symbol_filenames.
9134 * symtab.c (sources_info): Update to call map_symbol_filenames.
9135 (search_symbols): Call expand_symtabs_matching.
9136 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9137 (default_make_symbol_completion_list_break_on): Update to call
9138 expand_symtabs_matching.
9139 (make_source_files_completion_list): Update to call
9140 map_symbol_filenames.
9142 2014-01-14 Doug Evans <dje@google.com>
9144 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9145 (expand_symtabs_symbol_matcher_ftype): New typedef.
9146 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9147 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9148 * symfile.c (expand_partial_symbol_names): Update to use
9149 expand_symtabs_symbol_matcher_ftype.
9150 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9151 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9152 Arg name_matcher renamed to symbol_matcher.
9153 * psymtab.c (recursively_search_psymtabs): Update to use
9154 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9156 (expand_symtabs_matching_via_partial): Update to use
9157 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9158 Arg name_matcher renamed to symbol_matcher.
9160 2014-01-14 Doug Evans <dje@google.com>
9162 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9163 (map_partial_symbol_filenames): Ditto.
9164 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9165 (map_partial_symbol_filenames): Ditto.
9166 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9167 (map_partial_symbol_filenames): Ditto.
9168 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9169 (map_partial_symbol_filenames): Ditto.
9170 * symtab.c: Delete #include "psymtab.h".
9172 2014-01-14 Pedro Alves <palves@redhat.com>
9173 Tom Tromey <tromey@redhat.com>
9175 * infrun.c (use_displaced_stepping): Use find_record_target
9176 instead of RECORD_IS_USED.
9177 (adjust_pc_after_break): Use record_full_is_used instead of
9179 * record-btrace.c (record_btrace_open): Call record_preopen
9180 instead of checking RECORD_IS_USED.
9181 * record-full.c (record_full_shortname)
9182 (record_full_core_shortname): New globals.
9183 (record_full_is_used): New function.
9184 (find_full_open): Call record_preopen instead of checking
9186 (init_record_full_ops): Set the target's shortname to
9187 record_full_shortname.
9188 (init_record_full_core_ops): Set the target's shortname to
9189 record_full_core_shortname.
9190 * record-full.h (record_full_is_used): Declare.
9191 * record.c (find_record_target): Make extern.
9192 (record_preopen): New function.
9193 * record.h (RECORD_IS_USED): Delete macro.
9194 (find_record_target, record_preopen): Declare functions.
9196 2014-01-14 Yao Qi <yao@codesourcery.com>
9198 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9199 'len''s type to ULONGEST.
9200 (core_xfer_shared_libraries_aix): Likewise.
9201 * gdbarch.c, gdbarch.h: Regenerated.
9202 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9203 Change type of 'len' to ULONGEST.
9204 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9205 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9207 2014-01-14 Yao Qi <yao@codesourcery.com>
9209 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9210 type of 'len' to ULONGEST.
9211 (linux_xfer_osdata_processgroups): Likewise.
9212 (linux_xfer_osdata_threads): Likewise.
9213 (linux_xfer_osdata_fds): Likewise.
9214 (linux_xfer_osdata_isockets): Likewise.
9215 (linux_xfer_osdata_shm): Likewise.
9216 (linux_xfer_osdata_sem): Likewise.
9217 (linux_xfer_osdata_msg): Likewise.
9218 (linux_common_xfer_osdata): Likewise.
9219 (struct osdata_type) <getter>: Likewise.
9220 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9223 2014-01-14 Yao Qi <yao@codesourcery.com>
9225 * target.h (target_xfer_partial_ftype): Update.
9226 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9228 * aix-thread.c (aix_thread_xfer_partial): Change type of
9229 argument 'len' to ULONGEST.
9230 * auxv.c (procfs_xfer_auxv): Likewise.
9231 (ld_so_xfer_auxv): Likewise.
9232 (memory_xfer_auxv): Likewise.
9233 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9234 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9235 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9236 * corelow.c (core_xfer_partial): Likewise.
9237 * ctf.c (ctf_xfer_partial): Likewise.
9238 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9240 (darwin_read_dyld_info): Likewise.
9241 (darwin_xfer_partial): Likewise.
9242 * exec.c (section_table_xfer_memory_partial): Likewise.
9243 (exec_xfer_partial): Likewise.
9244 * exec.h (section_table_xfer_memory_partial): Update
9246 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9247 instead of plongest.
9248 (gnu_xfer_partial): Likewise.
9249 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9250 (ia64_hpux_xfer_solib_got): Likewise.
9251 (ia64_hpux_xfer_partial): Likewise.
9252 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9253 * inf-ptrace.c (inf_ptrace_xfer_partial):
9254 * inf-ttrace.c (inf_ttrace_xfer_partial):
9255 * linux-nat.c (linux_xfer_siginfo): Likewise.
9256 (linux_nat_xfer_partial): Likewise.
9257 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9258 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9259 * monitor.c (monitor_xfer_memory): Likewise.
9260 (monitor_xfer_partial): Likewise.
9261 * procfs.c (procfs_xfer_partial): Likewise.
9262 * record-full.c (record_full_xfer_partial): Likewise.
9263 (record_full_core_xfer_partial): Likewise.
9264 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9265 instead of plongest.
9266 (gdbsim_xfer_partial): Likewise.
9267 * remote.c (remote_xfer_partial): Likewise.
9268 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9269 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9271 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9272 (rs6000_xfer_shared_libraries): Likewise.
9273 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9274 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9275 (sparc_xfer_partial): Likewise.
9276 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9277 (spu_xfer_partial): Likewise.
9278 * spu-multiarch.c (spu_xfer_partial): Likewise.
9279 * target.c (target_read_live_memory): Likewise.
9280 (memory_xfer_live_readonly_partial): Likewise.
9281 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9282 (target_xfer_partial, default_xfer_partial): Likewise.
9283 (current_xfer_partial): Likewise.
9284 * tracepoint.c (tfile_xfer_partial): Likewise.
9285 * windows-nat.c (windows_xfer_memory): Likewise. Call
9286 pulongest instead of plongest.
9287 (windows_xfer_partial): Likewise.
9288 (windows_xfer_shared_libraries): Likewise.
9290 2014-01-14 Yao Qi <yao@codesourcery.com>
9292 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9293 target_xfer_partial_ftype.
9295 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9299 * valops.c (value_struct_elt_bitpos): New function
9300 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9301 object to 'None' if the field name is an empty string ("").
9302 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9303 attribute to look for a field when 'name' is 'None'.
9304 (get_field_type): New function
9306 2014-01-13 Doug Evans <dje@google.com>
9309 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9310 (try_open_dwop_file): Ditto.
9311 * gdb_bfd.c: #include "vec.h".
9312 (bfdp): New typedef.
9313 (struct gdb_bfd_data): New member included_bfds.
9314 (gdb_bfd_unref): Unref all included bfds.
9315 (gdb_bfd_record_inclusion): New function.
9316 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9318 2014-01-13 Tom Tromey <tromey@redhat.com>
9320 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9322 2014-01-13 Tom Tromey <tromey@redhat.com>
9324 * defs.h (use_windows): Remove.
9325 * gdb.c (main): Update.
9326 * main.c (captured_main, gdb_main): Update.
9327 * main.h (struct captured_main_args) <use_windows>: Remove.
9328 * top.c (use_windows): Remove.
9330 2014-01-13 Tom Tromey <tromey@redhat.com>
9332 * defs.h (deprecated_flush_hook): Remove.
9334 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9337 * linux-thread-db.c (try_thread_db_load): Add parameter
9338 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9339 (try_thread_db_load_from_pdir_1): Move it there from here.
9340 (try_thread_db_load_from_sdir): Update caller.
9341 (try_thread_db_load_from_dir): Move it there from here.
9343 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9345 * regformats/regdat.sh: Always rewrite the register file.
9347 2014-01-13 Pedro Alves <palves@redhat.com>
9349 * Makefile.in (CHECK_HEADERS): New variable.
9350 (check-headers:): New rule.
9352 2014-01-13 Tom Tromey <tromey@redhat.com>
9354 * cli/cli-setshow.c (do_set_command): Update.
9355 * defs.h (deprecated_set_hook): Remove.
9356 * top.c (deprecated_set_hook): Remove.
9358 2014-01-13 Pedro Alves <palves@redhat.com>
9360 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9361 the tracepoint if the PC is a pseudo-register.
9363 2014-01-13 Tom Tromey <tromey@redhat.com>
9365 * defs.h (XCALLOC): Remove.
9366 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9367 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9368 * dwarf2loc.c (allocate_piece_closure): Likewise.
9369 * elfread.c (elf_symfile_segments): Likewise.
9370 (elf_symfile_segments): Likewise.
9371 * gdbtypes.c (copy_type_recursive): Likewise.
9372 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9373 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9374 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9376 * mt-tdep.c (mt_gdbarch_init): Likewise.
9377 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9379 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9380 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9381 * registry.c (registry_alloc_data): Likewise.
9382 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9383 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9384 * serial.c (serial_fdopen_ops): Likewise.
9385 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9387 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9388 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9391 2014-01-13 Tom Tromey <tromey@redhat.com>
9393 * defs.h (XMALLOC): Remove.
9394 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9395 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9396 * cli-out.c (struct ui_out *): Likewise.
9397 * cli/cli-dump.c (add_dump_command): Likewise.
9398 (add_dump_command): Likewise.
9399 * complaints.c (get_complaints): Likewise.
9400 (find_complaint): Likewise.
9401 * dwarf2-frame.c (execute_cfa_program): Likewise.
9402 * dwarf2read.c (abbrev_table_read_table): Likewise.
9403 * gdbarch.sh: Likewise.
9404 * gdbarch.c: Rebuild.
9405 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9406 * interps.c (interp_new): Likewise.
9407 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9408 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9409 * mi/mi-console.c (mi_console_file_new): Likewise.
9410 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9411 * mi/mi-out.c (mi_out_new): Likewise.
9412 * mi/mi-parse.c (mi_parse): Likewise.
9413 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9414 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9415 * observer.c (xalloc_observer_list_node): Likewise.
9416 * regcache.c (regcache_xmalloc_1): Likewise.
9417 * reggroups.c (reggroup_new): Likewise.
9418 (_initialize_reggroup): Likewise.
9419 * registry.c (register_data_with_cleanup): Likewise.
9420 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9421 * ser-base.c (serial_ttystate): Likewise.
9422 * ser-mingw.c (make_pipe_state): Likewise.
9423 * ser-pipe.c (pipe_open): Likewise.
9424 * serial.c (serial_open): Likewise.
9425 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9426 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9427 (tui_alloc_win_info): Likewise.
9428 (tui_add_content_elements): Likewise.
9429 * tui/tui-file.c (tui_file_new): Likewise.
9430 * tui/tui-out.c (tui_out_new): Likewise.
9431 * ui-file.c (mem_file_new): Likewise.
9432 * ui-out.c (push_level): Likewise.
9433 (make_cleanup_ui_out_end): Likewise.
9434 (append_header_to_list): Likewise.
9435 (ui_out_new): Likewise.
9436 * user-regs.c (user_reg_add_builtin): Likewise.
9438 2014-01-13 Tom Tromey <tromey@redhat.com>
9440 * defs.h (XZALLOC): Remove.
9441 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9442 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9443 (get_ada_tasks_inferior_data): Likewise.
9444 * auto-load.c (get_auto_load_pspace_data): Likewise.
9445 * auxv.c (get_auxv_inferior_data): Likewise.
9446 * bfd-target.c (target_bfd_reopen): Likewise.
9447 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9448 (deprecated_insert_raw_breakpoint): Likewise.
9449 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9450 * corelow.c (core_open): Likewise.
9451 * darwin-nat.c (darwin_check_new_threads): Likewise.
9452 (darwin_attach_pid): Likewise.
9453 * dummy-frame.c (dummy_frame_push): Likewise.
9454 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9455 * dwarf2loc.c (allocate_piece_closure): Likewise.
9456 * elfread.c (elf_symfile_segments): Likewise.
9457 * eval.c (ptrmath_type_p): Likewise.
9458 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9459 * gdbtypes.c (alloc_type_arch): Likewise.
9460 (alloc_type_instance): Likewise.
9461 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9462 * inf-child.c (inf_child_can_use_agent): Likewise.
9463 * inflow.c (get_inflow_inferior_data): Likewise.
9464 * infrun.c (save_infcall_suspend_state): Likewise.
9465 * jit.c (jit_reader_load): Likewise.
9466 (get_jit_objfile_data): Likewise.
9467 (get_jit_program_space_data): Likewise.
9468 (jit_object_open_impl): Likewise.
9469 (jit_symtab_open_impl): Likewise.
9470 (jit_block_open_impl): Likewise.
9471 (jit_frame_sniffer): Likewise.
9472 * linux-fork.c (add_fork): Likewise.
9473 * maint.c (make_command_stats_cleanup): Likewise.
9474 * objfiles.c (get_objfile_pspace_data): Likewise.
9475 * opencl-lang.c (struct lval_closure): Likewise.
9476 * osdata.c (osdata_start_osdata): Likewise.
9477 * progspace.c (new_address_space): Likewise.
9478 (add_program_space): Likewise.
9479 * remote-sim.c (get_sim_inferior_data): Likewise.
9480 * sh-tdep.c (sh_gdbarch_init): Likewise.
9481 * skip.c (Ignore): Likewise.
9482 (skip_delete_command): Likewise.
9483 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9484 (library_list_start_library): Likewise.
9485 (solib_aix_current_sos): Likewise.
9486 * solib-darwin.c (get_darwin_info): Likewise.
9487 (darwin_current_sos): Likewise.
9488 * solib-dsbt.c (get_dsbt_info): Likewise.
9489 * solib-ia64-hpux.c (new_so_list): Likewise.
9490 (ia64_hpux_get_solib_linkage_addr): Likewise.
9491 * solib-spu.c (append_ocl_sos): Likewise.
9492 (spu_current_sos): Likewise.
9493 * solib-svr4.c (get_svr4_info): Likewise.
9494 (svr4_keep_data_in_core): Likewise.
9495 (library_list_start_library): Likewise.
9496 (svr4_default_sos): Likewise.
9497 (svr4_read_so_list): Likewise.
9498 * solib-target.c (library_list_start_library): Likewise.
9499 (solib_target_current_sos): Likewise.
9500 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9501 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9502 * symfile.c (default_symfile_segments): Likewise.
9503 * target-descriptions.c (tdesc_data_init): Likewise.
9504 (tdesc_create_reg): Likewise.
9505 (struct tdesc_type *): Likewise.
9506 (tdesc_create_vector): Likewise.
9507 (tdesc_set_struct_size): Likewise.
9508 (struct tdesc_type *): Likewise.
9509 (tdesc_free_feature): Likewise.
9510 (tdesc_create_feature): Likewise.
9511 * windows-nat.c (windows_add_thread): Likewise.
9512 (windows_make_so): Likewise.
9513 * xml-support.c (gdb_xml_body_text): Likewise.
9514 (gdb_xml_create_parser_and_cleanup): Likewise.
9515 (xml_process_xincludes): Likewise.
9516 * xml-syscall.c (allocate_syscalls_info): Likewise.
9517 (syscall_create_syscall_desc): Likewise.
9519 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9521 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9522 function, with code from i386_stap_parse_special_token.
9523 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9524 (i386_stap_parse_special_token): Move code to the two functions
9527 2014-01-09 Pedro Alves <palves@redhat.com>
9528 Hui Zhu <hui@codesourcery.com>
9531 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9532 bp_err_string. Don't mark the location shlib_disabled if the
9533 error thrown wasn't a generic or memory error. Catch errors
9534 thrown while inserting breakpoints in overlayed code. Output
9535 error message of software breakpoints.
9536 * remote.c (remote_insert_breakpoint): If this breakpoint has
9537 target-side commands but this stub doesn't support Z0 packets,
9538 throw NOT_SUPPORTED_ERROR error.
9539 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9540 * target.h (target_insert_breakpoint): Extend comment.
9541 (target_insert_hw_breakpoint): Add comment.
9543 2014-01-08 Pedro Alves <palves@redhat.com>
9545 * remote.c (remote_add_thread): Add threads silently if starting
9547 (remote_notice_new_inferior): If in all-stop, and starting up,
9548 don't call notice_new_inferior.
9549 (get_current_thread): New function, factored out from ...
9550 (add_current_inferior_and_thread): ... this. Adjust.
9551 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9552 found any thread, then select the remote's current thread as GDB's
9555 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9557 * NEWS: Create a new section for the next release branch.
9558 Rename the section of the current branch, now that it has
9561 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9563 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9564 * version.in: Bump version to 7.7.50.DATE-cvs.
9566 2014-01-08 Yao Qi <yao@codesourcery.com>
9568 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9569 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9570 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9572 2014-01-08 Yao Qi <yao@codesourcery.com>
9574 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9575 return value of bfd_get_filename to symbol_file_add_from_bfd.
9577 2014-01-08 Pierre Muller <muller@sourceware.org>
9580 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9581 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9582 to prim_record_mininal_symbol_and_info.
9583 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9584 in call to prim_record_minimal_symbol_and_info.
9585 (read_pe_exported_syms): Set index field of section_data.
9587 2014-01-07 Andrew Pinski <apinski@cavium.com>
9589 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9590 * features/aarch64.c: Regenerate.
9592 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9594 * target.c (return_null): Define.
9595 (update_current_target): Use it instead of return_zero for
9596 functions that return a pointer.
9598 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9600 * source.c (add_path): Fix check for duplicated paths in the previously
9603 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9605 * ada-lang.c: Remove duplicated include statements.
9606 * alphabsd-nat.c: Ditto.
9607 * amd64-darwin-tdep.c: Ditto.
9608 * amd64fbsd-nat.c: Ditto.
9609 * auto-load.c: Ditto.
9611 * breakpoint.c: Ditto.
9613 * fork-child.c: Ditto.
9614 * gdb_usleep.c: Ditto.
9615 * i386-darwin-tdep.c: Ditto.
9616 * i386fbsd-nat.c: Ditto.
9618 * inferior.c: Ditto.
9620 * linux-nat.c: Ditto.
9621 * linux-tdep.c: Ditto.
9622 * m68kbsd-nat.c: Ditto.
9623 * m68klinux-nat.c: Ditto.
9624 * microblaze-tdep.c: Ditto.
9625 * mips-linux-tdep.c: Ditto.
9626 * mn10300-tdep.c: Ditto.
9627 * nto-tdep.c: Ditto.
9628 * opencl-lang.c: Ditto.
9630 * printcmd.c: Ditto.
9631 * regcache.c: Ditto.
9632 * remote-m32r-sdi.c: Ditto.
9636 * tilegx-linux-nat.c: Ditto.
9637 * tilegx-tdep.c: Ditto.
9638 * tracepoint.c: Ditto.
9640 * vaxbsd-nat.c: Ditto.
9641 * windows-nat.c: Ditto.
9642 * xtensa-tdep.c: Ditto.
9644 2014-01-07 Yao Qi <yao@codesourcery.com>
9646 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9648 2014-01-07 Yao Qi <yao@codesourcery.com>
9649 Joel Brobecker <brobecker@adacore.com>
9651 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9652 (pdc_write_regs): Likewise.
9653 (fetch_regs_kernel_thread): Likewise.
9654 (store_regs_kernel_thread): Likewise.
9656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9658 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9659 tagged type objects to their actual type.
9661 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9663 * ada-valprint.c (print_field_values): Add "language" parameter.
9664 Update calls to print_field_values and print_variant_part.
9665 Pass new parameter "language" in call to val_print instead
9666 of "current_language". Replace call to ada_val_print by call
9668 (print_variant_part): Add "language" parameter.
9669 (ada_val_print_struct_union): Update call to print_field_values.
9671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9673 * ada-valprint.c (ui_memcpy): Delete.
9674 (ada_print_floating): Update documentation. Add empty line
9675 between between function documentation and implementation.
9676 Delete variable "buffer". Use ui_file_xstrdup in place of
9677 ui_file_put. Minor adjustments following this change.
9679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9681 * ada-valprint.c (ada_val_print_string): New function,
9682 extracted from ada_val_print_array.
9683 (ada_val_print_array): Replace extracted code by call
9684 to ada_val_print_string followed by a return. Move
9685 "else" branch to the function's top block.
9687 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9689 * ada-valprint.c (ada_val_print_array): Move implementation
9690 down. Rename parameter "offset" and "val" into "offset_aligned"
9691 and "original_value" respectively. Add parameter "offset".
9693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9695 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9696 re-organizing the code. Change the "???" message printed
9697 when target type is a TYPE_CODE_UNDEF into
9698 "<ref to undefined type>".
9700 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9702 * ada-valprint.c (print_record): Delete, implementation inlined...
9703 (ada_val_print_struct_union): ... here. Remove call to
9704 ada_check_typedef in inlined implementation.
9706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9708 * ada-valprint.c (ada_val_print_gnat_array): New function,
9709 extracted from ada_val_print_1;
9710 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9711 (ada_val_print_flt, ada_val_print_struct_union)
9712 (ada_val_print_ref): Likewise.
9713 (ada_val_print_1): Delete variables i and elttype.
9714 Replace extracted-out code by call to corresponding
9717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9719 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9721 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9723 * ada-valprint.c (ada_val_print_1): Replace calls to
9724 ada_val_print_1 by calls to val_print.
9726 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9728 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9729 Update calls to self accordingly. Replace calls to c_val_print
9730 by calls to val_print.
9732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9734 * ada-valprint.c (print_record): Delete declaration.
9735 (adjust_type_signedness, ada_val_print_1): Likewise.
9736 (ada_val_print): Move function implementation down.
9737 (print_variant_part, print_field_values, print_record):
9738 Move function implementation up.
9740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9742 * python/py-type.c (typy_get_name): New function.
9743 (type_object_getset): Add entry for attribute "name".
9744 * NEWS: Add entry mentioning this new attribute.
9746 2014-01-07 Yao Qi <yao@codesourcery.com>
9748 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9751 2014-01-07 Yao Qi <yao@codesourcery.com>
9753 * gnu-nat.c (info_port_rights): Add qualifier const to
9756 2014-01-07 Yao Qi <yao@codesourcery.com>
9758 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9760 2014-01-07 Yao Qi <yao@codesourcery.com>
9762 * gnu-nat.c (make_inf) Update declaration.
9763 (make_inf): Make it static.
9764 (inf_set_traced): Likewise.
9765 (inf_port_to_thread, inf_task_died_status): Likewise.
9767 2014-01-07 Yao Qi <yao@codesourcery.com>
9769 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9771 2014-01-07 Yao Qi <yao@codesourcery.com>
9773 * gnu-nat.c (_initialize_gnu_nat): Declare.
9775 2014-01-07 Yao Qi <yao@codesourcery.com>
9777 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9779 (struct gdbarch_info) <byte_order>: Change type to
9781 <byte_order_for_code>: Likewise.
9782 * gdbarch.c, gdbarch.h: Regenerated.
9784 2014-01-06 Sasha Smundak <asmundak@google.com>
9786 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9788 2014-01-06 Tom Tromey <tromey@redhat.com>
9790 * doublest.c (convert_doublest_to_floatformat): Use const, not
9792 * somread.c (som_symtab_read): Likewise.
9794 2014-01-07 Hui Zhu <hui@codesourcery.com>
9796 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9797 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9798 (gdb_bfd_fopen): Ditto.
9799 (gdb_bfd_openr): Ditto.
9800 (gdb_bfd_openw): Ditto.
9801 (gdb_bfd_openr_iovec): Ditto.
9802 (gdb_bfd_fdopenr): Ditto.
9803 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9804 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9806 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9808 * symfile-mem.c (symbol_file_add_from_memory): Removed
9809 gdb_bfd_stash_filename.
9811 2014-01-03 Doug Evans <dje@google.com>
9813 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9816 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9818 Update year range in copyright notice of all files.
9820 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9822 * top.c (print_gdb_version): Set copyright year to 2014.
9824 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9826 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9828 For older changes see ChangeLog-2013.
9834 version-control: never